f2275b997f1b90f8c2f3a7a7be950c194d1f3328
[external/binutils.git] / gdb / ChangeLog
1 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
2
3         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4
5 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
6
7         Suggested by Stewart Brown <sb24@avaya.com>:
8         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
10         (c_type_print_varspec_suffix): Likewise.
11
12 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
13
14         * configure.in: Don't set and AC_SUBST SUBDIRS.
15         * configure: Regenerated.
16
17         * configure.in: Remove code dealing with shared libraries.
18         * Makefile.in: Remove HLDFLAGS and HLDENV.
19         * configure: Regenerated.
20
21 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
22
23         * frame.c (deprecated_frame_xmalloc): New function.
24         (deprecated_set_frame_saved_regs_hack): New function.
25         (deprecated_set_frame_extra_info_hack): New function.
26         * frame.h (deprecated_frame_xmalloc): Declare.
27         (deprecated_set_frame_saved_regs_hack): Declare.
28         (deprecated_set_frame_extra_info_hack): Declare.
29
30 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
31
32         * configure.in: Move code that provides the --enable-gdbtk option
33         right after the code that handles the --enable-tui option, and
34         polish it somewhat.
35         * configure: Regenerated.
36
37         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
38         AC_CHECK_FUNCS and remove the old check for pread64.
39         * acinclude.m4 (AC_GNU_SOURCE): New macro.
40         * acconfig.h (_GNU_SOURCE): Add.
41         (HAVE_PREAD64): Remove.
42         * configure, aclocal.m4, config.in: Regenerated.
43
44 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
45
46         * alpha-tdep.c: Use get_frame_saved_regs.
47         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
48         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
49         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
50         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
51         * vax-tdep.c, xstormy16-tdep.c: Ditto.
52
53 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
54
55         * configure.in: Remove all use of the SUBDIRS variable; add
56         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
57         code providing the --enable-multi-ice option, and move it right in
58         front of the code that checks whether gdbserver is supported.
59         Polish that too.
60         * configure: Regenerated.
61         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
62         @SUBDIRS@.
63
64 2003-01-03  Andrew Cagney  <cagney@redhat.com>
65
66         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
67         * avr-tdep.c, cris-tdep.c: Ditto.
68         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
69         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
70         
71 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
72
73         * configure.in: Remove --enable-netrom option.
74         * configure: Regenerated.
75
76 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
77
78         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
79         declaration for `struct re_pattern_buffer' instead.
80         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
81
82 2003-01-03  J. Brobecker  <brobecker@gnat.com>
83
84         * mdebugread.c (parse_symbol): Count until the stEnd matching
85         the structure name.
86
87 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
88
89         * configure.in: Remove --with-cpu option.
90         subscripts.  Remove evil changequotes here.
91         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
92         * config.in, configure: Regenerated.
93         
94         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
95         * configure.in: Cleanup section that sources GDB and BFD configure
96         subscripts.  Remove evil changequotes here.
97         * config.in, configure: Regenerated.
98
99 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
100
101         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
102         frame accessor methods.
103         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
104         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
105         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
106         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
107         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
108         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
109         * z8k-tdep.c: Ditto.
110         
111 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
112
113         * configure.in: Remove UI_OUT configuration code.
114         * ada-lang.c: Update assuming UI_OUT is always true.
115         * Makefile.in (UIOUT_CFLAGS): Remove.
116         * configure: Regenerated.
117         * TODO: Remove blurb about elimination of -DUI_OUT.
118
119         * configure.in: Move code that provides the --enable-gdbcli,
120         --enable-gdbmi options right before the code that handles the
121         --enable-tui option.  Polish a bit.
122         * configure: Regenerated.
123
124         * configure.in: Rewrite check for GNU regex and the
125         --without-included regex option, and move it into the "Checks for
126         library functions" section.  This makes us use the system regex
127         again by default on systems with version 2 of the GNU C library.
128         This was apparently broken.
129         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
130         * acconfig.h (USE_INCLUDED_REGEX): Remove.
131         * config.in, configure: Regenerated.
132
133         * configure.in: Move code that provides the --enable-tui option
134         before the "Checks for libraries" section.  Polish the code
135         somewhat and set need_curses to yes if we build the TUI.  Rewrite
136         code that looks for a library providing termcap functionality to
137         match more closely what's done in the Readline library, and move
138         it into to the "Checks for libraries" section.
139         * configure: Regenerated.
140         * Makefile.in (TERMCAP): Remove variable.
141         * config/i386/go32.mh (TERMCAP): Remove variable.
142
143 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
144
145         * MAINTAINERS: Mention gdb_mbuild.sh.
146         * gdb_mbuild.sh: Rewrite.
147
148 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
149
150         * configure.in: Fix typo in last change.
151         * config.in, configure: Regenerated.
152
153 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
154
155         * valarith.c (value_binop): Delete obsolete code and comments.
156         * configure.host: Ditto.
157         * buildsym.h (make_blockvector): Ditto.
158         * buildsym.c (make_blockvector): Ditto.
159         * defs.h (enum language): Ditto.
160         (chill_demangle): Ditto.
161         * elfread.c (elf_symtab_read): Ditto.
162         * dwarfread.c (CHILL_PRODUCER): Ditto.
163         (set_cu_language): Ditto.
164         (handle_producer): Ditto.
165         * expprint.c (print_subexp): Ditto.
166         * gdbtypes.c (chill_varying_type): Ditto.
167         * gdbtypes.h (builtin_type_chill_bool): Ditto.
168         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
169         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
170         (chill_varying_type): Ditto.
171         * language.h (_LANG_chill): Ditto.
172         * language.c (binop_result_type, integral_type): Ditto.
173         (character_type, string_type, structured_type): Ditto.
174         (lang_bool_type, binop_type_check): Ditto.
175         * stabsread.h (os9k_stabs): Ditto.
176         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
177         (define_symbol, read_type, read_struct_fields): Ditto.
178         (read_array_type, read_enum_type, read_huge_number): Ditto.
179         (read_range_type, start_stabs): Ditto.
180         * symfile.c (init_filename_language_table): Ditto.
181         (add_psymbol_with_dem_name_to_list): Ditto.
182         * symtab.c (symbol_init_language_specific): Ditto.
183         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
184         * symtab.h (struct general_symbol_info): Ditto.
185         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
186         * typeprint.c (typedef_print): Ditto.
187         * utils.c (fprintf_symbol_filtered): Ditto.
188         * valops.c (value_cast, search_struct_field, value_slice): Delete
189         obsolete code.
190         (varying_to_slice): Delete function.
191         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
192         (varying_to_slice): Delete declaration.
193         * MAINTAINERS: Update.
194
195 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
196
197         * configure.in: Reorganize "Checks for library functions section"
198         a bit.  Remove check for `btowc' and `isascii' functions.
199         * configure: Regenerated.
200
201         * acconfig.h (_MSE_INT_H): Remove.
202         * configure.in: Create "Checks for header files" section, and move
203         appropriate tests there.  Don't check for objlist.h, wchar.h,
204         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
205         misdetection fix.  Also add "Checks for types", "Checks for
206         compiler characteristics" and "Checks for library functions"
207         sections.
208         * config.in, configure: Regenerated.
209
210         * configure.in: Create "Checks for programs" section, and move
211         appropriate tests there.
212
213 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
214
215         * configure.in: Create "Checks for libraries" section, and move
216         appropriate tests there.  Cleanup check for wctype in libw.  Use
217         AC_SEARCH_LIBS to see whether we need libsocket.
218         * configure: Regenerated.
219
220 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
221
222         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
223         * config.in, configure: Regenerated.
224
225 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
226
227         * gdb_dirent.h: Cleanup and update code to match the example in
228         the Autoconf manual.
229         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
230         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
231         * configure: Regenerated.
232
233 2002-12-30  Adam Fedor  <fedor@gnu.org>
234
235         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
236         (yylex): Initialize c to avoid uninitialized warning.
237
238 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
239
240         * doc/fdl.texi: Revert the last change.
241
242 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
243
244         * tracepoint.c (ISATTY): Removed.
245
246 2002-12-26  J. Brobecker  <brobecker@gnat.com>
247
248         Continuing work to convert the hppa targets to multiarch partil.
249
250         * hppa-tdep.c: Add some missing forward declarations.
251         (frameless_function_invocation): Prefix the function name
252         by "hppa_" to avoid polluting the namespace.  Update all calls
253         to use the new function name.
254         (saved_pc_after_call): Ditto.
255         (init_extra_frame_info): Ditto.
256         (frame_chain): Ditto.
257         (push_dummy_frame): Ditto.
258         (target_read_pc): Ditto.
259         (target_write_pc): Ditto.
260         (in_solib_call_trampoline): Ditto.
261         (in_solib_return_trampoline): Ditto.
262         (skip_trampoline_code): Ditto.
263         (hppa_read_fp): New function, renamed from target_read_fp.
264         (hppa_target_read_fp): New function, using hppa_read_fp.
265         This function conforms to the function profile for the
266         READ_FP gdbarch method.
267         (hppa_extract_struct_value_address): New function, extracted
268         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
269         macro.
270         (hppa_frame_num_args): New function.
271         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
272
273         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
274         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
275         for the switch to multiarch partial.
276         Update some of the macros definitions to match some changes
277         described above in the name of the function they are calling.
278         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
279         not be straightforward to convert. Do now wrap it inside
280         "#if !... #endif" to remember that this macro has still not
281         been taken care of.
282         (FIX_CALL_DUMMY): Likewise.
283
284 2002-12-26  J. Brobecker  <brobecker@gnat.com>
285
286         Continuing work to convert the hppa targets to multiarch partial.
287
288         * hppa-tdep.c (hppa_register_raw_size): New function replacing
289         the body of macro REGISTER_RAW_SIZE.
290         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
291         config/pa/tm-hppah.h. These functions will be used to initialize
292         the gdbarch structure.
293         (hppa_hpux_pc_in_sigtramp): New function.
294         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
295         (hppa_hpux_frame_base_before_sigtramp): New function.
296         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
297         Add gdbcore.h #include.
298         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
299         of this gdbarch-eligible macro to a call to the new associated
300         function.
301         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
302         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
303         into a call to the new associated function.
304         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
305         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
306         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
307
308 2002-12-24  David Carlton  <carlton@math.stanford.edu>
309
310         * config/sparc/tm-sparc.h: Delete duplicate definition of
311         DEPRECATED_PC_IN_CALL_DUMMY.
312
313 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
314
315         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
316         $(gdb_assert_h).
317         * configure.tgt: Recognize mips64*-*-linux*.
318         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
319         (supply_32_bit_reg): New function.
320         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
321         (fill_gregset): Use regcache_collect() instead of
322         deprecated_registers[].
323         (register_addr): Change name to mips_linux_register_addr().
324         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
325         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
326         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
327         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
328         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
329         (MIPS64_LINUX_JB_PC): New defines.
330         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
331         (mips64_elf_fpregset_t): New typedefs.
332         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
333         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
334         (mips64_linux_register_addr, set_mips_linux_register_addr)
335         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
336         (init_register_addr_data)
337         New functions.
338         (fetch_core_registers): Add support for core file formats with 64-bit
339         registers.
340         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
341         (register_addr_data): New static global variable.
342         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
343         gdbarch_register_osabi() for each MIPS machine.
344         * config/mips/linux64.mt: New file.
345         * config/mips/tm-linux64.h: New file.
346
347 2002-12-23  Adam Fedor  <fedor@gnu.org>
348
349         * maint.c (maintenance_demangle): Add switch to demangle
350         ObjC language symbols as well.
351
352 2002-12-23  Adam Fedor  <fedor@gnu.org>
353
354         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
355         last argument from complaint function call.
356
357 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
358
359         * exec.c (print_section_info): Add FIXME comments regarding format
360         string choices.
361
362 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
363
364         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
365         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
366
367 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
368
369         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
370
371 2002-12-23  David Carlton  <carlton@math.stanford.edu>
372
373         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
374         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
375         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
376         information associated to a minsym, not lookup_symbol.
377
378 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
379
380         * x86-64-tdep.h (x86_64_init_abi): New prototype.
381         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
382         (x86_64_init_abi): Make non-static.  Set number of pseudo
383         registers to 0.
384         (x86_64_gdbarch_init): Remove function.
385         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
386         Remove code dealing with dissambly.
387         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
388         (_initialize_x86_64_linux_tdep): New function.
389         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
390         i386-tdep.o.
391
392 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
393
394         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
395         (struct gdb_osabi_handler): Remove member `arch'.  Add member
396         `arch_info'.
397         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
398         construct a `struct bfd_arch_info' and store it in the `struct
399         gdb_osabi_handler' that is created.
400         (gdbarch_init_osabi): Check for compatibility based on machine
401         type and architecture.
402         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
403         comment.
404         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
405         second argument in call to gdbarch_register_osabi.
406         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
407         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
408         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
409         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
410         * arm-tdep.c (_initialize_arm_tdep): Likewise.
411         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
412         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
413         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
414         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
415         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
416         * i386-tdep.c (_initialize_i386_tdep): Likewise.
417         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
418         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
419         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
420         _initialize_i386bsd_tdep and updated likewise.
421         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
422         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
423         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
424         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
425         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
426         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
427         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
428         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
429         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
430         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
431
432 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
433
434         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
435         DT_MIPS_RLD_MAP case for 64-bit targets.
436
437 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
438
439         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
440         ``temp_saved_regs'', not the pointer or other storage contiguous
441         to this pointer.
442
443 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
444
445         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
446         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
447         (mips_linux_get_longjmp_target): Delete declarations.
448         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
449         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
450         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
451         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
452         (mips_linux_get_longjmp_target)
453         (mips_linux_svr4_fetch_link_map_offsets): Make static.
454         (mips_linux_init_abi): New function.
455         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
456
457 2002-12-19  Keith Seitz  <keiths@redhat.com>
458
459         patch committed by Elena Zannoni  <ezannoni@redhat.com>
460         * thread.c (do_captured_list_thread_ids): Call prune_threads and
461         target_find_new_threads. Fix for PR mi/669.
462
463 2002-12-19  David Carlton  <carlton@math.stanford.edu>
464
465         * linespec.c (decode_line_1): Move code into decode_all_digits.
466         (decode_all_digits): New function.
467
468 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
469
470         * exec.c (print_section_info): Select a format string to use with
471         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
472
473 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
474
475         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
476         deprecated_update_current_frame_pc_hack.
477         (deprecated_update_frame_base_hack): New function.
478         * frame.h (deprecated_update_frame_pc_hack): Replace
479         (deprecated_update_frame_base_hack): Declare.
480         * infrun.c (normal_stop): Update.
481
482 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
483
484         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
485         frame_extra_info_zalloc.
486         (rs6000_frame_args_address): Use get_frame_extra_info.
487         (frame_get_saved_regs): Use get_frame_saved_regs.
488         (frame_initial_stack_address): Use get_frame_saved_regs and
489         get_frame_extra_info.
490         (frame_initial_stack_address): Use get_frame_extra_info.
491
492 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
493
494         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
495         array size.
496         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
497         checks for r3900_regnames[].
498
499 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
500
501         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
502         All uses changed
503         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
504
505 2002-12-17  David Carlton  <carlton@math.stanford.edu>
506
507         * symtab.c (lookup_partial_symbol): Don't search past the end of
508         the partial symbols.
509
510 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
511
512         * stack.c (frame_info): Use get_frame_saved_regs.
513         * breakpoint.c (until_break_command): Use get_frame_pc.
514
515 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
516
517         * buildsym.c (block_end_complaint, anon_block_end_complaint)
518         (innerblock_complaint, innerblock_anon_complaint)
519         (blockvector_complaint): Delete deprecated complaint structs.
520         (finish_block, make_blockvector, end_symtab): Replace calls
521         to complain() with calls to complaint().
522         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
523         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
524         (unexpected_type_complaint, bad_sclass_complaint)
525         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
526         Delete deprecated complaint structs.
527         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
528         Replace calls to complain() with calls to complaint().
529         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
530         (unknown_symtype_complaint, unknown_symchar_complaint)
531         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
532         (lbrac_mismatch_complaint, repeated_header_complaint)
533         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
534         Delete deprecated complaint structs.
535         (unknown_symtype_complaint, lbrac_mismatch_complaint)
536         (repeated_header_complaint)
537         (function_outside_compiliation_unit_complaint): New functions.
538         (add_old_header_file, find_corresponding_bincl_psymtab)
539         (set_namestring, find_stab_function_addr, read_dbx_symtab)
540         (process_one_symbol): Replace calls to complain() with, possibly
541         indirect, calls to complaint().
542         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
543         (unknown_attribute_form, unknown_attribute_length)
544         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
545         (const_ignored, botched_modified_type, op_deref2, op_deref4)
546         (basereg_not_handled, dup_user_type_allocation)
547         (dup_user_type_definition, missing_tag, bad_array_element_type)
548         (subscript_data_items, unhandled_array_subscript_format)
549         (unknown_array_subscript_format, not_row_major)
550         (missing_at_name): Delete deprecated complaint structs.
551         (bad_die_ref_complaint, unknown_attribute_form_complaint)
552         (dup_user_type_definition_complaint)
553         (bad_array_element_type_complaint): New functions.
554         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
555         (decode_subscript_data_item, dwarf_read_array_type)
556         (read_tag_string_type, read_subroutine_type, read_func_scope)
557         (locval, scan_partial_symbols, decode_modified_type)
558         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
559         (attribute_size): Replace calls to complain() with, possibly
560         indirect, calls to complaint().
561         * elfread.c (section_info_complaint, section_info_dup_complaint)
562         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
563         Delete deprecated complaint structs.
564         (elf_symtab_read, elfstab_offset_sections): Replace calls to
565         complain() with calls to complaint().
566         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
567         struct.
568         (stub_noname_complaint): New function.
569         (check_typedef, add_mangled_type): Replace calls to complain()
570         with calls to complaint().
571         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
572         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
573         (hpread_unhandled_type_complaint, hpread_struct_complaint)
574         (hpread_array_complaint, hpread_type_lookup_complaint)
575         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
576         (hpread_unhandled_common_complaint)
577         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
578         struct definitions and declarations.
579         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
580         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
581         Replace calls to complain() with, possibly indirect, calls to
582         complaint().
583         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
584         Likewise.
585         * mdebugread.c (bad_file_number_complaint, index_complaint)
586         (aux_index_complaint, block_index_complaint)
587         (unknown_ext_complaint, unknown_sym_complaint)
588         (unknown_st_complaint, block_overflow_complaint)
589         (basic_type_complaint, unknown_type_qual_complaint)
590         (array_index_type_complaint, bad_tag_guess_complaint)
591         (block_member_complaint, stEnd_complaint)
592         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
593         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
594         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
595         (bad_continued_complaint, bad_rfd_entry_complaint)
596         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
597         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
598         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
599         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
600         complaint structs.
601         (index_complaint, unknown_ext_complaint, basic_type_complaint)
602         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
603         (unexpected_type_code_complaint)
604         (function_outside_compilation_unit_complaint): New functions.
605         (parse_symbol, parse_type, upgrade_type, parse_procedure)
606         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
607         Replace calls to complain() with, possibly indirect calls to
608         complaint().
609         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
610         Delete deprecated complaint structs.
611         (lookup__objc_class, lookup_child_selector): Replace complain()
612         with complaint().
613         * remote-vx.c (cant_contact_target): Delete deprecated complaint
614         struct.
615         (vx_lookup_symbol): Replace complain() with complaint().
616         * stabsread.c (invalid_cpp_abbrev_complaint)
617         (invalid_cpp_type_complaint, member_fn_complaint)
618         (const_vol_complaint, error_type_complaint)
619         (invalid_member_complaint, range_type_base_complaint)
620         (reg_value_complaint, vtbl_notfound_complaint)
621         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
622         (unresolved_sym_chain_complaint, stabs_general_complaint)
623         (lrs_general_complaint, multiply_defined_struct): Delete
624         deprecated complaint structs.
625         (invalid_cpp_abbrev_complaint, ref_value_complaint)
626         (stabs_general_complaint, lrs_general_complaint)
627         (msg_unknown_complaint): New functions.
628         (dbx_lookup_type, read_cfront_baseclasses)
629         (read_cfront_member_functions, resolve_symbol_reference)
630         (define_symbol, resolve_live_range, add_live_range, read_type)
631         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
632         (read_one_struct_field, read_baseclasses, read_tilde_fields)
633         (read_cfront_static_fields, attach_fields_to_type)
634         (complain_about_struct_wipeout, read_range_type)
635         (common_block_start, common_block_end, cleanup_undefined_types)
636         (scan_file_globals): Replace complain() with complaint().
637         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
638         Delete deprecated complaint struct declarations.
639         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
640         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
641         (bf_not_found_complaint, ef_complaint, eb_complaint)
642         (function_outside_compilation_unit_complaint): New functions.
643         (record_include_begin, record_include_end, enter_line_range)
644         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
645         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
646         complain() with complaint().
647
648 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
649
650         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
651         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
652         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
653         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
654         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
655         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
656         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
657         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
658         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
659         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
660         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
661         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
662         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
663         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
664         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
665         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
666         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
667         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
668         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
669         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
670         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
671         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
672         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
673         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
674         * config/m88k/xm-dgux.h: Delete.
675         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
676         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
677         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
678         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
679         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
680         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
681         * ch-valprint.c: Delete.
682         
683 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
684
685         * infrun.c (handle_inferior_event): Rearrange code to resume if
686         no catchpoint triggers for an event.
687
688 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
689
690         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
691         and TARGET_WAITKIND_VFORKED cases.
692
693 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
694
695         * infrun.c (handle_inferior_event): Assume that catchpoints
696         are not affected by DECR_PC_AFTER_BREAK.
697
698 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
699
700         * target.c (update_current_target): Don't inherit DONT_USE.
701         * target.h (struct target_ops): Remove DONT_USE.
702         (target_next): Remove macro.
703
704 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
705
706         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
707
708 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
709
710         * arm-tdep.c (convert_from_extended): New argument to hold the
711         type of floating point result we want to convert to.  Make input 
712         argument const.  Fix all callers.
713         (convert_to_extended): Similarly.
714         (arm_extract_return_value): Now takes a regcache argument.  Change
715         code to use regcache accessor functions.  Correctly extract 
716         smaller-than-word results on big-endian machines.
717         (arm_store_return_value): Now takes a regcache argument.  Change
718         code to use regcache accessor functions.  Correctly zero/sign extend
719         smaller than word results before storing into r0.
720         (arm_gdbarch_init): Register new-style extract_return_value and
721         store_return_value functions.
722
723 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
724
725         * thread-db.c (thread_from_lwp): Uniquify error msg.
726         (lwp_from_thread): Ditto.
727         (check_event): Ditto.
728         (find_new_threads_callback): Ditto.
729         (thread_db_pid_to_str): Ditto.
730
731 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
732
733         * frame.h (get_frame_saved_regs): Declare.
734         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
735         pointer.
736         * frame.c (get_frame_saved_regs): New function.
737         (frame_saved_regs_zalloc): Return the allocated saved_regs.
738
739 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
740
741         * frame.c (deprecated_update_current_frame_pc_hack): New
742         function.
743         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
744         * infrun.c (normal_stop): Use said function instead of directly
745         modifying the frame's PC.
746         
747 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
748
749         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
750
751 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
752
753         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
754         config/mips/tm-irix6.h (NUM_REGS): Delete.
755         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
756         (temp_saved_regs): Declare as a pointer rather than an array.
757         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
758         that ``temp_saved_regs'' has storage allocated to it and that
759         it's the correct size.
760
761 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
762
763         * defs.h (init_last_source_visited): New prototype.
764         (add_path): Ditto.
765         * source.c (add_path): New function that adds to a specified path.
766         (mod_path): Change to call add_path.
767         (init_last_source_visited): New function to allow interfaces to
768         initialize static variable: last_source_visited.  Part of fix
769         for PR gdb/741.
770         * Makefile.in: Add support for mi/mi-cmd-env.c.
771
772 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
773
774         * frame.h (frame_id_unwind): Declare.
775         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
776         id_unwind_cache.
777         (frame_id_unwind_ftype): Declare.
778         * frame.c (frame_id_unwind): New function.
779         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
780         (create_new_frame, get_prev_frame): Pass id_unwind to
781         set_unwind_by_pc.
782         (frame_saved_regs_id_unwind): New function.
783         (frame_saved_regs_id_unwind): New function.
784         * dummy-frame.c (dummy_frame_id_unwind): New function.
785         (struct dummy_frame): Add field id.
786         (generic_push_dummy_frame): Initialize `id'.
787         * dummy-frame.h (dummy_frame_id_unwind): Declare.
788
789 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
790
791         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
792         pass that to set_momentary_breakpoint.  Move comments to where they
793         belong.
794         * frame.h (set_current_frame): Delete declaration.
795         * frame.c (set_current_frame): Delete function.
796
797 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
798
799         * frame.c (frame_extra_info_zalloc): New function.
800         * frame.h (frame_extra_info_zalloc): Declare.
801
802 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
803
804         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
805         in the previous prototype change to set_momentary_breakpoint.
806
807 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
808
809         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
810         and saw_child_exec.
811         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
812         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
813         (stop_stepping): Remove outdated check for child vfork events.
814
815 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
816
817         * GDB 5.3 released from gdb_5_3-branch.
818
819 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
820
821         * corelow.c (init_core_ops): Delete references to to_require_attach
822         and to_require_detach.
823         * exec.c (init_exec_ops): Likewise.
824         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
825         hppa_require_detach directly.
826         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
827         * inftarg.c (child_detach): Remove.
828         (child_detach_from_process): Rename to child_detach, remove
829         after_fork argument.
830         (child_attach): Remove.
831         (child_attach_to_process): Rename to child_attach, remove after_fork
832         argument.
833         (init_child_ops): Delete references to to_require_attach
834         and to_require_detach.
835         * infttrace.c (hppa_require_attach): Update comment.
836         * target.c (cleanup_target, update_current_target)
837         (init_dummy_target, setup_target_debug): Delete references to
838         to_require_attach and to_require_detach.
839         (find_default_require_detach, find_default_require_attach)
840         (debug_to_require_attach, debug_to_require_detach): Remove
841         functions.
842         * target.h (struct target_ops): Remove to_require_attach
843         and to_require_detach.
844         (target_require_attach, target_require_detach): Delete macros.
845         (find_default_require_detach, find_default_require_attach): Delete
846         prototypes.
847         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
848
849 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
850
851         * frame.c (get_frame_extra_info): New function.
852         * frame.h (get_frame_extra_info): Declare.
853
854 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
855
856         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
857         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
858         with `struct frame_id'.
859         (set_longjmp_resume_breakpoint): Ditto.
860         * infrun.c (handle_inferior_event): Update.
861         * breakpoint.c (watch_command_1, until_break_command): Update.
862         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
863         (handle_inferior_event, step_over_function): Update.
864         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
865         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
866         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
867         * infcmd.c (finish_command, run_stack_dummy): Update.
868
869 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
870
871         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
872         (dwarf2_non_const_array_bound_ignored)
873         (dwarf2_missing_line_number_section)
874         (dwarf2_statement_list_fits_in_line_number_section)
875         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
876         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
877         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
878         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
879         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
880         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
881         (dwarf2_missing_member_fn_type_complaint)
882         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
883         (dwarf2_const_value_length_mismatch)
884         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
885         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
886         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
887         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
888         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
889         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
890         complaints using deprecated struct..
891         (dwarf2_non_const_array_bound_ignored_complaint)
892         (dwarf2_complex_location_expr_complaint)
893         (dwarf2_unsupported_at_frame_base_complaint)
894         (dwarf2_const_value_length_mismatch_complaint)
895         (dwarf2_macros_too_long_complaint)
896         (dwarf2_macro_malformed_definition_complaint)
897         (dwarf2_invalid_attrib_class_complaint): New functions.
898         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
899         (read_structure_scope, read_array_type, read_common_block)
900         (read_tag_pointer_type, read_base_type, read_partial_die)
901         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
902         (new_symbol, dwarf2_const_value, read_type_die)
903         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
904         (parse_macro_definition, dwarf_decode_macros): Replace calls to
905         complain() with, possibly indirect, calls to complaint().
906
907 2002-12-11  Andrew Cagney  <cagney@redhat.com>
908
909         * frame.c (deprecated_get_frame_saved_regs): Rename
910         get_frame_saved_regs.
911         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
912         * sparc-tdep.c: Update.
913         * hppa-tdep.c: Update.
914         * h8500-tdep.c: Update.
915
916 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
917
918         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
919         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
920         ``char *'' for return and parameter types.
921         * gdbarch.h, gdbarch.c: Regenerate.
922         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
923         return type from ``char *'' to ``const char *''.
924         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
925         const.
926
927 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
928
929         * i386-tdep.c: Include "dummy-frame.h".
930         (i386_frame_chain, i386_frame_saved_pc): Replace
931         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
932         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
933
934 2002-12-10  Andrew Cagney  <cagney@redhat.com>
935
936         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
937         Change to a function with predicate.
938         * gdbarch.h, gdbarch.c: Re-generate.
939         * frame.c (get_prev_frame): Update.  Test
940         DEPRECATED_INIT_FRAME_PC_P.
941         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
942         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
943         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
944         * alpha-tdep.c (alpha_gdbarch_init): Update.
945         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
946         * mips-tdep.c (mips_gdbarch_init): Update.
947         * i386-interix-tdep.c (i386_interix_init_abi): Update.
948         * arm-tdep.c: Update comments.
949         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
950         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
951         * frv-tdep.c (frv_gdbarch_init): Ditto.
952         * x86-64-tdep.c (x86_64_init_abi): Ditto.
953         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
954         * s390-tdep.c (s390_gdbarch_init): Ditto.
955         * v850-tdep.c (v850_gdbarch_init): Ditto.
956         * vax-tdep.c (vax_gdbarch_init): Ditto.
957         * sh-tdep.c (sh_gdbarch_init): Ditto.
958         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
959         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
960         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
961         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
962         * i386-tdep.c (i386_gdbarch_init): Ditto.
963         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
964         * cris-tdep.c (cris_gdbarch_init): Ditto.
965         * avr-tdep.c (avr_gdbarch_init): Ditto.
966         * arm-tdep.c (arm_gdbarch_init): Ditto.
967         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
968         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
969
970 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
971
972         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
973         CHILD_FOLLOW_FORK.
974         * hppah-nat.c (saved_vfork_pid): Add.
975         (child_post_follow_vfork): Remove.
976         (child_follow_fork): New function.
977         (child_wait): Call detach_breakpoints after receiving the child vfork.
978         Call child_resume directly instead of going through resume ().
979         Make sure we have the exec before reporting the vfork.
980         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
981         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
982         (follow_fork): New function.  Call target_follow_fork.
983         (follow_inferior_reset_breakpoints): New function broken out from
984         old follow_inferior_fork.
985         (resume): Remove hack to follow exec after vfork.
986         * inftarg.c (child_post_follow_vfork): Remove.
987         (child_follow_fork): New function.
988         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
989         * target.c (cleanup_target): Replace to_post_follow_vfork with
990         to_follow_fork.
991         (update_current_target): Likewise.
992         (setup_target_debug): Likewise.
993         (debug_to_post_follow_vfork): Remove.
994         (debug_to_follow_fork): New function.
995         * target.h (struct target_ops): Replace to_post_folow_vfork with
996         to_follow_fork.
997         (child_post_follow_vfork): Remove prototype.
998         (child_follow_fork): Add prototype.
999         (target_post_follow_vfork): Remove macro.
1000         (target_follow_fork): Add macro.
1001
1002 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1003
1004         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1005         (child_post_follow_vfork): Cancel pending exec event if we follow
1006         the parent.
1007         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1008         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1009         event at the following wait call if necessary.
1010         * infrun.c (follow_vfork): Don't follow_exec here.
1011         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1012         case about HP/UX 10.20.  Remove code pushed down to
1013         hppah-nat.c:child_wait.
1014         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1015         vfork_in_flight is set.
1016
1017 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1018
1019         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1020         for the parent's fork event.
1021         * infrun.c (handle_inferior_event): Only expect one fork event.
1022         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1023         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1024
1025 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1026
1027         * PROBLEMS: Delete reference to PR gdb/725.
1028         
1029         * MAINTAINERS (gdb.c++): Add David Carlton.
1030
1031 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1032
1033         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1034         * cli/cli-cmds.c: Ditto.
1035
1036 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1037
1038         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1039         function address in <>.
1040         * gdbarch.c: Re-generate.
1041
1042 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1043
1044         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1045
1046 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1047
1048         * linespec.c (symtab_from_filename): New function.
1049         (decode_line_1): Move code into symtab_from_filename.
1050
1051 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1052
1053         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1054
1055 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1056
1057         * f-valprint.c (info_common_command): Use get_frame_pc.
1058         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1059         * ax-gdb.c (agent_command): Ditto.
1060         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1061         (rs6000_pop_frame): Ditto.
1062         (rs6000_frameless_function_invocation): Ditto.
1063         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1064         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1065         * macroscope.c (default_macro_scope): Ditto.
1066         * stack.c (print_frame_info_base): Ditto.
1067         (print_frame, frame_info, print_frame_label_vars): Ditto.
1068         (return_command, func_command, get_frame_language): Ditto.
1069         * infcmd.c (finish_command): Ditto.
1070         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1071         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1072         (break_at_finish_at_depth_command_1): Ditto.
1073         (break_at_finish_command_1): Ditto.
1074         (until_break_command, get_catch_sals): Ditto.
1075         * blockframe.c (func_frame_chain_valid): Ditto.
1076         (frameless_look_for_prologue): Ditto.
1077         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1078
1079 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1080
1081         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1082         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1083
1084 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1085
1086         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1087         to pure functions.
1088         * gdbarch.h, gdbarch.c: Re-generate.
1089         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1090         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1091
1092         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1093         declaration to a function returning a CORE_ADDR.
1094         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1095         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1096         (init_frame_pc_default): Ditto.
1097         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1098         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1099         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1100         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1101         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1102         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1103
1104         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1105         to init_frame_pc_noop.
1106         (i386_interix_init_frame_pc): Delete function.
1107         * z8k-tdep.c (init_frame_pc): Delete function.
1108         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1109         (INIT_FRAME_PC_FIRST): Ditto.
1110         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1111         (INIT_FRAME_PC_FIRST): Ditto.
1112         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1113         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1114         init_frame_pc_noop.
1115         (INIT_FRAME_PC_FIRST): Convert to an expression.
1116         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1117
1118 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1119
1120         * blockframe.c: Use get_frame_base instead of directly accessing
1121         the `struct frame_info' member frame.
1122         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1123         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1124
1125 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1126
1127         * Makefile.in (readline_h): Define.
1128         (completer.o): Depend on readline_h.
1129         (corelow.o): Ditto.
1130         (event-top.o): Ditto.
1131         (exec.o): Ditto.
1132         (solib.o): Ditto.
1133         (source.o): Ditto. 
1134         (symfile.o): Ditto. 
1135         (symmisc.o): Ditto. 
1136         (top.o): Ditto.
1137         (tracepoint.o): Ditto. 
1138         (utils.o): Ditto.
1139         (cli-dump.o): Ditto.
1140         (tui-hooks.o): Ditto. 
1141         (tuiWin.o): Ditto. 
1142
1143 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1144
1145         More cleanup from import of readline 4.3.
1146         * completer.h (complete_line, readline_line_completion_function):
1147         Update prototypes.
1148         (line_completion_function): Removed, not used outside of completer.c.
1149         * completer.c (readline_line_completion_function,
1150         complete_function, line_completion_function): Use const for first
1151         parameter.
1152         (line_completion_function): Make static.
1153         (filename_completer): filename_completion_function is now called
1154         rl_filename_completion_function
1155         * corelow.c: Include <readline/readline.h>.
1156         * exec.c: Ditto.
1157         * solib.c: Ditto.
1158         * source.c: Ditto.
1159         * symfile.c: Ditto.
1160         * symmisc.c: Ditto.
1161         * top.c (init_main): No need to coerce
1162         readline_line_completion_function anymore.
1163         * cli/cli-dump.c: Include <readline/readline.h>.
1164
1165 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1166
1167         * stack.c (frame_info): Use get_prev_frame.
1168         * blockframe.c (frame_address_in_block): Ditto.
1169         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1170         (rs6000_frameless_function_invocation): Ditto.
1171         (rs6000_frame_saved_pc): Ditto.
1172         (rs6000_frame_chain): Ditto.
1173         * arch-utils.c (init_frame_pc_default): Ditto.
1174
1175 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1176
1177         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1178         Delete redundant definition.
1179
1180 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1181
1182         Import of readline 4.3:
1183         * cli/cli-cmds.c: Include readline/tilde.h.
1184         * cli/cli-setshow.c: Ditto.
1185         * defs.h: Don't declare tilde_expand anymore, since readline
1186         exports it.
1187
1188 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1189
1190         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1191         -Werror on this file.
1192
1193 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1194
1195         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1196         the format name.
1197         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1198         * gdbarch.c: Regenerate.
1199         
1200 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1201
1202         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1203         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1204         provide a default value.
1205         * gdbarch.h, gdbarch.c: Regenerate.
1206         * frame.c (get_prev_frame): Update.  Check
1207         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1208         * s390-tdep.c (s390_gdbarch_init): Update.
1209         * mips-tdep.c (mips_gdbarch_init): Update.
1210         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1211         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1212         * alpha-tdep.c (alpha_gdbarch_init): Update.
1213         
1214 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1215
1216         * ia64-linux-nat.c: Include gdb_string.h.
1217         * alpha-nat.c: Ditto.
1218         * ppc-linux-nat.c: Ditto.
1219         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1220         Update dependencies.
1221
1222 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1223
1224         * gdbthread.h: Include "frame.h".
1225         (struct thread_info): Replace step_frame_address with
1226         step_frame_id.
1227         * inferior.h: Include "frame.h".
1228         (step_frame_id): Replace external variable step_frame_address.
1229         * gdbthread.h (save_infrun_state): Replace step_frame_address
1230         parameter with step_frame_id parameter.
1231         (load_infrun_state): Ditto.
1232         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1233         * infcmd.c (step_frame_id, step_1, step_once): Update.
1234         * thread.c (load_infrun_state, save_infrun_state): Update.
1235         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1236         (handle_inferior_event, step_over_function): Update.
1237         (normal_stop, context_switch, restore_inferior_status): Update.
1238         (struct inferior_status): Replace step_frame_address with
1239         step_frame_id.
1240
1241 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1242
1243         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1244         DW_TAG_member as well as a declaration as being a C++ static data
1245         member.
1246         (read_structure_scope): Combine tests for DW_TAG_member and
1247         DW_TAG_variable.
1248
1249 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1250
1251         * linespec.c (decode_compound): New function.
1252         (decode_line_1): Move code into decode_compound.
1253
1254 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1255
1256         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1257         argument.
1258         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1259         the static block.  See PR gdb/804.
1260
1261 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1262
1263         * symtab.c (lookup_symbol_aux_block): New function.
1264         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1265
1266 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1267
1268         * gdbarch.sh: Dump the predicate function and macro values.
1269         (read): Print error on standard error.
1270         * gdbarch.c: Regenerate.
1271         
1272 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1273
1274         * Makefile.in (mips_tdep_h): Define.
1275         (mips-tdep.o): Add mips_tdep_h to dependency list.
1276         * mips-tdep.h: New file.
1277         * mips-tdep.c (mips-tdep.h): Include.
1278         (enum mips_abi): Move to mips-tdep.h.
1279         (mips_abi): New function.
1280
1281 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1282
1283         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1284
1285 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1286
1287         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1288         function.
1289         (lookup_symbol_aux_minsyms): New function.
1290
1291 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1292
1293         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1294
1295 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1296
1297         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1298         which is an obsolete macro name.
1299
1300 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1301
1302         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1303         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1304
1305 2002-12-03  H.J. Lu  (hjl@gnu.org)
1306
1307         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1308         (create_breakpoints): Make sure the addr_string field is not
1309         NULL.
1310
1311 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1312
1313         * sparc-nat.c (fetch_inferior_registers)
1314         (store_inferior_registers): Add comment on problem of LWP vs
1315         threads.
1316         
1317         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1318         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1319         (lin_lwp_store_registers): Remove.
1320         (init_lin_lwp_ops): Use fetch_inferior_registers
1321         and store_inferior_registers directly.
1322         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1323         (store_inferior_registers): Likewise.
1324         Fix PR gdb/725.
1325
1326 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1327
1328         * frame.h (get_frame_id): Convert to a function.
1329         (null_frame_id, frame_id_p): Declare.
1330         (frame_id_eq, frame_id_inner): Declare.
1331         (frame_id_build): New function.
1332         * frame.c (get_frame_id): Update.  Use null_frame_id.
1333         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1334         frame_id_inner.
1335         (null_frame_id, frame_id_p): Define.
1336         (frame_id_eq, frame_id_inner): Define.
1337         (frame_id_build): New function.
1338         * varobj.c (varobj_create): Update.
1339         (varobj_update): Update.
1340         * valops.c (value_assign): Update.
1341         (new_root_variable): Update.
1342         * infrun.c (save_inferior_status): Update.
1343         * breakpoint.c (watch_command_1): Update.
1344
1345 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1346
1347         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1348         (SNAP2): Likewise.
1349
1350 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1351
1352         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1353         patch.
1354
1355         * PROBLEMS: Mention PR gdb/725.
1356
1357 2002-12-03  Andreas Schwab  <schwab@suse.de>
1358
1359         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1360
1361 2002-12-02  Adam Fedor  <fedor@gnu.org>
1362             Klee Dienes  <kdienes@apple.com>
1363
1364         * objc-lang.c (objc_printstr): Add width arg to match
1365         printstr prototype.
1366         (compare_selectors): Add 'const' to arg types.
1367         (compare_classes): Likewise.
1368         (find_imps): Cast msym pointer to avoid compiler warning.
1369         (print_object_command): Validate the address before
1370         passing it to the print routine.
1371         (find_objc_msgcall_submethod): Change function argument to
1372         return an int.
1373         * objc-lang.h: Add 'extern' to all function declarations.
1374         (value_nsstring): Add declaration.
1375
1376 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1377
1378         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1379         Fixes a build failure on HP/UX.
1380
1381         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1382         failure on HP/UX. 
1383         (hpread_has_name): Advance declaration to avoid a compilation warning.
1384         (pst_syms_count): Add missing variable type. By change, the compiler
1385         was defaulting to int, which seems a good choice. Fixes a compilation
1386         warning.
1387         (pst_syms_size): Likewise.
1388  
1389 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1390
1391         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1392         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1393         later to set the proper gdbarch methods depending on the osabi.
1394         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1395
1396 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1397
1398         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1399         * osabi.c (gdb_osabi_name): Add strings images for the two new
1400         enum values.
1401         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1402
1403 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1404
1405         * MAINTAINERS (Java): Global maintainers are responible for Java.
1406         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1407         part Java maintainers.
1408
1409 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1410
1411         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1412         Fixes a compilation failure on AiX.
1413
1414 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1415
1416         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1417         why aix-thread.o is not listed.
1418
1419 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1420
1421         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1422         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1423         * gdbarch.h, gdbarch.c: Re-generate.
1424         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1425         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1426         * config/pa/tm-hppa.h, frame.h: Update.
1427         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1428         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1429         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1430         * cris-tdep.c, alpha-tdep.c: Update.
1431         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1432         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1433         (get_prev_frame): Ditto.
1434
1435 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1436
1437         * exec.c (xfer_memory): Replace boolean with int.
1438         * p-exp.y: Use 0 instead of false.
1439         * corelow.c (gdb_check_format): Change return type to int from
1440         boolean.
1441         * utils.c: Don't include <curses.h> or <term.h> first.
1442
1443 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1444
1445         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1446         (m68hc11_register_byte): Remove.
1447         (m68hc11_gdbarch_init): Don't set the above.
1448
1449 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1450
1451         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1452         by calling get_selected_frame.
1453         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1454         set_current_frame, create_new_frame, select_frame and
1455         get_current_frame.
1456         * remote-e7000.c (e7000_start_remote): Ditto.
1457         * remote-mips.c (common_open): Ditto
1458         * remote-rdp.c (remote_rdp_open): Ditto.
1459
1460 2002-11-29  Andreas Schwab  <schwab@suse.de>
1461
1462         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1463         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1464         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1465         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1466         read_memory_unsigned_integer instead of read_memory_integer when
1467         dealing with addresses and instruction opcodes.
1468         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1469         (m68k_linux_frame_saved_pc): Likewise.
1470
1471 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1472
1473         * stack.c (selected_frame, select_frame): Move from here ...
1474         * frame.c (selected_frame, select_frame): ... to here.  Include
1475         "language.h".
1476         * Makefile.in (frame.o): Update dependencies.
1477         * frame.c (get_selected_frame): New function.
1478         * frame.h (get_selected_frame): Declare.
1479         (deprecated_selected_frame): Rename selected_frame.
1480         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1481         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1482         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1483         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1484         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1485         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1486         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1487         * z8k-tdep.c, cli/cli-cmds.c: Update.
1488         
1489 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1490
1491         * frame.h (get_selected_block): Add comments.
1492
1493 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1494
1495         * frame.c (pc_notcurrent): New function.
1496         (find_frame_sal): New function.
1497         * frame.h (find_frame_sal): Declare.
1498         (struct symtab_and_line): Add opaque declaration.
1499         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1500         find_pc_line.
1501         (frame_info): Ditto.
1502         * ada-lang.c (find_printable_frame): Ditto.
1503
1504 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1505
1506         * configure.in: Check that the pthdebug library is recent enough
1507         before enabling thread support on native AiX.
1508         * configure: Regenerate.
1509
1510         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1511         from the list of object files as it is now appended by configure
1512         if thread support is enabled.
1513         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1514         if thread support is enabled.
1515
1516 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1517
1518         * stack.c (get_selected_block): In-line get_current_block.
1519         * frame.h (get_current_block): Delete declaration.
1520         * blockframe.c (get_current_block): Delete function.
1521
1522 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1523
1524         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1525         USE_GENERIC_DUMMY_FRAMES.
1526         * gdbarch.h, gdbarch.c: Regenerate.
1527         * valops.c, frame.c: Update.
1528         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1529         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1530         * config/pa/tm-hppa.h, blockframe.c: Update.
1531         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1532         * m68k-tdep.c, alpha-tdep.c: Ditto.
1533
1534         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1535         * mips-tdep.c: Ditto.
1536
1537 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1538
1539         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1540         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1541         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1542         * gdbarch.c, gdbarch.h: Re-generate.
1543         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1544         (CALL_DUMMY_LOCATION): Delete macro definition.
1545         (PC_IN_CALL_DUMMY): Delete macro definitions.
1546         
1547         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1548         default is already generic_pc_in_call_dummy.
1549         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1550         * v850-tdep.c (v850_gdbarch_init): Ditto.
1551         * sh-tdep.c (sh_gdbarch_init): Ditto.
1552         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1553         * mips-tdep.c (mips_gdbarch_init): Ditto.
1554         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1555         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1556         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1557         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1558         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1559         * avr-tdep.c (avr_gdbarch_init): Ditto.
1560         
1561         * arm-tdep.c (arm_gdbarch_init): Do not set
1562         use_generic_dummy_frames, default is already 1.
1563         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1564         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1565         * v850-tdep.c (v850_gdbarch_init): Ditto.
1566         * sh-tdep.c (sh_gdbarch_init): Ditto.
1567         * s390-tdep.c (s390_gdbarch_init): Ditto.
1568         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1569         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1570         * mips-tdep.c (mips_gdbarch_init): Ditto.
1571         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1572         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1573         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1574         * i386-tdep.c (i386_gdbarch_init): Ditto.
1575         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1576         * frv-tdep.c (frv_gdbarch_init): Ditto.
1577         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1578         * cris-tdep.c (cris_gdbarch_init): Ditto.
1579         * avr-tdep.c (avr_gdbarch_init): Ditto.
1580
1581         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1582         call_dummy_location, default is already AT_ENTRY_POINT.
1583         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1584         * v850-tdep.c (v850_gdbarch_init): Ditto.
1585         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1586         * sh-tdep.c (sh_gdbarch_init): Ditto.
1587         * s390-tdep.c (s390_gdbarch_init): Ditto.
1588         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1589         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1590         * mips-tdep.c (mips_gdbarch_init): Ditto.
1591         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1592         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1593         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1594         * i386-tdep.c (i386_gdbarch_init): Ditto.
1595         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1596         * frv-tdep.c (frv_gdbarch_init): Ditto.
1597         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1598         * cris-tdep.c (cris_gdbarch_init): Ditto.
1599         * avr-tdep.c (avr_gdbarch_init): Ditto.
1600         * arm-tdep.c (arm_gdbarch_init): Ditto.
1601         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1602
1603 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1604
1605         * frame.h: Update comments on set_current_frame, create_new_frame,
1606         flush_cached_frames, reinit_frame_cache, select_frame and
1607         selected_frame.
1608         
1609 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1610
1611         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1612         deprecated pc_in_call_dummy function.
1613         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1614         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1615         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1616         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1617         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1618
1619 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1620
1621         * Makefile.in: Remove Tix dependencies.
1622         * acinclude.m4: Ditto.
1623         * aclocal.m4: Ditto.
1624         * configure.in: Ditto.
1625         * configure: Regenerated.
1626         
1627 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1628
1629         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1630         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1631         * gdbarch.c: Re-generate.
1632         
1633 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1634
1635         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1636         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1637         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1638         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1639         pc_in_call_dummy_at_entry_point.
1640         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1641         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1642         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1643         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1644         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1645         pc_in_call_dummy_on_stack.
1646         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1647         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1648         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1649         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1650         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1651         
1652 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1653
1654         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1655         pc_in_call_dummy_before_text_end
1656         (deprecated_pc_in_call_dummy_after_text_end): Rename
1657         pc_in_call_dummy_after_text_end.
1658         (deprecated_pc_in_call_dummy_on_stack): Rename
1659         pc_in_call_dummy_on_stack.
1660         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1661         pc_in_call_dummy_at_entry_point.
1662         * m68k-tdep.c (m68k_gdbarch_init): Update.
1663         * s390-tdep.c (s390_gdbarch_init): Update.
1664         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1665         * vax-tdep.c (vax_gdbarch_init): Update.
1666         * sparc-tdep.c (sparc_gdbarch_init): Update.
1667         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1668         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1669         * i386-tdep.c (i386_gdbarch_init): Update.
1670         * frv-tdep.c (frv_gdbarch_init): Update.
1671         * cris-tdep.c (cris_gdbarch_init): Update.
1672         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1673         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1674         (deprecated_pc_in_call_dummy_after_text_end)
1675         (deprecated_pc_in_call_dummy_on_stack)
1676         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1677         * alpha-tdep.c (alpha_gdbarch_init): Update.
1678
1679 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1680
1681         * acconfig.h (HAVE_PREAD64): Add.
1682         * configure.in: Check for pread64.
1683         * config.in: Regenerated.
1684         * configure: Regenerated.
1685         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1686         * linux-proc.c (linux_proc_xfer_memory): New function.
1687         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1688
1689 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1690
1691         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1692         pdi's with no name.
1693
1694 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1695
1696         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1697         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1698
1699 2002-11-25  Jim Blandy  <jimb@redhat.com>
1700
1701         * symfile.c (init_objfile_sect_indices): New function.
1702         (default_symfile_offsets): Move the section-index-initializing
1703         stuff into init_objfile_sect_indices, and call that.
1704
1705         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1706         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1707
1708         * symfile.c (syms_from_objfile): Adjust indentation.
1709
1710         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1711         || info_verbose isn't true.
1712
1713 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1716         default to get_frame_base.
1717         * gdbarch.h, gdbarch.c: Regenerate.
1718         * arch-utils.c (default_frame_address): Delete function.
1719         * arch-utils.h (default_frame_address): Delete declaration
1720
1721 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1722
1723         * varobj.c (find_frame_addr_in_frame_chain):
1724         Use get_frame_base instead of FRAME_FP,
1725         obvious fix.
1726
1727 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1728
1729         * frame.h (FRAME_FP): Delete macro.
1730         (get_frame_base): New function declaration.
1731         * frame.c (get_frame_base): New function.
1732         (get_frame_id): Use ->frame.
1733         (frame_find_by_id): Rewrite to use get_frame_id.
1734         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1735         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1736         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1737         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1738         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1739         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1740         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1741
1742 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1743
1744         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1745
1746 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1747
1748         * frame.c (set_unwind_by_pc): Revert change below, use
1749         PC_IN_CALL_DUMMY.
1750         (get_prev_frame): Ditto.
1751
1752 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1753
1754         * dummy-frame.c (pc_in_dummy_frame): New function.
1755         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1756         (find_dummy_frame): Update comment.
1757         (generic_pop_current_frame): Use get_frame_type.
1758         * dummy-frame.h (pc_in_dummy_frame): Declare.
1759         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1760         (create_new_frame): Use pc_in_dummy_frame.
1761         (get_prev_frame): Use pc_in_dummy_frame.
1762         (frame_saved_regs_register_unwind): Use get_prev_frame.
1763         (deprecated_generic_get_saved_register): Use get_prev_frame.
1764
1765 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1766
1767         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1768         from here ...
1769         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1770         (varobj_create): Note that frame ID should be used.
1771         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1772
1773 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1774
1775         * breakpoint.c: Include "gdb_assert.h".
1776         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1777         not being used.
1778         * Makefile.in (breakpoint.o): Update dependencies.
1779         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1780         deprecated_frame_in_dummy.
1781         * stack.c (print_frame_info_base): Ditto.
1782         (frame_info): Ditto.
1783         (print_frame_info_base): Ditto.  Delete dead code.
1784         
1785 2002-11-23  Andreas Schwab  <schwab@suse.de>
1786
1787         * Makefile.in (m68k_tdep_h): Define.
1788         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1789         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1790         * m68k-tdep.c: Move register number enum ...
1791         * m68k-tdep.h: ... to this new file and rename the constants from
1792         E_* to M68K_*.  All uses changed.
1793         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1794         * abug-rom.c: Include "m68k-tdep.h".  Use
1795         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1796         * cpu32bug-rom.c: Likewise.
1797         * dbug-rom.c: Likewise.
1798         * m68k-tdep.c: Likewise.
1799         * m68klinux-nat.c: Likewise.
1800         * remote-est.c: Likewise.
1801         * rom68k-rom.c: Likewise.
1802         * config/m68k/tm-linux.h: Likewise.
1803
1804 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1805
1806         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1807         dummy frame initialization code.
1808         * mips-tdep.c (mips_gdbarch_init): Ditto.
1809
1810 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1811
1812         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1813         attach will hang.
1814
1815 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1816
1817         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1818         to default_frame_address.
1819         * gdbarch.h, gdbarch.c: Re-generate.
1820
1821         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1822         or frame_locals_address to default_frame_address.
1823         * m68k-tdep.c (m68k_gdbarch_init): Update.
1824         * i386-tdep.c (i386_gdbarch_init): Update.
1825         * frv-tdep.c (frv_gdbarch_init): Update.
1826         * sh-tdep.c (sh_gdbarch_init): Update.
1827         * v850-tdep.c (v850_gdbarch_init): Update.
1828         * sparc-tdep.c (sparc_gdbarch_init): Update.
1829         * mips-tdep.c (mips_gdbarch_init): Update.
1830         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1831         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1832         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1833
1834         * cris-tdep.c (cris_frame_args_address): Delete function.
1835         (cris_frame_locals_address): Delete function.
1836         (cris_gdbarch_init): Do not set frame_args_address or
1837         frame_locals_address.
1838
1839 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1840
1841         * thread-db.c (thread_db_load): Tell the user what's going on
1842         if dlopen fails on libthread_db.
1843
1844 2002-11-23  Andreas Schwab  <schwab@suse.de>
1845
1846         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1847         invariant return values.
1848
1849 2002-11-22  Andreas Schwab  <schwab@suse.de>
1850
1851         * valops.c (value_slice): Move declaration of `offset' to avoid
1852         warning.
1853
1854 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1855
1856         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1857         (struct so_stuff): Add end_addr field.
1858         (register_loaded_dll): Calculate and store end address of loaded dll.
1859         (solib_address): New function.
1860         (child_solib_loaded_library_pathname): Pass carefully constructed
1861         section info to safe_symbol_file_add rather than ignoring it.
1862         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1863         DLL is loaded.
1864         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1865         (child_create_inferior): Fix a compiler warning.
1866         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1867         (solib_address): Declare new function.
1868
1869 2002-11-22  Andreas Schwab  <schwab@suse.de>
1870
1871         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1872         and FPS registers.
1873
1874 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1875
1876         * maint.c (_initialize_maint_cmds): Fix typo.  From
1877         Francesco Potorti` <pot@gnu.org>.
1878
1879 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1880
1881         * mips-tdep.c (mips_dump_tdep): Delete references to
1882         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1883         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1884         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1885         * printcmd.c (build_address_symbolic): Delete calls to
1886         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1887         (address_info): Ditto.
1888         Fix PR gdb/773.
1889         
1890 2002-11-19  Klee Dienes  <kdienes@apple.com>
1891             Adam Fedor  <fedor@gnu.org>
1892
1893         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1894         the ability to explicitly specify the quote characters and word
1895         break characters; if NULL is specified for either, use the old
1896         behavior of using the characters used by the completer.
1897         (skip_chars): New function.  Convenience wrapper around
1898         skip_quoted_chars to provide the original skip_chars behavior.
1899         * completer.h (skip_quoted_chars): Add prototype.
1900
1901 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1902
1903         Problems reported by Paul Eggert.
1904         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1905
1906 2002-11-19  Andreas Schwab  <schwab@suse.de>
1907
1908         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1909         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1910         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1911         (m68k_linux_frame_saved_pc): Move to ...
1912         * m68klinux-tdep.c: ... here.  New file.
1913         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1914         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1915
1916 2002-11-19  Adam Fedor  <fedor@gnu.org>
1917
1918         * objc-exp.y: Revert to old skip_quoted usage.
1919
1920 2002-11-19  Adam Fedor  <fedor@gnu.org>
1921
1922         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1923         (objc_lang_h): Define.
1924         (YYFILES): Add objc-exp.tab.c.
1925         (local-maintainer-clean): Remove objc-exp.tab.c.
1926         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1927         
1928 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1929
1930         * p-exp.y (typecast rule): Add automatic dereference of
1931         pascal classes if needed.
1932         (THIS): Set current_type.
1933         Automatically dereference pascal classes. 
1934         (typebase rule): Add ^typebase recognition.
1935
1936 2002-11-18  Adam Fedor  <fedor@gnu.org>
1937
1938         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1939         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1940         (op_name): Handle OP_OBJC_SELF.
1941         * Makefile.in (expprint.o): Add additional depends.
1942
1943 2002-11-18  Adam Fedor  <fedor@gnu.org>
1944
1945         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1946         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1947         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1948         * objc-exp.y: Likewise. 
1949
1950 2002-11-18  Adam Fedor  <fedor@gnu.org>
1951
1952         * gdb/parser-defs.h: (struct objc_class_str): New structure
1953         for parsing ObjC classes.
1954
1955 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1956
1957         * stack.c (frame_relative_level): Copy function from here ...
1958         * frame.c (frame_relative_level): ...to here.
1959
1960 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1961
1962         * frame.h (enum frame_type): Define.
1963         (get_frame_type): Declare.
1964         (struct frame_info): Add field `type'.  Delete field
1965         signal_handler_caller.
1966         (deprecated_set_frame_signal_handler_caller): Declare.
1967         * frame.c (get_frame_type): New function.
1968         (deprecated_set_frame_type): New function.
1969         (create_new_frame): Set the frame's type.
1970         (get_prev_frame): Similar.
1971         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1972         * s390-tdep.c: Ditto.
1973         * m68klinux-nat.c: Ditto.
1974         * ns32k-tdep.c: Ditto.
1975         * x86-64-linux-tdep.c: Ditto.
1976         * vax-tdep.c: Ditto.
1977         * rs6000-tdep.c: Ditto.
1978         * ppc-linux-tdep.c: Ditto.
1979         * i386-interix-tdep.c: Ditto.
1980         * mips-tdep.c: Ditto.
1981         * m68k-tdep.c: Ditto.
1982         * hppa-tdep.c: Ditto.
1983         * ia64-tdep.c: Ditto.
1984         * cris-tdep.c: Ditto.
1985         * arm-tdep.c: Ditto.
1986         * alpha-tdep.c: Ditto.
1987         * i386-tdep.c: Ditto.
1988         * stack.c: Ditto.
1989         * ada-lang.c: Ditto.
1990         * blockframe.c: Update.
1991         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1992         deprecated_set_frame_type instead of signal_handler_caller.
1993         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1994         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1995         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1996
1997 2002-11-18   Klee Dienes  <kdienes@apple.com>
1998
1999         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2000
2001 2002-11-18  Klee Dienes  <kdienes@apple.com>
2002
2003         * buildsym.c (pop_context): Add comment.
2004         
2005 2002-11-18  Klee Dienes  <kdienes@apple.com>
2006
2007         * buildsym.h (pop_context): Convert to function, defined in
2008         buildsym.c.
2009         * buildsym.c: Include gdb_assert.h.
2010         (pop_context): Implement as C function.  Add check for stack
2011         underflow.
2012         * dbxread.c (process_one_symbol): Complain and stop processing
2013         that symbol if we are already at the top of the context stack for
2014         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2015         when processing N_RBRAC.
2016
2017 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2018
2019         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2020         define.
2021         (struct target_waitstatus): Add opaque definition.
2022         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2023         * exec.c (init_exec_ops): Likewise.
2024         * fork-child.c (clone_and_follow_inferior): Remove.
2025         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2026         * inferior.h (clone_and_follow_inferior): Remove prototype.
2027         * infrun.c (follow_fork_mode_both): Remove.
2028         (follow_fork_mode_kind_names): Remove commented out "both".
2029         (follow_inferior_fork): Remove follow_fork_mode_both support.
2030         * inftarg.c (child_clone_and_follow_inferior): Remove.
2031         (child_post_follow_inferior_by_clone): Remove.
2032         (init_child_ops): Don't set to_clone_and_follow_inferior
2033         or to_post_follow_inferior_by_clone.
2034         * target.c (default_clone_and_follow_inferior): Remove.
2035         (cleanup_target): Don't set to_clone_and_follow_inferior
2036         or to_post_follow_inferior_by_clone.
2037         (find_default_clone_and_follow_inferior): Remove.
2038         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2039         (debug_to_clone_and_follow_inferior): Remove.
2040         (debug_to_post_follow_inferior_by_clone): Remove.
2041         (setup_target_debug): Don't set to_clone_and_follow_inferior
2042         or to_post_follow_inferior_by_clone.
2043         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2044         and to_post_follow_inferior_by_clone.
2045         (child_clone_and_follow_inferior): Remove prototype.
2046         (child_post_follow_inferior_by_clone): Remove prototype.
2047         (target_clone_and_follow_inferior): Remove macro.
2048         (target_post_follow_inferior_by_clone): Remove macro.
2049         (find_default_clone_and_follow_inferior): Remove prototype.
2050
2051 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2052
2053         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2054         inferior_has_vforked, and inferior_has_execd instead of
2055         target_has_forked, target_has_vforked, and target_has_execd.
2056         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2057         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2058         (CHILD_WAIT): Define.
2059         (child_wait): Add prototype.
2060         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2061         Add prototype.
2062         (hpux_has_vforked): Likewise, from child_has_vforked.
2063         (hpux_has_execd): Likewise, from child_has_execd.
2064         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2065         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2066         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2067         and hpux_has_syscall_event instead of the target hooks.
2068         * infrun.c (inferior_has_forked, inferior_has_vforked)
2069         (inferior_has_execd): New functions.
2070         * inftarg.c (not_same_real_pid): Remove.
2071         (child_wait): Remove references to not_same_real_pid,
2072         target_has_forked, target_has_vforked, target_has_execd,
2073         and target_has_syscall_event.
2074         (child_has_forked, child_has_vforked, child_has_execd)
2075         (child_has_syscall_event): Remove.
2076         (init_child_ops): Remove references to child_has_forked,
2077         child_has_vforked, child_has_execd, and child_has_syscall_event.
2078         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2079         (hpux_has_vforked): Likewise, from child_has_vforked.
2080         (hpux_has_execd): Likewise, from child_has_execd.
2081         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2082         * target.c (cleanup_target): Remove references to
2083         to_has_forked, to_has_vforked, to_has_execd, and
2084         to_has_syscall_event.
2085         (update_current_target): Likewise.
2086         (setup_target_debug): Likewise.
2087         (debug_to_has_forked): Remove.
2088         (debug_to_has_vforked): Remove.
2089         (debug_to_has_execd): Remove.
2090         (debug_to_has_syscall_event): Remove.
2091         * target.h (struct target_ops): Remove to_has_forked.
2092         to_has_vforked, to_has_execd, and to_has_syscall_event.
2093         (child_has_forked, child_has_vforked, child_has_execd)
2094         (child_has_syscall_event): Remove prototypes.
2095         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2096         prototypes.
2097         (target_has_forked, target_has_vforked, target_has_execd)
2098         (target_has_syscall_event): Remove macros.
2099
2100 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2101
2102         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2103         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2104         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2105         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2106         * target.c (cleanup_target): Remove reference to
2107         to_can_follow_vfork_prior_to_exec.
2108         (update_current_target): Likewise.
2109         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2110         (setup_target_debug): Remove reference to
2111         to_can_follow_vfork_prior_to_exec.
2112         * target.h (struct target_ops): Remove
2113         to_can_follow_vfork_prior_to_exec.
2114         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2115         (target_can_follow_vfork_prior_to_exec): Remove definition.
2116         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2117         define.
2118         * infrun.c (follow_vfork_when_exec): Remove.
2119         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2120         (follow_exec): Likewise.
2121         (handle_inferior_event): Likewise.
2122         (keep_going): Likewise.
2123
2124 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2125
2126         * frame.c (generic_unwind_get_saved_register): Make static.
2127         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2128         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2129         defaults to generic_unwind_get_saved_register.
2130         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2131         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2132         * frv-tdep.c (frv_gdbarch_init): Ditto.
2133         * i386-tdep.c (i386_gdbarch_init): Ditto.
2134         * s390-tdep.c (s390_gdbarch_init): Ditto.
2135         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2136         * v850-tdep.c (v850_gdbarch_init): Ditto.
2137         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2138         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2139         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2140
2141 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2142
2143         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2144         i386-tdep.c.
2145
2146 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2147
2148         * frame.h (sigtramp_saved_pc): Delete declaration.
2149         * blockframe.c (sigtramp_saved_pc): Delete function.
2150         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2151         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2152         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2153         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2154
2155 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2156
2157         * frame.c (frame_pc_unwind): New function.
2158         (frame_saved_regs_pc_unwind): New function.
2159         (frame_register_unwind): Pass unwind_cache instead of
2160         register_unwind_cache.
2161         (set_unwind_by_pc): Add unwind_pc parameter, set.
2162         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2163         (get_prev_frame): Ditto.
2164         * frame.h (frame_pc_unwind_ftype): Declare.
2165         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2166         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2167         (frame_pc_unwind): Declare.
2168         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2169         (struct dummy_frame): Add comment mentioning that values are for
2170         previous frame.
2171         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2172         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2173         (generic_file_frame_chain_valid): Ditto.
2174         * stack.c (frame_info): Ditto.
2175
2176 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2177
2178         * linespec.c (locate_first_half): New function.
2179         (decode_line_1): Move code into locate_first_half.
2180
2181 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2182
2183         * complaints.h: Add comment explaining how to eliminate a
2184         deprecated_complain call.
2185         * complaints.h: Fix spelling errors.
2186
2187 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2188
2189         * printcmd.c: Remove #include "disasm.h".
2190
2191 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2192
2193         * frame.h: Move the most relevant interface functions to the start
2194         of the file.
2195
2196 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2197
2198         * regcache.h (deprecated_registers): Rename registers.
2199         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2200         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2201         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2202         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2203         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2204         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2205         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2206         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2207         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2208         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2209         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2210         * v850ice.c: Update.
2211
2212 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2213
2214         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2215         NULL buffer.
2216
2217 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2218
2219         * regcache.h (deprecated_read_register_bytes): Rename
2220         read_register_bytes.
2221         (deprecated_write_register_bytes): Rename write_register_bytes.
2222         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2223         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2224         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2225         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2226         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2227         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2228         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2229         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2230         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2231         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2232         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2233         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2234         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2235         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2236
2237 2002-11-13  Jim Blandy  <jimb@redhat.com>
2238
2239         * findvar.c (read_var_value): Doc fix.
2240
2241 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2242
2243         * regcache.c (struct regcache): Replace passthough_p with
2244         readonly_p.
2245         (regcache_xmalloc): Initialize readonly_p.
2246         (build_regcache): Initialize readonly_p.
2247         (regcache_save): New function.
2248         (regcache_restore): New function.
2249         (regcache_cpy): Re-implement using regcache_save and
2250         regcache_restore.
2251         (regcache_raw_read): Update.
2252         (regcache_cooked_read): When a read-only cache, checked for cached
2253         pseudo register values.
2254         (regcache_raw_write): Assert that the cache is not read-only.
2255         Remove code handling a non-passthrough cache.
2256         * regcache.h (regcache_save): Declare.
2257         (regcache_restore): Declare.
2258
2259 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2260
2261         * regcache.c (struct regcache_descr): Add fields
2262         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2263         (init_legacy_regcache_descr): Compute the size of a cooked
2264         register cache and then assign that to sizeof_raw_registers.  Set
2265         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2266         (init_legacy_regcache_descr): Ditto.
2267
2268 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2269
2270         * regcache.c (register_buffer): Move to near start of file, update
2271         description.
2272         (regcache_raw_read): Use.
2273         (regcache_raw_write): Use.
2274         (struct regcache): Rename raw_registers to registers and
2275         raw_register_valid_p to register_valid_p.
2276         (regcache_xmalloc): Update.
2277         (regcache_xfree): Update.
2278         (register_buffer): Update.
2279         (regcache_cpy): Update.
2280         (regcache_cpy_no_passthrough): Update.
2281         (regcache_valid_p): Update.
2282         (deprecated_grub_regcache_for_registers): Update.
2283         (deprecated_grub_regcache_for_register_valid): Update.
2284         (set_register_cached): Update.
2285         (regcache_raw_write): Update.
2286
2287 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2288
2289         * p-exp.y (name_not_typename): Use copy_name to
2290         set current_type variable for fields of THIS.
2291
2292 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2293
2294         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2295         * monitor.c (init_base_monitor_ops): Likewise.
2296         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2297         * remote-array.c (init_array_ops): Likewise.
2298         * remote-e7000.c (init_e7000_ops): Likewise.
2299         * remote-es.c (init_es1800_ops): Likewise.
2300         (init_es1800_child_ops): Likewise.
2301         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2302         * remote-sim.c (init_gdbsim_ops): Likewise.
2303         * remote-st.c (init_st2000_ops): Likewise.
2304         * sol-thread.c (init_sol_core_ops): Likewise.
2305         (init_sol_thread_ops): Likewise.
2306         * v850ice.c (init_850ice_ops): Likewise.
2307         * win32-nat.c (init_child_ops): Likewise.
2308         * wince.c (init_child_ops): Likewise.
2309
2310 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2311
2312         * utils.c (gdb_realpath): Make rp a constant pointer.
2313
2314 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2315
2316         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2317         a constant buffer; cannonicalize_file_name(); realpath() with a
2318         pathconf() defined buffer, xstrdup().
2319
2320 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2321
2322         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2323         to hang2.C; hang3.c to hang3.C.
2324
2325 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2326
2327         * findvar.c (read_var_value): Reenable TLS code.
2328
2329 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2330             Jim Blandy  <jimb@redhat.com>
2331         
2332         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2333         * target.c (update_current_target): Add
2334         to_get_thread_local_address.
2335         * target.h (to_get_thread_local_address): Export.
2336         (target_get_thread_local_address): Define.
2337         (target_get_thread_local_address_p): Define.
2338         * thread-db.c: Include solib-svr4.h.
2339         (td_thr_tls_get_addr_p): Define.
2340         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2341         (thread_db_get_thread_local_address): New function.
2342         (init_thread_db_ops): Initialize to_get_thread_local_address.
2343         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2344         * configure: Regenerate.
2345         * config.in: Regenerate.
2346
2347 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2348
2349         * linespec.c (set_flags): New function.
2350         (decode_line_1): Move code into set_flags.
2351
2352 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2353
2354         * linespec.c (decode_line_1): Move chunks of code to separate
2355         functions.
2356         (initialize_defaults): New function.
2357         (decode_indirect): New function.
2358
2359 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2360
2361         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2362         instead of void_code_ptr.
2363         (sigtramp_saved_pc): Ditto.
2364
2365         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2366         i386_fp_regnum_p.
2367
2368 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2369
2370         * gdbtypes.h (struct main_type): Move artificial flag out of
2371         loc.  New member of ``struct field'' named static_kind.  Reduce
2372         overloaded meaning of bitsize.
2373         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2374         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2375         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2376
2377         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2378         new fields.
2379         (template_to_fixed_record_type, template_to_static_fixed_type)
2380         (to_record_with_fixed_variant_part): Likewise.
2381         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2382         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2383         * dwarfread.c (struct_type, enum_type): Likewise.
2384         * hpread.c (hpread_read_enum_type)
2385         (hpread_read_function_type, hpread_read_doc_function_type)
2386         (hpread_read_struct_type): Likewise.
2387         * mdebugread.c (parse_symbol): Likewise.
2388
2389 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2390
2391         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2392         * stack.c (print_frame_info_base): Update.
2393         (print_frame_info_base, frame_info): Update.
2394         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2395         (sparc_frame_saved_pc): Update.
2396         * ada-lang.c (find_printable_frame): Update.
2397         * breakpoint.c (deprecated_frame_in_dummy): Update.
2398         
2399 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2400
2401         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2402         defined.
2403         (regmap): Extend to cover all registers.
2404         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2405         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2406         definitions.
2407         (fetch_register, sore_register): Simplify.
2408         (old_fetch_inferior_registers, old_store_inferior_registers):
2409         Remove functions.
2410         (cannot_fetch_register, cannot_store_register): Change
2411         implementation to use regmap array to decide which registers
2412         cannot be fetched/stored.  This removes $orig_eax from the
2413         registers that cannot be fetched/stored.
2414         (fetch_inferior_registers): Call fetch_register directly instead
2415         of calling old_fetch_inferior_registers.
2416         (store_inferior_registers): Call store_register directly instead
2417         of calling old_store_inferior_registers.
2418         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2419         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2420         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2421
2422 2002-11-09  Klee Dienes  <kdienes@apple.com>
2423
2424         * i387-tdep.c (i387_supply_register): When called with NULL as a
2425         buffer, mark the register as not provided (to mirror the behavior
2426         of supply_register).
2427         (i387_supply_fxsave): Ditto.
2428         (i387_supply_fsave): Ditto (inherits the behavior from
2429         i387_supply_register).
2430
2431 2002-11-09  Klee Dienes  <kdienes@apple.com>
2432
2433         * blockframe.c (sigtramp_saved_pc): Use
2434         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2435         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2436         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2437         
2438 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2439
2440         * frame.c (get_prev_frame): Test prev_p to identify a previously
2441         unwound frame.  Initialize prev_p.
2442         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2443         comment.
2444
2445 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2446
2447         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2448         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2449         more comments.  Zap dead code.
2450
2451 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2452
2453         * infcmd.c (print_vector_info, print_float_info): Move code that
2454         checks whether the target has any registers and whether there is a
2455         selected frame up, such that it is also used if a target provides
2456         multi-arch definitions of these functions.
2457
2458 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2459
2460         * Makefile.in (DESTDIR): Define.
2461         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2462         prefix.
2463
2464         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2465         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2466
2467 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2468
2469         * i386-linux-tdep.c: Include "reggroups.h".
2470         (i386_linux_register_reggroup_p): New function.
2471         (i386_linux_init_abi): Set register_reggroup_p to
2472         i386_linux_register_reggroup_p.
2473         * i386-tdep.h (i386_register_reggroup_p): Declare.
2474         * i386-tdep.c: Include "reggroups.h".
2475         (i386_init_reggroups): New function.
2476         (i386_add_reggroups): New function.
2477         (i386_register_reggroup_p): New function.
2478         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2479         (_initialize_i386_tdep): Call i386_init_reggroups.
2480         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2481         specific reggroups.
2482
2483 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2484
2485         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2486         request that's available in *BSD.
2487
2488         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2489
2490         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2491         FDOFF_REGNUM.
2492
2493 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2494
2495         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2496         * dummy-frame.c (find_dummy_frame): Rename
2497         generic_find_dummy_frame, make static.  Return the dummy frame
2498         instead of the regcache.
2499         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2500         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2501         (dummy_frame_register_unwind): Rename
2502         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2503         * dummy-frame.h (dummy_frame_register_unwind): Rename
2504         generic_call_dummy_register_unwind.
2505
2506 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2507
2508         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2509         except the inclusion of "i386/tm-i386.h", to...
2510         * config/i386/nm-i386v42mp.h: ...here.
2511         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2512
2513 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2514
2515         * Makefile.in (frame.o): Update dependencies.
2516         * blockframe.c (current_frame, frame_obstack_alloc)
2517         (frame_saved_regs_zalloc, get_current_frame)
2518         (set_current_frame, create_new_frame)
2519         (set_unwind_by_pc, get_next_frame)
2520         (flush_cached_frames, reinit_frame_cache)
2521         (frame_saved_regs_register_unwind)
2522         (deprecated_generic_get_saved_register)
2523         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2524         (_initialize_blockframe): Move frame code from here...
2525         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2526         "annotate.h" and "dummy-frame.h".
2527         (_initialize_frame): New function.
2528
2529 2002-11-08  Jim Blandy  <jimb@redhat.com>
2530
2531         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2532         when we finish a function a context.
2533         * buildsym.h (outermost_context_p): New macro.
2534         (Bug analyzed by David Edelsohn.)
2535
2536 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2537
2538         * blockframe.c: Include "dummy-frame.h".
2539         (struct dummy_frame, dummy_frame_stack)
2540         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2541         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2542         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2543         (generic_save_call_dummy_addr, generic_pop_current_frame)
2544         (generic_pop_dummy_frame, generic_fix_call_dummy)
2545         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2546         dummy frame code from here...
2547         * dummy-frame.c: ...to here.  New file.
2548         * dummy-frame.h: New file.
2549         (generic_call_dummy_register_unwind): Declare.
2550         (generic_find_dummy_frame): Declare.
2551         * Makefile.in (SFILES): Add dummy-frame.c.
2552         (dummy-frame.o): Specify dependencies.
2553         (dummy_frame_h): Define.
2554         (COMMON_OBS): Add dummy-frame.o.
2555         (blockframe.o): Update dependencies.
2556
2557 2002-11-08  Jim Blandy  <jimb@redhat.com>
2558
2559         * dwarf2read.c (read_func_scope): Restore local_symbols and
2560         param_symbols after we finish the function context.  (Based on a
2561         patch from David Edelsohn.)
2562
2563 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2564
2565         * linespec.c (symbol_found): New function.
2566         (minsym_found): New function.
2567         (decode_line_1): Separate out some code into separate functions.
2568
2569 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2570
2571         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2572         the benefit of the interix target.
2573         * i386-tdep.h (i386_frameless_signal_p): Declare.
2574
2575 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2576
2577         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2578         declaration that snuck in from change below.
2579
2580 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2581
2582         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2583         all callers.
2584         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2585         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2586         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2587         (i386_mxcsr_regnum_p): new function.  Use instead of
2588         MXCSR_REGNUM_P.
2589         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2590         (i386_sse_regnum_p): Declare.
2591         (i386_mxcsr_regnum_p): Declare.
2592         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2593         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2594         (IS_FP_REGNUM): Update definition.
2595         (IS_FPU_CTRL_REGNUM): Update definition..
2596         (IS_SSE_REGNUM): Update definition..
2597         * i386v-nat.c (register_u_addr): Update.
2598         * go32-nat.c (fetch_register): Update.
2599         (store_register): Update.
2600
2601 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2602
2603         Preparation work to convert the hppa targets to multiarch partial.
2604
2605         * hppa-tdep.c: Add new functions replacing macro bodies from
2606         config/pa/tm-hppa.h. These function will be used to initialize
2607         the gdbarch structure. Import some comments from tm-hppa.h,
2608         and place them where appropriate, to avoid loosing them when
2609         we cleanup this file.
2610         (hppa_reg_struct_has_addr): New function.
2611         (hppa_inner_than): New function.
2612         (hppa_stack_align): New function.
2613         (hppa_pc_requires_run_before_use): New function.
2614         (hppa_instruction_nullified): New function.
2615         (hppa_register_byte): New function.
2616         (hppa_register_virtual_type): New function.
2617         (hppa_store_struct_return): New function.
2618         (hppa_cannot_store_register): New function.
2619         (hppa_frame_args_address): New function.
2620         (hppa_frame_locals_address): New function.
2621         (hppa_smash_text_address): New function.
2622         (hppa_coerce_float_to_double): New function. Requires the inclusion
2623         of "language.h".
2624
2625         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2626
2627         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2628         gdbarch-eligible macro to a call to the new associated function
2629         created in hppa-tdep.c.
2630         (INNER_THAN): Likewise.
2631         (STACK_ALIGN): Likewise.
2632         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2633         (INSTRUCTION_NULLIFIED): Likewise.
2634         (REGISTER_BYTE): Likewise.
2635         (REGISTER_VIRTUAL_TYPE): Likewise.
2636         (STORE_STRUCT_RETURN): Likewise.
2637         (CANNOT_STORE_REGISTER): Likewise.
2638         (FRAME_ARGS_ADDRESS): Likewise.
2639         (FRAME_LOCALS_ADDRESS): Likewise.
2640         (SMASH_TEXT_ADDRESS): Likewise.
2641         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2642         (ABOUT_TO_RETURN): Delete, as no longer used.
2643
2644 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2645
2646         * printcmd.c (disassemble_command): Remove obsolete function.
2647         (_initialize_printcmd): Do not create disassemble command here.
2648         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2649         disassemble command.
2650         (init_cli_cmds): Create disassemble command here instead.
2651
2652 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2653
2654         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2655
2656 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2657
2658         * regcache.h (regcache_cooked_read_using_offset_hack)
2659         (regcache_cooked_write_using_offset_hack): Delete declarations.
2660         (register_changed): Delete declaration.
2661         * regcache.c (regcache_cooked_read_using_offset_hack)
2662         (regcache_cooked_write_using_offset_hack): Delete functions.
2663         (cooked_xfer_using_offset_hack): Delete function.
2664         (register_changed): Delete function.
2665
2666 2002-11-07  Jim Blandy  <jimb@redhat.com>
2667
2668         * macroscope.c: #include "complaints.h".
2669         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2670         but not in the macro table.
2671         * Makefile.in (macroscope.o): Record dependency.
2672
2673 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2674
2675         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2676
2677 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2678
2679         * regcache.c (deprecated_registers_fetched): Update.
2680         * regcache.h (deprecated_registers_fetched): Rename
2681         registers_fetched.
2682         * remote-vxsparc.c (vx_read_register): Update.
2683         * remote-vxmips.c (vx_read_register): Update.
2684         * remote-vx68.c (vx_read_register): Update.
2685         * irix5-nat.c (fetch_core_registers): Update.
2686         * mipsm3-nat.c (fetch_inferior_registers): Update.
2687         * sun3-nat.c (fetch_inferior_registers): Update.
2688         * symm-nat.c (fetch_inferior_registers): Update.
2689         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2690         (fetch_core_registers): Update.
2691         (fetch_kcore_registers): Update.
2692         * mips-nat.c (fetch_inferior_registers): Update.
2693         * corelow.c (get_core_registers): Update.
2694         * a68v-nat.c (fetch_inferior_registers): Update.
2695
2696 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2697
2698         Put in place the framework necessary for multiarching the hppa targets.
2699         * hppa-tdep.c (hppa_gdbarch_init): New function.
2700         (hppa_dump_tdep): New function.
2701         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2702         tdep structure dumper.
2703         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2704         until the multi-arching conversion has partially been completed.
2705
2706 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2707
2708         * valops.c (value_assign): Merge lval_register case into
2709         lval_reg_frame_relative.  Use frame_register and
2710         regcache_cooked_write instead of get_saved_register and
2711         write_register_bytes.  After flushing the register cache, try to
2712         re-select the selected frame.
2713
2714 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2715
2716         * regcache.h (deprecated_register_valid): Rename register_valid.
2717         * regcache.c: Update.
2718         * ia64-aix-nat.c: Update.
2719         * i386gnu-nat.c: Update.
2720         * alpha-nat.c: Update.
2721         * sparc-nat.c: Update.
2722         * lynx-nat.c: Update.
2723         * remote-mips.c: Update.
2724
2725 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2726
2727         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2728         to end of file, to be more consistent with the pratice followed
2729         by other targets.
2730
2731 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2732
2733         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2734         (print_float_info): Print registers in float_reggroup.
2735         (print_vector_info): Print registers in vector_reggroup.
2736         (default_print_registers_info): When all, print registers in
2737         all_reggroup.  Otherwize, print registers in general_reggroup.
2738         (registers_info): Rewrite.  Add support for register groups.
2739         Eliminate a goto.
2740
2741 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2742
2743         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2744         ages.
2745         (symtab_symbol_info): Remove eons old ifdeffed out code.
2746         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2747         command.
2748
2749 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2750
2751         * c-exp.y: Add missing semi-colons.
2752         * f-exp.y: Add missing semi-colons.
2753         * m2-exp.y: Add missing semi-colons.
2754         * p-exp.y: Add missing semi-colons.
2755         Add empty action to start rule to avoid a type clash error when
2756         building with bison >= 1.50.
2757
2758 2002-11-06  Jim Blandy  <jimb@redhat.com>
2759
2760         * macrotab.h (struct macro_source_file): Doc fix.
2761
2762 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2763
2764         * varobj.c (child_exists, cplus_number_of_children): Change
2765         STREQ macro references to strcmp.
2766         (cplus_name_of_child): Change code to handle the fact that
2767         fields are not necessarily contiguous with regards to their 
2768         access control. This is a fix for PR gdb/792.
2769
2770 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2771
2772         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2773         * gdbarch.h, gdbarch.c: Regnerate.
2774         * frame.h (frame_register): Declare.
2775         * frame.c (frame_register): New function.
2776         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2777         GET_SAVED_REGISTER, otherwize call
2778         generic_unwind_get_saved_register.
2779         (frame_register_read): Use frame_register instead of
2780         get_saved_register.
2781
2782 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2783         
2784         From Jim Ingham  <jingham@apple.com>:
2785         * event-top.c (gdb_disable_readline): New function.
2786         (_initialize_event_loop): Move comment.
2787
2788 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2789
2790         * event-loop.c (start_event_loop): Add comment.
2791         Update copyright.
2792
2793 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2794
2795         * infcmd.c (default_print_registers_info): Do not call
2796         PRINT_REGISTER_HOOK.
2797
2798 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2799
2800         * sparc-tdep.c (sparc_print_register_hook): Make static.
2801         (sparc_print_registers_info): New function.
2802         (sparc_do_registers_info): New function.
2803         (sparclet_print_registers_info): New function.
2804         (sparclet_do_registers_info): New function.
2805         (do_sparc_print_registers_info): New function.
2806         (sparc_print_registers): New static function, clone of infcmd.c's
2807         default_print_registers_info.
2808         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2809         (sparclet_do_registers_info): Declare.
2810         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2811         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2812         Re-define.
2813         (sparc_do_registers_info): Declare.
2814         (PRINT_REGISTER_HOOK): Delete macro.
2815         (sparc_print_register_hook): Delete declaration.
2816
2817 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2818
2819         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2820         functions.
2821         (lookup_symbol_aux_local): New function.
2822         (lookup_symbol_aux_symtabs): New function.
2823         (lookup_symbol_aux_psymtabs): New function.
2824
2825 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2826
2827         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2828         previous values of 'objfile' and 'block'.
2829
2830 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2831
2832         * values.c (value_change_enclosing_type): Set 
2833         enclosing_type field correctly also for the case where 
2834         more memory needs to be allocated.
2835
2836 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2837
2838         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2839         of puts_filtered.
2840
2841         * i387-tdep.c (i387_print_float_info): Replace calls to
2842         register_read and deprecated_read_register_gen with calls to
2843         frame_register_read, and make the necessary adjustments to the
2844         surrounding code.
2845
2846 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2847
2848         * gdbarch.sh (register_reggroup_p): Allow default value.
2849         * gdbarch.h, gdbarch.c: Regenerate.
2850
2851 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2852
2853         * regcache.h: Add coment indicating replacements for deprecated
2854         functions.
2855
2856 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2857
2858         * reggroups.h, reggroups.c: New files.
2859         * regcache.c: Include "reggroups.h".
2860         (enum regcache_dump_what): Add `regcache_dump_groups'.
2861         (regcache_dump): Contract size of the "Type" column.  When
2862         specified, dump the register's groups.
2863         (maintenance_print_register_groups): New function.
2864         (_initialize_regcache): Add command `maint print register-groups'.
2865         * Makefile.in (COMMON_OBS): Add reggroups.o
2866         (SFILES): Add reggroups.c.
2867         (reggroups_h): Define.
2868         (regcache.o, gdbarch.o): Update dependencies.
2869         (reggroups.o): Specify dependencies.
2870         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2871         Add opaque declaration for `struct reggroup' in generated .h file.
2872         Include "reggroups.h" in generated .c file.
2873         gdbarch.h, gdbarch.c: Re-generate.
2874
2875 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2876
2877         * regcache.h (deprecated_read_register_gen): Rename
2878         read_register_gen.
2879         (deprecated_write_register_gen): Rename write_register_gen.
2880         * i387-tdep.c: Update.
2881         * x86-64-linux-nat.c: Update
2882         * wince.c: Update.
2883         * thread-db.c: Update.
2884         * win32-nat.c: Update.
2885         * mips-tdep.c: Update.
2886         * d10v-tdep.c: Update.
2887         * cris-tdep.c: Update.
2888         * remote-sim.c: Update.
2889         * remote-rdi.c: Update.
2890         * remote-rdp.c: Update.
2891         * frame.c: Update.
2892         * target.c: Update.
2893         * blockframe.c: Update.
2894         * x86-64-tdep.c: Update.
2895         * xstormy16-tdep.c: Update.
2896         * sh-tdep.c: Update.
2897         * s390-tdep.c: Update.
2898         * rs6000-tdep.c: Update.
2899         * sparc-tdep.c: Update.
2900         * i386-tdep.c: Update.
2901         * dwarf2cfi.c: Update.
2902         * regcache.c: Update.
2903
2904 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2905
2906         New interix-specific files:
2907         * config/i386/nm-interix.h: New file.
2908         * config/i386/interix.mh: New file.
2909         * config/i386/interix.mt: New file.
2910         * i386-interix-nat.c: New file.
2911         * i386-interix-tdep.c: New file.
2912
2913 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2914
2915         * frame.h (deprecated_generic_get_saved_register): Rename
2916         generic_get_saved_register.
2917         * blockframe.c (deprecated_generic_get_saved_register): Update.
2918         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2919         (xstormy16_frame_saved_register): Update.
2920         * sh-tdep.c (sh_gdbarch_init): Update.
2921         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2922         * ia64-tdep.c (ia64_get_saved_register): Update.
2923         * cris-tdep.c (cris_gdbarch_init): Update.
2924         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2925         * arm-tdep.c (arm_gdbarch_init): Update.
2926
2927 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2928
2929         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2930
2931 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2932
2933         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2934         trampolines in sigaction.
2935
2936 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2937
2938         * h8300-tdep.c: Include "gdb_assert.h".
2939         (h8300_print_register): Add gdbarch, file and frame parameters.
2940         Use frame_read_unsigned_register to read the register's value.
2941         Use fprintf_filtered to display output.
2942         (h8300_print_registers_info): Replace h8300_do_registers_info.
2943         (h8300_gdbarch_init): Set print_registers_info.
2944
2945 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2946
2947         * frame.c (frame_read_unsigned_register): New function.
2948         (frame_read_signed_register): New function.
2949         * frame.h (frame_read_unsigned_register): Declare.
2950         (frame_read_signed_register): Declare.
2951
2952 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2953
2954         * h8500-tdep.c (h8500_print_registers_info): New static function,
2955         clone of infcmd.c's default_print_registers_info.
2956         (h8500_do_registers_info): New funtion.
2957         (h8500_print_register_hook): Rename print_register_hook, make
2958         static.
2959
2960         * config/h8500/tm-h8500.h: Update copyright.
2961         (DEPRECATED_DO_REGISTERS_INFO): Define.
2962         (h8500_do_registers_info: Declare.
2963         (PRINT_REGISTER_HOOK): Delete macro.
2964         (print_register_hook): Delete function.
2965
2966 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2967
2968         * z8k-tdep.c (z8k_print_register_hook): Make static.
2969         (z8k_print_registers_info): New static function, clone of
2970         infcmd.c's default_print_registers_info.
2971         (z8k_do_registers_info): New function.  Wrap
2972         z8k_print_registers_info.
2973         * config/z8k/tm-z8k.h: Update copyright.
2974         (PRINT_REGISTER_HOOK): Delete macro.
2975         (z8k_print_register_hook): Delete declaration.
2976         (DEPRECATED_DO_REGISTERS_INFO): Define.
2977         (z8k_do_registers_info): Declare.
2978
2979 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2980
2981         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2982         as this is already provided by value.h, and was actually causing
2983         a compilation error because of a conflict in parameter type
2984         declaration due to a missing const keyword.
2985         (low_text_segment_addres): Fix a compilation warning.
2986
2987 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2988
2989         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2990         registers without a name.
2991         (mips_linux_cannot_store_register): Don't store registers without
2992         a name.
2993
2994 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2995
2996         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2997         out.)
2998         * symtab.h: Delete prototype for find_addr_symbol.
2999
3000 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3001
3002         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3003         DO_REGISTERS_INFO.
3004         gdbarch.h, gdbarch.c: Re-generate.
3005         * infcmd.c (default_print_registers_info): Update reference.
3006         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3007         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3008         * sh-tdep.c (sh_gdbarch_init): Ditto.
3009         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3010         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3011
3012 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3013
3014         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3015         cfi_init_extra_frame_info.
3016         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3017         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3018
3019         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3020         target where necessary.  Add more comments and remove the ones
3021         that don't provide any useful information.
3022
3023         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3024         deprecated_read_register_dummy with
3025         frame_unwind_unsigned_register.
3026
3027         * i386-tdep.c (i386_extract_struct_value_address): Use
3028         regcache_raw_read_unsigned instead of
3029         regcache_cooked_read_unsigned since we know that the register
3030         we're reading isn't a pseudo register.  Rename variable 'val' into
3031         the more descriptive 'addr'.
3032
3033         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3034         (x86_64_push_return_address): Add comment.
3035         (x86_64_pop_frame): Make static.
3036         (examine_argument): Clarify comment.
3037         (x86_64_skip_prologue): Make prolog_expact variable static.
3038
3039         * dwarf2cfi.c: Fix some formatting problems.
3040         (context_cpy, read_encoded_pointer): Clarify comments.
3041
3042         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3043         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3044         i386 target back into x86_64_gdbarch_init.  Add some comments and
3045         remove meaningless ones.
3046
3047 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3048
3049         * complaints.h (struct deprecated_complaint): Rename `struct
3050         complaint'.
3051         * complaints.c (complain): Update.
3052         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3053         incorrect comment indicating that "symfile.h" was being included
3054         for the `struct complaint' definition.
3055         * remote-vx.c: Update.
3056         * objc-lang.c: Update.
3057         * xcoffread.c: Update.
3058         * hpread.c: Update.
3059         * mdebugread.c: Update.
3060         * stabsread.c: Update.
3061         * dwarf2read.c: Update.
3062         * dwarfread.c: Update.
3063         * elfread.c: Update.
3064         * coffread.c: Update.
3065         * stabsread.h: Update.
3066         * dbxread.c: Update.
3067         * buildsym.c: Update.
3068         * gdbtypes.c: Update.
3069         * macrotab.c: Update.
3070
3071 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3072
3073         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3074         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3075         (x86_64_init_abi): ...new function.
3076
3077         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3078         * i386v-nat.c: Include "i386-tdep.h".
3079
3080 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3081
3082         * gdbtypes.c (address_space_name_to_int): Update.
3083         (address_space_int_to_name): Update.
3084         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3085         multi-arch predicate.
3086         (address_class_name_to_type_flags): Ditto.
3087         * gdbarch.h, gdbarch.c: Re-generate.
3088         
3089         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3090
3091 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3092
3093         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3094
3095 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3096
3097         * symtab.h (INIT_SAL): Delete macro.
3098         (init_sal): Export.
3099         * symtab.c (init_sal): New function.
3100
3101         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3102         to init_sal function call.
3103         (find_sal_from_funcs_and_line): Ditto.
3104         (all_sals_for_line): Ditto. 
3105         * breakpoint.c (create_internal_breakpoint): Ditto. 
3106         (create_fork_vfork_event_catchpoint): Ditto. 
3107         (create_exec_event_catchpoint): Ditto. 
3108         (parse_breakpoint_sals): Ditto. 
3109         (watch_command_1): Ditto. 
3110         (handle_gnu_4_16_catch_command): Ditto.
3111         (clear_command): Ditto. 
3112         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3113         * infcmd.c (run_stack_dummy): Ditto. 
3114         * infrun.c (process_event_stop_test): Ditto.
3115         (check_sigtramp2): Ditto.
3116         (step_over_function): Ditto. 
3117         * linespec.c (decode_line_2): Ditto. 
3118         (decode_line_1): Ditto. 
3119         * source.c (line_info): Ditto. 
3120         * symtab.c (find_pc_sect_line): Ditto.
3121
3122 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3123
3124         * dwarf2cfi.c (struct context)
3125         (struct context_reg): Moved to dwarf2cfi.h
3126         (context_alloc, frame_state_alloc, context_cpy):
3127         Made extern instead of static, removed prototypes.
3128         * dwarf2cfi.h (struct context)
3129         (struct context_reg): New, moved from dwarf2cfi.c
3130         (context_alloc, frame_state_alloc, context_cpy):
3131         New prototypes.
3132         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3133         Changed from static to extern.
3134         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3135         (LINUX_SIGCONTEXT_FP_OFFSET)
3136         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3137         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3138         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3139         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3140         set_gdbarch_*() calls now use x86-64 specific functions 
3141         instead of DWARF2 CFI ones.
3142         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3143         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3144         (x86_64_init_extra_frame_info): New prototypes.
3145         
3146 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3147
3148         * linespec.c: #include "parser-defs.h".
3149         Delete prototype for find_template_name_end.
3150         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3151
3152 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3153
3154         * NEWS: add recent mi fixes.
3155         * varobj.c (struct varobj): Add new "updated" flag.
3156         (new_variable): Default "updated" flag to 0.
3157         (varobj_set_value): Set "updated" flag to 1 if value
3158         changes.
3159         (varobj_update): Check varobj "updated" flag before
3160         comparing old and refreshed values.  Fix for
3161         PR gdb/702.
3162
3163 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3164
3165         * parse.c (parse_exp_1): Use BLOCK_START.
3166         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3167         SYMBOL_BLOCK_VALUE.
3168         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3169
3170 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3171
3172         * symtab.c: Delete cplusplus_hint.
3173         Delete prototype for find_template_name_end.
3174
3175 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3176
3177         * symtab.h: Update comment.
3178
3179 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3180
3181         * printcmd.c (address_info): Restore quotes in output.
3182         * valops.c (value_of_local): Restore quotes in error message.
3183
3184 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3185
3186         * symtab.c (symbol_demangled_name): New function.
3187         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3188         turning most of it into a function.
3189         (symbol_demangled_name): Export.
3190
3191 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3192
3193         * valops.c (value_of_local): Restore quotes in error message.
3194
3195 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3196
3197         * symtab.c (symbol_init_language_specific): New function.
3198         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3199         turning most of it into a function.
3200         (symbol_init_language_specific): Export.
3201
3202 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3203
3204         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3205         (dwarf_attr_name): Ditto.
3206         (dwarf_type_encoding_name): Ditto.
3207         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3208         (process_die): Handle DW_TAG_namespace,
3209         DW_TAG_imported_declaration, DW_TAG_imported_module.
3210         (read_namespace): New function.
3211
3212 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3213
3214         * configure.in: Define NEW_PROC_API on Interix too.
3215         * configure: Regenerate.
3216
3217 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3218
3219         * configure: Regenerate using the proper version of autoconf.
3220
3221 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3222
3223         * findvar.c (read_var_value): Temporarily disable TLS code, until
3224         complete TLS support is added.
3225
3226 2002-10-21  Jim Blandy  <jimb@redhat.com>
3227             Elena Zannoni  <ezannoni@redhat.com>
3228
3229         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3230         for thread local storage locations.
3231         (struct symbol): Add objfile field.
3232         (SYMBOL_OBJFILE): Define.
3233         * dwarf2read.c (is_thread_local): New static variable.
3234         (new_symbol): If variable is in thread local fill in address class
3235         and objfile appropriately.
3236         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3237         stack operation.
3238         * printcmd.c (address_info): Print the information for thread
3239         local storage variable.
3240         * findvar.c (read_var_value): In case of thread local variable,
3241         defer to the target vector code to compute address.
3242
3243 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3244
3245         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3246         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3247
3248 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3249
3250         * symtab.h (address_class):  Rename
3251         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3252         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3253         * printcmd.c (address_info): Ditto.
3254         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3255
3256 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3257
3258         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3259         DBREG_DRX macro to acces debug registers.
3260
3261         * Makefile.in (i386obsd-tdep.o): New target.
3262
3263         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3264         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3265
3266         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3267         * config/i386/obsd.mt: New file.
3268         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3269         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3270         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3271         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3272         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3273         * i386obsd-tdep.c: New file.
3274
3275 2002-10-19  Adam Fedor  <fedor@gnu.org>
3276
3277         * objc-exp.y (name_not_typename): Fix invalid comment.  
3278
3279 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3280
3281         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3282         to allocate partial syms and macro byte caches.
3283
3284 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3285
3286         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3287
3288 2002-10-18  Adam Fedor  <fedor@gnu.org>
3289
3290         * stabsread.c (find_name_end): New function.
3291         (define_symbol): Use it.
3292
3293 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3294
3295         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3296         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3297         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3298         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3299
3300 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3301
3302         * symfile.h: Add opaque declaration for struct obstack.
3303         Declare obsavestring to take a const char *.
3304         * symfile.c (obsavestring): Make first argument a const char *.
3305
3306 2002-10-16  Adam Fedor  <fedor@gnu.org>
3307
3308         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3309         names when matching breakpoints in current file.
3310
3311 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3312
3313         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3314         (read_tag_pointer_type): Add address class support.
3315         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3316         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3317         New methods.
3318         * gdbarch.h, gdbarch.c: Regenerate.
3319         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3320         (make_type_with_address_space, recursive_type_dump): Add address
3321         class support.
3322         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3323         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3324         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3325
3326 2002-10-16  Klee Dienes  <kdienes@apple.com>
3327
3328         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3329         to get the last character of a char[] buffer, not
3330         name[sizeof(vptr_name)-1].
3331
3332 2002-10-14  Adam Fedor  <fedor@gnu.org>
3333
3334         * symtab.h: New objc_specific struct.
3335         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3336         (SYMBOL_DEMANGLED_NAME): Likewise.
3337
3338 2002-10-14  Adam Fedor  <fedor@gnu.org>
3339
3340         * symfile.c (init_filename_language_table): Add ObjC file extension.
3341
3342 2002-10-14  Adam Fedor  <fedor@gnu.org>
3343
3344         * utils.c (puts_filtered_tabular): New function.
3345         (fprintf_symbol_filtered): Get ObjC demangled name.
3346         * defs.h (puts_filtered_tabular): Declared.
3347
3348 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3349
3350         * c-lang.h (c_type_print_varspec_prefix): Delete.
3351         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3352         ``need_post_space'' parameter.  Adjust all callers.
3353
3354 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3355  
3356         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3357         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3358         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3359         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3360
3361 2002-10-13  Adam Fedor  <fedor@gnu.org>
3362
3363         * source.c (print_source_lines): Update comments.
3364
3365 2002-10-13  Adam Fedor  <fedor@gnu.org>
3366
3367         * valops.c (value_of_local): New function.
3368         (value_of_this): Use it.
3369         * value.h (value_of_local): Declared.
3370
3371 2002-10-13  Adam Fedor  <fedor@gnu.org>
3372
3373         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3374         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3375
3376 2002-10-12  Adam Fedor  <fedor@gnu.org>
3377
3378         * language.c (binop_result_type): Add language_objc to case.
3379         (integral_type): Likewise.
3380         (character_type): Likewise.
3381         (string_type): Likewise.
3382         (boolean_type): Likewise.
3383         (structured_type): Likewise.
3384         (binop_type_check): Likewise.
3385
3386 2002-10-11  Adam Fedor  <fedor@gnu.org>
3387
3388         * printcmd.c (address_info): Print 'self' for ObjC.
3389
3390 2002-10-11  Adam Fedor  <fedor@gnu.org>
3391
3392         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3393         OP_SELF.
3394
3395 2002-10-11  Adam Fedor  <fedor@gnu.org>
3396
3397         * language.h (CAST_IS_CONVERSION): Add language_objc.
3398
3399 2002-10-11  Adam Fedor  <fedor@gnu.org>
3400
3401         * defs.h (enum language): Add language_objc.
3402
3403 2002-10-11  Klee Dienes  <kdienes@apple.com>
3404
3405         * corefile.c (read_memory_typed_address): New function.
3406         * gdbcore.h (read_memory_typed_address): Add prototype.
3407         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3408         to read a value destined for a CORE_ADDR, not read_memory_integer.
3409         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3410         (f77_get_dynamic_lowerbound): Ditto.
3411
3412 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3413
3414         * utils.c (string_to_core_addr): After turning string into
3415         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3416         which will do necessary sign-extension, etc.
3417
3418 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3419
3420         * c-exp.y (THIS): Delete token and grammar rule.
3421         (yylex): Don't return THIS.
3422         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3423         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3424         * demangle.c (cplus_markers): Update comment.  Put '$'
3425         first.  Remove CPLUS_MARKER.
3426         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3427         * jv-exp.y (THIS): Delete token and grammar rule.
3428         (yylex): Don't return THIS.
3429         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3430         * objc-exp.y (THIS): Delete token and grammar rule.
3431         (yylex): Don't return THIS.
3432         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3433         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3434         (read_member_functions): Likewise for opname.
3435         (read_tilde_fields): Use is_cplus_marker.
3436
3437         * defs.h (CPLUS_MARKER): Don't define.
3438         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3439         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3440         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3441         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3442         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3443
3444         * config/i386/tm-i386v4.h: Delete file.
3445         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3446         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3447         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3448         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3449         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3450         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3451         * config/i386/i386v4.mt (TM_FILE): Likewise.
3452         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3453
3454 2002-10-10  Marko Mlinar  <markom@opencores.org>
3455
3456         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3457         accidentially not commited 2002-10-09
3458         * gdbarch.h, gdbarch.c: Re-generate.
3459
3460 2002-10-09  Marko Mlinar  <markom@opencores.org>
3461
3462         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3463         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3464         * gdbarch.h, gdbarch.c: Re-generate.
3465
3466 2002-10-08  Petr Sorfa <petrs@caldera.com>
3467
3468         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3469
3470         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3471         so we can work on more than one compilation unit at a time.  This
3472         helps prepare GDB to handle inter-CU die references.
3473         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3474         the code to be defined before struct comp_unit_head.
3475         (comp_unit_head): Added new members - offset, cu_head,
3476         begin_die, next and dwarf2_abbrevs.
3477         (dwarf2_abbrevs): Removed single static var; now member of
3478         struct comp_unit_head.
3479         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3480         members.
3481         (psymtab_to_symtab_1): Changed to work with the new
3482         struct comp_unit_head.
3483         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3484         constructs the dwarf2_abbrevs[] inside the cu_header.
3485         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3486         dwarf2_abbrev table to clean up.
3487         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3488         handling of dwarf2_abbrevs inside the cu_header.
3489         (read_partial_die): Now supports the call to the new
3490         dwarf2_lookup_abbrev.
3491         (read_full_die): Now supports the call to the new
3492         dwarf2_lookup_abbrev.
3493
3494 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3495
3496         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3497         insure that shell variables, such as "transformed_name" are propagated
3498         to later shell statements in rule.
3499
3500 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3501
3502         * config/i386/nm-i386sco.h: Add protection against
3503         multiple-inclusion.  Include "i386/nm-i386v.h".
3504         (REGISTER_U_ADDR): Remove define.
3505         (i386_register_u_addr): Remove prototype.
3506
3507 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3508
3509         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3510         before treating it as a single-step event.
3511
3512 2002-10-03  Adam Fedor  <fedor@gnu.org>
3513
3514         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3515         (objc_demangle): Remove assignment in if statements, Replace
3516         free with xfree.
3517         (add_msglist): Likewise.
3518         (end_msglist): Likewise.
3519         (complare_selectors): Likewise.
3520         (selectors_info): Likewise.
3521         (compare_classes): Likewise.
3522         (classes_info): Likewise.
3523         (print_object_command): Likewise.
3524         (find_objc_msgcall_submethod): Replace PTR with void *.
3525         * objc-lang.h: Remove check for __STDC__.
3526
3527 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3528
3529         * ui-out.h (ui_out_field_fmt_int): New prototype.
3530         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3531         of field width and alignment.
3532         * stack.c (print_frame_info_base): When printing frame level, use
3533         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3534         PR gdb/192
3535
3536 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3537
3538         * MAINTAINERS: Add self to Write After Approval list.
3539
3540 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3541
3542         * infcmd.c (interrupt_target_command_wrapper): Delete.
3543         (interrupt_target_command): Make non static.
3544         (nofp_registers_info): Make static.
3545         * stack.c (return_command_wrapper): Delete.
3546         (return_command): Make non static.
3547
3548 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3549
3550         * event-top.c (gdb_setup_readline): New function. Code moved from
3551         _initialize_event_loop().
3552         (_initialize_event_loop): Call gdb_setup_readline().
3553
3554 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3555
3556         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3557         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3558         * gdbarch.h, gdbarch.c: Re-generate.
3559
3560 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3561
3562         Fix PR gdb/778
3563         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3564         before recursing.
3565         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3566         of fill_in_vptr_fieldno.
3567
3568 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3569
3570         * inferior.h (registers_info, stepi_command, nexti_command,
3571         continue_command, interrupt_target_command): Export from infcmd.c.
3572         * frame.h (args_info, selected_frame_level_changed_hook,
3573         return_command): Export from stack.c.
3574         * v850ice.c (stepi_command, nexti_command, continue_command): use
3575         prototypes from inferior.h.
3576         * tracepoint.c (registers_info, args_info, locals_info): Use
3577         prototypes from frame.h and inferior.h.
3578         * Makefile.in (mi-main.o): Add dependency on frame.h.
3579
3580 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3581
3582         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3583         value in register 3 adjusted by ppc_gp0_regnum.
3584
3585         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3586
3587 2002-10-02  Marko Mlinar <markom@opencores.org>
3588
3589         * MAINTAINERS: Add myself to the Write After Approval list.
3590
3591 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3592
3593         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3594         of the section for the N64 ABI, fixed.
3595
3596         * config/mips/tm-irix6.h: Include solib.h.
3597
3598 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3599
3600         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3601         GNU operators.
3602
3603 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3604
3605         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3606         and that "mi0" syntax has been removed.
3607
3608 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3609
3610         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3611         * ppc-sysv-tdep.c: #include "gdb_string.h".
3612         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3613         pacify GCC.
3614
3615 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3616
3617         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3618         "vrsave"'s register number.
3619
3620 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3621
3622         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3623         use frame_unwind_signed_register to obtain the PC.
3624         (mips_frame_chain): Handle a generic dummy frame.
3625         (mips_init_extra_frame_info): When a generic dummy frame, don't
3626         re-compute the frame base.
3627         (mips_pop_frame): Handle generic dummy frames.
3628         (mips_gdbarch_init): When generic dummy frames, set
3629         use_generic_dummy_frames, push_dummy_frame to
3630         generic_push_dummy_frame, pc_in_call_dummy to
3631         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3632         generic_save_dummy_frame_tos.
3633
3634 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3635
3636         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3637         against TOP when TOP was explictly set.
3638         (generic_push_dummy_frame): Set TOP to zero.
3639
3640 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3641
3642         * event-loop.c (start_event_loop): Rename variable 'result' to
3643         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3644
3645 2002-09-30  Keith Seitz  <keiths@redhat.com>
3646
3647         * gdb-events.sh (selected_thread_changed): New event.
3648         * gdb-events.c: Regenerated.
3649         * gdb-events.h: Regenerated.
3650
3651 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3652
3653         * MAINTAINERS: Add self to Write After Approval list.
3654
3655 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3656
3657         * disasm.c: New file.  
3658         * disasm.h: New file.  
3659         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3660         (compare_lines): Ditto.
3661         (dump_insns): Ditto.
3662         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3663         argument.
3664         (do_assembly_only): Ditto.
3665         (do_disassembly): Renamed to gdb_disassembly and moved to
3666         disasm.c.  Sdded uiout argument.
3667         * Makefile.in: Add new files.  Reorder SFILES list. Update
3668         dependencies.  Include libgdb.a later in the insight executable.
3669
3670 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3671
3672         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3673         bfd/elf64-alpha-fbsd.c.
3674
3675 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3676
3677         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3678         i386gnu-tdep.c.
3679
3680 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3681
3682         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3683         __FUNCTION__.
3684         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3685         function name.
3686         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3687         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3688         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3689         (S_msg_sig_post_reply): Ditto.
3690         
3691 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3692
3693         * sh-tdep.c (sh_use_struct_convention): Use definition according
3694         to ABI.
3695         (sh_push_arguments): Store in register with correct endianess.
3696         (sh_default_store_return_value): Ditto.
3697         (sh_gdbarch_init): Set sizeof long double to 8.
3698
3699 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3700
3701         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3702         Fix some whitespace problems.
3703
3704 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3705
3706         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3707         (mcore-tdep.o): Ditto.
3708         (ns32k-tdep.o): Ditto.
3709         (ns32knbsd-tdep.o): Ditto.
3710         (sh3-rom.o): Ditto.
3711         (vax-tdep.o): Ditto.
3712         * cris-tdep.c: #include "gdb_string.h"
3713         * mcore-tdep.c: Ditto.
3714         * ns32k-tdep.c: Ditto.
3715         * ns32knbsd-tdep.c: Ditto.
3716         * sh3-rom.c: Ditto.
3717         * vax-tdep.c: Ditto.
3718
3719 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3720
3721         * config/djgpp/fnchange.lst: Add entries for
3722         gdb/testsuite/gdb.c++/m-static files.
3723
3724 2002-09-27  Jim Wilson  <wilson@redhat.com>
3725
3726         * MAINTAINERS: Add myself to the Write After Approval list.
3727
3728 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3729
3730         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3731
3732
3733 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3734
3735         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3736         frame.
3737
3738 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3739
3740         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3741         (rs6000_struct_return_address): Delete variable.
3742         (rs6000_store_struct_return): Update.
3743         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3744         deprecated_extract_struct_value_address.
3745         (rs6000_frame_align): New function.
3746         (rs6000_gdbarch_init): Set frame_align.
3747
3748 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3749
3750         From Grace Sainsbury <graces@redhat.com>:
3751         * Makefile.in (gdbtk-main.o): New target.
3752         (gdb.o): New target.
3753         (main_h): Define.
3754         (main.o): Update dependencies.
3755         (gdb$(EXEEXT)): Add gdb.o.
3756         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3757         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3758         (SUBDIR_GDBTK_CLEAN): Set.
3759         (install-gdbtk): Install the insight binary.
3760         (uninstall-gdbtk): New target.
3761         (all-gdbtk, clean-gdbtk): New rule.
3762         * top.c (use_windows): Default to zero.
3763         * main.c: Include "main.h".
3764         (main): Delete.
3765         (struct captured_main_args): Delete.
3766         (gdb_main): New function.
3767         * main.h: New file.
3768         * gdb.c: New File.
3769
3770 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3771
3772         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3773         (frame_map_regnum_to_name): New function.
3774         (frame_map_name_to_regnum): New function.
3775         * frame.h (frame_map_name_to_regnum): Declare.
3776         (frame_map_regnum_to_name): Declare.
3777         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3778         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3779         * parse.c: Do not include "builtin-regs.h".
3780         (target_map_name_to_register): Delete function.
3781         (write_dollar_variable): Use frame_map_name_to_regnum.
3782         * parser-defs.h (target_map_name_to_register): Delete declaration.
3783         * expprint.c: Include "frame.h".
3784         (print_subexp): Use frame_map_regnum_to_name.
3785         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3786         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3787
3788 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3789
3790         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3791         wasn't saved, and the next innermost frame is a dummy, return the
3792         dummy frame's link register.
3793
3794 2002-09-24  Jim Blandy  <jimb@redhat.com>
3795
3796         Fix from Paul Breed:
3797         * main.c (captured_main): Add a `break' after the case for 'b'.
3798
3799 2002-09-24  Keith Seitz  <keiths@redhat.com>
3800
3801         * varobj.c (c_type_of_child): Use get_target_type instead
3802         of TYPE_TARGET_TYPE.
3803
3804 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3805
3806         * source.c (get_current_or_default_source_symtab_and_line): Remove
3807         function.
3808         (set_default_source_symtab_and_line): New function. Attempts to
3809         determine a source file to list lines from if one is not currently
3810         defined.
3811         (get_current_source_symtab_and_line): Initialize sal.pc and
3812         sal.end fields.
3813         (set_current_source_symtab_and_line): Mark argument as const.
3814         * source.h: Update declarations and comments.
3815         * linespec.c (decode_line_1): Replace call to removed routine above.
3816         * stack.c (print_frame_info_base): Ditto.
3817         * cli/cli-cmds.c (edit_command): Ditto.
3818         (list_command): Ditto.
3819
3820 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3821
3822         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3823         sal.pc and sal.end fields.
3824         (get_current_or_default_source_symtab_and_line): Ditto.
3825         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3826         so we do not cause a new source symtab to be searched for (reverting an
3827         unintentional change from the 2002-09-20 patch).
3828         * scm-lang.c (scm_unpac): Ditto.
3829
3830 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3831
3832         * complaints.c (symfile_explanations): Remove new-line from
3833         ``isolated_message''.
3834         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3835         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3836
3837 2002-09-20  Nick Clifton  <nickc@redhat.com>
3838         
3839         * NEWS: Announce that V850EA ISA is no longer supported.
3840         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3841
3842 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3843
3844         * Makefile.in (c-lang.o): Correct dependencies.
3845         (utils.o): Gather dependencies.
3846         (charset.o): Move.
3847         * c-lang.c: #include "gdb_string.h"
3848
3849 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3850
3851         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3852         * cli/cli-cmds.c (list_command): New function.  Implements the new
3853         cli edit command.
3854         (_init_cli_cmds): Add new command definition.
3855         * gdb.1: Document edit command.
3856         * doc/gdb.texinfo: Document edit command.
3857
3858 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3859
3860         * source.c: Make global variables current_source_symtab and
3861         current_source_line static.
3862         (list_command): Moved to cli/cli-cmds.c.
3863         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3864         (get_first_line_listed): New accessor function.
3865         (get_lines_to_list): New accessor function.
3866         (get_current_source_symtab_and_line): New function. Retrieves the
3867         position in the source code that we consider current.
3868         (get_current_or_default_source_symtab_and_line): New function.
3869         Like the above but attempts to determine a default position if one
3870         is not currently defined.
3871         (set_current_source_symtab_and_line): New function. Sets the source
3872         code position considered current and returns the previously set one.
3873         (clear_current_source_symtab_and_line): Reset stored information about
3874         a current source line.
3875         (_initialize_source): Remove registration for the "list" command and
3876         its alias.
3877         * source.h: Add declarations for the new functions above.
3878         * symtab.h: Remove declarations for the global variables mentioned
3879         above.
3880         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3881         obtain current source line.
3882         * linespec.c (decode_line_1): Ditto.
3883         * macroscope.c (default_macro_scope): Ditto.
3884         * scm-lang.c (scm_unpac): Ditto.
3885         * stack.c (print_frame_info_base): Ditto.
3886         * symfile.c (clear_symtab_users): Ditto.
3887         * symtab.c (decode_line_spec): Ditto.
3888         * cli/cli-cmds.c (list_command): Moved here from source.c.
3889         (ambiguous_line_spec): Moved here from source.c.
3890         (_init_cli_cmds): Add definition for "list" and its alias.
3891         * Makefile.in: Update dependencies.
3892
3893 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3894
3895         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3896         with what gcc thinks is correct.
3897
3898 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3899
3900         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3901         multiple register push instruction.
3902
3903 2002-09-19  Jim Blandy  <jimb@redhat.com>
3904
3905         Add support for distinct host and target character sets.
3906         * charset.c, charset.h: New files.
3907         * c-exp.y: #include "charset.h".
3908         (yylex): Convert character and string literals to the target
3909         character set, before returning them as the semantic value of the
3910         token.
3911         * c-lang.c: #include "charset.h".
3912         (c_emit_char): Use charset-specific methods to recognize
3913         characters with backslash escape forms, to decide which characters
3914         to print literally and which to print using numeric escape
3915         sequences, and to convert target characters to host characters
3916         before printing.
3917         * utils.c: #include "charset.h".
3918         (no_control_char_error): New function.
3919         (parse_escape): Use charset-specific methods to recognize
3920         backslash escapes, parse `control character' notation, and convert
3921         characters from the host character set to the target character set.
3922         * configure.in: Set the default host character set.
3923         Check where to find iconv, and what its argument types might be.
3924         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3925         * Makefile.in (SFILES): List charset.c.
3926         (COMMON_OBS): List charset.o.   
3927         (charset.o): New rule.
3928         (charset_h): New header dependency variable.
3929         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3930         (LIBICONV): New variable, set by configure.
3931         (CLIBS): Include $(LIBICONV) here.
3932         * aclocal.m4, config.in, configure: Regenerated.
3933
3934 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3935
3936         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3937         bison 1.35 warning.
3938
3939 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3940
3941         * gdb_mbuild.sh: New file.
3942
3943 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3944
3945         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3946
3947 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3948
3949         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3950         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3951         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3952         valops.c, value.h: Revert previous change.
3953         
3954 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3955
3956         Preliminary support for Objective-C:
3957         * defs.h (language_objc): New enum value.
3958         (puts_filtered_tabular): Declaration only, exported from utils.c.
3959         (skip_quoted): Delete, declared in completer.h.
3960         * c-exp.y: Include completer.h.
3961         * p-exp.y: Ditto.
3962         * jv-exp.y: Ditto.
3963         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3964         New operator enum values.
3965         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3966         * language.c (binop_result_type): Handle language_objc case.
3967         (integral_type, character_type, string_type, boolean_type,
3968         structured_type, binop_type_check): Ditto.
3969         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3970         (struct objc_specific): Add to general_symbol_info.
3971         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3972         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3973         * parser-defs.h (struct objc_class_str): New struct type.
3974         (start_msglist, end_msglist, add_msglist): Declaration only,
3975         exported from objc-lang.c.
3976         * value.h (value_of_local, value_nsstring, 
3977         call_function_by_hand_expecting_type): Exported from valops.c.
3978         * valops.c (find_function_addr): Export.
3979         (call_function_by_hand_expecting_type): New function.
3980         (value_of_local): New function.
3981         * symfile.c (init_filename_language_table): Add ".m" extension
3982         for Objective-C.
3983         * utils.c (puts_filtered_tabular): New function.
3984         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3985         (set/show demangle): Extend help-string to refer to ObjC.
3986         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3987         * stabsread.c (symbol_reference_defined): Objective-C symbols
3988         may contain colons: make allowances when scanning stabs strings
3989         for colons.
3990         (objc_find_colon): New function.
3991         * printcmd.c (address_info): If language == objc then print
3992         "self" instead of "this".
3993         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3994         OP_NSSTRING, and OP_SELF.
3995         (prefixify_subexp): Ditto.
3996         * source.c (print_source_lines): Mention objc in comment.
3997         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3998         method names.
3999
4000 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4001
4002         * complaints.h: Update copyright.
4003         (struct complaints): Declare.
4004         (struct complaint): Make `message' constant.
4005         (internal_complaint): Declare.
4006         (complaint): Declare.
4007         (complaint_root): Delete declaration.
4008         (symfile_complaints): Delete declaration.
4009         (struct complaints): Add opaque declaration.
4010         (clear_complaints): Add a complaints parameter.
4011         * complaints.c: Update copyright.
4012         (enum complaint_series): Define.
4013         (complaint_root): Delete.
4014         (struct complaints): Define.
4015         (complaint_sentinel, symfile_complaint_book): New variables.
4016         (symfile_explanations, symfile_complaints): New variables.
4017         New variables.
4018         (get_complaints): New function.
4019         (vcomplaint): New function.
4020         (complaint): New function.
4021         (internal_complaint): New function.
4022         (complain): Call vcomplain with symfile_complaint.
4023         (clear_complaints): Rewrite.
4024         (_initialize_complaints): Use add_setshow_command.
4025         * Makefile.in (complaints.o): Update dependencies.
4026         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4027         to call to clear_complaints.
4028         (new_symfile_objfile, reread_symbols): Ditto.
4029         (oldsyms_complaint): Delete.
4030         (empty_symtab_complaint, unknown_option_complaint): Delete.
4031         (free_named_symtabs): Use complaint instead of complain.
4032
4033 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4034
4035         Contributed by Apple Computer, Inc.  Merged with current sources
4036         by Adam Fedor <fedor@doc.com> [cagney].
4037         
4038         * objc-lang.c: First clean-up round: comments, indentation.
4039         * objc-lang.h: Ditto.
4040         * objc-lang.y: Ditto.
4041
4042 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4043
4044         * maint.c (maintenance_internal_error): Print the parameter as the
4045         error message.
4046         (maintenance_internal_warning): New function.
4047         (_initialize_maint_cmds): Add command `maint internal-warning'.
4048
4049         * defs.h (internal_warning, internal_vwarning): Declare.
4050         * utils.c (struct internal_problem): Define.
4051         (internal_vproblem): New function.
4052         (internal_warning): New function.
4053         (internal_vwarning): New function.
4054         (internal_warning_problem, internal_error_problem): New variables.
4055         (internal_verror): Just call internal_vproblem.
4056
4057 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4058
4059         * objc-lang.c: New file, support for Objective-C.
4060         Preliminary check-in, not yet integrated into gdb.
4061         * objc-lang.h: New file.
4062         * objc-exp.y:  New file.
4063
4064 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4065
4066         * infrun.c (signal_stop_update): Convert definition to ISO C.
4067         (signal_print_update): Ditto.
4068         (signal_pass_update): Ditto.
4069         * inflow.c (terminal_save_ours): Ditto.
4070
4071         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4072         comments.
4073         
4074         * config/djgpp/fnchange.lst: Handle name clashes between
4075         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4076         bfd/coff-tic80.c.
4077
4078         * i386-linux-tdep.h: Fix tipo.
4079
4080 2002-09-18  Adam Fedor  <fedor@gnu.org>
4081
4082         * MAINTAINERS: Add myself to the Write After Approval list.
4083
4084 2002-09-18  Jim Blandy  <jimb@redhat.com>
4085
4086         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4087         texthigh and textlow to reader-specific structs caused
4088         objfile_relocate to miss them.  This is fixable, but the work that
4089         the change was supposed to prepare GDB for never got done anyway.
4090
4091 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4092
4093         * MAINTAINERS: Alphabetize Write After Approval list.
4094
4095 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4096
4097         Fix PR gdb/709
4098         * values.c (value_static_field): Call read_var_value.
4099
4100 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4101
4102         * valops.c (hand_function_call): Align the initial stack pointer
4103         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4104         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4105         return value.
4106         * mips-tdep.c (mips_frame_align): New function.
4107         (mips_gdbarch_init): Set frame_align.
4108         * gdbarch.sh (FRAME_ALIGN): New method.
4109         * gdbarch.h, gdbarch.c: Re-generate.
4110
4111 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4112
4113         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4114         registers.
4115
4116 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4117
4118         * NEWS: Mention that MIPS $fp behavior changed.
4119         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4120         reference to FP_REGNUM.
4121         (mipsnbsd_cannot_store_register): Ditto.
4122         * mips-linux-nat.c: Update copyright.
4123         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4124         (mips_linux_cannot_store_register): Ditto.
4125         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4126         * config/mips/tm-mips.h: Update copyright.
4127         (FP_REGNUM): Delete macro.
4128         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4129         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4130         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4131         (mips_r3041_reg_names, mips_r3051_reg_names)
4132         (mips_r3081_reg_names): Replace "fp" with "".
4133         Fix PR gdb/480.
4134
4135 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4136
4137         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4138         generic_read_register_dummy() (PR gdb/703).
4139         (avr_push_return_address): #if 0 out unused vars.
4140         (avr_gdbarch_init): Enable use of avr_push_return_address().
4141
4142 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4143
4144         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4145         RTE will take care of it.
4146
4147 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4148
4149         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4150         invalid, return SP_REGNUM.
4151
4152 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4153
4154         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4155         point registers without sign extension.
4156
4157 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4158
4159         * blockframe.c (deprecated_read_register_dummy): Rename
4160         generic_read_register_dummy.
4161         * frame.c (frame_unwind_signed_register): New function.
4162         (frame_unwind_unsigned_register): New function.
4163         * frame.h (frame_unwind_signed_register): Declare.
4164         (frame_unwind_unsigned_register): Declare.
4165         (deprecated_read_register_dummy): Rename
4166         generic_read_register_dummy.
4167
4168         * h8300-tdep.c (h8300_frame_chain): Update.
4169         (h8300_frame_saved_pc): Update.
4170         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4171         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4172         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4173         (s390_frame_chain): Update.
4174         * v850-tdep.c (v850_find_callers_reg): Update.
4175         (v850_frame_saved_pc): Update.
4176         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4177         (m32r_find_callers_reg): Update.
4178         (m32r_frame_saved_pc): Update.
4179         * sh-tdep.c (sh_find_callers_reg): Update.
4180         (sh64_get_saved_pr): Update.
4181         (sh_init_extra_frame_info): Update.
4182         (sh_init_extra_frame_info): Update.
4183         (sh64_init_extra_frame_info): Update.
4184         (sh64_init_extra_frame_info): Update.
4185         * mcore-tdep.c (mcore_find_callers_reg): Update.
4186         (mcore_frame_saved_pc): Update.
4187         (mcore_init_extra_frame_info): Update.
4188         * i386-tdep.c (i386_frame_saved_pc): Update.
4189         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4190         (ia64_init_extra_frame_info): Update.
4191         (ia64_init_extra_frame_info): Update.
4192         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4193         * cris-tdep.c (cris_init_extra_frame_info): Update.
4194         * avr-tdep.c (avr_frame_chain): Update.
4195         (avr_init_extra_frame_info): Update.
4196         (avr_frame_saved_pc): Update.
4197         * arm-tdep.c (arm_find_callers_reg): Update.
4198         (arm_init_extra_frame_info): Update.
4199         (arm_frame_saved_pc): Update.
4200
4201 2002-09-17  Tom Tromey  <tromey@redhat.com>
4202
4203         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4204         is "'".
4205
4206 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4207
4208         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4209         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4210         NEXT_PROLOGUE_INSN.
4211         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4212         NEXT_PROLOGUE_INSN.
4213
4214 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4215
4216         * osfsolib.c: Remove file, replaced by solib-osf.c.
4217         * Makefile.in: Remove compilation rules for osfsolib.c.
4218
4219 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4220
4221         * cp-valprint.c (cp_print_class_method): Correct args to
4222         check_stub_method_group.
4223
4224 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4225
4226         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4227         `set architecture'.  Unify naming convention of functions.
4228         (h8300_skip_prologue): Improve prologue analysis.
4229         (h8300_push_arguments): Rewritten to more closely match GCC's
4230         bizarre argument-passing behavior, along with the comment describing
4231         said behavior.
4232         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4233         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4234         sim, remote-e7000.c, remote-hms.c and remote.c
4235
4236 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4237
4238         * i386-tdep.c (gdb_print_insn_i386): Removed.
4239         (i386_print_insn): New function.
4240         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4241         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4242         tm_print_insn_info.
4243
4244 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4245
4246         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4247         zero.
4248
4249 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4250
4251         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4252         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4253         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4254
4255 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4256
4257         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4258
4259 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4260
4261         * gdbtypes.c (check_stub_method): Make static.
4262         (check_stub_method_group): New function.
4263         * gdbtypes.h: Update prototypes.
4264         * cp-support.c: New file.
4265         * cp-support.h: New file.
4266
4267         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4268         (update_method_name_from_physname): New function.
4269         (read_member_functions): Correct method names for operators
4270         and v3 constructors/destructors.  Separate v2 constructors and
4271         destructors.
4272         * Makefile.in (stabsread.o): Update dependencies.
4273         (SFILES): Add cp-support.c.
4274         (COMMON_OBS): Add cp-support.o.
4275         (cp_support_h, cp-support.o): Add.
4276
4277         * cp-valprint.c (cp_print_class_method): Call
4278         check_stub_method_group instead of check_stub_method.  Remove
4279         extraneous QUITs.
4280         * p-valprint.c (pascal_object_print_class_method): Likewise.
4281         * valops.c (search_struct_method): Likewise.
4282         (find_method_list, value_struct_elt_for_reference): Likewise.
4283
4284 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4285
4286         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4287         * gdbarch.h, gdbarch.c: Regenerate.
4288
4289 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4290
4291         * frame.c (find_saved_register): Delete function.
4292         * frame.h (find_saved_register): Delete declaration.
4293         Fix PR gdb/631.
4294
4295 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4296
4297         * mips-tdep.c (read_next_frame_reg): Re-hack using
4298         frame_register_unwind.
4299
4300 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4301
4302         * mips-tdep.c (mips_get_saved_register): Re-hack using
4303         frame_register_unwind.
4304
4305 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4306
4307         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4308         vector. Will be useful for Interix.  
4309         * gdbarch.h, gdbarch.c: Regenerate.
4310
4311         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4312         name of the malloc function by NAME_OF_MALLOC.
4313
4314 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4315
4316         * value.h (find_function_in_inferior): Add const keyword to
4317         one of the parameters. Allows us to invoke this function with
4318         a const char *.
4319         * valops.c (find_function_in_inferior): Likewise.
4320
4321 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4322
4323         * exec.c (xfer_memory): Fix compilation warning with old versions
4324         of GCC.
4325         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4326
4327 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4328
4329         * symtab.h: Run through gdb_indent.h.
4330         Add 2002 to Copyright year list.
4331
4332 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4333
4334         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4335         mach constants.
4336         * MAINTAINERS: Add myself to write after approval list.
4337
4338 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4339
4340         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4341
4342 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4343
4344         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4345         Interix.
4346
4347 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4348
4349         * procfs.c (do_detach): Clear current signal, not just fault.
4350         Corrects problem with breakpoint trap signal leaking to detached
4351         process on Tru64.
4352
4353 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4354
4355         * buildsym.c (finish_block): Protect against null pointer.
4356
4357 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4358
4359         * infcmd.c (default_print_registers_info): Send all output to
4360         ``file'' instead of ``gdb_stdout''.
4361
4362 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4363
4364         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4365         LONGEST, and use signed register read (addresses are sign-
4366         extended for mips).
4367
4368 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4369
4370         * event-loop.c (gdb_do_one_event): Make public.
4371         * event-loop.h (gdb_do_one_event): Declare.
4372
4373 2002-09-10  Jeff Law  <law@redhat.com>
4374
4375         * infttrace.c (child_resume): Simplify and rework to avoid
4376         TT_PROC_CONTINUE.
4377
4378 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4379
4380         * printcmd.c (print_scalar_formatted): "len" is the number of
4381         target bytes, NOT the number of target bits.
4382
4383 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4384
4385         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4386         * top.c (init_main): Set rl_terminal_name.
4387
4388 2002-09-08  Aidan Skinner <aidan@velvet.net>
4389
4390         * ada-lang.c (ada_array_bound, ada_type_match,
4391         _initialize_ada_language): Fix K&R definitions.
4392         * ada-tasks.c (get_current_task): Fix K&R definitions.
4393         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4394                         
4395 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4396
4397         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4398         Add XP.
4399
4400 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4401
4402         * i386-tdep.c (i386_register_virtual_type,
4403         i386_register_convertible, i386_register_convert_to_virtual,
4404         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4405         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4406         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4407         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4408         Don't set push_arguments twice.
4409
4410         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4411         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4412         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4413         sigtramp_end to NULL.
4414         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4415         defines.
4416         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4417
4418         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4419         whitespace.
4420
4421         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4422         * gdbarch.h, gdbarch.c: Re-generate.
4423         * blockframe.c (find_pc_sect_partial_function): Convert to use
4424         SIGTRAMP_START_P predicate.
4425
4426 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4427
4428         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4429         generic_dummy_frame method and old method.  Also distinguish
4430         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4431         (arm_extract_return_value): Use new regcache method.
4432
4433         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4434         adjustment that doesn't conform to the ABI.
4435         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4436         saved regcache, not from current regcache.
4437
4438 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4439
4440         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4441         * README: Update.
4442
4443 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4444
4445         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4446         if arm_apcs_32 is false.
4447
4448 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4449
4450         GDB 5.3 branch created.
4451
4452 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4453
4454         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4455         generic_unwind_get_saved_register.
4456
4457 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4458
4459         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4460         argument (PR gdb/653).  Update call to smash_to_method_type.
4461         (read_structure_scope): Update call to dwarf2_add_member_fn.
4462
4463 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4464
4465         * x86-64-linux-tdep.c: Include gdb_string.h
4466         * x86-64-linux-nat.c: Ditto.
4467
4468 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4469
4470         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4471         when YYDEBUG is set to 1.  
4472         * c-exp.y: Likewise.
4473         * f-exp.y: Likewise.
4474         * jv-exp.y: Likewise.
4475         * m2-exp.y: Likewise.
4476         * p-exp.y: Likewise.
4477
4478 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4479
4480         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4481         dependency list.
4482         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4483         solib_svr4_fetch_link_map_offsets to
4484         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4485         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4486         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4487         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4488         solib-svr4.o, and solib-legacy.o.
4489         * config/i386/tm-nbsd.h: Include solib.h.
4490
4491 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4492
4493         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4494         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4495         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4496         comment noting that this needs its own target configuration.
4497         * config/i386/nbsd.mt: New file.
4498         * config/i386/nbsdaout.mt: Remove.
4499         * config/i386/nbsdelf.mt: Ditto.
4500         * config/i386/tm-nbsdaout.h: Ditto. 
4501
4502 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4503
4504         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4505         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4506         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4507         tdep->sigtramp_end.
4508         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4509         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4510         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4511
4512 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4513
4514         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4515         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4516         * i386-tdep.h (i386bsd_init_abi): New prototype.
4517         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4518         function declaration.
4519         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4520         for NetBSD-a.out or NetBSD-ELF.
4521         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4522         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4523         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4524         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4525         and nbsd-tdep.h.
4526         (i386nbsd_pc_in_sigtramp): New function.
4527         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4528         i386nbsd_pc_in_sigtramp.
4529         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4530         and i386nbsdelf_init_abi OS ABI handlers.
4531         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4532         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4533
4534 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4535
4536         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4537         registers if the target really has them.
4538
4539 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4540
4541         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4542         than nbsd-tdep.h.
4543
4544 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4545
4546         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4547         list.
4548         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4549         (alphanbsd_skip_sigtramp_frame): New functions. 
4550         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4551         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4552         to alphanbsd_sigcontext_addr. 
4553
4554 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4555
4556         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4557         list.
4558         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4559         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4560         nbsd_pc_in_sigtramp. 
4561         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4562         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4563         * nbsd-tdep.c: Include gdb_string.h.
4564         (nbsd_pc_in_sigtramp): New function. 
4565         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4566         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4567         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4568         ppcnbsd_pc_in_sigtramp. 
4569         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4570         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4571         shnbsd_pc_in_sigtramp. 
4572         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4573         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4574         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4575
4576 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4577
4578         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4579         watchpoints to NULL.
4580         (insert_breakpoints): set val field of watchpoints if NULL.
4581
4582
4583 2002-08-29  Jim Blandy  <jimb@redhat.com>
4584
4585         * symtab.c (lookup_symbol_aux): In the cases where we find a
4586         minimal symbol of an appropriate name and use its address to
4587         select a symtab to read and search, use `name' (as passed to us)
4588         as the demangled name when searching the symtab's global and
4589         static blocks, not the minsym's name.
4590
4591 2002-08-29  Keith Seitz  <keiths@redhat.com>
4592
4593         * stack.c (print_frame_info_base): Always set current_source_symtab
4594         and current_source_line.
4595
4596 2002-08-29  Donn Terry  <donnte@microsoft.com>
4597
4598         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4599
4600 2002-08-28  Keith Seitz  <keiths@redhat.com>
4601
4602         * stack.c (select_frame): Add FIXME concerning selected-frame
4603         events.
4604         (select_frame_command): Send selected-frame-level-changed
4605         event notification, but only if the level actually changed.
4606         (up_silently_base): Add selected-frame-level-changed event
4607         notification.
4608         (down_silently_base): Likewise.
4609
4610 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4611
4612         * Makefile.in: Update dependencies for all gdb/*.c files.
4613
4614 2002-08-27  Tom Tromey  <tromey@redhat.com>
4615
4616         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4617         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4618         Update dependencies.
4619         * i387-tdep.c: Include gdb_string.h.
4620         * osabi.c: Likewise.
4621         * i386-linux-nat.c: Likewise.
4622         * lin-lwp.c: Likewise.
4623         * ax-gdb.c: Likewise.
4624         * signals/signals.c: Likewise.
4625         * jv-valprint.c: Likewise.
4626         * p-lang.c: Likewise.
4627         * c-valprint.c: Likewise.
4628         * cp-abi.c: Likewise.
4629
4630 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4631
4632         * cli/cli-script.h (copy_command_lines): Export.
4633         * breakpoint.c: Include cli/cli-script.h.
4634         * Makefile.in (breakpoint.o): Update dependencies.
4635
4636 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4637
4638         * breakpoint.c (insert_breakpoints): Protect all references
4639         to 'process_warning'.  Shorten long lines.
4640
4641 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4642
4643         * cli/cli-script.c (copy_command_lines): New function.
4644         * defs.h (copy_command_lines): Export.
4645         * testsuite/gdb.base/commands.exp: New tests for commands
4646         attached to a temporary breakpoint, and for commands that
4647         delete the breakpoint they are attached to.
4648         
4649 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4650
4651         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4652         pointer to the breakpoint commands struct, make a new copy
4653         of the struct and point to that.
4654         (bpstat_clear): Free the commands struct.
4655         (bpstat_clear_actions): Free the commands struct.
4656         (bpstat_do_actions): Free the command actions.  Also execute
4657         the local cleanups, instead of deleting them.
4658         (delete_breakpoint): Leave the commands field of the bpstat
4659         chain alone -- it will be freed later.
4660
4661 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4662
4663         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4664         deleted in 2002-08-20 commit.  This function is still used by
4665         ppc-linux-nat.c.
4666
4667 2002-08-26  Keith Seitz  <keiths@redhat.com>
4668
4669         * gdb-events.sh: Add selected-frame-level-changed event.
4670         * gdb-events.c: Regenerated.
4671         * gdb-events.h: Regenerated.
4672         
4673 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4674
4675         Fix PR gdb/393:
4676         * inflow.c (terminal_save_ours): New function to save terminal
4677         settings.
4678         * inferior.h (terminal_save_ours): Declare.
4679         * target.c (debug_to_terminal_save_ours): New function.
4680         (cleanup_target): Defaults to_terminal_save_ours.
4681         (update_current_target): Inherit to_terminal_save_ours.
4682         (setup_target_debug): Set to_terminal_save_ours.
4683         * target.h (target_terminal_save_ours): New to save terminal settings.
4684         (target_ops): New member to_terminal_save_ours.
4685         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4686         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4687         * inftarg.c (init_child_ops): Likewise.
4688         * m3-nat.c (init_m3_ops): Likewise.
4689         * procfs.c (init_procfs_ops): Likewise.
4690         * wince.c (init_child_ops): Likewise.
4691         * win32-nat.c (init_child_ops): Likewise.
4692         * sol-thread.c (init_sol_thread_ops): Likewise.
4693
4694 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4695
4696         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4697         use regcache_* functions.
4698         (i386_gdbarch_init): Set store_return_value instead of
4699         deprecated_store_return_value.
4700
4701         * regcache.c (regcache_raw_write_signed,
4702         regcache_raw_write_unsigned): New functions.
4703         * regcache.h (regcache_raw_write_signed,
4704         regcache_raw_write_unsigned): New prototypes.
4705
4706 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4707
4708         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4709         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4710         source file dependencies.  Cleanup corresponding generator rules.
4711
4712 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4713
4714         * regcache.h (register_offset_hack): Declare.
4715         (regcache_cooked_read_using_offset_hack): Declare.
4716         (regcache_cooked_write_using_offset_hack): Declare.
4717
4718         * regcache.c (register_offset_hack): New function.
4719         (regcache_cooked_read_using_offset_hack): New function.
4720         (regcache_cooked_write_using_offset_hack): New function.
4721         (regcache_dump): Check that the registers, according to their
4722         offset, are packed hard against each other.
4723         (cooked_xfer_using_offset_hack): New function.
4724
4725 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4726
4727         * regcache.c (struct regcache_descr): Add field register_type.
4728         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4729         in as a parameter
4730         (init_regcache_descr): Initialize register_type.  Pass the descr
4731         to init_legacy_regcache_descr.  Use register_type instead of
4732         REGISTER_VIRTUAL_TYPE.
4733         (register_type): New function.
4734         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4735         * regcache.h (register_type): Declare.
4736
4737 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4738
4739         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4740         instead of deprecated_store_return_value.  Fix fallout from
4741         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4742
4743 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4744
4745         * regcache.c (max_register_size): New function.
4746         (init_legacy_regcache_descr): Ensure that max_register_size is
4747         large enough for REGISTER_VIRTUAL_SIZE.
4748         * regcache.h (max_register_size): Declare.
4749
4750 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4751
4752         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4753         store_return_value.
4754         (e500_extract_return_value): Change type of valbuf pointer to
4755         void.
4756
4757 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4758
4759         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4760         workaround.
4761
4762         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4763         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4764         long long) to prevent compiler warning on 64-bit systems.
4765
4766 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4767
4768         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4769         (DEPRECATED_STORE_RETURN_VALUE): New method.
4770         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4771         * gdbarch.h, gdbarch.c: Re-generate.
4772
4773         * values.c (set_return_value): Pass current_regcache to
4774         STORE_RETURN_VALUE.
4775         * arch-utils.h (legacy_store_return_value): Declare.
4776         * arch-utils.c (legacy_store_return_value): New function.
4777         (legacy_extract_return_value): Update parameters.
4778
4779         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4780         STORE_RETURN_VALUE.
4781         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4782         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4783         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4784         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4785         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4786         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4787         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4788         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4789         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4790         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4791
4792         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4793         * i386-tdep.c (i386_extract_return_value): Update.
4794         * arch-utils.c (legacy_extract_return_value): Update.
4795         * frv-tdep.c (frv_gdbarch_init): Update.
4796         * cris-tdep.c (cris_gdbarch_init): Update.
4797         * d10v-tdep.c (d10v_gdbarch_init): Update.
4798         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4799         * m68k-tdep.c (m68k_gdbarch_init): Update.
4800         * mcore-tdep.c (mcore_gdbarch_init): Update.
4801         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4802         * s390-tdep.c (s390_gdbarch_init): Update.
4803         * sparc-tdep.c (sparc_gdbarch_init): Update.
4804         * sh-tdep.c (sh_gdbarch_init): Update.
4805         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4806         * v850-tdep.c (v850_gdbarch_init): Update.
4807         * avr-tdep.c (avr_gdbarch_init): Update.
4808         * ia64-tdep.c (ia64_gdbarch_init): Update.
4809         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4810         * vax-tdep.c (vax_gdbarch_init): Update.
4811         * alpha-tdep.c (alpha_gdbarch_init): Update.
4812         * arm-tdep.c (arm_gdbarch_init): Update.
4813         * mips-tdep.c (mips_gdbarch_init): Update.
4814         * i386-tdep.c (i386_gdbarch_init): Update.
4815
4816 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4817
4818         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4819         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4820
4821 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4822
4823         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4824         problems.
4825
4826 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4827
4828         * infrun.c (handle_inferior_event): Move a comment outside of a
4829         function call, in order to avoid indent reformatting this part
4830         of the code in an unreadable way.
4831
4832 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4833
4834         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4835         when breakpoints fail. Move general breakpoint error messages to
4836         insert_breakpoints.  
4837         * breakpoint.c (insert_breakpoints): Change warnings when
4838         breakpoints are nto inserted to specify the type. Remove call to
4839         memory_error when hardware breakpoints can't be inserted. Remove
4840         multiple calls to warning so all messages are sent to the user at
4841         once.
4842         (delete_breakpoints): Make insert error messsages more explicit.
4843
4844 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4845
4846         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4847         gdbserver/ChangeLog.
4848
4849 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4850
4851         * i386-tdep.c: Include "objfiles.h".
4852         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4853         skip_trampoline_code.
4854         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4855         (CPLUS_MARKER): Define to '.'.
4856
4857         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4858         member.
4859         (linux_corefile_thread_callback): Increase args->num_notes.
4860         (linux_make_note_section): Initialize thread_args.num_notes, and
4861         use it to determine whether notes for any threads were created.
4862
4863 2002-08-23  Donn Terry  <donnte@microsoft.com>
4864
4865         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4866         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4867         and PCUNKILL.
4868         (write_with_trace): Conditionalize out the switch branch handling
4869         PCSHOLD if the corresponding macro is not defined. Likewise for
4870         PRSABORT and PRSTOP.
4871         This change will be needed by the Interix port.
4872
4873 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4874
4875         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4876         write_register wherever possible instead of manipulating the
4877         register bytes directly.
4878         Assign VALUE_CONTENTS to a variable and use that.
4879         The GPR numbers are now dependent on the architecture.
4880         
4881 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4882
4883         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4884         ev_offset fields.
4885         (skip_prologue): Add support for BookE/e500 instructions.
4886         (e500_extract_return_value): New function.
4887         (frame_get_saved_regs): Add support for saving ev registers and
4888         pseudo gpr's.
4889         (e500_store_return_value): New function.
4890         (rs6000_gdbarch_init): Move up default intializations of
4891         deprecated_extract_return_value and store_return_value.  Overwrite
4892         init of store_return_value with e500 specific version.
4893         Set extract_return_value for e500.
4894         
4895 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4896
4897         * blockframe.c (generic_call_dummy_register_unwind): Use
4898         regcache_cooked_read to catch cases in which the variable is
4899         stored in a pseudo register.
4900
4901 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4902
4903         * NEWS: Mention that the i960 has been made obsolete.
4904         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4905         i960-tdep.c
4906         (remote-nrom.o): Obsolete target.
4907         (remote-nindy.o, i960-tdep.o): Ditto.
4908         * remote-nrom.c: Make file obsolete.
4909         * remote-nindy.c, remote-vx960.c: Ditto.
4910         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4911         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4912         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4913         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4914         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4915         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4916         i960-*-vxworks* obsolete.
4917         * MAINTAINERS: Note that the i960 is obsolete.
4918
4919 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4920
4921         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4922         detach to allow reinitialization.
4923
4924 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4925
4926         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4927         attempt).
4928
4929 2002-08-22  Jim Blandy  <jimb@redhat.com>
4930
4931         * coffread.c (coff_symfile_read): Don't try to read the line
4932         number table from disk if the image file doesn't have a symbol
4933         table; we'll never actually look at the info anyway, and Windows
4934         ships DLL's with bogus file offsets for the line number data.
4935
4936 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4937
4938         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4939         an e500 executable.
4940
4941 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4942
4943         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4944         (MSYMBOL_SIZE): Replace macro with function.
4945         (DEFAULT_MIPS_TYPE): Delete unused macro.
4946         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4947         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4948
4949 2002-08-21  Jim Blandy  <jimb@redhat.com>
4950
4951         * valops.c (value_cast): Simplify and correct logic for doing a
4952         static cast from a pointer to a base class to a pointer to a
4953         derived class.
4954
4955 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4956
4957         * infcmd.c (default_print_registers_info): Replace
4958         do_registers_info.
4959         (registers_info): Use gdbarch_print_registers_info instead of
4960         DO_REGISTERS_INFO.
4961         * inferior.h (default_print_registers_info): Replace
4962         do_registers_info.
4963         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4964         (DO_REGISTERS_INFO): Change to a predicate function.
4965         * gdbarch.h, gdbarch.c: Regenerate.
4966         
4967 2002-08-21  Keith Seitz  <keiths@redhat.com>
4968
4969         * gdb-events.sh: Add target-changed event.
4970         * gdb-events.c: Regenerated.
4971         * gdb-events.c: Regenerated.
4972         * valops.c (value_assign): Add target-changed event notification
4973         to inlval_register, lval_memory, and lval_reg_frame_relative.
4974
4975 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4976
4977         * NEWS: Add an entry regarding the improvement of the next/step
4978         operation on Alpha Tru64 multi-processor machines.
4979
4980 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4981
4982         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4983         directores.
4984         * Makefile.in: Update all _h macro definitions.
4985         * Makefile.in (install-gdbtk): Move to install section.
4986         (rdi-share/libangsd.a): Move to end of file.
4987
4988 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4989
4990         * frame.c (frame_register_unwind): When a register, set addrp to
4991         the register's byte.
4992
4993 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4994
4995         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4996         used locally, so move them from the target machine header to here.
4997         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4998         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4999         Make static.
5000         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5001
5002 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5003
5004         * NEWS: Mention that the Apollo line was made obsolete.
5005         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5006         m68*-hp-hpux* obsolete.
5007         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5008         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5009         * buildsym.c (make_blockvector): Make static.
5010         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5011         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5012         (ALLDEPFILES): Remove dstread.c.
5013         (dstread.o): Obsolete make rule.
5014         * dstread.c: Makefile obsolete.
5015         * dst.h: Ditto.
5016         * config/m68k/hp300hpux.mt: Ditto.
5017         * config/m68k/hp300hpux.mh: Ditto.
5018         * config/m68k/hp300bsd.mt: Ditto.
5019         * config/m68k/hp300bsd.mh: Ditto.
5020         * config/m68k/apollo68b.mt: Ditto.
5021         * config/m68k/apollo68v.mh: Ditto.
5022         * config/m68k/apollo68b.mh: Ditto.
5023
5024 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5025
5026         * mips-tdep.c (mips_in_return_stub): Make static.
5027         (mips_gdbarch_init): Set in_solib_return_trampoline.
5028         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5029
5030 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5031
5032         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5033         * gdbarch.c, gdbarch.h: Regenerate.
5034         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5035         Add.
5036         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5037
5038 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5039
5040         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5041         (mips_gdbarch_init): Set skip_trampoline_code, 
5042         in_solib_call_trampoline.
5043         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5044         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5045
5046 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5047
5048         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5049
5050         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5051         vector type for ev registers.
5052         (e500_pseudo_register_read): New function.
5053         (e500_pseudo_register_write): New function.
5054         (e500_dwarf2_reg_to_regnum): New function.
5055         (PPC_UISA_NOFP_SPRS): New macro.
5056         (PPC_EV_REGS): New macro.
5057         (PPC_GPRS_PSEUDO_REGS): New macro.
5058         (registers_e500): New register set for e500.
5059         (variants): Add e500 variant.
5060         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5061         before setting architectural dependent variations.  Initialize ev
5062         registers numbers.  Add case for e500 architecture.  Set the
5063         number of pseudo registers.
5064
5065 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5066
5067         * rs6000-tdep.c: Clean up comments.
5068
5069 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5070
5071         * h8300-tdep.c: Re-indent file.
5072
5073 2002-08-20  Jim Blandy  <jimb@redhat.com>
5074
5075         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5076         default for this.
5077
5078 2002-08-20  Keith Seitz  <keiths@redhat.com>
5079
5080         * breakpoints.c (watch_command_1): Use internal breakpoint
5081         when setting a watchpoint_scope breakpoint.
5082
5083 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5084
5085         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5086         (build_builtin_type_vec64i): Ditto.
5087         (build_builtin_type_vec128): Ditto.
5088         (build_builtin_type_vec128i): Ditto.
5089
5090 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5091
5092         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5093         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5094         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5095         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5096         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5097         CALL_DUMMY_ADDRESS): Delete.
5098         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5099         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5100         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5101         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5102         push_return_address.
5103         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5104         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5105         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5106         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5107         mips_n32n64_push_arguments, mips_push_return_address,
5108         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5109         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5110
5111 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5112
5113         * mips-tdep.c (mips_frame_num_args): New function.
5114         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5115         frame_saved_pc, frame_args_address, frame_locals_address, 
5116         frame_num_args, and frame_args_skip.
5117         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5118         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5119         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5120         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5121
5122 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5123
5124         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5125         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5126         * mips-tdep.c (mips_store_struct_return): New function.
5127         (mips_extract_struct_value_address): New function.
5128         (mips_gdbarch_init): Set store_struct_return and
5129         extract_struct_value_address.
5130
5131 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5132
5133         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5134         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5135         (read_file_scope): Check that line_header is nonzero before
5136         decoding macro information.
5137
5138 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5139
5140         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5141         flag the general-purpose registers as floating-point on targets
5142         that don't support the floating-point registers.
5143
5144 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5145
5146         * rs6000-tdep.c (altivec_register_p): Delete.
5147         (rs6000_do_altivec_registers): Delete.
5148         (rs6000_altivec_registers_info): Delete.
5149         (rs6000_do_registers_info): Delete.
5150         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5151         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5152
5153 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5154
5155         * infcmd.c (do_registers_info): Print vector registers in hex
5156         format only.
5157         (print_vector_info): Check that printing registers
5158         makes sense.
5159         (print_float_info): Ditto.
5160
5161 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5162
5163         * mips-tdep.c (mips_gdbarch_init): Update.
5164         (mips_o32_extract_return_value): Rewrite.
5165         (mips_o32_store_return_value): Rewrite.
5166         (mips_o32_xfer_return_value): New function.
5167         (mips_xfer_register): Tweak debug print message.  Allow for
5168         buf_offset when dumping the value transfered.
5169
5170 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5171
5172         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5173         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5174         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5175         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5176         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5177
5178 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5179
5180         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5181
5182 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5183
5184         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5185         register.
5186         (P): New macro to define a register as a pseudo register.
5187         (R, R4, R8, R16, FR32, R64, R0): Updated.
5188         (struct variant): Add new fields for number of pseudo registers
5189         and number of total registers.
5190         (tot_num_registers): New macro replacing....
5191         (num_registers): ...deleted macro.
5192         (num_registers): New function.
5193         (num_pseudo_registers): New function.
5194         (variants): Update all variants to intialize new fields correctly.
5195         Postpone initialization of number of pseudo regs and real regs.
5196         (init_variants): New function.
5197         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5198         registers offsets.
5199
5200 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5201
5202         * valops.c (search_struct_field): Change error message to treat
5203         return value of 0 from value_static_field as meaning that field is
5204         optimized out.
5205         (value_struct_elt_for_reference): Ditto.
5206         * values.c (value_static_field): Treat an unresolved location the
5207         same as a nonexistent symbol.  Fix PR gdb/635.
5208         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5209         enclosed.  Fix PR gdb/574.
5210         * MAINTAINERS: Add self to Write After Approval list.
5211
5212 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5213
5214         * mips-tdep.c (mips_xfer_register): New function.
5215         (mips_n32n64_extract_return_value): Rewrite.
5216         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5217         instead of deprecated_extract_return_value.
5218
5219 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5220
5221         * rs6000-tdep.c (TDEP): Delete macro.
5222         (branch_dest): Replace use of TDEP macro with its body.
5223         (rs6000_pop_frame): Ditto.
5224         (rs6000_push_arguments): Ditto.
5225         (rs6000_skip_trampoline_code): Ditto.
5226         (rs6000_frame_saved_pc): Ditto.
5227         (rs6000_frame_chain): Ditto.
5228         (rs6000_register_name): Ditto.
5229         (rs6000_register_byte): Ditto.
5230         (rs6000_register_raw_size): Ditto.
5231         (rs6000_register_virtual_type): Ditto.
5232         (rs6000_register_convertible): Ditto.
5233         (rs6000_convert_from_func_ptr_addr): Ditto.
5234
5235 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5236
5237         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5238         conditionally.
5239         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5240         MIPS_LINUX_JB_ELEMENT_SIZE.
5241         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5242         for MAX_REGISTER_RAW_SIZE arrays.
5243         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5244         MIPS_LINUX_JB_ELEMENT_SIZE.
5245
5246 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5247
5248         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5249
5250 2002-08-19  Aidan Skinner <aidan@velvet.net>
5251
5252         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5253         ada-valprint.c ada-tasks.c.
5254         (YYFILES): Add ada-exp.y.
5255         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5256         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5257         (ada-exp.tab.o): New target.
5258                 
5259 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5260
5261         * regcache.c (regcache_xfer_part): New function.
5262         (regcache_raw_read_part): New function.
5263         (regcache_raw_write_part): New function.
5264         (regcache_cooked_read_part): New function.
5265         (regcache_cooked_write_part): New function.
5266         * regcache.h (regcache_raw_read_part): Declare.
5267         (regcache_raw_write_part): Declare.
5268         (regcache_cooked_read_part): Declare.
5269         (regcache_cooked_write_part): Declare.
5270
5271 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5272
5273         * remote.c (remote_open_1): Add async_p.
5274         (remote_async_open_1): Delete.
5275         (open_remote_target): Delete.
5276         (remote_open, extended_remote_open): Update calls to remote_open_1.
5277         (remote_async_open, extended_remote_async_open): Call
5278         remote_open_1 instead of remote_async_open_1.
5279
5280 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5281
5282         * blockframe.c: Fix a few coding standard violations.
5283
5284 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5285
5286         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5287         here from ...
5288         * config/i386/tm-i386sco5.h: ... here.  File removed.
5289         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5290
5291         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5292         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5293         (TM_FILE): Set to tm-i386.h.
5294         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5295         * config/i386/tm-i386v.h: Remove file.
5296         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5297         instead of "i386/tm-i386v.h".
5298         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5299         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5300         "i386/tm-i386v.h".
5301         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5302         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5303         "i386/tm-i386.h".
5304
5305 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5306
5307         * config/i386/nm-i386v.h: Add protection against
5308         multiple-inclusion.
5309         (i386_register_u_addr): Remove prototype.
5310         (register_u_addr): New prototype.
5311         (REGISTER_U_ADDR): Redefine accordingly.
5312         * i386v-nat.c: Improve several comments.
5313         (i386_register_u_addr): Change signature and rename to
5314         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5315         ubase variable.
5316
5317 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5318
5319         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5320         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5321         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5322         deprecated_extract_return_value.
5323         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5324         rename mips_o32o64_push_arguments.
5325         (mips_gdbarch_init): Update.
5326         (mips_extract_return_value): Delete.
5327         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5328         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5329         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5330         (mips_n32n64_extract_return_value): Clone
5331         mips_extract_return_value.
5332         (mips_store_return_value): Delete.
5333         (mips_o32_store_return_value): Clone mips_store_return_value.
5334         (mips_o64_store_return_value): Clone mips_store_return_value.
5335         (mips_eabi_store_return_value): Clone mips_store_return_value.
5336         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5337
5338 2002-08-18  Aidan Skinner <aidan@velvet.net>
5339
5340         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5341         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5342                 
5343 2002-08-18  Aidan Skinner <aidan@velvet.net>
5344
5345         * ada-lang.c: Run through gdb_indent.sh.
5346         * ada-lang.h: Run through gdb_indent.sh.
5347         * ada-tasks.c: Run through gdb_indent.sh.
5348         * ada-typeprint.c: Run through gdb_indent.sh.
5349         * ada-valprint.c: Run through gdb_indent.sh.
5350
5351 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5352
5353         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5354         ABI.
5355
5356 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5357
5358         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5359
5360         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5361         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5362
5363         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5364         write_register_gen instead of write_register_bytes.
5365
5366         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5367         i[3456]-*-osf1mk* configurations have been made obsolete.
5368         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5369         i[3456]86-*-osf1mk* hosts obsolete.
5370         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5371         targets obsolete.
5372         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5373         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5374         config/i386/i386m3.mt, config/i386/nm-m3.h,
5375         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5376         config/i386/i386mk.mh, config/i386/i386mk.mt,
5377         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5378         obsolete.
5379         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5380         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5381         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5382
5383 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5384
5385         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5386         (hppa_value_returned_from_stack): Declare.
5387         (hppa_extract_return_value): Declare.
5388         * config/pa/hppa.mt: New file.
5389         * configure.tgt: Recognize hppa*-*-*.
5390         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5391
5392 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5393
5394         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5395         comment.
5396
5397 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5398
5399         * top.c (gdb_rl_operate_and_get_next): Make sure
5400         operate-and-get-next functions correctly even when the history
5401         list is completely filled.
5402
5403 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5404
5405         * MAINTAINERS (Target Instruction Set Architectures): Rename
5406         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5407         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5408         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5409         already listed under Host/Native.
5410
5411         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5412         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5413         mips*-*-*.
5414
5415 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5416
5417         * config/ia64/ia64.mt: New file.
5418         * config/alpha/alpha.mt: New file.
5419         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5420         ia64-linux-gnu.  Mention that ia64-elf is broken.
5421         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5422
5423 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5424
5425         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5426         generic_func_frame_valid instead of func_frame_valid.
5427
5428 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5429
5430         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5431         procfs appears to be broken when debugging on multi-processor
5432         machines. So enable software single stepping in order to avoid
5433         using the procfs interface to do next/step operations, using
5434         internal breakpoints instead.
5435
5436         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5437         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5438         make this pc address equal to the value it would have if the
5439         system stepping capability was used. Also set a new flag used
5440         to ensure that we don't readjust the PC one more time later.
5441
5442         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5443         address by DECR_PC_AFTER_BREAK when software single step is
5444         in use for this architecture, as this has already been taken
5445         care of in handle_inferior_event().
5446
5447 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5448
5449         * infrun.c (handle_inferior_event): Minor reformatting, to make
5450         a rather long condition expression easier to read.
5451
5452 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5453
5454         * Makefile.in (gdbtk.o): Move to end of file.
5455         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5456         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5457         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5458         (gdbtk-wrapper.o, gdbres.o): Ditto.
5459
5460 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5461
5462         * Makefile.in (copying.o): Separate out compile rule.
5463         (hpux-thread.o, procfs.o, signals.o): Ditto.
5464         (v850ice.o, z8k-tdep.o): Ditto.
5465         (tui-file.o): Move to TUI section.
5466         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5467         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5468
5469 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5470
5471         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5472         skip_trampoline_code, for better namespace-proofing.   
5473
5474         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5475
5476 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5477
5478         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5479
5480 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5481
5482         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5483         signal, check whether we hit a breakpoint before checking for a
5484         single step breakpoint. Otherwise, GDB fails to notice that a
5485         breakpoint has been hit when stepping onto a breakpoint.
5486
5487 2002-08-16  Keith Seitz  <keiths@redhat.com>
5488
5489         * gdb-events.sh (clear_gdb_event_hooks): New function.
5490         * gdb-events.c: Regenerate.
5491         * gdb-events.h: Regenerate.
5492
5493 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5494
5495         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5496         not_a_sw_breakpoint.
5497         * breakpoint.h (bpstat_stop_status): Add parameter names.
5498
5499 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5500
5501         * remote.c (remote_insert_hw_breakpoint)
5502         (remote_remove_hw_breakpoint): Fix calculation of length field
5503         for Z-packet.
5504
5505 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5506
5507         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5508         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5509         (supply_fpregset): Ditto.
5510         
5511         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5512         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5513         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5514         (TARGET_READ_SP): Delete.
5515         (DO_REGISTERS_INFO): Delete.
5516         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5517         Delete.
5518         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5519         from macros to functions.
5520
5521         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5522         (mips_register_convertible, mips_register_convert_to_virtual,
5523         mips_register_convert_to_raw): Make static.
5524         (mips_read_sp): New function.
5525         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5526         (mips_do_registers_info): Make static.
5527         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5528         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5529         (mips_register_convert_from_type, mips_register_convert_to_type):
5530         New functions.
5531         (mips_gdbarch_init): Set up function_start_offset, 
5532         register_virtual_size, pc_in_sigtramp.
5533
5534 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5535
5536         * infcmd.c (vector_info): New function.
5537         (_initialize_infcmd): Add command "info vector".
5538         (print_vector_info): New function.
5539
5540         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5541         * gdbarch.h, gdbarch.c: Regenerate.
5542
5543 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5544
5545         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5546         ``print_all''.  Only print vector registers when ``print_all''.
5547
5548 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5549
5550         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5551         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5552
5553         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5554         Add `args' parameter.
5555         * gdbarch.h, gdbarch.c: Regenerate.
5556         
5557         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5558         
5559         * infcmd.c (float_info): Call print_float_info.
5560         (print_float_info): New function.  By default, print the
5561         floating-point registers.
5562
5563         * arch-utils.h (default_print_float_info): Delete declaration.
5564         * arch-utils.c (default_print_float_info): Delete function.
5565         
5566 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5567
5568         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5569         out define.
5570
5571         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5572         FRAME.
5573
5574         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5575         * configure.host: Make i[3456]86-*-aix host obsolete.
5576         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5577         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5578         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5579         config/i386/xm-i386aix.h: Make files obsolete.
5580         * i386aix-nat.c: Make file obsolete.
5581         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5582         (i386aix-nat.o): Make target obsolete.
5583
5584         * config/i386/nm-gnu.h: Removed.
5585         * config/i386/nm-i386gnu.h: New file.
5586         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5587         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5588         Moved here from ...
5589         * config/i386/tm-i386gnu.h: ... here.  Removed.
5590         * config/i386/xm-i386gnu.h: Removed.
5591         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5592         (NAT_FILE): Set to nm-i386gnu.h.
5593         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5594         * i386-tdep.c: New file.
5595         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5596         (i386gnu-tdep.o): Specify dependencies.
5597
5598 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5599
5600         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5601         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5602         Adjust a few comments to reflect reality a bit closer.
5603         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5604         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5605         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5606         target_insert_watchpoint, target_remove_watchpoint):
5607         Move defines to ...
5608         * config/i386/nm-i386sco5.h: ... here.
5609         (kernel_u_size): Add prototype.  Improve a few comments and add
5610         protection against multiple inclusion.
5611         
5612         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5613         out define.
5614
5615         * uw-thread.c (SP_ARG0): Define if not already defined.
5616         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5617
5618         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5619
5620         * config/i386/tm-i386.h: Don't include "regcache.h".
5621
5622         * i387-tdep.h (i387_print_float_info): New prototype.
5623         * i387-tdep.c (print_i387_value, print_i387_ext,
5624         print_i387_status_word, print_i387_control_word): Add `struct
5625         ui_file *' argument and use it for output.
5626         (i387_print_float_info): Renamed from i387_float_info.  Add
5627         `struct gdbarch *' and `struct ui_file *' arguments and use the
5628         latter for output.
5629         * i386-tdep.c: Include "i387-tdep.h".
5630         (i386_gdbarch_init): Set print_float_info.
5631         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5632         (FLOAT_INFO): Remove define.
5633
5634 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5635
5636         * mips-tdep.c (mips_push_arguments): Rename to
5637         mips_eabi_push_arguments, and tune for EABI.
5638         (MIPS_REGS_HAVE_HOME_P): Delete.
5639         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5640         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5641         Delete references to mips_regs_have_home_p.
5642
5643 2002-08-14  Keith Seitz  <keiths@redhat.com>
5644
5645         * Makefile.in (install-gdbtk): Create insight plugin directory.
5646         Install plugins.tcl file.
5647
5648 2002-08-14  Keith Seitz  <keiths@redhat.com>
5649
5650         * configure.in: Move SUBDIRS to near top of the file so that
5651         --enable options may add things to it.
5652         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5653         * configure: Regenerate.
5654
5655 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5656
5657         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5658         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5659         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5660
5661 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5662
5663         * vax-tdep.c (vax_get_saved_register): Delete function.
5664         (vax_gdbarch_init): Update.
5665         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5666         (ns32k_gdbarch_init): Update.
5667         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5668         (alpha_gdbarch_init): Update.
5669
5670 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5671
5672         * regcache.c (init_regcache_descr): Overallocate the
5673         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5674         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5675         nr_raw_registers.
5676         (set_register_cached): Add range checking assertions.  Use
5677         current_regcache.
5678
5679 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5680
5681         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5682         numbers for MMX registers.
5683
5684 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5685
5686         * i386-tdep.c (i386_gdbarch_init): Use
5687         generic_unwind_get_saved_register.
5688
5689 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5690
5691         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5692         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5693         target vector.
5694         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5695         Delete.  Add comment regarding this now-deleted target method.
5696
5697 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5698
5699         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5700         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5701         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5702         real PC and the page number (if it's within the memory bank window).
5703         (m68hc11_pseudo_register_write): Likewise when saving.
5704         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5705         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5706         (m68hc11_register_raw_size): And use 32-bit for it.
5707         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5708         16K memory bank is used by the prog; also use the virtual pc.
5709
5710 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5711
5712         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5713         (m68hc11_gdbarch_init): Install it in gdbarch.
5714         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5715         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5716         (MSYMBOL_SIZE): New for documentation.
5717         (insn_return_kind): Enum to specify how a function returns.
5718         (frame_extra_info): Cleanup and record the return mode.
5719         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5720         register in address computation.
5721         (m68hc11_get_return_insn): New to obtain the return instruction used
5722         by the function.
5723         (m68hc11_frame_init_saved_regs): Take into account the return
5724         instruction used by the function for far and interrupt functions.
5725         (m68hc11_init_extra_frame_info): Take into account page register.
5726         (m68hc11_frame_args_address): Adjust according to the return mode.
5727         (show_regs): Print page register only when it's used.
5728
5729 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5730
5731         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5732         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5733         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5734         registers.
5735         (m68hc11_register_raw_size): Likewise.
5736
5737 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5738
5739         * i386-tdep.c (i386_register_name): Handle mmx registers.
5740         (mmx_regnum_p): New function.
5741         (i386_mmx_names): New array.
5742         (mmx_num_regs): New variable.
5743         (i386_pseudo_register_read): New function.
5744         (i386_pseudo_register_write): New function.
5745         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5746
5747         * regcache.c (regcache_raw_read_unsigned): New function.
5748         (regcache_raw_read_signed): New function.
5749         * regcache.h (regcache_raw_read_unsigned): Declare.
5750         (regcache_raw_read_signed): Declare.
5751
5752 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5753
5754         * regcache.c (regcache_raw_read_as_address): Delete function.
5755         (regcache_cooked_read_signed): New function.
5756         (regcache_cooked_read_unsigned): New function.
5757         * regcache.h (regcache_cooked_read_signed): Declare.
5758         (regcache_cooked_read_unsigned): Declare.
5759         (regcache_raw_read_as_address): Delete declaration.
5760
5761         * blockframe.c (generic_read_register_dummy): Use
5762         regcache_cooked_read_unsigned.
5763         * i386-tdep.c (i386_extract_struct_value_address): Use
5764         regcache_cooked_read_unsigned.
5765
5766 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5767
5768         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5769         double sizes according to ELF ABI flags.
5770         (gdbarch_tdep): Record elf_flags.
5771
5772 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5773
5774         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5775         (m6812_prolog): They can appear in 68HC12 function prologue.
5776         (m68hc11_frame_chain): Cleanup.
5777
5778 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5779
5780         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5781         declarations.
5782         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5783         (i386_linux_register_raw_size): Delete function.
5784         (i386_linux_init_abi): Update.
5785         * i386-tdep.c (i386_register_raw_size): Delete function.
5786         (i386_register_byte): Delete function.
5787         (i386_gdbarch_init): Update.
5788         (i386_register_size): Delete array.
5789         (i386_register_offset): Delete array.
5790
5791         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5792         (REGISTER_RAW_SIZE): Delete macro.
5793         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5794         (REGISTER_BYTE): Delete macro.
5795
5796 2002-08-11  Aidan Skinner <aidan@velvet.net>
5797
5798         * ada-lang.c (ada_lookup_partial_symbol)
5799         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5800         prototype names so that grep ^func works properly.
5801
5802         * ada-lang.c (ada_array_element_type)
5803         (ada_lookup_partial_symbol): Fix typos in parameter list.
5804
5805         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5806         Fix prototype names so that grep ^func works properly.
5807         
5808 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5809             Elena Zannoni  <ezannoni@redhat.com>
5810             Martin M. Hunt  <hunt@redhat.com>
5811
5812         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5813         (build_builtin_type_vec128i): Set the vector bit.
5814         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5815         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5816         (build_builtin_type_vec64): New function.
5817         (build_builtin_type_vec64i): New function.
5818         (build_gdbtypes): Initialize builtin_type_vec64 and
5819         builtin_type_vec64i.
5820
5821 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5822
5823         * regcache.c (regcache_dump): Compare the register offset
5824         with REGISTER_BYTE.
5825         * arch-utils.c (generic_register_byte): New function.
5826         * arch-utils.h (generic_register_byte): Declare.
5827         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5828         * gdbarch.h, gdbarch.c: Regenerate.
5829
5830 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5831
5832         * regcache.c: Include "gdbcmd.h"
5833         (_initialize_regcache): Add commands "maintenance print
5834         registers", "maintenance print raw-registers" and "maintenance
5835         print cooked-registers".
5836         (enum regcache_dump_what): Define.
5837         (dump_endian_bytes): New function.
5838         (regcache_dump): New function.
5839         (regcache_print): New function.
5840         (maintenance_print_registers): New function.
5841         (maintenance_print_raw_registers): New function.
5842         (maintenance_print_cooked_registers): New function.
5843         * Makefile.in (regcache.o): Update dependencies.
5844
5845 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5846
5847         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5848         (mips_push_arguments): Correct some comments.  Use paddr_nz
5849         for printing addresses in debug output.  Replace static
5850         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5851         (mips_n32n64_push_arguments): New function, cloned from
5852         mips_push_arguments and tuned for the n32/n64 ABI.
5853         (mips_push_register): Buffer needs dynamic allocation.
5854         (mips_print_register): Ditto.
5855         (do_gp_register_row): Ditto.
5856         (mips_store_return_value): Ditto.
5857         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5858
5859 2002-08-09  Don Howard  <dhoward@redhat.com>
5860
5861         * memattr.c (mem_info_command): Print special case of upper bound
5862         as max CORE_ADDR + 1.
5863
5864 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5865
5866         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5867         returns structs by ref if they're too big to fit in two registers.
5868
5869 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5870
5871         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5872         saved regs value.
5873         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5874         mips_find_saved_regs().
5875         (mips_pop_frame): Likewise.
5876
5877 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5878
5879         * blockframe.c (frame_saved_regs_register_unwind): Revise
5880         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5881         frames are in use.
5882
5883 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5884         
5885         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5886         T-packets; the 'a' is not taken as a register number.
5887         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5888         (remote_stopped_data_address): New functions; add to target
5889         vector.
5890         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5891         prototypes to match other implementations of this
5892         function. replace integer argument with pointer -- the length
5893         field in the Z-packet is the length of what is pointed to or 1 if
5894         pointer is null. Add to target vector.
5895         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5896         target vector.
5897
5898         From Mark Salter:
5899         * remote.c (remote_wait): Add support to extract optional
5900         watchpoint information from T-packet. Ignore unrecognized
5901         optional info in T-packet.
5902         (remote_async_wait): Ditto.
5903
5904 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5905
5906         * cli/cli-dump.c: Change fopen modes to use binary open modes
5907         as defined in include/fopen-bin.h throughout.
5908
5909 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5910
5911         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5912
5913 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5914
5915         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5916         assertion failure by returning early after a warning.
5917
5918 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5919
5920         * mips-tdep.c (mips_find_saved_regs): Make static.
5921         (mips_frame_init_saved_regs): New function.
5922         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5923         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5924         (mips_find_saved_regs): Delete declaration.
5925
5926 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5927
5928         * remote.c (remote_wait, remote_async_wait): Change
5929         thread_num from int to ULONGEST.
5930         (unpack_varlen_hex): Change result parameter from
5931         int * to ULONGEST *.
5932
5933 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5934
5935         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5936         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5937         powerpc*-*-*.
5938         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5939
5940 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5941
5942         * gcore.c (override_derive_stack_segment): Delete variable.
5943         (preempt_derive_stack_segment): Delete function.
5944         (derive_stack_segment): Delete function.
5945         (default_derive_stack_segment): Renamed to derive_stack_segment.
5946         (override_derive_heap_segment): Delete variable.
5947         (preempt_derive_heap_segment): Delete function.
5948         (derive_heap_segment): Delete function.
5949         (default_derive_heap_segment): Rename to derive_heap_segment.
5950
5951 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5952
5953         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5954         * mips-tdep.c (mips_EABI_use_struct_convention, 
5955         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5956         New functions.  (mips_use_struct_convention): Delete.
5957         (mips_gdbarch_init): set use_gdbarch_convention.
5958
5959 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5960
5961         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5962         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5963         mips_o32_reg_struct_has_addr): New functions.
5964         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5965
5966 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5967
5968         * regcache.c (pseudo_register): Delete function.
5969         (fetch_register): Delete function.
5970         (store_register): Delete function.
5971         (regcache_raw_read, legacy_read_register_gen): Use
5972         target_fetch_registers instead of fetch_register.
5973         (legacy_write_register_gen, regcache_raw_write): Use
5974         target_store_register instead of store_register.
5975         (write_register_bytes): Ditto.
5976
5977         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5978         (STORE_PSEUDO_REGISTER): Delete.
5979         * gdbarch.h, gdbarch.c: Regenerate.
5980
5981 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5982
5983         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5984         write dump file binary.
5985
5986 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5987
5988         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5989         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5990         (mips_gdbarch_init): Set N32 target to be mips64.
5991
5992 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5993
5994         * frame.c (find_saved_register): Break out of loop once saved
5995         register address is found.  Don't mention sparc in loop comment
5996         anymore.
5997
5998 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5999
6000         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6001         mips_default_saved_regsize to 8.
6002
6003 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6004
6005         * gcore.c: Do not include <sys/procfs.h>.
6006         * Makefile.in (gcore.o): Update dependencies.
6007
6008 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6009
6010         * configure.tgt: Make arc-*-* obsolete.
6011         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6012         * MAINTAINERS: Make arc-elf obsolete.
6013         * arc-tdep.c: Make file obsolete.
6014         * config/arc/arc.mt: Ditto.
6015         * config/arc/tm-arc.h: Ditto.
6016
6017 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6018
6019         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6020
6021 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6022
6023         * mcore-tdep.c (mcore_gdbarch_init): Use
6024         generic_unwind_get_saved_register instead of
6025         generic_get_saved_register.
6026         * v850-tdep.c (v850_gdbarch_init): Ditto.
6027         * frv-tdep.c (frv_gdbarch_init): Ditto.
6028         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6029         * s390-tdep.c (s390_gdbarch_init): Ditto.
6030         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6031         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6032         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6033
6034 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6035
6036         * objfiles.h: Add missing #include "symfile.h"
6037
6038         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6039
6040 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6041
6042         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6043         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6044         of FIELD_BITSIZE.
6045
6046 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6047
6048         * NEWS: Cleanup and nitpick.
6049
6050 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6051
6052         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6053
6054 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6055
6056         * Makefile.in (gdbtk-bp.o): Update dependencies.
6057         (gdbtk-register.o): Ditto.
6058         (gdbtk-varobj.o): Ditto.
6059
6060 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6061
6062         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6063         m68hc11_fetch_pseudo_register.
6064         (m68hc11_pseudo_register_write): Replace
6065         m68hc11_store_pseudo_register.
6066         (m68hc11_gdbarch_init): Update.
6067
6068 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6069
6070         * gdbarch.sh: Include "gdb_string.h".
6071         * gdbarch.c: Regenerate.
6072
6073         * regcache.c: Include "gdb_string.h".
6074         * ax-general.c: Ditto.
6075         * varobj.c: Ditto.
6076         * std-regs.c: Ditto.
6077         * fbsd-proc.c: Ditto.
6078         * thread.c: Ditto.
6079
6080         * Makefile.in (regcache.o): Update dependencies.
6081         (thread.o, gdbarch.o): Ditto.
6082         (ax-general.o, gdbarch.o): Ditto.
6083         (varobj.o, std-regs.o): Ditto.
6084         (fbsd-proc.o): Specify dependencies.
6085
6086 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6087
6088         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6089         regnum.
6090         (regcache_cooked_write): Ditto.
6091
6092 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6093
6094         * regcache.c (regcache_cooked_read): New function.
6095         (regcache_cooked_write): New function.
6096         (read_register_gen): Rewrite using regcache_cooked_read.
6097         (write_register_gen): Rewrite using regcache_cooked_write.
6098
6099         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6100         Declare.
6101
6102 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6103
6104         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6105         Replace the architecture methods register_read and register_write.
6106         * gdbarch.h, gdbarch.c: Regenerate.
6107         * regcache.c (init_regcache_descr): Update.
6108         (read_register_gen): Update.
6109         (write_register_gen): Update.
6110         (supply_register): Update comment.
6111
6112         * sh-tdep.c (sh_gdbarch_init): Update.
6113         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6114         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6115         pointer.  Update code.
6116         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6117         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6118         void pointer.  Update code.
6119         (sh64_register_write): Delete.
6120         (sh4_register_read): Delete.
6121         (sh64_register_read): Delete.
6122         (sh4_register_write): Delete.
6123         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6124         void pointer, `to' parameter a void pointer.
6125         (sh_sh64_register_convert_to_raw): Ditto.
6126
6127 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6128
6129         * mips-tdep.c (mips_register_virtual_type): Use architecture
6130         invariant return values.
6131
6132 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6133
6134         * linux-proc.c: Include "gdb_string.h".
6135         * Makefile.in (linux-proc.o): Update dependency list.
6136
6137 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6138
6139         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6140         comment.
6141
6142 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6143
6144         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6145         to_insert_watchpoint, to_remove_watchpoint,
6146         to_stopped_by_watchpoint, to_stopped_data_address,
6147         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6148         target vecctor. Define their corresponding macros so they call
6149         them.
6150         
6151         * target.c: Add default and debug versions of for
6152         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6153         to_insert_watchpoint, to_remove_watchpoint,
6154         to_stopped_by_watchpoint, to_stopped_data_address,
6155         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6156
6157 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6158
6159         * mips-tdep.c (mips_register_virtual_type): New function.
6160         (mips_gdbarch_init): Register mips_register_virtual_type()
6161         with gdbarch machinery.
6162         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6163         this file instead of tm-bigmips.h.
6164         (MIPS_REGSIZE): Delete this macro.
6165         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6166         multiarch version in mips-tdep.c will be found.
6167
6168 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6169
6170         * NEWS: Menion that CHILL has been made obsolete.
6171
6172         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6173         * stabsread.c (read_range_type): Ditto.
6174         * gdbtypes.h: Ditto.
6175         * language.c (binop_type_check): Ditto.
6176         (binop_result_type): Ditto.
6177         (integral_type): Ditto.
6178         (character_type): Ditto.
6179         (string_type): Ditto.
6180         (boolean_type): Ditto.
6181         (structured_type): Ditto.
6182         (lang_bool_type): Ditto.
6183         (binop_type_check): Ditto.
6184         * language.h (_LANG_chill): Ditto.
6185         * dwarfread.c (set_cu_language): Ditto.
6186         * dwarfread.c (CHILL_PRODUCER): Ditto.
6187         * dwarfread.c (handle_producer): Ditto.
6188         * expression.h (enum exp_opcode): Ditto.
6189         * eval.c: Ditto for comments.
6190         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6191         * expprint.c (print_subexp): Ditto.
6192         (print_subexp): Ditto.
6193         * valops.c (value_cast): Ditto.
6194         (search_struct_field): Ditto.
6195         * value.h (COERCE_VARYING_ARRAY): Ditto.
6196         * symfile.c (init_filename_language_table): Ditto.
6197         (add_psymbol_with_dem_name_to_list): Ditto.
6198         * valarith.c (value_binop): Ditto.
6199         (value_neg): Ditto.
6200         * valops.c (value_slice): Ditto.
6201         * symtab.h (union language_specific): Ditto.
6202         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6203         (SYMBOL_DEMANGLED_NAME): Ditto.
6204         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6205         * defs.h (enum language): Ditto.
6206         * symtab.c (got_symtab): Ditto.
6207         * utils.c (fprintf_symbol_filtered): Ditto.
6208
6209         * ch-typeprint.c: Make file obsolete.
6210         * ch-valprint.c: Make file obsolete.
6211         * ch-lang.h: Make file obsolete.
6212         * ch-exp.c: Make file obsolete.
6213         * ch-lang.c: Make file obsolete.
6214
6215         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6216         CHILL_LIB.
6217         (TARGET_FLAGS_TO_PASS): Ditto.
6218         (CHILLFLAGS): Obsolete.
6219         (CHILL): Obsolete.
6220         (CHILL_FOR_TARGET): Obsolete.
6221         (CHILL_LIB): Obsolete.
6222         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6223         ch-valprint.c.
6224         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6225         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6226         ch-lang.o.
6227         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6228         targets.
6229
6230 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6231
6232         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6233         This does not change anything at the moment, but will be helpful
6234         later when full Ada support is integrated.
6235
6236 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6237
6238         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6239         help message.
6240
6241 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6242
6243         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6244         and save it in a local variable.  Use variable in later test.
6245
6246 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6247
6248         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6249         test.  (Thanks to Daniel Jacobowitz.)
6250         
6251 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6252
6253         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6254         (mips_abi_strings): Add "n64".
6255         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6256
6257 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6258
6259         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6260         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6261
6262 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6263
6264         * utils.c (host_pointer_to_address, address_to_host_pointer):
6265         Use gdb_assert() instead of explicit call to internal_error().
6266
6267 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6268
6269         * Makefile.in (rs6000-nat.o): Update dependencies.
6270
6271         From Nicholas Duffek:
6272         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6273         (aix-thread.o): New rule.
6274         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6275         * config/powerpc/aix432.mh: New file.
6276
6277 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6278
6279         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6280         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6281         (fetch_core_registers, ppc_linux_supply_gregset)
6282         (ppc_linux_supply_fpregset): New functions.
6283         (ppc_linux_regset_core_fns): New.
6284         (_initialize_ppc_linux_tdep): Call add_core_fns.
6285         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6286         and ppc_linux_supply_gregset.
6287         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6288         (supply_fpregset): Call ppc_linux_supply_fpregset.
6289         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6290         corelow.o.
6291         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6292
6293 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6294
6295         * symtab.c (lookup_symbol): Demangle before lowercasing.
6296
6297 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6298
6299         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6300         declaration.
6301         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6302         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6303         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6304         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6305         "gdb_string.h".
6306         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6307         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6308         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6309         (avr-tdep.o, mon960-rom.o): Ditto.
6310         (aout_stabs_gnu_h): Define.
6311         (symtab_h): Remove $(gdb_obstack_h).
6312
6313 2002-07-30  Jim Blandy  <jimb@redhat.com>
6314
6315         Patch from David Carlton <carlton@math.stanford.edu>:
6316         * gdbinit.in: Move the `dir' commands that add GDB's own source
6317         directory to the search path to the end, so that the `gdb' source
6318         directory will be searched first.
6319
6320 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6321
6322         * gdb_obstack.h: New file.
6323         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6324         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6325         * objfiles.h: Include "gdb_obstack.h".
6326         * Makefile.in (gdb_obstack_h): Define.
6327         (symtab_h): Add $(gdb_obstack_h).
6328         (objfiles_h): Add $(gdb_obstack_h).
6329         
6330         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6331         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6332         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6333         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6334         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6335         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6336         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6337         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6338
6339         * Makefile.in (bcache.o): Update dependencies.
6340         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6341         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6342         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6343         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6344         (stabsread.o, symfile.o, symmisc.o): Ditto.
6345         (symtab.o, typeprint.o, macroexp.o): Ditto.
6346         (macrotab.o, mdebugread.o): Ditto.
6347         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6348         (coff_ecoff_h, aout_aout64_h): Define.
6349         (aout_stabs_gnu_h, libaout_h): Define.
6350
6351 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6352
6353         * regcache.c (struct regcache_descr): Rename nr_registers to
6354         nr_cooked_registers.  Revise comments describing the structure
6355         member fields.
6356         (init_regcache_descr): Update.
6357         (init_legacy_regcache_descr): Update.
6358         (read_register_gen, write_register_gen): When a cooked register in
6359         the raw register range, directly access the value from the raw
6360         register cache.
6361
6362 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6363
6364         * z8k-tdep.c: Do not include "obstack.h".
6365         * h8300-tdep.c, h8500-tdep.c: Ditto.
6366         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6367         * valprint.c, v850-tdep.c: Ditto.
6368         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6369         * mn10200-tdep.c: Ditto.
6370
6371         * Makefile.in (z8k-tdep.o): Update dependencies.
6372         (m68hc11-tdep.o, valprint.o): Ditto.
6373         (v850-tdep.o, d10v-tdep.o): Ditto.
6374         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6375         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6376         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6377         (sh_opc_h, gdb_sim_sh_h): Define.
6378         (elf_sh_h, elf_bfd_h): Define.
6379         (opcode_m68hc11_h): Define.
6380         (OPCODES_SRC, OPCODES_DIR): define.
6381         (OPCODES): Use $(OPCODES_DIR).
6382         (gdb_sim_d10v_h): Rename sim_d10v_h.
6383         (gdb_sim_arm_h): Rename sim_arm_h.
6384
6385 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6386
6387         * utils.c (host_pointer_to_address, address_to_host_pointer):
6388         Change internal_error() message to indicate function responsible
6389         for the error.
6390
6391 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6392
6393         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6394         calls to local_hex_string_custom().
6395
6396 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6397
6398         * irix5-nat.c: Move IRIX shared library support from here...
6399         * solib-irix.c: ...to here.  Revised substantially to work with
6400         generic solib framework.
6401
6402         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6403         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6404         * mips-irix-tdep.c: New file.
6405
6406         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6407         (mips-irix-tdep.o, solib-irix.o): New rules.
6408         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6409         solib-irix.o.
6410         * config/mips/irix6.mt (TDEPFILES): Likewise.
6411         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6412
6413 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6414
6415         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6416         disabled (via ``#if 0'') includes.
6417
6418 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6419
6420         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6421         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6422         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6423         Add support for the fpscr register.
6424         * rs6000-nat.c (regmap, fetch_inferior_registers)
6425         (store_inferior_registers, fetch_core_registers): Likewise.
6426
6427 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6428
6429         * rs6000-nat.c (language.h): Include.
6430         (special_regs): Delete this array.
6431         (regmap): New function.
6432         (fetch_register, store_register):  Use regmap() to map gdb
6433         register numbers to ptrace register numbers.  Also, use
6434         outputs from regmap() to make decisions regarding type of
6435         ptrace() call to make.  In particular, don't compare against
6436         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6437         (fetch_inferior_registers, store_inferior_registers): Where
6438         possible, obtain register numbers from tdep struct.  Don't
6439         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6440         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6441         (LAST_UISA_SP_REGNUM): Delete.
6442         
6443 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6444
6445         * rs6000-nat.c (ppc-tdep.h): Include.
6446         (fetch_registers, store_register, fetch_core_registers): Don't
6447         access registers[] directly.  Instead, use supply_register() or
6448         regcache_collect() as appropriate.
6449         (find_toc_address): Format hex address with local_hex_string().
6450
6451 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6452
6453         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6454         bfd/elf32-frv.c.
6455
6456 2002-07-24  Tom Tromey  <tromey@redhat.com>
6457
6458         * jv-exp.y: Marked all strings with _().
6459         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6460         internal_error.
6461         (MethodInvocation, CastExpression, parse_number, yyerror,
6462         java_type_from_name, push_expression_name, yylex): Typo fixes.
6463
6464 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6465
6466         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6467         (tee_file_flush, tee_file_write, tee_file_fputs)
6468         (tee_file_isatty): New.
6469         * ui-file.h (tee_file_new): Add prototype.
6470
6471 2002-07-24  Aidan Skinner <aidan@velvet.net>
6472
6473         * ada-lang.c: Change k&r style function definitions to prototyped
6474         form.
6475         * ada-typeprint.c: Change k&r style function definitions to prototyped
6476         form.
6477         * ada-valprint.c: Change k&r style function definitions to prototyped
6478         form.
6479         
6480 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6481
6482         * README: Remove reference to remote-bug.
6483         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6484         remote-bug.c.
6485         (m88k-nat.o): Delete rule.
6486         (m88k-tdep.o): Delete rule.
6487         (remote-bug.o): Delete rule.
6488         * MAINTAINERS: Mark as obsolete.
6489         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6490         * m88k-tdep.c: Make file obsolete.
6491         * config/m88k/m88k.mh: Ditto.
6492         * config/m88k/delta88v4.mh: Ditto.
6493         * config/m88k/delta88v4.mt: Ditto.
6494         * config/m88k/delta88.mt: Ditto.
6495         * config/m88k/delta88.mh: Ditto.
6496         * remote-bug.c: Ditto.
6497         * config/m88k/tm-delta88.h: Ditto.
6498         * config/m88k/nm-delta88v4.h: Ditto.
6499         * config/m88k/xm-delta88.h: Ditto.
6500         * config/m88k/xm-dgux.h: Ditto.
6501         * config/m88k/tm-m88k.h: Ditto.
6502         * config/m88k/nm-m88k.h: Ditto.
6503         * config/m88k/tm-delta88v4.h: Ditto.
6504         * m88k-nat.c: Ditto.
6505         * cxux-nat.c: Ditto.
6506         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6507         and m88*-*-* obsolete.
6508         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6509         m88*-*-* obsolete.
6510
6511 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6512
6513         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6514         constant.  Same for local pointer variables.
6515         (extract_signed_integer): Ditto.
6516         * defs.h (extract_unsigned_integer): Update.
6517         (extract_signed_integer): Update.
6518
6519 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6520
6521         * regcache.c (regcache_raw_write): Change buf parameter to a
6522         constant void pointer.
6523         (regcache_raw_read): Change buf parameter to a void pointer.
6524         (legacy_write_register_gen): Change myaddr parameter a constant
6525         void pointer.
6526         (supply_register): Change val parameter to a const void pointer.
6527         * regcache.h (regcache_raw_write): Update declaration.
6528         (regcache_raw_read): Update declaration.
6529         (supply_register): Update declaration.
6530
6531 2002-07-24  Tom Tromey  <tromey@redhat.com>
6532
6533         * defs.h (gdb_readline_wrapper): Declare.
6534         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6535         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6536         * top.c (gdb_readline_wrapper): New function.
6537         (command_line_input): Use it.
6538
6539 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6540
6541         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6542         regcache_read and regcache_write.
6543         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6544         * regcache.c: Update.
6545         * sh-tdep.c (sh64_push_arguments): Update comment.
6546         (sh_pseudo_register_read): Update.
6547         (sh_pseudo_register_write): Update.
6548         (sh4_register_read): Update.
6549         (sh4_register_write): Update.
6550         (sh64_pseudo_register_read): Update.
6551         (sh64_pseudo_register_write): Update.
6552         (sh64_register_read): Update.
6553         (sh64_register_write): Update.
6554         * i386-tdep.c (i386_extract_return_value): Update.
6555         (i386_extract_struct_value_address): Update.
6556         (i386_extract_return_value): Update.
6557         * blockframe.c (generic_read_register_dummy): Update.
6558         (generic_call_dummy_register_unwind): Update
6559         * infrun.c (write_inferior_status_register): Update.
6560
6561 2002-07-23  Jim Blandy  <jimb@redhat.com>
6562
6563         * parser-defs.h (expression_context_pc): Make this extern.
6564         (Thanks to Michael Snyder.)
6565
6566 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6567
6568         GDB 5.2.1 released from 5.2 branch.
6569         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6570         * README: Update to mention 5.2.1.
6571
6572 2002-07-23  Mark Salter  <msalter@redhat.com>
6573
6574         * remote.c (remote_read_bytes): Fix check for error.
6575
6576 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6577
6578         * aix-thread.c (language.h): Include.
6579         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6580         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6581         Print newlines at end of debug messages.
6582         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6583         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6584
6585 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6586
6587         * aix-thread.c (ppc-tdep.h): Include.
6588         (special_register_p): New function.
6589         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6590         (store_regs_user_thread): Use register number information from
6591         gdbarch_tdep struct instead of hardcoded offsets relative to
6592         FIRST_UISA_SP_REGNUM.
6593         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6594         special_register_p() instead of using FPLAST_REGNUM and
6595         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6596         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6597         will be MQ's register number.
6598
6599 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6600
6601         * aix-thread.c (ops): Rename to aix_thread_ops.
6602         (base_ops): Rename to base_target.
6603         (ops_attach): Rename to aix_thread_attach.
6604         (ops_detach): Rename to aix_thread_detach.
6605         (ops_resume): Rename to aix_thread_detach.
6606         (ops_wait):   Rename to aix_thread_wait.
6607         (ops_kill):   Rename to aix_thread_kill.
6608         (init_ops):   Rename to init_aix_thread_ops.
6609         (ops_fetch_register): Rename to aix_thread_fetch_register.
6610         (ops_store_register): Rename to aix_thread_store_register.
6611         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6612         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6613         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6614         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6615         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6616         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6617         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6618         (store_regs_lib):  Rename to store_regs_user_thread.
6619         (store_regs_kern): Rename to store_regs_kernel_thread.
6620
6621 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6622
6623         * aix-thread.c (ops_prepare_to_store): Eliminate.
6624         (init_ops): Don't initialize ops.prepare_to_store.
6625         (store_regs_kern): Pre-fetch register buffers from child, 
6626         because some registers may not be in the cache.  Copy
6627         regs from register cache only if they are cached.
6628         (store_regs_lib): Copy regs from register cache only
6629         if they are cached.
6630         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6631         fill_gprs64): Ditto.
6632
6633 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6634
6635         * aix-thread.c (gdb_assert.h): Include.
6636         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6637         register sizes (from register cache) match size of buffer holding
6638         register data.
6639         (fill_sprs32): Change parameter types to match those in the ptrace()
6640         buffer.
6641         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6642         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6643
6644 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6645
6646         * aix-thread.c (supply_sprs64): Cosmetic change.
6647         (supply_sprs32): Cosmetic change.
6648         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6649         (fill_sprs64): Use regcache_collect instead of read_register.
6650         (store_regs_lib): Use regcache_collect instead of 
6651         read_register.  Use fill_sprs32 instead of fill_sprs64,
6652         if debugging a 32-bit architecture.
6653         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6654         out of the register cache, instead of passing a pointer into
6655         the register cache directly to ptrace.  Use regcache_collect
6656         insteaad of read_register.
6657         (ops_prepare_to_store): Use target_read_registers instead
6658         of read_register_bytes.
6659
6660 2002-07-20  Aidan Skinner <aidan@velvet.net>
6661
6662         * MAINTAINERS: Add self under write after approval. 
6663                 
6664 2002-07-20  Aidan Skinner <aidan@velvet.net>
6665
6666         * ada-tasks.c: Change k&r style function definitions to prototyped
6667         form.
6668                 
6669 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6670
6671         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6672         * x86-64-tdep.c: Include "objfiles.h".
6673         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6674         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6675
6676 2002-07-17  Michal Ludvig  <michal@suse.cz>
6677
6678         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6679         (update_context): Initialise cfa variable.
6680
6681 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6682
6683         * aix-thread.c: Shorten some long lines.  
6684         Bring comments into line with code spec.
6685
6686 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6687
6688         * infrun.c: Re-indent using gdb_indent.sh.
6689
6690 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6691
6692         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6693         Leave the indentation temporarily untouched, to minimize the diffs.
6694
6695 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6696
6697         * stabsread.c: Make os9k sections of the code obsolete,
6698         for real this time.
6699         * stabsread.h: Make os9k sections of the code obsolete.
6700
6701 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6702
6703         * linux-low.c (regsets_store_inferior_registers): Add free()
6704         at the end of a loop to prevent memory leak.
6705         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6706         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6707         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6708         line a comment.
6709         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6710
6711 2002-07-17  Jim Blandy  <jimb@redhat.com>
6712
6713         * macrocmd.c (info_macro_command): Remove newline from error
6714         message.
6715
6716 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6717
6718         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6719         (sh_gdbarch_init): Use it for sh-dsp.
6720
6721 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6722
6723         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6724         64-bit DWARF2 format.
6725
6726 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6727
6728         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6729         <sys/proc.h> when not available.
6730
6731 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6732
6733         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6734         * stabsread.c: Make os9k sections of the code obsolete.
6735         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6736         * config/i386/i386os9k.mt: Make file obsolete.
6737         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6738         (COMMON_OBS): Remove os9kread.o
6739         (SFILES): Remove os9kread.c.
6740         (os9kread.o, remote-os9k.o): Make target obsolete.
6741         * remote-os9k.c: Make file obsolete.
6742         * os9kread.c: Make file obsolete.
6743         * Makefile.in
6744
6745 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6746
6747         * NEWS: Mention that the FR30 has been made obsolete.
6748         * fr30-tdep.c: Make file obsolete.
6749         * config/fr30/tm-fr30.h: Ditto.
6750         * config/fr30/fr30.mt: Ditto.
6751         * configure.tgt: Make fr30-*-elf obsolete.
6752         * MAINTAINERS: Make fr30-elf obsolete.
6753
6754 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6755
6756         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6757         found is not inside a section.
6758
6759 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6760
6761         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6762         strerror().
6763         (pdc_realloc): Use xrealloc() instead of realloc().
6764
6765 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6766
6767         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6768         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6769         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6770         macros.
6771
6772 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6773
6774         * aix-thread.c (ptrace_check): Eliminate goto.
6775         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6776         problem.
6777
6778 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6779
6780         * aix-thread.c (gdbcmd.h): Include.
6781         (DEBUG, DBG, DBG2, dbg): Eliminate.
6782         (debug_aix_thread): New static global.
6783         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6784         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6785         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6786         invocations to DBG and DBG2 macros to test against
6787         ``debug_aix_thread'' and call fprintf_unfiltered().
6788         (_initialize_aix_thread): Add new command "set debug aix-thread".
6789
6790 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6791
6792         From Gerhard Tonn <TON@de.ibm.com>:
6793         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6794         instead of supply_register.
6795
6796 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6797
6798         * dwarf2cfi.c: Include "gdb_assert.h".
6799         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6800         non-NULL.
6801         (update_context): Do not use __func__.  Add missing ``break''.
6802         (update_context): Do not use __func__.
6803
6804 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6805
6806         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6807         and its setting.  Set gdbarch instruction printing functions
6808         directly.  For non-rs6000 case use new function
6809         gdb_print_insn_powerpc.
6810         (gdb_print_insn_powerpc): New function.
6811
6812 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6813
6814         * NEWS: Mention that the d30v has been marked obsolete.
6815         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6816         * configure.tgt: Mark d30v-*-* as obsolete.
6817         * d30v-tdep.c: Mark file as obsolete.
6818         * config/d30v/d30v.mt: Ditto.
6819         * config/d30v/tm-d30v.h: Ditto.
6820
6821 2002-07-13  Aidan Skinner <aidan@velvet.net>
6822
6823         * ada-tasks.c (add_task_entry): replace calls to
6824         malloc() with xmalloc
6825         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6826         
6827         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6828         ada_finish_decode_line_1, all_sals_for_line
6829         ada_breakpoint_rewrite): replace calls to free() with xfree()
6830                 
6831 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6832
6833         From Nicholas Duffek (with minor changes by Martin Hunt, 
6834         Louis Hamilton, and Kevin Buettner):
6835         * aix-thread.c: New file.
6836
6837 2002-07-12  Petr Sorfa <petrs@caldera.com>
6838
6839         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6840         complaint for invalid attribute class or form.
6841         (read_func_scope): DW_AT_frame_base
6842         better handling of DW_AT_block*.
6843         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6844         better handling of DW_AT_block*.
6845         (read_common_block): DW_AT_location
6846         better handling of DW_AT_block*.
6847         (read_partial_die): DW_AT_location better handling
6848         of DW_AT_block*.
6849         (new_symbol): DW_AT_external better handling of
6850         DW_AT_block*. Proper initialization of variable
6851         "addr".
6852         (attr_form_is_block): New function that returns true
6853         if the attribute's form is of DW_FORM_block*.
6854
6855 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6856
6857         * valops.c (find_method_list): Remove comment about
6858         removed STATIC_MEMFUNCP argument.
6859         (value_find_oload_method_list): Likewise.
6860
6861 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6862
6863         From Nicholas Duffek:
6864         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6865         target_new_objfile_hook.
6866
6867 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6868
6869         From Nicholas Duffek:
6870         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6871         csect.
6872
6873 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6874
6875         * MAINTAINERS: Mention --enable-sim-build-warnings.
6876         (m68hc11-elf): Disable sim build warnings.
6877         (m32r-elf): Mark as broken obsolete candidate.
6878         (x86_64-linux-gnu): Mark as buildable with -Werror.
6879         (arm-elf): Change -w to ``,'' which enables warnings but not
6880         -Werror.
6881
6882 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6883
6884         * bcache.h: Update copyright.
6885         (struct bstring, struct bcache): Move definition to "bcache.c".
6886         Replaced by opaque declaration.
6887         (bcache_xfree): Replace free_bcache.
6888         (bcache_xmalloc, bcache_memory_used): Declare.
6889         
6890         * bcache.c: Update copyright.
6891         (struct bstring, struct bcache): Moved to here from "bcache.h".
6892         Update comments.
6893         (bcache_xmalloc, bcache_memory_used): New functions.
6894         (bcache_xfree): Replace function free_bcache.
6895         
6896         * Makefile.in (objfiles.o): Add $(bcache_h).
6897         (objfiles_h): Remove $(bcache_h).
6898         (symfile.o): Add $(bcache_h).
6899
6900         * symmisc.c: Update copyright.
6901         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6902         (print_objfile_statistics): Use bcache_memory_used.
6903
6904         * symfile.c: Include "bcache.h".
6905         (reread_symbols): Use bcache_xfree.
6906         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6907         (add_psymbol_to_list): Pass psymbol_cache by value.
6908         (add_psymbol_with_dem_name_to_list): Ditto.
6909
6910         * objfiles.h: Update copyright.
6911         (struct bcache): Declare opaque.  Do not include "bcache.h".
6912         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6913         bcache'' pointers.
6914         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6915
6916         * objfiles.c: Include "bcache.h".  Update copyright.
6917         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6918         macro_cache.
6919         (free_objfile): Use bcache_xfree.
6920
6921 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6922
6923         * monitor.c (monitor_fetch_register): Make name a constant.
6924         (monitor_store_register): Same.
6925
6926 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6927
6928         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6929         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6930         (finish_block) For non-function blocks, hash the symbol table.  For
6931         function blocks, mark the symbol table as unhashed.
6932         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6933         (msymbol_hash_iw): Likewise.
6934         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6935         value.
6936         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6937         (lookup_minimal_symbol): Likewise for both.
6938         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6939         hashtable.
6940         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6941         (ALL_BLOCK_SYMBOLS): Update.
6942         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6943         (struct symbol): Add `hash_next' pointer.
6944         * symtab.c (lookup_block_symbol): Search using the hash table when
6945         possible.
6946         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6947         (search_symbols, find_addr_symbol): Likewise.
6948
6949         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6950         (read_dst_symtab): Likewise.
6951         * jv-lang.c (get_java_class_symtab): Likewise.
6952         * mdebugread.c: Include "gdb_assert.h".
6953         (shrink_block): Assert that the block being modified is not hashed.
6954         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6955         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6956         symbols.
6957         (dump_symtab): Recognize hashed blocks.
6958         * printcmd.c (print_frame_args):  Assert that function blocks do not
6959         have hashed symbol tables.
6960         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6961         (fill_in_ada_prototype, debug_print_block): Likewise.
6962         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6963
6964 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6965
6966         * stack.c (print_frame): Use result of frame_address_in_block()
6967         instead of fi->pc when evaluating symbols.
6968         (backtrace_command_1): Ditto.
6969
6970 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6971
6972         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6973         Make static.
6974
6975         * arm-tdep.c (arm_register_name): Make return type constant.
6976
6977 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6978
6979         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6980         prototype.
6981         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6982         * s390-tdep.c (s390_fp_regnum): Ditto.
6983         (s390_read_fp): Ditto.
6984         (s390_pop_frame): Ditto.
6985         (_initialize_s390_tdep): Ditto.
6986         * remote.c (get_remote_state): Ditto.
6987         * procfs.c (mappingflags): Ditto.
6988         * memattr.c (_initialize_mem): Ditto.
6989         * mcore-tdep.c (mcore_pop_frame): Ditto.
6990         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6991         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6992         * language.c (set_case_str): Ditto.
6993         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6994         * frv-tdep.c (new_variant): Ditto.
6995         (frv_stopped_data_address): Ditto.
6996         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6997         (context_alloc): Ditto.
6998         (frame_state_alloc): Ditto.
6999         (unwind_tmp_obstack_init): Ditto.
7000         (unwind_tmp_obstack_free): Ditto.
7001         (cfi_read_fp): Ditto.
7002         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7003         (cris_pop_frame): Ditto.
7004         * c-lang.c (scanning_macro_expansion): Ditto.
7005         (finished_macro_expansion): Ditto.
7006         (c_preprocess_and_parse): Ditto.
7007         * gdbarch.sh: Ditto.
7008         * gdbarch.h, gdbarch.c: Regenerate.
7009         * config/mn10200/tm-mn10200.h: Adjust indentation.
7010         * target.c: Adjust indentation.
7011         * symtab.h: Adjust indentation.
7012         * stabsread.h: Adjust indentation.
7013         * remote-es.c: Adjust indentation.
7014         * os9kread.c: Adjust indentation.
7015
7016 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7017         
7018         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7019         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7020
7021 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7022         
7023         * NEWS: Mention m68k, mcore multi-arching.  
7024         * MAINTAINERS: Change status of m68k, mcore to reflect
7025         multi-arching.
7026
7027 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7028
7029         * valops.c (find_overload_match): Free oload_syms.
7030
7031 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7032
7033         Define HAVE_SYS_PROC_H if sys/proc.h exists
7034         * configure.in: Add check for sys/proc.h
7035         * config.in: Regenerate.
7036         * configure: Regenerate.
7037
7038 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7039
7040         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7041         #if !GDB_MULTI_ARCH. 
7042
7043 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7044
7045         * config.in, configure: Regenerate.
7046
7047 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7048
7049         * dwarf2cfi.c: Include "gcore.h".
7050         (execute_stack_op): Fix implementation of the
7051         DW_OP_deref and DW_OP_deref_size operators by letting do their
7052         lookup in the target.
7053
7054 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7055
7056         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7057         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7058         tdep->sc_sp_offset.
7059
7060 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7061
7062         Fix PR gdb/595, gdb/602
7063         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7064         Don't call value_cast, just read the vtable pointer; update comments
7065         to match.
7066
7067 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7068
7069         * config/mcore/tm-mcore.h: Remove file.
7070         * config/mcore/mcore.mt: Remove definition of TM_FILE
7071         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7072
7073 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7074
7075         * i386bsd-tdep.c: Include "gdb_string.h".
7076
7077 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7078
7079         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7080         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7081         mcore-tdep.
7082         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7083         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7084         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7085         (RETVAL_REGNUM): Move macros from tm-mcore.h
7086         (mcore_reg_struct_has_addr): New function.
7087         (mcore_gdbarch_init): Added initializations for the macros removed
7088         from tm-mcore.h.
7089
7090 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7091
7092         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7093         traditonal string branding within the ELF header.
7094
7095 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7096
7097         * symtab.c (remove_params): New function.
7098         (make_symbol_overload_list): Use it instead of cplus_demangle.
7099         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7100
7101 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7102
7103         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7104
7105         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7106         New variables.
7107         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7108         and tdep->sigtramp_end.
7109         * i386obsd-nat.c: New file.
7110         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7111
7112         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7113         Don't call get_current_frame().
7114
7115 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7116
7117         * i386-nat.c (child_post_startup_inferior): New function
7118         calling i386_cleanup_dregs if
7119         I386_USE_GENERIC_WATCHPOINTS is defined.
7120         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7121         conditional to acknowledge that i386-nat.c has its
7122         own child_post_startup_inferior function.
7123
7124 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7125
7126         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7127         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7128         instead of MAX_REGISTER_RAW_SIZE.
7129         (i386_extract_return_value, i386_extract_struct_value_address):
7130         Convert to use regcache.
7131         (i386_gdbarch_init): Set max_register_raw_size and
7132         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7133         Set extract_return_value and extract_struct_value_address instead
7134         of their deprecated variants.
7135
7136         Convert i386 target to generic dummy frames.
7137         * i386-tdep.c: Include "symfile.h".
7138         (i386_frameless_signal_p): Consider a function to be frameless if
7139         the pc points at the first instruction of the function.
7140         (i386_frame_chain): Handle (generic) call dummies.
7141         (i386_frame_saved_pc): Likewise.
7142         (i386_frame_init_saved_regs): Remove code dealing with call
7143         dummies on the stack.
7144         (i386_push_dummy_frame): Removed.
7145         (i386_call_dummy_words): Removed.
7146         (i386_fix_call_dummy): Removed.
7147         (i386_push_return_address): New function.
7148         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7149         parameter, and don't call get_current_frame.
7150         (i386_pop_frame): New function.
7151         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7152         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7153         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7154         call_dummy_length to 0, set call_dummy_words to NULL, set
7155         sizeof_call_dummy_words to 0, set fix_call_dummy to
7156         generic_fix_call_dummy, set pc_in_call_dummy to
7157         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7158         generic_push_dummy_frame, set push_return_address to
7159         i386_push_return_address and set frame_chain_valid to
7160         generic_file_frame_chain_valid.
7161
7162 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7163
7164         * gdbarch.sh (struct regcache): Add opaque declaration.
7165         (EXTRACT_RETURN_VALUE): New architecture method.
7166         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7167         * gdbarch.h, gdbarch.c: Regenerate.
7168         * arch-utils.c (legacy_extract_return_value): New function.
7169         * arch-utils.h (legacy_extract_return_value): Declare.
7170         * values.c (value_being_returned): Re-enable code handling
7171         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7172         deprecated_grub_regcache_for_registers call to block handling
7173         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7174         (EXTRACT_RETURN_VALUE): Do not define.
7175
7176 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7177
7178         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7179         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7180         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7181         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7182         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7183         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7184         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7185         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7186         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7187         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7188         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7189         argument so the function fits the prototype in the architecture
7190         vector.
7191         (mcore_pop_frame): Remove argument so the function fits the
7192         prototype. Use get_current_frame instead of the argument.
7193         (mcore_push_arguments): Change type of struct_return so the
7194         function can be used in the architecture vector.
7195         (mcore_store_struct_return): Add.
7196         (mcore_frame_init_saved_regs): Add.
7197         (mcore_gdbarch_init): Add function calls to replace the macros
7198         removed from tm-mcore.h
7199
7200 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7201
7202         * infcmd.c (print_return_value): Remove compatibility code calling
7203         deprecated_grub_regcache_for_registers.
7204         
7205         * values.c: Include "regcache.h".
7206         (value_being_returned): Update.  Use
7207         deprecated_grub_regcache_for_registers to extract the register
7208         buffer address.  
7209         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7210         ``struct regcache''.
7211         * Makefile.in (values.o): Add dependency on $(regcache_h).
7212
7213         * inferior.h (run_stack_dummy): Change type of second parameter to
7214         a ``struct regcache''.
7215         * valops.c (hand_function_call): Change type of retbuf to ``struct
7216         regcache''.  Allocate using regcache_xmalloc, clean using
7217         make_cleanup_regcache_xfree.
7218         * infcmd.c (run_stack_dummy): Update.  Use
7219         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7220
7221         * regcache.c (do_regcache_xfree): New function.
7222         (make_cleanup_regcache_xfree): New function.
7223         * regcache.h (make_cleanup_regcache_xfree): Declare.
7224
7225 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7226
7227         * event-top.c (command_line_handler): Don't read past
7228         beginning of buffer.
7229
7230 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7231         
7232         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7233         struct frame_id. 
7234         (varobj_create): Store frame_id for root.
7235         (varobj_gen_name): Use xasprintf.
7236         (varobj_update): Save and restore frame using get_frame_id() and
7237         frame_find_by_id().
7238         (create_child): Use xasprintf.
7239         (new_root_variable): Initialize frame_id.
7240         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7241         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7242         to prevent memory leak.
7243
7244 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7245
7246         * valops.c (hand_function_call): Move declaration of retbuf to
7247         start of function, allocate using malloc, add a cleanup but before
7248         the inf_status cleanup, cleanup the buffer.  Rename local variable
7249         old_chain to inf_status_cleanup.
7250
7251 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7252
7253         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7254
7255         * cli/cli-decode.c (cmd_func_p): New function.
7256         (cmd_func): New function.
7257
7258         * command.h: Add cmd_func() and cmd_func_p().   
7259         
7260 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7261
7262         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7263         (REGISTER_SIZE): Remove.
7264         (MAX_REGISTER_RAW_SIZE): Remove.
7265         (REGISTER_VIRTUAL_TYPE): Remove.
7266         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7267         (REGISTER_NAME): Remove.
7268         (USE_GENERIC_DUMMY_FRAMES): Remove.
7269         (CALL_DUMMY): Remove.
7270         (CALL_DUMMY_START_OFFSET): Remove.
7271         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7272         (CALL_DUMMY_LOCATION): Remove.
7273         (FIX_CALL_DUMMY): Remove.
7274         (CALL_DUMMY_ADDRESS): Remove.
7275         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7276         (SAVE_DUMMY_FRAME_TOS): Remove.
7277         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7278         (mcore_register_virtual_type): New function.
7279         (mcore_register_byte): New function.
7280         (mcore_register_size): New function.
7281         (mcore_register_name): New function.
7282         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7283         macros removed from tm-mcore.h.
7284         (mcore_dump_tdep): Add.
7285         (_initialize_mcore_tdep): Add gdbarch_register call.
7286
7287 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7288
7289         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7290         frameless_look_for_prologue, such that we actually call this
7291         function.
7292
7293 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7294
7295         * frame.h (frame_address_in_block): New function.
7296
7297         * blockframe.c (frame_address_in_block): New function extracted
7298         from get_frame_block().
7299         (get_frame_block): Use frame_address_in_block().
7300         (block_innermost_frame): Use frame_address_in_block() to match
7301         the frame pc address against the block boundaries rather than
7302         the frame pc directly. This prevents a failure when a frame pc
7303         is actually a return-address pointing immediately after the end
7304         of the given block. 
7305
7306 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7307
7308         * MAINTAINERS: Add self under write after approval. 
7309
7310 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7311
7312         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7313         used in architecture vector. The default is
7314         m68k_local_breakpoint_from_pc.
7315         (m68k_local_breakpoint_from_pc): Add.
7316         (enum): Add register numbers from tm-m68k.h.
7317         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7318         vector.  
7319         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7320         GDB_MULTI_ARCH_PARTIAL.
7321         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7322         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7323         m68k-tdep.c.
7324         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7325         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7326         to enum in m68k-tdep.c
7327
7328 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7329
7330         * solib-osf.c (open_map): Compute the list of shared libraries
7331         loaded by the inferior, rather than the list of libraries loaded
7332         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7333         the wrong shared libraries...
7334
7335 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7336
7337         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7338         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7339         macros.
7340         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7341         Remove functions.
7342         (FRAMELESS_SIGNAL): Remove function.
7343         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7344         i386_linux_saved_pc_after_call): Removed.
7345         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7346         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7347         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7348
7349         * i386-tdep.c (i386_frameless_signal_p): New function.
7350         (i386_frame_chain): Deal with frameless signals.
7351         (i386_sigtramp_saved_sp): New function.
7352         (i386_frame_saved_pc): Deal with frameless signals.
7353         (i386_saved_pc_after_call): Make sure the correct value is
7354         returned just after entry into a sigtramp.
7355         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7356         i386fbsd4_sc_sp_offset): New variables.
7357         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7358         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7359         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7360         similiar to what we already did for sc_pc_offset.
7361         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7362         tdep->sc_sp_offset.
7363
7364         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7365
7366 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7367
7368         * config/i386/tm-x86-64linux.h: New.
7369         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7370         definitions.
7371         * config/i386/nm-x86-64.h: Rename to ...
7372         * config/i386/nm-x86-64linux.h: ... this one.
7373         * config/i386/x86-64linux.mh: Reflect the above change.
7374         
7375 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7376
7377         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7378         with sigcontext_addr.  Add sc_sp_offset.
7379         (i386bsd_sigtramp_saved_pc): Remove prototype.
7380         (i386bsd_sicontext_addr): Add prototype.
7381         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7382         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7383         (i386_svr4_sigtramp_saved_pc): Removed.
7384         (i386_svr4_sigcontext_addr): New function.
7385         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7386         Initialize tdep->sigcontext_addr instead.  Initialize
7387         tdep->sc_pc_offset and tdep->sc_sp_offset.
7388         (i386_gdbarch_init): Likewise.
7389         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7390         any more.
7391         (i386bsd_sigtramp_saved_pc): Remove function.
7392         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7393         Initialize tdep->sigcontext_addr instead.  Initialize
7394         tdep->sc_pc_offset.
7395         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7396         of tdep->sigtramp_saved_pc.
7397         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7398         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7399         instead.
7400
7401         * i386-tdep.c (i386_frameless_function_invocation,
7402         i386_frame_num_args, i386_frame_init_saved_regs,
7403         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7404         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7405         i386_extract_return_value, i386_store_return_value,
7406         i386_extract_struct_value_address, i386_register_virtual_type,
7407         i386_register_convertible, i386_register_convert_to_virtual,
7408         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7409         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7410         static.
7411
7412 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7413
7414         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7415
7416         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7417         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7418         this macro.  Include "value.h".
7419
7420 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7421
7422         * ada-exp.tab.c: remove as it's a generated file
7423         * ada-lex.c: remove as it's a generated file
7424                 
7425 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7426
7427         * config/i386/tm-i386.h (struct frame_info, struct
7428         frame_saved_regs, struct value, struct type): Remove forward
7429         declarations.
7430
7431         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7432         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7433         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7434         (FILL_FPXREGSET): Define.
7435
7436         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7437
7438         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7439         i[3456]86-*-netbsd* case.
7440         * config/i386/tm-obsd.h: Removed.
7441         * config/i386/obsd.mt: Removed.
7442         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7443         core-aout.o.
7444         (MH_CFLAGS): Add -DYYDEBUG=0.
7445
7446         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7447         i386nbsd_sc_pc_offset on OpenBSD too.
7448
7449         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7450         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7451         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7452         define.
7453         * i386bsd-tdep.c: Include "arch-utils.h".
7454         (i386bsd_aout_in_solib_call_trampoline): New function.
7455         (i386bsd_init_abi): Set in_solib_call_trampoline to
7456         i386bsd_aout_in_solib_call_trampoline.
7457         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7458         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7459
7460 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7461
7462         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7463         (struct obstack, struct bcache): Add opaque declarations.
7464         * Makefile.in (macrotab_h): Update
7465
7466 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7467
7468         * blockframe.c (generic_find_dummy_frame): Change return type to
7469         ``struct regcache''.
7470         (struct dummy_frame): Replace field ``registers'' with regcache, a
7471         struct regcache object.
7472         (generic_find_dummy_frame): Update.
7473         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7474         regcache_xmalloc and regcache_cpy.
7475         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7476         regcache_xfree.
7477         (deprecated_generic_find_dummy_frame): Update.
7478         (generic_read_register_dummy): Update.  Use
7479         regcache_read_as_address.
7480         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7481         (generic_get_saved_register): Update.  Use regcache_read.
7482
7483 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7484
7485         * Makefile.in (objfiles_h): Add $(bcache_h).
7486         * objfiles.h: Include "bcache.h".
7487
7488         * Makefile.in (symtab_h): Remove $(bcache_h).
7489         * symtab.h: Do not include "bcache.h".
7490
7491 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7492
7493         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7494         generic_func_frame_chain_valid.
7495
7496 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7497
7498         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7499         * config/i386/tm-fbsd.h: Likewise.
7500
7501 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7502
7503         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7504         generic_unwind_get_saved_register.
7505
7506 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7507
7508         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7509         * regcache.c (supply_register): Add missing argument to
7510         register_buffer call.
7511
7512 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7513
7514         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7515         Solaris /bin/grep does not not like it.  From Peter Schauer.
7516
7517 2002-06-26  Tom Tromey  <tromey@redhat.com>
7518
7519         * command.h (add_setshow_cmd): Declare.
7520         (add_setshow_cmd_full): Declare.
7521         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7522         returns void.  Use add_setshow_cmd_full.
7523         (add_setshow_cmd_full): New function.
7524         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7525         (add_setshow_boolean_cmd): Likewise.
7526
7527 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7528
7529         * config/vax/tm-vax.h: Protect from multiple inclusion.
7530         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7531         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7532         * config/vax/tm-vaxbsd.h: ...here.  New file.
7533         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7534
7535 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7536
7537         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7538         (BELIEVE_PCC_PROMOTION): Remove.
7539         (AP_REGNUM): Move to...
7540         * config/vax/nm-vax.h: ...here.
7541         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7542         (vax_breakpoint_from_pc): New function.
7543         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7544         and gdbarch_believe_pcc_promotion.
7545
7546 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7547
7548         * Makefile.in (vax_tdep_h): Define.  
7549         (vax-tdep.o): Use $(vax_tdep_h).
7550         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7551         (vax_dump_tdep): New function. 
7552         (_initialize_vax_tdep): Register vax_dump_tdep.
7553         * vax-tdep.h: Include osabi.h.     
7554         (struct gdbarch_tdep): New. 
7555
7556 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7557
7558         * frame.h (deprecated_generic_find_dummy_frame): Rename
7559         generic_find_dummy_frame.
7560         * blockframe.c (generic_find_dummy_frame): Make static.
7561         (deprecated_generic_find_dummy_frame): New function.
7562         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7563         generic_find_dummy_frame with deprecated_find_dummy_frame.
7564         (sh64_nofp_frame_init_saved_regs): Ditto.
7565         (sh_fp_frame_init_saved_regs): Ditto.
7566         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7567         (s390_frame_chain): Ditto.
7568         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7569
7570 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7571
7572         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7573         gdbarch vector are at the top.
7574         (NUM_REGS): Remove.
7575         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7576         (FRAME_ARGS_ADDRESS): Remove.
7577         (FRAME_LOCALS_ADDRESS): Remove.
7578         (FRAME_NUM_ARGS): Remove.
7579         (FRAME_ARGS_SKIP): Remove.  
7580         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7581         (m68k_gdbarch_init): Add gdbarch initializations for macros
7582         undefined in tm-m68k.h
7583
7584 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7585
7586         * monitor.h: Add the function regname to monitor_ops
7587         structure. This way NUM_REGS does not have to be a constant.
7588         * monitor.c (monitor_fetch_register): Added support for regname
7589         function. The function is called if the array regnames is NULL.
7590         (monitor_store_register): Same.
7591         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7592         regnames array.
7593         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7594         cpu32bug_cmds.regname to point to new function.
7595         * abug-rom.c (abug_regname): Same as above.
7596         (init_abug_cmds): Same.
7597         * dbug-rom.c (dbug_regname): Same as above.
7598         (init_dbug_cmds): Same.
7599         * remote-est.c (est_regname): Same. 
7600         (init_est_cmds): Same.
7601         * rom68k-rom.c (rom68k_regname): Same. 
7602         (init_rom68k_cmds): Same.
7603
7604 2002-06-25  Tom Tromey  <tromey@redhat.com>
7605
7606         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7607
7608 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7609
7610         * infrun.c (stop_registers): Change variable's type to ``struct
7611         regcache'''.
7612         (xmalloc_inferior_status): Delete function.
7613         (free_inferior_status): Delete function.
7614         (normal_stop): Use regcache_cpy.
7615         (struct inferior_status): Change type of fields ``stop_registers''
7616         and ``registers'' to ``struct regcache''.
7617         (write_inferior_status_register): Use regcache_write.
7618         (save_inferior_status): Instead of calling
7619         xmalloc_inferior_status, allocate the inf_status buffer directly.
7620         Use regcache_dup_no_passthrough and regcache_dup to save the
7621         buffers.
7622         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7623         Replace the stop_registers regcache instead of overriding it.  Use
7624         regcache_xfree.  Instead of calling free_inferior_status, xfree
7625         the buffer directly.
7626         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7627         free_inferior_status, xfree the buffer directly.
7628         (build_infrun): Use regcache_xmalloc.
7629         (_initialize_infrun): Delete redundant call to build_infrun.
7630
7631         * Makefile.in (infcmd.o): Add $(regcache_h).
7632
7633         * infcmd.c: Include "regcache.h".
7634         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7635         obtain the address of `stop_registers' register buffer.
7636         (print_return_value): Ditto.
7637
7638         * inferior.h (struct regcache): Add opaque declaration.
7639         (stop_registers): Change variable's declared type to ``struct
7640         regcache''.
7641
7642 2002-06-24  Tom Tromey  <tromey@redhat.com>
7643
7644         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7645         * target.c (initialize_targets): Fixed typo in
7646         trust-readonly-sections `show' documentation.
7647
7648         * main.c: Marked all strings with _().
7649
7650 2002-06-24  Don Howard  <dhoward@redhat.com>
7651
7652         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7653         that means max CORE_ADDR+1.
7654         (lookup_mem_region): Ditto.
7655         (mem_info_command): Ditto.
7656
7657 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7658
7659         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7660         (REGISTER_BYTES_OK): Remove.
7661         (REGISTER_BYTES): Remove.
7662         (STORE_STRUCT_RETURN): Remove.
7663         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7664         (STORE_RETURN_VALUE): Remove.
7665         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7666         (FRAME_CHAIN): Remove.
7667         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7668         (FRAME_SAVED_PC): Remove.  
7669         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7670         (m68k_store_struct_return): Add.
7671         (m68k_deprecated_extract_return_value): Add.
7672         (m68k_deprecated_extract_struct_value_address): Add.
7673         (m68k_store_return_value): Add.
7674         (m68k_frame_chain): Add.
7675         (m68k_frameless_function_invocation): Add.
7676         (m68k_frame_saved_pc): Add.
7677         (m68k_gdbarch_init): added set_gdbarch calls for new 
7678         functions and deleted macros.
7679
7680 2002-06-23  Tom Tromey  <tromey@redhat.com>
7681
7682         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7683         (ALLDEPFILES): Likewise.
7684         (udiheaders): Removed.
7685         (udip2soc.o): Likewise.
7686         (udi2go32.o): Likewise.
7687         (udr.o): Likewise.
7688         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7689
7690 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7691
7692         * infrun.c (_initialize_infrun): Delete unnecessary call to
7693         build_infrun.
7694
7695         * regcache.h: Update comments describing the regcache_cpy family
7696         of functions.
7697         (regcache_save, regcache_restore): Delete declaration.
7698         (regcache_save_no_passthrough): Delete declaration.
7699         (regcache_restore_no_passthrough): Delete declaration.
7700         * regcache.c (regcache_save): Delete function.
7701         (regcache_save_no_passthrough): Delete function.
7702         (regcache_restore): Delete function.
7703         (regcache_restore_no_passthrough): Delete function.
7704
7705 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7706
7707         * config/m68k/tm-m68k.h: Fix typo.
7708         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7709         (m68k_frame_init_saved_regs): Declare.
7710
7711 2002-06-21  Jim Blandy  <jimb@redhat.com>
7712
7713         Remove some vestiges of Harris 88k support.
7714         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7715         register numbering quirk.
7716         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7717         odd symbols occurring in Harris 88k ELF targets.
7718
7719 2002-06-21  Tom Tromey  <tromey@redhat.com>
7720
7721         * gdb_locale.h: New file.
7722         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7723         (defs_h): Added gdb_locale.h.
7724         * configure, config.in: Rebuilt.
7725         * configure.in (PACKAGE): Define.
7726         * defs.h: Include gdb_locale.h.
7727         * main.c (captured_main): Call setlocale, bindtextdomain,
7728         textdomain.
7729
7730 2002-06-21  Dave Brolley  <brolley@redhat.com>
7731
7732         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7733         * config/frv/frv.mt: New file.
7734         * config/frv/tm-frv.h: New file.
7735         * configure.tgt: Support frv-*-*.
7736         * Makefile.in (frv-tdep.o): New target.
7737         * frv-tdep.c: New file.
7738         * NEWS: Mention frv.
7739
7740 2002-06-21  Dave Brolley  <brolley@redhat.com>
7741
7742         * MAINTAINERS: Add self to "Write After Approval" list.
7743
7744 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7745
7746         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7747         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7748         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7749         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7750         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7751
7752         * m68k-tdep.c: Include arch-utils.h
7753         (m68k_register_raw_size): Add.
7754         (m68k_register_virtual_size): Add.
7755         (m68k_register_virtual_type): Add.
7756         (m68k_register_name): Add.
7757         (m68k_stack_align): Add.
7758         (m68k_register_byte): Add.
7759         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7760         tm-m68k.h.
7761
7762 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7763
7764         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7765         m68k_find_saved_regs.
7766         (m68k_pop_frame): Removed saved_regs structure, and replaced
7767         references to it with frame->saved_regs.
7768         (m68k_gdbarch_init): Added function calls to initialize the
7769         gdbarch structure.
7770         (m68k_fix_call_dummy): Add. 
7771         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7772         (CALL_DUMMY): Remove.
7773         (CALL_DUMMY_LENGTH): Remove.
7774         (CALL_DUMMY_START_OFFSET): Remove.
7775         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7776         (FIX_CALL_DUMMY): Remove.
7777         (PUSH_DUMMY_FRAME): Remove.
7778         (POP_FRAME): Remove.
7779
7780 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7781
7782         * parse.c (parse_fprintf): New function used to avoid calls to
7783         fprintf in bison parser generated debug code.
7784         * parser-defs.h: Declaration of new parse_fprintf function.
7785         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7786         Set YYDEBUG to 1 by default.
7787         Set YYFPRINTF as parse_fprintf.
7788
7789 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7790
7791         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7792         encoding anymore.
7793         (pointer_encoding, enum ptr_encoding): New.
7794         (execute_cfa_program): Take care about pointer encoding.        
7795         (dwarf2_build_frame_info): Only call parse_frame_info for 
7796         .debug_frame and .eh_frame.
7797         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7798         fixed augmentation handling, added relative addressing, 
7799         ignore duplicate FDEs. Added comments.
7800         * dwarf2cfi.c: Reindented.
7801         
7802 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7803
7804         * event-top.c (command_handler): Don't use space_at_cmd_start
7805         unless there is sbrk() on the host. Assign time and space data
7806         to union fields of the appropriate length.
7807
7808 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7809
7810         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7811         x86_64_register_name. Return type changed to 'const char *'.
7812         (x86_64_register_name2nr): Rename to x86_64_register_number.
7813         (x86_64_gdbarch_init): Update to reflect the change.
7814         * x86-64-tdep.h: Ditto.
7815         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7816         (supply_fpregset): Ditto.
7817
7818 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7819
7820         * regcache.h: Update copyright.
7821         (struct regcache, struct gdbarch): Add opaque declarations.
7822         (current_regcache): Declare global variable.
7823         (regcache_read, regcache_write): Add gdbarch parameter.
7824         (regcache_save, regcache_save_no_passthrough)
7825         (regcache_restore, regcache_restore_no_passthrough)
7826         (regcache_dup, regcache_dup_no_passthrough)
7827         (regcache_cpy, regcache_cpy_no_passthrough)
7828         (deprecated_grub_regcache_for_registers)
7829         (deprecated_grub_regcache_for_register_valid)
7830         (regcache_valid_p): Add function declarations.
7831         
7832         * regcache.c: Update copyright.
7833         (regcache_descr_handle): New global variable.
7834         (struct regcache_descr): Define.
7835         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7836         (regcache_descr, xfree_regcache_descr): New functions.
7837         (struct regcache): Define.
7838         (regcache_xmalloc, regcache_xfree): New functions.
7839         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7840         (regcache_dup, regcache_dup_no_passthrough): New functions.
7841         (regcache_valid_p, regcache_read_as_address): New functions.
7842         (deprecated_grub_regcache_for_registers): New function.
7843         (deprecated_grub_regcache_for_register_valid): New function.
7844         (current_regcache): New global variable.
7845         (register_buffer): Add regcache parameter.  Update calls.
7846         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7847         (read_register_gen, write_register_gen): Update register_buffer
7848         call.  Test for legacy_p instead of gdbarch_register_read_p or
7849         gdbarch_register_write_p.
7850         (regcache_collect): Update register_buffer call.
7851         (build_regcache): Rewrite.  Use deprecated grub functions.
7852         (regcache_save, regcache_save_no_passthrough): New functions.
7853         (regcache_restore, regcache_restore_no_passthrough): New
7854         functions.
7855         (_initialize_regcache): Create the regcache_data_handle. Swap
7856         current_regcache global variable.
7857         
7858         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7859         parameter to regcache_read and regcache_write calls.
7860         (sh4_register_read): Ditto.
7861         (sh64_pseudo_register_read): Ditto.
7862         (sh64_register_read): Ditto.
7863         (sh_pseudo_register_write): Ditto.
7864         (sh4_register_write): Ditto.
7865         (sh64_pseudo_register_write): Ditto.
7866         (sh64_register_write): Ditto.
7867
7868         * defs.h (XCALLOC): Define.
7869
7870 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7871
7872         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7873         * m68k-tdep.c (m68k_gdbarch_init): Added.
7874         (m68k_dump_tdep): Added.
7875
7876 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7877
7878         * ada-lang.c (fill_in_ada_prototype): Update comment.
7879
7880 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7881
7882         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7883         MIPS_ABI_LAST.
7884         (mips_abi_string, mips_abi_strings): New.
7885         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7886         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7887         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7888         O32 if no ABI is found.
7889         (mips_dump_tdep): Use mips_abi_strings.
7890         (mips_abi_update): New function.
7891         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7892         ``set mips abi'' and ``show mips abi''.  Check the size of
7893         mips_abi_strings.
7894
7895 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7896
7897         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7898         constant.
7899
7900 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7901
7902         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7903         current frame using only the first stack size adjustment. All
7904         subsequent size adjustments are not considered to be part of
7905         the "static" part of the current frame.
7906         Compute the address of the saved registers relative to the
7907         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7908         in use in this frame.
7909
7910 2002-06-18  Don Howard  <dhoward@redhat.com>
7911  
7912         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7913         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7914         suggesting this solution.
7915
7916 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7917
7918         * config/romp/xm-rtbsd.h: Delete file.
7919         * config/romp/rtbsd.mh: Delete file.
7920
7921 2002-06-18  Keith Seitz  <keiths@redhat.com>
7922
7923         * breakpoint.c (condition_command): Post breakpoint_modify
7924         when a condition is added to an existing breakpoint.
7925         (commands_command): Likewise for commands.
7926         (set_ignore_count): Likewise for ignore counts.
7927         If no tty, do not simply return, still need to send event
7928         notification.
7929         (ignore_command): Only print a newline if the command came
7930         from a tty.
7931         Don't call breakpoints_changed, since this is now properly
7932         handled by set_ignore_count.
7933
7934 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7935
7936         * MAINTAINERS: Note that cris-elf target can be compiled with
7937         -Werror.
7938         * cris-tdep.c (cris_register_name): Make return type constant.
7939         (cris_breakpoint_from_pc): Ditto.
7940
7941 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7942
7943         * frame.h (struct frame_info): Change type of context to 
7944         'struct context'.
7945
7946 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7947
7948         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7949         pointer.
7950         * gdbarch.h, gdbarch.c: Regenerate.
7951         * config/mips/tm-mips.h (mips_register_name): Update.
7952         * i386-tdep.h (i386_register_name): Update.
7953         * mips-tdep.c (mips_register_name): Update
7954         * alpha-tdep.c (alpha_register_name): Update.
7955         * arch-utils.c (legacy_register_name): Update.
7956         * arch-utils.h (legacy_register_name): Update.
7957         * avr-tdep.c (avr_register_name): Update.
7958         * ia64-tdep.c (ia64_register_name): Update.
7959         * i386-tdep.c (i386_register_name): Update.
7960         * sparc-tdep.c (sparc32_register_name): Update.
7961         (sparc64_register_name): Update.
7962         (sparclite_register_name): Update.
7963         (sparclet_register_name): Update.
7964         * sh-tdep.c (sh_generic_register_name): Update.
7965         (sh_sh_register_name): Update.
7966         (sh_sh3_register_name): Update.
7967         (sh_sh3e_register_name): Update.
7968         (sh_sh_dsp_register_name): Update.
7969         (sh_sh3_dsp_register_name): Update.
7970         (sh_sh4_register_name): Update.
7971         (sh_sh64_register_name): Update.
7972         * s390-tdep.c (s390_register_name): Update.
7973         * rs6000-tdep.c (rs6000_register_name): Update.
7974         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7975         (ns32k_register_name_32382): Update.
7976         * d10v-tdep.c (d10v_ts2_register_name): Update.
7977         (d10v_ts3_register_name): Update.
7978         * xstormy16-tdep.c (xstormy16_register_name): Update.
7979         * vax-tdep.c (vax_register_name): Update.
7980         * v850-tdep.c (v850_register_name): Update.
7981         * m68hc11-tdep.c (m68hc11_register_name): Update.
7982         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7983         (am33_register_name): Update.
7984
7985 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7986
7987         * m68k-tdep.c: Reindented.
7988
7989 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7990
7991         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7992         list of predefined types.
7993
7994 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7995
7996         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7997         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7998         REGISTER_CONVERT_TO_RAW): Remove defines.
7999         (i386_register_virtual_type, i386_register_convertible,
8000         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8001         Remove prototypes.
8002         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8003         macros mentioned above.
8004
8005         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8006         (i386lynx_saved_pc_after_call): Remove prototype.
8007         * i386ly-tdep.c: Include "i386-tdep.h".
8008         (i386lynx_saved_pc_after_call): Make static.  Use
8009         read_memory_nobpt instead of read_memory.  Use
8010         read_memory_unsigned_integer instead of read_memory_integer.
8011         (i386lynx_init_abi): New function.
8012         (i386lynx_coff_osabi_sniffer): New function.
8013         (_initialize_i386bsd_tdep): New function.
8014
8015         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8016         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8017         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8018         (i386_fix_call_dummy): Remove prototype.
8019         * i386-tdep.c (i386_call_dummy_words): New variable.
8020         (i386_gdbarch_init): Adjust for removal of the
8021         macros mentioned above.
8022
8023 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8024
8025         * command.h (add_setshow_auto_boolean_cmd): Replace
8026         add_set_auto_boolean_cmd.
8027         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8028         add_set_auto_boolean_cmd.
8029         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8030         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8031         mask-address'' command.
8032         (show_mask_address): Add cmd parameter.
8033         * remote.c (add_packet_config_cmd): Update.  Change type of
8034         set_func and show_func to cmd_sfunc_ftype.
8035         (_initialize_remote): Update `set remote Z-packet'
8036         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8037         (show_remote_protocol_e_packet_cmd): Ditto.
8038         (show_remote_protocol_E_packet_cmd): Ditto.
8039         (show_remote_protocol_P_packet_cmd): Ditto.
8040         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8041         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8042         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8043         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8044         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8045         (show_remote_protocol_Z_packet_cmd): Ditto.
8046         (show_remote_protocol_binary_download_cmd): Ditto.
8047         (show_remote_cmd): Pass NULL to all of above.
8048
8049 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8050
8051         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8052         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8053         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8054         POP_FRAME): Remove defines.
8055         (i386_push_arguments, i386_store_struct_return,
8056         i386_extract_return_value, i386_store_return_value,
8057         i386_extract_struct_value_address, i386_push_dummy_frame,
8058         i386_pop_frame): Renove prototypes.
8059         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8060         macros mentioned above.
8061
8062 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8063
8064         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8065         add_set_boolean_cmd.
8066         (add_setshow_cmd): New function.
8067         * command.h (add_setshow_boolean_cmd): Replace
8068         add_set_boolean_cmd.
8069         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8070         and ``set rdiromatzero''.
8071         * maint.c (_initialize_maint_cmds): Update commented out code.
8072         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8073         * target.c (initialize_targets): Update `set
8074         trust-readonly-sections'.
8075         * remote.c (_initialize_remote): Update `set remotebreak'.
8076
8077 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8078
8079         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8080         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8081         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8082         fit into multi-arch framework.
8083         (i386_breakpoint_from_pc): New function.
8084         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8085         above.
8086
8087         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8088         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8089         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8090         (i386_frameless_function_invocation, i386_frame_num_args,
8091         i386_frame_init_saved_regs): Remove prototypes.
8092         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8093         macros mentioned above.
8094
8095 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8096
8097         * cli/cli-decode.c (set_cmd_cfunc): Update.
8098         (set_cmd_sfunc): Update.
8099         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8100         (set_cmd_sfunc, set_cmd_cfunc): Update.
8101         * cli/cli-decode.h: Update.
8102
8103 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8104
8105         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8106         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8107
8108 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8109
8110         * defs.h (auto_boolean): Declare enum.
8111         * command.h (cmd_auto_boolean): Delete enum.
8112         * mips-tdep.c (mask_address_var): Update.
8113         (mips_mask_address_p): Update.
8114         (show_mask_address): Update.
8115         * remote.c (struct packet_config): Update.
8116         (update_packet_config): Update.
8117         (show_packet_config_cmd): Update.
8118         (packet_ok): Update.
8119         (add_packet_config_cmd): Update.
8120         (_initialize_remote): 
8121         * command.h: Update.
8122         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8123         (do_setshow_command): Update.
8124         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8125         * cli/cli-decode.h: Update.
8126
8127 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8128
8129         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8130         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8131         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8132         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8133         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8134         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8135
8136         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8137         list of DJGPP COFF targets.
8138
8139         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8140         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8141         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8142         (FP0_REGNUM): Remove define.
8143         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8144         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8145         (i386_register_virtual_size): Remove protoype.
8146         * i386-tdep.c (i386_register_virtual_size): Removed.
8147         (i386_extract_return_value, i386_store_return_value): Use
8148         FP0_REGNUM instead of NUM_FREGS to determine whether the
8149         floating-point registers are available.
8150         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8151         Adjust for removal of macros mentioned above.
8152
8153 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8154
8155         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8156         comments.
8157         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8158         Remove prototypes.
8159         (supply_gregset, fill_gregset): Remove use of register keyword and
8160         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8161         NUM_REGS and NUM_FREGS.
8162         (FPREGSET_FSAVE_OFFSET): Remove.
8163         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8164         NUM_FREGS to determine whether the floating-point registers are
8165         available.
8166
8167         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8168         gnu_store_registers): Replace usage of NUM_GREGS with
8169         I386_NUM_GREGS.
8170
8171         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8172         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8173         usage of NUM_GREGS with I386_NUM_GREGS.
8174
8175         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8176
8177         * i386bsd-nat.c: Include "i386-tdep.h".
8178         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8179         I386_NUM_GREGS.
8180
8181         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8182         and associated comment.  They no longer make any sense, since we
8183         don't use this file anymore on Linux.
8184
8185         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8186         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8187         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8188         elements in these arrays.
8189         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8190         MAX_NUM_REGS.
8191
8192 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8193
8194         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8195         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8196
8197 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8198
8199         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8200         EXTRACT_RETURN_VALUE.
8201         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8202         EXTRACT_STRUCT_VALUE_ADDRESS.
8203         * gdbarch.h, gdbarch.c: Regenerate.
8204         
8205         * values.c (value_being_returned): Handle
8206         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8207         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8208
8209         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8210         * arm-tdep.c (arm_gdbarch_init): Update.
8211         * avr-tdep.c (avr_gdbarch_init): Update.
8212         * cris-tdep.c (cris_gdbarch_init): Update.
8213         * d10v-tdep.c (d10v_gdbarch_init): Update.
8214         * ia64-tdep.c (ia64_gdbarch_init): Update.
8215         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8216         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8217         * s390-tdep.c (s390_gdbarch_init): Update.
8218         * sh-tdep.c (sh_gdbarch_init): Update.
8219         * s390-tdep.c (s390_gdbarch_init): Update.
8220         * sparc-tdep.c (sparc_gdbarch_init): Update.
8221         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8222         * v850-tdep.c (v850_gdbarch_init): Update.
8223         * vax-tdep.c (vax_gdbarch_init): Update.
8224         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8225         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8226
8227         * config/arc/tm-arc.h: Update.
8228         * config/d30v/tm-d30v.h: Update.
8229         * config/fr30/tm-fr30.h: Update.
8230         * config/h8300/tm-h8300.h: Update.
8231         * config/h8500/tm-h8500.h: Update.
8232         * config/i386/tm-i386.h: Update.
8233         * config/i386/tm-ptx.h: Update.
8234         * config/i386/tm-symmetry.h: Update.
8235         * config/i960/tm-i960.h: Update.
8236         * config/m32r/tm-m32r.h: Update.
8237         * config/m68k/tm-delta68.h: Update.
8238         * config/m68k/tm-linux.h: Update.
8239         * config/m68k/tm-m68k.h: Update.
8240         * config/m88k/tm-m88k.h: Update.
8241         * config/mcore/tm-mcore.h: Update.
8242         * config/mips/tm-mips.h: Update.
8243         * config/mn10200/tm-mn10200.h: Update.
8244         * config/pa/tm-hppa.h: Update.
8245         * config/pa/tm-hppa64.h: Update.
8246         * config/sparc/tm-sp64.h: Update.
8247         * config/sparc/tm-sparc.h: Update.
8248         * config/sparc/tm-sparclet.h: Update.
8249         * config/z8k/tm-z8k.h: Update.
8250
8251 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8252
8253         * Makefile.in (i386_linux_tdep_h): Define.
8254         (i386_tdep_h, i387_tdep_h): Define.
8255         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8256         $(i386_tdep_h) and $(i387_tdep_h).
8257         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8258
8259 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8260
8261         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8262         Already covered by the default.
8263
8264         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8265         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8266         (i386_gdbarch_init): Initialize long_double_format and long_double
8267         bit.
8268
8269         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8270         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8271         Move these to ...
8272         * config/i386/i386sol2.mh: ... here.
8273         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8274         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8275         (SIGCONTEXT_PC_OFFSET): Remove define.
8276         (IN_SIGTRAMP): Remove define.
8277         * i386-sol2-tdep.c: New file.
8278         
8279         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8280         * config/i386/tm-i386nw.h: Removed.
8281
8282         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8283         USE_STRUCT_CONVENTION): Remove defines.
8284         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8285         (get_longjmp_target): Remove prototype.
8286         (IN_SIGTRAMP): Remove define.
8287         (i386bsd_in_sigtramp): Remove prototype.
8288         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8289         function.  Update comment accordingly
8290         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8291         (FRAME_SAVED_PC): Remove define.
8292         (i386bsd_frame_saved_pc): Remove prototype.
8293         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8294         GET_LONGJMP_TARGET): Remove defines.
8295         (get_longjmp_target): Remove prototype.
8296         (IN_SIGTRAMP): Remove define.
8297         (i386bsd_in_sigtramp): Remove prototype.
8298         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8299         function.  Update comment accordingly
8300         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8301         (FRAME_SAVED_PC): Remove define.
8302         (i386bsd_frame_saved_pc): Remove prototype.
8303         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8304         Remove prototype.
8305         (USE_STRUCT_CONVENTION): Remove prototype.
8306         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8307         declaration.
8308         (_initialize_i386bsd_nat): Revise logic to determine some
8309         constants at compile time when compiling a native GDB.  Warn if
8310         things don't match up with what we expect.
8311         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8312         Remove variables.
8313         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8314         to use date stored in `struct gdbarch_tdep'.
8315         (i386bsd_sigcontext_offset): Remove varaible.
8316         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8317         stored in `struct gdbarch_tdep'.
8318         (i386bsd_frame_saved_pc): Make static.
8319         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8320         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8321         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8322         i386fbsd4_sc_pc_offset): New variables.
8323         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8324         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8325         functions.
8326         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8327         functions.
8328         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8329         Modify the value of i386fbsd_sigtramp_start and
8330         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8331         i386fbsd_sigtramp_end.
8332         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8333         function.
8334
8335         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8336         define to i386-linux-tdep.h.
8337         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8338         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8339         defines.
8340         (i386_linux_register_name, i386_linux_register_byte,
8341         i386_linux_register_raw_size): Remove prototypes.
8342         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8343         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8344         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8345         TARGET_WRITE_PC): Remove defines.
8346         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8347         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8348         i386_linux_write_pc): Remove prototypes.
8349         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8350         (get_longjmp_target): Remove prototype.
8351         * i386-linux-tdep.h: New file.
8352         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8353         * i386-linux-tdep.c: Include "i386-tdep.h" and
8354         "i386-linux-tdep.h".
8355         (i386_linux_register_name, i386_linux_register_byte,
8356         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8357         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8358         Make static.
8359         (i386_linux_init_abi): New function.
8360         (_initialize_i386_linux_tdep): New function.
8361
8362         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8363         (i386_saved_pc_after_call): Remove prototype.
8364         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8365         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8366         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8367         (i386_register_name, i386_stab_reg_to_regnum,
8368         i386_dwarf_reg_to_regnum): Remove prototypes.
8369         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8370         SIZEOF_SSE_REGS): Remove defines.
8371         (REGISTER_BYTES): Remove define.
8372         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8373         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8374         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8375         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8376         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8377         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8378         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8379         (get_longjmp_target): Remove prototype.
8380         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8381         (sigtramp_saved_pc): Remove define.
8382         (i386v4_sigtramp_saved_pc): Remove prototype.
8383         * config/i386/tm-go32.h (FRAME_CHAIN,
8384         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8385         (i386go32_frame_saved_pc): Remove prototype.
8386         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8387         (get_longjmp_target): Remove prototype.
8388         * i386-tdep.h: Include "osabi.h".
8389         (enum i386_abi): Removed.
8390         (enum struct_return): New enum.
8391         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8392         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8393         sc_pc_offset members.
8394         (i386_gdbarch_register_os_abi): Remove prototype.
8395         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8396         I386_SSE_NUM_REGS): New defines.
8397         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8398         I386_SSE_SIZEOF_REGS): New defines.
8399         (i386_register_name, i386_register_byte, i386_register_raw_size):
8400         New prototypes.
8401         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8402         (i386bsd_sigtramp_saved_pc): New prototype.
8403         * i386-tdep.c: Don't include "elf-bfd.h".
8404         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8405         i386_frame_chain, i386_saved_pc_after_call): Make static.
8406         (i386_frame_saved_pc): Rewrite to call architecture dependent
8407         function to deal with signal handlers.  Make static.
8408         (i386go32_frame_saved_pc): Removed.
8409         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8410         Removed.
8411         (i386_get_longjmp_target): New function.
8412         (default_struct_convention, pcc_struct_convention,
8413         reg_struct_convention, valid_conventions, struct_convention): New
8414         variables.
8415         (i386_use_struct_convention): New function.
8416         (i386v4_sigtramp_saved_pc): Renamed to
8417         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8418         (i386_pc_in_sigtramp): New function.
8419         (i386_abi_names): Removed.
8420         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8421         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8422         Removed.
8423         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8424         i386_gdbarch_register_os_abi): Removed.
8425         (struct i386_abi_handler): Removed.
8426         (i386_abi_handler_list): Removed.
8427         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8428         functions.
8429         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8430         i386_nw_init_abi): New functions.
8431         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8432         Use set_gdbarch_xxx() calls instead of relying on macros for a
8433         number of calls.
8434         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8435         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8436         Register the various architecture variants defined in this file.
8437
8438 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8439
8440         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8441         (struct main_type): Remove arg_types member.  Update comments for
8442         struct field.
8443         (TYPE_ARG_TYPES): Remove.
8444         (TYPE_FN_FIELD_ARGS): Update.
8445         (smash_to_method_type): Update prototype.
8446
8447         * c-typeprint.c (cp_type_print_method_args): Take method type
8448         instead of argument list.  Use new argument layout.  Simplify.
8449         (c_type_print_args): Use new argument layout.  Simplify.
8450         (c_type_print_base): Update call to cp_type_print_method_args.
8451         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8452         argument; use die->type instead.  Update call to
8453         smash_to_method_type.
8454         (read_structure_scope): Update call to dwarf2_add_member_fn.
8455         * gdbtypes.c (allocate_stub_method): Update comment.
8456         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8457         Use new argument layout.
8458         (check_stub_method): Use new argument layout.  Don't count
8459         void as an argument.
8460         (print_arg_types): Update comments.  Use new argument layout.
8461         (recursive_dump_type): Don't print arg_types member.
8462         * hpread.c (hpread_read_struct_type): Use new argument layout.
8463         (fixup_class_method_type): Likewise.
8464         (hpread_type_lookup): Likewise.
8465         * stabsread.c (read_type): Update calls to read_args and
8466         smash_to_method_type.
8467         (read_args): Use new argument layout.  Simplify.
8468         * valops.c (typecmp): Use new argument layout.  Update parameters
8469         and comments.  Simplify.
8470         (hand_function_call): Use new argument layout.
8471         (search_struct_method): Update call to typecmp.
8472         (find_overload_match): Use new argument layout.
8473
8474 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8475
8476         * NEWS: Mention multithreaded debug support for gdbserver.
8477
8478 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8479
8480         * MAINTAINERS: Mention NEWS.
8481
8482 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8483
8484         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8485         (struct mips_objfile_private, compare_pdr_entries): New.
8486         (non_heuristic_proc_desc): Read the ".pdr" section if it
8487         is present.
8488
8489 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8490
8491         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8492         (arm_debug): New static variable.
8493         (_initialize_arm_tdep): Add ``set debug arm'' command.
8494
8495 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8496
8497         * Makefile.in (sim_arm_h): Define.
8498         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8499         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8500         (arm_register_sim_regno): New function, map an internal REGNUM
8501         onto a simulator register number.
8502         (arm_gdbarch_init): Set register_sim_regno.
8503
8504 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8505
8506         * MAINTAINERS: Add self.
8507
8508 2002-06-11  Jim Blandy  <jimb@redhat.com>
8509
8510         * source.c (source_info): Mention whether the symtab has
8511         information about preprocessor macros.
8512
8513         Call the command `info macro', not `show macro'.
8514         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8515         Fix error message.
8516         (_initialize_macrocmd): Register `info_macro_command' in
8517         `infolist', not `showlist'.
8518
8519 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8520
8521         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8522         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8523         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8524         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8525         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8526         unconditionally.
8527         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8528         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8529         (_initialize_mips_tdep): Remove dead code.
8530         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8531         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8532         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8533         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8534         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8535         MIPS_LAST_FP_ARG_REGNUM): Remove.
8536
8537 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8538
8539         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8540         (unwind_tmp_obstack_free, parse_frame_info)
8541         (update_context, cfi_read_fp, cfi_write_fp)
8542         (cfi_frame_chain, cfi_init_extra_frame_info)
8543         (cfi_virtual_frame_pointer): Use the above function.
8544         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8545
8546 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8547
8548         * v850-tdep.c (v850_type_is_scalar): New function.
8549         (v850_use_struct_convention): Match current gcc implementation
8550         as close as possible.
8551         (v850_push_arguments): Fix stack_offset handling.  Don't write
8552         struct_addr into register.  This is done by v850_store_struct_return.
8553         (v850_extract_return_value): Care for structs.
8554         (v850_store_return_value): Ditto.
8555         (v850_store_struct_return): Actually write address.
8556
8557 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8558
8559         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8560         without debug information too.
8561
8562 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8563
8564         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8565         Make multi-arch pure.
8566         * gdbarch.h, gdbarch.c: Re-generate.
8567         * arm-tdep.c (arm_print_float_info): Update.
8568         * arch-utils.h (default_print_float_info): Update.
8569         * arch-utils.c (default_print_float_info): Update.
8570         * infcmd.c (float_info): Update call.
8571
8572 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8573
8574         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8575         the front of the initialize list.
8576
8577 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8578
8579         * infrun.c (struct inferior_status): Replace fields
8580         selected_frame_address and selected_level with field
8581         selected_frame_id.
8582         (save_inferior_status): Update.  Use get_frame_id.
8583         (struct restore_selected_frame_args): Delete.
8584         (restore_selected_frame): Update.  Use frame_find_by_id.
8585         (restore_inferior_status): Update.
8586
8587         * breakpoint.h (struct breakpoint): Change type of
8588         watchpoint_frame to frame_id.
8589         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8590         call to get_current_frame.
8591         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8592         get_current_frame.
8593         (watchpoint_check): Use frame_find_by_id.
8594
8595         * frame.h (record_selected_frame): Delete declaration.
8596         * stack.c (record_selected_frame): Delete function.
8597         
8598         * frame.h (struct frame_id): Define.
8599         (get_frame_id): Declare.
8600         (frame_find_by_id): Declare.
8601         * frame.c (frame_find_by_id): New function.
8602         (get_frame_id): New function.
8603
8604 2002-06-10  Andrey Volkov <avolkov@transas.com>
8605
8606         * ser-e7kpc.c: Fix duplicated define and call of 
8607         _initialize_ser_e7000pc
8608             
8609 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8610
8611         * signals/signals.c (target_signal_from_host): Fix #ifdef
8612         SIGRTMIN case.
8613         (do_target_signal_to_host): Likewise.
8614
8615 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8616
8617         * mips-tdep.c (mips_find_abi_section): New function.
8618         (mips_gdbarch_init): Call it.
8619
8620 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8621
8622         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8623         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8624         after Andrew's 2002-06-08 gdbarch change.
8625
8626 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8627
8628         * i386-linux-nat.c (suppy_gregset): Don't supply
8629         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8630         register cache.
8631         (fill_gregset): Don't fetch it under the same circumstances.
8632
8633 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8634
8635         * Makefile.in (callback_h): Define.
8636         (remote_sim_h): Update path to remote-sim.h.
8637         (remote-rdp.o): Add $(callback_h).
8638         (remote-sim.o): Use $(callback_h).
8639         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8640         * remote-rdp.c: Include "gdb/callback.h".
8641
8642 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8643
8644         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8645         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8646
8647 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8648
8649         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8650         * rdi-share/serpardr.c: Ditto.
8651         * rdi-share/unixcomm.c: Ditto.
8652         * rdi-share/serdrv.c: Ditto.
8653         * rdi-share/hostchan.h: Ditto.
8654         * rdi-share/hostchan.c: Ditto.
8655         * rdi-share/host.h: Ditto.
8656         * rdi-share/devsw.c: Ditto.
8657
8658         * objfiles.h: Change type of obj_private to void pointer.
8659         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8660         strcmp instead of STREQ, use LONGEST, do not use PTR
8661         * somsolib.c: Ditto.
8662
8663         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8664         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8665         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8666
8667 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8668
8669         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8670         (default_get_saved_register): Delete function.
8671         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8672         generic_unwind_get_saved_register.
8673         * gdbarch.h, gdbarch.c: Re-generate.
8674         
8675 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8676
8677         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8678         generic_func_frame_chain_valid.
8679         * gdbarch.h, gdbarch.c: Re-generate.
8680         * blockframe.c (generic_func_frame_chain_valid): Only check
8681         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8682         passing FP to PC_IN_CALL_DUMMY.
8683         Fix PR gdb/360.
8684
8685 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8686
8687         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8688         (register_gdbarch_data): Initialize init_p.
8689         (gdbarch_data): Initialize data pointer using the init function.
8690         (init_gdbarch_data): Delete function.
8691         (gdbarch_update_p): Update.
8692         (initialize_non_multiarch): Update.
8693         (struct gdbarch): Add field initialized_p.
8694         * gdbarch.h, gdbarch.c: Re-generate.
8695
8696 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8697
8698         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8699         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8700         better do the things actually here.
8701         * x86-64-tdep.c (x86_64_register_name2nr): New.
8702         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8703         (x86_64_gdbarch_init): Respect the above change.
8704         * x86-64-tdep.h (x86_64_register_name2nr)
8705         (x86_64_register_nr2name): Add prototypes.
8706         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8707
8708 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8709
8710         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8711         Delete extra braces and re-indent.
8712         (d10v_store_return_value): Char return values
8713         must be shifted over by one byte in R0.
8714         (d10v_extract_return_value): Delete extra braces, re-indent.
8715
8716 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8717
8718         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8719         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8720         (d10v_integer_to_address): Rewrite.
8721         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8722         the d10v specific functions which take care of converting to the
8723         correct space.
8724
8725 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8726
8727         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8728         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8729
8730 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8731
8732         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8733         includes.
8734         * config/tm-linux.h: Ditto.
8735         * config/alpha/tm-alphalinux.h: Ditto.
8736         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8737         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8738         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8739         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8740         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8741         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8742         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8743         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8744         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8745         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8746         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8747         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8748         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8749         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8750         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8751         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8752         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8753         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8754         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8755         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8756         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8757         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8758         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8759         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8760         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8761         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8762         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8763         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8764         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8765         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8766         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8767         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8768         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8769         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8770         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8771         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8772         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8773
8774 2002-05-04  Aidan Skinner <aidan@velvet.net>
8775
8776         * ada-exp.tab.c: New file
8777         * ada-exp.y: New file
8778         * ada-lang.c: New file
8779         * ada-lang.h: New file
8780         * ada-lex.c: New file
8781         * ada-lex.l: New file
8782         * ada-tasks.c: New file
8783         * ada-typeprint.c: New file
8784         * ada-valprint.c: New file
8785         
8786 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8787
8788         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8789         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8790
8791 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8792
8793         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8794         insetead of ppc-linux-tdep.o.
8795         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8796         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8797
8798 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8799
8800         2002-05-07 Christian Groessler <chris@groessler.org>
8801         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8802         bit register contents for little endian hosts.
8803
8804 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8805
8806         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8807         any maintainer.
8808
8809 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8810
8811         * gdbarch.h: Regenerate.
8812
8813 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8814
8815         * MAINTAINERS: Add everyone to write-after-approval list.
8816
8817 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8818
8819         * stack.c (frame_info): Use frame_register_unwind instead of
8820         saved_regs.  Mention when the SP is on the stack or in a register.
8821
8822         * frame.h (frame_register_unwind_ftype): Define.  Document.
8823         (struct frame_info): Add field register_unwind and
8824         register_unwind_cache.
8825         (frame_register_unwind): Declare.
8826         (generic_unwind_get_saved_register): Declare.
8827
8828         * frame.c (frame_register_unwind): New function.
8829         (generic_unwind_get_saved_register): New function.
8830
8831         * blockframe.c (generic_call_dummy_register_unwind): New function.
8832         (frame_saved_regs_register_unwind): New function.
8833         (set_unwind_by_pc): New function.
8834         (create_new_frame): New function.
8835         (get_prev_frame): New function.
8836
8837 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8838
8839         * a29k-share/: Delete directory.
8840         * remote-vx29k.c: Delete file.
8841
8842 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8843
8844         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8845         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8846
8847 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8848
8849         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8850         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8851         (sparc64nbsd-nat.o)
8852         (sparcnbsd-nat.o)
8853         (sparcnbsd-tdep.o): New dependency lists.
8854         * NEWS: Note new UltraSPARC NetBSD native configuration.
8855         * configure.host (sparc64-*-netbsd*): New host.
8856         * configure.tgt (sparc-*-netbsdelf*)
8857         (sparc-*-netbsd*): Set gdb_target to nbsd.
8858         (sparc64-*-netbsd*): New target.
8859         * sparc64nbsd-nat.c: New file.
8860         * sparcnbsd-nat.c: New file.
8861         * sparcnbsd-tdep.c: New file.
8862         * sparcnbsd-tdep.h: New file.
8863         * config/sparc/nbsd.mt: New file.
8864         * config/sparc/nbsd64.mh: New file.
8865         * config/sparc/nbsd64.mt: New file.
8866         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8867         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8868         (HOST_IPC): Remove.
8869         * config/sparc/nbsdaout.mt: Remove.
8870         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8871         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8872         (HOST_IPC): Remove.
8873         * config/sparc/nbsdelf.mt: Remove.
8874         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8875         sparc-nat.c compatiblity defines.
8876         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8877         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8878         * config/sparc/tm-nbsd64.h: New file.
8879         * config/sparc/tm-nbsdaout.h: Remove.
8880         * config/sparc/xm-nbsd.h: Remove.
8881
8882 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8883
8884         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8885         * sparc-tdep.c: Include osabi.h.
8886         (gdbarch_tdep): Add osabi member.
8887         (_initialize_sparc_tdep): Use gdbarch_register.
8888         (sparc_gdbarch_init): Use generic OS ABI framework.
8889         (sparc_dump_tdep): New function.
8890
8891 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8892
8893         * corefile.c (do_captured_read_memory_integer): Return non-zero
8894         result.
8895         (safe_read_memory_integer): Copy result of memory read when
8896         status is non-zero.  Also, add comments.
8897
8898 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8899
8900         * Makefile.in (ppc_tdep_h): Define.
8901         (ppc-linux-nat.o)
8902         (ppc-linux-tdep.o)
8903         (rs6000-tdep.o): Use $(ppc_tdep_h).
8904         (ppc-sysv-tdep.o)
8905         (ppcnbsd-nat.o)
8906         (ppcnbsd-tdep.o): New dependency lists.
8907         * ppc-tdep.h: Use generic OS ABI framework.
8908         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8909         (ppc_linux_init_abi): New functions.
8910         (ppc_sysv_abi_broken_use_struct_convention)
8911         (ppc_sysv_abi_use_struct_convention)
8912         (ppc_sysv_abi_push_arguments): Move to...
8913         * ppc-sysv-tdep.c: ...here.
8914         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8915         * rs6000-tdep.c (process_note_abi_tag_sections)
8916         (get_elfosabi): Remove.
8917         (rs6000_gdbarch_init): Use generic OS ABI framework.
8918         (rs6000_dump_tdep): New function.
8919         (_initialize_rs6000_tdep): Use gdbarch_register.
8920         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8921         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8922         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8923         of ppc-linux-tdep.o.
8924         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8925         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8926         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8927         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8928         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8929         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8930
8931 2002-05-29  Jim Blandy  <jimb@redhat.com>
8932
8933         * macroscope.c (default_macro_scope): Put `void' in empty argument
8934         list.
8935
8936 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8937
8938         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8939         * arch-utils.c: Include "sim-regno.h".
8940         * gdbarch.sh: Don't include "sim-regno.h".
8941         * gdbarch.h, gdbarch.c: Regenerate.
8942         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8943         here.
8944         * arch-utils.h (legacy_register_sim_regno): To here.
8945         * remote-sim.c (legacy_register_sim_regno): Move function from
8946         here.
8947         * arch-utils.c (legacy_register_sim_regno): To here.
8948
8949 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8950
8951         * sim-regno.h: New file.
8952         * Makefile.in (sim_regno_h): Define.
8953         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8954         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8955         (legacy_register_sim_regno): New function.
8956         (one2one_register_sim_regno): New function.
8957         (gdbsim_fetch_register): Rewrite.
8958         (gdbsim_store_register): Only store a register when
8959         REGISTER_SIM_REGNO is valid.
8960         * d10v-tdep.c: Include "sim-regno.h".
8961         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8962         (d10v_ts3_register_sim_regno): Ditto.
8963         * gdbarch.sh: Include "sim-regno.h".
8964         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8965         * gdbarch.h, gdbarch.c: Regenerate.
8966         * arch-utils.h (default_register_sim_regno): Delete declaration.
8967         * arch-utils.c (default_register_sim_regno): Delete function.
8968
8969 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8970
8971         * ppcnbsd-nat.c: Rewrite.
8972         * ppcnbsd-tdep.c: New file.
8973         * ppcnbsd-tdep.h: New file.
8974         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8975         solib.o, and solib-svr4.o.
8976         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8977         nbsd-tdep.o, and corelow.o.
8978
8979 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8980
8981         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8982         `tr' and `sed'.  Mention that `broken' targets are not expected to
8983         build.
8984
8985 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8986
8987         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8988         Let PC point right after the prologue before looking up symbols.
8989         
8990 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8991
8992         * i386-tdep.c (i386_register_virtual_type): Return 
8993         builtin_type_vec128i for SSE registers.
8994
8995         * gdbtypes.h (builtin_type_vec128i): Declare.
8996
8997         * gdbtypes.c (build_builtin_type_vec128i): New function.
8998         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8999         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9000         (build_gdbtypes): Initialize new builtin vector types.
9001         (_initialize_gdbtypes): Register new vector types with gdbarch.
9002
9003 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9004
9005         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9006         since it has been multi-arch'd.
9007         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9008         Move Alpha and VAX multi-arch news entries to same section
9009         as other multi-arch news.
9010
9011 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9012
9013         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9014         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9015         static.  Rename some register numbers to put them in ns32k-tdep
9016         private namespace.
9017         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9018         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9019         functions.
9020         (_initialize_ns32k_tdep): Use gdbarch_register.
9021         * ns32k-tdep.h: New file.
9022         * ns32knbsd-tdep.c: New file.
9023         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9024         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9025         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9026         REGISTER_BYTES, REGISTER_BYTE): Remove.
9027         * config/ns32k/tm-ns32k.h: New file.
9028         * config/ns32k/tm-umax.h: Remove.
9029
9030 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9031
9032         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9033         ns32k_store_struct_return, ns32k_extract_return_value,
9034         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9035         functions.
9036         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9037         ns32k_saved_pc_after_call.
9038         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9039         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9040         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9041         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9042         ns32k_extract_struct_value_address.
9043
9044 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9045
9046         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9047         ns32k_fix_call_dummy): New.
9048         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9049         ns32k_call_dummy_words.
9050         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9051         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9052         CALL_DUMMY_NARGS): Remove.
9053         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9054
9055 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9056
9057         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9058         ns32k_frame_saved_pc, ns32k_frame_args_address,
9059         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9060         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9061         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9062         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9063         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9064         (BREAKPOINT): Remove..
9065         (FRAME_CHAIN): Define as ns32k_frame_chain.
9066         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9067         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9068         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9069         (FRAME_FIND_SAVED_REGS): Remove.
9070         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9071         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9072         (POP_FRAME): Define as ns32k_pop_frame.
9073
9074 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9075
9076         * ns32k-tdep.c (ns32k_register_byte_32082,
9077         ns32k_register_byte_32382, ns32k_register_raw_size,
9078         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9079         functions.
9080         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9081         ns32k_register_byte_32382.
9082         * config/ns32k/tm-umax.h: Update copyright years.
9083         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9084         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9085         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9086         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9087         (ns32k_get_enter_addr): Fix prototype.
9088
9089 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9090
9091         * ns32k-tdep.c: Update copyright years.
9092         (ns32k_register_name_32082): New function.
9093         (ns32k_register_name_32382): Ditto.
9094         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9095         (REGISTER_NAME): Define as ns32k_register_name_32382.
9096         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9097         (REGISTER_NAME): Define as ns32k_register_name_32082.
9098
9099 2002-05-24  Jim Blandy  <jimb@redhat.com>
9100
9101         * dwarf2read.c (free_line_header): Use xfree, not free.
9102
9103 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9104
9105         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9106         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9107
9108 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9109
9110         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9111
9112 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9113
9114         From Ross Alexander at NEC Europe:
9115         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9116
9117 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9118
9119         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9120         for input, rather than parse_and_eval_address.  
9121
9122 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9123
9124         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9125         * Makefile.in (sim_d10v_h): Update definition.
9126
9127 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9128
9129         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9130         change `2002-05-22 Michael Snyder' below.
9131         (d10v_push_arguments): Ditto.
9132         (d10v_extract_return_value): Ditto.
9133
9134 2002-05-23  Jim Blandy  <jimb@redhat.com>
9135
9136         * macrotab.c (check_for_redefinition): Don't complain if the new
9137         definition is the same as the previous one.  Take more arguments
9138         to allow the comparison.
9139         (macro_define_object, macro_define_function): Pass more arguments
9140         to check_for_redefinition.
9141
9142 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9143
9144         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9145         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9146         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9147         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9148         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9149         Add a temp variable to save a call (and a memory read).
9150         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9151         if possible (so that PC_IN_CALL_DUMMY will work).
9152
9153 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9154
9155         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9156
9157 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9158
9159         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9160         fde->cie_ptr.
9161         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9162         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9163         so that frames of shared libraries are mapped correctly.
9164         (execute_stack_op): Change type of 'result' from ULONGEST to
9165         CORE_ADDR.
9166         
9167 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9168
9169         * config/alpha/tm-nbsd.h: Include solib.h.
9170
9171 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9172
9173         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9174         assumptions about the host's byte order.
9175
9176 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9177
9178         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9179         to dependency list.
9180         * alphanbsd-tdep.c: Include solib-svr4.h.
9181         * shnbsd-tdep.c: Ditto.
9182
9183 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9184
9185         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9186         nbsd-tdep.h to dependency list.
9187         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9188         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9189         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9190         nbsdaout.mh and nbsdelf.mh consistently.
9191         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9192         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9193         nbsdaout.mt and nbsdelf.mh consistently.
9194         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9195         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9196         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9197         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9198         a.out shared library stuff from here...
9199         * config/nm-nbsdaout.h: ...to here.
9200         * config/tm-nbsd.h: Remove.
9201         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9202         * config/arm/nbsd.mh: Remove.
9203         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9204         nbsd-tdep.o.
9205         * config/arm/nbsdaout.mh: New file. 
9206         * config/arm/nbsdelf.mh: New file.
9207         * config/arm/nm-nbsdaout.h: New file.
9208         * config/i386/nbsd.mh: Remove.
9209         * config/i386/nbsd.mt: Remove.
9210         * config/i386/nbsdaout.mh: New file.
9211         * config/i386/nbsdaout.mt: New file.
9212         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9213         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9214         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9215         i386_register_u_addr): Remove.
9216         * config/i386/nm-nbsdaout.h: New file.
9217         * config/i386/nm-nbsdelf.h: Remove.
9218         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9219         (USE_STRUCT_CONVENTION): Remove.
9220         * config/i386/tm-nbsdaout.h: New file.
9221         * config/i386/tm-nbsdelf.h: Remove.
9222         * config/m68k/nbsd.mh: Remove.
9223         * config/m68k/nbsd.mt: Remove.
9224         * config/m68k/nbsdaout.mh: New file.
9225         * config/m68k/nbsdaout.mt: New file. 
9226         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9227         * config/m68k/nm-nbsdaout.h: New file.
9228         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9229         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9230         * config/ns32k/nbsd.mh: Remove.
9231         * config/ns32k/nbsd.mt: Remove. 
9232         * config/ns32k/nbsdaout.mh: New file.
9233         * config/ns32k/nbsdaout.mt: New file.
9234         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9235         * config/ns32k/nm-nbsdaout.h: New file.
9236         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9237         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9238         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9239         (SVR4_SHARED_LIBS): Remove.
9240         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9241         * config/sparc/nbsd.mh: Remove.
9242         * config/sparc/nbsd.mt: Remove.
9243         * config/sparc/nbsdaout.mh: New file.
9244         * config/sparc/nbsdaout.mt: New file.
9245         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9246         * config/sparc/nbsdelf.mt: New file.
9247         * config/sparc/nm-nbsdaout.h: New file.   
9248         * config/sparc/nm-nbsdelf.h: Remove.
9249         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9250         * config/sparc/tm-nbsdaout.h: New file.
9251
9252 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9253
9254         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9255         mipsnbsd-tdep.c
9256         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9257
9258 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9259
9260         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9261         shnbsd-nat.c.
9262         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9263
9264 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9265
9266         * NEWS: Note new MIPS NetBSD native configuration. 
9267         * configure.host (mips*-*-netbsd*): New host. 
9268         * configure.tgt (mips*-*-netbsd*): New target. 
9269         * mipsnbsd-nat.c: New file.
9270         * mipsnbsd-tdep.c: New file.
9271         * mipsnbsd-tdep.h: New file.
9272         * config/mips/nbsd.mh: New file.
9273         * config/mips/nbsd.mt: New file.
9274         * config/mips/nm-nbsd.h: New file.
9275         * config/mips/tm-nbsd.h: New file.
9276
9277 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9278
9279         * Makefile.in (SFILES): Add osabi.c.
9280         (COMMON_OBS): Add osabi.o.
9281         (osabi.o): New dependency list.
9282         * osabi.c: New file.
9283         * osabi.h: New file.
9284         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9285
9286         * Makefile.in (alpha_tdep_h): Define and use instead of
9287         alpha-tdep.h.
9288         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9289         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9290         Remove.
9291         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9292         * alpha-tdep.h: Include osabi.h.
9293         (alpha_abi): Remove.
9294         (gdbarch_tdep): Use generic OS ABI framework.
9295         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9296         gdbarch_register_osabi.
9297         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9298         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9299         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9300
9301         * Makefile.in (sh_tdep_h): Add osabi.h.
9302         * sh-tdep.h (sh_osabi): Remove.
9303         (gdbarch_tdep): Use generic OS ABI framework.
9304         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9305         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9306         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9307         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9308
9309         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9310         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9311         gdbarch_register_osabi.
9312         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9313         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9314         (get_elfosabi): Rename to...
9315         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9316         ABI framework support routines.
9317         (arm_gdbarch_init): Use generic OS ABI framework.
9318         (arm_dump_tdep): Likewise.
9319         (_initialize_arm_tdep): Likewise.
9320         * arm-tdep.h: Include osabi.h.
9321         (arm_abi): Remove.
9322         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9323         osabi member.
9324         (arm_gdbarch_register_os_abi): Remove prototype.
9325         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9326         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9327
9328         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9329         * mips-tdep.c: Include osabi.h.
9330         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9331         OS ABI framework.
9332
9333 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9334
9335         * h8300-tdep.c: Fix formatting.
9336
9337 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9338
9339         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9340         printing vector registers.
9341
9342 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9343
9344         From Fernando Nasser:
9345         * remote.c (remote_async_open_1): Re-throw the exception when the
9346         connection fails.
9347         (remote_cisco_open): Ditto.
9348         (remote_open_1): Ditto.
9349
9350 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9351
9352         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9353         (remote_start_remote): Add uiout parameter.  Pass through to
9354         remote_start_remote_dummy.
9355         (remote_open_1): Use catch_exception instead of catch_errors.
9356         (remote_async_open_1): Ditto.
9357         (remote_cisco_open): Ditto.
9358
9359 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9360
9361         * remote.c (remote_start_remote): Replace PTR with void pointer.
9362         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9363         static.
9364
9365 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9366
9367         * gdb_indent.sh: Allow the script to be run in the sim directory.
9368
9369 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9370
9371         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9372         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9373
9374         * corelow.c (core_open): Only call set_gdbarch_from_file if
9375         exec_bfd is NULL.
9376
9377 2002-05-17  Andrey Volkov <avolkov@transas.com>
9378
9379         * h8300-tdep.c: Add support of EXR register
9380         * config/h8300/tm-h8300.h: Ditto. 
9381         
9382 2002-05-17  Andrey Volkov <avolkov@transas.com>
9383
9384         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9385         
9386 2002-05-17  Andrey Volkov <avolkov@transas.com>
9387
9388         * h8300-tdep.c: Change literal regnums to REGNO.
9389         
9390 2002-05-17  Jim Blandy  <jimb@redhat.com>
9391
9392         * NEWS: Note addition of macro support.
9393
9394         Expand preprocessor macros in C expressions.
9395         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9396         (scan_macro_expansion, scanning_macro_expansion,
9397         finished_macro_expansion): New function declarations.
9398         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9399         variable declarations.
9400         * parser-defs.h (expression_context_pc): New declaration.
9401         * parse.c (expression_context_pc): New variable.
9402         (parse_exp_1): Set expression_context_pc, as well as
9403         expression_context_block.
9404         * c-exp.y (yylex): If we're not already reading the result of a
9405         macro expansion, try to macro-expand the next token.  When we're
9406         done scanning a macro expansion, switch back to the mainline text.
9407         Commas and `if's in a macro's expansion don't terminate the input.
9408         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9409         (macro_original_text, macro_expanded_text,
9410         expression_macro_lookup_func, expression_macro_lookup_baton): New
9411         variables.
9412         (scan_macro_expansion, scanning_macro_expansion,
9413         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9414         c_preprocess_and_parse): New functions.
9415         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9416         c_preprocess_and_parse, instead of c_parse.
9417         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9418         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9419
9420 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9421
9422         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9423         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9424         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9425
9426 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9427
9428         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9429
9430 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9431
9432         * Makefile.in (sh_tdep_h): Define and use.
9433         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9434         register enum): Move to...
9435         * * sh-tdep.h: ...here.
9436         * sh-tdep.c: Include sh-tdep.h.
9437         * sh3-rom.c: Likewise.
9438         * shnbsd-tdep.c: Likewise.
9439
9440 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9441
9442         * arm-tdep.c: Spelling fix in comment.
9443
9444 2002-05-16  Jim Blandy  <jimb@redhat.com>
9445
9446         Add commands for manually expanding macros and showing their
9447         definitions.
9448         * macrocmd.c, macroscope.c, macroscope.h: New files.
9449         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9450         (macroscope_h): New variable.
9451         (HFILES_NO_SRCDIR): Add macroscope.h.
9452         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9453         (macroscope.o, macrocmd.o): New rules.
9454
9455         Teach the Dwarf 2 reader to read macro information.
9456         * dwarf2read.c: #include "macrotab.h".
9457         (dwarf_macinfo_buffer): New variable.
9458         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9459         dwarf_macinfo_size.
9460         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9461         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9462         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9463         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9464         dwarf2_macro_spaces_in_definition): New complaints.
9465         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9466         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9467         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9468         the partial symbol table.
9469         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9470         from what's recorded in the partial symbol table.
9471         (read_file_scope): If the compilation unit has a
9472         `DW_AT_macro_info' attribute, read its macro information.
9473         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9474
9475 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9476
9477         Fix PR gdb/546
9478         * ser-tcp.c: Don't include <netinet/udp.h>.
9479
9480 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9481
9482         * MAINTAINERS: Update my email address.
9483
9484 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9485
9486         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9487         include file of the same name.
9488
9489 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9490
9491         * configure.tgt: Mark v850 as multi-arched.
9492         * config/v850/tm-v850.h: Remove file.
9493         * config/v850/v850.mt: Eliminate TM_FILE.
9494
9495 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9496
9497         * v850-tdep.c: Full multi-arch.
9498         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9499         Define GDB_MULTI_ARCH to 2.
9500
9501 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9502
9503         * p-exp.y (current_type): New static variable.
9504         Carries the type of the expression at the position that is parsed.
9505         (push_current_type, pop_current_type): Two new functions. Used
9506         to store/restore current_type in expression on specific tokens.
9507         (search_field): New static variable. Set to one after parsing a point
9508         as at that point only a FIELDNAME token should be searched.
9509         (FIELDNAME): New token. After a point only a token belonging to 
9510         current_type type definition is allowed.
9511         (all over token rules): reset and change current_type according
9512         to rules.
9513         (exp '[' rule): insert implicit array index field if
9514         exp is a pascal string type.
9515
9516 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9517
9518         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9519         frame info.  Use frame_info's saved_regs instead of matching member
9520         in extra_frame_info throughout.
9521         (v850_frame_init_saved_regs): New function.
9522         (v850_init_extra_frame_info): Move most functionality into
9523         v850_frame_init_saved_regs().
9524         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9525         (v850_frame_find_saved_regs): Remove declaration.
9526         (FRAME_FIND_SAVED_REGS): Remove definition.
9527         (v850_frame_init_saved_regs): Add declaration.
9528         (FRAME_INIT_SAVED_REGS): Add definition.
9529
9530 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9531
9532         * v850-tdep.c: Begin multi-arch'ing v850.
9533         (v850_target_architecture_hook): Remove function.
9534         (v850_gdbarch_init): New function.  Add code previously in
9535         v850_target_architecture_hook().
9536         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9537         Call register_gdbarch_init() instead.
9538
9539 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9540
9541         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9542         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9543         (fixup_class_method_type): Likewise.
9544
9545 2002-05-15  Jim Blandy  <jimb@redhat.com>
9546
9547         Add macro structures to GDB's symbol tables.  Nobody puts anything
9548         in them yet.
9549         * symtab.h (struct symtab): New member: `macro_table'.
9550         * buildsym.h (pending_macros): New global variable.
9551         * buildsym.c: #include "macrotab.h".
9552         (buildsym_init): Initialize `pending_macros'.
9553         (end_symtab): If we found macro information while reading a CU's
9554         debugging info, do build a symtab structure for it.  Make the
9555         symtab point to the macro information, and clear the
9556         `pending_macros' pointer which held it while we were reading the
9557         debug info.
9558         (really_free_pendings): Free any pending macro table.
9559         * objfiles.h (struct objfile): New member: `macro_cache'.
9560         * objfiles.c (allocate_objfile): Set allocate and free functions
9561         for the macro cache's objstack.
9562         (free_objfile): Empty the macro cache's obstack.
9563         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9564         set new allocate and free functions for it.
9565         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9566         free functions for the macro cache's objstack.  (Why is this
9567         function building its own objfile?)
9568         * symmisc.c (print_objfile_statistics): Print statistics on the
9569         macro bcache.
9570         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9571
9572 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9573
9574         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9575         (REGISTER_U_ADDR): Delete definition.
9576         (arm_register_u_addr): Delete declaration.
9577
9578 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9579
9580         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9581         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9582
9583 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9584
9585         * regcache.c (register_valid): Revise comments refering to "Not
9586         available" and "unavailable".
9587         * frame.c (frame_register_read): Ditto.
9588         * findvar.c (value_of_register): Ditto.
9589
9590 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9591
9592         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9593         (remote-sim.o): Update dependencies.
9594         (d10v-tdep.o): Specify dependencies.
9595         (sim_d10v_h): Define.
9596
9597 2002-05-14  Jim Blandy  <jimb@redhat.com>
9598
9599         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9600         * macrotab.c (macro_lookup_inclusion, find_definition,
9601         new_macro_table): Same.
9602         
9603         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9604         not `! strcmp ()'.  This is a dubious improvement.
9605         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9606
9607         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9608         although it's not necessary, to avoid a warning.
9609
9610 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9611
9612         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9613         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9614         TYPE_INSTANCE_FLAGS.
9615         (struct main_type): New.
9616         (struct type): Move most members to struct main_type.  Change
9617         cv_type and as_type to new type_chain member.  Add instance_flags.
9618         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9619         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9620         (finish_cv_type): Remove prototype.
9621         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9622         Set TYPE_CHAIN.
9623         (alloc_type_instance): New function.
9624         (smash_type): New function.
9625         (make_pointer_type, make_reference_type, make_function_type)
9626         (smash_to_member_type, smash_to_method_type): Call smash_type.
9627         (make_qualified_type): New function.
9628         (make_type_with_address_space): Call make_qualified_type.
9629         (make_cv_type): Likewise.
9630         (finish_cv_type): Remove unnecessary function.
9631         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9632         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9633         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9634         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9635         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9636         * hpread.c (hpread_read_struct_type): Likewise.
9637         * stabsread.c (read_struct_type): Likewise.
9638
9639 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9640
9641         * configure.tgt: Add a catch all sh* target, for cases like
9642         sh[2,3,4]-elf and sh-hms.
9643
9644 2002-05-14  Keith Seitz  <keiths@redhat.com>
9645
9646         * event-loop.c (create_file_handler): Don't do anything but
9647         update data when we are given a fd which we are already
9648         monitoring.
9649
9650 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9651
9652         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9653         (update_context): Use __func__ in warnings.
9654         
9655 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9656
9657         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9658         and tcp_close to net_open and net_close.
9659         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9660         using UDP if requested.  Don't try to disable Nagle on UDP
9661         sockets.
9662         * remote.c (remote_serial_open): New function.  Warn about UDP.
9663         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9664
9665 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9666
9667         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9668
9669 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9670
9671         * configure.tgt: Remove sh-hms target.
9672         * MAINTAINERS: Don't list sh-hms as a separate target.
9673
9674 2002-05-13  Jim Blandy  <jimb@redhat.com>
9675
9676         Add first preprocessor macro-expansion files.
9677         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9678         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9679         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9680         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9681         (COMMON_OBS): Add macrotab.o, macroexp.o.
9682         (macroexp.o, macrotab.o): New rules.
9683
9684 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9685
9686         * config/m88k/tm-m88k.h: Update copyright.
9687         (m88k_target_write_pc): Declare
9688         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9689         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9690         (SHIFT_INST_REGS): Update definition.
9691         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9692         using old definition of TARGET_WRITE_PC.
9693         * regcache.c (generic_target_write_pc): Delete code handling
9694         NNPC_REGNUM.
9695         * gdbarch.sh (NNPC_REGNUM): Delete.
9696         * gdbarch.h, gdbarch.c: Regenerate.
9697
9698 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9699
9700         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9701         builtin reg number.
9702
9703 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9704
9705         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9706         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9707         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9708         access macros.
9709         * c-typeprint.c (cp_type_print_method_args): Likewise.
9710         (c_type_print_args): Likewise.
9711         * d10v-tdep.c (d10v_push_arguments): Likewise.
9712         (d10v_extract_return_value): Likewise.
9713         * expprint.c (print_subexp): Likewise.
9714         * gdbtypes.c (lookup_primitive_typename): Likewise.
9715         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9716         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9717         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9718         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9719         (TYPE_VECTOR): Likewise.
9720         * hpread.c (hpread_read_struct_type)
9721         (fix_static_member_physnames, fixup_class_method_type)
9722         (hpread_type_lookup): Likewise.
9723         * mdebugread.c (parse_symbol, parse_type): Likewise.
9724         * p-lang.c (is_pascal_string_type): Likewise.
9725         * valops.c (hand_function_call): Likewise.
9726         * x86-64-tdep.c (classify_argument): Likewise.
9727
9728         * hpread.c (hpread_read_function_type)
9729         (hpread_read_doc_function_type): Call replace_type.
9730         * dstread.c (create_new_type): Delete.
9731         (decode_dst_structure, process_dst_function): Call alloc_type.
9732         Use type access macros.
9733
9734 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9735
9736         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9737         the're not supported by the current architecture.
9738         (i387_fill_fxsave): Likewise.
9739
9740 2002-05-12  Fred Fish  <fnf@redhat.com>
9741
9742         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9743         sect_index_xxx members to index the first slot in section_offsets
9744         if all of the section_offsets are zero.
9745
9746 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9747
9748         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9749         checked in with last change.
9750
9751 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9752
9753         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9754         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9755         config.sub.
9756
9757 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9758
9759         * Makefile.in: Update dependencies.
9760
9761 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9762
9763         * language.c (local_hex_string_custom): Simplify.  Do not depend
9764         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9765
9766         * memattr.c (mem_info_command): Replace calls to
9767         longest_local_hex_string and longest_local_hex_string_custom.
9768         * buildsym.c (make_blockvector): Ditto.
9769         * solib.c (info_sharedlibrary_command): Ditto.
9770         * tracepoint.c (tracepoints_info): Ditto.
9771         * symtab.c (print_msymbol_info): Ditto.
9772
9773         * language.c (local_hex_string): Delete.
9774         (local_hex_string_custom): Delete.
9775         (longest_local_hex_string): Rename to local_hex_string.
9776         (longest_local_hex_string_custom): Rename to
9777         local_hex_string_custom.
9778         * language.h (local_hex_string): Change parameter type to LONGEST.
9779         (local_hex_string_custom): Ditto.
9780         (longest_local_hex_string): Delete declaration.
9781         (longest_local_hex_string_custom): Ditto.
9782
9783         * solib.c: Update copyright.
9784         * memattr.c: Update copyright.
9785         
9786 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9787
9788         * arch-utils.h (legacy_register_to_value): Declare.
9789         (legacy_value_to_register): Declare.
9790         (legacy_convert_register_p): Declare.
9791         * arch-utils.c (legacy_register_to_value): New function.
9792         (legacy_value_to_register): New function.
9793         (legacy_convert_register_p): New function.
9794
9795         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9796         (VALUE_TO_REGISTER): Define.
9797         (CONVERT_REGISTER_P): Define.
9798         * gdbarch.h, gdbarch.c: Regenerate.
9799
9800         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9801         VALUE_TO_REGISTER.
9802         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9803         CONVERT_REGISTER_P.
9804
9805 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9806             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9807
9808         * Makefile.in: Update dependencies for valops.c.
9809         * valops.c: Include "gdb_assert.h".
9810         (typecmp): Skip THIS parameter to methods.
9811         (find_method_list): Remove static_memfuncp argument,
9812         update callers.  Check for stub methods.
9813         (find_value_oload_method_list): Don't set *static_memfuncp.
9814         (find_overload_match): Don't check for stub methods.  Assert
9815         that methods are not stubbed.  Handle static methods.
9816         (value_find_oload_method_list): Remove static_memfuncp argument.
9817         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9818         to the argument list for static stub methods.
9819         * value.h (value_find_oload_method_list): Update prototype.
9820
9821 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9822
9823         * arch-utils.h (generic_register_size): Declare.
9824         (generic_register_raw_size, generic_register_virtual_size): Delete
9825         declarations.
9826         * arch-utils.c (generic_register_raw_size): Delete.
9827         (generic_register_size): New function.
9828         (generic_register_virtual_size): Delete.
9829
9830         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9831         default generic_register_size.
9832         * gdbarch.h, gdbarch.c: Re-generate.
9833         
9834         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9835         register_virtual_size.
9836         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9837         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9838
9839 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9840
9841         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9842         * gdbarch.h, gdbarch.c: Regenerate.
9843         * gnu-v3-abi.c: Update copyright.
9844         (vtable_address_point_offset): Update.
9845         (gnuv3_rtti_type): Update.
9846         (gnuv3_baseclass_offset): Update.
9847         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9848         (init_fetch_link_map_offsets): Update.
9849         * remote.c (get_remote_state): Update.
9850         
9851 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9852
9853         * TODO: Remove value_headof/value_from_vtable_info comment.
9854         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9855         * values.c (value_headof, value_from_vtable_info): Delete.
9856         * value.h (value_from_vtable_info): Delete prototype.
9857
9858 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9859
9860         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9861         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9862         $(gdb_regex_h).
9863         (gdb_assert_h): Define.
9864         (gdb_wait_h): Define.
9865         (gdb_regex_h): Define.
9866
9867 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9868
9869         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9870         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9871
9872 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9873
9874         * nbsd-tdep.c: Fix comment.
9875
9876 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9877
9878         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9879         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9880         (nbsd-tdep.o): New dependency list.
9881         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9882         nbsd-tdep.h.
9883         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9884         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9885         * nbsd-tdep.c: New file.
9886         * nbsd-tdep.h: New file.
9887         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9888         nbsd-tdep.h.
9889         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9890         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9891         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9892         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9893
9894 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9895
9896         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9897         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9898         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9899         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9900         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9901         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9902
9903 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9904
9905         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9906         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9907         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9908         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9909         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9910         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9911         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9912
9913 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9914
9915         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9916         fetch_elfcore_registers to...
9917         * i386nbsd-tdep.c: ...here.
9918         (i386nbsd_use_struct_convention): Rename to...
9919         (i386nbsd_aout_use_struct_convention): ...this.
9920         (i386nbsd_supply_reg): New function.
9921         (i386nbsd_fill_reg): New function.
9922         (fetch_core_registers): Use i386nbsd_supply_reg.
9923         (fetch_elfcore_registers): Likewise.
9924         (_initialize_i386nbsd_tdep): New function.
9925         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9926         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9927         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9928         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9929         (i386nbsd_aout_use_struct_convention): ...this.
9930
9931 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9932
9933         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9934         (store_inferior_registers): Use shnbsd_fill_reg.
9935         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9936         sh_nbsd_supply_register): Collapse into...
9937         (shnbsd_supply_reg): ...this.
9938         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9939         (shnbsd_fill_reg): ...this.
9940         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9941         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9942         (fetch_core_registers): Use shnbsd_supply_reg.
9943         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9944         (sh_nbsd_core_fns): Rename to...
9945         (shnbsd_core_fns): ...this.
9946         (sh_nbsd_elfcore_fns): Rename to...
9947         (shnbsd_elfcore_fns): ...this.
9948         (sh_nbsd_init_abi): Rename to...
9949         (shnbsd_init_abi): ...this.
9950         (_initialize_sh_nbsd_tdep): Rename to...
9951         (_initialize_shnbsd_tdep): ...this.
9952         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9953         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9954         sh_nbsd_fill_register): Remove prototypes.
9955         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9956
9957 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9958
9959         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9960         (i387-nat.o): Delete dependency list.
9961         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9962         (x86-64-linux-nat.o): Likewise.
9963         * i387-nat.c: Delete file, moving contents to...
9964         * i387-tdep.c: ...here.
9965         * i387-nat.h: Rename...
9966         * i387-tdep.h: ...to this.
9967         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9968         * i386-linux-nat.c: Likewise.
9969         * i386bsd-nat.c: Likewise.
9970         * i386gnu-nat.c: Likewise.
9971         * i386nbsd-nat.c: Likewise.
9972         * i386v4-nat.c: Likewise.
9973         * x86-64-linux-nat.c: Likewise.
9974         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9975         * config/i386/go32.mh (NATDEPFILES): Likewise.
9976         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9977         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9978         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9979         * config/i386/linux.mh (NATDEPFILES): Likewise.
9980         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9981         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9982         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9983         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9984
9985 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9986
9987         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9988         (alphanbsd-nat.o): Remove dependency list.
9989         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9990         * alphanbsd-nat.c: Delete.  Contents moved to...
9991         * alphanbsd-tdep.c: ...here.
9992         (_initialize_alphanbsd_tdep): Register core functions.
9993         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9994
9995 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9996
9997         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9998         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9999         (alphanbsd-nat.o): Likewise.
10000         (alphabsd-tdep.o): New dependency list.
10001         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10002         (fill_gregset): Use alphabsd_fill_reg.
10003         (supply_fpregset): Use alphabsd_supply_fpreg.
10004         (fill_fpregset): Use alphabsd_fill_fpreg.
10005         (fetch_inferior_registers): Use struct reg and struct fpreg
10006         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10007         and alphabsd_supply_fpreg.
10008         (store_inferior_registers): Use struct reg and struct fpreg
10009         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10010         and alphabsd_fill_fpreg.
10011         * alphabsd-tdep.c: New file.
10012         * alphabsd-tdep.h: New file.
10013         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10014         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10015         alphabsd_supply_fpreg.
10016         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10017         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10018
10019 2002-05-11  Eric Christopher  <echristo@redhat.com>
10020
10021         * mips-tdep.c (mips_double_register_type): Fix thinko.
10022         (mips_single_register_type): Ditto.
10023         * MAINTAINERS: Add self.
10024
10025 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10026
10027         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10028         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10029         right thing on architectures with different endianness and/or
10030         integer sizes.
10031
10032 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10033
10034         From Christian Limpach <chris@Pin.LU>
10035         * configure.in: Change sed expression which comments out
10036         NATDEPFILES to also comment out continuation lines.
10037         * configure: Regenerate.
10038
10039 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10040
10041         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10042         big patch.
10043
10044 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10045
10046         * sh-tdep.c: Include correct file.
10047
10048 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10049
10050         New support for sh64-elf (sh5) target.
10051
10052         * configure.tgt: For sh64-elf target, default to sh-elf.
10053
10054         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10055         (struct gdbarch_tdep): Add new fields for new registers and ABI
10056         info.
10057
10058         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10059         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10060         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10061         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10062         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10063         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10064         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10065         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10066         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10067         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10068         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10069         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10070         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10071         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10072         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10073         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10074         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10075         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10076         sign_extend, sh64_nofp_frame_init_saved_regs,
10077         sh64_init_extra_frame_info, sh64_get_saved_register,
10078         sh64_extract_struct_value_address, sh64_pop_frame,
10079         sh64_push_arguments, sh64_extract_return_value,
10080         sh64_store_return_value, sh64_show_media_regs,
10081         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10082         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10083         sh_sh64_register_virtual_type,
10084         sh_sh64_register_convert_to_virtual,
10085         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10086         sh64_register_read, sh64_pseudo_register_write,
10087         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10088         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10089         sh64_do_pseudo_register, sh_compact_do_registers_info,
10090         sh64_do_registers_info, sh_gdbarch_init): New functions.
10091
10092 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10093
10094         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10095
10096 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10097
10098         * linespec.c (decode_line_1): Check for a double quote after
10099         a filename correctly.
10100
10101 2002-05-10  Jim Blandy  <jimb@redhat.com>
10102
10103         Properly track the size of the current objfile's .debug_line section.
10104         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10105         (DWARF_LINE_SIZE): New macro.
10106         (dwarf2_build_psymtabs_hard): Record the line section's size in
10107         the partial symbol table.
10108         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10109         symbol table.
10110
10111 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10112
10113         * ia64-tdep.c: Handle breakpoints on L instruction type
10114         in MLX instruction bundle by moving the breakpoint to
10115         the third slot (X instruction type) as L holds only data.
10116
10117 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10118
10119         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10120         (process_one_symbol): Complain about discarding local symbols
10121         due to a misplaced N_LBRAC entry.
10122
10123 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10124
10125         From Daniel Berlin <dan@cgsoftware.com>
10126         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10127         decrease the depth we are at, in the case of templates.
10128
10129 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10130
10131         * mips-tdep.c (mips_float_register_type): New function.
10132         (mips_double_register_type): New function.
10133         (mips_print_register): Use them.
10134         (do_fp_register_row): Likewise.
10135
10136 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10137
10138         * signals/signals.c (signals): Remove conditional compilation around
10139         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10140         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10141
10142 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10143
10144         * remote-rdp.c (remote_rdp_can_run): Remove.
10145
10146 2002-05-09  Tom Tromey  <tromey@redhat.com>
10147
10148         * jv-valprint.c (java_val_print): Handle `char' as a special case
10149         of TYPE_CODE_INT.
10150
10151 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10152
10153         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10154         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10155         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10156         str r(0123),[sp,#nn].
10157         (arm_skip_prologue): Ditto.  Also make disassembly
10158         order-independent by placing it in a loop.
10159
10160 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10161
10162         * stabsread.c (read_type): Add recognition for new attribute:
10163         "@V;" means that an array type is actually a vector.
10164         This is analogous to the vector flag that's been added to dwarf2.
10165
10166 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10167
10168         * i386-tdep.h (i386_abi): New enum.
10169         (struct gdbarch_tdep): Replace os_ident member with abi.
10170         (i386_gdbarch_register_os_abi): New prototype.
10171         * i386-tdep.c (i386_abi_names): New array.
10172         (process_note_abi_tag_sections): Removed.
10173         (process_note_sections): New function.
10174         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10175         (struct i386_abi_handler): New struct.
10176         (i386_abi_handler_list): New variable.
10177         (i386_gdbarch_register_os_abi): New function.
10178         (i386_gdbarch_init): Adapt for the changes given above.
10179
10180 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10181
10182         * gregset.h: Say "GNU/Linux".
10183
10184 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10185
10186         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10187         (build_gdbtypes): Build builtin_type_v2_float.
10188         (_initialize_gdbtypes): Register new builtin type.
10189
10190 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10191
10192         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10193         (clear_gdbarch_swap): New function.
10194         (initialize_non_multiarch): Call.
10195         (gdbarch_update_p): Before calling init(), swap out and clear the
10196         existing architecture.
10197         * gdbarch.c: Regenerate.
10198
10199 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10200
10201         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10202         alphanbsd-tdep.c.
10203
10204 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10205
10206         * sh-nbsd-nat.c: Rename to...
10207         * shnbsd-nat.c: ...this.
10208         * sh-nbsd-tdep.c: Rename to...
10209         * shnbsd-tdep.c: ...this.
10210         * sh-nbsd-tdep.h: Rename to...
10211         * shnbsd-tdep.h: ...this.
10212         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10213         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10214
10215 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10216
10217         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10218         concatenation for command help messages.
10219
10220 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10221
10222         * NEWS: Note new sh*-*-netbsdelf* configuration.
10223         * configure.host: Set gdb_host_cpu to sh for all sh*.
10224         (sh*-*-netbsdelf*): New host.
10225         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10226         (sh*-*-netbsdelf*): New target.
10227         * sh-nbsd-nat.c: New file.
10228         * sh-nbsd-tdep.c: New file.
10229         * sh-nbsd-tdep.h: New file.
10230         * config/sh/nbsd.mh: New file.
10231         * config/sh/nbsd.mt: New file.
10232         * config/sh/nm-nbsd.h: New file.
10233         * config/sh/tm-nbsd.h: New file.
10234
10235 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10236
10237         * sh-tdep.c (sh_osabi_names): Declare.
10238         (process_note_abi_tag_sections): New function.
10239         (get_elfosabi): Ditto.
10240         (sh_gdbarch_register_os_abi): Ditto.
10241         (sh_dump_tdep): Ditto.
10242         _initialize_sh_tdep): Use gdbarch_register to register
10243         sh_gdbarch_init and sh_dump_tdep.
10244         * config/sh/tm-sh.h (sh_osabi): Declare.
10245         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10246
10247 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10248
10249         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10250         (thumb_scan_prologue): Ditto.
10251         (arm_find_callers_reg): Ditto.
10252         (arm_frame_chain): Ditto.
10253         (arm_init_extra_frame_info): Ditto.
10254         (arm_frame_saved_pc): Ditto.
10255         (arm_pop_frame): Ditto.
10256         (arm_push_return_address): New function.
10257         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10258         call_dummy_location, call_dummy_breakpoint_offset_p,
10259         call_dummy_breakpoint_offset, call_dummy_p,
10260         call_dummy_stack_adjust_p, call_dummy_words,
10261         sizeof_call_dummy_words, call_dummy_start_offset,
10262         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10263         call_dummy_address, push_return_address and push_dummy_frame for
10264         generic dummy frames.
10265
10266 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10267
10268         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10269         size computation for alloca.
10270         (sh_fp_frame_init_saved_regs): Likewise.
10271
10272 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10273
10274         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10275         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10276         * arm-tdep.c (arm_store_return_value): Use them.
10277         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10278         * remote-rdp.c (remote_rdp_fetch_register): Use
10279         ARM_MAX_REGISTER_RAW_SIZE.
10280         (remote_rdp_store_register): Likewise.
10281
10282 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10283
10284         * dwarf2cfi.c: Code cleanup, removed unused variables,
10285         added default labels to switch {} statements.
10286         * x86-64-tdep.c: Ditto.
10287         * x86-64-linux-nat.c: Ditto.
10288
10289 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10290
10291         * solib.h: Protect against multiple inclusion.
10292
10293 2002-05-06  Jim Blandy  <jimb@redhat.com>
10294
10295         Add first preprocessor macro-expansion files.
10296         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10297         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10298         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10299         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10300         (COMMON_OBS): Add macrotab.o, macroexp.o.
10301         (macroexp.o, macrotab.o): New rules.
10302
10303         Separate the job of reading the line number info statement program
10304         header (...expialidocious) out into its own function.
10305         * dwarf2read.c (struct line_head, struct filenames, struct
10306         directories): Replace with...
10307         (struct line_header): New structure, containing the full
10308         contents of the statement program header, including the
10309         include directory and file name tables.
10310         (read_file_scope): If we have line number info, instead of just
10311         calling dwarf_decode_lines to do all the work, call
10312         dwarf_decode_line_header first to get a `struct line_header'
10313         containing the data in the statement program header, and then
10314         pass that to dwarf_decode_lines, which will pick up where that
10315         left off.  Be sure to clean up the `struct line_header' object.
10316         (dwarf_decode_line_header, free_line_header, add_include_dir,
10317         add_file_name): New functions.
10318         (dwarf_decode_lines): Move all the code to read the statement
10319         program header into dwarf_decode_line_header.  Take the line
10320         header it built as the first argument, instead of the offset to
10321         the compilation unit's line number info.  Use the new `struct
10322         line_header' type instead of the old structures.  No need to do
10323         cleanups here now, since we don't allocate anything.
10324         (dwarf2_statement_list_fits_in_line_number_section,
10325         dwarf2_line_header_too_long): New complaints.
10326
10327 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10328
10329         * gdbtypes.c (init_vector_type): New function.
10330         (build_builtin_type_vec128): Simplify the representation of SIMD
10331         registers.
10332         (build_gdbtypes): Initialize new builtin vector types.
10333         (_initialize_gdbtypes): Register new vector types with gdbarch.
10334         (builtin_type_v4_float, builtin_type_v4_int32,
10335         builtin_type_v8_int16, builtin_type_v16_int8,
10336         builtin_type_v2_int32, builtin_type_v4_int16,
10337         builtin_type_v8_int8): New (renamed) SIMD types.
10338
10339 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10340
10341         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10342         (i387_fill_fxsave): Likewise.
10343
10344 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10345
10346         * alpha-tdep.c (alpha_extract_return_value): Don't use
10347         non-constant array size in prototype.
10348
10349 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10350
10351         From Brian Taylor <briant at model dot com>:
10352         * ui-out.c (ui_out_field_core_addr): Use the function
10353         longest_local_hex_string_custom'to format addresses > 32 bits
10354         wide.
10355
10356         * ui-out.c (ui_out_field_core_addr): Update comment.
10357
10358 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10359
10360         * stack.c (select_and_print_frame): Make static.  Delete the
10361         parameter `level'.
10362         (func_command): Update call.
10363         (select_frame_command): Delete code computing the frame level.
10364         * frame.h (select_and_print_frame): Delete declaration.
10365
10366 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10367
10368         * sparc-tdep.c (sparc_get_saved_register): Comment why
10369         get_prev_frame call is safe.
10370
10371 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10372
10373         * frame.h (select_frame): Delete level parameter.
10374         * stack.c (select_frame): Update.  Use frame_relative_level to
10375         obtain the frame's level.
10376         (select_and_print_frame): Update call.
10377         (select_frame_command): Ditto.
10378         (up_silently_base): Ditto.
10379         (down_silently_base): Ditto.
10380         * ocd.c (ocd_start_remote): Ditto.
10381         * remote-rdp.c (remote_rdp_open): Ditto.
10382         * remote-mips.c (mips_initialize): Ditto.
10383         (common_open): Ditto.
10384         * remote-e7000.c (e7000_start_remote): Ditto.
10385         * m3-nat.c (select_thread): Ditto.
10386         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10387         (child_get_current_exception_event): Ditto.
10388         * varobj.c (varobj_create): Ditto.
10389         (varobj_update): Ditto.
10390         (c_value_of_root): Ditto.
10391         * tracepoint.c (finish_tfind_command): Ditto.
10392         * corelow.c (core_open): Ditto.
10393         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10394         * thread.c (info_threads_command): Ditto.
10395         (switch_to_thread): Ditto.
10396         * infrun.c (normal_stop): Ditto.
10397         (restore_selected_frame): Ditto.
10398         (restore_inferior_status): Ditto.
10399         * breakpoint.c (insert_breakpoints): Ditto.
10400         (watchpoint_check): Ditto.
10401         (bpstat_stop_status): Ditto.
10402         (do_enable_breakpoint): Ditto.
10403         * blockframe.c (flush_cached_frames): Ditto.
10404         (reinit_frame_cache): Ditto.
10405
10406 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10407
10408         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10409         maintainer.
10410
10411 2002-05-04  Jim Blandy  <jimb@redhat.com>
10412
10413         * gdbtypes.c (replace_type): Doc fix.
10414
10415 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10416
10417         * valprint.c (strcat_longest): Delete commented out function.
10418         Update copyright.
10419
10420 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10421
10422         * MAINTAINERS: Mark a29k as deleted.
10423         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10424         Move new configurations to the top.
10425         * configure.tgt: Remove a29k.
10426         * config/a29k/tm-vx29k.h: Delete.
10427         * config/a29k/vx29k.mt: Delete.
10428         * config/a29k/tm-a29k.h: Delete.
10429         * config/a29k/a29k-udi.mt: Delete.
10430         * config/a29k/a29k.mt: Delete.
10431         * a29k-tdep.c: Delete.
10432         * remote-udi.c: Delete.
10433         * remote-mm.c: Delete.
10434         * remote-eb.c: Delete.
10435         * remote-adapt.c: Delete.
10436         * Makefile.in: Remove obsolete code.
10437         * config/s390/s390x.mt: Ditto.
10438         * config/s390/s390.mt: Ditto.
10439         * config/sparc/sparclynx.mh: Ditto.
10440         * config/sparc/linux.mh: Ditto.
10441         * config/pa/hppaosf.mh: Ditto.
10442         * config/pa/hppabsd.mh: Ditto.
10443         * config/ns32k/nbsd.mt: Ditto.
10444         * config/mips/vr5000.mt: Ditto.
10445         * config/m68k/sun3os4.mh: Ditto.
10446         * config/m68k/nbsd.mt: Ditto.
10447         * config/m68k/m68klynx.mh: Ditto.
10448         * config/m32r/m32r.mt: Ditto.
10449         * config/i386/x86-64linux.mt: Ditto.
10450         * config/i386/nbsdelf.mt: Ditto.
10451         * config/i386/nbsd.mt: Ditto.
10452         * config/i386/i386lynx.mh: Ditto.
10453
10454 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10455
10456         * target.c (debug_print_register): New function.  Handle oversize
10457         registers.
10458         (debug_to_fetch_registers): Call.
10459         (debug_to_store_registers): Call.
10460
10461 2002-05-03  Jim Blandy  <jimb@redhat.com>
10462
10463         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10464         (read_type): Doc fix.
10465         * gdbtypes.c (replace_type): Doc fix.
10466
10467         * stabsread.c (multiply_defined_struct): New complaint.
10468         (read_struct_type): If the type we were passed isn't empty, or
10469         incomplete, don't read the new struct type into it; complain,
10470         and return the original type unchanged.  Take a new `type_code'
10471         argument, which is the type code for the new type.
10472         (read_type): Rather than storing the type's type code here, pass
10473         it as an argument to read_struct_type, and let that take care of
10474         storing it.  That way, we don't overwrite the original type code,
10475         so read_struct_type can use it to decide whether we're overwriting
10476         something we shouldn't.
10477         (complain_about_struct_wipeout): New function.
10478
10479 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10480
10481         * gdbarch.sh: Assert that gdbarch is non-NULL.
10482         * gdbarch.c: Regenerate.
10483
10484 2002-05-03  Jason Merrill  <jason@redhat.com>
10485
10486         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10487         and return NULL.
10488
10489 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10490
10491         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10492         (x86_64_dwarf2gdb_regno_map_length),
10493         (x86_64_dwarf2_reg_to_regnum): Added.
10494         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10495         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10496         (_initialize_x86_64_tdep): Synced with the change above.
10497         (x86_64_skip_prologue): Reformulated message.
10498
10499 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10500
10501         * f-exp.y: Also use new prev_lexptr variable
10502         to improve error reporting. Based on Michael Snyder
10503         2002-04-24 dated patch to c-exp.y.
10504         * jv-exp.y: Likewise.
10505         * m2-exp.y: Likewise.
10506
10507 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10508
10509         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10510         we are dealing with vectors.
10511
10512 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10513
10514         * config/m68k/tm-nbsd.h: Obvious fix,
10515         correct machine name.
10516
10517 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10518
10519         * p-typeprint.c (pascal_type_print_base): Add support
10520         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10521
10522 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10523
10524         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10525         for fondamental pascal 'char' type.
10526
10527 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10528
10529         * p-lang.h (is_pascal_string_type): Declaration changed,
10530         new sixth argument of type char ** added.
10531         * p-lang.c (is_pascal_string_type): Implementation
10532         changed. Args length_pos, length_size, string_pos, char_size
10533         can now be NULL. New argument arrayname set to the field
10534         name of the char array. Return value set to char array
10535         field index plus one.
10536         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10537         is_pascal_string_type function.
10538
10539 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10540
10541         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10542         <cagney@redhat.com> change.
10543         * gdbarch.c: Regenerate.
10544
10545 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10546
10547         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10548         before probing for a new one.  Detect errorenous gdbarch_init
10549         functions.
10550         * gdbarch.c: Regenerate.
10551
10552 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10553
10554         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10555         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10556         * config/v850/tm-v850.h: Ditto.  Update copyright.
10557
10558 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10559
10560         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10561         current_gdbarch.
10562
10563 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10564
10565         * arm-tdep.c: Whitespace clean-ups.
10566         (arm_skip_prologue): Fix thinko; two lines
10567         should have been removed as part of 4/24 change.
10568
10569 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10570
10571         * rs6000-tdep.c: Added comment describing how fpscr register
10572         numbers were chosen.
10573
10574 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10575
10576         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10577
10578 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10579
10580         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10581         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10582         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10583
10584 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10585
10586         From Louis Hamilton <hamilton@redhat.com>:
10587         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10588         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10589         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10590         not bfd-private xcoff data, to determine wordsize.
10591         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10592
10593 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10594
10595         GDB 5.2 released from 5.2 branch.
10596
10597 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10598
10599         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10600         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10601         (x86_64_register_info_table): Added comments with register numbers.
10602
10603 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10604
10605         * rs6000-tdep.c (rs6000_extract_return_value,
10606         rs6000_store_return_value): Handle returning vectors.
10607         (rs6000_gdbarch_init): Use
10608         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10609         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10610         New function.
10611         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10612         vectors.
10613         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10614         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10615
10616 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10617
10618         * hpread.c (hpread_psymtab_to_symtab_1,
10619         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10620         with fprintf_unfiltered (gdb_stderr,...).
10621
10622 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10623
10624         * remote-array.c (printf_monitor, write_monitor,
10625         array_insert_breakpoint, array_remove_breakpoint ):
10626         Replace fprintf (stderr,...
10627         with fprintf_unfiltered (gdb_stderr,....
10628         * remote-es.c: Likewise.
10629         * remote-os9k.c: Likewise.
10630         * remote-st.c: Likewise.
10631
10632 2002-04-28  Andreas Schwab  <schwab@suse.de>
10633
10634         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10635         linux-proc.o and gcore.o.
10636
10637 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10638
10639         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10640         code without frame pointers.
10641
10642 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10643
10644         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10645         ON_STACK is needed.
10646
10647 2002-04-26  Ben Elliston  <bje@redhat.com>
10648
10649         * target.c (do_xfer_memory): Correct reference to the new option
10650         "trust-readonly-sections".
10651
10652 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10653
10654         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10655         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10656         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10657         vectors.
10658         (read_array_type): Record the fact that this array type is really a
10659         vector (i.e. are passed in by value).
10660
10661 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10662
10663         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10664         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10665         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10666         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10667         * alpha-linux-tdep.c: Include frame.h.
10668         (alpha_linux_sigcontext_addr): New function.
10669         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10670         alpha_linux_sigcontext_addr.
10671         * alpha-osf1-tdep.c: Include gdbcore.h.
10672         (alpha_osf1_sigcontext_addr): New function.
10673         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10674         alpha_osf1_sigcontext_addr.
10675         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10676         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10677
10678 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10679
10680         * stack.c (selected_frame_level):
10681         (select_frame): Do not set selected_frame_level.
10682         * frame.h (selected_frame_level): Delete declaration.
10683
10684 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10685
10686         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10687         convert_from_func_ptr-addr when AIX / PowerOpen.
10688
10689 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10690
10691         * valops.c (hand_function_call): Call
10692         generic_save_call_dummy_addr.
10693         * frame.h (generic_save_call_dummy_addr): Declare.
10694         * blockframe.c (struct dummy_frame): Add fields call_lo and
10695         call_hi.
10696         (generic_find_dummy_frame): Check for PC in range call_lo to
10697         call_hi instead of entry_point_address.
10698         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10699         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10700         (generic_save_call_dummy_addr): New function.
10701
10702 2002-04-24  David S. Miller  <davem@redhat.com>
10703
10704         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10705         sparc_skip_prologue.
10706         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10707         information to find prologue when possible.
10708         (sparc_prologue_frameless_p): Call examine_prologue directly.
10709         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10710         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10711         second argument.
10712         (SKIP_PROLOGUE): Likewise.
10713
10714 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10715
10716         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10717         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10718         indicate that the condition it was testing is always true.
10719         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10720         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10721         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10722
10723 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10724
10725         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10726         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10727         tdep->jb_pc and tdep->jb_elt_size.
10728         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10729         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10730         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10731         * alpha-nat.c (get_longjmp_target): Remove.
10732         (JB_ELEMENT_SIZE): Ditto.
10733         (JB_PC): Ditto.
10734         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10735         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10736         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10737         to alpha_get_longjmp_target.
10738         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10739         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10740         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10741
10742 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10743
10744         * README: Update to GDB 5.2.
10745
10746 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10747
10748         * gdbarch.sh (LC_ALL): Set to `c'.
10749
10750 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10751
10752         * avr-tdep.c: Ran through gdb_indent.sh.
10753
10754 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10755
10756         * MAINTAINERS: Add myself as AVR maintainer.
10757         * NEWS: Note new target avr.
10758
10759 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10760
10761         * Makefile.in: Add support for AVR target.
10762         * configure.tgt: Add support for AVR target.
10763         * avr-tdep.c: New file
10764         * config/avr/avr.mt: New file.
10765
10766 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10767
10768         * MAINTAINERS: Add myself to write-after-approval.
10769
10770 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10771
10772         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10773         with fprintf_unfiltered (gdb_stderr,....
10774
10775 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10776
10777         Fix PR gdb/508.
10778         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10779
10780 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10781
10782         * p-exp.y: Also use new prev_lexptr variable
10783         to improve error reporting. Based on Michael Snyder
10784         2002-04-24 dated patch to c-exp.y.
10785
10786 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10787
10788         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10789         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10790         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10791         to 0.
10792         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10793         and struct value.
10794         (FUNCTION_START_OFFSET): Remove.
10795         (BREAKPOINT): Ditto.
10796
10797 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10798
10799         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10800         * NEWS: Ditto.
10801
10802 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10803
10804         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10805         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10806         alpha_linux_pc_in_sigtramp.
10807         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10808         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10809         alpha_osf1_pc_in_sigtramp.
10810         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10811         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10812         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10813         alphafbsd_pc_in_sigtramp.
10814         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10815         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10816         alphanbsd_pc_in_sigtramp.
10817         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10818         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10819
10820 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10821
10822         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10823
10824 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10825
10826         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10827         alphanbsd-tdep.c.
10828         (alphanbsd-nat.o): New dependency list.
10829         (alphanbsd-tdep.o): Ditto.
10830         * NEWS: Note new native NetBSD/alpha configuration.
10831         * alphanbsd-nat.c: New file.
10832         * alphanbsd-tdep.c: Ditto.
10833         * configure.host (alpha*-*-netbsd*): New host.
10834         * configure.tgt (alpha*-*-netbsd*): New target.
10835         * config/alpha/nbsd.mh: New file.
10836         * config/alpha/nbsd.mt: Ditto.
10837         * config/alpha/nm-nbsd.h: Ditto.
10838         * config/alpha/tm-nbsd.h: Ditto.
10839
10840 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10841
10842         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10843         (alpha-osf1-tdep.o): New dependency list.
10844         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10845         and skip_sigtramp_frame members.
10846         * alpha-linux-tdep.c: Include gdbcore.h.
10847         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10848         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10849         * alpha-osf1-tdep.c: New file.
10850         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10851         alpha-osf1-dep.c.
10852         (alpha_frame_past_sigtramp_frame): New function.
10853         (alpha_dynamic_sigtramp_offset): Ditto.
10854         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10855         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10856         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10857         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10858         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10859         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10860         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10861         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10862         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10863         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10864         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10865         to find_solib_trampoline_target.
10866         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10867         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10868         (SKIP_TRAMPOLINE_CODE): Remove.
10869         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10870         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10871         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10872         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10873         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10874         (PROC_SIGTRAMP_MAGIC): Ditto.
10875         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10876         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10877         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10878         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10879         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10880
10881 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10882
10883         * NEWS: Note that Alpha targets are now multi-arch.
10884
10885 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10886
10887         * parser-defs.h (prev_lexptr): New external variable.
10888         * parse.c (parse_exp_1): Set prev_lexptr to null before
10889         calling the language-specific parser.
10890         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10891         (yyerror): Use prev_lexptr in error reporting.
10892
10893 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10894
10895         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10896         * gregset.h: If FILL_FPXREGSET is defined, provide
10897         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10898         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10899         is defined, call fill_fpxregset.
10900
10901 2002-04-24  Roland McGrath  <roland@frob.com>
10902
10903         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10904         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10905         (supply_gregset, supply_fpregset): New functions.
10906
10907         * gnu-nat.c (gnu_find_memory_regions): New function.
10908         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10909         (gnu_xfer_memory): Add a cast.
10910
10911 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10912
10913         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10914         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10915         of argument regs ("str r(0123), [r11, #-nn"]).
10916         (arm_skip_prologue): Better handling for frameless functions.
10917         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10918         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10919
10920 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10921
10922         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10923         NUM_PSEUDO_REGS can be used.
10924
10925 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10926
10927         * arch-utils.h: Update copyright.
10928
10929         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10930         * gdbarch.h, gdbarch.c: Re-generate.
10931
10932         * inferior.h (IN_SIGTRAMP): Delete definition.
10933         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10934         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10935
10936         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10937         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10938         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10939         (find_proc_framesize): Ditto.
10940         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10941         (alpha_init_extra_frame_info): Ditto.
10942         * infrun.c (handle_inferior_event): Ditto.
10943         (handle_inferior_event): Ditto.
10944         (check_sigtramp2): Ditto.
10945         * blockframe.c (create_new_frame): Ditto.
10946         (get_prev_frame): Ditto.
10947         * ppc-linux-tdep.c: Update comments.
10948         * i386-linux-tdep.c: Update comments.
10949         * breakpoint.c (bpstat_what): Update comment.
10950
10951 2002-04-24  David S. Miller  <davem@redhat.com>
10952
10953         * i960-tdep.c (register_in_window_p): New function.
10954         (i960_find_saved_register): Use it instead of
10955         REGISTER_IN_WINDOW_P.
10956         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10957
10958         * symtab.h (find_stab_function_addr): Kill extern.
10959         * minsyms.c (find_stab_function_addr): Remove from here...
10960         * dbxread.c: ... to here, and mark it static.
10961
10962 2002-04-20  David S. Miller  <davem@redhat.com>
10963
10964         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10965         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10966
10967 2002-04-21  David S. Miller  <davem@redhat.com>
10968
10969         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10970         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10971         (vx_write_register): Likewise.
10972
10973 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10974
10975         * source.c (is_regular_file): New function.
10976         (openp): Check wether file to open is a regular file
10977         to avoid opening directories.
10978
10979 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10980
10981         * findvar.c (extract_signed_integer): Cast printf argument
10982         to suppress format warning.
10983         (extract_unsigned_integer): Likewise.
10984         * infcmd.c (registers_info): Likewise.
10985         * top.c (get_prompt_1): Likewise.
10986         * valops.c (value_assign): Likewise.
10987         * valprint.c (print_decimal): Likewise.
10988
10989 2002-04-22  H.J. Lu  (hjl@gnu.org)
10990
10991         * c-exp.y (typebase): Support
10992
10993         [long|long long|short] [signed|unsigned] [int|]
10994
10995         and
10996
10997         signed [long|long long|short] int
10998
10999 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11000
11001         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11002         and vax-tdep.h.
11003         * vax-tdep.h: New file.
11004         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11005         Make several routines static.
11006         (vax_get_saved_register): New function.
11007         (vax_gdbarch_init): New function.
11008         (_initialize_vax_tdep): Register vax_gdbarch_init.
11009         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11010         Remove macros now under the control of gdbarch.
11011
11012 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11013
11014         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11015         Some whitespace and coding standards tweaks.
11016
11017 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11018
11019         * vax-tdep.c: Include regcache.h.
11020         (vax_call_dummy_words): New.
11021         (sizeof_vax_call_dummy_words): New.
11022         (vax_fix_call_dummy): New function.
11023         (vax_saved_pc_after_call): Ditto.
11024         * config/vax/tm-vax.h: Don't include regcache.h.
11025         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11026         (CALL_DUMMY): Remove.
11027         (CALL_DUMMY_WORDS): Define.
11028         (SIZEOF_CALL_DUMMY_WORDS): Define.
11029         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11030
11031 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11032
11033         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11034
11035 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11036
11037         * vax-tdep.c (vax_frame_chain): New function.
11038         (vax_push_dummy_frame): Ditto.
11039         (vax_pop_frame): Ditto.
11040         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11041         (FRAMELESS_FUNCTION_INVOCATION): Use
11042         generic_frameless_function_invocation_not.
11043         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11044         (POP_FRAME): Use vax_pop_frame.
11045
11046 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11047
11048         * vax-tdep.c (vax_store_struct_return): New function.
11049         (vax_extract_return_value): Ditto.
11050         (vax_store_return_value): Ditto.
11051         (vax_extract_struct_value_address): Ditto.
11052         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11053         vax_store_struct_return.
11054         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11055         (STORE_RETURN_VALUE): Use vax_store_return_value.
11056         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11057
11058 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11059
11060         * vax-tdep.c (vax_frame_saved_pc): New function.
11061         (vax_frame_args_address_correct): Ditto.
11062         (vax_frame_args_address): Ditto.
11063         (vax_frame_locals_address): Ditto.
11064         (vax_frame_num_args): Move code to be in proximity to
11065         other frame-related functions.
11066         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11067         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11068         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11069         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11070         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11071
11072 2002-04-22  H.J. Lu  (hjl@gnu.org)
11073
11074         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11075         includedir.
11076
11077 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11078
11079         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11080         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11081         (FRAME_INIT_SAVED_REGS): New macro.
11082
11083 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11084
11085         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11086
11087 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11088
11089         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11090         where needed.
11091         (fetch_osf_core_registers): Likewise.
11092         (supply_gregset): Likewise.
11093
11094 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11095
11096         * symfile.h (get_section_index): Define.
11097         * symfile.c (get_section_index): New function.
11098         * mdebugread.c (SC_IS_SBSS): New macro.
11099         (SC_IS_BSS): Return true for the scBss storage class only, as
11100         the scSBss storage class refers to the .sbss section.
11101         (parse_partial_symbols): Discard the symbols which associated
11102         section does not exist.
11103         Make sure to use the .sbss section index for symbols which
11104         storage class is scBss, rather than using the .bss section index.
11105
11106 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11107
11108         * vax-tdep.c: Update copyright years.
11109         (vax_register_name): New function.
11110         (vax_register_byte): Ditto.
11111         (vax_register_raw_size): Ditto.
11112         (vax_register_virtual_size): Ditto.
11113         (vax_register_virtual_type): Ditto.
11114         * config/vax/tm-vax.h: Update copyright years.
11115         (REGISTER_NAMES): Remove.
11116         (REGISTER_NAME): Define.
11117         (REGISTER_BYTE): Use vax_register_byte.
11118         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11119         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11120         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11121
11122 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11123
11124         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11125         declaration
11126         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11127
11128 2002-04-21  David S. Miller  <davem@redhat.com>
11129
11130         * arch-utils.c (generic_prologue_frameless_p): Kill
11131         SKIP_PROLOGUE_FRAMELESS_P code.
11132         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11133         references.
11134         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11135         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11136         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11137         references.
11138         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11139         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11140         (sparc_gdbarch_init): Pass it to
11141         set_gdbarch_prologue_frameless_p.
11142
11143 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11144
11145         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11146         (alphabsd-nat.o): New dependency list.
11147
11148 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11149
11150         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11151         alphafbsd-tdep.c.
11152         (alpha-linux-tdep.o): New dependency list.
11153         (alphafbsd-tdep.o): Likewise.
11154
11155 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11156
11157         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11158         to here...
11159         * alpha-tdep.c: ...from here.
11160         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11161
11162 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11163
11164         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11165         prototype from here...
11166         * alpha-tdep.h: ...to here.
11167
11168 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11169
11170         * frame.h (selected_frame_level): Document as deprecated.
11171         (frame_relative_level): Declare.
11172         * stack.c (frame_relative_level): New function.
11173         (selected_frame_level): Document as deprecated.
11174         (select_frame): Do not set the selected_frame_level.
11175
11176         * stack.c (frame_info, record_selected_frame): Update.
11177         (frame_command, current_frame_command): Update.
11178         (up_silently_base, up_command, down_silently_base): Update.
11179         (down_command): Update.
11180         * inflow.c (kill_command): Update.
11181         * tracepoint.c (finish_tfind_command): Update.
11182         * corelow.c (core_open): Update.
11183         * thread.c (info_threads_command): Update.
11184         (do_captured_thread_select): Update.
11185         * infcmd.c (finish_command): Update.
11186         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11187
11188 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11189
11190         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11191
11192 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11193
11194         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11195         type const.
11196
11197 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11198
11199         * alphafbsd-tdep.c: Update copyright years.  Include
11200         alpha-tdep.h.
11201         (alphafbsd_use_struct_convention): Make static.
11202         (alphafbsd_init_abi): New function.
11203         (_initialize_alphafbsd_tdep): New function.
11204         * config/alpha/tm-fbsd.h: Update copyright years.
11205         (USE_STRUCT_CONVENTION): Remove.
11206
11207 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11208
11209         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11210         an Alpha ABI variant.
11211         (alpha_abi_handler_list): Declare.
11212         (alpha_gdbarch_register_os_abi): New function.
11213         (alpha_gdbarch_init): Give registered ABI variant handlers a
11214         chance to tweak the gdbarch once we have set up defaults.
11215         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11216
11217 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11218
11219         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11220         to standard_coerce_float_to_double.
11221         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11222
11223 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11224
11225         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11226         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11227         from gdbarch_tdep rather than a constant.
11228         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11229         the default text address for all Alpha Unix ABIs.
11230         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11231         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11232
11233 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11234
11235         * alpha-tdep.h: New file.  Includes several Alpha target constants
11236         taken from...
11237         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11238         let gdbarch deal with.
11239         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11240         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11241         to dependency list.
11242         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11243         Alpha target register names.
11244         * alphabsd-nat.c: Likewise.
11245         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11246         Alpha target register names.  Make serveral routines static.
11247         (alpha_get_saved_register): New function.
11248         (alpha_abi_names): New.
11249         (process_note_abi_tag_sections): New function.
11250         (get_elfosabi): New function.
11251         (alpha_gdbarch_init): New function.
11252         (alpha_dump_tdep): New function.
11253         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11254
11255 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11256
11257         * frame.c (find_saved_register): Delete #ifdef
11258         HAVE_REGISTER_WINDOWS code.
11259         * config/sparc/tm-sparc.h: Update comments.
11260         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11261
11262 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11263
11264         * i960-tdep.c (i960_find_saved_register): New function.
11265         (i960_get_saved_register): New function.
11266         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11267         (i960_get_saved_register): Declare.
11268         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11269
11270 2002-04-20  David S. Miller  <davem@redhat.com>
11271
11272         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11273
11274 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11275
11276         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11277         instead of NUM_PSEUDO_REGS.
11278
11279 2002-04-20  David S. Miller  <davem@redhat.com>
11280
11281         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11282         GDB_MULTI_ARCH_PARTIAL
11283         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11284         define, let tm-sp64.h do it.
11285
11286 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11287
11288         * frame.c (find_saved_register): Avoid a NULL pointer
11289         dereference and actually walk the frame list.
11290
11291 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11292
11293         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11294         sorted in most most-recent-used order.  Document.
11295         * gdbarch.h, gdbarch.c: Regenerate.
11296
11297 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11298
11299         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11300         instead of ->prev.
11301         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11302         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11303         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11304         instead of ->prev.
11305
11306 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11307
11308         Fix PR gdb/471.
11309         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11310         (build_builtin_type_vec128): Ditto.
11311         (append_composite_type_field): Fix calculation of type length in
11312         union case.
11313
11314 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11315
11316         * config/djgpp/README: Update.
11317
11318         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11319         compiler warnings.
11320
11321 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11322
11323         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11324         (alpha_setup_arbitrary_frame): ...to this.
11325         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11326         for alpha_setup_arbitrary_frame.
11327
11328 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11329
11330         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11331         * gdbarch.h, gdbarch.c: Regenerate.
11332
11333         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11334         * target.h (memory_breakpoint_from_pc): Update declaration.
11335         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11336
11337         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11338         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11339         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11340         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11341         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11342         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11343         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11344         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11345         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11346         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11347         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11348         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11349
11350         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11351         const pointer.
11352         * monitor.c (monitor_insert_breakpoint): Ditto.
11353         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11354
11355         * config/mcore/tm-mcore.h: Update copyright.
11356         * mem-break.c: Ditto.
11357         * xstormy16-tdep.c: Ditto.
11358
11359 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11360
11361         * p-exp.y: Add precedence rule for '^' token.
11362         This removes the shift/reduce conflicts.
11363         Remove the comment concerning these shift/reduce conflicts.
11364
11365 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11366
11367         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11368         (registers_powerpc_nofp): New register set for processors
11369         without floating point unit.
11370
11371 2002-04-18  David S. Miller  <davem@redhat.com>
11372
11373         * MAINTAINERS: Add myself to write-after-approval.
11374
11375 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11376
11377         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11378
11379 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11380
11381         * rs6000-tdep.c (frame_initial_stack_address): Use
11382         frame_register_read to read the alloca_reg.
11383
11384 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11385
11386         * frame.c (find_saved_register): Find saved registers in the next
11387         not prev frame.
11388         Fix PR gdb/365.
11389
11390 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11391
11392         * gdbarch.sh (LANG): Set to ``c''.
11393
11394 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11395
11396         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11397
11398 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11399
11400         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11401         Update copyright.
11402
11403         * hpread.c (hpread_get_lntt): Add declaration.
11404         Also fix PR gdb/391.
11405
11406 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11407
11408         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11409         * aclocal.m4, configure: Re-generate.
11410         Fix PR gdb/391.
11411
11412 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11413
11414         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11415         instead of tm_print_insn.
11416
11417 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11418
11419         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11420
11421 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11422
11423         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11424         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11425         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11426
11427 2002-04-12  Don Howard  <dhoward@redhat.com>
11428
11429         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11430         max_user_call_depth.
11431         (init_cmd_lists): Initialize the new value;
11432         * cli/cli-script.c (execute_user_command): Limit the call depth of
11433         user defined commands.  This avoids a core-dump when user commands
11434         are infinitly recursive.
11435
11436 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11437
11438         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11439         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11440         from tdep struct instead of DEFAULT_LR_SAVE.
11441         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11442         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11443         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11444
11445 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11446
11447         * Remote.c: Spelling fix.
11448         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11449         If no symbol found for "sbrk", try "_sbrk".
11450         (make_output_phdrs): Use bfd_section_name.
11451         (gcore_copy_callback): Use bfd_section_name.
11452         * eval.c: Indentation fix-ups.
11453         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11454         in case it gets applied to an address that is already
11455         in the instruction space.
11456         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11457         * symfile.c: Fix indentation, long lines.
11458         * source.c: White space fix-up.
11459
11460 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11461
11462         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11463         * frame.c (frame_register_read): New function.  Return non-zero on
11464         success.
11465         (read_relative_register_raw_bytes_for_frame): Delete.
11466         (read_relative_register_raw_bytes): Delete.
11467         * frame.h (frame_register_read): Declare.
11468         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11469         * sh-tdep.c: Ditto.
11470         * infcmd.c (do_registers_info): Ditto.
11471         * hppa-tdep.c: Ditto.
11472         * rs6000-tdep.c: Ditto.
11473         * h8500-tdep.c: Ditto.
11474         * mips-tdep.c: Ditto.
11475         * h8300-tdep.c: Ditto.
11476         * z8k-tdep.c: Ditto.
11477
11478 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11479
11480         From Jimi X <jimix@watson.ibm.com>:
11481         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11482         64-bit SysV ABI.
11483
11484 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11485
11486         From Jimi X <jimix@watson.ibm.com>:
11487         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11488         bfd info.
11489
11490 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11491
11492         From Jimi X <jimix@watson.ibm.com>:
11493         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11494         register sets for these processor variants.
11495
11496 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11497
11498         * regformats/reg-ppc.dat: Support FPSCR.
11499
11500 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11501
11502         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11503         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11504         Add fpscr as an invalid/unfetchable register.
11505         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11506         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11507         (fill_fpregset): Add support for register fpscr.
11508         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11509         (fill_gregset): Account for the fact that register ``mq'' might
11510         not exist.
11511         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11512         (registers_power): Add fpscr to register set at slot 71.
11513         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11514         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11515
11516 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11517
11518         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11519         * configure: Regenerate.
11520         * config.in: Regenerate.
11521         * acconfig.h: Add define for _SYSCALL32.
11522         * core-sol2.c: Remove #define _SYSCALL32.
11523         * solib-legacy.c: Remove #define _SYSCALL32.
11524
11525 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11526
11527         * stack.c (select_frame): Cleanup internal error message, do not
11528         use %p.
11529
11530 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11531
11532         * stack.c (select_frame): Check that selected_frame and the
11533         specified level are as expected.
11534         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11535         Update copyright.
11536         * frame.h (struct frame_info): Add field `level'.  Update
11537         copyright.
11538         Work-in-progress PR gdb/464.
11539
11540 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11541
11542         * maint.c (maint_print_section_info): Rename print_section_info.
11543         (print_bfd_section_info, print_objfile_section_info): Update.
11544         * inferior.h (struct gdbarch): Add opaque declaration.
11545         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11546         * gdbarch.h: Regenerate.
11547
11548 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11549
11550         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11551         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11552         (kernel_u_size): Added.
11553         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11554         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11555
11556 2002-04-04  Jim Ingham  <jingham@apple.com>
11557
11558        * valarith.c (find_size_for_pointer_math): New function, either returns
11559        the size for a pointer's target, returns 1 for void *, or errors for
11560        incomplete types.
11561        (value_add, value_sub): use find_size_for_pointer_math.
11562
11563 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11564
11565         * linux-low.c (linux_look_up_symbols): New hook.
11566         (linux_target_ops): Add linux_look_up_symbols.
11567         * remote-utils.c (decode_address): New function.
11568         (look_up_one_symbol): New function.
11569         * server.c (handle_query): Call target look_up_symbols hook.
11570         * server.h (look_up_one_symbol): Add prototype.
11571         * target.h (struct target_ops): Add look_up_symbols hook.
11572
11573 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11574
11575         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11576         override FP_REGNUM with frame->fp.  Update copyright.
11577         * parse.c (num_std_regs, std_regs): Delete.
11578         (target_map_name_to_register): Do not search std_regs.  Update
11579         function description.
11580         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11581         declarations.  Update copyright.
11582         Fix PR gdb/251.
11583
11584 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11585
11586         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11587         after the last symbol in a block.
11588
11589 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11590
11591         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11592         is non zero as a found symbol.
11593
11594 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11595
11596         * findvar.c: Include "builtin-regs.h".
11597         (value_of_register): Call value_of_builtin_reg when applicable.
11598         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11599         (target_map_name_to_register): Call
11600         builtin_reg_map_name_to_regnum.
11601         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11602         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11603         (builtin_regs_h): Define.
11604         (builtin-regs.o): New target.
11605         (findvar.o): Add $(builtin_regs_h).
11606         * builtin-regs.c, builtin-regs.h: New files.
11607         * std-regs.c: New file.
11608         Partial fix for PR gdb/251.
11609
11610 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11611
11612         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11613         it's no longer required.
11614
11615 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11616
11617         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11618
11619 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11620
11621         From Jimi X <jimix@watson.ibm.com>:
11622         * rs6000-tdep.c (rs6000_software_single_step): Use
11623         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11624         and size.  Use target_insert_breakpoint() and
11625         target_remove_breakpoint() to insert and remove breakpoints
11626         instead of explicit memory reads and writes.
11627
11628 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11629
11630         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11631         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11632         ELF_OBJECT_FORMAT ifdef.
11633
11634 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11635
11636         From Jimi X <jimix@watson.ibm.com>:
11637         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11638
11639 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11640
11641         From Jimi X <jimix@watson.ibm.com>:
11642         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11643         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11644
11645 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11646
11647         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11648         s/asprintf/xasprintf/.
11649         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11650
11651 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11652
11653         I believe Jeff Law denies responsability for this one:
11654         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11655         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11656         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11657         Work-around for PR gdb/366.
11658
11659 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11660
11661         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11662         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11663         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11664
11665 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11666
11667         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11668         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11669         information.
11670
11671 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11672
11673         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11674         maintainer.
11675
11676 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11677
11678         * README (Reporting Bugs in GDB): Document the bug web page as the
11679         prefered way of submitting bugs.
11680         Fix PR gdb/402.
11681
11682 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11683
11684         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11685         -1.  Update comment.
11686         * gdbarch.h, gdbarch.c: Re-generate.
11687
11688 2002-04-07  Andreas Schwab  <schwab@suse.de>
11689
11690         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11691         buffer to regcache_collect.
11692
11693 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11694
11695         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11696         * gdbarch.c, gdbarch.h: Re-generate.
11697
11698 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11699
11700         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11701         declaration.  Fix -Werror.
11702
11703 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11704
11705         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11706         * gdbarch.c: Regenerate.
11707
11708 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11709
11710         * breakpoint.c (clear_command): Rewrite middle section to
11711         combine two loops with identical control conditions.
11712         Add a cleanup to eliminate a memory leak.
11713         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11714
11715 2002-04-05  H.J. Lu  (hjl@gnu.org)
11716
11717         * solib-svr4.c (bkpt_names): Add "__start".
11718
11719 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11720
11721         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11722         as test for 64 bit target.
11723
11724 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11725
11726         * h8500-tdep.c (h8500_write_fp): Delete function.
11727         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11728         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11729         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11730         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11731         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11732         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11733         (s390_write_fp):
11734         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11735         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11736         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11737         (d10v_write_fp): Delete function.
11738         * inferior.h (write_fp, generic_target_write_fp): Delete
11739         declarations.
11740         * regcache.c (generic_target_write_fp): Delete function.
11741         (write_fp): Delete function.
11742         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11743         * gdbarch.h, gdbarch.c: Regenerate.
11744         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11745         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11746         (sparc64_write_fp): Delete declaration.
11747         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11748         (h8500_write_fp): Delete declaration.
11749
11750 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11751
11752         * sparc-tdep.c (sparc64_write_fp): Delete.
11753         (sparc_push_dummy_frame): Replace write_fp call with code to store
11754         the FP directly.
11755         (sparc_gdbarch_init): Do not initialize write_fp.
11756
11757 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11758
11759         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11760         clause.
11761
11762 2002-03-29  Jim Blandy  <jimb@redhat.com>
11763
11764         * stack.c (get_selected_block): Add new argument `addr_in_block',
11765         used to return the exact code address we used to select the block,
11766         not just the block.
11767         * blockframe.c (get_frame_block, get_current_block): Same.
11768         * frame.h (get_frame_block, get_current_block,
11769         get_selected_block): Update declarations.
11770         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11771         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11772
11773 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11774
11775         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11776         warning message.
11777
11778 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11779
11780         * utils.c (xfullpath): New function.
11781         * defs.h (xfullpath): Add declaration.
11782         * source.c (openp): Use xfullpath in place of gdb_realpath to
11783         avoid resolving the basename part of filenames when the
11784         associated file is a symbolic link. This fixes a potential
11785         inconsistency between the filenames known to GDB and the
11786         filenames it prints in the annotations.
11787         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11788         to be able to match a filename with either the real filename, or
11789         the name of any symbolic link to this file.
11790         (lookup_partial_symtab): Ditto.
11791
11792 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11793
11794         * breakpoint.c: Add support for hardware breakpoints in overlays.
11795         (overlay_events_enabled): New state variable.
11796         (insert_breakpoints): Use overlay_events_enabled to decide
11797         whether to attempt to set a breakpoint at the overlay load addr.
11798         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11799         (remove_breakpoint): Use overlay_events_enabled to decide
11800         whether breakpoints need to be removed from overlay load addr.
11801         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11802         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11803         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11804         disable_overlay_breakpoints): Update overlay_events_enabled.
11805
11806 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11807
11808         * dwarf2read.c (struct function_range): New.
11809         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11810         (check_cu_functions): New.
11811         (read_file_scope): Initialize global function lists.
11812         Call dwarf_decode_line after processing children.
11813         (read_func_scope): Add to global function list.
11814         (dwarf_decode_lines): Call check_cu_functions everywhere
11815         record_line is called.  Call record_line with a linenumber
11816         of 0 to mark sequence ends.
11817
11818 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11819
11820         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11821         change sync with glibc.
11822
11823 2002-04-03  Jim Blandy  <jimb@redhat.com>
11824
11825         * configure.in: Call AC_C_INLINE.
11826         * configure: Regenerated.
11827
11828 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11829
11830         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11831         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11832
11833 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11834
11835         * NEWS: Mention gcore support on FreeBSD/i386.
11836
11837         * fbsd-proc.c: New file.
11838         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11839         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11840
11841         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11842         while statement.
11843
11844 2002-03-29  Jim Blandy  <jimb@redhat.com>
11845
11846         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11847         unescaped newlines in string literals, but newer ones don't.  So
11848         escape them.
11849
11850 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11851             Andrew Cagney <cagney@redhat.com>
11852
11853         * cli/cli-dump.c: New file.  Dump memory to file,
11854         restore file to memory.
11855         * cli/cli-dump.h: New file.
11856         * Makefile.in: Add rules, dependencies for cli-dump.o.
11857         * NEWS: Mention new commands.
11858
11859 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11860
11861         * symfile.c (symbol_file_add): Move test for null symbols to later.
11862
11863 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11864
11865         From veksler at il.ibm.com:
11866         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11867         the xstrduped original path.
11868         Fix PR gdb/417.
11869
11870 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11871
11872         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11873         * infcmd.c (_initialize_infcmd): Ditto.
11874         * language.c (_initialize_language): Ditto.
11875         * symfile.c (_initialize_symfile): Ditto.
11876         * top.c (_init_main): Ditto.
11877         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11878
11879 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11880
11881         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11882         vector registers handling.
11883         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11884         fields of frame data.
11885         (frame_get_saved_regs): Fill in information for AltiVec registers.
11886
11887 2002-03-27  Jim Blandy  <jimb@redhat.com>
11888
11889         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11890         a function; leave this macro here to invoke that function.
11891         (symbol_init_mangled_name): Declaration for that function.
11892         * symtab.c (symbol_init_mangled_name): New function.
11893
11894 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11895
11896         * valarith.c: Replace strerror with safe_strerror.
11897         * tracepoint.c: Ditto.
11898         * lin-lwp.c: Ditto.
11899         * go32-nat.c: Ditto.
11900         * inflow.c: Ditto.
11901         * gnu-nat.c: Ditto.
11902
11903 2002-03-27  Andreas Schwab  <schwab@suse.de>
11904
11905         * event-top.c (command_line_handler): Remove useless if.
11906
11907 2002-03-27  Andreas Jaeger  <aj@suse.de>
11908
11909         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11910         comment.
11911
11912 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11913
11914         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11915         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11916         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11917         (x86_64_linux_dr_get_status, supply_gregset),
11918         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11919         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11920         (x86_64_register_info_table): Add.
11921         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11922         (x86_64_register_raw_size, x86_64_register_virtual_type),
11923         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11924         general x86_64_register_info_table.
11925         (i386_gdbarch_init): gdbarch_register_bytes is now set
11926         dynamicaly during initialization.
11927         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11928         * gdbserver/linux-x86-64-low.c: Ditto.
11929
11930 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11931
11932         * gdbserver/server.c (main): Call target_signal_to_host_p
11933         and target_signal_to_host on signals received from the remote.
11934         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11935         target_signal_from_host on signals sent to the remote.
11936         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11937         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11938
11939 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11940
11941         * signals/signals.c: Include "server.h" in gdbserver build.
11942         (target_signal_from_name): Don't use STREQ.
11943         (_initialize_signals): Likewise.  Don't include function in
11944         gdbserver build.
11945
11946 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11947
11948         * signals.c: Moved to...
11949         * signals/signals.c: Here.
11950         * Makefile (signals.o): Update.
11951
11952 2002-03-26  Jeff Law (law@redhat.com)
11953
11954         * somread.c (som_symtab_read): Remove some commented out code and
11955         updated related comments.  Do not set the minimal symbol table to
11956         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11957         in a dynamic executable.
11958         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11959         where we are unable to find the minimal symbol for the given
11960         PC value.
11961
11962 2002-03-25  Jeff Law (law@redhat.com)
11963
11964         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11965
11966 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11967
11968         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11969
11970 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11971
11972         * command.h: Update copyright.
11973         (struct cmd_list_element): Replace definition with opaque
11974         declaration.
11975         (enum cmd_types): Document that it will eventually be moved to
11976         cli/cli-decode.h
11977         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11978         (MALLOCED_REPLACEMENT): Delete macro.
11979         * Makefile.in (cli_decode_h): Add $(command_h).
11980         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11981         * top.c: Include "cli/cli-decode.h".
11982         * completer.c: Include "cli/cli-decode.h".
11983         * maint.c: Include "cli/cli-decode.h".
11984         * cli/cli-decode.h: Include "command.h".
11985         (enum command_class): Delete.
11986         (enum cmd_types): Comment out.
11987         (enum cmd_auto_boolean): Delete.
11988         (enum var_types): Delete.
11989
11990 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11991
11992         * cli/cli-decode.c: Include "gdb_assert.h".
11993         (add_set_or_show_cmd): New static function.
11994         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11995         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11996         all fields, such as func, from the set command.
11997
11998 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11999
12000         * MAINTAINERS (sh-elf): Change warning flag to -w.
12001
12002 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12003
12004         * defs.h (error): Add printf format attribute.
12005         * thread-db.c (thread_from_lwp): Fix error format string.
12006         * stack.c (parse_frame_specification): Ditto.
12007         * cli/cli-decode.c (undef_cmd_error): Ditto.
12008         * scm-lang.c (scm_lookup_name): Ditto.
12009         * tracepoint.c (trace_error): Ditto.
12010         * remote-utils.c (usage): Ditto.
12011         * remote.c (compare_sections_command): Ditto.
12012         Fix PR gdb/328.
12013
12014 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12015
12016         * gdbtypes.c (append_composite_type_field): New function.
12017         (init_composite_type): New function.
12018         * gdbtypes.h (append_composite_type_field): Declare.
12019         (init_composite_type): Ditto.
12020
12021 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12022
12023         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12024         function.
12025         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12026         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12027         structure returning convention for SYSV ABI case, but not
12028         for GNU/Linux, FreeBSD, or NetBSD.
12029
12030 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12031
12032         * symtab.h (lookup_block_symbol): Add mangled_name argument
12033         to prototype.
12034
12035         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12036         with new mangled_name argument.
12037         * linespec.c (decode_line_1): Likewise.
12038         * valops (value_of_this): Likewise.
12039         * symtab.c (lookup_transparent_type): Likewise.
12040         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12041         (lookup_symbol): If we are given a mangled name, pass it down
12042         to lookup_symbol_aux.
12043         (lookup_block_symbol): If we are given a mangled name to check
12044         against, only return symbols which match it.
12045
12046 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12047
12048         * win32-nat.c (child_create_inferior): Check for proper shell to use
12049         here, in case the user changes it on the fly.
12050         (_initialize_inftarg): Remove shell path considerations.
12051
12052 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12053
12054         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12055         for gdbarch_max_register_raw_size and max_register_virtual_size.
12056         Adjust copyright year.
12057
12058 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12059
12060          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12061          in a function to cover the entire beginning of the function
12062          as well if it does not already.
12063
12064 2002-03-21  Tom Rix  <trix@redhat.com>
12065
12066         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12067         (rs6000_ptrace64): Renamed from ptrace64.
12068
12069 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12070
12071         * gdbserver/remote-utils.c (remote_open): Don't call
12072         getprotobyname, we're all using TCP here so just use
12073         IPPROTO_TCP.
12074         * gdbserver/gdbreplay.c (remote_open): Ditto.
12075
12076 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12077
12078         * regcache.c (_initialize_regcache): No need to call
12079         build_regcache() at this time; it gets called whenever
12080         the gdbarch changes.
12081
12082 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12083
12084         * sparc-nat.c:  Include sys/param.h where possible.
12085
12086 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12087
12088         Fix PR gdb/422.
12089         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12090         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12091         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12092         complex types.
12093         * stabsread.c (rs6000_builtin_type): Likewise.
12094         (read_sun_floating_type): Likewise.
12095
12096 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12097
12098         * stabsread.c (read_member_functions): Remove skip code for duplicate
12099         constructor/destructor methods.  Use standard parsing for these
12100         methods and just do not chain them to the list of methods after
12101         parsing.
12102
12103 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12104
12105         * coffread.c: Remove redundant static declarations.  Replace
12106         occurrences of `PTR' with `void *'.
12107         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12108         * top.h (quit_cover): Likewise.
12109         * defs.h (catch_errors): Likewise.
12110
12111 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12112
12113         * defs.h (XMALLOC): Define.
12114         * gdb-events.sh (XMALLOC): Delete macro.
12115         * gdb-events.c, gdb-events.h: Regenerate.
12116         * gdbarch.sh (XMALLOC): Delete macro.
12117         * gdbarch.c: Regenerate.
12118         * serial.c (XMALLOC): Delete macro.
12119         * ui-file.c (XMALLOC): Ditto.
12120         * ser-unix.h (XMALLOC): Ditto.
12121         * sh-tdep.c (XMALLOC): Ditto.
12122         * ui-out.c (XMALLOC): Ditto.
12123         * utils.c (XMALLOC): Ditto.
12124         * i386-tdep.c (XMALLOC): Ditto.
12125         * gdb-events.c (XMALLOC): Ditto.
12126         * d10v-tdep.c (XMALLOC): Ditto.
12127         * cli-out.c (XMALLOC): Ditto.
12128
12129         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12130         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12131         * ui-file.c, ui-out.c: Ditto.
12132
12133 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12134
12135         * command.h (struct cmd_list_element): Add field context.
12136         (set_cmd_context, get_cmd_context): Declare.
12137         * cli/cli-decode.h: Ditto.
12138         * cli/cli-decode.c (get_cmd_context): New function.
12139         (set_cmd_context): New function.
12140         (add_cmd): Initialize context.
12141         Part of fixing PR gdb/145 and PR gdb/146.
12142
12143 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12144
12145         * cli/cli-decode.c (cmd_type): New function.
12146         * command.h (cmd_type): Declare.
12147         * infrun.c (set_schedlock_func): Call function cmd_type.
12148         * kod.c (kod_set_os): Call cmd_type.
12149         * cris-tdep.c (cris_version_update): Use function cmd_type.
12150         (cris_mode_update, cris_abi_update): Ditto.
12151
12152         * command.h: (execute_cmd_post_hook): Declare.
12153         (execute_cmd_pre_hook): Declare.
12154         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12155         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12156         functions. Execute pre/post hook while ensuring that afterwords
12157         hook_in is cleared.
12158         * top.c (execute_command): Use execute_cmd_post_hook, and
12159         execute_cmd_pre_hook to execute pre/post commands.
12160         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12161         hook_stop_stub.
12162         (hook_stop_stub): Call execute_cmd_pre_hook.
12163
12164 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12165
12166         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12167         set'' and this leads to a core dump.  Move xstrdup of
12168         operating_system to after check that it is not NULL.
12169
12170 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12171
12172         * kod.c (kod_set_os): Remove unnecessary check that
12173         ``command->type'' is set_cmd.
12174
12175         * valprint.c (set_input_radix): Use input_radix.
12176         (set_output_radix): Use output_radix.
12177         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12178         isn't reverted.
12179
12180 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12181
12182         * value.h (struct value): Delete field ``substring_addr''.  Change
12183         aligner fields to force_doublest_align, force_longest_align,
12184         force_core_addr_align and force_pointer_aligh.
12185
12186         * value.h (struct value): Fix typo in above change.
12187
12188 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12189
12190         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12191         to fix internal_error from ``maintenance print architecture''.
12192
12193 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12194
12195         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12196         for gcc versions after gcc-2.8.1.
12197
12198 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12199
12200         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12201         for method resolution.  Restore adjustment of ``this'' pointer after
12202         calling value_struct_elt, which was accidentally removed during the
12203         HP merge.
12204
12205 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12206
12207         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12208         value_of_register.
12209         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12210         get_saved_register.
12211         * value.h (value_of_register): Update.
12212
12213 2002-03-14  Richard Henderson  <rth@redhat.com>
12214
12215         * configure.in: Detect declaration for canonicalize_file_name.
12216         * utils.c (canonicalize_file_name): Declare, if needed.
12217         (gdb_realpath): Prefer realpath if available and usable.
12218         * config.in, configure: Rebuild.
12219
12220 2002-03-14  Richard Henderson  <rth@redhat.com>
12221
12222         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12223         a constant array bound.
12224
12225         * MAINTAINERS: Add myself to write-after-approval.
12226
12227 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12228
12229         * symfile.c (syms_from_objfile): Return immediately if no syms.
12230         (symbol_file_add): Return immediately if no syms.
12231         (find_sym_fns): Return immediately if no syms.
12232
12233 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12234
12235         * gdbserver/remote-util.c (remote_open): Print remote-side's
12236         IP address when remote debugging over the network.
12237
12238 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12239
12240         * config/sparc/fbsd.mh: Fix copyright.
12241         * config/sparc/fbsd.mt: Likewise.
12242
12243 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12244
12245         * MAINTAINERS: Fix typo in name of gdb warnings option.
12246         (x86-64): Fix formating so that this can be parsed by awk.
12247
12248 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12249
12250         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12251         * defs.h: Include "gdb/signals.h".
12252         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12253
12254 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12255
12256         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12257         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12258         from x86-64-tdep.h
12259
12260 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12261             Don Howard <dhoward@redhat.com>
12262
12263         * mips-tdep.c (ST0_FR): Define.
12264         (mips2_fp_compat): New function, temporarily disabled.
12265         (mips_read_fp_register_single): New function.
12266         (mips_read_fp_register_double): New function.
12267         (mips_print_register): Use them.
12268         (do_fp_register_row): Likewise.
12269
12270 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12271
12272         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12273         approval''.
12274
12275 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12276
12277         * stabsread.c (read_member_functions): Fix is_stub test for
12278         static member functions, improve comment.
12279
12280 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12281
12282         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12283         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12284         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12285         commands that set boolean values.
12286         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12287         (arm_rdi_resume): Always initialize PC.
12288         (arm_rdi_open): Don't use rslt as a boolean.
12289         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12290         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12291         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12292         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12293
12294 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12295
12296         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12297         * configure: Rebuilt.
12298
12299 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12300
12301         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12302         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12303
12304 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12305
12306         * cli/cli-decode.c (set_cmd_completer): New function.
12307         * command.h (set_cmd_completer): Declare.
12308         * cli/cli-decode.h (set_cmd_completer): Ditto.
12309
12310         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12311         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12312         * win32-nat.c (_initialize_inftarg): Ditto.
12313         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12314         * proc-api.c (_initialize_proc_api): Ditto.
12315         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12316         * source.c (_initialize_source): Ditto.
12317         * exec.c (_initialize_exec): Ditto.
12318         * solib.c (_initialize_solib): Ditto.
12319         * top.c (init_main): Ditto.
12320         * tracepoint.c (_initialize_tracepoint): Ditto.
12321         * symfile.c (_initialize_symfile): Ditto.
12322         * printcmd.c (_initialize_printcmd): Ditto.
12323         * infcmd.c (_initialize_infcmd): Ditto.
12324         * corefile.c (_initialize_core): Ditto.
12325
12326 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12327
12328         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12329
12330 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12331
12332         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12333
12334 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12335
12336         * NEWS: Update headings, 5.2 has branched.
12337
12338 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12339
12340         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12341         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12342         (register_addr, REGISTER_RAW_SIZE): Likewise.
12343         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12344         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12345
12346 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12347
12348         * MAINTAINERS (x86-64): Add myself.
12349         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12350         changed value_ptr -> struct value *
12351
12352 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12353
12354         * configure.host (sparc64-*-freebsd): Add.
12355         * configure.tgt: Likewise.
12356         * config/sparc/fbsd.mh: New file.
12357         * config/sparc/fbsd.mt: Likewise.
12358         * config/sparc/nm-fbsd.h: Likewise.
12359         * config/sparc/tm-fbsd.h: Likewise.
12360
12361 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12362
12363         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12364         regformats/reg-s390x.dat.
12365
12366 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12367
12368         * utils.c: Add FIXME explaining true/false problem.
12369
12370 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12371
12372         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12373
12374 2002-02-28  Michael Chastain  <mec@shout.net>
12375
12376         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12377
12378 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12379
12380         * gdbserver/linux-s390-low.c: New file.
12381         * regformats/reg-s390.dat: New file.
12382         * regformats/reg-s390x.dat: New file.
12383         * gdbserver/configure.srv: Add S/390.
12384         * gdbserver/Makefile.in: Add S/390.
12385         * configure.tgt: Enable gdbserver for S/390.
12386
12387 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12388
12389         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12390         first line of the doc string for "info dos", except at the end of
12391         the sentence, since the short help stops at the first period.
12392
12393 2002-02-28  Jason Merrill  <jason@redhat.com>
12394
12395         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12396
12397 2002-02-27  Fred Fish  <fnf@redhat.com>
12398
12399         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12400         comment (dumy -> dummy).
12401
12402 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12403
12404         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12405
12406 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12407
12408       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12409
12410 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12411
12412         * gdbserver/acconfig.h: New file.
12413         * gdbserver/i387-fp.c: New file.
12414         * gdbserver/i387-fp.h: New file.
12415         * gdbserver/linux-x86-64.c: New file.
12416         * regformats/reg-x86-64.dat: New file.
12417         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12418         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12419         * gdbserver/configure.in: Add support for regsets.
12420         * gdbserver/config.in: Regenerate.
12421         * gdbserver/configure: Regenerate.
12422         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12423         * gdbserver/linux-low.h: New file.
12424         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12425         for regsets.
12426         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12427         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12428         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12429         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12430         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12431         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12432         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12433         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12434         * gdbserver/regcache.c (supply_register): New function.
12435         (supply_register_by_name): New function.
12436         (collect_register): New function.
12437         (collect_register_by_name): New function.
12438
12439 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12440
12441         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12442         (config.status): Add configure.srv dependency.
12443         (server_h): Add config.h dependency.
12444
12445 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12446
12447         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12448         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12449         * gdbserver/configure.srv: Change i386-*-linux* to use
12450         reg-i386-linux.o.
12451
12452 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12453
12454         * x86-64-tdep.c: Re-indent.  Update copyright date.
12455
12456 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12457
12458         From Michal Ludvig <mludvig@suse.cz>:
12459         * x86-64-tdep.c (value.h): Delete.
12460         (gdb_assert.h): Include.
12461         (x86_64_register_convert_to_virtual,
12462         x86_64_register_convert_to_raw ): Add check which lets only
12463         floating-point values to be converted.
12464         (value_push): Delete.
12465         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12466         (i386_gdbarch_init): Number of register_bytes fixed.
12467
12468 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12469
12470         * MAINTAINERS: Add x86-64 target.
12471
12472 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12473
12474         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12475         * osfsolib.c (solib_map_sections): Ditto.
12476         * irix5-nat.c (solib_map_sections): Ditto.
12477         * corelow.c (gdb_check_format): Ditto.
12478         * symfile.c (symfile_bfd_open): Ditto.
12479         * solib.c (solib_map_sections): Ditto.
12480         Fix PR gdb/354.
12481
12482 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12483
12484         * remote.c (_initialize_remote): By default, disable ``e'' and
12485         ``E'' step out-of-range packets.
12486
12487 2002-02-26  Andreas Schwab  <schwab@suse.de>
12488
12489         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12490         m68k_linux_frame_saved_pc.
12491         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12492         in_sigtramp.
12493         (SIGCONTEXT_PC_OFFSET): Remove.
12494         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12495         m68k_linux_sigtramp_saved_pc): New functions.
12496         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12497         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12498         (UCONTEXT_PC_OFFSET): Define.
12499         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12500         non-RT and RT signal trampolines.
12501
12502 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12503
12504         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12505         (TARGET_NBPG, STACK_END_ADDR): Delete
12506         (VARIABLES_INSIDE_BLOCK): Delete.
12507
12508 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12509
12510         * utils.c (perror_with_name): Make string parameter constant.
12511         (print_sys_errmsg): Ditto.
12512         (query): Ditto.
12513         * defs.h (perror_with_name): Update.
12514         (print_sys_errmsg): Update.
12515         (query): Update.
12516
12517 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12518
12519         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12520         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12521
12522 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12523
12524         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12525         if it already matches the current architecture from the exec file.
12526         Include arch-utils.h for gdbarch_info_init prototype.
12527         * Makefile.in (rs6000-nat.o): Update dependencies.
12528
12529 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12530
12531         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12532          list of exported variables.
12533
12534 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12535
12536         * gdbserver/configure.srv: New file.
12537         * gdbserver/configure.in: Use configure.srv instead
12538         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12539         from it.
12540         * gdbserver/configure: Regenerated.
12541         * gdbserver/terminal.h: New file.
12542         * gdbserver/Makefile.in: Update for configure changes.  Remove
12543         more unneeded include paths.
12544
12545 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12546
12547         From wiz at danbala:
12548         * config/sparc/tm-sp64.h: Fix grammar and typos.
12549         Fix PR gdb/287.
12550
12551 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12552
12553         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12554         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12555         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12556         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12557         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12558         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12559         * s390-tdep.c: Ditto.
12560         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12561         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12562         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12563         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12564         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12565         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12566         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12567         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12568         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12569         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12570         Fix PR gdb/378.
12571
12572 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12573
12574         * lin-thread.c: Delete file.
12575         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12576         to gdb_proc_service.h.
12577         * configure: Re-generate.
12578
12579         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12580         * serial.c (serial_open): Delete check for "ocd".
12581         Fix PR gdb/349.
12582
12583         * Makefile.in (linux-thread.o): Delete target.
12584         * linux-thread.c: Delete file.
12585
12586         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12587         renamed SH files to be consistent.
12588
12589         * symtab.c (sort_search_symbols): Use xfree.
12590
12591 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12592
12593         * arm-linux-tdep.c (arm_linux_init_abi): Register
12594         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12595         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12596         definition with undef, since we don't want the sysvr4 definition.
12597         (SKIP_TRAMPOLINE_CODE): Likewise.
12598
12599 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12600
12601         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12602
12603         * configure.in: (AC_CHECK_FUNCS) Added test for
12604         canonicalize_file_name Regenerated.
12605         * config.in, configure: Regenerated.
12606         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12607         defined use canonicalize_file_name.
12608
12609 2002-02-23  Michael Chastain  <mec@shout.net>
12610
12611         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12612
12613 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12614
12615         * README: Remove references to cygnus.com.
12616         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12617         dot com'' form.  Remove references to cygnus.com and sourceware.
12618
12619 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12620
12621         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12622         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12623         1003.1-2001 no longer allows "head -1".
12624         * gdb/Makefile.in (version.c): Likewise.
12625         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12626         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12627         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12628
12629 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12630
12631         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12632         * command.h (cmd_cfunc_eq): Declare.
12633         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12634
12635         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12636         ``struct cmd_list_element *''.
12637         * cli/cli-cmds.c (is_complete_command): Update.  Use
12638         cmd_cfunc_eq.
12639         * top.c (execute_command): Pass the command to
12640         is_complete_command.
12641         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12642
12643 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12644
12645         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12646         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12647         architecture defines.
12648         * s390-tdep.c (s390_gdbarch_init): Likewise.
12649
12650 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12651
12652         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12653         (arm_linux_push_arguments): Likewise.
12654         (arm_linux_init_abi): Register them.  Also register linux-specific
12655         call_dummy_words.
12656         (find_minsym_and_objfile): Use strcmp, not STREQ.
12657         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12658         (arm_linux_call_dummy_words): Delete declaration.
12659         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12660         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12661         declarations.
12662         (LOWEST_PC): Delete.
12663
12664 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12665
12666         * maint.c (print_section_info): Do not prepend `0x' to filepos
12667         output, it will be handled by local_hex_string_custom.
12668
12669 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12670
12671         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12672         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12673         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12674
12675 2002-02-22  Jim Blandy  <jimb@redhat.com>
12676
12677         Indicate that the bcache functions don't change the strings
12678         they're passed.
12679         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12680         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12681
12682 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12683
12684         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12685
12686 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12687
12688         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12689         find the complete path to a loaded DLL.
12690
12691 2002-02-21  Fred Fish  <fnf@redhat.com>
12692
12693         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12694         that marks the end of the range of a function, enter a line number
12695         entry that has a line number of zero and a PC offset that matches
12696         the end of the function.  This starts a range of PC's for which no
12697         line number information is known.
12698         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12699         PC's for which no line number info is found (line number is zero)
12700         then we didn't find any valid line information.
12701         * symtab.h: Document use of zero line number entry.
12702
12703 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12704
12705         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12706         (have_ptrace_getvrregs): Define for run time checks.
12707         (gdb_vrregset_t): New type for Altivec register handling.
12708         (fetch_register, store_register): Fetch/store altivec register
12709         when needed.
12710         (fetch_altivec_register, store_altivec_register): New functions.
12711         (supply_vrregset, fill_vrregset): New functions.
12712         (fetch_altivec_registers, store_altivec_registers): New functions.
12713         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12714         registers as well.
12715
12716 2002-02-21  Jiri Smid  <smid@suse.cz>
12717
12718         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12719
12720 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12721
12722         * Makefile.in (armnbsd-nat.o): Update dependencies.
12723         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12724         supply the integer register set.
12725         (supply_fparegset): New function.  Similar for FPA registers.
12726         (fetch_regs, fetch_fp_regs): Use them.
12727         (fetch_core_registers): Likewise.
12728         (fetch_elfcore_registers): New function.
12729         (arm_netbsd_elfcore_fns): New core-file type specification.
12730         (_initialize_arm_netbsd_nat): Register it.
12731
12732 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12733
12734         * armnbsd-nat.c: Include gdbcore.h.
12735         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12736         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12737         'void' to declaration, to shut up ARI.
12738         (fetch_core_registers): Make static.  Rewrite using supply_register.
12739         (arm_netbsd_core_fns): New core-file type specification.
12740         (_initialize_arm_netbsd_nat): New function.
12741
12742 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12743
12744         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12745         value.
12746
12747 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12748
12749         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12750         fails.
12751
12752 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12753
12754         * jv-exp.y (parse_number): Change type of implicit longs
12755         to builtin_type_uint64.
12756
12757 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12758
12759         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12760         to be an integer instead of a `union wait'.
12761
12762 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12763
12764         * mips-linux-nat.c: Call the operating system GNU/Linux.
12765         * mips-linux-tdep.c: Likewise.
12766         * mips-tdep.c: Likewise.
12767
12768 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12769
12770         Fix PR gdb/265.
12771         * jv-exp.y (parse_number): Handle 64-bit integers.
12772
12773 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12774
12775         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12776         AC_STDC_HEADERS to AC_HEADER_STDC.
12777         * gdbserver/configure: Regenerated.
12778
12779 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12780
12781         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12782         is defined.
12783         * sparc-tdep.c (get_longjmp_target): Likewise.
12784
12785 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12786
12787         * News: Add news about ARM and Multi-arch.  Mention the new target
12788         arm*-*-netbsd*.
12789
12790 2002-02-19  Jim Blandy  <jimb@redhat.com>
12791
12792         * stabsread.c (error_type_complaint): Improve error message.
12793
12794 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12795
12796         * gdbserver/README: Update documentation.
12797         * gdbserver/configure.in: Update configury to match documentation.
12798         * gdbserver/Makefile.in: Likewise.
12799         * gdbserver/configure: Regenerated.
12800         * gdbserver/aclocal.m4: New file, generated by aclocal.
12801         * gdbserver/config.in: New file, generated by autoheader.
12802
12803 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12804
12805         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12806         armnbsd-nat.c.
12807
12808 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12809
12810         * arm-tdep.h (enum arm_float_model): New enum.
12811         (struct gdbarch_tdep): Add fp_model.
12812         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12813         up floating-point conversions until we know the floating-point model
12814         in use by the inferior.  Don't complain about being unable to
12815         determine the ABI of the inferior when we don't have one.
12816         (arm_extract_return_value): Support different floating-point models.
12817         (arm_store_return_value): Likewise.
12818         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12819         ARM_FLOAT_SOFT.
12820         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12821
12822 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12823
12824         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12825         of ``current_gdbarch''.
12826
12827 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12828
12829         * armnbsd-nat.c : ANSIfy all function declarations.
12830         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12831         (fetch_inferior_registers): Re-implement in terms of above.
12832         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12833         (store_inferior_registers): Re-implement in terms of above.
12834
12835 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12836
12837         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12838         kernel.
12839         * arm-linux-tdep.c: Likewise.
12840         * config/arm/tm-linux.h: Likewise.
12841
12842 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12843
12844         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12845         * config/arm/nbsd.mt (TM_FILE): Delete.
12846         * config/arm/tm-nbsd.h: Delete.
12847
12848 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12849
12850         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12851         Initialize CALL_DUMMY_LENGTH.
12852
12853 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12854
12855         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12856         function.
12857         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12858         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12859         defines one thing and that is incorrect for this port.
12860         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12861
12862 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12863
12864         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12865
12866 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12867
12868         * win32-nat.c (display_selector): New function. Displays information
12869         about the information returned by GetThreadSelectorEntry API function.
12870         (display_selectors): New function. Displays the infomation of
12871         the selector given as argument, or of CS, DS ans FS selectors
12872         if no argument is given.
12873         ( _initialize_inftarg): Add "w32" as info prefix command.
12874         Add "info w32 selector" as command calling display_selectors.
12875
12876 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12877
12878         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12879         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12880         if not defined.
12881
12882 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12883
12884         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12885
12886 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12887
12888         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12889         (arm_fix_call_dummy): Call it.
12890         (arm_call_dummy_breakpoint_offset): Delete.
12891         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12892         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12893
12894 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12895
12896         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12897         Default to func_frame_chain_valid.
12898         * gdbarch.h, gdbarch.c: Re-generate.
12899         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12900
12901 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12902
12903         * ppc-linux-nat.c: Update copyright.
12904         (fetch_register, store_register): Add tid parameter, don't compute
12905         tid here.
12906         (fetch_ppc_registers, store_ppc_registers): Add tid
12907         parameter. Pass it along to callees.
12908         (fetch_inferior_registers, store_inferior_registers): Compute tid
12909         here, and pass it to calleed functions.
12910         (fill_gregset, supply_fpregset): Clean up formatting.
12911
12912 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12913
12914         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12915         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12916
12917 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12918
12919         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12920         * gdbarch.c gdbarch.h: Regenerate.
12921         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12922         function.
12923         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12924         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12925         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12926
12927         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12928         * arm-tdep.c (arm_get_longjmp_target): New function.
12929         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12930         this to a positive value register arm_get_longjmp_target as the
12931         longjmp handler.
12932         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12933         (arm_linux_init_abi): Set up longjmp description in tdep.
12934         * armnbsd-nat.c (get_longjmp_target): Delete.
12935         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12936         description in tdep.
12937         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12938         (get_longjmp_target): Delete declaration.
12939         (GET_LONGJMP_TARGET): Delete.
12940         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12941         (GET_LONGJMP_TARGET): Delete.
12942
12943 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12944
12945         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12946         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12947         of ``current_gdbarch''.
12948
12949 2002-02-17  Tom Tromey  <tromey@redhat.com>
12950
12951         * cli/cli-cmds.c (compare_strings): New function.
12952         (complete_command): Only print each unique item once.
12953         * completer.h (complete_line): Declare.
12954         * completer.c (complete_line): New function.
12955         (line_completion_function): Use it.
12956
12957 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12958
12959         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12960         * gdbarch.h, gdbarch.c: Re-generate.
12961
12962 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12963
12964         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12965
12966 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12967
12968         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12969         * valops.c (value_arg_coerce): Don't take the address of a reference
12970         to convert an argument to a reference.
12971
12972 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12973
12974         * win32-nat.c (get_image_name): New function.
12975         (handle_load_dll): Use get_image_name function.
12976         (get_child_debug_event): Avoid registering debug events until possibly
12977         execed process is started.
12978         (child_create_inferior): Allow invocation via shell so that command
12979         line redirection, etc.  works ok.
12980         (_initialize_inftarg): Add new command: "set shell" to control whether
12981         a shell is used to start a process.
12982
12983 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12984
12985         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12986         instead of find_register_by_number.
12987         (cannot_store_register): Likewise.
12988
12989 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12990
12991         * dwarf2read.c: Replace fprintf (stderr, ...) by
12992         fprintf_unfiltered (gdb_stderr, ...).
12993
12994 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12995
12996         * gdbserver/gdbserver.1: Document --attach.
12997
12998 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12999
13000         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13001         descriptions.
13002         * arm-tdep.c (arm_default_arm_le_breakpoint)
13003         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13004         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13005         traditional breakpoint defines.
13006         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13007         (arm_gdbarch_init): Initialize new breakpoint variables.
13008         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13009         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13010         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13011         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13012         code out to ...
13013         (arm_netbsd_init_abi_common): ... here; new function.
13014         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13015         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13016         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13017         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13018
13019 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13020
13021         * arm-tdep.h (enum arm_abi): New enum.
13022         (struct gdbarch_tdep): New structure.
13023         (LOWEST_PC): Provide a default.
13024         (arm_gdbarch_register_os_abi): Declare new function.
13025         * arm-tdep.c (arm_abi_names): New array.
13026         (process_note_abi_tag_sections): New function.
13027         (get_elfosabi): New function.
13028         (arm_gdbarch_register_os_abi): New function.
13029         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13030         support for that ABI has been built in, then call the appropriate
13031         configuration routine.  Use gdbarch_num_regs() to get the number
13032         of registers.
13033         (arm_dump_tdep): New function.
13034         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13035         place-holder functions.
13036         (_initialize_arm_tdep): Register them.
13037         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13038
13039         * armnbsd-tdep.c: New file.
13040         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13041         * config/arm/nbsd.mt (TDEPFILES): Add it.
13042         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13043
13044         * armnbsd-nat.c: Include regcache.h.
13045         * Makefile.in (armnbsd-nat.o): Update dependency list.
13046
13047         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13048
13049 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13050
13051         * gdbserver/Makefile.in: Fix typos in target rules.
13052
13053 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13054
13055         Fix part of PR gdb/267.
13056         * linespec.c (find_methods): Handle constructors specially for now.
13057
13058 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13059
13060         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13061         handling.
13062         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13063         standard_coerce_float_to_double().
13064
13065 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13066
13067         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13068         GDBINIT_FILENAME.
13069
13070 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13071
13072         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13073         find_variant_by_name, because it confuses the multiarch
13074         framework. Return NULL if there isn't an architecture with the
13075         user supplied name, instead of forcing a different one without
13076         recording the change with the multiarch machinery.
13077         (find_variant_by_name): Delete.
13078
13079 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13080
13081         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13082         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13083
13084 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13085
13086         * stack.c (print_frame_info_base): When calling
13087         print_frame_info_listing_hook, set current_source_symtab.
13088
13089 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13090
13091         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13092         and remove unused $(INCLUDE_DIR).
13093         Add regcache.c to OBS.
13094         Add generated register protocol files to clean target.
13095         Update dependencies for new objects, obsolete old target code.
13096
13097         * gdbserver/linux-low.c: Remove all platform-specific code to
13098         new files.  Remove various dead code.  Update to use regcache
13099         functionality.
13100         * gdbserver/remote-utils.c (fromhex): Add return statement
13101         to quiet warning.
13102         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13103         constant.
13104         (input_interrupt): Add integer parameter to match prototype
13105         of a signal handler.
13106         (outreg): Use register_data ().
13107         (prepare_resume_reply): Use gdbserver_expedite_regs.
13108         * gdbserver/server.c (main): Dynamically allocate own_buf because
13109         PBUFSIZ is no longer constant.  Use registers_to_string () and
13110         registers_from_string ().
13111         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13112         for error (), fatal (), and warning ().  Update definition of
13113         PBUFSIZ to use regcache functionality.  Add include guard.
13114         * gdbserver/utils.c (fatal): Add missing ``const''.
13115         (warning): New function.
13116
13117         * regformats/regdat.sh: Include "regcache.h" in generated files.
13118         Provide init_registers () function.
13119         * regformats/regdef.h: Add prototype for set_register_cache ().
13120         Add include guard.
13121
13122         * gdbserver/linux-arm-low.c: New file.
13123         * gdbserver/linux-i386-low.c: New file.
13124         * gdbserver/linux-ia64-low.c: New file.
13125         * gdbserver/linux-m68k-low.c: New file.
13126         * gdbserver/linux-mips-low.c: New file.
13127         * gdbserver/linux-ppc-low.c: New file.
13128         * gdbserver/linux-sh-low.c: New file.
13129
13130         * gdbserver/regcache.c: New file.
13131         * gdbserver/regcache.h: New file.
13132
13133         * gdbserver/low-linux.c: Removed obsolete file.
13134
13135 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13136
13137         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13138         * config/i386/linux.mt: Likewise.
13139         * config/ia64/linux.mt: Likewise.
13140         * config/m68k/linux.mh: Likewise.
13141         * config/powerpc/linux.mh: Likewise.
13142         * config/mips/linux.mt: Likewise.
13143
13144         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13145
13146         * config/i386/i386lynx.mh: Mark gdbserver variables
13147         as (currently) obsolete for this target.
13148         * config/i386/nbsd.mt: Likewise.
13149         * config/i386/nbsdelf.mt: Likewise.
13150         * config/m32r/m32r.mt: Likewise.
13151         * config/m68k/m68klynx.mh: Likewise.
13152         * config/m68k/nbsd.mt: Likewise.
13153         * config/m68k/sun3os4.mh: Likewise.
13154         * config/mips/vr5000.mt: Likewise.
13155         * config/ns32k/nbsd.mt: Likewise.
13156         * config/pa/hppabsd.mh: Likewise.
13157         * config/pa/hppaosf.mh: Likewise.
13158         * config/powerpc/nbsd.mt: Likewise.
13159         * config/rs6000/rs6000lynx.mh: Likewise.
13160         * config/s390/s390.mt: Likewise.
13161         * config/s390/s390x.mt: Likewise.
13162         * config/sparc/sparclynx.mh: Likewise.
13163         * config/sparc/sun4os4.mh: Likewise.
13164         * config/i386/x86-64linux.mt: Likewise.
13165         * config/sparc/linux.mh: Likewise.
13166
13167 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13168
13169         * configure.tgt: Configure gdbserver only for known working
13170         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13171         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13172         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13173         * configure: Regenerated.
13174
13175 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13176
13177         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13178
13179         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13180         (default_gcore_mach): Just return 0, work around a problem in bfd.
13181         (default_gcore_target): OK to return NULL if exec_bfd is null.
13182         (make_mem_sec): Use a cast, avoid a warning.
13183
13184         * procfs.c (find_memory_regions_callback): Use a cast instead of
13185         calling host_pointer_to_address (which complains if
13186         sizeof (host pointer) != sizeof (target pointer)).
13187         (procfs_make_note_section): Avoid overflow in psargs string.
13188
13189         * procfs.c (procfs_make_note_section): Make the default
13190         implementation return an error.
13191
13192 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13193
13194         * procfs.c (procfs_make_note_section): Provide a default definition
13195         (for alpha-dec-osf4.0f). Fix typos.
13196
13197 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13198
13199         * linux-proc.c: Add include of regcache.h.
13200         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13201
13202 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13203
13204         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13205         * memattr.c (create_mem_region): Disallow useless empty region.
13206         Regions are half-open intervals, so allow [A..B) [B..C) as
13207         non-overlapping.
13208
13209 2002-02-13  Michael Chastain <mec@shout.net>
13210
13211         * defs.h: Kill CONST_PTR.
13212         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13213         * c-lang.c (c_builtin_types): Likewise.
13214         * ch-lang.c (ch_builtin_types): Likewise.
13215         * f-lang.c (f_builtin_types): Likewise.
13216         * language.c (unknown_builtin_types): Likewise.
13217         * m2-lang.c (m2_builtin_types): Likewise.
13218         * p-lang.c (pascal_builtin_types): Likewise.
13219         * scm-lang.c (c_builtin_types): Likewise.
13220
13221 2002-02-13  Keith Seitz  <keiths@redhat.com>
13222
13223         * arm-tdep.h (arm_get_next_pc): Add declaration.
13224
13225 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13226
13227         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13228         with other related struct-returning functions.
13229         (arm_extract_struct_value_address): New function.
13230         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13231         initialize float_format, double_format and long_double_format as
13232         appropriate to the endianness of the target.
13233         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13234         (arm_use_struct_convention): Delete declaration.
13235         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13236
13237 2002-02-13  Keith Seitz  <keiths@redhat.com>
13238
13239         * defs.h (core_addr_to_string_nz): New function.
13240
13241 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13242
13243         Apply missing bits of 2002-01-15 patch.
13244         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13245         (fill_fpregset): Use i387_fill_fsave.
13246
13247 2002-02-12  Keith Seitz  <keiths@redhat.com>
13248
13249         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13250         (core_addr_to_string_nz): New function.
13251
13252 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13253
13254         * arm-linux-nat.c: Really include arm-tdep.h.
13255         * config/arm/tm-linux.h (struct type, struct value): Declare.
13256
13257 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13258
13259         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13260         (gcore section): Ifdef for Solaris and Unixware only.
13261         (procfs_do_thread_registers): Unixware needs one lwpstatus
13262         per thread (not one prstatus or pstatus).
13263         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13264         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13265         once before iterating over threads.
13266
13267 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13268
13269         * arm-tdep.h: New file.
13270         * arm-tdep.c: Include arm-tdep.h.
13271         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13272         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13273         (arm_print_float_info, arm_register_type, convert_to_extended)
13274         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13275         (arm_extract_return_value, arm_register_name): Make static.
13276         (arm_software_single_step): Similarly.  Fix types in declaration.
13277         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13278         (arm_store_return_value, arm_store_struct_return): New functions.
13279         (arm_gdbarch_init): Register the above functions.  Also register
13280         call_dummy_start_offset, sizeof_call_dummy_words,
13281         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13282         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13283         max_register_virtual_size, register_size.  Set up
13284         prologue_cache.saved_regs here, rather than ...
13285         (_initialize_arm_tdep): ... here.
13286         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13287         declarations.
13288         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13289         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13290         (arm_print_float_info, arm_register_type, convert_to_extended)
13291         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13292         (arm_extract_return_value, arm_register_name): Delete declarations.
13293         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13294         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13295         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13296         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13297         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13298         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13299         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13300         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13301         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13302         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13303         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13304         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13305         interface.
13306         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13307         * remote-rdi.c remote-rdp.c: Likewise.
13308         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13309         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13310         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13311         definition.
13312
13313         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13314         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13315         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13316         from non-ARM_ prefixed definitions.
13317         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13318         all uses of above.
13319         * remote-rdi.c remote-rdp.c: Likewise.
13320         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13321
13322 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13323
13324         * arm-tdep.c (arm_frameless_function_invocation)
13325         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13326         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13327         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13328         (arm_pop_frame, arm_get_next_pc): Make static.
13329         (arm_gdbarch_init): Register above in gdbarch structure.
13330         (arm_read_fp): Renamed from arm_target_read_fp.
13331         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13332         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13333         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13334         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13335         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13336         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13337         (arm_pc_is_thumb_dummy): Delete declarations.
13338         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13339         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13340         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13341         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13342
13343 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13344
13345         * symtab.c (compare_search_syms): New function.
13346         (sort_search_symbols): New function.
13347         (search_symbols): Sort symbols after searching rather than
13348         before.
13349
13350 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13351
13352         * NEWS: Linux -> GNU/Linux.
13353
13354 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13355
13356         * gdbarch.sh: For for level one methods, disallow a definition
13357         when partially multi-arched.  Add comments explaining rationale.
13358         * gdbarch.h: Re-generate.
13359
13360 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13361
13362         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13363         multi-arch partial.
13364
13365 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13366
13367         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13368         field.  Use diff -u.
13369         * gdbarch.c: Re-generate.
13370
13371 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13372
13373         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13374         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13375         partial.
13376
13377 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13378
13379         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13380         multi-arch partial.
13381         (PUSH_ARGUMENTS): Switch to using predefault.
13382         * gdbarch.c: Regenerate.
13383
13384 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13385
13386         * valops.c (PUSH_ARGUMENTS): Delete definition.
13387         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13388         partial.  Default to default_push_arguments.
13389         * gdbarch.h, gdbarch.c: Regenerate.
13390
13391 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13392
13393         * defs.h (throw_exception): Rename return_to_top_level.  Update
13394         comments.
13395         * utils.c (error_stream, internal_verror, quit): Ditto.
13396         * top.c (throw_exception, catcher): Ditto.
13397         * sparclet-rom.c (sparclet_load): Ditto.
13398         * remote.c (interrupt_query, minitelnet): Ditto.
13399         * remote-sds.c (interrupt_query): Ditto.
13400         * remote-mips.c (mips_error, mips_kill): Ditto.
13401         * ocd.c (interrupt_query): Ditto.
13402         * monitor.c (monitor_interrupt_query): Ditto.
13403         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13404         * target.h: Update comment.
13405
13406         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13407
13408 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13409
13410         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13411         default_double_format.
13412         * gdbarch.h, gdbarch.c: Re-generate.
13413         * findvar.c (floatformat_unknown): Delete variable definition.
13414         * doublest.h (floatformat_unknown): Delete variable declaration.
13415
13416 2002-02-09  Jim Blandy  <jimb@redhat.com>
13417
13418         * stabsread.c (read_type): Add code to parse Sun's syntax for
13419         prototyped function types.
13420
13421 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13422
13423         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13424         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13425
13426 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13427
13428         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13429         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13430         now _initialize_xcoffsolib gets called again and overrides the
13431         commands from solib.c in a native configuration.
13432
13433 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13434
13435         * doublest.c (store_typed_floating): Don't try to return a value.
13436         Fixes PR gdb/290.
13437
13438 2002-02-08  Jim Blandy  <jimb@redhat.com>
13439
13440         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13441         is prototyped and has no arguments, print its argument list as
13442         `(void)'.
13443
13444 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13445
13446         * MAINTAINERS (write-after-approval): Add myself.
13447         (paper-trail): I've escaped!
13448
13449 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13450
13451         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13452         changes.
13453         (_initialize_check_for_gdb_ini): Ditto.
13454
13455 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13456
13457         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13458         xaprintf -> xasprintf.
13459
13460 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13461
13462         * win32-nat.c: Remove use of printf and sprintf functions.
13463
13464 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13465
13466         * arm-tdep.c (arm_frame_chain_valid): Make static.
13467         (arm_push_arguments): Likewise.
13468         (arm_gdbarch_init): New function.
13469         (_initialize_arm_tdep): Call it.
13470         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13471         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13472         (FRAME_CHAIN_VALID): Delete.
13473         (arm_frame_chain_valid): Delete declaration.
13474         (PUSH_ARGUMENTS): Delete.
13475         (arm_push_arguments): Delete declaration.
13476         (CALL_DUMMY_P): Delete.
13477
13478 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13479             Corinna Vinschen  <vinschen@redhat.com>
13480
13481         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13482         on builtin float types.
13483
13484 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13485
13486         * utils.c: Include <curses.h> before "bfd.h".
13487         * tui/tui-hooks.c: Likewise.
13488         * tui/tui.c: Likewise.
13489         * tui/tuiCommand.c: Likewise.
13490         * tui/tuiData.c: Likewise.
13491         * tui/tuiDataWin.c: Likewise.
13492         * tui/tuiDisassem.c: Likewise.
13493         * tui/tuiGeneralWin.c: Likewise.
13494         * tui/tuiIO.c: Likewise.
13495         * tui/tuiLayout.c: Likewise.
13496         * tui/tuiRegs.c: Likewise.
13497         * tui/tuiSource.c: Likewise.
13498         * tui/tuiSourceWin.c: Likewise.
13499         * tui/tuiStack.c: Likewise.
13500         * tui/tuiWin.c: Likewise.
13501
13502 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13503
13504         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13505         to include space for pseudoregs as well. Update loops accordingly.
13506         (sh_fp_frame_init_saved_regs): Ditto.
13507         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13508
13509 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13510
13511         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13512         Add Richard Earnshaw to Arm maintainers.
13513
13514 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13515
13516         * defs.h (warning_begin): Delete declaration.
13517
13518         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13519         Delete macro.
13520
13521 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13522
13523         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13524         Logic bug, remove misplaced else.
13525
13526 2002-02-07  Klee Dienes  <klee@apple.com>
13527
13528         * fork-inferior.c (fork_inferior): Add '!' to the list of
13529         characters that need to be quoted when building a string for the
13530         shell.  Quote '!' specifically with a backslash, since CSH chokes
13531         when trying to evaluate "str!str".
13532
13533 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13534
13535         * rdi-share/host.h: Only provide a typedef for bool if it is not
13536         defined.
13537
13538 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13539
13540         * breakpoint.h (enum bptype): Add new overlay event bp type.
13541         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13542
13543         * breakpoint.c (create_internal_breakpoint): New function.
13544         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13545         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13546         (create_thread_event_breakpoint): Ditto.
13547         (create_solib_event_breakpoint): Ditto.
13548         (create_overlay_event_breakpoint): New function.
13549         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13550         (update_breakpoints_after_exec): Delete and re-initialize
13551         overlay event breakpoints after an exec.  Add FIXME comment
13552         about longjmp breakpoint.
13553         (print_it_typical): Ignore overlay event breakpoints.
13554         (print_one_breakpoint): Ditto.
13555         (mention): Ditto.
13556         (bpstat_what): Do not stop for overlay event breakpoints.
13557         (delete_breakpoint): Don't delete overlay event breakpoints.
13558         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13559         (breakpoint_re_set): Re-create overlay event breakpoint.
13560
13561         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13562         (overlay_manual_command): Disable overlay breakpoints.
13563         (overlay_off_command): Disable overlay breakpoints.
13564
13565 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13566
13567         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13568         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13569         to here from config/tm-arm.h.
13570         (coff_sym_is_thumb): Make static.
13571         (arm_elf_make_msymbol_special): New function.
13572         (arm_coff_make_msymbol_special): New function.
13573         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13574         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13575         (coff_sym_is_thumb): Delete declaration.
13576         (arm_elf_make_msymbol_special): Declare.
13577         (arm_coff_make_msymbol_special): Declare.
13578         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13579         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13580
13581 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13582
13583         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13584
13585 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13586
13587         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13588         * gdbarch.c gdbarch.h: Regenerate.
13589         * arch-utils.c (default_print_float_info): New function.
13590         * arch-utils.h (default_print_float_info): Prototype it.
13591         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13592         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13593         (PRINT_FLOAT_INFO): Document it.
13594
13595         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13596         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13597         (PRINT_FLOAT_INFO): Define.
13598
13599 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13600
13601         * win32-nat.c (_initialize_check_for_gdb_ini):
13602         Add typecast to sprintf argument to suppress a warning.
13603
13604 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13605
13606         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13607         to allow easier handling of pass state.
13608         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13609         that gives exception name and address.
13610         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13611         and set last_sig value to ourstatus->value.sig. Some missing
13612         exceptions added.
13613         (child_continue): Correctly report continue_status.
13614         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13615         TARGET_SIGNAL_0 (new default value).
13616         (child_resume): consider sig argument passed to decide if
13617         the exception should be passed to debuggee or not.
13618
13619 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13620
13621         * regcache.c (fetch_register): Call target_fetch_register
13622         only if we don't call FETCH_PSEUDO_REGISTER.
13623         (store_register): Call target_store_register only if we
13624         don't call STORE_PSEUDO_REGISTER.
13625
13626 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13627
13628         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13629         ELF_MAKE_MSYMBOL_SPECIAL.
13630         * gdbarch.c, gdbarch.h: Regenerate.
13631         * arch-utils.c (default_make_msymbol_special): New function.
13632         * arch-utils.h (default_make_msymbol_special): Export.
13633         * elfread.c (elf_symtab_read): Compile use of
13634         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13635         multiarched.
13636         * coffread.c (coff_symtab_read): Ditto, for
13637         COFF_MAKE_MSYMBOL_SPECIAL.
13638
13639 2002-02-05  Jim Blandy  <jimb@redhat.com>
13640
13641         * solib-svr4.c (svr4_truncate_ptr): New function.
13642         (svr4_relocate_section_addresses): Do the address arithmetic with
13643         the appropriate truncation for target addresses, even when
13644         CORE_ADDR is larger than a target address.
13645
13646 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13647
13648         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13649         to (int *).
13650
13651 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13652
13653         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13654         code.
13655
13656 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13657
13658         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13659
13660 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13661
13662         * gdbserver/linux-low.c: Remove unused include files.
13663
13664 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13665
13666         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13667         (read_inferior_memory): Use it.
13668         (write_inferior_memory): Likewise.
13669
13670 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13671
13672         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13673         grubbing through sys_errlist.
13674
13675 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13676
13677         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13678
13679 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13680         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13681
13682 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13683
13684         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13685         (do_sfunc, set_cmd_sfunc): New functions.
13686
13687         * command.h (struct cmd_list_element): Add field func.
13688         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13689         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13690         * cli/cli-decode.h: Ditto.
13691
13692         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13693         (help_all, help_cmd_list): Ditto.
13694         (find_cmd, complete_on_cmdlist): Ditto.
13695         * top.c (execute_command): Ditto.
13696
13697         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13698         function.sfunc.
13699
13700         * infcmd.c (notice_args_read): Fix function signature.
13701
13702         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13703         * cli/cli-decode.c (add_set_cmd): Ditto.
13704         * utils.c (initialize_utils): Ditto.
13705         * maint.c (_initialize_maint_cmds): Ditto.
13706         * infrun.c (_initialize_infrun): Ditto.
13707         * demangle.c (_initialize_demangler): Ditto.
13708         * remote.c (add_packet_config_cmd): Ditto.
13709         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13710         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13711         * proc-api.c (_initialize_proc_api): Ditto.
13712         * kod.c (_initialize_kod): Ditto.
13713         * valprint.c (_initialize_valprint): Ditto.
13714         * top.c (init_main): Ditto.
13715         * infcmd.c (_initialize_infcmd): Ditto.
13716         * corefile.c (_initialize_core): Ditto.
13717         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13718         * arch-utils.c (initialize_current_architecture): Ditto.
13719         (_initialize_gdbarch_utils): Ditto.
13720         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13721
13722         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13723         * wince.c (_initialize_inftarg): Ditto.
13724         * symfile.c (_initialize_symfile): Ditto.
13725         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13726         * language.c (_initialize_language): Ditto.
13727         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13728
13729 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13730
13731         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13732
13733 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13734
13735         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13736         Add rules for building the register data files.
13737
13738 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13739
13740         * regformats/regdat.sh: Add braces to the definition of
13741         expedite_regs_${arch}.
13742
13743 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13744
13745         * regformats/regdef.h (struct reg): Add comment describing the
13746         requirements for offset and size fields.
13747
13748 2002-02-04  Andreas Schwab  <schwab@suse.de>
13749
13750         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13751         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13752
13753 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13754
13755         * gdbarch.sh (copyright): Update years in generated header.
13756         (SMASH_TEXT_ADDRESS): Add rule.
13757         * gdbarch.h, gdbarch.c: Re-generate.
13758         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13759         * dbxread.c: Likewise.
13760         * dwarfread.c: Likewise.
13761         * elfread.c: Likewise.
13762         * somread.c: Likewise.
13763
13764         * arm-tdep.c (arm_smash_text_address): New function.
13765         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13766
13767 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13768
13769         Add support for hardware watchpoints on win32 native.
13770         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13771         CONTEXT_DEBUG_REGISTERS.
13772         (dr variable): New variable. Static array containing a local copy
13773         of debug registers.
13774         (debug_registers_changed): New variable.  Reflects when debug registers
13775         are changed and need to be written to inferior.
13776         (debug_registers_used): New variable. Reflects when any debug register
13777         was set, used when new threads are created.
13778         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13779         i386-nat code.
13780         (thread_rec): Set dr array if id is the thread of current_event .
13781         (child_continue, child_resume): Change the debug registers for all
13782         threads if debug_registers_changed.
13783         (child_add_thread): Change the debug registers if debug_registers_used.
13784         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13785         Link nm.h to new nm-cygwin.h file.
13786         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13787         of hardware registers.
13788
13789 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13790
13791         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13792         Restore behavour broken by 2002-01-20 Andrew Cagney
13793         <ac131313@redhat.com> IEEE_FLOAT removal.
13794
13795 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13796
13797         * c-valprint.c (c_val_print): Pass a proper valaddr to
13798         cp_print_class_method.
13799         * valops.c (search_struct_method): If there is only one method
13800         and args is NULL, return that method.
13801
13802 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13803
13804         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13805         accessing tag_name directly.
13806
13807 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13808
13809         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13810         of accessing tag_name directly.
13811
13812 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13813
13814         PR gdb/280
13815         * gdbtypes.c (replace_type): New function.
13816         * gdbtypes.h (replace_type): Add prototype.
13817         * stabsread.c (read_type): Use replace_type.
13818
13819 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13820
13821         * Makefile.in (memattr.o): Add missing dependencies rule.
13822
13823 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13824
13825         * breakpoint.c (break_at_finish_command): Really export.
13826         (break_at_finish_at_depth_command): Ditto.
13827         (tbreak_at_finish_command): Ditto.
13828         * hppa-tdep.c: Include completer.h.
13829         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13830         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13831
13832 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13833
13834         * utils.c (do_write): New function.
13835         (error_stream): Rewrite combining the code from error_begin and
13836         verror.
13837         (verror): Rewrite using error_stream.
13838         (error_begin): Delete function.
13839
13840 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13841
13842         * utils.c (error_begin): Make static.
13843         * defs.h (error_begin): Delete declaration.
13844
13845         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13846         (decode_line_1): Use cplusplus_error instead of error_begin,
13847         cplusplus_hint and return_to_top_level.
13848         * coffread.c (coff_symfile_read): Use error instead of error_begin
13849         and return_to_top_level.
13850         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13851
13852 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13853
13854         * language.h (type_error, range_error): Make string parameter
13855         constant.
13856         * language.c (warning_pre_print): Delete extern declaration.
13857         * dwarfread.c (warning_pre_print): Ditto.
13858         * language.c (type_error, range_error): Rewrite to use verror and
13859         vwarning instead of warning_begin.
13860
13861 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13862
13863         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13864         (set_ignore_count): Move misplaced comment back where it belongs.
13865
13866 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13867
13868         * command.h (NO_FUNCTION): Delete macro.
13869         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13870         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13871         * tracepoint.c (_initialize_tracepoint): Ditto.
13872         * cli/cli-decode.c (add_set_cmd): Ditto.
13873         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13874
13875 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13876
13877         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13878         Update ``this'' pointer when calling virtual functions.
13879
13880 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13881
13882         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13883         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13884
13885 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13886
13887         * regformats/reg-arm.dat: New file.
13888         * regformats/reg-i386.dat: New file.
13889         * regformats/reg-ia64.dat: New file.
13890         * regformats/reg-m68k.dat: New file.
13891         * regformats/reg-mips.dat: New file.
13892         * regformats/reg-ppc.dat: New file.
13893         * regformats/reg-sh.dat: New file.
13894         * regformats/regdef.h: New file.
13895         * regformats/regdat.sh: New file.
13896
13897 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13898
13899         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13900         (arm_frame_args_address, arm_frame_locals_address): New functions.
13901         (arm_frame_num_args): New function.
13902         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13903         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13904         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13905
13906 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13907
13908         * breakpoint.c (break_at_finish_command): Export.
13909         (break_at_finish_at_depth_command): Export.
13910         (tbreak_at_finish_command): Export.
13911         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13912         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13913         "txbreak" commands, which are HPPA specific.
13914
13915         * printcmd.c (disassemble_command): Remove an ancient
13916         artifact of an old merge.
13917
13918         * symfile.h (enum overlay_debugging_state):
13919         Define enum constant values for overlay mode.
13920         * symfile.c (overlay_debugging): Use enums instead of literals.
13921         (overlay_is_mapped, overlay_auto_command,
13922         overlay_manual_command): Ditto.
13923
13924         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13925         breakpoint_here_p, breakpoint_inserted_here_p,
13926         breakpoint_thread_match, bpstat_stop_status,
13927         describe_other_breakpoints, check_duplicates, clear_command):
13928         Coding standard fixes.
13929
13930         * target.c (target_xfer_memory): Add spaces, coding standard.
13931         (do_xfer_memory): Add missing line to trust-readonly
13932         code: check bfd SEC_READONLY flag for section.
13933
13934 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13935
13936         * PROBLEMS: Fix typo, 5.1->5.1.1.
13937
13938 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13939
13940         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13941         data symbols, since we search based on textlow and texthigh.
13942         (find_pc_sect_symtab): Likewise.
13943
13944 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13945
13946         * defs.h (vwarning): Declare.
13947         * utils.c (vwarning): New function.
13948         (warning): Call vwarning.
13949         (warning_begin): Delete function.
13950
13951         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13952         the warning message.
13953         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13954         warning_begin.
13955
13956 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13957
13958         * NEWS: Mention "set trust-readonly-sections" command.
13959         Mention generate-core-file command.
13960
13961 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13962
13963         * target.c: New command, "set trust-readonly-sections on".
13964         (do_xfer_memory): Honor the suggestion to trust readonly sections
13965         by reading them from the object file instead of from the target.
13966         (initialize_targets): Register command "set trust-readonly-sections".
13967
13968 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13969
13970         * parse.c (target_map_name_to_register): Simplify, search regs and
13971         pseudo-regs using a single loop.
13972
13973 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13974
13975         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13976
13977 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13978
13979         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13980         * config/i386/i386v42mp.mh: Add i387-nat.o .
13981         * i386v4-nat.c: Include i387-nat.h.
13982         (supply_fpregset): Use i387_supply_fsave.
13983         (fill_fpregset): Use i387_fill_fsave.
13984
13985 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13986
13987         * arm-tdep.c (arm_call_dummy_words): Define.
13988         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13989         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13990         (CALL_DUMMY_WORDS): Define.
13991         (arm_call_dummy_words): Declare.
13992         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13993         (arm_linux_call_dummy_words): Declare.
13994
13995 2002-01-30  Andreas Schwab  <schwab@suse.de>
13996
13997         * m68klinux-nat.c: Fix last change to use regcache_collect
13998         instead of referencing registers[] directly.
13999
14000 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14001
14002         * parse.c (target_map_name_to_register): Delete code wrapped in
14003         #ifdef REGISTER_NAME_ALIAS_HOOK.
14004
14005 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14006
14007         * regcache.c (legacy_read_register_gen): Need to be able to
14008         read pseudo-register as well as real register.
14009         (legacy_write_register_gen): Ditto.
14010
14011 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14012
14013         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14014         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14015         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14016         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14017         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14018         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14019         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14020         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14021         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14022         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14023         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14024         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14025         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14026         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14027         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14028         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14029         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14030         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14031         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14032         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14033
14034 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14035
14036         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14037         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14038         (initialize_current_architecture): Update target_byte_order using
14039         information from BFD.
14040         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14041         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14042
14043 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14044
14045         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14046         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14047
14048         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14049         #ifdef INVALID_FLOAT.
14050         * infcmd.c (do_registers_info): Ditto.
14051         * values.c (unpack_double): Ditto.  Add comment.
14052
14053         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14054         already commented out.
14055
14056 2002-01-26  Andreas Schwab  <schwab@suse.de>
14057
14058         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14059         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14060         registers and add support for PTRACE_GETREGS.
14061
14062 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14063
14064         GDB 5.1.1 released from 5.1 branch.
14065         * NEWS: Add 5.1.1 news.
14066         * README: Sync with 5.1 branch.
14067
14068 2002-01-23  Fred Fish  <fnf@redhat.com>
14069
14070         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14071         stabstring on initial malloc.  Reallocing will copy it for us,
14072         if necessary.
14073
14074 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14075
14076         * Makefile.in (hpread_h): Delete.
14077         (HFILES_NO_SRCDIR): Remove hpread.h.
14078         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14079         (hpread.o): Update dependencies.
14080         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14081
14082         * hp-psymtab-read.c: Remove file.
14083         * hp-symtab-read.c: Remove file.
14084         * hpread.h: Remove file.
14085
14086         * hpread.c: Merge all contents of hp-psymtab-read.c,
14087         hp-symtab-read.c and hpread.h into this file, as it was prior to
14088         January 1999.
14089
14090         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14091         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14092         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14093         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14094
14095 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14096
14097         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14098         fill_gregset): Call gdbarch_tdep() just once, assign result to
14099         variable and use that, instead of calling the function several
14100         times.
14101
14102 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14103
14104         * configure.host: Accept sparcv9 as alias for sparc64.
14105         * configure.tgt: Likewise.
14106
14107 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14108
14109         * solib-aix5.c (build_so_list_from_mapfile)
14110         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14111         arguments is not reversed.
14112         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14113         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14114
14115 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14116
14117         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14118         modified version of obsolete sh_fetch_pseudo_register.
14119         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14120         (sh4_register_read): New function.
14121         (sh_pseudo_register_write): New function. Renamed and modified
14122         version of obsolete sh_store_pseudo_register.
14123         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14124         (sh4_register_write): New function.
14125         (sh_gdbarch_init): Remove setting of gdbarch function
14126         fetch_pseudo_register and store_pseudo_register. Remove setting of
14127         register_convert_to_raw, register_convert_to_virtual,
14128         register_convertible.
14129         (sh_sh4_register_convertible): Delete. No longer needed. All is
14130         taken care by architecture specific functions
14131         register_read/register_write.
14132         (sh_sh4_register_convert_to_virtual): Make static.
14133         (sh_sh4_register_convert_to_raw): Ditto.
14134
14135 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14136
14137         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14138         (floatformat_is_nan, floatformat_mantissa): Ditto.
14139
14140         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14141         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14142         builtin_type_ieee_double_little,
14143         builtin_type_ieee_double_littlebyte_bigword,
14144         builtin_type_m68881_ext, builtin_type_i960_ext,
14145         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14146         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14147         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14148         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14149
14150 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14151
14152         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14153         parameter.  Set frameless flag if it exists and depended of
14154         whether the scanned function is frameless or not.
14155         (xstormy16_skip_prologue): If function is frameless, return
14156         result of xstormy16_scan_prologue().
14157         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14158         call.
14159
14160 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14161
14162         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14163         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14164         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14165         sh_sh4_register_byte, sh_sh4_register_raw_size,
14166         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14167         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14168         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14169         sh_store_pseudo_register, sh_do_pseudo_register): Call
14170         gdbarch_tdep() just once, assign result to variable and use that,
14171         instead of calling the function several times.
14172
14173 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14174
14175         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14176         macros instead of LAST_FPU_CTRL_REGNUM.
14177         (store_register): Likewise.
14178
14179 2002-01-21  Jim Blandy  <jimb@redhat.com>
14180
14181         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14182         is up-to-date before running the program, not just when a program
14183         exits.
14184
14185 2002-01-21  Fred Fish  <fnf@redhat.com>
14186
14187         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14188         when we have found all instructions we are looking for.
14189
14190 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14191
14192         * arm-tdep.c (arm_register_name): New function.
14193         (arm_registers_names): Make static.
14194         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14195         (arm_register_name): Declare.
14196         (REGISTER_NAME): Use it.
14197
14198 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14199             Kevin Buettner  <kevinb@redhat.com>
14200
14201         Convert arm targets to new FRAME interface.
14202         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14203         (arm_frame_find_save_regs): Delete.
14204         (arm_frame_init_saved_regs): New.
14205         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14206         Allocate extra_info as required.  Convert all uses of fsr.regs
14207         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14208         to use extra_info.
14209         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14210         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14211         (check_prologue_cache, save_prologue_cache): Likewise.
14212         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14213         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14214         (FRAME_FIND_SAVED_REGS): Delete.
14215         (arm_frame_find_saved_regs): Delete prototype.
14216         (arm_frame_init_saved_regs): New prototype.
14217         (FRAME_INIT_SAVED_REGS): Define.
14218
14219 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14220
14221         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14222
14223 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14224
14225         From Jeff Law <law@redhat.com>:
14226         * infttrace.c: Include <sys/pstat.h>.
14227         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14228         exec file if the ttrace equivalent fails.
14229
14230 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14231
14232         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14233         (closeLogFile): Ditto.
14234
14235 2002-01-20  Michael Chastain  <mec@shout.net>
14236
14237         * top.c (print_gdb_version): Bump copyright year to 2002.
14238
14239 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14240
14241         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14242         Zannoni and Eli Zaretskii.
14243
14244 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14245
14246         * buildsym.c: Update copyright years.
14247         * c-typeprint.c: Likewise.
14248         * dwarf2read.c: Likewise.
14249         * f-typeprint.c: Likewise.
14250         * gdbtypes.c: Likewise.
14251         * gdbtypes.h: Likewise.
14252         * hp-symtab-read.c: Likewise.
14253         * hpread.c: Likewise.
14254         * mdebugread.c: Likewise.
14255         * p-typeprint.c: Likewise.
14256
14257 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14258
14259         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14260         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14261         byte-order selectable.
14262         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14263         * arch-utils.c: Ditto.
14264         (set_endian): Ditto.
14265         (set_endian_from_file): Ditto.
14266         * gdbserver/low-sim.c (create_inferior): Ditto.
14267         * gdbarch.sh: Ditto.
14268         * gdbarch.h: Re-generate.
14269         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14270         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14271         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14272         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14273         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14274         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14275         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14276         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14277         macro definition.
14278         * config/mips/tm-wince.h: Remove #undef of macro
14279         TARGET_BYTE_ORDER_SELECTABLE.
14280         * config/sh/tm-wince.h: Ditto.
14281
14282 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14283
14284         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14285         member function fields.  Add accessor macro
14286         TYPE_FN_FIELD_ARTIFICIAL.
14287         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14288         * c-typeprint.c (c_type_print_base): Skip artificial member
14289         functions.
14290
14291 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14292
14293         * f-typeprint.c: Delete unused function f_type_print_args.
14294         * p-typeprint.c: Delete unused function pascal_type_print_args.
14295
14296 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14297
14298         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14299         comment.  Add ``artificial'' to ``union field_location''.
14300
14301         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14302
14303         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14304         * mdebugread.c (parse_symbol): Likewise.
14305         * stabsread.c (define_symbol): Likewise.
14306         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14307         initializing TYPE_FIELD_BITPOS to n (obsolete).
14308         (hpread_doc_function_type): Likewise.
14309         * hpread.c (hpread_function_type): Likewise.
14310
14311 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14312
14313         * configure.in (host_makefile_frag): Only require a host makefile
14314         fragment when a native build.
14315         * configure: Re-generate.
14316
14317 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14318
14319         * doublest.h (floatformat_from_type): Declare.
14320         * doublest.c (floatformat_from_type): New function.
14321         (convert_typed_floating): Use.
14322
14323         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14324         call to function floatformat_from_type.
14325
14326         * gdbarch.sh (IEEE_FLOAT): Delete.
14327         * gdbarch.h, gdbarch.c: Re-generate.
14328         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14329         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14330         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14331         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14332         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14333         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14334         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14335         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14336         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14337         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14338         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14339         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14340
14341         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14342         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14343         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14344         * sh-tdep.c (sh_gdbarch_init): Ditto.
14345         * mips-tdep.c (mips_gdbarch_init): Ditto.
14346         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14347         * cris-tdep.c (cris_gdbarch_init): Ditto.
14348
14349 2002-01-20  Jiri Smid  <smid@suse.cz>
14350
14351         * configure.host, configure.tgt: Support x86-64.
14352         * NEWS: Note new target x86-64.
14353
14354         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14355         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14356         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14357         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14358         x86-64-linux-nat.o): Fix dependencies.
14359
14360 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14361
14362         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14363         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14364         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14365         * config/sparc/xm-sun4os4.h: Delete file.
14366         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14367
14368 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14369
14370         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14371         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14372         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14373         * config/i386/i386lynx.mh (XM_FILE): Delete.
14374         * config/rs6000/xm-rs6000ly.h: Delete file.
14375         * config/sparc/xm-sparclynx.h: Delete file.
14376         * config/m68k/xm-m68klynx.h: Delete file.
14377         * config/i386/xm-i386lynx.h: Delete file.
14378         * config/xm-lynx.h: Delete file.
14379         * config/djgpp/fnchange.lst: Update.
14380
14381 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14382
14383         * alpha-tdep.c (alpha_register_byte): New function.
14384         (alpha_register_raw_size): Ditto.
14385         (alpha_register_virtual_size): Ditto.
14386         (alpha_skip_prologue_internal): Renamed from
14387         alpha_skip_prologue.
14388         (alpha_skip_prologue): New version that calls
14389         alpha_skip_prologue_internal.
14390         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14391         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14392         second argument from alpha_skip_prologue.
14393         (REGISTER_BYTE): Use alpha_register_byte.
14394         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14395         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14396         (FRAMELESS_FUNCTION_INVOCATION): Use
14397         generic_frameless_function_invocation_not.
14398         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14399         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14400
14401 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14402
14403         * config/mips/xm-news-mips.h: Delete file.
14404         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14405
14406         * config/m88k/xm-m88k.h: Delete file.
14407         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14408         * config/m88k/xm-delta88v4.h: Ditto.
14409         * config/m88k/xm-delta88.h: Ditto.
14410
14411         * config/alpha/xm-fbsd.h: Delete file.
14412         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14413
14414         * config/sparc/xm-sparc.h: Delete file.
14415         * Makefile.in (xm-sun4os4.h): Delete dependency.
14416         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14417         * config/sparc/xm-sun4os4.h: Ditto.
14418         * config/sparc/xm-linux.h: Ditto.
14419
14420         * config/i386/xm-windows.h: Delete file.
14421
14422 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14423
14424         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14425         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14426
14427 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14428
14429         * alpha-tdep.c (alpha_call_dummy_words): New.
14430         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14431         (CALL_DUMMY_P): Define.
14432         (CALL_DUMMY_WORDS): Define.
14433         (SIZEOF_CALL_DUMMY_WORDS): Define.
14434
14435 2002-01-19  Per Bothner  <per@bothner.com>
14436
14437         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14438         isn't NULL, which can happen with some gcj-3.x-produced code.
14439
14440 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14441
14442         * alpha-tdep.c (alpha_register_virtual_type): New function.
14443         (alpha_init_frame_pc_first): Ditto.
14444         (alpha_fix_call_dummy): Ditto.
14445         (alpha_store_struct_return): Ditto.
14446         (alpha_extract_struct_value_address): Ditto.
14447         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14448         alpha_register_virtual_type.
14449         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14450         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14451         alpha_extract_struct_value_address.
14452         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14453         (INIT_FRAME_PC): Use init_frame_pc_noop.
14454         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14455
14456 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14457
14458         * i386gnu-nat.c: Include "i386-tdep.h".
14459         (fetch_fpregs): Simplify code dealing with uninitialized floating
14460         point states such that it doesn't require FP7_REGNUM.
14461
14462 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14463
14464         * alpha-tdep.c (frame_extra_info): New.
14465         (alpha_find_saved_regs): Make static.  Use
14466         frame->extra_info.
14467         (alpha_frame_init_saved_regs): New function.
14468         (alpha_frame_saved_pc): Use frame->extra_info.
14469         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14470         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14471         (init_extra_frame_info): Rename to...
14472         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14473         (alpha_print_extra_frame_info): New function.
14474         (alpha_frame_locals_address): Ditto.
14475         (alpha_frame_args_address): Ditto.
14476         (alpha_pop_frame): Use frame->extra_info.
14477         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14478         alpha_frame_args_address.
14479         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14480         (alpha_find_saved_regs): Remove prototype.
14481         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14482         (EXTRA_FRAME_INFO): Remove.
14483         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14484         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14485
14486 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14487
14488         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14489         (alpha_cannot_fetch_register): Ditto.
14490         (alpha_cannot_store_register): Ditto.
14491         (alpha_register_convertible): Ditto.
14492         (alpha_use_struct_convention): Ditto.
14493         * config/alpha/tm-alpha.h: Update copyright years.
14494         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14495         (INNER_THAN): Use core_addr_lessthan.
14496         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14497         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14498         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14499         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14500         (FRAME_CHAIN): Remove unnecessary cast.
14501
14502 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14503
14504         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14505         obsolete.
14506
14507 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14508
14509         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14510         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14511         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14512         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14513         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14514         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14515         * x86-64-linux-nat.c: Ditto.
14516
14517 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14518
14519         * alpha-tdep.c (alpha_register_name): New function.
14520         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14521         (REGISTER_NAME): Define.
14522
14523 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14524
14525         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14526
14527 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14528
14529         * alpha-tdep.c: Update copyright years.
14530         (alpha_next_pc): New function.
14531         (alpha_software_single_step): Ditto.
14532         * config/alpha/tm-alpha.h: Add prototype for
14533         alpha_software_single_step.
14534
14535 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14536
14537         * alphabsd-nat.c: Update copyright years.
14538         (fill_gregset): Use regcache_collect.
14539         (fill_fpregset): Likewise.
14540         (fetch_inferior_registers): Only fetch integer registers
14541         if requested to do so.
14542         (store_inferior_registers): Only store integer registers
14543         if requested to do so.
14544
14545 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14546
14547         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14548         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14549         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14550         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14551         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14552         * config/arm/linux.mh (XDEPFILES): Delete.
14553         * config/arm/nbsd.mh (XDEPFILES): Delete.
14554         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14555         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14556         * config/i386/i386m3.mh (XDEPFILES): Delete.
14557         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14558         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14559         * config/i386/fbsd.mh (XDEPFILES): Delete.
14560         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14561         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14562         * config/i386/i386v4.mh (XDEPFILES): Delete.
14563         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14564         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14565         * config/i386/i386aix.mh (XDEPFILES): Delete.
14566         * config/i386/go32.mh (XDEPFILES): Delete.
14567         * config/i386/cygwin.mh (XDEPFILES): Delete.
14568         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14569         * config/i386/i386mach.mh (XDEPFILES): Delete.
14570         * config/i386/i386v32.mh (XDEPFILES): Delete.
14571         * config/i386/linux.mh (XDEPFILES): Delete.
14572         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14573         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14574         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14575         * config/i386/i386sco.mh (XDEPFILES): Delete.
14576         * config/i386/i386v.mh (XDEPFILES): Delete.
14577         * config/i386/nbsd.mh (XDEPFILES): Delete.
14578         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14579         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14580         * config/i386/symmetry.mh (XDEPFILES): Delete.
14581         * config/i386/obsd.mh (XDEPFILES): Delete.
14582         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14583         * config/ia64/linux.mh (XDEPFILES): Delete.
14584         * config/ia64/aix.mh (XDEPFILES): Delete.
14585         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14586         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14587         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14588         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14589         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14590         * config/m68k/linux.mh (XDEPFILES): Delete.
14591         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14592         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14593         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14594         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14595         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14596         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14597         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14598         * config/m88k/delta88.mh (XDEPFILES): Delete.
14599         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14600         * config/m88k/m88k.mh (XDEPFILES): Delete.
14601         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14602         * config/mips/linux.mh (XDEPFILES): Delete.
14603         * config/mips/irix6.mh (XDEPFILES): Delete.
14604         * config/mips/irix5.mh (XDEPFILES): Delete.
14605         * config/mips/irix4.mh (XDEPFILES): Delete.
14606         * config/mips/irix3.mh (XDEPFILES): Delete.
14607         * config/mips/decstation.mh (XDEPFILES): Delete.
14608         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14609         (NATDEPFILES): Move core-aout.o to here.
14610         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14611         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14612         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14613         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14614         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14615         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14616         * config/pa/hpux11.mh (XDEPFILES): Delete.
14617         * config/powerpc/aix.mh (XDEPFILES): Delete.
14618         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14619         * config/powerpc/linux.mh (XDEPFILES): Delete.
14620         * config/romp/rtbsd.mh: Rename XDEPFILES.
14621         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14622         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14623         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14624         * config/s390/s390.mh (XDEPFILES): Delete.
14625         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14626         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14627         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14628         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14629         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14630         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14631         * config/sparc/linux.mh (XDEPFILES): Delete.
14632         * config/vax/vaxult.mh (XDEPFILES): Delete.
14633         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14634         * Makefile.in (DEPFILES): Remove XDEPFILES.
14635
14636 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14637
14638         * utils.c (internal_verror): Fix comments, default is yes not no.
14639         Update queries to match.  Default to quit and dump core.
14640
14641 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14642
14643         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14644         copyright.
14645         * defs.h, event-top.c, gdbcmd.h: Ditto.
14646         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14647         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14648         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14649         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14650         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14651         * mi/mi-main.c:Ditto.
14652
14653         * stack.c, symfile.c: Update copyright.
14654
14655 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14656
14657         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14658         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14659         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14660         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14661
14662 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14663
14664         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14665         * gdbserver/low-lynx.c (myattach): Likewise.
14666         * gdbserver/low-nbsd.c (myattach): Likewise.
14667         * gdbserver/low-sim.c (myattach): Likewise.
14668         * gdbserver/low-sparc.c (myattach): Likewise.
14669         * gdbserver/low-sun3.c (myattach): Likewise.
14670
14671         * gdbserver/low-linux.c (myattach): New function.
14672
14673         * gdbserver/server.c (attach_inferior): New function.
14674         (main): Handle "--attach".
14675
14676 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14677
14678         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14679         maintainer.
14680
14681 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14682
14683         * c-typeprint.c (is_type_conversion_operator): Add additional
14684         check for non-conversion operators.
14685
14686 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14687
14688         * linux-proc.c: Add "info proc" command, a la procfs.c.
14689         (read_mapping): New function, abstract and re-use code.
14690         (linux_find_memory_regions): Use new func read_mapping.
14691         (linux_info_proc_cmd): New function, implement "info proc".
14692         (_initialize_linux_proc): Add new command "info proc".
14693
14694 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14695
14696         * symfile.c (generic_load): Use bfd_map_over_sections method
14697         instead of manipulating bfd structure members directly.
14698         (add_section_size_callback): New function, bfd sections callback
14699         used by generic_load.
14700         (load_sections_callback): New function, bfd sections callback
14701         used by generic_load.
14702
14703 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14704
14705         [Based on work by Jim Blandy]
14706         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14707         (builtin_type_vec128): Export.
14708         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14709         types.
14710         (builtin_type_vec128): New builtin type for 128 bit vector
14711         registers.
14712         (build_gdbtypes): Initialize builtin_type_v16qi and
14713         builtin_type_v8hi. Create the vec128 register builtin type
14714         structure.
14715         (build_builtin_type_vec128): New function.
14716         (_initialize_gdbtypes): Register builtin_type_v16qi and
14717         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14718         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14719         AltiVec register to new builtin type.
14720
14721 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14722
14723         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14724         to make_cv_type.
14725
14726 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14727
14728         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14729         CLEAN_UP_REGISTER_VALUE.
14730         * regcache.c (supply_register): Update only call.
14731
14732 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14733
14734         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14735         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14736         a29k-*-vxworks* targets as obsolete.
14737
14738 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14739
14740         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14741         until we can resolve portability issues.
14742         * gregset.h: Remove references to fpxregs.
14743         * gcore.c (gcore_command): Initialize note_sec to NULL.
14744
14745 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14746
14747         * signals.c (target_signal_to_name): Rewrite.  Only use
14748         signals[].name when in bounds and non-NULL.
14749
14750 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14751
14752         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14753         * signals.c (target_signal_to_name): Verify that SIG is within the
14754         bounds of the signals array.
14755
14756 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14757
14758         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14759
14760 2002-01-13  Keith Seitz  <keiths@redhat.com>
14761
14762         * stack.c (print_frame_info_base): Print the frame's pc
14763         only if when print_frame_info_listing_hook is not defined.
14764
14765 2002-01-13  Keith Seitz  <keiths@redhat.com>
14766
14767         * varobj.c (varobj_set_value): Make sure that there were no
14768         errors evaluating the object before attempting to set its
14769         value.
14770         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14771         so this offset adjustment is no longer necessary.
14772         (create_child): Don't set the error flag if the child is
14773         a CPLUS_FAKE_CHILD.
14774         (value_of_child): If value_fetch_lazy fails, return NULL
14775         so that callers will be notified that an error occurred.
14776         (c_value_of_variable): Delay check of variable's validity
14777         until later. We actually want all structs and unions to have
14778         the value "{...}".
14779         Do not return "???" for variables which could not be evaluated.
14780         This error condition must be returned to the caller so that it
14781         can get the error condition from gdb.
14782         (cplus_name_of_child): Adjust index for vptr before figuring
14783         out the name of the child.
14784         (cplus_value_of_child): If a child's (real) parent is not valid,
14785         don't even bother trying to give a value for it. Just return
14786         an error. Change all instances in this function.
14787         (cplus_type_of_child): If our parent is one of the "fake"
14788         parents, we need to get at the type of the real parent, and
14789         derive the child's true type using this information.
14790
14791 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14792
14793         From 2002-01-09 John Marshall <johnm@falch.net>:
14794         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14795         sources.redhat.com, and tweak some related URLs which had
14796         suffered from linkrot.
14797
14798 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14799
14800         From Jeff law:
14801         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14802         structures passed in registers.
14803
14804 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14805
14806         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14807         white space which prevented compilation.  Reported by DSK
14808         <dsk@student.unsw.edu.au>.
14809
14810 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14811
14812         * symfile.c (build_section_addr_info_from_section_tab):
14813         Use bfd access method instead of manipulating bfd directly.
14814         (syms_from_objfile): Ditto.
14815         (simple_overlay_update_1): Ditto.
14816         (simple_overlay_update): Ditto.
14817         (generic_load): Ditto.
14818         (overlay_unmapped_address): FIXME comment, bfd access methods.
14819         (sections_overlap): FIXME comment, bfd access methods.
14820         (pc_in_mapped_range): FIXME comment, bfd access methods.
14821         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14822         (section_is_mapped): FIXME comment, bfd access methods.
14823         (section_is_overlay): FIXME comment, bfd access methods.
14824
14825         * symfile.c (generic_load): Whitespace and long line cleanups.
14826         Remove duplicate variable, change several local variables to
14827         more appropriate data types.
14828         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14829
14830 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14831
14832         From Peter Schauer:
14833         * language.c (longest_local_hex_string_custom): Use phex_nz to
14834         convert NUM to a hex string.
14835
14836 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14837
14838         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14839         the function.
14840         Update Copyright year.
14841
14842 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14843
14844         * language.c (longest_raw_hex_string): Delete unused function.
14845
14846 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14847
14848         * MAINTAINERS (write-after-approval): Add myself.
14849         * dwarf2read.c (read_tag_string_type): Handling of
14850         DW_AT_byte_size.
14851         (read_tag_string_type): FORTRAN fix to prevent propagation of
14852         first string size.
14853         (set_cu_language): Handling of DW_LANG_Fortran95
14854
14855 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14856
14857         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14858         GETPID(inferior_ptid).
14859         (store_inferior_registers): Likewise.
14860
14861 2002-01-10  Jason Merrill  <jason@redhat.com>
14862
14863         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14864         Fix DW_OP_minus.
14865
14866 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14867
14868         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14869         and bfd/elf32-sh-nbsd.c.
14870
14871 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14872
14873         * NEWS: Mention --pid and corefile/proc-id behavior change.
14874
14875         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14876         * gcore.c: Include cli/cli-decode.h instead of command.h.
14877
14878         * main.c (captured_main): Add new command line option "--pid".
14879         If the second command line argument (following the symbol-file)
14880         begins with a digit, try to attach to it before trying to open
14881         it as a corefile.
14882         (print_gdb_help): Document the "--pid" argument.
14883
14884 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14885
14886         * completer.c (command_completer): New function.
14887
14888         * completer.h <command_completer>: Add prototype.
14889
14890         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14891         completer for the "help" command.
14892
14893 2002-01-09  Jason Merrill  <jason@redhat.com>
14894
14895         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14896
14897 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14898
14899         * i386-linux-nat.c (fill_fpxregset): Make global.
14900         (store_fpxregset): Ditto.
14901
14902         * gregset.h (gdb_fpxregset_t): Define.
14903         (supply_fpxregset): Prototype.
14904         (fill_fpxregset): Prototype.
14905
14906         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14907
14908 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14909
14910         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14911         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14912         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14913
14914 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14915
14916         * MAINTAINERS: Update target maintainer rules so that any
14917         Maintainer can approve a tested patch for a maintenance-only
14918         target.
14919
14920 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14921
14922         * MAINTAINERS (write-after-approval): Add myself.
14923
14924         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14925         IN_SIGTRAMP.
14926
14927 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14928
14929         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14930         real name of the executable, rather than the /proc name.
14931
14932 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14933
14934         Implement a "generate-core-file" command in gdb, save target state.
14935         * gcore.c: New file.  Implement new command 'generate-core-file'.
14936         Save a corefile image of the current state of the inferior.
14937         * linux-proc.c: Add linux-specific code for saving corefiles.
14938         * target.h (struct target_ops): Add new target vectors for saving
14939         corefiles; to_find_memory_regions and to_make_corefile_notes.
14940         (target_find_memory_regions): New macro.
14941         (target_make_corefile_notes): New macro.
14942         * target.c (update_current_target): Inherit new target methods.
14943         (dummy_find_memory_regions): New place-holder method.
14944         (dummy_make_corefile_notes): New place-holder method.
14945         (init_dummy_target): Initialize new dummy target vectors.
14946         * exec.c (exec_set_find_memory_regions): New function.
14947         Allow the exec_ops vector for memory regions to be taken over.
14948         (exec_make_note_section): New function, target vector method.
14949         * defs.h (exec_set_find_memory_regions): Export prototype.
14950         * procfs.c (proc_find_memory_regions): New function, corefile method.
14951         (procfs_make_note_section): New function, corefile method.
14952         (init_procfs_ops): Set new target vector pointers.
14953         (find_memory_regions_callback): New function.
14954         (procfs_do_thread_registers): New function.
14955         (procfs_corefile_thread_callback): New function.
14956         * sol-thread.c (sol_find_memory_regions): New function.
14957         (sol_make_note_section): New function.
14958         (init_sol_thread_ops): Initialize new target vectors.
14959         * inftarg.c (inftarg_set_find_memory_regions): New function.
14960         Allow to_find_memory_regions vector to be taken over.
14961         (inftarg_set_make_corefile_notes): New function.
14962         Allow to_make_corefile_notes vector to be taken over.
14963         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14964         interface layer if not target_has_execution (may be a corefile).
14965         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14966         * config/sparc/sun4sol2.mh: Ditto.
14967         * config/alpha/alpha-linux.mh: Ditto.
14968         * config/arm/linux.mh: Ditto.
14969         * config/i386/x86-64linux.mh: Ditto.
14970         * config/ia64/linux.mh: Ditto.
14971         * config/m68k/linux.mh: Ditto.
14972         * config/mips/linux.mh: Ditto.
14973         * config/powerpc/linux.mh: Ditto.
14974         * config/sparc/linux.mh: Ditto.
14975
14976 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14977
14978         * arm-linux-nat.c: Remove references to regcache.c internal data
14979         (registers[] and register_valid[]).
14980
14981 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14982
14983         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14984         so that attaching to a pid will automatically read the process's
14985         symbol file and shlibs.
14986         * Makefile.in: Add rule for linux-proc.o.
14987         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14988         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14989         * config/arm/linux.mh: Ditto.
14990         * config/i386/linux.mh: Ditto.
14991         * config/i386/x86-64linux.mh: Ditto.
14992         * config/ia64/linux.mh: Ditto.
14993         * config/m68k/linux.mh: Ditto.
14994         * config/mips/linux.mh: Ditto.
14995         * config/powerpc/linux.mh: Ditto.
14996         * config/sparc/linux.mh: Ditto.
14997
14998 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14999
15000         * win32-nat.c: Add i386-tdep.h dependency.
15001
15002 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15003
15004         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15005         instead of bfd_get_arch_size.  Don't bail out just because
15006         there's no exec_bfd.
15007
15008         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15009         * p-valprint.c (pascal_object_print_value): Ditto.
15010         * somread.c (som_symtab_read): Ditto.
15011         * symfile.c (simple_free_overlay_region_table): Ditto.
15012         * valops.c (value_assign): Ditto.
15013
15014         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15015         use tilde_expand and strerror for opening save-tracepoints file.
15016
15017         * thread-db.c (thread_db_new_objfile): Indendation fix.
15018
15019         * infptrace.c (GDB_MAX_ALLOCA): New define.
15020         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15021         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15022         can be overridden with whatever value is appropriate to the host).
15023         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15024         alloca to allocate potentially large buffer.
15025         * rs6000-nat.c (child_xfer_memory): Ditto.
15026         * symm-nat.c (child_xfer_memory): Ditto.
15027         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15028
15029 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15030
15031         From Nick Clifton  <nickc@redhat.com>
15032         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15033
15034 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15035
15036         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15037         Don't use exec_bfd if it's NULL.
15038
15039 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15040
15041         * valops.c (value_arg_coerce): Fix formatting.
15042
15043 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15044
15045         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15046         * gnu-nat.c: Ditto.
15047
15048 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15049
15050         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15051         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15052         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15053         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15054         z8k-coff have not been multi-arched.  Update z8k-coff build
15055         status.
15056
15057 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15058
15059         * MAINTAINERS: Mark a29k target as obsolete.
15060         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15061         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15062         comments.
15063         * NEWS: Note that a29k targets are obsolete.
15064         * a29k-tdep.c: Mark as obsolete.
15065         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15066         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15067         a29k-*-vxworks* targets as obsolete.
15068         * remote-adapt.c: Obsolete.
15069         * remote-eb.c: Obsolete.
15070         * remote-mm.c: Obsolete.
15071         * remote-udi.c: Obsolete.
15072         * config/a29k/a29k-udi.mt: Obsolete.
15073         * config/a29k/a29k.mt: Obsolete.
15074         * config/a29k/tm-a29k.h: Obsolete.
15075         * config/a29k/tm-vx29k.h: Obsolete.
15076         * config/a29k/vx29k.mt: Obsolete.
15077
15078 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15079
15080         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15081         with BFD_ENDIAN_BIG.
15082
15083 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15084
15085         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15086         * configure, config.in: Re-generate.
15087         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15088         * defs.h: Do not include <endian.h>.
15089
15090 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15091
15092         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15093         * config.in: Regenerate.
15094         * configure.in: Update copyright years.
15095         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15096         * configure: Regenerate.
15097         * i386bsd-nat.c: Update copyright years.
15098         (fill_gregset): Use regcache_collect.
15099         (fetch_inferior_registers): Only fetch integer registers
15100         if requested to do so.  Add support for XMM registers
15101         using PT_GETXMMREGS.
15102         (store_inferior_registers): Only store integer registers
15103         if requested to do so.  Add support for XMM registers
15104         using PT_SETXMMREGS.
15105         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15106         (store_inferior_registers): Remove.
15107         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15108         (fetch_elfcore_registers): New function.
15109         (i386nbsd_elfcore_fns): New.
15110         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15111         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15112         i386bsd-nat.o.
15113         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15114         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15115         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15116         * config/i386/tm-nbsd.h: Update copyright years.
15117         (HAVE_SSE_REGS): Define.
15118         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15119         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15120         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15121         (SIGCONTEXT_PC_OFFSET): Remove.
15122         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15123
15124 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15125
15126         * configure.tgt: Remove powerpc-*-macos* target.
15127         * config/m68k/xm-mpw.h: Delete file.
15128         * config/xm-mpw.h: Delete file.
15129         * ser-mac.c: Delete file.
15130         * mpw-make.sed: Delete file.
15131         * mpw-config.in: Delete file.
15132         * mac-xdep.c: Delete file.
15133         * mac-gdb.r: Delete file.
15134         * mac-defs.h: Delete file.
15135         * mac-nat.c: Delete file.
15136         * config/powerpc/macos.mh: Delete file.
15137         * config/powerpc/macos.mt: Delete file.
15138         * config/powerpc/nm-macos.h: Delete file.
15139         * config/powerpc/tm-macos.h: Delete file.
15140         * source.c (openp, open_source_file): Remove obsolete code.
15141         * top.c (gdb_readline): Ditto.
15142         * utils.c (query): Ditto.
15143         * event-top.c (display_gdb_prompt): Ditto.
15144         * Makefile.in (ser-mac.o): Delete obsolete target.
15145         * NEWS: Update.
15146
15147 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15148
15149         * defs.h (BIG_ENDIAN): Delete macro definition.
15150         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15151         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15152         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15153         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15154         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15155         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15156         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15157         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15158         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15159         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15160         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15161         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15162         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15163         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15164         * gdbarch.c: Re-generate.
15165
15166 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15167
15168         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15169         for core files.
15170
15171 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15172
15173         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15174
15175 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15176
15177         * value.h (value_ptr): Delete typedef.
15178
15179 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15180
15181         * i386nbsd-nat.c: Update copyright years.
15182         Include i386-tdep.h.
15183
15184 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15185
15186         * stabsread.c: Update copyright years.
15187
15188         From Debashis Mahata <debashis.mahata@wipro.com>:
15189         (read_struct_fields): Deal with Sun C compiler erroneous stab
15190         output for structs and unions.
15191         Fix PR gdb/269.
15192
15193 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15194
15195         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15196         prototype.
15197
15198 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15199
15200         * cp-abi.c: Fix whitespace.
15201         (baseclass_offset): New wrapper function.
15202         * cp-abi.h (baseclass_offset): Add prototype.
15203         (struct cp_abi_ops): Add baseclass_offset pointer.
15204
15205         * valops.c (vb_match): Move to...
15206         * gnu-v2-abi.c (vb_match): here.
15207         * valops.c (baseclass_offset): Move to...
15208         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15209
15210         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15211
15212         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15213         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15214         * hpacc-abi.c (init_hpacc_ops): Likewise.
15215
15216 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15217
15218         * valops.c (find_overload_match): Accept obj as a
15219         reference parameter.  Update it before returning.
15220         * value.h (find_overload_match): Update prototype.
15221         * eval.c (evaluate_subexp_standard): Pass object to
15222         find_overload_match by reference.
15223
15224 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15225
15226         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15227         register attribute from value declarations.
15228         * valops.c: Ditto.
15229         * value.h: Ditto.
15230         * scm-lang.c (scm_lookup_name): Ditto.
15231
15232 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15233
15234         Abstract the functionality of iterating over mapped memory
15235         regions into a general purpose iterator function.
15236         * procfs.c (iterate_over_mappings): New function, general purpose
15237         iterator for memory sections.
15238         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15239         (solib_mappings_callback): New function, callback for above.
15240         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15241         (info_mappings_callback): New function, callback for above.
15242
15243         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15244
15245 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15246
15247         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15248         * i386-tdep.c: Include "elf-bfd.h".
15249         (process_note_abi_tag_sections): New function.
15250         (i386_gdbarch_init): Add code to recognize various OS/ABI
15251         combinations.
15252
15253         * maint.c (_initialize_maint_cmds): Add missing \ in
15254         string-literal.
15255
15256 For older changes see ChangeLog-2001
15257 \f
15258 Local Variables:
15259 mode: change-log
15260 left-margin: 8
15261 fill-column: 74
15262 version-control: never
15263 End: