* arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
2
3         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
4         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6
7         * blockframe.c: Include "gdbcmd.h" and "command.h".
8         (backtrace_below_main): New variable.
9         (file_frame_chain_valid, func_frame_chain_valid)
10         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11         (generic_func_frame_chain_valid): Remove functions.
12         (frame_chain_valid, do_flush_frames_sfunc): New functions.
13         (_initialize_blockframe): New function.
14         * Makefile.in (blockframe.o): Update dependencies.
15         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
16         comment.  Call frame_chain_valid ().
17         * frame.h: Remove old prototypes.  Add prototype for
18         frame_chain_valid and update comments to match.
19         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
20         Remove old comment.
21         * gdbarch.h: Regenerated.
22         * gdbarch.c: Regenerated.
23
24         * alpha-tdep.c (alpha_gdbarch_init): Don't call
25         set_gdbarch_frame_chain_valid.
26         * avr-tdep.c (avr_gdbarch_init): Likewise.
27         * cris-tdep.c (cris_gdbarch_init): Likewise.
28         * frv-tdep.c (frv_gdbarch_init): Likewise.
29         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
30         * i386-tdep.c (i386_svr4_init_abi): Likewise.
31         (i386_nw_init_abi): Likewise.
32         (i386_gdbarch_init): Likewise.
33         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
34         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
35         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
36         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
37         * mips-tdep.c (mips_gdbarch_init): Likewise.
38         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
39         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
40         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
41         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
42         * s390-tdep.c (s390_gdbarch_init): Likewise.
43         * sh-tdep.c (sh_gdbarch_init): Likewise.
44         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
45         * v850-tdep.c (v850_gdbarch_init): Likewise.
46         * vax-tdep.c (vax_gdbarch_init): Likewise.
47         * x86-64-tdep.c (x86_64_init_abi): Likewise.
48
49         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
50         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
51         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
52         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
53         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
54         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
55         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
56         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
57
58 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
59
60         * Makefile.in (acconfig_h): Remove incorrect macro.
61         (config_h): Define.
62         (osabi.o): Update dependencies.
63         * configure.tgt: Set gdb_osabi based on target triplet.
64         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
65         * configure: Regenerated.
66         * config.in: Regenerated.
67         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
68         (GDB_OSABI_DEFAULT): Define if not already defined.
69         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
70         (set_osabi_string): New variables.
71         (gdbarch_register_osabi): Add new OS ABI to
72         gdb_osabi_available_names.
73         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
74         (set_osabi, show_osabi): New functions.
75         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
76
77 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
78
79         * arch-utils.c (gdbarch_info_init): Set osabi to
80         GDB_OSABI_UNINITIALIZED.
81         * gdbarch.sh: Add osabi to struct gdbarch and to struct
82         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
83         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
84         * gdbarch.c: Regenerated.
85         * gdbarch.h: Regenerated.
86         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
87         there's no BFD.
88         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
89         * osabi.h (enum gdb_osabi): Move to defs.h.
90         (gdbarch_init_osabi): Update prototype.
91         * defs.h (enum gdb_osabi): Moved here.
92         * Makefile.in: Update dependencies.
93
94         * alpha-tdep.h: Don't include "osabi.h".
95         (struct gdbarch_tdep): Remove osabi member.
96         * alpha-tdep.c: Include "osabi.h".
97         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
98         iterate over arches.  Update call to gdbarch_init_osabi.
99         (alpha_dump_tdep): Don't dump osabi.
100         * alpha-linux-tdep.c: Include "osabi.h".
101         * alpha-osf1-tdep.c: Include "osabi.h".
102         * alphafbsd-tdep.c: Include "osabi.h".
103         * alphanbsd-tdep.c: Include "osabi.h".
104
105         * arm-tdep.h: Don't include "osabi.h".
106         (struct gdbarch_tdep): Remove osabi member.
107         * arm-tdep.c: Include "osabi.h".
108         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
109         iterate over arches.  Update call to gdbarch_init_osabi.
110         (arm_dump_tdep): Don't dump osabi.
111         * arm-linux-tdep.c: Include "osabi.h".
112         * armnbsd-tdep.c: Include "osabi.h".
113
114         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
115         Update call to gdbarch_init_osabi.
116
117         * i386-tdep.h: Don't include "osabi.h".
118         (struct gdbarch_tdep): Remove osabi member.
119         * i386-tdep.c: Include "osabi.h".
120         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
121         iterate over arches.  Update call to gdbarch_init_osabi.
122         (i386_dump_tdep): Don't dump osabi.
123         * i386-linux-tdep.c: Include "osabi.h".
124         * i386-sol2-tdep.c: Include "osabi.h".
125         * i386bsd-tdep.c: Include "osabi.h".
126         * i386gnu-tdep.c: Include "osabi.h".
127         * i386ly-tdep.c: Include "osabi.h".
128         * i386nbsd-tdep.c: Include "osabi.h".
129         * i386obsd-tdep.c: Include "osabi.h".
130
131         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
132         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
133         check osabi when iterating over arches.  Update call to
134         gdbarch_init_osabi.
135         (mips_dump_tdep): Don't dump osabi.
136
137         * ns32k-tdep.h: Don't include "osabi.h".
138         (struct gdbarch_tdep): Remove.
139         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
140         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
141         allocate tdep.  Update call to gdbarch_init_osabi.
142         (ns32k_dump_tdep): Remove.
143         (_initialize_ns32k_tdep): Update call to gdbarch_register.
144         * ns32knbsd-tdep.c: Include "osabi.h".
145
146         * ppc-tdep.h: Don't include "osabi.h".
147         (struct gdbarch_tdep): Remove osabi member.
148         * rs6000-tdep.c: Include "osabi.h".
149         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
150         osabi when iterating over arches.  Update call to
151         gdbarch_init_osabi.
152         (rs6000_dump_tdep): Don't dump osabi.
153         * ppc-linux-tdep.c: Include "osabi.h".
154         * ppcnbsd-tdep.c: Include "osabi.h".
155
156         * sh-tdep.h: Don't include "osabi.h".
157         (struct gdbarch_tdep): Remove osabi member.
158         * sh-tdep.c: Include "osabi.h".
159         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
160         iterate over arches.  Update call to gdbarch_init_osabi.
161         (sh_dump_tdep): Don't dump osabi.
162         * shnbsd-tdep.c: Include "osabi.h".
163
164         * sparc-tdep.c: Include "osabi.h".
165         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
166         iterate over arches.  Update call to gdbarch_init_osabi.
167         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
168         tdep structure.
169
170         * vax-tdep.h: Don't include "osabi.h".
171         (struct gdbarch_tdep): Remove.
172         * vax-tdep.c: Include "osabi.h".
173         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
174         iterate over arches.  Don't allocate tdep.  Update call
175         to gdbarch_init_osabi.
176         (vax_dump_tdep): Remove.
177         (_initialize_vax_tdep): Update call to gdbarch_register.
178
179 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
180
181         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
182         entirely.
183         (breakpoint_re_set_one): Don't fetch the value for a disabled
184         watchpoint.
185
186 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
187
188         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
189         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
190         (COERCE_FLOAT_TO_DOUBLE): Remove.
191         * gdbarch.c: Regenerate.
192         * gdbarch.h: Regenerate.
193         * Makefile.in: Remove value_h from gdbarch_h.
194         * valops.c (coerce_float_to_double): New variable.
195         (default_coerce_float_to_double): Remove.
196         (standard_coerce_float_to_double): Remove.
197         (value_arg_coerce): Use coerce_float_to_double.
198         (_initialize_valops): Add "set coerce-float-to-double".
199         * value.h (default_coerce_float_to_double): Remove prototype.
200         (standard_coerce_float_to_double): Remove prototype.
201
202         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
203         prototyped.
204         * mdebugread.c (parse_symbol): Likewise.
205         * stabsread.c (define_symbol): Mark all functions as prototyped.
206
207         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
208         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
209         set_gdbarch_coerce_float_to_double.
210         * arm-tdep.c (arm_gdbarch_init): Likewise.
211         * frv-tdep.c (frv_gdbarch_init): Likewise.
212         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
213         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
214         * mips-tdep.c (mips_gdbarch_init): Likewise.
215         (mips_coerce_float_to_double): Remove.
216         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
217         (rs6000_coerce_float_to_double): Remove.
218         * s390-tdep.c (s390_gdbarch_init): Likewise.
219         * sh-tdep.c (sh_gdbarch_init): Likewise.
220         (sh_coerce_float_to_double): Remove.
221         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
222         (sparc_coerce_float_to_double): Remove.
223         * v850-tdep.c (v850_gdbarch_init): Likewise.
224         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
225         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
226         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
227         (hppa_coerce_float_to_double): Remove prototype.
228         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
229
230 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
231
232         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
233
234 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
235
236         Suggested by Stewart Brown <sb24@avaya.com>:
237         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
238         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
239         (c_type_print_varspec_suffix): Likewise.
240
241 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
242
243         * configure.in: Don't set and AC_SUBST SUBDIRS.
244         * configure: Regenerated.
245
246         * configure.in: Remove code dealing with shared libraries.
247         * Makefile.in: Remove HLDFLAGS and HLDENV.
248         * configure: Regenerated.
249
250 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
251
252         * frame.c (deprecated_frame_xmalloc): New function.
253         (deprecated_set_frame_saved_regs_hack): New function.
254         (deprecated_set_frame_extra_info_hack): New function.
255         * frame.h (deprecated_frame_xmalloc): Declare.
256         (deprecated_set_frame_saved_regs_hack): Declare.
257         (deprecated_set_frame_extra_info_hack): Declare.
258
259 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
260
261         * configure.in: Move code that provides the --enable-gdbtk option
262         right after the code that handles the --enable-tui option, and
263         polish it somewhat.
264         * configure: Regenerated.
265
266         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
267         AC_CHECK_FUNCS and remove the old check for pread64.
268         * acinclude.m4 (AC_GNU_SOURCE): New macro.
269         * acconfig.h (_GNU_SOURCE): Add.
270         (HAVE_PREAD64): Remove.
271         * configure, aclocal.m4, config.in: Regenerated.
272
273 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
274
275         * alpha-tdep.c: Use get_frame_saved_regs.
276         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
277         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
278         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
279         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
280         * vax-tdep.c, xstormy16-tdep.c: Ditto.
281
282 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
283
284         * configure.in: Remove all use of the SUBDIRS variable; add
285         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
286         code providing the --enable-multi-ice option, and move it right in
287         front of the code that checks whether gdbserver is supported.
288         Polish that too.
289         * configure: Regenerated.
290         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
291         @SUBDIRS@.
292
293 2003-01-03  Andrew Cagney  <cagney@redhat.com>
294
295         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
296         * avr-tdep.c, cris-tdep.c: Ditto.
297         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
298         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
299         
300 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
301
302         * configure.in: Remove --enable-netrom option.
303         * configure: Regenerated.
304
305 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
306
307         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
308         declaration for `struct re_pattern_buffer' instead.
309         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
310
311 2003-01-03  J. Brobecker  <brobecker@gnat.com>
312
313         * mdebugread.c (parse_symbol): Count until the stEnd matching
314         the structure name.
315
316 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
317
318         * configure.in: Remove --with-cpu option.
319         subscripts.  Remove evil changequotes here.
320         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
321         * config.in, configure: Regenerated.
322         
323         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
324         * configure.in: Cleanup section that sources GDB and BFD configure
325         subscripts.  Remove evil changequotes here.
326         * config.in, configure: Regenerated.
327
328 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
329
330         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
331         frame accessor methods.
332         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
333         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
334         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
335         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
336         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
337         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
338         * z8k-tdep.c: Ditto.
339         
340 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
341
342         * configure.in: Remove UI_OUT configuration code.
343         * ada-lang.c: Update assuming UI_OUT is always true.
344         * Makefile.in (UIOUT_CFLAGS): Remove.
345         * configure: Regenerated.
346         * TODO: Remove blurb about elimination of -DUI_OUT.
347
348         * configure.in: Move code that provides the --enable-gdbcli,
349         --enable-gdbmi options right before the code that handles the
350         --enable-tui option.  Polish a bit.
351         * configure: Regenerated.
352
353         * configure.in: Rewrite check for GNU regex and the
354         --without-included regex option, and move it into the "Checks for
355         library functions" section.  This makes us use the system regex
356         again by default on systems with version 2 of the GNU C library.
357         This was apparently broken.
358         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
359         * acconfig.h (USE_INCLUDED_REGEX): Remove.
360         * config.in, configure: Regenerated.
361
362         * configure.in: Move code that provides the --enable-tui option
363         before the "Checks for libraries" section.  Polish the code
364         somewhat and set need_curses to yes if we build the TUI.  Rewrite
365         code that looks for a library providing termcap functionality to
366         match more closely what's done in the Readline library, and move
367         it into to the "Checks for libraries" section.
368         * configure: Regenerated.
369         * Makefile.in (TERMCAP): Remove variable.
370         * config/i386/go32.mh (TERMCAP): Remove variable.
371
372 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
373
374         * MAINTAINERS: Mention gdb_mbuild.sh.
375         * gdb_mbuild.sh: Rewrite.
376
377 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
378
379         * configure.in: Fix typo in last change.
380         * config.in, configure: Regenerated.
381
382 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
383
384         * valarith.c (value_binop): Delete obsolete code and comments.
385         * configure.host: Ditto.
386         * buildsym.h (make_blockvector): Ditto.
387         * buildsym.c (make_blockvector): Ditto.
388         * defs.h (enum language): Ditto.
389         (chill_demangle): Ditto.
390         * elfread.c (elf_symtab_read): Ditto.
391         * dwarfread.c (CHILL_PRODUCER): Ditto.
392         (set_cu_language): Ditto.
393         (handle_producer): Ditto.
394         * expprint.c (print_subexp): Ditto.
395         * gdbtypes.c (chill_varying_type): Ditto.
396         * gdbtypes.h (builtin_type_chill_bool): Ditto.
397         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
398         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
399         (chill_varying_type): Ditto.
400         * language.h (_LANG_chill): Ditto.
401         * language.c (binop_result_type, integral_type): Ditto.
402         (character_type, string_type, structured_type): Ditto.
403         (lang_bool_type, binop_type_check): Ditto.
404         * stabsread.h (os9k_stabs): Ditto.
405         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
406         (define_symbol, read_type, read_struct_fields): Ditto.
407         (read_array_type, read_enum_type, read_huge_number): Ditto.
408         (read_range_type, start_stabs): Ditto.
409         * symfile.c (init_filename_language_table): Ditto.
410         (add_psymbol_with_dem_name_to_list): Ditto.
411         * symtab.c (symbol_init_language_specific): Ditto.
412         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
413         * symtab.h (struct general_symbol_info): Ditto.
414         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
415         * typeprint.c (typedef_print): Ditto.
416         * utils.c (fprintf_symbol_filtered): Ditto.
417         * valops.c (value_cast, search_struct_field, value_slice): Delete
418         obsolete code.
419         (varying_to_slice): Delete function.
420         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
421         (varying_to_slice): Delete declaration.
422         * MAINTAINERS: Update.
423
424 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
425
426         * configure.in: Reorganize "Checks for library functions section"
427         a bit.  Remove check for `btowc' and `isascii' functions.
428         * configure: Regenerated.
429
430         * acconfig.h (_MSE_INT_H): Remove.
431         * configure.in: Create "Checks for header files" section, and move
432         appropriate tests there.  Don't check for objlist.h, wchar.h,
433         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
434         misdetection fix.  Also add "Checks for types", "Checks for
435         compiler characteristics" and "Checks for library functions"
436         sections.
437         * config.in, configure: Regenerated.
438
439         * configure.in: Create "Checks for programs" section, and move
440         appropriate tests there.
441
442 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
443
444         * configure.in: Create "Checks for libraries" section, and move
445         appropriate tests there.  Cleanup check for wctype in libw.  Use
446         AC_SEARCH_LIBS to see whether we need libsocket.
447         * configure: Regenerated.
448
449 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
450
451         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
452         * config.in, configure: Regenerated.
453
454 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
455
456         * gdb_dirent.h: Cleanup and update code to match the example in
457         the Autoconf manual.
458         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
459         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
460         * configure: Regenerated.
461
462 2002-12-30  Adam Fedor  <fedor@gnu.org>
463
464         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
465         (yylex): Initialize c to avoid uninitialized warning.
466
467 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
468
469         * doc/fdl.texi: Revert the last change.
470
471 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
472
473         * tracepoint.c (ISATTY): Removed.
474
475 2002-12-26  J. Brobecker  <brobecker@gnat.com>
476
477         Continuing work to convert the hppa targets to multiarch partil.
478
479         * hppa-tdep.c: Add some missing forward declarations.
480         (frameless_function_invocation): Prefix the function name
481         by "hppa_" to avoid polluting the namespace.  Update all calls
482         to use the new function name.
483         (saved_pc_after_call): Ditto.
484         (init_extra_frame_info): Ditto.
485         (frame_chain): Ditto.
486         (push_dummy_frame): Ditto.
487         (target_read_pc): Ditto.
488         (target_write_pc): Ditto.
489         (in_solib_call_trampoline): Ditto.
490         (in_solib_return_trampoline): Ditto.
491         (skip_trampoline_code): Ditto.
492         (hppa_read_fp): New function, renamed from target_read_fp.
493         (hppa_target_read_fp): New function, using hppa_read_fp.
494         This function conforms to the function profile for the
495         READ_FP gdbarch method.
496         (hppa_extract_struct_value_address): New function, extracted
497         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
498         macro.
499         (hppa_frame_num_args): New function.
500         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
501
502         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
503         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
504         for the switch to multiarch partial.
505         Update some of the macros definitions to match some changes
506         described above in the name of the function they are calling.
507         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
508         not be straightforward to convert. Do now wrap it inside
509         "#if !... #endif" to remember that this macro has still not
510         been taken care of.
511         (FIX_CALL_DUMMY): Likewise.
512
513 2002-12-26  J. Brobecker  <brobecker@gnat.com>
514
515         Continuing work to convert the hppa targets to multiarch partial.
516
517         * hppa-tdep.c (hppa_register_raw_size): New function replacing
518         the body of macro REGISTER_RAW_SIZE.
519         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
520         config/pa/tm-hppah.h. These functions will be used to initialize
521         the gdbarch structure.
522         (hppa_hpux_pc_in_sigtramp): New function.
523         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
524         (hppa_hpux_frame_base_before_sigtramp): New function.
525         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
526         Add gdbcore.h #include.
527         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
528         of this gdbarch-eligible macro to a call to the new associated
529         function.
530         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
531         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
532         into a call to the new associated function.
533         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
534         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
535         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
536
537 2002-12-24  David Carlton  <carlton@math.stanford.edu>
538
539         * config/sparc/tm-sparc.h: Delete duplicate definition of
540         DEPRECATED_PC_IN_CALL_DUMMY.
541
542 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
543
544         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
545         $(gdb_assert_h).
546         * configure.tgt: Recognize mips64*-*-linux*.
547         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
548         (supply_32_bit_reg): New function.
549         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
550         (fill_gregset): Use regcache_collect() instead of
551         deprecated_registers[].
552         (register_addr): Change name to mips_linux_register_addr().
553         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
554         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
555         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
556         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
557         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
558         (MIPS64_LINUX_JB_PC): New defines.
559         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
560         (mips64_elf_fpregset_t): New typedefs.
561         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
562         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
563         (mips64_linux_register_addr, set_mips_linux_register_addr)
564         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
565         (init_register_addr_data)
566         New functions.
567         (fetch_core_registers): Add support for core file formats with 64-bit
568         registers.
569         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
570         (register_addr_data): New static global variable.
571         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
572         gdbarch_register_osabi() for each MIPS machine.
573         * config/mips/linux64.mt: New file.
574         * config/mips/tm-linux64.h: New file.
575
576 2002-12-23  Adam Fedor  <fedor@gnu.org>
577
578         * maint.c (maintenance_demangle): Add switch to demangle
579         ObjC language symbols as well.
580
581 2002-12-23  Adam Fedor  <fedor@gnu.org>
582
583         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
584         last argument from complaint function call.
585
586 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
587
588         * exec.c (print_section_info): Add FIXME comments regarding format
589         string choices.
590
591 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
592
593         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
594         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
595
596 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
597
598         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
599
600 2002-12-23  David Carlton  <carlton@math.stanford.edu>
601
602         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
603         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
604         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
605         information associated to a minsym, not lookup_symbol.
606
607 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
608
609         * x86-64-tdep.h (x86_64_init_abi): New prototype.
610         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
611         (x86_64_init_abi): Make non-static.  Set number of pseudo
612         registers to 0.
613         (x86_64_gdbarch_init): Remove function.
614         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
615         Remove code dealing with dissambly.
616         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
617         (_initialize_x86_64_linux_tdep): New function.
618         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
619         i386-tdep.o.
620
621 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
622
623         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
624         (struct gdb_osabi_handler): Remove member `arch'.  Add member
625         `arch_info'.
626         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
627         construct a `struct bfd_arch_info' and store it in the `struct
628         gdb_osabi_handler' that is created.
629         (gdbarch_init_osabi): Check for compatibility based on machine
630         type and architecture.
631         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
632         comment.
633         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
634         second argument in call to gdbarch_register_osabi.
635         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
636         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
637         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
638         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
639         * arm-tdep.c (_initialize_arm_tdep): Likewise.
640         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
641         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
642         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
643         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
644         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
645         * i386-tdep.c (_initialize_i386_tdep): Likewise.
646         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
647         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
648         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
649         _initialize_i386bsd_tdep and updated likewise.
650         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
651         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
652         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
653         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
654         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
655         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
656         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
657         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
658         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
659         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
660
661 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
662
663         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
664         DT_MIPS_RLD_MAP case for 64-bit targets.
665
666 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
667
668         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
669         ``temp_saved_regs'', not the pointer or other storage contiguous
670         to this pointer.
671
672 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
673
674         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
675         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
676         (mips_linux_get_longjmp_target): Delete declarations.
677         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
678         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
679         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
680         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
681         (mips_linux_get_longjmp_target)
682         (mips_linux_svr4_fetch_link_map_offsets): Make static.
683         (mips_linux_init_abi): New function.
684         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
685
686 2002-12-19  Keith Seitz  <keiths@redhat.com>
687
688         patch committed by Elena Zannoni  <ezannoni@redhat.com>
689         * thread.c (do_captured_list_thread_ids): Call prune_threads and
690         target_find_new_threads. Fix for PR mi/669.
691
692 2002-12-19  David Carlton  <carlton@math.stanford.edu>
693
694         * linespec.c (decode_line_1): Move code into decode_all_digits.
695         (decode_all_digits): New function.
696
697 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
698
699         * exec.c (print_section_info): Select a format string to use with
700         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
701
702 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
703
704         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
705         deprecated_update_current_frame_pc_hack.
706         (deprecated_update_frame_base_hack): New function.
707         * frame.h (deprecated_update_frame_pc_hack): Replace
708         (deprecated_update_frame_base_hack): Declare.
709         * infrun.c (normal_stop): Update.
710
711 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
712
713         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
714         frame_extra_info_zalloc.
715         (rs6000_frame_args_address): Use get_frame_extra_info.
716         (frame_get_saved_regs): Use get_frame_saved_regs.
717         (frame_initial_stack_address): Use get_frame_saved_regs and
718         get_frame_extra_info.
719         (frame_initial_stack_address): Use get_frame_extra_info.
720
721 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
722
723         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
724         array size.
725         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
726         checks for r3900_regnames[].
727
728 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
729
730         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
731         All uses changed
732         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
733
734 2002-12-17  David Carlton  <carlton@math.stanford.edu>
735
736         * symtab.c (lookup_partial_symbol): Don't search past the end of
737         the partial symbols.
738
739 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
740
741         * stack.c (frame_info): Use get_frame_saved_regs.
742         * breakpoint.c (until_break_command): Use get_frame_pc.
743
744 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
745
746         * buildsym.c (block_end_complaint, anon_block_end_complaint)
747         (innerblock_complaint, innerblock_anon_complaint)
748         (blockvector_complaint): Delete deprecated complaint structs.
749         (finish_block, make_blockvector, end_symtab): Replace calls
750         to complain() with calls to complaint().
751         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
752         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
753         (unexpected_type_complaint, bad_sclass_complaint)
754         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
755         Delete deprecated complaint structs.
756         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
757         Replace calls to complain() with calls to complaint().
758         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
759         (unknown_symtype_complaint, unknown_symchar_complaint)
760         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
761         (lbrac_mismatch_complaint, repeated_header_complaint)
762         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
763         Delete deprecated complaint structs.
764         (unknown_symtype_complaint, lbrac_mismatch_complaint)
765         (repeated_header_complaint)
766         (function_outside_compiliation_unit_complaint): New functions.
767         (add_old_header_file, find_corresponding_bincl_psymtab)
768         (set_namestring, find_stab_function_addr, read_dbx_symtab)
769         (process_one_symbol): Replace calls to complain() with, possibly
770         indirect, calls to complaint().
771         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
772         (unknown_attribute_form, unknown_attribute_length)
773         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
774         (const_ignored, botched_modified_type, op_deref2, op_deref4)
775         (basereg_not_handled, dup_user_type_allocation)
776         (dup_user_type_definition, missing_tag, bad_array_element_type)
777         (subscript_data_items, unhandled_array_subscript_format)
778         (unknown_array_subscript_format, not_row_major)
779         (missing_at_name): Delete deprecated complaint structs.
780         (bad_die_ref_complaint, unknown_attribute_form_complaint)
781         (dup_user_type_definition_complaint)
782         (bad_array_element_type_complaint): New functions.
783         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
784         (decode_subscript_data_item, dwarf_read_array_type)
785         (read_tag_string_type, read_subroutine_type, read_func_scope)
786         (locval, scan_partial_symbols, decode_modified_type)
787         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
788         (attribute_size): Replace calls to complain() with, possibly
789         indirect, calls to complaint().
790         * elfread.c (section_info_complaint, section_info_dup_complaint)
791         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
792         Delete deprecated complaint structs.
793         (elf_symtab_read, elfstab_offset_sections): Replace calls to
794         complain() with calls to complaint().
795         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
796         struct.
797         (stub_noname_complaint): New function.
798         (check_typedef, add_mangled_type): Replace calls to complain()
799         with calls to complaint().
800         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
801         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
802         (hpread_unhandled_type_complaint, hpread_struct_complaint)
803         (hpread_array_complaint, hpread_type_lookup_complaint)
804         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
805         (hpread_unhandled_common_complaint)
806         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
807         struct definitions and declarations.
808         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
809         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
810         Replace calls to complain() with, possibly indirect, calls to
811         complaint().
812         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
813         Likewise.
814         * mdebugread.c (bad_file_number_complaint, index_complaint)
815         (aux_index_complaint, block_index_complaint)
816         (unknown_ext_complaint, unknown_sym_complaint)
817         (unknown_st_complaint, block_overflow_complaint)
818         (basic_type_complaint, unknown_type_qual_complaint)
819         (array_index_type_complaint, bad_tag_guess_complaint)
820         (block_member_complaint, stEnd_complaint)
821         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
822         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
823         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
824         (bad_continued_complaint, bad_rfd_entry_complaint)
825         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
826         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
827         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
828         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
829         complaint structs.
830         (index_complaint, unknown_ext_complaint, basic_type_complaint)
831         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
832         (unexpected_type_code_complaint)
833         (function_outside_compilation_unit_complaint): New functions.
834         (parse_symbol, parse_type, upgrade_type, parse_procedure)
835         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
836         Replace calls to complain() with, possibly indirect calls to
837         complaint().
838         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
839         Delete deprecated complaint structs.
840         (lookup__objc_class, lookup_child_selector): Replace complain()
841         with complaint().
842         * remote-vx.c (cant_contact_target): Delete deprecated complaint
843         struct.
844         (vx_lookup_symbol): Replace complain() with complaint().
845         * stabsread.c (invalid_cpp_abbrev_complaint)
846         (invalid_cpp_type_complaint, member_fn_complaint)
847         (const_vol_complaint, error_type_complaint)
848         (invalid_member_complaint, range_type_base_complaint)
849         (reg_value_complaint, vtbl_notfound_complaint)
850         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
851         (unresolved_sym_chain_complaint, stabs_general_complaint)
852         (lrs_general_complaint, multiply_defined_struct): Delete
853         deprecated complaint structs.
854         (invalid_cpp_abbrev_complaint, ref_value_complaint)
855         (stabs_general_complaint, lrs_general_complaint)
856         (msg_unknown_complaint): New functions.
857         (dbx_lookup_type, read_cfront_baseclasses)
858         (read_cfront_member_functions, resolve_symbol_reference)
859         (define_symbol, resolve_live_range, add_live_range, read_type)
860         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
861         (read_one_struct_field, read_baseclasses, read_tilde_fields)
862         (read_cfront_static_fields, attach_fields_to_type)
863         (complain_about_struct_wipeout, read_range_type)
864         (common_block_start, common_block_end, cleanup_undefined_types)
865         (scan_file_globals): Replace complain() with complaint().
866         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
867         Delete deprecated complaint struct declarations.
868         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
869         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
870         (bf_not_found_complaint, ef_complaint, eb_complaint)
871         (function_outside_compilation_unit_complaint): New functions.
872         (record_include_begin, record_include_end, enter_line_range)
873         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
874         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
875         complain() with complaint().
876
877 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
878
879         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
880         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
881         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
882         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
883         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
884         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
885         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
886         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
887         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
888         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
889         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
890         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
891         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
892         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
893         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
894         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
895         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
896         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
897         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
898         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
899         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
900         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
901         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
902         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
903         * config/m88k/xm-dgux.h: Delete.
904         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
905         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
906         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
907         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
908         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
909         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
910         * ch-valprint.c: Delete.
911         
912 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
913
914         * infrun.c (handle_inferior_event): Rearrange code to resume if
915         no catchpoint triggers for an event.
916
917 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
918
919         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
920         and TARGET_WAITKIND_VFORKED cases.
921
922 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
923
924         * infrun.c (handle_inferior_event): Assume that catchpoints
925         are not affected by DECR_PC_AFTER_BREAK.
926
927 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
928
929         * target.c (update_current_target): Don't inherit DONT_USE.
930         * target.h (struct target_ops): Remove DONT_USE.
931         (target_next): Remove macro.
932
933 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
934
935         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
936
937 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
938
939         * arm-tdep.c (convert_from_extended): New argument to hold the
940         type of floating point result we want to convert to.  Make input 
941         argument const.  Fix all callers.
942         (convert_to_extended): Similarly.
943         (arm_extract_return_value): Now takes a regcache argument.  Change
944         code to use regcache accessor functions.  Correctly extract 
945         smaller-than-word results on big-endian machines.
946         (arm_store_return_value): Now takes a regcache argument.  Change
947         code to use regcache accessor functions.  Correctly zero/sign extend
948         smaller than word results before storing into r0.
949         (arm_gdbarch_init): Register new-style extract_return_value and
950         store_return_value functions.
951
952 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
953
954         * thread-db.c (thread_from_lwp): Uniquify error msg.
955         (lwp_from_thread): Ditto.
956         (check_event): Ditto.
957         (find_new_threads_callback): Ditto.
958         (thread_db_pid_to_str): Ditto.
959
960 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
961
962         * frame.h (get_frame_saved_regs): Declare.
963         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
964         pointer.
965         * frame.c (get_frame_saved_regs): New function.
966         (frame_saved_regs_zalloc): Return the allocated saved_regs.
967
968 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
969
970         * frame.c (deprecated_update_current_frame_pc_hack): New
971         function.
972         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
973         * infrun.c (normal_stop): Use said function instead of directly
974         modifying the frame's PC.
975         
976 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
977
978         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
979
980 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
981
982         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
983         config/mips/tm-irix6.h (NUM_REGS): Delete.
984         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
985         (temp_saved_regs): Declare as a pointer rather than an array.
986         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
987         that ``temp_saved_regs'' has storage allocated to it and that
988         it's the correct size.
989
990 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
991
992         * defs.h (init_last_source_visited): New prototype.
993         (add_path): Ditto.
994         * source.c (add_path): New function that adds to a specified path.
995         (mod_path): Change to call add_path.
996         (init_last_source_visited): New function to allow interfaces to
997         initialize static variable: last_source_visited.  Part of fix
998         for PR gdb/741.
999         * Makefile.in: Add support for mi/mi-cmd-env.c.
1000
1001 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1002
1003         * frame.h (frame_id_unwind): Declare.
1004         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1005         id_unwind_cache.
1006         (frame_id_unwind_ftype): Declare.
1007         * frame.c (frame_id_unwind): New function.
1008         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1009         (create_new_frame, get_prev_frame): Pass id_unwind to
1010         set_unwind_by_pc.
1011         (frame_saved_regs_id_unwind): New function.
1012         (frame_saved_regs_id_unwind): New function.
1013         * dummy-frame.c (dummy_frame_id_unwind): New function.
1014         (struct dummy_frame): Add field id.
1015         (generic_push_dummy_frame): Initialize `id'.
1016         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1017
1018 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1019
1020         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1021         pass that to set_momentary_breakpoint.  Move comments to where they
1022         belong.
1023         * frame.h (set_current_frame): Delete declaration.
1024         * frame.c (set_current_frame): Delete function.
1025
1026 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1027
1028         * frame.c (frame_extra_info_zalloc): New function.
1029         * frame.h (frame_extra_info_zalloc): Declare.
1030
1031 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1032
1033         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1034         in the previous prototype change to set_momentary_breakpoint.
1035
1036 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1037
1038         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1039         and saw_child_exec.
1040         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1041         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1042         (stop_stepping): Remove outdated check for child vfork events.
1043
1044 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1045
1046         * GDB 5.3 released from gdb_5_3-branch.
1047
1048 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1049
1050         * corelow.c (init_core_ops): Delete references to to_require_attach
1051         and to_require_detach.
1052         * exec.c (init_exec_ops): Likewise.
1053         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1054         hppa_require_detach directly.
1055         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1056         * inftarg.c (child_detach): Remove.
1057         (child_detach_from_process): Rename to child_detach, remove
1058         after_fork argument.
1059         (child_attach): Remove.
1060         (child_attach_to_process): Rename to child_attach, remove after_fork
1061         argument.
1062         (init_child_ops): Delete references to to_require_attach
1063         and to_require_detach.
1064         * infttrace.c (hppa_require_attach): Update comment.
1065         * target.c (cleanup_target, update_current_target)
1066         (init_dummy_target, setup_target_debug): Delete references to
1067         to_require_attach and to_require_detach.
1068         (find_default_require_detach, find_default_require_attach)
1069         (debug_to_require_attach, debug_to_require_detach): Remove
1070         functions.
1071         * target.h (struct target_ops): Remove to_require_attach
1072         and to_require_detach.
1073         (target_require_attach, target_require_detach): Delete macros.
1074         (find_default_require_detach, find_default_require_attach): Delete
1075         prototypes.
1076         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1077
1078 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1079
1080         * frame.c (get_frame_extra_info): New function.
1081         * frame.h (get_frame_extra_info): Declare.
1082
1083 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1084
1085         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1086         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1087         with `struct frame_id'.
1088         (set_longjmp_resume_breakpoint): Ditto.
1089         * infrun.c (handle_inferior_event): Update.
1090         * breakpoint.c (watch_command_1, until_break_command): Update.
1091         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1092         (handle_inferior_event, step_over_function): Update.
1093         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1094         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1095         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1096         * infcmd.c (finish_command, run_stack_dummy): Update.
1097
1098 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1099
1100         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1101         (dwarf2_non_const_array_bound_ignored)
1102         (dwarf2_missing_line_number_section)
1103         (dwarf2_statement_list_fits_in_line_number_section)
1104         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1105         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1106         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1107         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1108         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1109         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1110         (dwarf2_missing_member_fn_type_complaint)
1111         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1112         (dwarf2_const_value_length_mismatch)
1113         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1114         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1115         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1116         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1117         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1118         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1119         complaints using deprecated struct..
1120         (dwarf2_non_const_array_bound_ignored_complaint)
1121         (dwarf2_complex_location_expr_complaint)
1122         (dwarf2_unsupported_at_frame_base_complaint)
1123         (dwarf2_const_value_length_mismatch_complaint)
1124         (dwarf2_macros_too_long_complaint)
1125         (dwarf2_macro_malformed_definition_complaint)
1126         (dwarf2_invalid_attrib_class_complaint): New functions.
1127         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1128         (read_structure_scope, read_array_type, read_common_block)
1129         (read_tag_pointer_type, read_base_type, read_partial_die)
1130         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1131         (new_symbol, dwarf2_const_value, read_type_die)
1132         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1133         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1134         complain() with, possibly indirect, calls to complaint().
1135
1136 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1137
1138         * frame.c (deprecated_get_frame_saved_regs): Rename
1139         get_frame_saved_regs.
1140         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1141         * sparc-tdep.c: Update.
1142         * hppa-tdep.c: Update.
1143         * h8500-tdep.c: Update.
1144
1145 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1146
1147         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1148         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1149         ``char *'' for return and parameter types.
1150         * gdbarch.h, gdbarch.c: Regenerate.
1151         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1152         return type from ``char *'' to ``const char *''.
1153         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1154         const.
1155
1156 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1157
1158         * i386-tdep.c: Include "dummy-frame.h".
1159         (i386_frame_chain, i386_frame_saved_pc): Replace
1160         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1161         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1162
1163 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1164
1165         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1166         Change to a function with predicate.
1167         * gdbarch.h, gdbarch.c: Re-generate.
1168         * frame.c (get_prev_frame): Update.  Test
1169         DEPRECATED_INIT_FRAME_PC_P.
1170         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1171         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1172         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1173         * alpha-tdep.c (alpha_gdbarch_init): Update.
1174         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1175         * mips-tdep.c (mips_gdbarch_init): Update.
1176         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1177         * arm-tdep.c: Update comments.
1178         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1179         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1180         * frv-tdep.c (frv_gdbarch_init): Ditto.
1181         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1182         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1183         * s390-tdep.c (s390_gdbarch_init): Ditto.
1184         * v850-tdep.c (v850_gdbarch_init): Ditto.
1185         * vax-tdep.c (vax_gdbarch_init): Ditto.
1186         * sh-tdep.c (sh_gdbarch_init): Ditto.
1187         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1188         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1189         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1190         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1191         * i386-tdep.c (i386_gdbarch_init): Ditto.
1192         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1193         * cris-tdep.c (cris_gdbarch_init): Ditto.
1194         * avr-tdep.c (avr_gdbarch_init): Ditto.
1195         * arm-tdep.c (arm_gdbarch_init): Ditto.
1196         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1197         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1198
1199 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1200
1201         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1202         CHILD_FOLLOW_FORK.
1203         * hppah-nat.c (saved_vfork_pid): Add.
1204         (child_post_follow_vfork): Remove.
1205         (child_follow_fork): New function.
1206         (child_wait): Call detach_breakpoints after receiving the child vfork.
1207         Call child_resume directly instead of going through resume ().
1208         Make sure we have the exec before reporting the vfork.
1209         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1210         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1211         (follow_fork): New function.  Call target_follow_fork.
1212         (follow_inferior_reset_breakpoints): New function broken out from
1213         old follow_inferior_fork.
1214         (resume): Remove hack to follow exec after vfork.
1215         * inftarg.c (child_post_follow_vfork): Remove.
1216         (child_follow_fork): New function.
1217         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1218         * target.c (cleanup_target): Replace to_post_follow_vfork with
1219         to_follow_fork.
1220         (update_current_target): Likewise.
1221         (setup_target_debug): Likewise.
1222         (debug_to_post_follow_vfork): Remove.
1223         (debug_to_follow_fork): New function.
1224         * target.h (struct target_ops): Replace to_post_folow_vfork with
1225         to_follow_fork.
1226         (child_post_follow_vfork): Remove prototype.
1227         (child_follow_fork): Add prototype.
1228         (target_post_follow_vfork): Remove macro.
1229         (target_follow_fork): Add macro.
1230
1231 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1232
1233         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1234         (child_post_follow_vfork): Cancel pending exec event if we follow
1235         the parent.
1236         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1237         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1238         event at the following wait call if necessary.
1239         * infrun.c (follow_vfork): Don't follow_exec here.
1240         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1241         case about HP/UX 10.20.  Remove code pushed down to
1242         hppah-nat.c:child_wait.
1243         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1244         vfork_in_flight is set.
1245
1246 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1247
1248         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1249         for the parent's fork event.
1250         * infrun.c (handle_inferior_event): Only expect one fork event.
1251         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1252         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1253
1254 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1255
1256         * PROBLEMS: Delete reference to PR gdb/725.
1257         
1258         * MAINTAINERS (gdb.c++): Add David Carlton.
1259
1260 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1261
1262         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1263         * cli/cli-cmds.c: Ditto.
1264
1265 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1266
1267         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1268         function address in <>.
1269         * gdbarch.c: Re-generate.
1270
1271 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1272
1273         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1274
1275 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1276
1277         * linespec.c (symtab_from_filename): New function.
1278         (decode_line_1): Move code into symtab_from_filename.
1279
1280 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1281
1282         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1283
1284 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1285
1286         * f-valprint.c (info_common_command): Use get_frame_pc.
1287         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1288         * ax-gdb.c (agent_command): Ditto.
1289         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1290         (rs6000_pop_frame): Ditto.
1291         (rs6000_frameless_function_invocation): Ditto.
1292         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1293         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1294         * macroscope.c (default_macro_scope): Ditto.
1295         * stack.c (print_frame_info_base): Ditto.
1296         (print_frame, frame_info, print_frame_label_vars): Ditto.
1297         (return_command, func_command, get_frame_language): Ditto.
1298         * infcmd.c (finish_command): Ditto.
1299         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1300         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1301         (break_at_finish_at_depth_command_1): Ditto.
1302         (break_at_finish_command_1): Ditto.
1303         (until_break_command, get_catch_sals): Ditto.
1304         * blockframe.c (func_frame_chain_valid): Ditto.
1305         (frameless_look_for_prologue): Ditto.
1306         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1307
1308 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1309
1310         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1311         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1312
1313 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1314
1315         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1316         to pure functions.
1317         * gdbarch.h, gdbarch.c: Re-generate.
1318         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1319         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1320
1321         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1322         declaration to a function returning a CORE_ADDR.
1323         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1324         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1325         (init_frame_pc_default): Ditto.
1326         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1327         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1328         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1329         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1330         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1331         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1332
1333         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1334         to init_frame_pc_noop.
1335         (i386_interix_init_frame_pc): Delete function.
1336         * z8k-tdep.c (init_frame_pc): Delete function.
1337         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1338         (INIT_FRAME_PC_FIRST): Ditto.
1339         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1340         (INIT_FRAME_PC_FIRST): Ditto.
1341         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1342         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1343         init_frame_pc_noop.
1344         (INIT_FRAME_PC_FIRST): Convert to an expression.
1345         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1346
1347 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1348
1349         * blockframe.c: Use get_frame_base instead of directly accessing
1350         the `struct frame_info' member frame.
1351         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1352         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1353
1354 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1355
1356         * Makefile.in (readline_h): Define.
1357         (completer.o): Depend on readline_h.
1358         (corelow.o): Ditto.
1359         (event-top.o): Ditto.
1360         (exec.o): Ditto.
1361         (solib.o): Ditto.
1362         (source.o): Ditto. 
1363         (symfile.o): Ditto. 
1364         (symmisc.o): Ditto. 
1365         (top.o): Ditto.
1366         (tracepoint.o): Ditto. 
1367         (utils.o): Ditto.
1368         (cli-dump.o): Ditto.
1369         (tui-hooks.o): Ditto. 
1370         (tuiWin.o): Ditto. 
1371
1372 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1373
1374         More cleanup from import of readline 4.3.
1375         * completer.h (complete_line, readline_line_completion_function):
1376         Update prototypes.
1377         (line_completion_function): Removed, not used outside of completer.c.
1378         * completer.c (readline_line_completion_function,
1379         complete_function, line_completion_function): Use const for first
1380         parameter.
1381         (line_completion_function): Make static.
1382         (filename_completer): filename_completion_function is now called
1383         rl_filename_completion_function
1384         * corelow.c: Include <readline/readline.h>.
1385         * exec.c: Ditto.
1386         * solib.c: Ditto.
1387         * source.c: Ditto.
1388         * symfile.c: Ditto.
1389         * symmisc.c: Ditto.
1390         * top.c (init_main): No need to coerce
1391         readline_line_completion_function anymore.
1392         * cli/cli-dump.c: Include <readline/readline.h>.
1393
1394 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1395
1396         * stack.c (frame_info): Use get_prev_frame.
1397         * blockframe.c (frame_address_in_block): Ditto.
1398         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1399         (rs6000_frameless_function_invocation): Ditto.
1400         (rs6000_frame_saved_pc): Ditto.
1401         (rs6000_frame_chain): Ditto.
1402         * arch-utils.c (init_frame_pc_default): Ditto.
1403
1404 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1405
1406         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1407         Delete redundant definition.
1408
1409 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1410
1411         Import of readline 4.3:
1412         * cli/cli-cmds.c: Include readline/tilde.h.
1413         * cli/cli-setshow.c: Ditto.
1414         * defs.h: Don't declare tilde_expand anymore, since readline
1415         exports it.
1416
1417 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1418
1419         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1420         -Werror on this file.
1421
1422 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1423
1424         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1425         the format name.
1426         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1427         * gdbarch.c: Regenerate.
1428         
1429 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1430
1431         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1432         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1433         provide a default value.
1434         * gdbarch.h, gdbarch.c: Regenerate.
1435         * frame.c (get_prev_frame): Update.  Check
1436         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1437         * s390-tdep.c (s390_gdbarch_init): Update.
1438         * mips-tdep.c (mips_gdbarch_init): Update.
1439         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1440         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1441         * alpha-tdep.c (alpha_gdbarch_init): Update.
1442         
1443 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1444
1445         * ia64-linux-nat.c: Include gdb_string.h.
1446         * alpha-nat.c: Ditto.
1447         * ppc-linux-nat.c: Ditto.
1448         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1449         Update dependencies.
1450
1451 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1452
1453         * gdbthread.h: Include "frame.h".
1454         (struct thread_info): Replace step_frame_address with
1455         step_frame_id.
1456         * inferior.h: Include "frame.h".
1457         (step_frame_id): Replace external variable step_frame_address.
1458         * gdbthread.h (save_infrun_state): Replace step_frame_address
1459         parameter with step_frame_id parameter.
1460         (load_infrun_state): Ditto.
1461         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1462         * infcmd.c (step_frame_id, step_1, step_once): Update.
1463         * thread.c (load_infrun_state, save_infrun_state): Update.
1464         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1465         (handle_inferior_event, step_over_function): Update.
1466         (normal_stop, context_switch, restore_inferior_status): Update.
1467         (struct inferior_status): Replace step_frame_address with
1468         step_frame_id.
1469
1470 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1471
1472         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1473         DW_TAG_member as well as a declaration as being a C++ static data
1474         member.
1475         (read_structure_scope): Combine tests for DW_TAG_member and
1476         DW_TAG_variable.
1477
1478 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1479
1480         * linespec.c (decode_compound): New function.
1481         (decode_line_1): Move code into decode_compound.
1482
1483 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1484
1485         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1486         argument.
1487         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1488         the static block.  See PR gdb/804.
1489
1490 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1491
1492         * symtab.c (lookup_symbol_aux_block): New function.
1493         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1494
1495 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1496
1497         * gdbarch.sh: Dump the predicate function and macro values.
1498         (read): Print error on standard error.
1499         * gdbarch.c: Regenerate.
1500         
1501 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1502
1503         * Makefile.in (mips_tdep_h): Define.
1504         (mips-tdep.o): Add mips_tdep_h to dependency list.
1505         * mips-tdep.h: New file.
1506         * mips-tdep.c (mips-tdep.h): Include.
1507         (enum mips_abi): Move to mips-tdep.h.
1508         (mips_abi): New function.
1509
1510 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1511
1512         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1513
1514 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1515
1516         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1517         function.
1518         (lookup_symbol_aux_minsyms): New function.
1519
1520 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1521
1522         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1523
1524 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1525
1526         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1527         which is an obsolete macro name.
1528
1529 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1530
1531         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1532         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1533
1534 2002-12-03  H.J. Lu  (hjl@gnu.org)
1535
1536         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1537         (create_breakpoints): Make sure the addr_string field is not
1538         NULL.
1539
1540 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1541
1542         * sparc-nat.c (fetch_inferior_registers)
1543         (store_inferior_registers): Add comment on problem of LWP vs
1544         threads.
1545         
1546         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1547         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1548         (lin_lwp_store_registers): Remove.
1549         (init_lin_lwp_ops): Use fetch_inferior_registers
1550         and store_inferior_registers directly.
1551         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1552         (store_inferior_registers): Likewise.
1553         Fix PR gdb/725.
1554
1555 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1556
1557         * frame.h (get_frame_id): Convert to a function.
1558         (null_frame_id, frame_id_p): Declare.
1559         (frame_id_eq, frame_id_inner): Declare.
1560         (frame_id_build): New function.
1561         * frame.c (get_frame_id): Update.  Use null_frame_id.
1562         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1563         frame_id_inner.
1564         (null_frame_id, frame_id_p): Define.
1565         (frame_id_eq, frame_id_inner): Define.
1566         (frame_id_build): New function.
1567         * varobj.c (varobj_create): Update.
1568         (varobj_update): Update.
1569         * valops.c (value_assign): Update.
1570         (new_root_variable): Update.
1571         * infrun.c (save_inferior_status): Update.
1572         * breakpoint.c (watch_command_1): Update.
1573
1574 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1575
1576         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1577         (SNAP2): Likewise.
1578
1579 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1580
1581         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1582         patch.
1583
1584         * PROBLEMS: Mention PR gdb/725.
1585
1586 2002-12-03  Andreas Schwab  <schwab@suse.de>
1587
1588         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1589
1590 2002-12-02  Adam Fedor  <fedor@gnu.org>
1591             Klee Dienes  <kdienes@apple.com>
1592
1593         * objc-lang.c (objc_printstr): Add width arg to match
1594         printstr prototype.
1595         (compare_selectors): Add 'const' to arg types.
1596         (compare_classes): Likewise.
1597         (find_imps): Cast msym pointer to avoid compiler warning.
1598         (print_object_command): Validate the address before
1599         passing it to the print routine.
1600         (find_objc_msgcall_submethod): Change function argument to
1601         return an int.
1602         * objc-lang.h: Add 'extern' to all function declarations.
1603         (value_nsstring): Add declaration.
1604
1605 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1606
1607         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1608         Fixes a build failure on HP/UX.
1609
1610         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1611         failure on HP/UX. 
1612         (hpread_has_name): Advance declaration to avoid a compilation warning.
1613         (pst_syms_count): Add missing variable type. By change, the compiler
1614         was defaulting to int, which seems a good choice. Fixes a compilation
1615         warning.
1616         (pst_syms_size): Likewise.
1617  
1618 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1619
1620         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1621         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1622         later to set the proper gdbarch methods depending on the osabi.
1623         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1624
1625 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1626
1627         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1628         * osabi.c (gdb_osabi_name): Add strings images for the two new
1629         enum values.
1630         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1631
1632 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1633
1634         * MAINTAINERS (Java): Global maintainers are responible for Java.
1635         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1636         part Java maintainers.
1637
1638 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1639
1640         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1641         Fixes a compilation failure on AiX.
1642
1643 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1644
1645         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1646         why aix-thread.o is not listed.
1647
1648 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1649
1650         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1651         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1652         * gdbarch.h, gdbarch.c: Re-generate.
1653         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1654         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1655         * config/pa/tm-hppa.h, frame.h: Update.
1656         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1657         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1658         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1659         * cris-tdep.c, alpha-tdep.c: Update.
1660         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1661         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1662         (get_prev_frame): Ditto.
1663
1664 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1665
1666         * exec.c (xfer_memory): Replace boolean with int.
1667         * p-exp.y: Use 0 instead of false.
1668         * corelow.c (gdb_check_format): Change return type to int from
1669         boolean.
1670         * utils.c: Don't include <curses.h> or <term.h> first.
1671
1672 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1673
1674         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1675         (m68hc11_register_byte): Remove.
1676         (m68hc11_gdbarch_init): Don't set the above.
1677
1678 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1679
1680         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1681         by calling get_selected_frame.
1682         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1683         set_current_frame, create_new_frame, select_frame and
1684         get_current_frame.
1685         * remote-e7000.c (e7000_start_remote): Ditto.
1686         * remote-mips.c (common_open): Ditto
1687         * remote-rdp.c (remote_rdp_open): Ditto.
1688
1689 2002-11-29  Andreas Schwab  <schwab@suse.de>
1690
1691         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1692         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1693         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1694         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1695         read_memory_unsigned_integer instead of read_memory_integer when
1696         dealing with addresses and instruction opcodes.
1697         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1698         (m68k_linux_frame_saved_pc): Likewise.
1699
1700 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1701
1702         * stack.c (selected_frame, select_frame): Move from here ...
1703         * frame.c (selected_frame, select_frame): ... to here.  Include
1704         "language.h".
1705         * Makefile.in (frame.o): Update dependencies.
1706         * frame.c (get_selected_frame): New function.
1707         * frame.h (get_selected_frame): Declare.
1708         (deprecated_selected_frame): Rename selected_frame.
1709         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1710         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1711         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1712         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1713         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1714         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1715         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1716         * z8k-tdep.c, cli/cli-cmds.c: Update.
1717         
1718 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1719
1720         * frame.h (get_selected_block): Add comments.
1721
1722 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1723
1724         * frame.c (pc_notcurrent): New function.
1725         (find_frame_sal): New function.
1726         * frame.h (find_frame_sal): Declare.
1727         (struct symtab_and_line): Add opaque declaration.
1728         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1729         find_pc_line.
1730         (frame_info): Ditto.
1731         * ada-lang.c (find_printable_frame): Ditto.
1732
1733 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1734
1735         * configure.in: Check that the pthdebug library is recent enough
1736         before enabling thread support on native AiX.
1737         * configure: Regenerate.
1738
1739         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1740         from the list of object files as it is now appended by configure
1741         if thread support is enabled.
1742         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1743         if thread support is enabled.
1744
1745 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1746
1747         * stack.c (get_selected_block): In-line get_current_block.
1748         * frame.h (get_current_block): Delete declaration.
1749         * blockframe.c (get_current_block): Delete function.
1750
1751 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1752
1753         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1754         USE_GENERIC_DUMMY_FRAMES.
1755         * gdbarch.h, gdbarch.c: Regenerate.
1756         * valops.c, frame.c: Update.
1757         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1758         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1759         * config/pa/tm-hppa.h, blockframe.c: Update.
1760         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1761         * m68k-tdep.c, alpha-tdep.c: Ditto.
1762
1763         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1764         * mips-tdep.c: Ditto.
1765
1766 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1767
1768         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1769         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1770         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1771         * gdbarch.c, gdbarch.h: Re-generate.
1772         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1773         (CALL_DUMMY_LOCATION): Delete macro definition.
1774         (PC_IN_CALL_DUMMY): Delete macro definitions.
1775         
1776         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1777         default is already generic_pc_in_call_dummy.
1778         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1779         * v850-tdep.c (v850_gdbarch_init): Ditto.
1780         * sh-tdep.c (sh_gdbarch_init): Ditto.
1781         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1782         * mips-tdep.c (mips_gdbarch_init): Ditto.
1783         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1784         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1785         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1786         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1787         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1788         * avr-tdep.c (avr_gdbarch_init): Ditto.
1789         
1790         * arm-tdep.c (arm_gdbarch_init): Do not set
1791         use_generic_dummy_frames, default is already 1.
1792         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1793         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1794         * v850-tdep.c (v850_gdbarch_init): Ditto.
1795         * sh-tdep.c (sh_gdbarch_init): Ditto.
1796         * s390-tdep.c (s390_gdbarch_init): Ditto.
1797         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1798         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1799         * mips-tdep.c (mips_gdbarch_init): Ditto.
1800         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1801         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1802         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1803         * i386-tdep.c (i386_gdbarch_init): Ditto.
1804         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1805         * frv-tdep.c (frv_gdbarch_init): Ditto.
1806         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1807         * cris-tdep.c (cris_gdbarch_init): Ditto.
1808         * avr-tdep.c (avr_gdbarch_init): Ditto.
1809
1810         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1811         call_dummy_location, default is already AT_ENTRY_POINT.
1812         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1813         * v850-tdep.c (v850_gdbarch_init): Ditto.
1814         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1815         * sh-tdep.c (sh_gdbarch_init): Ditto.
1816         * s390-tdep.c (s390_gdbarch_init): Ditto.
1817         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1818         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1819         * mips-tdep.c (mips_gdbarch_init): Ditto.
1820         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1821         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1822         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1823         * i386-tdep.c (i386_gdbarch_init): Ditto.
1824         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1825         * frv-tdep.c (frv_gdbarch_init): Ditto.
1826         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1827         * cris-tdep.c (cris_gdbarch_init): Ditto.
1828         * avr-tdep.c (avr_gdbarch_init): Ditto.
1829         * arm-tdep.c (arm_gdbarch_init): Ditto.
1830         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1831
1832 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1833
1834         * frame.h: Update comments on set_current_frame, create_new_frame,
1835         flush_cached_frames, reinit_frame_cache, select_frame and
1836         selected_frame.
1837         
1838 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1839
1840         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1841         deprecated pc_in_call_dummy function.
1842         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1843         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1844         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1845         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1846         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1847
1848 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1849
1850         * Makefile.in: Remove Tix dependencies.
1851         * acinclude.m4: Ditto.
1852         * aclocal.m4: Ditto.
1853         * configure.in: Ditto.
1854         * configure: Regenerated.
1855         
1856 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1857
1858         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1859         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1860         * gdbarch.c: Re-generate.
1861         
1862 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1863
1864         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1865         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1866         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1867         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1868         pc_in_call_dummy_at_entry_point.
1869         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1870         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1871         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1872         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1873         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1874         pc_in_call_dummy_on_stack.
1875         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1876         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1877         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1878         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1879         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1880         
1881 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1882
1883         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1884         pc_in_call_dummy_before_text_end
1885         (deprecated_pc_in_call_dummy_after_text_end): Rename
1886         pc_in_call_dummy_after_text_end.
1887         (deprecated_pc_in_call_dummy_on_stack): Rename
1888         pc_in_call_dummy_on_stack.
1889         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1890         pc_in_call_dummy_at_entry_point.
1891         * m68k-tdep.c (m68k_gdbarch_init): Update.
1892         * s390-tdep.c (s390_gdbarch_init): Update.
1893         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1894         * vax-tdep.c (vax_gdbarch_init): Update.
1895         * sparc-tdep.c (sparc_gdbarch_init): Update.
1896         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1897         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1898         * i386-tdep.c (i386_gdbarch_init): Update.
1899         * frv-tdep.c (frv_gdbarch_init): Update.
1900         * cris-tdep.c (cris_gdbarch_init): Update.
1901         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1902         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1903         (deprecated_pc_in_call_dummy_after_text_end)
1904         (deprecated_pc_in_call_dummy_on_stack)
1905         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1906         * alpha-tdep.c (alpha_gdbarch_init): Update.
1907
1908 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1909
1910         * acconfig.h (HAVE_PREAD64): Add.
1911         * configure.in: Check for pread64.
1912         * config.in: Regenerated.
1913         * configure: Regenerated.
1914         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1915         * linux-proc.c (linux_proc_xfer_memory): New function.
1916         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1917
1918 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1919
1920         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1921         pdi's with no name.
1922
1923 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1924
1925         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1926         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1927
1928 2002-11-25  Jim Blandy  <jimb@redhat.com>
1929
1930         * symfile.c (init_objfile_sect_indices): New function.
1931         (default_symfile_offsets): Move the section-index-initializing
1932         stuff into init_objfile_sect_indices, and call that.
1933
1934         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1935         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1936
1937         * symfile.c (syms_from_objfile): Adjust indentation.
1938
1939         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1940         || info_verbose isn't true.
1941
1942 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1943
1944         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1945         default to get_frame_base.
1946         * gdbarch.h, gdbarch.c: Regenerate.
1947         * arch-utils.c (default_frame_address): Delete function.
1948         * arch-utils.h (default_frame_address): Delete declaration
1949
1950 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1951
1952         * varobj.c (find_frame_addr_in_frame_chain):
1953         Use get_frame_base instead of FRAME_FP,
1954         obvious fix.
1955
1956 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1957
1958         * frame.h (FRAME_FP): Delete macro.
1959         (get_frame_base): New function declaration.
1960         * frame.c (get_frame_base): New function.
1961         (get_frame_id): Use ->frame.
1962         (frame_find_by_id): Rewrite to use get_frame_id.
1963         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1964         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1965         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1966         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1967         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1968         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1969         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1970
1971 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1972
1973         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1974
1975 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1976
1977         * frame.c (set_unwind_by_pc): Revert change below, use
1978         PC_IN_CALL_DUMMY.
1979         (get_prev_frame): Ditto.
1980
1981 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1982
1983         * dummy-frame.c (pc_in_dummy_frame): New function.
1984         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1985         (find_dummy_frame): Update comment.
1986         (generic_pop_current_frame): Use get_frame_type.
1987         * dummy-frame.h (pc_in_dummy_frame): Declare.
1988         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1989         (create_new_frame): Use pc_in_dummy_frame.
1990         (get_prev_frame): Use pc_in_dummy_frame.
1991         (frame_saved_regs_register_unwind): Use get_prev_frame.
1992         (deprecated_generic_get_saved_register): Use get_prev_frame.
1993
1994 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1995
1996         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1997         from here ...
1998         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1999         (varobj_create): Note that frame ID should be used.
2000         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2001
2002 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2003
2004         * breakpoint.c: Include "gdb_assert.h".
2005         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2006         not being used.
2007         * Makefile.in (breakpoint.o): Update dependencies.
2008         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2009         deprecated_frame_in_dummy.
2010         * stack.c (print_frame_info_base): Ditto.
2011         (frame_info): Ditto.
2012         (print_frame_info_base): Ditto.  Delete dead code.
2013         
2014 2002-11-23  Andreas Schwab  <schwab@suse.de>
2015
2016         * Makefile.in (m68k_tdep_h): Define.
2017         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2018         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2019         * m68k-tdep.c: Move register number enum ...
2020         * m68k-tdep.h: ... to this new file and rename the constants from
2021         E_* to M68K_*.  All uses changed.
2022         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2023         * abug-rom.c: Include "m68k-tdep.h".  Use
2024         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2025         * cpu32bug-rom.c: Likewise.
2026         * dbug-rom.c: Likewise.
2027         * m68k-tdep.c: Likewise.
2028         * m68klinux-nat.c: Likewise.
2029         * remote-est.c: Likewise.
2030         * rom68k-rom.c: Likewise.
2031         * config/m68k/tm-linux.h: Likewise.
2032
2033 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2034
2035         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2036         dummy frame initialization code.
2037         * mips-tdep.c (mips_gdbarch_init): Ditto.
2038
2039 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2040
2041         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2042         attach will hang.
2043
2044 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2045
2046         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2047         to default_frame_address.
2048         * gdbarch.h, gdbarch.c: Re-generate.
2049
2050         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2051         or frame_locals_address to default_frame_address.
2052         * m68k-tdep.c (m68k_gdbarch_init): Update.
2053         * i386-tdep.c (i386_gdbarch_init): Update.
2054         * frv-tdep.c (frv_gdbarch_init): Update.
2055         * sh-tdep.c (sh_gdbarch_init): Update.
2056         * v850-tdep.c (v850_gdbarch_init): Update.
2057         * sparc-tdep.c (sparc_gdbarch_init): Update.
2058         * mips-tdep.c (mips_gdbarch_init): Update.
2059         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2060         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2061         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2062
2063         * cris-tdep.c (cris_frame_args_address): Delete function.
2064         (cris_frame_locals_address): Delete function.
2065         (cris_gdbarch_init): Do not set frame_args_address or
2066         frame_locals_address.
2067
2068 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2069
2070         * thread-db.c (thread_db_load): Tell the user what's going on
2071         if dlopen fails on libthread_db.
2072
2073 2002-11-23  Andreas Schwab  <schwab@suse.de>
2074
2075         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2076         invariant return values.
2077
2078 2002-11-22  Andreas Schwab  <schwab@suse.de>
2079
2080         * valops.c (value_slice): Move declaration of `offset' to avoid
2081         warning.
2082
2083 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2084
2085         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2086         (struct so_stuff): Add end_addr field.
2087         (register_loaded_dll): Calculate and store end address of loaded dll.
2088         (solib_address): New function.
2089         (child_solib_loaded_library_pathname): Pass carefully constructed
2090         section info to safe_symbol_file_add rather than ignoring it.
2091         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2092         DLL is loaded.
2093         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2094         (child_create_inferior): Fix a compiler warning.
2095         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2096         (solib_address): Declare new function.
2097
2098 2002-11-22  Andreas Schwab  <schwab@suse.de>
2099
2100         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2101         and FPS registers.
2102
2103 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2104
2105         * maint.c (_initialize_maint_cmds): Fix typo.  From
2106         Francesco Potorti` <pot@gnu.org>.
2107
2108 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2109
2110         * mips-tdep.c (mips_dump_tdep): Delete references to
2111         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2112         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2113         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2114         * printcmd.c (build_address_symbolic): Delete calls to
2115         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2116         (address_info): Ditto.
2117         Fix PR gdb/773.
2118         
2119 2002-11-19  Klee Dienes  <kdienes@apple.com>
2120             Adam Fedor  <fedor@gnu.org>
2121
2122         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2123         the ability to explicitly specify the quote characters and word
2124         break characters; if NULL is specified for either, use the old
2125         behavior of using the characters used by the completer.
2126         (skip_chars): New function.  Convenience wrapper around
2127         skip_quoted_chars to provide the original skip_chars behavior.
2128         * completer.h (skip_quoted_chars): Add prototype.
2129
2130 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2131
2132         Problems reported by Paul Eggert.
2133         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2134
2135 2002-11-19  Andreas Schwab  <schwab@suse.de>
2136
2137         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2138         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2139         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2140         (m68k_linux_frame_saved_pc): Move to ...
2141         * m68klinux-tdep.c: ... here.  New file.
2142         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2143         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2144
2145 2002-11-19  Adam Fedor  <fedor@gnu.org>
2146
2147         * objc-exp.y: Revert to old skip_quoted usage.
2148
2149 2002-11-19  Adam Fedor  <fedor@gnu.org>
2150
2151         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2152         (objc_lang_h): Define.
2153         (YYFILES): Add objc-exp.tab.c.
2154         (local-maintainer-clean): Remove objc-exp.tab.c.
2155         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2156         
2157 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2158
2159         * p-exp.y (typecast rule): Add automatic dereference of
2160         pascal classes if needed.
2161         (THIS): Set current_type.
2162         Automatically dereference pascal classes. 
2163         (typebase rule): Add ^typebase recognition.
2164
2165 2002-11-18  Adam Fedor  <fedor@gnu.org>
2166
2167         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2168         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2169         (op_name): Handle OP_OBJC_SELF.
2170         * Makefile.in (expprint.o): Add additional depends.
2171
2172 2002-11-18  Adam Fedor  <fedor@gnu.org>
2173
2174         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2175         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2176         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2177         * objc-exp.y: Likewise. 
2178
2179 2002-11-18  Adam Fedor  <fedor@gnu.org>
2180
2181         * gdb/parser-defs.h: (struct objc_class_str): New structure
2182         for parsing ObjC classes.
2183
2184 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2185
2186         * stack.c (frame_relative_level): Copy function from here ...
2187         * frame.c (frame_relative_level): ...to here.
2188
2189 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2190
2191         * frame.h (enum frame_type): Define.
2192         (get_frame_type): Declare.
2193         (struct frame_info): Add field `type'.  Delete field
2194         signal_handler_caller.
2195         (deprecated_set_frame_signal_handler_caller): Declare.
2196         * frame.c (get_frame_type): New function.
2197         (deprecated_set_frame_type): New function.
2198         (create_new_frame): Set the frame's type.
2199         (get_prev_frame): Similar.
2200         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2201         * s390-tdep.c: Ditto.
2202         * m68klinux-nat.c: Ditto.
2203         * ns32k-tdep.c: Ditto.
2204         * x86-64-linux-tdep.c: Ditto.
2205         * vax-tdep.c: Ditto.
2206         * rs6000-tdep.c: Ditto.
2207         * ppc-linux-tdep.c: Ditto.
2208         * i386-interix-tdep.c: Ditto.
2209         * mips-tdep.c: Ditto.
2210         * m68k-tdep.c: Ditto.
2211         * hppa-tdep.c: Ditto.
2212         * ia64-tdep.c: Ditto.
2213         * cris-tdep.c: Ditto.
2214         * arm-tdep.c: Ditto.
2215         * alpha-tdep.c: Ditto.
2216         * i386-tdep.c: Ditto.
2217         * stack.c: Ditto.
2218         * ada-lang.c: Ditto.
2219         * blockframe.c: Update.
2220         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2221         deprecated_set_frame_type instead of signal_handler_caller.
2222         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2223         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2224         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2225
2226 2002-11-18   Klee Dienes  <kdienes@apple.com>
2227
2228         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2229
2230 2002-11-18  Klee Dienes  <kdienes@apple.com>
2231
2232         * buildsym.c (pop_context): Add comment.
2233         
2234 2002-11-18  Klee Dienes  <kdienes@apple.com>
2235
2236         * buildsym.h (pop_context): Convert to function, defined in
2237         buildsym.c.
2238         * buildsym.c: Include gdb_assert.h.
2239         (pop_context): Implement as C function.  Add check for stack
2240         underflow.
2241         * dbxread.c (process_one_symbol): Complain and stop processing
2242         that symbol if we are already at the top of the context stack for
2243         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2244         when processing N_RBRAC.
2245
2246 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2247
2248         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2249         define.
2250         (struct target_waitstatus): Add opaque definition.
2251         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2252         * exec.c (init_exec_ops): Likewise.
2253         * fork-child.c (clone_and_follow_inferior): Remove.
2254         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2255         * inferior.h (clone_and_follow_inferior): Remove prototype.
2256         * infrun.c (follow_fork_mode_both): Remove.
2257         (follow_fork_mode_kind_names): Remove commented out "both".
2258         (follow_inferior_fork): Remove follow_fork_mode_both support.
2259         * inftarg.c (child_clone_and_follow_inferior): Remove.
2260         (child_post_follow_inferior_by_clone): Remove.
2261         (init_child_ops): Don't set to_clone_and_follow_inferior
2262         or to_post_follow_inferior_by_clone.
2263         * target.c (default_clone_and_follow_inferior): Remove.
2264         (cleanup_target): Don't set to_clone_and_follow_inferior
2265         or to_post_follow_inferior_by_clone.
2266         (find_default_clone_and_follow_inferior): Remove.
2267         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2268         (debug_to_clone_and_follow_inferior): Remove.
2269         (debug_to_post_follow_inferior_by_clone): Remove.
2270         (setup_target_debug): Don't set to_clone_and_follow_inferior
2271         or to_post_follow_inferior_by_clone.
2272         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2273         and to_post_follow_inferior_by_clone.
2274         (child_clone_and_follow_inferior): Remove prototype.
2275         (child_post_follow_inferior_by_clone): Remove prototype.
2276         (target_clone_and_follow_inferior): Remove macro.
2277         (target_post_follow_inferior_by_clone): Remove macro.
2278         (find_default_clone_and_follow_inferior): Remove prototype.
2279
2280 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2281
2282         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2283         inferior_has_vforked, and inferior_has_execd instead of
2284         target_has_forked, target_has_vforked, and target_has_execd.
2285         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2286         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2287         (CHILD_WAIT): Define.
2288         (child_wait): Add prototype.
2289         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2290         Add prototype.
2291         (hpux_has_vforked): Likewise, from child_has_vforked.
2292         (hpux_has_execd): Likewise, from child_has_execd.
2293         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2294         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2295         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2296         and hpux_has_syscall_event instead of the target hooks.
2297         * infrun.c (inferior_has_forked, inferior_has_vforked)
2298         (inferior_has_execd): New functions.
2299         * inftarg.c (not_same_real_pid): Remove.
2300         (child_wait): Remove references to not_same_real_pid,
2301         target_has_forked, target_has_vforked, target_has_execd,
2302         and target_has_syscall_event.
2303         (child_has_forked, child_has_vforked, child_has_execd)
2304         (child_has_syscall_event): Remove.
2305         (init_child_ops): Remove references to child_has_forked,
2306         child_has_vforked, child_has_execd, and child_has_syscall_event.
2307         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2308         (hpux_has_vforked): Likewise, from child_has_vforked.
2309         (hpux_has_execd): Likewise, from child_has_execd.
2310         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2311         * target.c (cleanup_target): Remove references to
2312         to_has_forked, to_has_vforked, to_has_execd, and
2313         to_has_syscall_event.
2314         (update_current_target): Likewise.
2315         (setup_target_debug): Likewise.
2316         (debug_to_has_forked): Remove.
2317         (debug_to_has_vforked): Remove.
2318         (debug_to_has_execd): Remove.
2319         (debug_to_has_syscall_event): Remove.
2320         * target.h (struct target_ops): Remove to_has_forked.
2321         to_has_vforked, to_has_execd, and to_has_syscall_event.
2322         (child_has_forked, child_has_vforked, child_has_execd)
2323         (child_has_syscall_event): Remove prototypes.
2324         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2325         prototypes.
2326         (target_has_forked, target_has_vforked, target_has_execd)
2327         (target_has_syscall_event): Remove macros.
2328
2329 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2330
2331         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2332         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2333         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2334         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2335         * target.c (cleanup_target): Remove reference to
2336         to_can_follow_vfork_prior_to_exec.
2337         (update_current_target): Likewise.
2338         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2339         (setup_target_debug): Remove reference to
2340         to_can_follow_vfork_prior_to_exec.
2341         * target.h (struct target_ops): Remove
2342         to_can_follow_vfork_prior_to_exec.
2343         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2344         (target_can_follow_vfork_prior_to_exec): Remove definition.
2345         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2346         define.
2347         * infrun.c (follow_vfork_when_exec): Remove.
2348         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2349         (follow_exec): Likewise.
2350         (handle_inferior_event): Likewise.
2351         (keep_going): Likewise.
2352
2353 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2354
2355         * frame.c (generic_unwind_get_saved_register): Make static.
2356         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2357         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2358         defaults to generic_unwind_get_saved_register.
2359         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2360         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2361         * frv-tdep.c (frv_gdbarch_init): Ditto.
2362         * i386-tdep.c (i386_gdbarch_init): Ditto.
2363         * s390-tdep.c (s390_gdbarch_init): Ditto.
2364         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2365         * v850-tdep.c (v850_gdbarch_init): Ditto.
2366         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2367         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2368         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2369
2370 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2371
2372         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2373         i386-tdep.c.
2374
2375 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2376
2377         * frame.h (sigtramp_saved_pc): Delete declaration.
2378         * blockframe.c (sigtramp_saved_pc): Delete function.
2379         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2380         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2381         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2382         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2383
2384 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2385
2386         * frame.c (frame_pc_unwind): New function.
2387         (frame_saved_regs_pc_unwind): New function.
2388         (frame_register_unwind): Pass unwind_cache instead of
2389         register_unwind_cache.
2390         (set_unwind_by_pc): Add unwind_pc parameter, set.
2391         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2392         (get_prev_frame): Ditto.
2393         * frame.h (frame_pc_unwind_ftype): Declare.
2394         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2395         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2396         (frame_pc_unwind): Declare.
2397         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2398         (struct dummy_frame): Add comment mentioning that values are for
2399         previous frame.
2400         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2401         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2402         (generic_file_frame_chain_valid): Ditto.
2403         * stack.c (frame_info): Ditto.
2404
2405 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2406
2407         * linespec.c (locate_first_half): New function.
2408         (decode_line_1): Move code into locate_first_half.
2409
2410 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2411
2412         * complaints.h: Add comment explaining how to eliminate a
2413         deprecated_complain call.
2414         * complaints.h: Fix spelling errors.
2415
2416 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2417
2418         * printcmd.c: Remove #include "disasm.h".
2419
2420 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2421
2422         * frame.h: Move the most relevant interface functions to the start
2423         of the file.
2424
2425 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2426
2427         * regcache.h (deprecated_registers): Rename registers.
2428         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2429         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2430         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2431         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2432         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2433         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2434         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2435         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2436         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2437         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2438         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2439         * v850ice.c: Update.
2440
2441 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2442
2443         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2444         NULL buffer.
2445
2446 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2447
2448         * regcache.h (deprecated_read_register_bytes): Rename
2449         read_register_bytes.
2450         (deprecated_write_register_bytes): Rename write_register_bytes.
2451         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2452         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2453         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2454         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2455         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2456         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2457         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2458         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2459         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2460         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2461         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2462         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2463         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2464         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2465
2466 2002-11-13  Jim Blandy  <jimb@redhat.com>
2467
2468         * findvar.c (read_var_value): Doc fix.
2469
2470 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2471
2472         * regcache.c (struct regcache): Replace passthough_p with
2473         readonly_p.
2474         (regcache_xmalloc): Initialize readonly_p.
2475         (build_regcache): Initialize readonly_p.
2476         (regcache_save): New function.
2477         (regcache_restore): New function.
2478         (regcache_cpy): Re-implement using regcache_save and
2479         regcache_restore.
2480         (regcache_raw_read): Update.
2481         (regcache_cooked_read): When a read-only cache, checked for cached
2482         pseudo register values.
2483         (regcache_raw_write): Assert that the cache is not read-only.
2484         Remove code handling a non-passthrough cache.
2485         * regcache.h (regcache_save): Declare.
2486         (regcache_restore): Declare.
2487
2488 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2489
2490         * regcache.c (struct regcache_descr): Add fields
2491         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2492         (init_legacy_regcache_descr): Compute the size of a cooked
2493         register cache and then assign that to sizeof_raw_registers.  Set
2494         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2495         (init_legacy_regcache_descr): Ditto.
2496
2497 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2498
2499         * regcache.c (register_buffer): Move to near start of file, update
2500         description.
2501         (regcache_raw_read): Use.
2502         (regcache_raw_write): Use.
2503         (struct regcache): Rename raw_registers to registers and
2504         raw_register_valid_p to register_valid_p.
2505         (regcache_xmalloc): Update.
2506         (regcache_xfree): Update.
2507         (register_buffer): Update.
2508         (regcache_cpy): Update.
2509         (regcache_cpy_no_passthrough): Update.
2510         (regcache_valid_p): Update.
2511         (deprecated_grub_regcache_for_registers): Update.
2512         (deprecated_grub_regcache_for_register_valid): Update.
2513         (set_register_cached): Update.
2514         (regcache_raw_write): Update.
2515
2516 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2517
2518         * p-exp.y (name_not_typename): Use copy_name to
2519         set current_type variable for fields of THIS.
2520
2521 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2522
2523         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2524         * monitor.c (init_base_monitor_ops): Likewise.
2525         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2526         * remote-array.c (init_array_ops): Likewise.
2527         * remote-e7000.c (init_e7000_ops): Likewise.
2528         * remote-es.c (init_es1800_ops): Likewise.
2529         (init_es1800_child_ops): Likewise.
2530         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2531         * remote-sim.c (init_gdbsim_ops): Likewise.
2532         * remote-st.c (init_st2000_ops): Likewise.
2533         * sol-thread.c (init_sol_core_ops): Likewise.
2534         (init_sol_thread_ops): Likewise.
2535         * v850ice.c (init_850ice_ops): Likewise.
2536         * win32-nat.c (init_child_ops): Likewise.
2537         * wince.c (init_child_ops): Likewise.
2538
2539 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2540
2541         * utils.c (gdb_realpath): Make rp a constant pointer.
2542
2543 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2544
2545         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2546         a constant buffer; cannonicalize_file_name(); realpath() with a
2547         pathconf() defined buffer, xstrdup().
2548
2549 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2550
2551         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2552         to hang2.C; hang3.c to hang3.C.
2553
2554 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2555
2556         * findvar.c (read_var_value): Reenable TLS code.
2557
2558 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2559             Jim Blandy  <jimb@redhat.com>
2560         
2561         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2562         * target.c (update_current_target): Add
2563         to_get_thread_local_address.
2564         * target.h (to_get_thread_local_address): Export.
2565         (target_get_thread_local_address): Define.
2566         (target_get_thread_local_address_p): Define.
2567         * thread-db.c: Include solib-svr4.h.
2568         (td_thr_tls_get_addr_p): Define.
2569         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2570         (thread_db_get_thread_local_address): New function.
2571         (init_thread_db_ops): Initialize to_get_thread_local_address.
2572         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2573         * configure: Regenerate.
2574         * config.in: Regenerate.
2575
2576 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2577
2578         * linespec.c (set_flags): New function.
2579         (decode_line_1): Move code into set_flags.
2580
2581 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2582
2583         * linespec.c (decode_line_1): Move chunks of code to separate
2584         functions.
2585         (initialize_defaults): New function.
2586         (decode_indirect): New function.
2587
2588 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2589
2590         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2591         instead of void_code_ptr.
2592         (sigtramp_saved_pc): Ditto.
2593
2594         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2595         i386_fp_regnum_p.
2596
2597 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2598
2599         * gdbtypes.h (struct main_type): Move artificial flag out of
2600         loc.  New member of ``struct field'' named static_kind.  Reduce
2601         overloaded meaning of bitsize.
2602         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2603         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2604         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2605
2606         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2607         new fields.
2608         (template_to_fixed_record_type, template_to_static_fixed_type)
2609         (to_record_with_fixed_variant_part): Likewise.
2610         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2611         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2612         * dwarfread.c (struct_type, enum_type): Likewise.
2613         * hpread.c (hpread_read_enum_type)
2614         (hpread_read_function_type, hpread_read_doc_function_type)
2615         (hpread_read_struct_type): Likewise.
2616         * mdebugread.c (parse_symbol): Likewise.
2617
2618 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2619
2620         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2621         * stack.c (print_frame_info_base): Update.
2622         (print_frame_info_base, frame_info): Update.
2623         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2624         (sparc_frame_saved_pc): Update.
2625         * ada-lang.c (find_printable_frame): Update.
2626         * breakpoint.c (deprecated_frame_in_dummy): Update.
2627         
2628 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2629
2630         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2631         defined.
2632         (regmap): Extend to cover all registers.
2633         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2634         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2635         definitions.
2636         (fetch_register, sore_register): Simplify.
2637         (old_fetch_inferior_registers, old_store_inferior_registers):
2638         Remove functions.
2639         (cannot_fetch_register, cannot_store_register): Change
2640         implementation to use regmap array to decide which registers
2641         cannot be fetched/stored.  This removes $orig_eax from the
2642         registers that cannot be fetched/stored.
2643         (fetch_inferior_registers): Call fetch_register directly instead
2644         of calling old_fetch_inferior_registers.
2645         (store_inferior_registers): Call store_register directly instead
2646         of calling old_store_inferior_registers.
2647         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2648         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2649         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2650
2651 2002-11-09  Klee Dienes  <kdienes@apple.com>
2652
2653         * i387-tdep.c (i387_supply_register): When called with NULL as a
2654         buffer, mark the register as not provided (to mirror the behavior
2655         of supply_register).
2656         (i387_supply_fxsave): Ditto.
2657         (i387_supply_fsave): Ditto (inherits the behavior from
2658         i387_supply_register).
2659
2660 2002-11-09  Klee Dienes  <kdienes@apple.com>
2661
2662         * blockframe.c (sigtramp_saved_pc): Use
2663         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2664         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2665         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2666         
2667 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2668
2669         * frame.c (get_prev_frame): Test prev_p to identify a previously
2670         unwound frame.  Initialize prev_p.
2671         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2672         comment.
2673
2674 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2675
2676         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2677         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2678         more comments.  Zap dead code.
2679
2680 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2681
2682         * infcmd.c (print_vector_info, print_float_info): Move code that
2683         checks whether the target has any registers and whether there is a
2684         selected frame up, such that it is also used if a target provides
2685         multi-arch definitions of these functions.
2686
2687 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2688
2689         * Makefile.in (DESTDIR): Define.
2690         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2691         prefix.
2692
2693         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2694         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2695
2696 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2697
2698         * i386-linux-tdep.c: Include "reggroups.h".
2699         (i386_linux_register_reggroup_p): New function.
2700         (i386_linux_init_abi): Set register_reggroup_p to
2701         i386_linux_register_reggroup_p.
2702         * i386-tdep.h (i386_register_reggroup_p): Declare.
2703         * i386-tdep.c: Include "reggroups.h".
2704         (i386_init_reggroups): New function.
2705         (i386_add_reggroups): New function.
2706         (i386_register_reggroup_p): New function.
2707         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2708         (_initialize_i386_tdep): Call i386_init_reggroups.
2709         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2710         specific reggroups.
2711
2712 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2713
2714         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2715         request that's available in *BSD.
2716
2717         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2718
2719         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2720         FDOFF_REGNUM.
2721
2722 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2723
2724         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2725         * dummy-frame.c (find_dummy_frame): Rename
2726         generic_find_dummy_frame, make static.  Return the dummy frame
2727         instead of the regcache.
2728         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2729         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2730         (dummy_frame_register_unwind): Rename
2731         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2732         * dummy-frame.h (dummy_frame_register_unwind): Rename
2733         generic_call_dummy_register_unwind.
2734
2735 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2736
2737         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2738         except the inclusion of "i386/tm-i386.h", to...
2739         * config/i386/nm-i386v42mp.h: ...here.
2740         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2741
2742 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2743
2744         * Makefile.in (frame.o): Update dependencies.
2745         * blockframe.c (current_frame, frame_obstack_alloc)
2746         (frame_saved_regs_zalloc, get_current_frame)
2747         (set_current_frame, create_new_frame)
2748         (set_unwind_by_pc, get_next_frame)
2749         (flush_cached_frames, reinit_frame_cache)
2750         (frame_saved_regs_register_unwind)
2751         (deprecated_generic_get_saved_register)
2752         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2753         (_initialize_blockframe): Move frame code from here...
2754         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2755         "annotate.h" and "dummy-frame.h".
2756         (_initialize_frame): New function.
2757
2758 2002-11-08  Jim Blandy  <jimb@redhat.com>
2759
2760         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2761         when we finish a function a context.
2762         * buildsym.h (outermost_context_p): New macro.
2763         (Bug analyzed by David Edelsohn.)
2764
2765 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2766
2767         * blockframe.c: Include "dummy-frame.h".
2768         (struct dummy_frame, dummy_frame_stack)
2769         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2770         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2771         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2772         (generic_save_call_dummy_addr, generic_pop_current_frame)
2773         (generic_pop_dummy_frame, generic_fix_call_dummy)
2774         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2775         dummy frame code from here...
2776         * dummy-frame.c: ...to here.  New file.
2777         * dummy-frame.h: New file.
2778         (generic_call_dummy_register_unwind): Declare.
2779         (generic_find_dummy_frame): Declare.
2780         * Makefile.in (SFILES): Add dummy-frame.c.
2781         (dummy-frame.o): Specify dependencies.
2782         (dummy_frame_h): Define.
2783         (COMMON_OBS): Add dummy-frame.o.
2784         (blockframe.o): Update dependencies.
2785
2786 2002-11-08  Jim Blandy  <jimb@redhat.com>
2787
2788         * dwarf2read.c (read_func_scope): Restore local_symbols and
2789         param_symbols after we finish the function context.  (Based on a
2790         patch from David Edelsohn.)
2791
2792 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2793
2794         * linespec.c (symbol_found): New function.
2795         (minsym_found): New function.
2796         (decode_line_1): Separate out some code into separate functions.
2797
2798 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2799
2800         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2801         the benefit of the interix target.
2802         * i386-tdep.h (i386_frameless_signal_p): Declare.
2803
2804 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2805
2806         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2807         declaration that snuck in from change below.
2808
2809 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2810
2811         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2812         all callers.
2813         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2814         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2815         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2816         (i386_mxcsr_regnum_p): new function.  Use instead of
2817         MXCSR_REGNUM_P.
2818         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2819         (i386_sse_regnum_p): Declare.
2820         (i386_mxcsr_regnum_p): Declare.
2821         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2822         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2823         (IS_FP_REGNUM): Update definition.
2824         (IS_FPU_CTRL_REGNUM): Update definition..
2825         (IS_SSE_REGNUM): Update definition..
2826         * i386v-nat.c (register_u_addr): Update.
2827         * go32-nat.c (fetch_register): Update.
2828         (store_register): Update.
2829
2830 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2831
2832         Preparation work to convert the hppa targets to multiarch partial.
2833
2834         * hppa-tdep.c: Add new functions replacing macro bodies from
2835         config/pa/tm-hppa.h. These function will be used to initialize
2836         the gdbarch structure. Import some comments from tm-hppa.h,
2837         and place them where appropriate, to avoid loosing them when
2838         we cleanup this file.
2839         (hppa_reg_struct_has_addr): New function.
2840         (hppa_inner_than): New function.
2841         (hppa_stack_align): New function.
2842         (hppa_pc_requires_run_before_use): New function.
2843         (hppa_instruction_nullified): New function.
2844         (hppa_register_byte): New function.
2845         (hppa_register_virtual_type): New function.
2846         (hppa_store_struct_return): New function.
2847         (hppa_cannot_store_register): New function.
2848         (hppa_frame_args_address): New function.
2849         (hppa_frame_locals_address): New function.
2850         (hppa_smash_text_address): New function.
2851         (hppa_coerce_float_to_double): New function. Requires the inclusion
2852         of "language.h".
2853
2854         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2855
2856         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2857         gdbarch-eligible macro to a call to the new associated function
2858         created in hppa-tdep.c.
2859         (INNER_THAN): Likewise.
2860         (STACK_ALIGN): Likewise.
2861         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2862         (INSTRUCTION_NULLIFIED): Likewise.
2863         (REGISTER_BYTE): Likewise.
2864         (REGISTER_VIRTUAL_TYPE): Likewise.
2865         (STORE_STRUCT_RETURN): Likewise.
2866         (CANNOT_STORE_REGISTER): Likewise.
2867         (FRAME_ARGS_ADDRESS): Likewise.
2868         (FRAME_LOCALS_ADDRESS): Likewise.
2869         (SMASH_TEXT_ADDRESS): Likewise.
2870         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2871         (ABOUT_TO_RETURN): Delete, as no longer used.
2872
2873 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2874
2875         * printcmd.c (disassemble_command): Remove obsolete function.
2876         (_initialize_printcmd): Do not create disassemble command here.
2877         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2878         disassemble command.
2879         (init_cli_cmds): Create disassemble command here instead.
2880
2881 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2882
2883         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2884
2885 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2886
2887         * regcache.h (regcache_cooked_read_using_offset_hack)
2888         (regcache_cooked_write_using_offset_hack): Delete declarations.
2889         (register_changed): Delete declaration.
2890         * regcache.c (regcache_cooked_read_using_offset_hack)
2891         (regcache_cooked_write_using_offset_hack): Delete functions.
2892         (cooked_xfer_using_offset_hack): Delete function.
2893         (register_changed): Delete function.
2894
2895 2002-11-07  Jim Blandy  <jimb@redhat.com>
2896
2897         * macroscope.c: #include "complaints.h".
2898         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2899         but not in the macro table.
2900         * Makefile.in (macroscope.o): Record dependency.
2901
2902 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2903
2904         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2905
2906 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2907
2908         * regcache.c (deprecated_registers_fetched): Update.
2909         * regcache.h (deprecated_registers_fetched): Rename
2910         registers_fetched.
2911         * remote-vxsparc.c (vx_read_register): Update.
2912         * remote-vxmips.c (vx_read_register): Update.
2913         * remote-vx68.c (vx_read_register): Update.
2914         * irix5-nat.c (fetch_core_registers): Update.
2915         * mipsm3-nat.c (fetch_inferior_registers): Update.
2916         * sun3-nat.c (fetch_inferior_registers): Update.
2917         * symm-nat.c (fetch_inferior_registers): Update.
2918         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2919         (fetch_core_registers): Update.
2920         (fetch_kcore_registers): Update.
2921         * mips-nat.c (fetch_inferior_registers): Update.
2922         * corelow.c (get_core_registers): Update.
2923         * a68v-nat.c (fetch_inferior_registers): Update.
2924
2925 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2926
2927         Put in place the framework necessary for multiarching the hppa targets.
2928         * hppa-tdep.c (hppa_gdbarch_init): New function.
2929         (hppa_dump_tdep): New function.
2930         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2931         tdep structure dumper.
2932         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2933         until the multi-arching conversion has partially been completed.
2934
2935 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2936
2937         * valops.c (value_assign): Merge lval_register case into
2938         lval_reg_frame_relative.  Use frame_register and
2939         regcache_cooked_write instead of get_saved_register and
2940         write_register_bytes.  After flushing the register cache, try to
2941         re-select the selected frame.
2942
2943 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2944
2945         * regcache.h (deprecated_register_valid): Rename register_valid.
2946         * regcache.c: Update.
2947         * ia64-aix-nat.c: Update.
2948         * i386gnu-nat.c: Update.
2949         * alpha-nat.c: Update.
2950         * sparc-nat.c: Update.
2951         * lynx-nat.c: Update.
2952         * remote-mips.c: Update.
2953
2954 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2955
2956         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2957         to end of file, to be more consistent with the pratice followed
2958         by other targets.
2959
2960 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2961
2962         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2963         (print_float_info): Print registers in float_reggroup.
2964         (print_vector_info): Print registers in vector_reggroup.
2965         (default_print_registers_info): When all, print registers in
2966         all_reggroup.  Otherwize, print registers in general_reggroup.
2967         (registers_info): Rewrite.  Add support for register groups.
2968         Eliminate a goto.
2969
2970 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2971
2972         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2973         ages.
2974         (symtab_symbol_info): Remove eons old ifdeffed out code.
2975         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2976         command.
2977
2978 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2979
2980         * c-exp.y: Add missing semi-colons.
2981         * f-exp.y: Add missing semi-colons.
2982         * m2-exp.y: Add missing semi-colons.
2983         * p-exp.y: Add missing semi-colons.
2984         Add empty action to start rule to avoid a type clash error when
2985         building with bison >= 1.50.
2986
2987 2002-11-06  Jim Blandy  <jimb@redhat.com>
2988
2989         * macrotab.h (struct macro_source_file): Doc fix.
2990
2991 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2992
2993         * varobj.c (child_exists, cplus_number_of_children): Change
2994         STREQ macro references to strcmp.
2995         (cplus_name_of_child): Change code to handle the fact that
2996         fields are not necessarily contiguous with regards to their 
2997         access control. This is a fix for PR gdb/792.
2998
2999 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3000
3001         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3002         * gdbarch.h, gdbarch.c: Regnerate.
3003         * frame.h (frame_register): Declare.
3004         * frame.c (frame_register): New function.
3005         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3006         GET_SAVED_REGISTER, otherwize call
3007         generic_unwind_get_saved_register.
3008         (frame_register_read): Use frame_register instead of
3009         get_saved_register.
3010
3011 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3012         
3013         From Jim Ingham  <jingham@apple.com>:
3014         * event-top.c (gdb_disable_readline): New function.
3015         (_initialize_event_loop): Move comment.
3016
3017 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3018
3019         * event-loop.c (start_event_loop): Add comment.
3020         Update copyright.
3021
3022 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3023
3024         * infcmd.c (default_print_registers_info): Do not call
3025         PRINT_REGISTER_HOOK.
3026
3027 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3028
3029         * sparc-tdep.c (sparc_print_register_hook): Make static.
3030         (sparc_print_registers_info): New function.
3031         (sparc_do_registers_info): New function.
3032         (sparclet_print_registers_info): New function.
3033         (sparclet_do_registers_info): New function.
3034         (do_sparc_print_registers_info): New function.
3035         (sparc_print_registers): New static function, clone of infcmd.c's
3036         default_print_registers_info.
3037         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3038         (sparclet_do_registers_info): Declare.
3039         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3040         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3041         Re-define.
3042         (sparc_do_registers_info): Declare.
3043         (PRINT_REGISTER_HOOK): Delete macro.
3044         (sparc_print_register_hook): Delete declaration.
3045
3046 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3047
3048         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3049         functions.
3050         (lookup_symbol_aux_local): New function.
3051         (lookup_symbol_aux_symtabs): New function.
3052         (lookup_symbol_aux_psymtabs): New function.
3053
3054 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3055
3056         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3057         previous values of 'objfile' and 'block'.
3058
3059 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3060
3061         * values.c (value_change_enclosing_type): Set 
3062         enclosing_type field correctly also for the case where 
3063         more memory needs to be allocated.
3064
3065 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3066
3067         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3068         of puts_filtered.
3069
3070         * i387-tdep.c (i387_print_float_info): Replace calls to
3071         register_read and deprecated_read_register_gen with calls to
3072         frame_register_read, and make the necessary adjustments to the
3073         surrounding code.
3074
3075 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3076
3077         * gdbarch.sh (register_reggroup_p): Allow default value.
3078         * gdbarch.h, gdbarch.c: Regenerate.
3079
3080 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3081
3082         * regcache.h: Add coment indicating replacements for deprecated
3083         functions.
3084
3085 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3086
3087         * reggroups.h, reggroups.c: New files.
3088         * regcache.c: Include "reggroups.h".
3089         (enum regcache_dump_what): Add `regcache_dump_groups'.
3090         (regcache_dump): Contract size of the "Type" column.  When
3091         specified, dump the register's groups.
3092         (maintenance_print_register_groups): New function.
3093         (_initialize_regcache): Add command `maint print register-groups'.
3094         * Makefile.in (COMMON_OBS): Add reggroups.o
3095         (SFILES): Add reggroups.c.
3096         (reggroups_h): Define.
3097         (regcache.o, gdbarch.o): Update dependencies.
3098         (reggroups.o): Specify dependencies.
3099         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3100         Add opaque declaration for `struct reggroup' in generated .h file.
3101         Include "reggroups.h" in generated .c file.
3102         gdbarch.h, gdbarch.c: Re-generate.
3103
3104 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3105
3106         * regcache.h (deprecated_read_register_gen): Rename
3107         read_register_gen.
3108         (deprecated_write_register_gen): Rename write_register_gen.
3109         * i387-tdep.c: Update.
3110         * x86-64-linux-nat.c: Update
3111         * wince.c: Update.
3112         * thread-db.c: Update.
3113         * win32-nat.c: Update.
3114         * mips-tdep.c: Update.
3115         * d10v-tdep.c: Update.
3116         * cris-tdep.c: Update.
3117         * remote-sim.c: Update.
3118         * remote-rdi.c: Update.
3119         * remote-rdp.c: Update.
3120         * frame.c: Update.
3121         * target.c: Update.
3122         * blockframe.c: Update.
3123         * x86-64-tdep.c: Update.
3124         * xstormy16-tdep.c: Update.
3125         * sh-tdep.c: Update.
3126         * s390-tdep.c: Update.
3127         * rs6000-tdep.c: Update.
3128         * sparc-tdep.c: Update.
3129         * i386-tdep.c: Update.
3130         * dwarf2cfi.c: Update.
3131         * regcache.c: Update.
3132
3133 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3134
3135         New interix-specific files:
3136         * config/i386/nm-interix.h: New file.
3137         * config/i386/interix.mh: New file.
3138         * config/i386/interix.mt: New file.
3139         * i386-interix-nat.c: New file.
3140         * i386-interix-tdep.c: New file.
3141
3142 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3143
3144         * frame.h (deprecated_generic_get_saved_register): Rename
3145         generic_get_saved_register.
3146         * blockframe.c (deprecated_generic_get_saved_register): Update.
3147         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3148         (xstormy16_frame_saved_register): Update.
3149         * sh-tdep.c (sh_gdbarch_init): Update.
3150         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3151         * ia64-tdep.c (ia64_get_saved_register): Update.
3152         * cris-tdep.c (cris_gdbarch_init): Update.
3153         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3154         * arm-tdep.c (arm_gdbarch_init): Update.
3155
3156 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3157
3158         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3159
3160 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3161
3162         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3163         trampolines in sigaction.
3164
3165 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3166
3167         * h8300-tdep.c: Include "gdb_assert.h".
3168         (h8300_print_register): Add gdbarch, file and frame parameters.
3169         Use frame_read_unsigned_register to read the register's value.
3170         Use fprintf_filtered to display output.
3171         (h8300_print_registers_info): Replace h8300_do_registers_info.
3172         (h8300_gdbarch_init): Set print_registers_info.
3173
3174 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3175
3176         * frame.c (frame_read_unsigned_register): New function.
3177         (frame_read_signed_register): New function.
3178         * frame.h (frame_read_unsigned_register): Declare.
3179         (frame_read_signed_register): Declare.
3180
3181 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3182
3183         * h8500-tdep.c (h8500_print_registers_info): New static function,
3184         clone of infcmd.c's default_print_registers_info.
3185         (h8500_do_registers_info): New funtion.
3186         (h8500_print_register_hook): Rename print_register_hook, make
3187         static.
3188
3189         * config/h8500/tm-h8500.h: Update copyright.
3190         (DEPRECATED_DO_REGISTERS_INFO): Define.
3191         (h8500_do_registers_info: Declare.
3192         (PRINT_REGISTER_HOOK): Delete macro.
3193         (print_register_hook): Delete function.
3194
3195 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3196
3197         * z8k-tdep.c (z8k_print_register_hook): Make static.
3198         (z8k_print_registers_info): New static function, clone of
3199         infcmd.c's default_print_registers_info.
3200         (z8k_do_registers_info): New function.  Wrap
3201         z8k_print_registers_info.
3202         * config/z8k/tm-z8k.h: Update copyright.
3203         (PRINT_REGISTER_HOOK): Delete macro.
3204         (z8k_print_register_hook): Delete declaration.
3205         (DEPRECATED_DO_REGISTERS_INFO): Define.
3206         (z8k_do_registers_info): Declare.
3207
3208 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3209
3210         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3211         as this is already provided by value.h, and was actually causing
3212         a compilation error because of a conflict in parameter type
3213         declaration due to a missing const keyword.
3214         (low_text_segment_addres): Fix a compilation warning.
3215
3216 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3217
3218         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3219         registers without a name.
3220         (mips_linux_cannot_store_register): Don't store registers without
3221         a name.
3222
3223 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3224
3225         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3226         out.)
3227         * symtab.h: Delete prototype for find_addr_symbol.
3228
3229 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3230
3231         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3232         DO_REGISTERS_INFO.
3233         gdbarch.h, gdbarch.c: Re-generate.
3234         * infcmd.c (default_print_registers_info): Update reference.
3235         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3236         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3237         * sh-tdep.c (sh_gdbarch_init): Ditto.
3238         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3239         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3240
3241 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3242
3243         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3244         cfi_init_extra_frame_info.
3245         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3246         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3247
3248         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3249         target where necessary.  Add more comments and remove the ones
3250         that don't provide any useful information.
3251
3252         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3253         deprecated_read_register_dummy with
3254         frame_unwind_unsigned_register.
3255
3256         * i386-tdep.c (i386_extract_struct_value_address): Use
3257         regcache_raw_read_unsigned instead of
3258         regcache_cooked_read_unsigned since we know that the register
3259         we're reading isn't a pseudo register.  Rename variable 'val' into
3260         the more descriptive 'addr'.
3261
3262         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3263         (x86_64_push_return_address): Add comment.
3264         (x86_64_pop_frame): Make static.
3265         (examine_argument): Clarify comment.
3266         (x86_64_skip_prologue): Make prolog_expact variable static.
3267
3268         * dwarf2cfi.c: Fix some formatting problems.
3269         (context_cpy, read_encoded_pointer): Clarify comments.
3270
3271         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3272         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3273         i386 target back into x86_64_gdbarch_init.  Add some comments and
3274         remove meaningless ones.
3275
3276 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3277
3278         * complaints.h (struct deprecated_complaint): Rename `struct
3279         complaint'.
3280         * complaints.c (complain): Update.
3281         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3282         incorrect comment indicating that "symfile.h" was being included
3283         for the `struct complaint' definition.
3284         * remote-vx.c: Update.
3285         * objc-lang.c: Update.
3286         * xcoffread.c: Update.
3287         * hpread.c: Update.
3288         * mdebugread.c: Update.
3289         * stabsread.c: Update.
3290         * dwarf2read.c: Update.
3291         * dwarfread.c: Update.
3292         * elfread.c: Update.
3293         * coffread.c: Update.
3294         * stabsread.h: Update.
3295         * dbxread.c: Update.
3296         * buildsym.c: Update.
3297         * gdbtypes.c: Update.
3298         * macrotab.c: Update.
3299
3300 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3301
3302         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3303         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3304         (x86_64_init_abi): ...new function.
3305
3306         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3307         * i386v-nat.c: Include "i386-tdep.h".
3308
3309 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3310
3311         * gdbtypes.c (address_space_name_to_int): Update.
3312         (address_space_int_to_name): Update.
3313         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3314         multi-arch predicate.
3315         (address_class_name_to_type_flags): Ditto.
3316         * gdbarch.h, gdbarch.c: Re-generate.
3317         
3318         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3319
3320 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3321
3322         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3323
3324 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3325
3326         * symtab.h (INIT_SAL): Delete macro.
3327         (init_sal): Export.
3328         * symtab.c (init_sal): New function.
3329
3330         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3331         to init_sal function call.
3332         (find_sal_from_funcs_and_line): Ditto.
3333         (all_sals_for_line): Ditto. 
3334         * breakpoint.c (create_internal_breakpoint): Ditto. 
3335         (create_fork_vfork_event_catchpoint): Ditto. 
3336         (create_exec_event_catchpoint): Ditto. 
3337         (parse_breakpoint_sals): Ditto. 
3338         (watch_command_1): Ditto. 
3339         (handle_gnu_4_16_catch_command): Ditto.
3340         (clear_command): Ditto. 
3341         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3342         * infcmd.c (run_stack_dummy): Ditto. 
3343         * infrun.c (process_event_stop_test): Ditto.
3344         (check_sigtramp2): Ditto.
3345         (step_over_function): Ditto. 
3346         * linespec.c (decode_line_2): Ditto. 
3347         (decode_line_1): Ditto. 
3348         * source.c (line_info): Ditto. 
3349         * symtab.c (find_pc_sect_line): Ditto.
3350
3351 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3352
3353         * dwarf2cfi.c (struct context)
3354         (struct context_reg): Moved to dwarf2cfi.h
3355         (context_alloc, frame_state_alloc, context_cpy):
3356         Made extern instead of static, removed prototypes.
3357         * dwarf2cfi.h (struct context)
3358         (struct context_reg): New, moved from dwarf2cfi.c
3359         (context_alloc, frame_state_alloc, context_cpy):
3360         New prototypes.
3361         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3362         Changed from static to extern.
3363         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3364         (LINUX_SIGCONTEXT_FP_OFFSET)
3365         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3366         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3367         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3368         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3369         set_gdbarch_*() calls now use x86-64 specific functions 
3370         instead of DWARF2 CFI ones.
3371         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3372         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3373         (x86_64_init_extra_frame_info): New prototypes.
3374         
3375 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3376
3377         * linespec.c: #include "parser-defs.h".
3378         Delete prototype for find_template_name_end.
3379         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3380
3381 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3382
3383         * NEWS: add recent mi fixes.
3384         * varobj.c (struct varobj): Add new "updated" flag.
3385         (new_variable): Default "updated" flag to 0.
3386         (varobj_set_value): Set "updated" flag to 1 if value
3387         changes.
3388         (varobj_update): Check varobj "updated" flag before
3389         comparing old and refreshed values.  Fix for
3390         PR gdb/702.
3391
3392 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3393
3394         * parse.c (parse_exp_1): Use BLOCK_START.
3395         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3396         SYMBOL_BLOCK_VALUE.
3397         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3398
3399 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3400
3401         * symtab.c: Delete cplusplus_hint.
3402         Delete prototype for find_template_name_end.
3403
3404 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3405
3406         * symtab.h: Update comment.
3407
3408 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3409
3410         * printcmd.c (address_info): Restore quotes in output.
3411         * valops.c (value_of_local): Restore quotes in error message.
3412
3413 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3414
3415         * symtab.c (symbol_demangled_name): New function.
3416         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3417         turning most of it into a function.
3418         (symbol_demangled_name): Export.
3419
3420 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3421
3422         * valops.c (value_of_local): Restore quotes in error message.
3423
3424 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3425
3426         * symtab.c (symbol_init_language_specific): New function.
3427         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3428         turning most of it into a function.
3429         (symbol_init_language_specific): Export.
3430
3431 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3432
3433         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3434         (dwarf_attr_name): Ditto.
3435         (dwarf_type_encoding_name): Ditto.
3436         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3437         (process_die): Handle DW_TAG_namespace,
3438         DW_TAG_imported_declaration, DW_TAG_imported_module.
3439         (read_namespace): New function.
3440
3441 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3442
3443         * configure.in: Define NEW_PROC_API on Interix too.
3444         * configure: Regenerate.
3445
3446 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3447
3448         * configure: Regenerate using the proper version of autoconf.
3449
3450 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3451
3452         * findvar.c (read_var_value): Temporarily disable TLS code, until
3453         complete TLS support is added.
3454
3455 2002-10-21  Jim Blandy  <jimb@redhat.com>
3456             Elena Zannoni  <ezannoni@redhat.com>
3457
3458         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3459         for thread local storage locations.
3460         (struct symbol): Add objfile field.
3461         (SYMBOL_OBJFILE): Define.
3462         * dwarf2read.c (is_thread_local): New static variable.
3463         (new_symbol): If variable is in thread local fill in address class
3464         and objfile appropriately.
3465         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3466         stack operation.
3467         * printcmd.c (address_info): Print the information for thread
3468         local storage variable.
3469         * findvar.c (read_var_value): In case of thread local variable,
3470         defer to the target vector code to compute address.
3471
3472 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3473
3474         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3475         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3476
3477 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3478
3479         * symtab.h (address_class):  Rename
3480         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3481         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3482         * printcmd.c (address_info): Ditto.
3483         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3484
3485 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3486
3487         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3488         DBREG_DRX macro to acces debug registers.
3489
3490         * Makefile.in (i386obsd-tdep.o): New target.
3491
3492         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3493         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3494
3495         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3496         * config/i386/obsd.mt: New file.
3497         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3498         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3499         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3500         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3501         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3502         * i386obsd-tdep.c: New file.
3503
3504 2002-10-19  Adam Fedor  <fedor@gnu.org>
3505
3506         * objc-exp.y (name_not_typename): Fix invalid comment.  
3507
3508 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3509
3510         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3511         to allocate partial syms and macro byte caches.
3512
3513 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3514
3515         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3516
3517 2002-10-18  Adam Fedor  <fedor@gnu.org>
3518
3519         * stabsread.c (find_name_end): New function.
3520         (define_symbol): Use it.
3521
3522 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3523
3524         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3525         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3526         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3527         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3528
3529 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3530
3531         * symfile.h: Add opaque declaration for struct obstack.
3532         Declare obsavestring to take a const char *.
3533         * symfile.c (obsavestring): Make first argument a const char *.
3534
3535 2002-10-16  Adam Fedor  <fedor@gnu.org>
3536
3537         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3538         names when matching breakpoints in current file.
3539
3540 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3541
3542         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3543         (read_tag_pointer_type): Add address class support.
3544         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3545         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3546         New methods.
3547         * gdbarch.h, gdbarch.c: Regenerate.
3548         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3549         (make_type_with_address_space, recursive_type_dump): Add address
3550         class support.
3551         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3552         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3553         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3554
3555 2002-10-16  Klee Dienes  <kdienes@apple.com>
3556
3557         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3558         to get the last character of a char[] buffer, not
3559         name[sizeof(vptr_name)-1].
3560
3561 2002-10-14  Adam Fedor  <fedor@gnu.org>
3562
3563         * symtab.h: New objc_specific struct.
3564         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3565         (SYMBOL_DEMANGLED_NAME): Likewise.
3566
3567 2002-10-14  Adam Fedor  <fedor@gnu.org>
3568
3569         * symfile.c (init_filename_language_table): Add ObjC file extension.
3570
3571 2002-10-14  Adam Fedor  <fedor@gnu.org>
3572
3573         * utils.c (puts_filtered_tabular): New function.
3574         (fprintf_symbol_filtered): Get ObjC demangled name.
3575         * defs.h (puts_filtered_tabular): Declared.
3576
3577 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3578
3579         * c-lang.h (c_type_print_varspec_prefix): Delete.
3580         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3581         ``need_post_space'' parameter.  Adjust all callers.
3582
3583 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3584  
3585         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3586         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3587         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3588         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3589
3590 2002-10-13  Adam Fedor  <fedor@gnu.org>
3591
3592         * source.c (print_source_lines): Update comments.
3593
3594 2002-10-13  Adam Fedor  <fedor@gnu.org>
3595
3596         * valops.c (value_of_local): New function.
3597         (value_of_this): Use it.
3598         * value.h (value_of_local): Declared.
3599
3600 2002-10-13  Adam Fedor  <fedor@gnu.org>
3601
3602         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3603         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3604
3605 2002-10-12  Adam Fedor  <fedor@gnu.org>
3606
3607         * language.c (binop_result_type): Add language_objc to case.
3608         (integral_type): Likewise.
3609         (character_type): Likewise.
3610         (string_type): Likewise.
3611         (boolean_type): Likewise.
3612         (structured_type): Likewise.
3613         (binop_type_check): Likewise.
3614
3615 2002-10-11  Adam Fedor  <fedor@gnu.org>
3616
3617         * printcmd.c (address_info): Print 'self' for ObjC.
3618
3619 2002-10-11  Adam Fedor  <fedor@gnu.org>
3620
3621         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3622         OP_SELF.
3623
3624 2002-10-11  Adam Fedor  <fedor@gnu.org>
3625
3626         * language.h (CAST_IS_CONVERSION): Add language_objc.
3627
3628 2002-10-11  Adam Fedor  <fedor@gnu.org>
3629
3630         * defs.h (enum language): Add language_objc.
3631
3632 2002-10-11  Klee Dienes  <kdienes@apple.com>
3633
3634         * corefile.c (read_memory_typed_address): New function.
3635         * gdbcore.h (read_memory_typed_address): Add prototype.
3636         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3637         to read a value destined for a CORE_ADDR, not read_memory_integer.
3638         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3639         (f77_get_dynamic_lowerbound): Ditto.
3640
3641 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3642
3643         * utils.c (string_to_core_addr): After turning string into
3644         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3645         which will do necessary sign-extension, etc.
3646
3647 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3648
3649         * c-exp.y (THIS): Delete token and grammar rule.
3650         (yylex): Don't return THIS.
3651         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3652         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3653         * demangle.c (cplus_markers): Update comment.  Put '$'
3654         first.  Remove CPLUS_MARKER.
3655         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3656         * jv-exp.y (THIS): Delete token and grammar rule.
3657         (yylex): Don't return THIS.
3658         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3659         * objc-exp.y (THIS): Delete token and grammar rule.
3660         (yylex): Don't return THIS.
3661         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3662         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3663         (read_member_functions): Likewise for opname.
3664         (read_tilde_fields): Use is_cplus_marker.
3665
3666         * defs.h (CPLUS_MARKER): Don't define.
3667         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3668         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3669         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3670         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3671         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3672
3673         * config/i386/tm-i386v4.h: Delete file.
3674         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3675         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3676         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3677         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3678         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3679         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3680         * config/i386/i386v4.mt (TM_FILE): Likewise.
3681         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3682
3683 2002-10-10  Marko Mlinar  <markom@opencores.org>
3684
3685         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3686         accidentially not commited 2002-10-09
3687         * gdbarch.h, gdbarch.c: Re-generate.
3688
3689 2002-10-09  Marko Mlinar  <markom@opencores.org>
3690
3691         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3692         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3693         * gdbarch.h, gdbarch.c: Re-generate.
3694
3695 2002-10-08  Petr Sorfa <petrs@caldera.com>
3696
3697         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3698
3699         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3700         so we can work on more than one compilation unit at a time.  This
3701         helps prepare GDB to handle inter-CU die references.
3702         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3703         the code to be defined before struct comp_unit_head.
3704         (comp_unit_head): Added new members - offset, cu_head,
3705         begin_die, next and dwarf2_abbrevs.
3706         (dwarf2_abbrevs): Removed single static var; now member of
3707         struct comp_unit_head.
3708         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3709         members.
3710         (psymtab_to_symtab_1): Changed to work with the new
3711         struct comp_unit_head.
3712         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3713         constructs the dwarf2_abbrevs[] inside the cu_header.
3714         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3715         dwarf2_abbrev table to clean up.
3716         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3717         handling of dwarf2_abbrevs inside the cu_header.
3718         (read_partial_die): Now supports the call to the new
3719         dwarf2_lookup_abbrev.
3720         (read_full_die): Now supports the call to the new
3721         dwarf2_lookup_abbrev.
3722
3723 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3724
3725         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3726         insure that shell variables, such as "transformed_name" are propagated
3727         to later shell statements in rule.
3728
3729 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3730
3731         * config/i386/nm-i386sco.h: Add protection against
3732         multiple-inclusion.  Include "i386/nm-i386v.h".
3733         (REGISTER_U_ADDR): Remove define.
3734         (i386_register_u_addr): Remove prototype.
3735
3736 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3737
3738         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3739         before treating it as a single-step event.
3740
3741 2002-10-03  Adam Fedor  <fedor@gnu.org>
3742
3743         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3744         (objc_demangle): Remove assignment in if statements, Replace
3745         free with xfree.
3746         (add_msglist): Likewise.
3747         (end_msglist): Likewise.
3748         (complare_selectors): Likewise.
3749         (selectors_info): Likewise.
3750         (compare_classes): Likewise.
3751         (classes_info): Likewise.
3752         (print_object_command): Likewise.
3753         (find_objc_msgcall_submethod): Replace PTR with void *.
3754         * objc-lang.h: Remove check for __STDC__.
3755
3756 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3757
3758         * ui-out.h (ui_out_field_fmt_int): New prototype.
3759         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3760         of field width and alignment.
3761         * stack.c (print_frame_info_base): When printing frame level, use
3762         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3763         PR gdb/192
3764
3765 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3766
3767         * MAINTAINERS: Add self to Write After Approval list.
3768
3769 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3770
3771         * infcmd.c (interrupt_target_command_wrapper): Delete.
3772         (interrupt_target_command): Make non static.
3773         (nofp_registers_info): Make static.
3774         * stack.c (return_command_wrapper): Delete.
3775         (return_command): Make non static.
3776
3777 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3778
3779         * event-top.c (gdb_setup_readline): New function. Code moved from
3780         _initialize_event_loop().
3781         (_initialize_event_loop): Call gdb_setup_readline().
3782
3783 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3784
3785         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3786         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3787         * gdbarch.h, gdbarch.c: Re-generate.
3788
3789 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3790
3791         Fix PR gdb/778
3792         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3793         before recursing.
3794         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3795         of fill_in_vptr_fieldno.
3796
3797 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3798
3799         * inferior.h (registers_info, stepi_command, nexti_command,
3800         continue_command, interrupt_target_command): Export from infcmd.c.
3801         * frame.h (args_info, selected_frame_level_changed_hook,
3802         return_command): Export from stack.c.
3803         * v850ice.c (stepi_command, nexti_command, continue_command): use
3804         prototypes from inferior.h.
3805         * tracepoint.c (registers_info, args_info, locals_info): Use
3806         prototypes from frame.h and inferior.h.
3807         * Makefile.in (mi-main.o): Add dependency on frame.h.
3808
3809 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3810
3811         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3812         value in register 3 adjusted by ppc_gp0_regnum.
3813
3814         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3815
3816 2002-10-02  Marko Mlinar <markom@opencores.org>
3817
3818         * MAINTAINERS: Add myself to the Write After Approval list.
3819
3820 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3821
3822         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3823         of the section for the N64 ABI, fixed.
3824
3825         * config/mips/tm-irix6.h: Include solib.h.
3826
3827 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3828
3829         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3830         GNU operators.
3831
3832 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3833
3834         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3835         and that "mi0" syntax has been removed.
3836
3837 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3838
3839         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3840         * ppc-sysv-tdep.c: #include "gdb_string.h".
3841         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3842         pacify GCC.
3843
3844 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3845
3846         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3847         "vrsave"'s register number.
3848
3849 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3850
3851         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3852         use frame_unwind_signed_register to obtain the PC.
3853         (mips_frame_chain): Handle a generic dummy frame.
3854         (mips_init_extra_frame_info): When a generic dummy frame, don't
3855         re-compute the frame base.
3856         (mips_pop_frame): Handle generic dummy frames.
3857         (mips_gdbarch_init): When generic dummy frames, set
3858         use_generic_dummy_frames, push_dummy_frame to
3859         generic_push_dummy_frame, pc_in_call_dummy to
3860         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3861         generic_save_dummy_frame_tos.
3862
3863 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3864
3865         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3866         against TOP when TOP was explictly set.
3867         (generic_push_dummy_frame): Set TOP to zero.
3868
3869 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3870
3871         * event-loop.c (start_event_loop): Rename variable 'result' to
3872         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3873
3874 2002-09-30  Keith Seitz  <keiths@redhat.com>
3875
3876         * gdb-events.sh (selected_thread_changed): New event.
3877         * gdb-events.c: Regenerated.
3878         * gdb-events.h: Regenerated.
3879
3880 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3881
3882         * MAINTAINERS: Add self to Write After Approval list.
3883
3884 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3885
3886         * disasm.c: New file.  
3887         * disasm.h: New file.  
3888         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3889         (compare_lines): Ditto.
3890         (dump_insns): Ditto.
3891         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3892         argument.
3893         (do_assembly_only): Ditto.
3894         (do_disassembly): Renamed to gdb_disassembly and moved to
3895         disasm.c.  Sdded uiout argument.
3896         * Makefile.in: Add new files.  Reorder SFILES list. Update
3897         dependencies.  Include libgdb.a later in the insight executable.
3898
3899 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3900
3901         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3902         bfd/elf64-alpha-fbsd.c.
3903
3904 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3905
3906         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3907         i386gnu-tdep.c.
3908
3909 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3910
3911         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3912         __FUNCTION__.
3913         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3914         function name.
3915         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3916         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3917         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3918         (S_msg_sig_post_reply): Ditto.
3919         
3920 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3921
3922         * sh-tdep.c (sh_use_struct_convention): Use definition according
3923         to ABI.
3924         (sh_push_arguments): Store in register with correct endianess.
3925         (sh_default_store_return_value): Ditto.
3926         (sh_gdbarch_init): Set sizeof long double to 8.
3927
3928 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3929
3930         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3931         Fix some whitespace problems.
3932
3933 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3934
3935         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3936         (mcore-tdep.o): Ditto.
3937         (ns32k-tdep.o): Ditto.
3938         (ns32knbsd-tdep.o): Ditto.
3939         (sh3-rom.o): Ditto.
3940         (vax-tdep.o): Ditto.
3941         * cris-tdep.c: #include "gdb_string.h"
3942         * mcore-tdep.c: Ditto.
3943         * ns32k-tdep.c: Ditto.
3944         * ns32knbsd-tdep.c: Ditto.
3945         * sh3-rom.c: Ditto.
3946         * vax-tdep.c: Ditto.
3947
3948 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3949
3950         * config/djgpp/fnchange.lst: Add entries for
3951         gdb/testsuite/gdb.c++/m-static files.
3952
3953 2002-09-27  Jim Wilson  <wilson@redhat.com>
3954
3955         * MAINTAINERS: Add myself to the Write After Approval list.
3956
3957 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3958
3959         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3960
3961
3962 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3963
3964         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3965         frame.
3966
3967 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3968
3969         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3970         (rs6000_struct_return_address): Delete variable.
3971         (rs6000_store_struct_return): Update.
3972         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3973         deprecated_extract_struct_value_address.
3974         (rs6000_frame_align): New function.
3975         (rs6000_gdbarch_init): Set frame_align.
3976
3977 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3978
3979         From Grace Sainsbury <graces@redhat.com>:
3980         * Makefile.in (gdbtk-main.o): New target.
3981         (gdb.o): New target.
3982         (main_h): Define.
3983         (main.o): Update dependencies.
3984         (gdb$(EXEEXT)): Add gdb.o.
3985         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3986         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3987         (SUBDIR_GDBTK_CLEAN): Set.
3988         (install-gdbtk): Install the insight binary.
3989         (uninstall-gdbtk): New target.
3990         (all-gdbtk, clean-gdbtk): New rule.
3991         * top.c (use_windows): Default to zero.
3992         * main.c: Include "main.h".
3993         (main): Delete.
3994         (struct captured_main_args): Delete.
3995         (gdb_main): New function.
3996         * main.h: New file.
3997         * gdb.c: New File.
3998
3999 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4000
4001         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4002         (frame_map_regnum_to_name): New function.
4003         (frame_map_name_to_regnum): New function.
4004         * frame.h (frame_map_name_to_regnum): Declare.
4005         (frame_map_regnum_to_name): Declare.
4006         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4007         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4008         * parse.c: Do not include "builtin-regs.h".
4009         (target_map_name_to_register): Delete function.
4010         (write_dollar_variable): Use frame_map_name_to_regnum.
4011         * parser-defs.h (target_map_name_to_register): Delete declaration.
4012         * expprint.c: Include "frame.h".
4013         (print_subexp): Use frame_map_regnum_to_name.
4014         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4015         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4016
4017 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4018
4019         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4020         wasn't saved, and the next innermost frame is a dummy, return the
4021         dummy frame's link register.
4022
4023 2002-09-24  Jim Blandy  <jimb@redhat.com>
4024
4025         Fix from Paul Breed:
4026         * main.c (captured_main): Add a `break' after the case for 'b'.
4027
4028 2002-09-24  Keith Seitz  <keiths@redhat.com>
4029
4030         * varobj.c (c_type_of_child): Use get_target_type instead
4031         of TYPE_TARGET_TYPE.
4032
4033 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4034
4035         * source.c (get_current_or_default_source_symtab_and_line): Remove
4036         function.
4037         (set_default_source_symtab_and_line): New function. Attempts to
4038         determine a source file to list lines from if one is not currently
4039         defined.
4040         (get_current_source_symtab_and_line): Initialize sal.pc and
4041         sal.end fields.
4042         (set_current_source_symtab_and_line): Mark argument as const.
4043         * source.h: Update declarations and comments.
4044         * linespec.c (decode_line_1): Replace call to removed routine above.
4045         * stack.c (print_frame_info_base): Ditto.
4046         * cli/cli-cmds.c (edit_command): Ditto.
4047         (list_command): Ditto.
4048
4049 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4050
4051         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4052         sal.pc and sal.end fields.
4053         (get_current_or_default_source_symtab_and_line): Ditto.
4054         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4055         so we do not cause a new source symtab to be searched for (reverting an
4056         unintentional change from the 2002-09-20 patch).
4057         * scm-lang.c (scm_unpac): Ditto.
4058
4059 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4060
4061         * complaints.c (symfile_explanations): Remove new-line from
4062         ``isolated_message''.
4063         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4064         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4065
4066 2002-09-20  Nick Clifton  <nickc@redhat.com>
4067         
4068         * NEWS: Announce that V850EA ISA is no longer supported.
4069         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4070
4071 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4072
4073         * Makefile.in (c-lang.o): Correct dependencies.
4074         (utils.o): Gather dependencies.
4075         (charset.o): Move.
4076         * c-lang.c: #include "gdb_string.h"
4077
4078 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4079
4080         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4081         * cli/cli-cmds.c (list_command): New function.  Implements the new
4082         cli edit command.
4083         (_init_cli_cmds): Add new command definition.
4084         * gdb.1: Document edit command.
4085         * doc/gdb.texinfo: Document edit command.
4086
4087 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4088
4089         * source.c: Make global variables current_source_symtab and
4090         current_source_line static.
4091         (list_command): Moved to cli/cli-cmds.c.
4092         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4093         (get_first_line_listed): New accessor function.
4094         (get_lines_to_list): New accessor function.
4095         (get_current_source_symtab_and_line): New function. Retrieves the
4096         position in the source code that we consider current.
4097         (get_current_or_default_source_symtab_and_line): New function.
4098         Like the above but attempts to determine a default position if one
4099         is not currently defined.
4100         (set_current_source_symtab_and_line): New function. Sets the source
4101         code position considered current and returns the previously set one.
4102         (clear_current_source_symtab_and_line): Reset stored information about
4103         a current source line.
4104         (_initialize_source): Remove registration for the "list" command and
4105         its alias.
4106         * source.h: Add declarations for the new functions above.
4107         * symtab.h: Remove declarations for the global variables mentioned
4108         above.
4109         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4110         obtain current source line.
4111         * linespec.c (decode_line_1): Ditto.
4112         * macroscope.c (default_macro_scope): Ditto.
4113         * scm-lang.c (scm_unpac): Ditto.
4114         * stack.c (print_frame_info_base): Ditto.
4115         * symfile.c (clear_symtab_users): Ditto.
4116         * symtab.c (decode_line_spec): Ditto.
4117         * cli/cli-cmds.c (list_command): Moved here from source.c.
4118         (ambiguous_line_spec): Moved here from source.c.
4119         (_init_cli_cmds): Add definition for "list" and its alias.
4120         * Makefile.in: Update dependencies.
4121
4122 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4123
4124         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4125         with what gcc thinks is correct.
4126
4127 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4128
4129         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4130         multiple register push instruction.
4131
4132 2002-09-19  Jim Blandy  <jimb@redhat.com>
4133
4134         Add support for distinct host and target character sets.
4135         * charset.c, charset.h: New files.
4136         * c-exp.y: #include "charset.h".
4137         (yylex): Convert character and string literals to the target
4138         character set, before returning them as the semantic value of the
4139         token.
4140         * c-lang.c: #include "charset.h".
4141         (c_emit_char): Use charset-specific methods to recognize
4142         characters with backslash escape forms, to decide which characters
4143         to print literally and which to print using numeric escape
4144         sequences, and to convert target characters to host characters
4145         before printing.
4146         * utils.c: #include "charset.h".
4147         (no_control_char_error): New function.
4148         (parse_escape): Use charset-specific methods to recognize
4149         backslash escapes, parse `control character' notation, and convert
4150         characters from the host character set to the target character set.
4151         * configure.in: Set the default host character set.
4152         Check where to find iconv, and what its argument types might be.
4153         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4154         * Makefile.in (SFILES): List charset.c.
4155         (COMMON_OBS): List charset.o.   
4156         (charset.o): New rule.
4157         (charset_h): New header dependency variable.
4158         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4159         (LIBICONV): New variable, set by configure.
4160         (CLIBS): Include $(LIBICONV) here.
4161         * aclocal.m4, config.in, configure: Regenerated.
4162
4163 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4164
4165         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4166         bison 1.35 warning.
4167
4168 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4169
4170         * gdb_mbuild.sh: New file.
4171
4172 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4173
4174         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4175
4176 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4177
4178         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4179         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4180         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4181         valops.c, value.h: Revert previous change.
4182         
4183 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4184
4185         Preliminary support for Objective-C:
4186         * defs.h (language_objc): New enum value.
4187         (puts_filtered_tabular): Declaration only, exported from utils.c.
4188         (skip_quoted): Delete, declared in completer.h.
4189         * c-exp.y: Include completer.h.
4190         * p-exp.y: Ditto.
4191         * jv-exp.y: Ditto.
4192         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4193         New operator enum values.
4194         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4195         * language.c (binop_result_type): Handle language_objc case.
4196         (integral_type, character_type, string_type, boolean_type,
4197         structured_type, binop_type_check): Ditto.
4198         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4199         (struct objc_specific): Add to general_symbol_info.
4200         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4201         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4202         * parser-defs.h (struct objc_class_str): New struct type.
4203         (start_msglist, end_msglist, add_msglist): Declaration only,
4204         exported from objc-lang.c.
4205         * value.h (value_of_local, value_nsstring, 
4206         call_function_by_hand_expecting_type): Exported from valops.c.
4207         * valops.c (find_function_addr): Export.
4208         (call_function_by_hand_expecting_type): New function.
4209         (value_of_local): New function.
4210         * symfile.c (init_filename_language_table): Add ".m" extension
4211         for Objective-C.
4212         * utils.c (puts_filtered_tabular): New function.
4213         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4214         (set/show demangle): Extend help-string to refer to ObjC.
4215         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4216         * stabsread.c (symbol_reference_defined): Objective-C symbols
4217         may contain colons: make allowances when scanning stabs strings
4218         for colons.
4219         (objc_find_colon): New function.
4220         * printcmd.c (address_info): If language == objc then print
4221         "self" instead of "this".
4222         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4223         OP_NSSTRING, and OP_SELF.
4224         (prefixify_subexp): Ditto.
4225         * source.c (print_source_lines): Mention objc in comment.
4226         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4227         method names.
4228
4229 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4230
4231         * complaints.h: Update copyright.
4232         (struct complaints): Declare.
4233         (struct complaint): Make `message' constant.
4234         (internal_complaint): Declare.
4235         (complaint): Declare.
4236         (complaint_root): Delete declaration.
4237         (symfile_complaints): Delete declaration.
4238         (struct complaints): Add opaque declaration.
4239         (clear_complaints): Add a complaints parameter.
4240         * complaints.c: Update copyright.
4241         (enum complaint_series): Define.
4242         (complaint_root): Delete.
4243         (struct complaints): Define.
4244         (complaint_sentinel, symfile_complaint_book): New variables.
4245         (symfile_explanations, symfile_complaints): New variables.
4246         New variables.
4247         (get_complaints): New function.
4248         (vcomplaint): New function.
4249         (complaint): New function.
4250         (internal_complaint): New function.
4251         (complain): Call vcomplain with symfile_complaint.
4252         (clear_complaints): Rewrite.
4253         (_initialize_complaints): Use add_setshow_command.
4254         * Makefile.in (complaints.o): Update dependencies.
4255         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4256         to call to clear_complaints.
4257         (new_symfile_objfile, reread_symbols): Ditto.
4258         (oldsyms_complaint): Delete.
4259         (empty_symtab_complaint, unknown_option_complaint): Delete.
4260         (free_named_symtabs): Use complaint instead of complain.
4261
4262 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4263
4264         Contributed by Apple Computer, Inc.  Merged with current sources
4265         by Adam Fedor <fedor@doc.com> [cagney].
4266         
4267         * objc-lang.c: First clean-up round: comments, indentation.
4268         * objc-lang.h: Ditto.
4269         * objc-lang.y: Ditto.
4270
4271 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4272
4273         * maint.c (maintenance_internal_error): Print the parameter as the
4274         error message.
4275         (maintenance_internal_warning): New function.
4276         (_initialize_maint_cmds): Add command `maint internal-warning'.
4277
4278         * defs.h (internal_warning, internal_vwarning): Declare.
4279         * utils.c (struct internal_problem): Define.
4280         (internal_vproblem): New function.
4281         (internal_warning): New function.
4282         (internal_vwarning): New function.
4283         (internal_warning_problem, internal_error_problem): New variables.
4284         (internal_verror): Just call internal_vproblem.
4285
4286 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4287
4288         * objc-lang.c: New file, support for Objective-C.
4289         Preliminary check-in, not yet integrated into gdb.
4290         * objc-lang.h: New file.
4291         * objc-exp.y:  New file.
4292
4293 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4294
4295         * infrun.c (signal_stop_update): Convert definition to ISO C.
4296         (signal_print_update): Ditto.
4297         (signal_pass_update): Ditto.
4298         * inflow.c (terminal_save_ours): Ditto.
4299
4300         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4301         comments.
4302         
4303         * config/djgpp/fnchange.lst: Handle name clashes between
4304         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4305         bfd/coff-tic80.c.
4306
4307         * i386-linux-tdep.h: Fix tipo.
4308
4309 2002-09-18  Adam Fedor  <fedor@gnu.org>
4310
4311         * MAINTAINERS: Add myself to the Write After Approval list.
4312
4313 2002-09-18  Jim Blandy  <jimb@redhat.com>
4314
4315         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4316         texthigh and textlow to reader-specific structs caused
4317         objfile_relocate to miss them.  This is fixable, but the work that
4318         the change was supposed to prepare GDB for never got done anyway.
4319
4320 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4321
4322         * MAINTAINERS: Alphabetize Write After Approval list.
4323
4324 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4325
4326         Fix PR gdb/709
4327         * values.c (value_static_field): Call read_var_value.
4328
4329 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4330
4331         * valops.c (hand_function_call): Align the initial stack pointer
4332         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4333         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4334         return value.
4335         * mips-tdep.c (mips_frame_align): New function.
4336         (mips_gdbarch_init): Set frame_align.
4337         * gdbarch.sh (FRAME_ALIGN): New method.
4338         * gdbarch.h, gdbarch.c: Re-generate.
4339
4340 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4341
4342         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4343         registers.
4344
4345 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4346
4347         * NEWS: Mention that MIPS $fp behavior changed.
4348         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4349         reference to FP_REGNUM.
4350         (mipsnbsd_cannot_store_register): Ditto.
4351         * mips-linux-nat.c: Update copyright.
4352         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4353         (mips_linux_cannot_store_register): Ditto.
4354         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4355         * config/mips/tm-mips.h: Update copyright.
4356         (FP_REGNUM): Delete macro.
4357         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4358         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4359         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4360         (mips_r3041_reg_names, mips_r3051_reg_names)
4361         (mips_r3081_reg_names): Replace "fp" with "".
4362         Fix PR gdb/480.
4363
4364 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4365
4366         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4367         generic_read_register_dummy() (PR gdb/703).
4368         (avr_push_return_address): #if 0 out unused vars.
4369         (avr_gdbarch_init): Enable use of avr_push_return_address().
4370
4371 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4372
4373         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4374         RTE will take care of it.
4375
4376 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4377
4378         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4379         invalid, return SP_REGNUM.
4380
4381 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4382
4383         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4384         point registers without sign extension.
4385
4386 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4387
4388         * blockframe.c (deprecated_read_register_dummy): Rename
4389         generic_read_register_dummy.
4390         * frame.c (frame_unwind_signed_register): New function.
4391         (frame_unwind_unsigned_register): New function.
4392         * frame.h (frame_unwind_signed_register): Declare.
4393         (frame_unwind_unsigned_register): Declare.
4394         (deprecated_read_register_dummy): Rename
4395         generic_read_register_dummy.
4396
4397         * h8300-tdep.c (h8300_frame_chain): Update.
4398         (h8300_frame_saved_pc): Update.
4399         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4400         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4401         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4402         (s390_frame_chain): Update.
4403         * v850-tdep.c (v850_find_callers_reg): Update.
4404         (v850_frame_saved_pc): Update.
4405         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4406         (m32r_find_callers_reg): Update.
4407         (m32r_frame_saved_pc): Update.
4408         * sh-tdep.c (sh_find_callers_reg): Update.
4409         (sh64_get_saved_pr): Update.
4410         (sh_init_extra_frame_info): Update.
4411         (sh_init_extra_frame_info): Update.
4412         (sh64_init_extra_frame_info): Update.
4413         (sh64_init_extra_frame_info): Update.
4414         * mcore-tdep.c (mcore_find_callers_reg): Update.
4415         (mcore_frame_saved_pc): Update.
4416         (mcore_init_extra_frame_info): Update.
4417         * i386-tdep.c (i386_frame_saved_pc): Update.
4418         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4419         (ia64_init_extra_frame_info): Update.
4420         (ia64_init_extra_frame_info): Update.
4421         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4422         * cris-tdep.c (cris_init_extra_frame_info): Update.
4423         * avr-tdep.c (avr_frame_chain): Update.
4424         (avr_init_extra_frame_info): Update.
4425         (avr_frame_saved_pc): Update.
4426         * arm-tdep.c (arm_find_callers_reg): Update.
4427         (arm_init_extra_frame_info): Update.
4428         (arm_frame_saved_pc): Update.
4429
4430 2002-09-17  Tom Tromey  <tromey@redhat.com>
4431
4432         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4433         is "'".
4434
4435 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4436
4437         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4438         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4439         NEXT_PROLOGUE_INSN.
4440         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4441         NEXT_PROLOGUE_INSN.
4442
4443 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4444
4445         * osfsolib.c: Remove file, replaced by solib-osf.c.
4446         * Makefile.in: Remove compilation rules for osfsolib.c.
4447
4448 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4449
4450         * cp-valprint.c (cp_print_class_method): Correct args to
4451         check_stub_method_group.
4452
4453 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4454
4455         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4456         `set architecture'.  Unify naming convention of functions.
4457         (h8300_skip_prologue): Improve prologue analysis.
4458         (h8300_push_arguments): Rewritten to more closely match GCC's
4459         bizarre argument-passing behavior, along with the comment describing
4460         said behavior.
4461         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4462         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4463         sim, remote-e7000.c, remote-hms.c and remote.c
4464
4465 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4466
4467         * i386-tdep.c (gdb_print_insn_i386): Removed.
4468         (i386_print_insn): New function.
4469         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4470         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4471         tm_print_insn_info.
4472
4473 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4474
4475         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4476         zero.
4477
4478 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4479
4480         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4481         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4482         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4483
4484 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4485
4486         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4487
4488 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4489
4490         * gdbtypes.c (check_stub_method): Make static.
4491         (check_stub_method_group): New function.
4492         * gdbtypes.h: Update prototypes.
4493         * cp-support.c: New file.
4494         * cp-support.h: New file.
4495
4496         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4497         (update_method_name_from_physname): New function.
4498         (read_member_functions): Correct method names for operators
4499         and v3 constructors/destructors.  Separate v2 constructors and
4500         destructors.
4501         * Makefile.in (stabsread.o): Update dependencies.
4502         (SFILES): Add cp-support.c.
4503         (COMMON_OBS): Add cp-support.o.
4504         (cp_support_h, cp-support.o): Add.
4505
4506         * cp-valprint.c (cp_print_class_method): Call
4507         check_stub_method_group instead of check_stub_method.  Remove
4508         extraneous QUITs.
4509         * p-valprint.c (pascal_object_print_class_method): Likewise.
4510         * valops.c (search_struct_method): Likewise.
4511         (find_method_list, value_struct_elt_for_reference): Likewise.
4512
4513 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4514
4515         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4516         * gdbarch.h, gdbarch.c: Regenerate.
4517
4518 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4519
4520         * frame.c (find_saved_register): Delete function.
4521         * frame.h (find_saved_register): Delete declaration.
4522         Fix PR gdb/631.
4523
4524 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4525
4526         * mips-tdep.c (read_next_frame_reg): Re-hack using
4527         frame_register_unwind.
4528
4529 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4530
4531         * mips-tdep.c (mips_get_saved_register): Re-hack using
4532         frame_register_unwind.
4533
4534 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4535
4536         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4537         vector. Will be useful for Interix.  
4538         * gdbarch.h, gdbarch.c: Regenerate.
4539
4540         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4541         name of the malloc function by NAME_OF_MALLOC.
4542
4543 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4544
4545         * value.h (find_function_in_inferior): Add const keyword to
4546         one of the parameters. Allows us to invoke this function with
4547         a const char *.
4548         * valops.c (find_function_in_inferior): Likewise.
4549
4550 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4551
4552         * exec.c (xfer_memory): Fix compilation warning with old versions
4553         of GCC.
4554         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4555
4556 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4557
4558         * symtab.h: Run through gdb_indent.h.
4559         Add 2002 to Copyright year list.
4560
4561 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4562
4563         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4564         mach constants.
4565         * MAINTAINERS: Add myself to write after approval list.
4566
4567 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4568
4569         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4570
4571 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4572
4573         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4574         Interix.
4575
4576 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4577
4578         * procfs.c (do_detach): Clear current signal, not just fault.
4579         Corrects problem with breakpoint trap signal leaking to detached
4580         process on Tru64.
4581
4582 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4583
4584         * buildsym.c (finish_block): Protect against null pointer.
4585
4586 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4587
4588         * infcmd.c (default_print_registers_info): Send all output to
4589         ``file'' instead of ``gdb_stdout''.
4590
4591 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4592
4593         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4594         LONGEST, and use signed register read (addresses are sign-
4595         extended for mips).
4596
4597 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4598
4599         * event-loop.c (gdb_do_one_event): Make public.
4600         * event-loop.h (gdb_do_one_event): Declare.
4601
4602 2002-09-10  Jeff Law  <law@redhat.com>
4603
4604         * infttrace.c (child_resume): Simplify and rework to avoid
4605         TT_PROC_CONTINUE.
4606
4607 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4608
4609         * printcmd.c (print_scalar_formatted): "len" is the number of
4610         target bytes, NOT the number of target bits.
4611
4612 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4613
4614         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4615         * top.c (init_main): Set rl_terminal_name.
4616
4617 2002-09-08  Aidan Skinner <aidan@velvet.net>
4618
4619         * ada-lang.c (ada_array_bound, ada_type_match,
4620         _initialize_ada_language): Fix K&R definitions.
4621         * ada-tasks.c (get_current_task): Fix K&R definitions.
4622         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4623                         
4624 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4625
4626         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4627         Add XP.
4628
4629 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4630
4631         * i386-tdep.c (i386_register_virtual_type,
4632         i386_register_convertible, i386_register_convert_to_virtual,
4633         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4634         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4635         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4636         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4637         Don't set push_arguments twice.
4638
4639         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4640         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4641         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4642         sigtramp_end to NULL.
4643         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4644         defines.
4645         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4646
4647         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4648         whitespace.
4649
4650         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4651         * gdbarch.h, gdbarch.c: Re-generate.
4652         * blockframe.c (find_pc_sect_partial_function): Convert to use
4653         SIGTRAMP_START_P predicate.
4654
4655 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4656
4657         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4658         generic_dummy_frame method and old method.  Also distinguish
4659         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4660         (arm_extract_return_value): Use new regcache method.
4661
4662         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4663         adjustment that doesn't conform to the ABI.
4664         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4665         saved regcache, not from current regcache.
4666
4667 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4668
4669         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4670         * README: Update.
4671
4672 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4673
4674         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4675         if arm_apcs_32 is false.
4676
4677 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4678
4679         GDB 5.3 branch created.
4680
4681 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4682
4683         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4684         generic_unwind_get_saved_register.
4685
4686 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4687
4688         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4689         argument (PR gdb/653).  Update call to smash_to_method_type.
4690         (read_structure_scope): Update call to dwarf2_add_member_fn.
4691
4692 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4693
4694         * x86-64-linux-tdep.c: Include gdb_string.h
4695         * x86-64-linux-nat.c: Ditto.
4696
4697 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4698
4699         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4700         when YYDEBUG is set to 1.  
4701         * c-exp.y: Likewise.
4702         * f-exp.y: Likewise.
4703         * jv-exp.y: Likewise.
4704         * m2-exp.y: Likewise.
4705         * p-exp.y: Likewise.
4706
4707 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4708
4709         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4710         dependency list.
4711         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4712         solib_svr4_fetch_link_map_offsets to
4713         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4714         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4715         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4716         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4717         solib-svr4.o, and solib-legacy.o.
4718         * config/i386/tm-nbsd.h: Include solib.h.
4719
4720 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4721
4722         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4723         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4724         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4725         comment noting that this needs its own target configuration.
4726         * config/i386/nbsd.mt: New file.
4727         * config/i386/nbsdaout.mt: Remove.
4728         * config/i386/nbsdelf.mt: Ditto.
4729         * config/i386/tm-nbsdaout.h: Ditto. 
4730
4731 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4732
4733         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4734         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4735         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4736         tdep->sigtramp_end.
4737         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4738         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4739         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4740
4741 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4742
4743         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4744         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4745         * i386-tdep.h (i386bsd_init_abi): New prototype.
4746         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4747         function declaration.
4748         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4749         for NetBSD-a.out or NetBSD-ELF.
4750         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4751         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4752         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4753         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4754         and nbsd-tdep.h.
4755         (i386nbsd_pc_in_sigtramp): New function.
4756         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4757         i386nbsd_pc_in_sigtramp.
4758         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4759         and i386nbsdelf_init_abi OS ABI handlers.
4760         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4761         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4762
4763 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4764
4765         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4766         registers if the target really has them.
4767
4768 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4769
4770         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4771         than nbsd-tdep.h.
4772
4773 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4774
4775         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4776         list.
4777         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4778         (alphanbsd_skip_sigtramp_frame): New functions. 
4779         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4780         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4781         to alphanbsd_sigcontext_addr. 
4782
4783 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4784
4785         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4786         list.
4787         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4788         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4789         nbsd_pc_in_sigtramp. 
4790         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4791         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4792         * nbsd-tdep.c: Include gdb_string.h.
4793         (nbsd_pc_in_sigtramp): New function. 
4794         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4795         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4796         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4797         ppcnbsd_pc_in_sigtramp. 
4798         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4799         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4800         shnbsd_pc_in_sigtramp. 
4801         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4802         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4803         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4804
4805 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4806
4807         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4808         watchpoints to NULL.
4809         (insert_breakpoints): set val field of watchpoints if NULL.
4810
4811
4812 2002-08-29  Jim Blandy  <jimb@redhat.com>
4813
4814         * symtab.c (lookup_symbol_aux): In the cases where we find a
4815         minimal symbol of an appropriate name and use its address to
4816         select a symtab to read and search, use `name' (as passed to us)
4817         as the demangled name when searching the symtab's global and
4818         static blocks, not the minsym's name.
4819
4820 2002-08-29  Keith Seitz  <keiths@redhat.com>
4821
4822         * stack.c (print_frame_info_base): Always set current_source_symtab
4823         and current_source_line.
4824
4825 2002-08-29  Donn Terry  <donnte@microsoft.com>
4826
4827         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4828
4829 2002-08-28  Keith Seitz  <keiths@redhat.com>
4830
4831         * stack.c (select_frame): Add FIXME concerning selected-frame
4832         events.
4833         (select_frame_command): Send selected-frame-level-changed
4834         event notification, but only if the level actually changed.
4835         (up_silently_base): Add selected-frame-level-changed event
4836         notification.
4837         (down_silently_base): Likewise.
4838
4839 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4840
4841         * Makefile.in: Update dependencies for all gdb/*.c files.
4842
4843 2002-08-27  Tom Tromey  <tromey@redhat.com>
4844
4845         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4846         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4847         Update dependencies.
4848         * i387-tdep.c: Include gdb_string.h.
4849         * osabi.c: Likewise.
4850         * i386-linux-nat.c: Likewise.
4851         * lin-lwp.c: Likewise.
4852         * ax-gdb.c: Likewise.
4853         * signals/signals.c: Likewise.
4854         * jv-valprint.c: Likewise.
4855         * p-lang.c: Likewise.
4856         * c-valprint.c: Likewise.
4857         * cp-abi.c: Likewise.
4858
4859 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4860
4861         * cli/cli-script.h (copy_command_lines): Export.
4862         * breakpoint.c: Include cli/cli-script.h.
4863         * Makefile.in (breakpoint.o): Update dependencies.
4864
4865 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4866
4867         * breakpoint.c (insert_breakpoints): Protect all references
4868         to 'process_warning'.  Shorten long lines.
4869
4870 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4871
4872         * cli/cli-script.c (copy_command_lines): New function.
4873         * defs.h (copy_command_lines): Export.
4874         * testsuite/gdb.base/commands.exp: New tests for commands
4875         attached to a temporary breakpoint, and for commands that
4876         delete the breakpoint they are attached to.
4877         
4878 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4879
4880         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4881         pointer to the breakpoint commands struct, make a new copy
4882         of the struct and point to that.
4883         (bpstat_clear): Free the commands struct.
4884         (bpstat_clear_actions): Free the commands struct.
4885         (bpstat_do_actions): Free the command actions.  Also execute
4886         the local cleanups, instead of deleting them.
4887         (delete_breakpoint): Leave the commands field of the bpstat
4888         chain alone -- it will be freed later.
4889
4890 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4891
4892         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4893         deleted in 2002-08-20 commit.  This function is still used by
4894         ppc-linux-nat.c.
4895
4896 2002-08-26  Keith Seitz  <keiths@redhat.com>
4897
4898         * gdb-events.sh: Add selected-frame-level-changed event.
4899         * gdb-events.c: Regenerated.
4900         * gdb-events.h: Regenerated.
4901         
4902 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4903
4904         Fix PR gdb/393:
4905         * inflow.c (terminal_save_ours): New function to save terminal
4906         settings.
4907         * inferior.h (terminal_save_ours): Declare.
4908         * target.c (debug_to_terminal_save_ours): New function.
4909         (cleanup_target): Defaults to_terminal_save_ours.
4910         (update_current_target): Inherit to_terminal_save_ours.
4911         (setup_target_debug): Set to_terminal_save_ours.
4912         * target.h (target_terminal_save_ours): New to save terminal settings.
4913         (target_ops): New member to_terminal_save_ours.
4914         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4915         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4916         * inftarg.c (init_child_ops): Likewise.
4917         * m3-nat.c (init_m3_ops): Likewise.
4918         * procfs.c (init_procfs_ops): Likewise.
4919         * wince.c (init_child_ops): Likewise.
4920         * win32-nat.c (init_child_ops): Likewise.
4921         * sol-thread.c (init_sol_thread_ops): Likewise.
4922
4923 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4924
4925         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4926         use regcache_* functions.
4927         (i386_gdbarch_init): Set store_return_value instead of
4928         deprecated_store_return_value.
4929
4930         * regcache.c (regcache_raw_write_signed,
4931         regcache_raw_write_unsigned): New functions.
4932         * regcache.h (regcache_raw_write_signed,
4933         regcache_raw_write_unsigned): New prototypes.
4934
4935 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4936
4937         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4938         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4939         source file dependencies.  Cleanup corresponding generator rules.
4940
4941 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4942
4943         * regcache.h (register_offset_hack): Declare.
4944         (regcache_cooked_read_using_offset_hack): Declare.
4945         (regcache_cooked_write_using_offset_hack): Declare.
4946
4947         * regcache.c (register_offset_hack): New function.
4948         (regcache_cooked_read_using_offset_hack): New function.
4949         (regcache_cooked_write_using_offset_hack): New function.
4950         (regcache_dump): Check that the registers, according to their
4951         offset, are packed hard against each other.
4952         (cooked_xfer_using_offset_hack): New function.
4953
4954 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4955
4956         * regcache.c (struct regcache_descr): Add field register_type.
4957         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4958         in as a parameter
4959         (init_regcache_descr): Initialize register_type.  Pass the descr
4960         to init_legacy_regcache_descr.  Use register_type instead of
4961         REGISTER_VIRTUAL_TYPE.
4962         (register_type): New function.
4963         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4964         * regcache.h (register_type): Declare.
4965
4966 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4967
4968         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4969         instead of deprecated_store_return_value.  Fix fallout from
4970         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4971
4972 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4973
4974         * regcache.c (max_register_size): New function.
4975         (init_legacy_regcache_descr): Ensure that max_register_size is
4976         large enough for REGISTER_VIRTUAL_SIZE.
4977         * regcache.h (max_register_size): Declare.
4978
4979 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4980
4981         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4982         store_return_value.
4983         (e500_extract_return_value): Change type of valbuf pointer to
4984         void.
4985
4986 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4987
4988         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4989         workaround.
4990
4991         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4992         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4993         long long) to prevent compiler warning on 64-bit systems.
4994
4995 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4996
4997         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4998         (DEPRECATED_STORE_RETURN_VALUE): New method.
4999         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5000         * gdbarch.h, gdbarch.c: Re-generate.
5001
5002         * values.c (set_return_value): Pass current_regcache to
5003         STORE_RETURN_VALUE.
5004         * arch-utils.h (legacy_store_return_value): Declare.
5005         * arch-utils.c (legacy_store_return_value): New function.
5006         (legacy_extract_return_value): Update parameters.
5007
5008         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5009         STORE_RETURN_VALUE.
5010         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5011         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5012         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5013         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5014         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5015         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5016         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5017         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5018         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5019         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5020
5021         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5022         * i386-tdep.c (i386_extract_return_value): Update.
5023         * arch-utils.c (legacy_extract_return_value): Update.
5024         * frv-tdep.c (frv_gdbarch_init): Update.
5025         * cris-tdep.c (cris_gdbarch_init): Update.
5026         * d10v-tdep.c (d10v_gdbarch_init): Update.
5027         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5028         * m68k-tdep.c (m68k_gdbarch_init): Update.
5029         * mcore-tdep.c (mcore_gdbarch_init): Update.
5030         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5031         * s390-tdep.c (s390_gdbarch_init): Update.
5032         * sparc-tdep.c (sparc_gdbarch_init): Update.
5033         * sh-tdep.c (sh_gdbarch_init): Update.
5034         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5035         * v850-tdep.c (v850_gdbarch_init): Update.
5036         * avr-tdep.c (avr_gdbarch_init): Update.
5037         * ia64-tdep.c (ia64_gdbarch_init): Update.
5038         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5039         * vax-tdep.c (vax_gdbarch_init): Update.
5040         * alpha-tdep.c (alpha_gdbarch_init): Update.
5041         * arm-tdep.c (arm_gdbarch_init): Update.
5042         * mips-tdep.c (mips_gdbarch_init): Update.
5043         * i386-tdep.c (i386_gdbarch_init): Update.
5044
5045 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5046
5047         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5048         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5049
5050 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5051
5052         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5053         problems.
5054
5055 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5056
5057         * infrun.c (handle_inferior_event): Move a comment outside of a
5058         function call, in order to avoid indent reformatting this part
5059         of the code in an unreadable way.
5060
5061 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5062
5063         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5064         when breakpoints fail. Move general breakpoint error messages to
5065         insert_breakpoints.  
5066         * breakpoint.c (insert_breakpoints): Change warnings when
5067         breakpoints are nto inserted to specify the type. Remove call to
5068         memory_error when hardware breakpoints can't be inserted. Remove
5069         multiple calls to warning so all messages are sent to the user at
5070         once.
5071         (delete_breakpoints): Make insert error messsages more explicit.
5072
5073 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5074
5075         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5076         gdbserver/ChangeLog.
5077
5078 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5079
5080         * i386-tdep.c: Include "objfiles.h".
5081         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5082         skip_trampoline_code.
5083         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5084         (CPLUS_MARKER): Define to '.'.
5085
5086         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5087         member.
5088         (linux_corefile_thread_callback): Increase args->num_notes.
5089         (linux_make_note_section): Initialize thread_args.num_notes, and
5090         use it to determine whether notes for any threads were created.
5091
5092 2002-08-23  Donn Terry  <donnte@microsoft.com>
5093
5094         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5095         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5096         and PCUNKILL.
5097         (write_with_trace): Conditionalize out the switch branch handling
5098         PCSHOLD if the corresponding macro is not defined. Likewise for
5099         PRSABORT and PRSTOP.
5100         This change will be needed by the Interix port.
5101
5102 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5103
5104         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5105         write_register wherever possible instead of manipulating the
5106         register bytes directly.
5107         Assign VALUE_CONTENTS to a variable and use that.
5108         The GPR numbers are now dependent on the architecture.
5109         
5110 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5111
5112         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5113         ev_offset fields.
5114         (skip_prologue): Add support for BookE/e500 instructions.
5115         (e500_extract_return_value): New function.
5116         (frame_get_saved_regs): Add support for saving ev registers and
5117         pseudo gpr's.
5118         (e500_store_return_value): New function.
5119         (rs6000_gdbarch_init): Move up default intializations of
5120         deprecated_extract_return_value and store_return_value.  Overwrite
5121         init of store_return_value with e500 specific version.
5122         Set extract_return_value for e500.
5123         
5124 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5125
5126         * blockframe.c (generic_call_dummy_register_unwind): Use
5127         regcache_cooked_read to catch cases in which the variable is
5128         stored in a pseudo register.
5129
5130 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5131
5132         * NEWS: Mention that the i960 has been made obsolete.
5133         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5134         i960-tdep.c
5135         (remote-nrom.o): Obsolete target.
5136         (remote-nindy.o, i960-tdep.o): Ditto.
5137         * remote-nrom.c: Make file obsolete.
5138         * remote-nindy.c, remote-vx960.c: Ditto.
5139         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5140         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5141         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5142         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5143         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5144         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5145         i960-*-vxworks* obsolete.
5146         * MAINTAINERS: Note that the i960 is obsolete.
5147
5148 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5149
5150         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5151         detach to allow reinitialization.
5152
5153 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5154
5155         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5156         attempt).
5157
5158 2002-08-22  Jim Blandy  <jimb@redhat.com>
5159
5160         * coffread.c (coff_symfile_read): Don't try to read the line
5161         number table from disk if the image file doesn't have a symbol
5162         table; we'll never actually look at the info anyway, and Windows
5163         ships DLL's with bogus file offsets for the line number data.
5164
5165 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5166
5167         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5168         an e500 executable.
5169
5170 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5171
5172         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5173         (MSYMBOL_SIZE): Replace macro with function.
5174         (DEFAULT_MIPS_TYPE): Delete unused macro.
5175         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5176         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5177
5178 2002-08-21  Jim Blandy  <jimb@redhat.com>
5179
5180         * valops.c (value_cast): Simplify and correct logic for doing a
5181         static cast from a pointer to a base class to a pointer to a
5182         derived class.
5183
5184 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5185
5186         * infcmd.c (default_print_registers_info): Replace
5187         do_registers_info.
5188         (registers_info): Use gdbarch_print_registers_info instead of
5189         DO_REGISTERS_INFO.
5190         * inferior.h (default_print_registers_info): Replace
5191         do_registers_info.
5192         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5193         (DO_REGISTERS_INFO): Change to a predicate function.
5194         * gdbarch.h, gdbarch.c: Regenerate.
5195         
5196 2002-08-21  Keith Seitz  <keiths@redhat.com>
5197
5198         * gdb-events.sh: Add target-changed event.
5199         * gdb-events.c: Regenerated.
5200         * gdb-events.c: Regenerated.
5201         * valops.c (value_assign): Add target-changed event notification
5202         to inlval_register, lval_memory, and lval_reg_frame_relative.
5203
5204 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5205
5206         * NEWS: Add an entry regarding the improvement of the next/step
5207         operation on Alpha Tru64 multi-processor machines.
5208
5209 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5210
5211         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5212         directores.
5213         * Makefile.in: Update all _h macro definitions.
5214         * Makefile.in (install-gdbtk): Move to install section.
5215         (rdi-share/libangsd.a): Move to end of file.
5216
5217 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5218
5219         * frame.c (frame_register_unwind): When a register, set addrp to
5220         the register's byte.
5221
5222 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5223
5224         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5225         used locally, so move them from the target machine header to here.
5226         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5227         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5228         Make static.
5229         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5230
5231 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5232
5233         * NEWS: Mention that the Apollo line was made obsolete.
5234         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5235         m68*-hp-hpux* obsolete.
5236         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5237         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5238         * buildsym.c (make_blockvector): Make static.
5239         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5240         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5241         (ALLDEPFILES): Remove dstread.c.
5242         (dstread.o): Obsolete make rule.
5243         * dstread.c: Makefile obsolete.
5244         * dst.h: Ditto.
5245         * config/m68k/hp300hpux.mt: Ditto.
5246         * config/m68k/hp300hpux.mh: Ditto.
5247         * config/m68k/hp300bsd.mt: Ditto.
5248         * config/m68k/hp300bsd.mh: Ditto.
5249         * config/m68k/apollo68b.mt: Ditto.
5250         * config/m68k/apollo68v.mh: Ditto.
5251         * config/m68k/apollo68b.mh: Ditto.
5252
5253 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5254
5255         * mips-tdep.c (mips_in_return_stub): Make static.
5256         (mips_gdbarch_init): Set in_solib_return_trampoline.
5257         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5258
5259 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5260
5261         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5262         * gdbarch.c, gdbarch.h: Regenerate.
5263         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5264         Add.
5265         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5266
5267 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5268
5269         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5270         (mips_gdbarch_init): Set skip_trampoline_code, 
5271         in_solib_call_trampoline.
5272         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5273         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5274
5275 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5276
5277         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5278
5279         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5280         vector type for ev registers.
5281         (e500_pseudo_register_read): New function.
5282         (e500_pseudo_register_write): New function.
5283         (e500_dwarf2_reg_to_regnum): New function.
5284         (PPC_UISA_NOFP_SPRS): New macro.
5285         (PPC_EV_REGS): New macro.
5286         (PPC_GPRS_PSEUDO_REGS): New macro.
5287         (registers_e500): New register set for e500.
5288         (variants): Add e500 variant.
5289         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5290         before setting architectural dependent variations.  Initialize ev
5291         registers numbers.  Add case for e500 architecture.  Set the
5292         number of pseudo registers.
5293
5294 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5295
5296         * rs6000-tdep.c: Clean up comments.
5297
5298 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5299
5300         * h8300-tdep.c: Re-indent file.
5301
5302 2002-08-20  Jim Blandy  <jimb@redhat.com>
5303
5304         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5305         default for this.
5306
5307 2002-08-20  Keith Seitz  <keiths@redhat.com>
5308
5309         * breakpoints.c (watch_command_1): Use internal breakpoint
5310         when setting a watchpoint_scope breakpoint.
5311
5312 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5313
5314         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5315         (build_builtin_type_vec64i): Ditto.
5316         (build_builtin_type_vec128): Ditto.
5317         (build_builtin_type_vec128i): Ditto.
5318
5319 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5320
5321         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5322         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5323         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5324         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5325         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5326         CALL_DUMMY_ADDRESS): Delete.
5327         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5328         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5329         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5330         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5331         push_return_address.
5332         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5333         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5334         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5335         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5336         mips_n32n64_push_arguments, mips_push_return_address,
5337         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5338         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5339
5340 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5341
5342         * mips-tdep.c (mips_frame_num_args): New function.
5343         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5344         frame_saved_pc, frame_args_address, frame_locals_address, 
5345         frame_num_args, and frame_args_skip.
5346         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5347         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5348         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5349         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5350
5351 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5352
5353         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5354         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5355         * mips-tdep.c (mips_store_struct_return): New function.
5356         (mips_extract_struct_value_address): New function.
5357         (mips_gdbarch_init): Set store_struct_return and
5358         extract_struct_value_address.
5359
5360 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5361
5362         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5363         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5364         (read_file_scope): Check that line_header is nonzero before
5365         decoding macro information.
5366
5367 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5368
5369         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5370         flag the general-purpose registers as floating-point on targets
5371         that don't support the floating-point registers.
5372
5373 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5374
5375         * rs6000-tdep.c (altivec_register_p): Delete.
5376         (rs6000_do_altivec_registers): Delete.
5377         (rs6000_altivec_registers_info): Delete.
5378         (rs6000_do_registers_info): Delete.
5379         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5380         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5381
5382 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5383
5384         * infcmd.c (do_registers_info): Print vector registers in hex
5385         format only.
5386         (print_vector_info): Check that printing registers
5387         makes sense.
5388         (print_float_info): Ditto.
5389
5390 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5391
5392         * mips-tdep.c (mips_gdbarch_init): Update.
5393         (mips_o32_extract_return_value): Rewrite.
5394         (mips_o32_store_return_value): Rewrite.
5395         (mips_o32_xfer_return_value): New function.
5396         (mips_xfer_register): Tweak debug print message.  Allow for
5397         buf_offset when dumping the value transfered.
5398
5399 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5400
5401         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5402         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5403         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5404         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5405         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5406
5407 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5408
5409         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5410
5411 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5412
5413         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5414         register.
5415         (P): New macro to define a register as a pseudo register.
5416         (R, R4, R8, R16, FR32, R64, R0): Updated.
5417         (struct variant): Add new fields for number of pseudo registers
5418         and number of total registers.
5419         (tot_num_registers): New macro replacing....
5420         (num_registers): ...deleted macro.
5421         (num_registers): New function.
5422         (num_pseudo_registers): New function.
5423         (variants): Update all variants to intialize new fields correctly.
5424         Postpone initialization of number of pseudo regs and real regs.
5425         (init_variants): New function.
5426         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5427         registers offsets.
5428
5429 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5430
5431         * valops.c (search_struct_field): Change error message to treat
5432         return value of 0 from value_static_field as meaning that field is
5433         optimized out.
5434         (value_struct_elt_for_reference): Ditto.
5435         * values.c (value_static_field): Treat an unresolved location the
5436         same as a nonexistent symbol.  Fix PR gdb/635.
5437         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5438         enclosed.  Fix PR gdb/574.
5439         * MAINTAINERS: Add self to Write After Approval list.
5440
5441 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5442
5443         * mips-tdep.c (mips_xfer_register): New function.
5444         (mips_n32n64_extract_return_value): Rewrite.
5445         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5446         instead of deprecated_extract_return_value.
5447
5448 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5449
5450         * rs6000-tdep.c (TDEP): Delete macro.
5451         (branch_dest): Replace use of TDEP macro with its body.
5452         (rs6000_pop_frame): Ditto.
5453         (rs6000_push_arguments): Ditto.
5454         (rs6000_skip_trampoline_code): Ditto.
5455         (rs6000_frame_saved_pc): Ditto.
5456         (rs6000_frame_chain): Ditto.
5457         (rs6000_register_name): Ditto.
5458         (rs6000_register_byte): Ditto.
5459         (rs6000_register_raw_size): Ditto.
5460         (rs6000_register_virtual_type): Ditto.
5461         (rs6000_register_convertible): Ditto.
5462         (rs6000_convert_from_func_ptr_addr): Ditto.
5463
5464 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5465
5466         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5467         conditionally.
5468         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5469         MIPS_LINUX_JB_ELEMENT_SIZE.
5470         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5471         for MAX_REGISTER_RAW_SIZE arrays.
5472         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5473         MIPS_LINUX_JB_ELEMENT_SIZE.
5474
5475 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5476
5477         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5478
5479 2002-08-19  Aidan Skinner <aidan@velvet.net>
5480
5481         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5482         ada-valprint.c ada-tasks.c.
5483         (YYFILES): Add ada-exp.y.
5484         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5485         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5486         (ada-exp.tab.o): New target.
5487                 
5488 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5489
5490         * regcache.c (regcache_xfer_part): New function.
5491         (regcache_raw_read_part): New function.
5492         (regcache_raw_write_part): New function.
5493         (regcache_cooked_read_part): New function.
5494         (regcache_cooked_write_part): New function.
5495         * regcache.h (regcache_raw_read_part): Declare.
5496         (regcache_raw_write_part): Declare.
5497         (regcache_cooked_read_part): Declare.
5498         (regcache_cooked_write_part): Declare.
5499
5500 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5501
5502         * remote.c (remote_open_1): Add async_p.
5503         (remote_async_open_1): Delete.
5504         (open_remote_target): Delete.
5505         (remote_open, extended_remote_open): Update calls to remote_open_1.
5506         (remote_async_open, extended_remote_async_open): Call
5507         remote_open_1 instead of remote_async_open_1.
5508
5509 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5510
5511         * blockframe.c: Fix a few coding standard violations.
5512
5513 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5514
5515         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5516         here from ...
5517         * config/i386/tm-i386sco5.h: ... here.  File removed.
5518         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5519
5520         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5521         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5522         (TM_FILE): Set to tm-i386.h.
5523         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5524         * config/i386/tm-i386v.h: Remove file.
5525         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5526         instead of "i386/tm-i386v.h".
5527         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5528         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5529         "i386/tm-i386v.h".
5530         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5531         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5532         "i386/tm-i386.h".
5533
5534 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5535
5536         * config/i386/nm-i386v.h: Add protection against
5537         multiple-inclusion.
5538         (i386_register_u_addr): Remove prototype.
5539         (register_u_addr): New prototype.
5540         (REGISTER_U_ADDR): Redefine accordingly.
5541         * i386v-nat.c: Improve several comments.
5542         (i386_register_u_addr): Change signature and rename to
5543         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5544         ubase variable.
5545
5546 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5547
5548         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5549         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5550         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5551         deprecated_extract_return_value.
5552         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5553         rename mips_o32o64_push_arguments.
5554         (mips_gdbarch_init): Update.
5555         (mips_extract_return_value): Delete.
5556         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5557         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5558         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5559         (mips_n32n64_extract_return_value): Clone
5560         mips_extract_return_value.
5561         (mips_store_return_value): Delete.
5562         (mips_o32_store_return_value): Clone mips_store_return_value.
5563         (mips_o64_store_return_value): Clone mips_store_return_value.
5564         (mips_eabi_store_return_value): Clone mips_store_return_value.
5565         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5566
5567 2002-08-18  Aidan Skinner <aidan@velvet.net>
5568
5569         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5570         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5571                 
5572 2002-08-18  Aidan Skinner <aidan@velvet.net>
5573
5574         * ada-lang.c: Run through gdb_indent.sh.
5575         * ada-lang.h: Run through gdb_indent.sh.
5576         * ada-tasks.c: Run through gdb_indent.sh.
5577         * ada-typeprint.c: Run through gdb_indent.sh.
5578         * ada-valprint.c: Run through gdb_indent.sh.
5579
5580 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5581
5582         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5583         ABI.
5584
5585 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5588
5589         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5590         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5591
5592         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5593         write_register_gen instead of write_register_bytes.
5594
5595         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5596         i[3456]-*-osf1mk* configurations have been made obsolete.
5597         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5598         i[3456]86-*-osf1mk* hosts obsolete.
5599         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5600         targets obsolete.
5601         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5602         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5603         config/i386/i386m3.mt, config/i386/nm-m3.h,
5604         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5605         config/i386/i386mk.mh, config/i386/i386mk.mt,
5606         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5607         obsolete.
5608         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5609         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5610         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5611
5612 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5613
5614         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5615         (hppa_value_returned_from_stack): Declare.
5616         (hppa_extract_return_value): Declare.
5617         * config/pa/hppa.mt: New file.
5618         * configure.tgt: Recognize hppa*-*-*.
5619         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5620
5621 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5622
5623         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5624         comment.
5625
5626 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5627
5628         * top.c (gdb_rl_operate_and_get_next): Make sure
5629         operate-and-get-next functions correctly even when the history
5630         list is completely filled.
5631
5632 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5633
5634         * MAINTAINERS (Target Instruction Set Architectures): Rename
5635         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5636         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5637         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5638         already listed under Host/Native.
5639
5640         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5641         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5642         mips*-*-*.
5643
5644 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5645
5646         * config/ia64/ia64.mt: New file.
5647         * config/alpha/alpha.mt: New file.
5648         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5649         ia64-linux-gnu.  Mention that ia64-elf is broken.
5650         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5651
5652 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5653
5654         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5655         generic_func_frame_valid instead of func_frame_valid.
5656
5657 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5658
5659         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5660         procfs appears to be broken when debugging on multi-processor
5661         machines. So enable software single stepping in order to avoid
5662         using the procfs interface to do next/step operations, using
5663         internal breakpoints instead.
5664
5665         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5666         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5667         make this pc address equal to the value it would have if the
5668         system stepping capability was used. Also set a new flag used
5669         to ensure that we don't readjust the PC one more time later.
5670
5671         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5672         address by DECR_PC_AFTER_BREAK when software single step is
5673         in use for this architecture, as this has already been taken
5674         care of in handle_inferior_event().
5675
5676 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5677
5678         * infrun.c (handle_inferior_event): Minor reformatting, to make
5679         a rather long condition expression easier to read.
5680
5681 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5682
5683         * Makefile.in (gdbtk.o): Move to end of file.
5684         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5685         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5686         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5687         (gdbtk-wrapper.o, gdbres.o): Ditto.
5688
5689 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5690
5691         * Makefile.in (copying.o): Separate out compile rule.
5692         (hpux-thread.o, procfs.o, signals.o): Ditto.
5693         (v850ice.o, z8k-tdep.o): Ditto.
5694         (tui-file.o): Move to TUI section.
5695         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5696         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5697
5698 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5699
5700         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5701         skip_trampoline_code, for better namespace-proofing.   
5702
5703         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5704
5705 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5706
5707         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5708
5709 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5710
5711         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5712         signal, check whether we hit a breakpoint before checking for a
5713         single step breakpoint. Otherwise, GDB fails to notice that a
5714         breakpoint has been hit when stepping onto a breakpoint.
5715
5716 2002-08-16  Keith Seitz  <keiths@redhat.com>
5717
5718         * gdb-events.sh (clear_gdb_event_hooks): New function.
5719         * gdb-events.c: Regenerate.
5720         * gdb-events.h: Regenerate.
5721
5722 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5723
5724         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5725         not_a_sw_breakpoint.
5726         * breakpoint.h (bpstat_stop_status): Add parameter names.
5727
5728 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5729
5730         * remote.c (remote_insert_hw_breakpoint)
5731         (remote_remove_hw_breakpoint): Fix calculation of length field
5732         for Z-packet.
5733
5734 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5735
5736         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5737         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5738         (supply_fpregset): Ditto.
5739         
5740         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5741         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5742         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5743         (TARGET_READ_SP): Delete.
5744         (DO_REGISTERS_INFO): Delete.
5745         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5746         Delete.
5747         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5748         from macros to functions.
5749
5750         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5751         (mips_register_convertible, mips_register_convert_to_virtual,
5752         mips_register_convert_to_raw): Make static.
5753         (mips_read_sp): New function.
5754         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5755         (mips_do_registers_info): Make static.
5756         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5757         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5758         (mips_register_convert_from_type, mips_register_convert_to_type):
5759         New functions.
5760         (mips_gdbarch_init): Set up function_start_offset, 
5761         register_virtual_size, pc_in_sigtramp.
5762
5763 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5764
5765         * infcmd.c (vector_info): New function.
5766         (_initialize_infcmd): Add command "info vector".
5767         (print_vector_info): New function.
5768
5769         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5770         * gdbarch.h, gdbarch.c: Regenerate.
5771
5772 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5773
5774         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5775         ``print_all''.  Only print vector registers when ``print_all''.
5776
5777 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5778
5779         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5780         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5781
5782         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5783         Add `args' parameter.
5784         * gdbarch.h, gdbarch.c: Regenerate.
5785         
5786         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5787         
5788         * infcmd.c (float_info): Call print_float_info.
5789         (print_float_info): New function.  By default, print the
5790         floating-point registers.
5791
5792         * arch-utils.h (default_print_float_info): Delete declaration.
5793         * arch-utils.c (default_print_float_info): Delete function.
5794         
5795 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5796
5797         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5798         out define.
5799
5800         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5801         FRAME.
5802
5803         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5804         * configure.host: Make i[3456]86-*-aix host obsolete.
5805         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5806         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5807         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5808         config/i386/xm-i386aix.h: Make files obsolete.
5809         * i386aix-nat.c: Make file obsolete.
5810         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5811         (i386aix-nat.o): Make target obsolete.
5812
5813         * config/i386/nm-gnu.h: Removed.
5814         * config/i386/nm-i386gnu.h: New file.
5815         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5816         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5817         Moved here from ...
5818         * config/i386/tm-i386gnu.h: ... here.  Removed.
5819         * config/i386/xm-i386gnu.h: Removed.
5820         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5821         (NAT_FILE): Set to nm-i386gnu.h.
5822         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5823         * i386-tdep.c: New file.
5824         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5825         (i386gnu-tdep.o): Specify dependencies.
5826
5827 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5828
5829         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5830         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5831         Adjust a few comments to reflect reality a bit closer.
5832         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5833         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5834         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5835         target_insert_watchpoint, target_remove_watchpoint):
5836         Move defines to ...
5837         * config/i386/nm-i386sco5.h: ... here.
5838         (kernel_u_size): Add prototype.  Improve a few comments and add
5839         protection against multiple inclusion.
5840         
5841         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5842         out define.
5843
5844         * uw-thread.c (SP_ARG0): Define if not already defined.
5845         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5846
5847         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5848
5849         * config/i386/tm-i386.h: Don't include "regcache.h".
5850
5851         * i387-tdep.h (i387_print_float_info): New prototype.
5852         * i387-tdep.c (print_i387_value, print_i387_ext,
5853         print_i387_status_word, print_i387_control_word): Add `struct
5854         ui_file *' argument and use it for output.
5855         (i387_print_float_info): Renamed from i387_float_info.  Add
5856         `struct gdbarch *' and `struct ui_file *' arguments and use the
5857         latter for output.
5858         * i386-tdep.c: Include "i387-tdep.h".
5859         (i386_gdbarch_init): Set print_float_info.
5860         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5861         (FLOAT_INFO): Remove define.
5862
5863 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5864
5865         * mips-tdep.c (mips_push_arguments): Rename to
5866         mips_eabi_push_arguments, and tune for EABI.
5867         (MIPS_REGS_HAVE_HOME_P): Delete.
5868         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5869         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5870         Delete references to mips_regs_have_home_p.
5871
5872 2002-08-14  Keith Seitz  <keiths@redhat.com>
5873
5874         * Makefile.in (install-gdbtk): Create insight plugin directory.
5875         Install plugins.tcl file.
5876
5877 2002-08-14  Keith Seitz  <keiths@redhat.com>
5878
5879         * configure.in: Move SUBDIRS to near top of the file so that
5880         --enable options may add things to it.
5881         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5882         * configure: Regenerate.
5883
5884 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5885
5886         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5887         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5888         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5889
5890 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5891
5892         * vax-tdep.c (vax_get_saved_register): Delete function.
5893         (vax_gdbarch_init): Update.
5894         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5895         (ns32k_gdbarch_init): Update.
5896         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5897         (alpha_gdbarch_init): Update.
5898
5899 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5900
5901         * regcache.c (init_regcache_descr): Overallocate the
5902         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5903         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5904         nr_raw_registers.
5905         (set_register_cached): Add range checking assertions.  Use
5906         current_regcache.
5907
5908 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5909
5910         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5911         numbers for MMX registers.
5912
5913 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5914
5915         * i386-tdep.c (i386_gdbarch_init): Use
5916         generic_unwind_get_saved_register.
5917
5918 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5919
5920         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5921         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5922         target vector.
5923         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5924         Delete.  Add comment regarding this now-deleted target method.
5925
5926 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5927
5928         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5929         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5930         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5931         real PC and the page number (if it's within the memory bank window).
5932         (m68hc11_pseudo_register_write): Likewise when saving.
5933         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5934         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5935         (m68hc11_register_raw_size): And use 32-bit for it.
5936         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5937         16K memory bank is used by the prog; also use the virtual pc.
5938
5939 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5940
5941         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5942         (m68hc11_gdbarch_init): Install it in gdbarch.
5943         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5944         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5945         (MSYMBOL_SIZE): New for documentation.
5946         (insn_return_kind): Enum to specify how a function returns.
5947         (frame_extra_info): Cleanup and record the return mode.
5948         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5949         register in address computation.
5950         (m68hc11_get_return_insn): New to obtain the return instruction used
5951         by the function.
5952         (m68hc11_frame_init_saved_regs): Take into account the return
5953         instruction used by the function for far and interrupt functions.
5954         (m68hc11_init_extra_frame_info): Take into account page register.
5955         (m68hc11_frame_args_address): Adjust according to the return mode.
5956         (show_regs): Print page register only when it's used.
5957
5958 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5959
5960         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5961         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5962         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5963         registers.
5964         (m68hc11_register_raw_size): Likewise.
5965
5966 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5967
5968         * i386-tdep.c (i386_register_name): Handle mmx registers.
5969         (mmx_regnum_p): New function.
5970         (i386_mmx_names): New array.
5971         (mmx_num_regs): New variable.
5972         (i386_pseudo_register_read): New function.
5973         (i386_pseudo_register_write): New function.
5974         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5975
5976         * regcache.c (regcache_raw_read_unsigned): New function.
5977         (regcache_raw_read_signed): New function.
5978         * regcache.h (regcache_raw_read_unsigned): Declare.
5979         (regcache_raw_read_signed): Declare.
5980
5981 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5982
5983         * regcache.c (regcache_raw_read_as_address): Delete function.
5984         (regcache_cooked_read_signed): New function.
5985         (regcache_cooked_read_unsigned): New function.
5986         * regcache.h (regcache_cooked_read_signed): Declare.
5987         (regcache_cooked_read_unsigned): Declare.
5988         (regcache_raw_read_as_address): Delete declaration.
5989
5990         * blockframe.c (generic_read_register_dummy): Use
5991         regcache_cooked_read_unsigned.
5992         * i386-tdep.c (i386_extract_struct_value_address): Use
5993         regcache_cooked_read_unsigned.
5994
5995 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5996
5997         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5998         double sizes according to ELF ABI flags.
5999         (gdbarch_tdep): Record elf_flags.
6000
6001 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6002
6003         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6004         (m6812_prolog): They can appear in 68HC12 function prologue.
6005         (m68hc11_frame_chain): Cleanup.
6006
6007 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6008
6009         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6010         declarations.
6011         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6012         (i386_linux_register_raw_size): Delete function.
6013         (i386_linux_init_abi): Update.
6014         * i386-tdep.c (i386_register_raw_size): Delete function.
6015         (i386_register_byte): Delete function.
6016         (i386_gdbarch_init): Update.
6017         (i386_register_size): Delete array.
6018         (i386_register_offset): Delete array.
6019
6020         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6021         (REGISTER_RAW_SIZE): Delete macro.
6022         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6023         (REGISTER_BYTE): Delete macro.
6024
6025 2002-08-11  Aidan Skinner <aidan@velvet.net>
6026
6027         * ada-lang.c (ada_lookup_partial_symbol)
6028         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6029         prototype names so that grep ^func works properly.
6030
6031         * ada-lang.c (ada_array_element_type)
6032         (ada_lookup_partial_symbol): Fix typos in parameter list.
6033
6034         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6035         Fix prototype names so that grep ^func works properly.
6036         
6037 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6038             Elena Zannoni  <ezannoni@redhat.com>
6039             Martin M. Hunt  <hunt@redhat.com>
6040
6041         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6042         (build_builtin_type_vec128i): Set the vector bit.
6043         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6044         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6045         (build_builtin_type_vec64): New function.
6046         (build_builtin_type_vec64i): New function.
6047         (build_gdbtypes): Initialize builtin_type_vec64 and
6048         builtin_type_vec64i.
6049
6050 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6051
6052         * regcache.c (regcache_dump): Compare the register offset
6053         with REGISTER_BYTE.
6054         * arch-utils.c (generic_register_byte): New function.
6055         * arch-utils.h (generic_register_byte): Declare.
6056         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6057         * gdbarch.h, gdbarch.c: Regenerate.
6058
6059 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6060
6061         * regcache.c: Include "gdbcmd.h"
6062         (_initialize_regcache): Add commands "maintenance print
6063         registers", "maintenance print raw-registers" and "maintenance
6064         print cooked-registers".
6065         (enum regcache_dump_what): Define.
6066         (dump_endian_bytes): New function.
6067         (regcache_dump): New function.
6068         (regcache_print): New function.
6069         (maintenance_print_registers): New function.
6070         (maintenance_print_raw_registers): New function.
6071         (maintenance_print_cooked_registers): New function.
6072         * Makefile.in (regcache.o): Update dependencies.
6073
6074 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6075
6076         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6077         (mips_push_arguments): Correct some comments.  Use paddr_nz
6078         for printing addresses in debug output.  Replace static
6079         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6080         (mips_n32n64_push_arguments): New function, cloned from
6081         mips_push_arguments and tuned for the n32/n64 ABI.
6082         (mips_push_register): Buffer needs dynamic allocation.
6083         (mips_print_register): Ditto.
6084         (do_gp_register_row): Ditto.
6085         (mips_store_return_value): Ditto.
6086         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6087
6088 2002-08-09  Don Howard  <dhoward@redhat.com>
6089
6090         * memattr.c (mem_info_command): Print special case of upper bound
6091         as max CORE_ADDR + 1.
6092
6093 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6094
6095         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6096         returns structs by ref if they're too big to fit in two registers.
6097
6098 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6099
6100         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6101         saved regs value.
6102         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6103         mips_find_saved_regs().
6104         (mips_pop_frame): Likewise.
6105
6106 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6107
6108         * blockframe.c (frame_saved_regs_register_unwind): Revise
6109         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6110         frames are in use.
6111
6112 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6113         
6114         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6115         T-packets; the 'a' is not taken as a register number.
6116         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6117         (remote_stopped_data_address): New functions; add to target
6118         vector.
6119         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6120         prototypes to match other implementations of this
6121         function. replace integer argument with pointer -- the length
6122         field in the Z-packet is the length of what is pointed to or 1 if
6123         pointer is null. Add to target vector.
6124         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6125         target vector.
6126
6127         From Mark Salter:
6128         * remote.c (remote_wait): Add support to extract optional
6129         watchpoint information from T-packet. Ignore unrecognized
6130         optional info in T-packet.
6131         (remote_async_wait): Ditto.
6132
6133 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6134
6135         * cli/cli-dump.c: Change fopen modes to use binary open modes
6136         as defined in include/fopen-bin.h throughout.
6137
6138 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6139
6140         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6141
6142 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6143
6144         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6145         assertion failure by returning early after a warning.
6146
6147 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6148
6149         * mips-tdep.c (mips_find_saved_regs): Make static.
6150         (mips_frame_init_saved_regs): New function.
6151         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6152         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6153         (mips_find_saved_regs): Delete declaration.
6154
6155 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6156
6157         * remote.c (remote_wait, remote_async_wait): Change
6158         thread_num from int to ULONGEST.
6159         (unpack_varlen_hex): Change result parameter from
6160         int * to ULONGEST *.
6161
6162 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6163
6164         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6165         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6166         powerpc*-*-*.
6167         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6168
6169 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6170
6171         * gcore.c (override_derive_stack_segment): Delete variable.
6172         (preempt_derive_stack_segment): Delete function.
6173         (derive_stack_segment): Delete function.
6174         (default_derive_stack_segment): Renamed to derive_stack_segment.
6175         (override_derive_heap_segment): Delete variable.
6176         (preempt_derive_heap_segment): Delete function.
6177         (derive_heap_segment): Delete function.
6178         (default_derive_heap_segment): Rename to derive_heap_segment.
6179
6180 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6181
6182         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6183         * mips-tdep.c (mips_EABI_use_struct_convention, 
6184         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6185         New functions.  (mips_use_struct_convention): Delete.
6186         (mips_gdbarch_init): set use_gdbarch_convention.
6187
6188 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6189
6190         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6191         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6192         mips_o32_reg_struct_has_addr): New functions.
6193         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6194
6195 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6196
6197         * regcache.c (pseudo_register): Delete function.
6198         (fetch_register): Delete function.
6199         (store_register): Delete function.
6200         (regcache_raw_read, legacy_read_register_gen): Use
6201         target_fetch_registers instead of fetch_register.
6202         (legacy_write_register_gen, regcache_raw_write): Use
6203         target_store_register instead of store_register.
6204         (write_register_bytes): Ditto.
6205
6206         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6207         (STORE_PSEUDO_REGISTER): Delete.
6208         * gdbarch.h, gdbarch.c: Regenerate.
6209
6210 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6211
6212         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6213         write dump file binary.
6214
6215 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6216
6217         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6218         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6219         (mips_gdbarch_init): Set N32 target to be mips64.
6220
6221 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6222
6223         * frame.c (find_saved_register): Break out of loop once saved
6224         register address is found.  Don't mention sparc in loop comment
6225         anymore.
6226
6227 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6228
6229         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6230         mips_default_saved_regsize to 8.
6231
6232 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6233
6234         * gcore.c: Do not include <sys/procfs.h>.
6235         * Makefile.in (gcore.o): Update dependencies.
6236
6237 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6238
6239         * configure.tgt: Make arc-*-* obsolete.
6240         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6241         * MAINTAINERS: Make arc-elf obsolete.
6242         * arc-tdep.c: Make file obsolete.
6243         * config/arc/arc.mt: Ditto.
6244         * config/arc/tm-arc.h: Ditto.
6245
6246 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6247
6248         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6249
6250 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6251
6252         * mcore-tdep.c (mcore_gdbarch_init): Use
6253         generic_unwind_get_saved_register instead of
6254         generic_get_saved_register.
6255         * v850-tdep.c (v850_gdbarch_init): Ditto.
6256         * frv-tdep.c (frv_gdbarch_init): Ditto.
6257         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6258         * s390-tdep.c (s390_gdbarch_init): Ditto.
6259         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6260         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6261         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6262
6263 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6264
6265         * objfiles.h: Add missing #include "symfile.h"
6266
6267         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6268
6269 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6270
6271         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6272         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6273         of FIELD_BITSIZE.
6274
6275 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6276
6277         * NEWS: Cleanup and nitpick.
6278
6279 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6280
6281         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6282
6283 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6284
6285         * Makefile.in (gdbtk-bp.o): Update dependencies.
6286         (gdbtk-register.o): Ditto.
6287         (gdbtk-varobj.o): Ditto.
6288
6289 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6290
6291         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6292         m68hc11_fetch_pseudo_register.
6293         (m68hc11_pseudo_register_write): Replace
6294         m68hc11_store_pseudo_register.
6295         (m68hc11_gdbarch_init): Update.
6296
6297 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6298
6299         * gdbarch.sh: Include "gdb_string.h".
6300         * gdbarch.c: Regenerate.
6301
6302         * regcache.c: Include "gdb_string.h".
6303         * ax-general.c: Ditto.
6304         * varobj.c: Ditto.
6305         * std-regs.c: Ditto.
6306         * fbsd-proc.c: Ditto.
6307         * thread.c: Ditto.
6308
6309         * Makefile.in (regcache.o): Update dependencies.
6310         (thread.o, gdbarch.o): Ditto.
6311         (ax-general.o, gdbarch.o): Ditto.
6312         (varobj.o, std-regs.o): Ditto.
6313         (fbsd-proc.o): Specify dependencies.
6314
6315 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6316
6317         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6318         regnum.
6319         (regcache_cooked_write): Ditto.
6320
6321 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6322
6323         * regcache.c (regcache_cooked_read): New function.
6324         (regcache_cooked_write): New function.
6325         (read_register_gen): Rewrite using regcache_cooked_read.
6326         (write_register_gen): Rewrite using regcache_cooked_write.
6327
6328         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6329         Declare.
6330
6331 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6332
6333         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6334         Replace the architecture methods register_read and register_write.
6335         * gdbarch.h, gdbarch.c: Regenerate.
6336         * regcache.c (init_regcache_descr): Update.
6337         (read_register_gen): Update.
6338         (write_register_gen): Update.
6339         (supply_register): Update comment.
6340
6341         * sh-tdep.c (sh_gdbarch_init): Update.
6342         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6343         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6344         pointer.  Update code.
6345         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6346         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6347         void pointer.  Update code.
6348         (sh64_register_write): Delete.
6349         (sh4_register_read): Delete.
6350         (sh64_register_read): Delete.
6351         (sh4_register_write): Delete.
6352         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6353         void pointer, `to' parameter a void pointer.
6354         (sh_sh64_register_convert_to_raw): Ditto.
6355
6356 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6357
6358         * mips-tdep.c (mips_register_virtual_type): Use architecture
6359         invariant return values.
6360
6361 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6362
6363         * linux-proc.c: Include "gdb_string.h".
6364         * Makefile.in (linux-proc.o): Update dependency list.
6365
6366 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6367
6368         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6369         comment.
6370
6371 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6372
6373         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6374         to_insert_watchpoint, to_remove_watchpoint,
6375         to_stopped_by_watchpoint, to_stopped_data_address,
6376         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6377         target vecctor. Define their corresponding macros so they call
6378         them.
6379         
6380         * target.c: Add default and debug versions of for
6381         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6382         to_insert_watchpoint, to_remove_watchpoint,
6383         to_stopped_by_watchpoint, to_stopped_data_address,
6384         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6385
6386 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6387
6388         * mips-tdep.c (mips_register_virtual_type): New function.
6389         (mips_gdbarch_init): Register mips_register_virtual_type()
6390         with gdbarch machinery.
6391         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6392         this file instead of tm-bigmips.h.
6393         (MIPS_REGSIZE): Delete this macro.
6394         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6395         multiarch version in mips-tdep.c will be found.
6396
6397 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6398
6399         * NEWS: Menion that CHILL has been made obsolete.
6400
6401         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6402         * stabsread.c (read_range_type): Ditto.
6403         * gdbtypes.h: Ditto.
6404         * language.c (binop_type_check): Ditto.
6405         (binop_result_type): Ditto.
6406         (integral_type): Ditto.
6407         (character_type): Ditto.
6408         (string_type): Ditto.
6409         (boolean_type): Ditto.
6410         (structured_type): Ditto.
6411         (lang_bool_type): Ditto.
6412         (binop_type_check): Ditto.
6413         * language.h (_LANG_chill): Ditto.
6414         * dwarfread.c (set_cu_language): Ditto.
6415         * dwarfread.c (CHILL_PRODUCER): Ditto.
6416         * dwarfread.c (handle_producer): Ditto.
6417         * expression.h (enum exp_opcode): Ditto.
6418         * eval.c: Ditto for comments.
6419         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6420         * expprint.c (print_subexp): Ditto.
6421         (print_subexp): Ditto.
6422         * valops.c (value_cast): Ditto.
6423         (search_struct_field): Ditto.
6424         * value.h (COERCE_VARYING_ARRAY): Ditto.
6425         * symfile.c (init_filename_language_table): Ditto.
6426         (add_psymbol_with_dem_name_to_list): Ditto.
6427         * valarith.c (value_binop): Ditto.
6428         (value_neg): Ditto.
6429         * valops.c (value_slice): Ditto.
6430         * symtab.h (union language_specific): Ditto.
6431         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6432         (SYMBOL_DEMANGLED_NAME): Ditto.
6433         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6434         * defs.h (enum language): Ditto.
6435         * symtab.c (got_symtab): Ditto.
6436         * utils.c (fprintf_symbol_filtered): Ditto.
6437
6438         * ch-typeprint.c: Make file obsolete.
6439         * ch-valprint.c: Make file obsolete.
6440         * ch-lang.h: Make file obsolete.
6441         * ch-exp.c: Make file obsolete.
6442         * ch-lang.c: Make file obsolete.
6443
6444         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6445         CHILL_LIB.
6446         (TARGET_FLAGS_TO_PASS): Ditto.
6447         (CHILLFLAGS): Obsolete.
6448         (CHILL): Obsolete.
6449         (CHILL_FOR_TARGET): Obsolete.
6450         (CHILL_LIB): Obsolete.
6451         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6452         ch-valprint.c.
6453         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6454         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6455         ch-lang.o.
6456         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6457         targets.
6458
6459 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6460
6461         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6462         This does not change anything at the moment, but will be helpful
6463         later when full Ada support is integrated.
6464
6465 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6466
6467         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6468         help message.
6469
6470 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6471
6472         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6473         and save it in a local variable.  Use variable in later test.
6474
6475 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6476
6477         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6478         test.  (Thanks to Daniel Jacobowitz.)
6479         
6480 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6481
6482         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6483         (mips_abi_strings): Add "n64".
6484         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6485
6486 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6487
6488         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6489         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6490
6491 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6492
6493         * utils.c (host_pointer_to_address, address_to_host_pointer):
6494         Use gdb_assert() instead of explicit call to internal_error().
6495
6496 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6497
6498         * Makefile.in (rs6000-nat.o): Update dependencies.
6499
6500         From Nicholas Duffek:
6501         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6502         (aix-thread.o): New rule.
6503         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6504         * config/powerpc/aix432.mh: New file.
6505
6506 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6507
6508         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6509         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6510         (fetch_core_registers, ppc_linux_supply_gregset)
6511         (ppc_linux_supply_fpregset): New functions.
6512         (ppc_linux_regset_core_fns): New.
6513         (_initialize_ppc_linux_tdep): Call add_core_fns.
6514         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6515         and ppc_linux_supply_gregset.
6516         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6517         (supply_fpregset): Call ppc_linux_supply_fpregset.
6518         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6519         corelow.o.
6520         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6521
6522 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6523
6524         * symtab.c (lookup_symbol): Demangle before lowercasing.
6525
6526 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6527
6528         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6529         declaration.
6530         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6531         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6532         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6533         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6534         "gdb_string.h".
6535         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6536         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6537         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6538         (avr-tdep.o, mon960-rom.o): Ditto.
6539         (aout_stabs_gnu_h): Define.
6540         (symtab_h): Remove $(gdb_obstack_h).
6541
6542 2002-07-30  Jim Blandy  <jimb@redhat.com>
6543
6544         Patch from David Carlton <carlton@math.stanford.edu>:
6545         * gdbinit.in: Move the `dir' commands that add GDB's own source
6546         directory to the search path to the end, so that the `gdb' source
6547         directory will be searched first.
6548
6549 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6550
6551         * gdb_obstack.h: New file.
6552         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6553         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6554         * objfiles.h: Include "gdb_obstack.h".
6555         * Makefile.in (gdb_obstack_h): Define.
6556         (symtab_h): Add $(gdb_obstack_h).
6557         (objfiles_h): Add $(gdb_obstack_h).
6558         
6559         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6560         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6561         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6562         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6563         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6564         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6565         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6566         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6567
6568         * Makefile.in (bcache.o): Update dependencies.
6569         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6570         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6571         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6572         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6573         (stabsread.o, symfile.o, symmisc.o): Ditto.
6574         (symtab.o, typeprint.o, macroexp.o): Ditto.
6575         (macrotab.o, mdebugread.o): Ditto.
6576         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6577         (coff_ecoff_h, aout_aout64_h): Define.
6578         (aout_stabs_gnu_h, libaout_h): Define.
6579
6580 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6581
6582         * regcache.c (struct regcache_descr): Rename nr_registers to
6583         nr_cooked_registers.  Revise comments describing the structure
6584         member fields.
6585         (init_regcache_descr): Update.
6586         (init_legacy_regcache_descr): Update.
6587         (read_register_gen, write_register_gen): When a cooked register in
6588         the raw register range, directly access the value from the raw
6589         register cache.
6590
6591 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6592
6593         * z8k-tdep.c: Do not include "obstack.h".
6594         * h8300-tdep.c, h8500-tdep.c: Ditto.
6595         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6596         * valprint.c, v850-tdep.c: Ditto.
6597         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6598         * mn10200-tdep.c: Ditto.
6599
6600         * Makefile.in (z8k-tdep.o): Update dependencies.
6601         (m68hc11-tdep.o, valprint.o): Ditto.
6602         (v850-tdep.o, d10v-tdep.o): Ditto.
6603         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6604         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6605         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6606         (sh_opc_h, gdb_sim_sh_h): Define.
6607         (elf_sh_h, elf_bfd_h): Define.
6608         (opcode_m68hc11_h): Define.
6609         (OPCODES_SRC, OPCODES_DIR): define.
6610         (OPCODES): Use $(OPCODES_DIR).
6611         (gdb_sim_d10v_h): Rename sim_d10v_h.
6612         (gdb_sim_arm_h): Rename sim_arm_h.
6613
6614 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6615
6616         * utils.c (host_pointer_to_address, address_to_host_pointer):
6617         Change internal_error() message to indicate function responsible
6618         for the error.
6619
6620 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6621
6622         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6623         calls to local_hex_string_custom().
6624
6625 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6626
6627         * irix5-nat.c: Move IRIX shared library support from here...
6628         * solib-irix.c: ...to here.  Revised substantially to work with
6629         generic solib framework.
6630
6631         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6632         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6633         * mips-irix-tdep.c: New file.
6634
6635         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6636         (mips-irix-tdep.o, solib-irix.o): New rules.
6637         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6638         solib-irix.o.
6639         * config/mips/irix6.mt (TDEPFILES): Likewise.
6640         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6641
6642 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6643
6644         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6645         disabled (via ``#if 0'') includes.
6646
6647 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6648
6649         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6650         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6651         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6652         Add support for the fpscr register.
6653         * rs6000-nat.c (regmap, fetch_inferior_registers)
6654         (store_inferior_registers, fetch_core_registers): Likewise.
6655
6656 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6657
6658         * rs6000-nat.c (language.h): Include.
6659         (special_regs): Delete this array.
6660         (regmap): New function.
6661         (fetch_register, store_register):  Use regmap() to map gdb
6662         register numbers to ptrace register numbers.  Also, use
6663         outputs from regmap() to make decisions regarding type of
6664         ptrace() call to make.  In particular, don't compare against
6665         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6666         (fetch_inferior_registers, store_inferior_registers): Where
6667         possible, obtain register numbers from tdep struct.  Don't
6668         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6669         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6670         (LAST_UISA_SP_REGNUM): Delete.
6671         
6672 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6673
6674         * rs6000-nat.c (ppc-tdep.h): Include.
6675         (fetch_registers, store_register, fetch_core_registers): Don't
6676         access registers[] directly.  Instead, use supply_register() or
6677         regcache_collect() as appropriate.
6678         (find_toc_address): Format hex address with local_hex_string().
6679
6680 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6681
6682         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6683         bfd/elf32-frv.c.
6684
6685 2002-07-24  Tom Tromey  <tromey@redhat.com>
6686
6687         * jv-exp.y: Marked all strings with _().
6688         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6689         internal_error.
6690         (MethodInvocation, CastExpression, parse_number, yyerror,
6691         java_type_from_name, push_expression_name, yylex): Typo fixes.
6692
6693 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6694
6695         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6696         (tee_file_flush, tee_file_write, tee_file_fputs)
6697         (tee_file_isatty): New.
6698         * ui-file.h (tee_file_new): Add prototype.
6699
6700 2002-07-24  Aidan Skinner <aidan@velvet.net>
6701
6702         * ada-lang.c: Change k&r style function definitions to prototyped
6703         form.
6704         * ada-typeprint.c: Change k&r style function definitions to prototyped
6705         form.
6706         * ada-valprint.c: Change k&r style function definitions to prototyped
6707         form.
6708         
6709 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6710
6711         * README: Remove reference to remote-bug.
6712         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6713         remote-bug.c.
6714         (m88k-nat.o): Delete rule.
6715         (m88k-tdep.o): Delete rule.
6716         (remote-bug.o): Delete rule.
6717         * MAINTAINERS: Mark as obsolete.
6718         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6719         * m88k-tdep.c: Make file obsolete.
6720         * config/m88k/m88k.mh: Ditto.
6721         * config/m88k/delta88v4.mh: Ditto.
6722         * config/m88k/delta88v4.mt: Ditto.
6723         * config/m88k/delta88.mt: Ditto.
6724         * config/m88k/delta88.mh: Ditto.
6725         * remote-bug.c: Ditto.
6726         * config/m88k/tm-delta88.h: Ditto.
6727         * config/m88k/nm-delta88v4.h: Ditto.
6728         * config/m88k/xm-delta88.h: Ditto.
6729         * config/m88k/xm-dgux.h: Ditto.
6730         * config/m88k/tm-m88k.h: Ditto.
6731         * config/m88k/nm-m88k.h: Ditto.
6732         * config/m88k/tm-delta88v4.h: Ditto.
6733         * m88k-nat.c: Ditto.
6734         * cxux-nat.c: Ditto.
6735         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6736         and m88*-*-* obsolete.
6737         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6738         m88*-*-* obsolete.
6739
6740 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6741
6742         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6743         constant.  Same for local pointer variables.
6744         (extract_signed_integer): Ditto.
6745         * defs.h (extract_unsigned_integer): Update.
6746         (extract_signed_integer): Update.
6747
6748 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6749
6750         * regcache.c (regcache_raw_write): Change buf parameter to a
6751         constant void pointer.
6752         (regcache_raw_read): Change buf parameter to a void pointer.
6753         (legacy_write_register_gen): Change myaddr parameter a constant
6754         void pointer.
6755         (supply_register): Change val parameter to a const void pointer.
6756         * regcache.h (regcache_raw_write): Update declaration.
6757         (regcache_raw_read): Update declaration.
6758         (supply_register): Update declaration.
6759
6760 2002-07-24  Tom Tromey  <tromey@redhat.com>
6761
6762         * defs.h (gdb_readline_wrapper): Declare.
6763         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6764         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6765         * top.c (gdb_readline_wrapper): New function.
6766         (command_line_input): Use it.
6767
6768 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6769
6770         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6771         regcache_read and regcache_write.
6772         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6773         * regcache.c: Update.
6774         * sh-tdep.c (sh64_push_arguments): Update comment.
6775         (sh_pseudo_register_read): Update.
6776         (sh_pseudo_register_write): Update.
6777         (sh4_register_read): Update.
6778         (sh4_register_write): Update.
6779         (sh64_pseudo_register_read): Update.
6780         (sh64_pseudo_register_write): Update.
6781         (sh64_register_read): Update.
6782         (sh64_register_write): Update.
6783         * i386-tdep.c (i386_extract_return_value): Update.
6784         (i386_extract_struct_value_address): Update.
6785         (i386_extract_return_value): Update.
6786         * blockframe.c (generic_read_register_dummy): Update.
6787         (generic_call_dummy_register_unwind): Update
6788         * infrun.c (write_inferior_status_register): Update.
6789
6790 2002-07-23  Jim Blandy  <jimb@redhat.com>
6791
6792         * parser-defs.h (expression_context_pc): Make this extern.
6793         (Thanks to Michael Snyder.)
6794
6795 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6796
6797         GDB 5.2.1 released from 5.2 branch.
6798         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6799         * README: Update to mention 5.2.1.
6800
6801 2002-07-23  Mark Salter  <msalter@redhat.com>
6802
6803         * remote.c (remote_read_bytes): Fix check for error.
6804
6805 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6806
6807         * aix-thread.c (language.h): Include.
6808         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6809         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6810         Print newlines at end of debug messages.
6811         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6812         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6813
6814 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6815
6816         * aix-thread.c (ppc-tdep.h): Include.
6817         (special_register_p): New function.
6818         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6819         (store_regs_user_thread): Use register number information from
6820         gdbarch_tdep struct instead of hardcoded offsets relative to
6821         FIRST_UISA_SP_REGNUM.
6822         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6823         special_register_p() instead of using FPLAST_REGNUM and
6824         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6825         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6826         will be MQ's register number.
6827
6828 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6829
6830         * aix-thread.c (ops): Rename to aix_thread_ops.
6831         (base_ops): Rename to base_target.
6832         (ops_attach): Rename to aix_thread_attach.
6833         (ops_detach): Rename to aix_thread_detach.
6834         (ops_resume): Rename to aix_thread_detach.
6835         (ops_wait):   Rename to aix_thread_wait.
6836         (ops_kill):   Rename to aix_thread_kill.
6837         (init_ops):   Rename to init_aix_thread_ops.
6838         (ops_fetch_register): Rename to aix_thread_fetch_register.
6839         (ops_store_register): Rename to aix_thread_store_register.
6840         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6841         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6842         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6843         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6844         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6845         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6846         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6847         (store_regs_lib):  Rename to store_regs_user_thread.
6848         (store_regs_kern): Rename to store_regs_kernel_thread.
6849
6850 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6851
6852         * aix-thread.c (ops_prepare_to_store): Eliminate.
6853         (init_ops): Don't initialize ops.prepare_to_store.
6854         (store_regs_kern): Pre-fetch register buffers from child, 
6855         because some registers may not be in the cache.  Copy
6856         regs from register cache only if they are cached.
6857         (store_regs_lib): Copy regs from register cache only
6858         if they are cached.
6859         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6860         fill_gprs64): Ditto.
6861
6862 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6863
6864         * aix-thread.c (gdb_assert.h): Include.
6865         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6866         register sizes (from register cache) match size of buffer holding
6867         register data.
6868         (fill_sprs32): Change parameter types to match those in the ptrace()
6869         buffer.
6870         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6871         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6872
6873 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6874
6875         * aix-thread.c (supply_sprs64): Cosmetic change.
6876         (supply_sprs32): Cosmetic change.
6877         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6878         (fill_sprs64): Use regcache_collect instead of read_register.
6879         (store_regs_lib): Use regcache_collect instead of 
6880         read_register.  Use fill_sprs32 instead of fill_sprs64,
6881         if debugging a 32-bit architecture.
6882         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6883         out of the register cache, instead of passing a pointer into
6884         the register cache directly to ptrace.  Use regcache_collect
6885         insteaad of read_register.
6886         (ops_prepare_to_store): Use target_read_registers instead
6887         of read_register_bytes.
6888
6889 2002-07-20  Aidan Skinner <aidan@velvet.net>
6890
6891         * MAINTAINERS: Add self under write after approval. 
6892                 
6893 2002-07-20  Aidan Skinner <aidan@velvet.net>
6894
6895         * ada-tasks.c: Change k&r style function definitions to prototyped
6896         form.
6897                 
6898 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6899
6900         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6901         * x86-64-tdep.c: Include "objfiles.h".
6902         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6903         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6904
6905 2002-07-17  Michal Ludvig  <michal@suse.cz>
6906
6907         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6908         (update_context): Initialise cfa variable.
6909
6910 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6911
6912         * aix-thread.c: Shorten some long lines.  
6913         Bring comments into line with code spec.
6914
6915 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6916
6917         * infrun.c: Re-indent using gdb_indent.sh.
6918
6919 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6920
6921         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6922         Leave the indentation temporarily untouched, to minimize the diffs.
6923
6924 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6925
6926         * stabsread.c: Make os9k sections of the code obsolete,
6927         for real this time.
6928         * stabsread.h: Make os9k sections of the code obsolete.
6929
6930 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6931
6932         * linux-low.c (regsets_store_inferior_registers): Add free()
6933         at the end of a loop to prevent memory leak.
6934         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6935         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6936         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6937         line a comment.
6938         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6939
6940 2002-07-17  Jim Blandy  <jimb@redhat.com>
6941
6942         * macrocmd.c (info_macro_command): Remove newline from error
6943         message.
6944
6945 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6946
6947         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6948         (sh_gdbarch_init): Use it for sh-dsp.
6949
6950 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6951
6952         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6953         64-bit DWARF2 format.
6954
6955 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6956
6957         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6958         <sys/proc.h> when not available.
6959
6960 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6961
6962         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6963         * stabsread.c: Make os9k sections of the code obsolete.
6964         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6965         * config/i386/i386os9k.mt: Make file obsolete.
6966         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6967         (COMMON_OBS): Remove os9kread.o
6968         (SFILES): Remove os9kread.c.
6969         (os9kread.o, remote-os9k.o): Make target obsolete.
6970         * remote-os9k.c: Make file obsolete.
6971         * os9kread.c: Make file obsolete.
6972         * Makefile.in
6973
6974 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6975
6976         * NEWS: Mention that the FR30 has been made obsolete.
6977         * fr30-tdep.c: Make file obsolete.
6978         * config/fr30/tm-fr30.h: Ditto.
6979         * config/fr30/fr30.mt: Ditto.
6980         * configure.tgt: Make fr30-*-elf obsolete.
6981         * MAINTAINERS: Make fr30-elf obsolete.
6982
6983 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6984
6985         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6986         found is not inside a section.
6987
6988 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6989
6990         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6991         strerror().
6992         (pdc_realloc): Use xrealloc() instead of realloc().
6993
6994 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6995
6996         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6997         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6998         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6999         macros.
7000
7001 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7002
7003         * aix-thread.c (ptrace_check): Eliminate goto.
7004         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7005         problem.
7006
7007 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7008
7009         * aix-thread.c (gdbcmd.h): Include.
7010         (DEBUG, DBG, DBG2, dbg): Eliminate.
7011         (debug_aix_thread): New static global.
7012         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7013         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7014         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7015         invocations to DBG and DBG2 macros to test against
7016         ``debug_aix_thread'' and call fprintf_unfiltered().
7017         (_initialize_aix_thread): Add new command "set debug aix-thread".
7018
7019 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7020
7021         From Gerhard Tonn <TON@de.ibm.com>:
7022         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7023         instead of supply_register.
7024
7025 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7026
7027         * dwarf2cfi.c: Include "gdb_assert.h".
7028         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7029         non-NULL.
7030         (update_context): Do not use __func__.  Add missing ``break''.
7031         (update_context): Do not use __func__.
7032
7033 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7034
7035         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7036         and its setting.  Set gdbarch instruction printing functions
7037         directly.  For non-rs6000 case use new function
7038         gdb_print_insn_powerpc.
7039         (gdb_print_insn_powerpc): New function.
7040
7041 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7042
7043         * NEWS: Mention that the d30v has been marked obsolete.
7044         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7045         * configure.tgt: Mark d30v-*-* as obsolete.
7046         * d30v-tdep.c: Mark file as obsolete.
7047         * config/d30v/d30v.mt: Ditto.
7048         * config/d30v/tm-d30v.h: Ditto.
7049
7050 2002-07-13  Aidan Skinner <aidan@velvet.net>
7051
7052         * ada-tasks.c (add_task_entry): replace calls to
7053         malloc() with xmalloc
7054         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7055         
7056         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7057         ada_finish_decode_line_1, all_sals_for_line
7058         ada_breakpoint_rewrite): replace calls to free() with xfree()
7059                 
7060 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7061
7062         From Nicholas Duffek (with minor changes by Martin Hunt, 
7063         Louis Hamilton, and Kevin Buettner):
7064         * aix-thread.c: New file.
7065
7066 2002-07-12  Petr Sorfa <petrs@caldera.com>
7067
7068         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7069         complaint for invalid attribute class or form.
7070         (read_func_scope): DW_AT_frame_base
7071         better handling of DW_AT_block*.
7072         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7073         better handling of DW_AT_block*.
7074         (read_common_block): DW_AT_location
7075         better handling of DW_AT_block*.
7076         (read_partial_die): DW_AT_location better handling
7077         of DW_AT_block*.
7078         (new_symbol): DW_AT_external better handling of
7079         DW_AT_block*. Proper initialization of variable
7080         "addr".
7081         (attr_form_is_block): New function that returns true
7082         if the attribute's form is of DW_FORM_block*.
7083
7084 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7085
7086         * valops.c (find_method_list): Remove comment about
7087         removed STATIC_MEMFUNCP argument.
7088         (value_find_oload_method_list): Likewise.
7089
7090 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7091
7092         From Nicholas Duffek:
7093         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7094         target_new_objfile_hook.
7095
7096 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7097
7098         From Nicholas Duffek:
7099         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7100         csect.
7101
7102 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7103
7104         * MAINTAINERS: Mention --enable-sim-build-warnings.
7105         (m68hc11-elf): Disable sim build warnings.
7106         (m32r-elf): Mark as broken obsolete candidate.
7107         (x86_64-linux-gnu): Mark as buildable with -Werror.
7108         (arm-elf): Change -w to ``,'' which enables warnings but not
7109         -Werror.
7110
7111 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7112
7113         * bcache.h: Update copyright.
7114         (struct bstring, struct bcache): Move definition to "bcache.c".
7115         Replaced by opaque declaration.
7116         (bcache_xfree): Replace free_bcache.
7117         (bcache_xmalloc, bcache_memory_used): Declare.
7118         
7119         * bcache.c: Update copyright.
7120         (struct bstring, struct bcache): Moved to here from "bcache.h".
7121         Update comments.
7122         (bcache_xmalloc, bcache_memory_used): New functions.
7123         (bcache_xfree): Replace function free_bcache.
7124         
7125         * Makefile.in (objfiles.o): Add $(bcache_h).
7126         (objfiles_h): Remove $(bcache_h).
7127         (symfile.o): Add $(bcache_h).
7128
7129         * symmisc.c: Update copyright.
7130         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7131         (print_objfile_statistics): Use bcache_memory_used.
7132
7133         * symfile.c: Include "bcache.h".
7134         (reread_symbols): Use bcache_xfree.
7135         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7136         (add_psymbol_to_list): Pass psymbol_cache by value.
7137         (add_psymbol_with_dem_name_to_list): Ditto.
7138
7139         * objfiles.h: Update copyright.
7140         (struct bcache): Declare opaque.  Do not include "bcache.h".
7141         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7142         bcache'' pointers.
7143         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7144
7145         * objfiles.c: Include "bcache.h".  Update copyright.
7146         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7147         macro_cache.
7148         (free_objfile): Use bcache_xfree.
7149
7150 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7151
7152         * monitor.c (monitor_fetch_register): Make name a constant.
7153         (monitor_store_register): Same.
7154
7155 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7156
7157         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7158         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7159         (finish_block) For non-function blocks, hash the symbol table.  For
7160         function blocks, mark the symbol table as unhashed.
7161         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7162         (msymbol_hash_iw): Likewise.
7163         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7164         value.
7165         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7166         (lookup_minimal_symbol): Likewise for both.
7167         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7168         hashtable.
7169         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7170         (ALL_BLOCK_SYMBOLS): Update.
7171         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7172         (struct symbol): Add `hash_next' pointer.
7173         * symtab.c (lookup_block_symbol): Search using the hash table when
7174         possible.
7175         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7176         (search_symbols, find_addr_symbol): Likewise.
7177
7178         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7179         (read_dst_symtab): Likewise.
7180         * jv-lang.c (get_java_class_symtab): Likewise.
7181         * mdebugread.c: Include "gdb_assert.h".
7182         (shrink_block): Assert that the block being modified is not hashed.
7183         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7184         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7185         symbols.
7186         (dump_symtab): Recognize hashed blocks.
7187         * printcmd.c (print_frame_args):  Assert that function blocks do not
7188         have hashed symbol tables.
7189         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7190         (fill_in_ada_prototype, debug_print_block): Likewise.
7191         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7192
7193 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7194
7195         * stack.c (print_frame): Use result of frame_address_in_block()
7196         instead of fi->pc when evaluating symbols.
7197         (backtrace_command_1): Ditto.
7198
7199 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7200
7201         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7202         Make static.
7203
7204         * arm-tdep.c (arm_register_name): Make return type constant.
7205
7206 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7207
7208         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7209         prototype.
7210         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7211         * s390-tdep.c (s390_fp_regnum): Ditto.
7212         (s390_read_fp): Ditto.
7213         (s390_pop_frame): Ditto.
7214         (_initialize_s390_tdep): Ditto.
7215         * remote.c (get_remote_state): Ditto.
7216         * procfs.c (mappingflags): Ditto.
7217         * memattr.c (_initialize_mem): Ditto.
7218         * mcore-tdep.c (mcore_pop_frame): Ditto.
7219         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7220         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7221         * language.c (set_case_str): Ditto.
7222         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7223         * frv-tdep.c (new_variant): Ditto.
7224         (frv_stopped_data_address): Ditto.
7225         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7226         (context_alloc): Ditto.
7227         (frame_state_alloc): Ditto.
7228         (unwind_tmp_obstack_init): Ditto.
7229         (unwind_tmp_obstack_free): Ditto.
7230         (cfi_read_fp): Ditto.
7231         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7232         (cris_pop_frame): Ditto.
7233         * c-lang.c (scanning_macro_expansion): Ditto.
7234         (finished_macro_expansion): Ditto.
7235         (c_preprocess_and_parse): Ditto.
7236         * gdbarch.sh: Ditto.
7237         * gdbarch.h, gdbarch.c: Regenerate.
7238         * config/mn10200/tm-mn10200.h: Adjust indentation.
7239         * target.c: Adjust indentation.
7240         * symtab.h: Adjust indentation.
7241         * stabsread.h: Adjust indentation.
7242         * remote-es.c: Adjust indentation.
7243         * os9kread.c: Adjust indentation.
7244
7245 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7246         
7247         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7248         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7249
7250 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7251         
7252         * NEWS: Mention m68k, mcore multi-arching.  
7253         * MAINTAINERS: Change status of m68k, mcore to reflect
7254         multi-arching.
7255
7256 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7257
7258         * valops.c (find_overload_match): Free oload_syms.
7259
7260 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7261
7262         Define HAVE_SYS_PROC_H if sys/proc.h exists
7263         * configure.in: Add check for sys/proc.h
7264         * config.in: Regenerate.
7265         * configure: Regenerate.
7266
7267 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7268
7269         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7270         #if !GDB_MULTI_ARCH. 
7271
7272 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7273
7274         * config.in, configure: Regenerate.
7275
7276 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7277
7278         * dwarf2cfi.c: Include "gcore.h".
7279         (execute_stack_op): Fix implementation of the
7280         DW_OP_deref and DW_OP_deref_size operators by letting do their
7281         lookup in the target.
7282
7283 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7284
7285         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7286         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7287         tdep->sc_sp_offset.
7288
7289 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7290
7291         Fix PR gdb/595, gdb/602
7292         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7293         Don't call value_cast, just read the vtable pointer; update comments
7294         to match.
7295
7296 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7297
7298         * config/mcore/tm-mcore.h: Remove file.
7299         * config/mcore/mcore.mt: Remove definition of TM_FILE
7300         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7301
7302 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7303
7304         * i386bsd-tdep.c: Include "gdb_string.h".
7305
7306 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7307
7308         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7309         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7310         mcore-tdep.
7311         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7312         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7313         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7314         (RETVAL_REGNUM): Move macros from tm-mcore.h
7315         (mcore_reg_struct_has_addr): New function.
7316         (mcore_gdbarch_init): Added initializations for the macros removed
7317         from tm-mcore.h.
7318
7319 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7320
7321         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7322         traditonal string branding within the ELF header.
7323
7324 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7325
7326         * symtab.c (remove_params): New function.
7327         (make_symbol_overload_list): Use it instead of cplus_demangle.
7328         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7329
7330 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7331
7332         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7333
7334         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7335         New variables.
7336         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7337         and tdep->sigtramp_end.
7338         * i386obsd-nat.c: New file.
7339         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7340
7341         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7342         Don't call get_current_frame().
7343
7344 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7345
7346         * i386-nat.c (child_post_startup_inferior): New function
7347         calling i386_cleanup_dregs if
7348         I386_USE_GENERIC_WATCHPOINTS is defined.
7349         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7350         conditional to acknowledge that i386-nat.c has its
7351         own child_post_startup_inferior function.
7352
7353 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7354
7355         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7356         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7357         instead of MAX_REGISTER_RAW_SIZE.
7358         (i386_extract_return_value, i386_extract_struct_value_address):
7359         Convert to use regcache.
7360         (i386_gdbarch_init): Set max_register_raw_size and
7361         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7362         Set extract_return_value and extract_struct_value_address instead
7363         of their deprecated variants.
7364
7365         Convert i386 target to generic dummy frames.
7366         * i386-tdep.c: Include "symfile.h".
7367         (i386_frameless_signal_p): Consider a function to be frameless if
7368         the pc points at the first instruction of the function.
7369         (i386_frame_chain): Handle (generic) call dummies.
7370         (i386_frame_saved_pc): Likewise.
7371         (i386_frame_init_saved_regs): Remove code dealing with call
7372         dummies on the stack.
7373         (i386_push_dummy_frame): Removed.
7374         (i386_call_dummy_words): Removed.
7375         (i386_fix_call_dummy): Removed.
7376         (i386_push_return_address): New function.
7377         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7378         parameter, and don't call get_current_frame.
7379         (i386_pop_frame): New function.
7380         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7381         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7382         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7383         call_dummy_length to 0, set call_dummy_words to NULL, set
7384         sizeof_call_dummy_words to 0, set fix_call_dummy to
7385         generic_fix_call_dummy, set pc_in_call_dummy to
7386         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7387         generic_push_dummy_frame, set push_return_address to
7388         i386_push_return_address and set frame_chain_valid to
7389         generic_file_frame_chain_valid.
7390
7391 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7392
7393         * gdbarch.sh (struct regcache): Add opaque declaration.
7394         (EXTRACT_RETURN_VALUE): New architecture method.
7395         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7396         * gdbarch.h, gdbarch.c: Regenerate.
7397         * arch-utils.c (legacy_extract_return_value): New function.
7398         * arch-utils.h (legacy_extract_return_value): Declare.
7399         * values.c (value_being_returned): Re-enable code handling
7400         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7401         deprecated_grub_regcache_for_registers call to block handling
7402         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7403         (EXTRACT_RETURN_VALUE): Do not define.
7404
7405 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7406
7407         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7408         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7409         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7410         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7411         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7412         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7413         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7414         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7415         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7416         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7417         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7418         argument so the function fits the prototype in the architecture
7419         vector.
7420         (mcore_pop_frame): Remove argument so the function fits the
7421         prototype. Use get_current_frame instead of the argument.
7422         (mcore_push_arguments): Change type of struct_return so the
7423         function can be used in the architecture vector.
7424         (mcore_store_struct_return): Add.
7425         (mcore_frame_init_saved_regs): Add.
7426         (mcore_gdbarch_init): Add function calls to replace the macros
7427         removed from tm-mcore.h
7428
7429 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7430
7431         * infcmd.c (print_return_value): Remove compatibility code calling
7432         deprecated_grub_regcache_for_registers.
7433         
7434         * values.c: Include "regcache.h".
7435         (value_being_returned): Update.  Use
7436         deprecated_grub_regcache_for_registers to extract the register
7437         buffer address.  
7438         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7439         ``struct regcache''.
7440         * Makefile.in (values.o): Add dependency on $(regcache_h).
7441
7442         * inferior.h (run_stack_dummy): Change type of second parameter to
7443         a ``struct regcache''.
7444         * valops.c (hand_function_call): Change type of retbuf to ``struct
7445         regcache''.  Allocate using regcache_xmalloc, clean using
7446         make_cleanup_regcache_xfree.
7447         * infcmd.c (run_stack_dummy): Update.  Use
7448         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7449
7450         * regcache.c (do_regcache_xfree): New function.
7451         (make_cleanup_regcache_xfree): New function.
7452         * regcache.h (make_cleanup_regcache_xfree): Declare.
7453
7454 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7455
7456         * event-top.c (command_line_handler): Don't read past
7457         beginning of buffer.
7458
7459 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7460         
7461         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7462         struct frame_id. 
7463         (varobj_create): Store frame_id for root.
7464         (varobj_gen_name): Use xasprintf.
7465         (varobj_update): Save and restore frame using get_frame_id() and
7466         frame_find_by_id().
7467         (create_child): Use xasprintf.
7468         (new_root_variable): Initialize frame_id.
7469         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7470         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7471         to prevent memory leak.
7472
7473 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7474
7475         * valops.c (hand_function_call): Move declaration of retbuf to
7476         start of function, allocate using malloc, add a cleanup but before
7477         the inf_status cleanup, cleanup the buffer.  Rename local variable
7478         old_chain to inf_status_cleanup.
7479
7480 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7481
7482         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7483
7484         * cli/cli-decode.c (cmd_func_p): New function.
7485         (cmd_func): New function.
7486
7487         * command.h: Add cmd_func() and cmd_func_p().   
7488         
7489 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7490
7491         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7492         (REGISTER_SIZE): Remove.
7493         (MAX_REGISTER_RAW_SIZE): Remove.
7494         (REGISTER_VIRTUAL_TYPE): Remove.
7495         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7496         (REGISTER_NAME): Remove.
7497         (USE_GENERIC_DUMMY_FRAMES): Remove.
7498         (CALL_DUMMY): Remove.
7499         (CALL_DUMMY_START_OFFSET): Remove.
7500         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7501         (CALL_DUMMY_LOCATION): Remove.
7502         (FIX_CALL_DUMMY): Remove.
7503         (CALL_DUMMY_ADDRESS): Remove.
7504         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7505         (SAVE_DUMMY_FRAME_TOS): Remove.
7506         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7507         (mcore_register_virtual_type): New function.
7508         (mcore_register_byte): New function.
7509         (mcore_register_size): New function.
7510         (mcore_register_name): New function.
7511         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7512         macros removed from tm-mcore.h.
7513         (mcore_dump_tdep): Add.
7514         (_initialize_mcore_tdep): Add gdbarch_register call.
7515
7516 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7517
7518         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7519         frameless_look_for_prologue, such that we actually call this
7520         function.
7521
7522 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7523
7524         * frame.h (frame_address_in_block): New function.
7525
7526         * blockframe.c (frame_address_in_block): New function extracted
7527         from get_frame_block().
7528         (get_frame_block): Use frame_address_in_block().
7529         (block_innermost_frame): Use frame_address_in_block() to match
7530         the frame pc address against the block boundaries rather than
7531         the frame pc directly. This prevents a failure when a frame pc
7532         is actually a return-address pointing immediately after the end
7533         of the given block. 
7534
7535 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7536
7537         * MAINTAINERS: Add self under write after approval. 
7538
7539 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7540
7541         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7542         used in architecture vector. The default is
7543         m68k_local_breakpoint_from_pc.
7544         (m68k_local_breakpoint_from_pc): Add.
7545         (enum): Add register numbers from tm-m68k.h.
7546         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7547         vector.  
7548         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7549         GDB_MULTI_ARCH_PARTIAL.
7550         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7551         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7552         m68k-tdep.c.
7553         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7554         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7555         to enum in m68k-tdep.c
7556
7557 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7558
7559         * solib-osf.c (open_map): Compute the list of shared libraries
7560         loaded by the inferior, rather than the list of libraries loaded
7561         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7562         the wrong shared libraries...
7563
7564 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7565
7566         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7567         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7568         macros.
7569         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7570         Remove functions.
7571         (FRAMELESS_SIGNAL): Remove function.
7572         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7573         i386_linux_saved_pc_after_call): Removed.
7574         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7575         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7576         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7577
7578         * i386-tdep.c (i386_frameless_signal_p): New function.
7579         (i386_frame_chain): Deal with frameless signals.
7580         (i386_sigtramp_saved_sp): New function.
7581         (i386_frame_saved_pc): Deal with frameless signals.
7582         (i386_saved_pc_after_call): Make sure the correct value is
7583         returned just after entry into a sigtramp.
7584         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7585         i386fbsd4_sc_sp_offset): New variables.
7586         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7587         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7588         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7589         similiar to what we already did for sc_pc_offset.
7590         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7591         tdep->sc_sp_offset.
7592
7593         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7594
7595 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7596
7597         * config/i386/tm-x86-64linux.h: New.
7598         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7599         definitions.
7600         * config/i386/nm-x86-64.h: Rename to ...
7601         * config/i386/nm-x86-64linux.h: ... this one.
7602         * config/i386/x86-64linux.mh: Reflect the above change.
7603         
7604 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7605
7606         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7607         with sigcontext_addr.  Add sc_sp_offset.
7608         (i386bsd_sigtramp_saved_pc): Remove prototype.
7609         (i386bsd_sicontext_addr): Add prototype.
7610         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7611         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7612         (i386_svr4_sigtramp_saved_pc): Removed.
7613         (i386_svr4_sigcontext_addr): New function.
7614         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7615         Initialize tdep->sigcontext_addr instead.  Initialize
7616         tdep->sc_pc_offset and tdep->sc_sp_offset.
7617         (i386_gdbarch_init): Likewise.
7618         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7619         any more.
7620         (i386bsd_sigtramp_saved_pc): Remove function.
7621         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7622         Initialize tdep->sigcontext_addr instead.  Initialize
7623         tdep->sc_pc_offset.
7624         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7625         of tdep->sigtramp_saved_pc.
7626         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7627         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7628         instead.
7629
7630         * i386-tdep.c (i386_frameless_function_invocation,
7631         i386_frame_num_args, i386_frame_init_saved_regs,
7632         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7633         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7634         i386_extract_return_value, i386_store_return_value,
7635         i386_extract_struct_value_address, i386_register_virtual_type,
7636         i386_register_convertible, i386_register_convert_to_virtual,
7637         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7638         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7639         static.
7640
7641 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7642
7643         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7644
7645         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7646         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7647         this macro.  Include "value.h".
7648
7649 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7650
7651         * ada-exp.tab.c: remove as it's a generated file
7652         * ada-lex.c: remove as it's a generated file
7653                 
7654 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7655
7656         * config/i386/tm-i386.h (struct frame_info, struct
7657         frame_saved_regs, struct value, struct type): Remove forward
7658         declarations.
7659
7660         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7661         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7662         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7663         (FILL_FPXREGSET): Define.
7664
7665         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7666
7667         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7668         i[3456]86-*-netbsd* case.
7669         * config/i386/tm-obsd.h: Removed.
7670         * config/i386/obsd.mt: Removed.
7671         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7672         core-aout.o.
7673         (MH_CFLAGS): Add -DYYDEBUG=0.
7674
7675         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7676         i386nbsd_sc_pc_offset on OpenBSD too.
7677
7678         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7679         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7680         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7681         define.
7682         * i386bsd-tdep.c: Include "arch-utils.h".
7683         (i386bsd_aout_in_solib_call_trampoline): New function.
7684         (i386bsd_init_abi): Set in_solib_call_trampoline to
7685         i386bsd_aout_in_solib_call_trampoline.
7686         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7687         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7688
7689 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7690
7691         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7692         (struct obstack, struct bcache): Add opaque declarations.
7693         * Makefile.in (macrotab_h): Update
7694
7695 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7696
7697         * blockframe.c (generic_find_dummy_frame): Change return type to
7698         ``struct regcache''.
7699         (struct dummy_frame): Replace field ``registers'' with regcache, a
7700         struct regcache object.
7701         (generic_find_dummy_frame): Update.
7702         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7703         regcache_xmalloc and regcache_cpy.
7704         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7705         regcache_xfree.
7706         (deprecated_generic_find_dummy_frame): Update.
7707         (generic_read_register_dummy): Update.  Use
7708         regcache_read_as_address.
7709         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7710         (generic_get_saved_register): Update.  Use regcache_read.
7711
7712 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7713
7714         * Makefile.in (objfiles_h): Add $(bcache_h).
7715         * objfiles.h: Include "bcache.h".
7716
7717         * Makefile.in (symtab_h): Remove $(bcache_h).
7718         * symtab.h: Do not include "bcache.h".
7719
7720 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7721
7722         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7723         generic_func_frame_chain_valid.
7724
7725 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7726
7727         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7728         * config/i386/tm-fbsd.h: Likewise.
7729
7730 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7731
7732         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7733         generic_unwind_get_saved_register.
7734
7735 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7736
7737         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7738         * regcache.c (supply_register): Add missing argument to
7739         register_buffer call.
7740
7741 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7742
7743         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7744         Solaris /bin/grep does not not like it.  From Peter Schauer.
7745
7746 2002-06-26  Tom Tromey  <tromey@redhat.com>
7747
7748         * command.h (add_setshow_cmd): Declare.
7749         (add_setshow_cmd_full): Declare.
7750         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7751         returns void.  Use add_setshow_cmd_full.
7752         (add_setshow_cmd_full): New function.
7753         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7754         (add_setshow_boolean_cmd): Likewise.
7755
7756 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7757
7758         * config/vax/tm-vax.h: Protect from multiple inclusion.
7759         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7760         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7761         * config/vax/tm-vaxbsd.h: ...here.  New file.
7762         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7763
7764 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7765
7766         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7767         (BELIEVE_PCC_PROMOTION): Remove.
7768         (AP_REGNUM): Move to...
7769         * config/vax/nm-vax.h: ...here.
7770         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7771         (vax_breakpoint_from_pc): New function.
7772         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7773         and gdbarch_believe_pcc_promotion.
7774
7775 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7776
7777         * Makefile.in (vax_tdep_h): Define.  
7778         (vax-tdep.o): Use $(vax_tdep_h).
7779         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7780         (vax_dump_tdep): New function. 
7781         (_initialize_vax_tdep): Register vax_dump_tdep.
7782         * vax-tdep.h: Include osabi.h.     
7783         (struct gdbarch_tdep): New. 
7784
7785 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7786
7787         * frame.h (deprecated_generic_find_dummy_frame): Rename
7788         generic_find_dummy_frame.
7789         * blockframe.c (generic_find_dummy_frame): Make static.
7790         (deprecated_generic_find_dummy_frame): New function.
7791         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7792         generic_find_dummy_frame with deprecated_find_dummy_frame.
7793         (sh64_nofp_frame_init_saved_regs): Ditto.
7794         (sh_fp_frame_init_saved_regs): Ditto.
7795         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7796         (s390_frame_chain): Ditto.
7797         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7798
7799 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7800
7801         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7802         gdbarch vector are at the top.
7803         (NUM_REGS): Remove.
7804         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7805         (FRAME_ARGS_ADDRESS): Remove.
7806         (FRAME_LOCALS_ADDRESS): Remove.
7807         (FRAME_NUM_ARGS): Remove.
7808         (FRAME_ARGS_SKIP): Remove.  
7809         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7810         (m68k_gdbarch_init): Add gdbarch initializations for macros
7811         undefined in tm-m68k.h
7812
7813 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7814
7815         * monitor.h: Add the function regname to monitor_ops
7816         structure. This way NUM_REGS does not have to be a constant.
7817         * monitor.c (monitor_fetch_register): Added support for regname
7818         function. The function is called if the array regnames is NULL.
7819         (monitor_store_register): Same.
7820         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7821         regnames array.
7822         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7823         cpu32bug_cmds.regname to point to new function.
7824         * abug-rom.c (abug_regname): Same as above.
7825         (init_abug_cmds): Same.
7826         * dbug-rom.c (dbug_regname): Same as above.
7827         (init_dbug_cmds): Same.
7828         * remote-est.c (est_regname): Same. 
7829         (init_est_cmds): Same.
7830         * rom68k-rom.c (rom68k_regname): Same. 
7831         (init_rom68k_cmds): Same.
7832
7833 2002-06-25  Tom Tromey  <tromey@redhat.com>
7834
7835         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7836
7837 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7838
7839         * infrun.c (stop_registers): Change variable's type to ``struct
7840         regcache'''.
7841         (xmalloc_inferior_status): Delete function.
7842         (free_inferior_status): Delete function.
7843         (normal_stop): Use regcache_cpy.
7844         (struct inferior_status): Change type of fields ``stop_registers''
7845         and ``registers'' to ``struct regcache''.
7846         (write_inferior_status_register): Use regcache_write.
7847         (save_inferior_status): Instead of calling
7848         xmalloc_inferior_status, allocate the inf_status buffer directly.
7849         Use regcache_dup_no_passthrough and regcache_dup to save the
7850         buffers.
7851         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7852         Replace the stop_registers regcache instead of overriding it.  Use
7853         regcache_xfree.  Instead of calling free_inferior_status, xfree
7854         the buffer directly.
7855         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7856         free_inferior_status, xfree the buffer directly.
7857         (build_infrun): Use regcache_xmalloc.
7858         (_initialize_infrun): Delete redundant call to build_infrun.
7859
7860         * Makefile.in (infcmd.o): Add $(regcache_h).
7861
7862         * infcmd.c: Include "regcache.h".
7863         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7864         obtain the address of `stop_registers' register buffer.
7865         (print_return_value): Ditto.
7866
7867         * inferior.h (struct regcache): Add opaque declaration.
7868         (stop_registers): Change variable's declared type to ``struct
7869         regcache''.
7870
7871 2002-06-24  Tom Tromey  <tromey@redhat.com>
7872
7873         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7874         * target.c (initialize_targets): Fixed typo in
7875         trust-readonly-sections `show' documentation.
7876
7877         * main.c: Marked all strings with _().
7878
7879 2002-06-24  Don Howard  <dhoward@redhat.com>
7880
7881         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7882         that means max CORE_ADDR+1.
7883         (lookup_mem_region): Ditto.
7884         (mem_info_command): Ditto.
7885
7886 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7887
7888         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7889         (REGISTER_BYTES_OK): Remove.
7890         (REGISTER_BYTES): Remove.
7891         (STORE_STRUCT_RETURN): Remove.
7892         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7893         (STORE_RETURN_VALUE): Remove.
7894         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7895         (FRAME_CHAIN): Remove.
7896         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7897         (FRAME_SAVED_PC): Remove.  
7898         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7899         (m68k_store_struct_return): Add.
7900         (m68k_deprecated_extract_return_value): Add.
7901         (m68k_deprecated_extract_struct_value_address): Add.
7902         (m68k_store_return_value): Add.
7903         (m68k_frame_chain): Add.
7904         (m68k_frameless_function_invocation): Add.
7905         (m68k_frame_saved_pc): Add.
7906         (m68k_gdbarch_init): added set_gdbarch calls for new 
7907         functions and deleted macros.
7908
7909 2002-06-23  Tom Tromey  <tromey@redhat.com>
7910
7911         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7912         (ALLDEPFILES): Likewise.
7913         (udiheaders): Removed.
7914         (udip2soc.o): Likewise.
7915         (udi2go32.o): Likewise.
7916         (udr.o): Likewise.
7917         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7918
7919 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7920
7921         * infrun.c (_initialize_infrun): Delete unnecessary call to
7922         build_infrun.
7923
7924         * regcache.h: Update comments describing the regcache_cpy family
7925         of functions.
7926         (regcache_save, regcache_restore): Delete declaration.
7927         (regcache_save_no_passthrough): Delete declaration.
7928         (regcache_restore_no_passthrough): Delete declaration.
7929         * regcache.c (regcache_save): Delete function.
7930         (regcache_save_no_passthrough): Delete function.
7931         (regcache_restore): Delete function.
7932         (regcache_restore_no_passthrough): Delete function.
7933
7934 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7935
7936         * config/m68k/tm-m68k.h: Fix typo.
7937         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7938         (m68k_frame_init_saved_regs): Declare.
7939
7940 2002-06-21  Jim Blandy  <jimb@redhat.com>
7941
7942         Remove some vestiges of Harris 88k support.
7943         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7944         register numbering quirk.
7945         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7946         odd symbols occurring in Harris 88k ELF targets.
7947
7948 2002-06-21  Tom Tromey  <tromey@redhat.com>
7949
7950         * gdb_locale.h: New file.
7951         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7952         (defs_h): Added gdb_locale.h.
7953         * configure, config.in: Rebuilt.
7954         * configure.in (PACKAGE): Define.
7955         * defs.h: Include gdb_locale.h.
7956         * main.c (captured_main): Call setlocale, bindtextdomain,
7957         textdomain.
7958
7959 2002-06-21  Dave Brolley  <brolley@redhat.com>
7960
7961         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7962         * config/frv/frv.mt: New file.
7963         * config/frv/tm-frv.h: New file.
7964         * configure.tgt: Support frv-*-*.
7965         * Makefile.in (frv-tdep.o): New target.
7966         * frv-tdep.c: New file.
7967         * NEWS: Mention frv.
7968
7969 2002-06-21  Dave Brolley  <brolley@redhat.com>
7970
7971         * MAINTAINERS: Add self to "Write After Approval" list.
7972
7973 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7974
7975         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7976         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7977         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7978         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7979         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7980
7981         * m68k-tdep.c: Include arch-utils.h
7982         (m68k_register_raw_size): Add.
7983         (m68k_register_virtual_size): Add.
7984         (m68k_register_virtual_type): Add.
7985         (m68k_register_name): Add.
7986         (m68k_stack_align): Add.
7987         (m68k_register_byte): Add.
7988         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7989         tm-m68k.h.
7990
7991 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7992
7993         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7994         m68k_find_saved_regs.
7995         (m68k_pop_frame): Removed saved_regs structure, and replaced
7996         references to it with frame->saved_regs.
7997         (m68k_gdbarch_init): Added function calls to initialize the
7998         gdbarch structure.
7999         (m68k_fix_call_dummy): Add. 
8000         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8001         (CALL_DUMMY): Remove.
8002         (CALL_DUMMY_LENGTH): Remove.
8003         (CALL_DUMMY_START_OFFSET): Remove.
8004         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8005         (FIX_CALL_DUMMY): Remove.
8006         (PUSH_DUMMY_FRAME): Remove.
8007         (POP_FRAME): Remove.
8008
8009 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8010
8011         * parse.c (parse_fprintf): New function used to avoid calls to
8012         fprintf in bison parser generated debug code.
8013         * parser-defs.h: Declaration of new parse_fprintf function.
8014         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8015         Set YYDEBUG to 1 by default.
8016         Set YYFPRINTF as parse_fprintf.
8017
8018 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8019
8020         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8021         encoding anymore.
8022         (pointer_encoding, enum ptr_encoding): New.
8023         (execute_cfa_program): Take care about pointer encoding.        
8024         (dwarf2_build_frame_info): Only call parse_frame_info for 
8025         .debug_frame and .eh_frame.
8026         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8027         fixed augmentation handling, added relative addressing, 
8028         ignore duplicate FDEs. Added comments.
8029         * dwarf2cfi.c: Reindented.
8030         
8031 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8032
8033         * event-top.c (command_handler): Don't use space_at_cmd_start
8034         unless there is sbrk() on the host. Assign time and space data
8035         to union fields of the appropriate length.
8036
8037 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8038
8039         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8040         x86_64_register_name. Return type changed to 'const char *'.
8041         (x86_64_register_name2nr): Rename to x86_64_register_number.
8042         (x86_64_gdbarch_init): Update to reflect the change.
8043         * x86-64-tdep.h: Ditto.
8044         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8045         (supply_fpregset): Ditto.
8046
8047 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8048
8049         * regcache.h: Update copyright.
8050         (struct regcache, struct gdbarch): Add opaque declarations.
8051         (current_regcache): Declare global variable.
8052         (regcache_read, regcache_write): Add gdbarch parameter.
8053         (regcache_save, regcache_save_no_passthrough)
8054         (regcache_restore, regcache_restore_no_passthrough)
8055         (regcache_dup, regcache_dup_no_passthrough)
8056         (regcache_cpy, regcache_cpy_no_passthrough)
8057         (deprecated_grub_regcache_for_registers)
8058         (deprecated_grub_regcache_for_register_valid)
8059         (regcache_valid_p): Add function declarations.
8060         
8061         * regcache.c: Update copyright.
8062         (regcache_descr_handle): New global variable.
8063         (struct regcache_descr): Define.
8064         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8065         (regcache_descr, xfree_regcache_descr): New functions.
8066         (struct regcache): Define.
8067         (regcache_xmalloc, regcache_xfree): New functions.
8068         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8069         (regcache_dup, regcache_dup_no_passthrough): New functions.
8070         (regcache_valid_p, regcache_read_as_address): New functions.
8071         (deprecated_grub_regcache_for_registers): New function.
8072         (deprecated_grub_regcache_for_register_valid): New function.
8073         (current_regcache): New global variable.
8074         (register_buffer): Add regcache parameter.  Update calls.
8075         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8076         (read_register_gen, write_register_gen): Update register_buffer
8077         call.  Test for legacy_p instead of gdbarch_register_read_p or
8078         gdbarch_register_write_p.
8079         (regcache_collect): Update register_buffer call.
8080         (build_regcache): Rewrite.  Use deprecated grub functions.
8081         (regcache_save, regcache_save_no_passthrough): New functions.
8082         (regcache_restore, regcache_restore_no_passthrough): New
8083         functions.
8084         (_initialize_regcache): Create the regcache_data_handle. Swap
8085         current_regcache global variable.
8086         
8087         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8088         parameter to regcache_read and regcache_write calls.
8089         (sh4_register_read): Ditto.
8090         (sh64_pseudo_register_read): Ditto.
8091         (sh64_register_read): Ditto.
8092         (sh_pseudo_register_write): Ditto.
8093         (sh4_register_write): Ditto.
8094         (sh64_pseudo_register_write): Ditto.
8095         (sh64_register_write): Ditto.
8096
8097         * defs.h (XCALLOC): Define.
8098
8099 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8100
8101         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8102         * m68k-tdep.c (m68k_gdbarch_init): Added.
8103         (m68k_dump_tdep): Added.
8104
8105 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8106
8107         * ada-lang.c (fill_in_ada_prototype): Update comment.
8108
8109 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8110
8111         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8112         MIPS_ABI_LAST.
8113         (mips_abi_string, mips_abi_strings): New.
8114         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8115         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8116         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8117         O32 if no ABI is found.
8118         (mips_dump_tdep): Use mips_abi_strings.
8119         (mips_abi_update): New function.
8120         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8121         ``set mips abi'' and ``show mips abi''.  Check the size of
8122         mips_abi_strings.
8123
8124 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8125
8126         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8127         constant.
8128
8129 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8130
8131         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8132         current frame using only the first stack size adjustment. All
8133         subsequent size adjustments are not considered to be part of
8134         the "static" part of the current frame.
8135         Compute the address of the saved registers relative to the
8136         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8137         in use in this frame.
8138
8139 2002-06-18  Don Howard  <dhoward@redhat.com>
8140  
8141         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8142         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8143         suggesting this solution.
8144
8145 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8146
8147         * config/romp/xm-rtbsd.h: Delete file.
8148         * config/romp/rtbsd.mh: Delete file.
8149
8150 2002-06-18  Keith Seitz  <keiths@redhat.com>
8151
8152         * breakpoint.c (condition_command): Post breakpoint_modify
8153         when a condition is added to an existing breakpoint.
8154         (commands_command): Likewise for commands.
8155         (set_ignore_count): Likewise for ignore counts.
8156         If no tty, do not simply return, still need to send event
8157         notification.
8158         (ignore_command): Only print a newline if the command came
8159         from a tty.
8160         Don't call breakpoints_changed, since this is now properly
8161         handled by set_ignore_count.
8162
8163 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8164
8165         * MAINTAINERS: Note that cris-elf target can be compiled with
8166         -Werror.
8167         * cris-tdep.c (cris_register_name): Make return type constant.
8168         (cris_breakpoint_from_pc): Ditto.
8169
8170 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8171
8172         * frame.h (struct frame_info): Change type of context to 
8173         'struct context'.
8174
8175 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8176
8177         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8178         pointer.
8179         * gdbarch.h, gdbarch.c: Regenerate.
8180         * config/mips/tm-mips.h (mips_register_name): Update.
8181         * i386-tdep.h (i386_register_name): Update.
8182         * mips-tdep.c (mips_register_name): Update
8183         * alpha-tdep.c (alpha_register_name): Update.
8184         * arch-utils.c (legacy_register_name): Update.
8185         * arch-utils.h (legacy_register_name): Update.
8186         * avr-tdep.c (avr_register_name): Update.
8187         * ia64-tdep.c (ia64_register_name): Update.
8188         * i386-tdep.c (i386_register_name): Update.
8189         * sparc-tdep.c (sparc32_register_name): Update.
8190         (sparc64_register_name): Update.
8191         (sparclite_register_name): Update.
8192         (sparclet_register_name): Update.
8193         * sh-tdep.c (sh_generic_register_name): Update.
8194         (sh_sh_register_name): Update.
8195         (sh_sh3_register_name): Update.
8196         (sh_sh3e_register_name): Update.
8197         (sh_sh_dsp_register_name): Update.
8198         (sh_sh3_dsp_register_name): Update.
8199         (sh_sh4_register_name): Update.
8200         (sh_sh64_register_name): Update.
8201         * s390-tdep.c (s390_register_name): Update.
8202         * rs6000-tdep.c (rs6000_register_name): Update.
8203         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8204         (ns32k_register_name_32382): Update.
8205         * d10v-tdep.c (d10v_ts2_register_name): Update.
8206         (d10v_ts3_register_name): Update.
8207         * xstormy16-tdep.c (xstormy16_register_name): Update.
8208         * vax-tdep.c (vax_register_name): Update.
8209         * v850-tdep.c (v850_register_name): Update.
8210         * m68hc11-tdep.c (m68hc11_register_name): Update.
8211         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8212         (am33_register_name): Update.
8213
8214 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8215
8216         * m68k-tdep.c: Reindented.
8217
8218 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8219
8220         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8221         list of predefined types.
8222
8223 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8224
8225         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8226         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8227         REGISTER_CONVERT_TO_RAW): Remove defines.
8228         (i386_register_virtual_type, i386_register_convertible,
8229         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8230         Remove prototypes.
8231         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8232         macros mentioned above.
8233
8234         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8235         (i386lynx_saved_pc_after_call): Remove prototype.
8236         * i386ly-tdep.c: Include "i386-tdep.h".
8237         (i386lynx_saved_pc_after_call): Make static.  Use
8238         read_memory_nobpt instead of read_memory.  Use
8239         read_memory_unsigned_integer instead of read_memory_integer.
8240         (i386lynx_init_abi): New function.
8241         (i386lynx_coff_osabi_sniffer): New function.
8242         (_initialize_i386bsd_tdep): New function.
8243
8244         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8245         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8246         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8247         (i386_fix_call_dummy): Remove prototype.
8248         * i386-tdep.c (i386_call_dummy_words): New variable.
8249         (i386_gdbarch_init): Adjust for removal of the
8250         macros mentioned above.
8251
8252 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8253
8254         * command.h (add_setshow_auto_boolean_cmd): Replace
8255         add_set_auto_boolean_cmd.
8256         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8257         add_set_auto_boolean_cmd.
8258         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8259         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8260         mask-address'' command.
8261         (show_mask_address): Add cmd parameter.
8262         * remote.c (add_packet_config_cmd): Update.  Change type of
8263         set_func and show_func to cmd_sfunc_ftype.
8264         (_initialize_remote): Update `set remote Z-packet'
8265         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8266         (show_remote_protocol_e_packet_cmd): Ditto.
8267         (show_remote_protocol_E_packet_cmd): Ditto.
8268         (show_remote_protocol_P_packet_cmd): Ditto.
8269         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8270         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8271         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8272         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8273         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8274         (show_remote_protocol_Z_packet_cmd): Ditto.
8275         (show_remote_protocol_binary_download_cmd): Ditto.
8276         (show_remote_cmd): Pass NULL to all of above.
8277
8278 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8279
8280         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8281         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8282         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8283         POP_FRAME): Remove defines.
8284         (i386_push_arguments, i386_store_struct_return,
8285         i386_extract_return_value, i386_store_return_value,
8286         i386_extract_struct_value_address, i386_push_dummy_frame,
8287         i386_pop_frame): Renove prototypes.
8288         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8289         macros mentioned above.
8290
8291 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8292
8293         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8294         add_set_boolean_cmd.
8295         (add_setshow_cmd): New function.
8296         * command.h (add_setshow_boolean_cmd): Replace
8297         add_set_boolean_cmd.
8298         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8299         and ``set rdiromatzero''.
8300         * maint.c (_initialize_maint_cmds): Update commented out code.
8301         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8302         * target.c (initialize_targets): Update `set
8303         trust-readonly-sections'.
8304         * remote.c (_initialize_remote): Update `set remotebreak'.
8305
8306 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8307
8308         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8309         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8310         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8311         fit into multi-arch framework.
8312         (i386_breakpoint_from_pc): New function.
8313         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8314         above.
8315
8316         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8317         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8318         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8319         (i386_frameless_function_invocation, i386_frame_num_args,
8320         i386_frame_init_saved_regs): Remove prototypes.
8321         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8322         macros mentioned above.
8323
8324 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8325
8326         * cli/cli-decode.c (set_cmd_cfunc): Update.
8327         (set_cmd_sfunc): Update.
8328         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8329         (set_cmd_sfunc, set_cmd_cfunc): Update.
8330         * cli/cli-decode.h: Update.
8331
8332 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8333
8334         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8335         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8336
8337 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8338
8339         * defs.h (auto_boolean): Declare enum.
8340         * command.h (cmd_auto_boolean): Delete enum.
8341         * mips-tdep.c (mask_address_var): Update.
8342         (mips_mask_address_p): Update.
8343         (show_mask_address): Update.
8344         * remote.c (struct packet_config): Update.
8345         (update_packet_config): Update.
8346         (show_packet_config_cmd): Update.
8347         (packet_ok): Update.
8348         (add_packet_config_cmd): Update.
8349         (_initialize_remote): 
8350         * command.h: Update.
8351         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8352         (do_setshow_command): Update.
8353         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8354         * cli/cli-decode.h: Update.
8355
8356 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8357
8358         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8359         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8360         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8361         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8362         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8363         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8364
8365         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8366         list of DJGPP COFF targets.
8367
8368         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8369         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8370         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8371         (FP0_REGNUM): Remove define.
8372         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8373         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8374         (i386_register_virtual_size): Remove protoype.
8375         * i386-tdep.c (i386_register_virtual_size): Removed.
8376         (i386_extract_return_value, i386_store_return_value): Use
8377         FP0_REGNUM instead of NUM_FREGS to determine whether the
8378         floating-point registers are available.
8379         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8380         Adjust for removal of macros mentioned above.
8381
8382 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8383
8384         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8385         comments.
8386         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8387         Remove prototypes.
8388         (supply_gregset, fill_gregset): Remove use of register keyword and
8389         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8390         NUM_REGS and NUM_FREGS.
8391         (FPREGSET_FSAVE_OFFSET): Remove.
8392         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8393         NUM_FREGS to determine whether the floating-point registers are
8394         available.
8395
8396         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8397         gnu_store_registers): Replace usage of NUM_GREGS with
8398         I386_NUM_GREGS.
8399
8400         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8401         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8402         usage of NUM_GREGS with I386_NUM_GREGS.
8403
8404         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8405
8406         * i386bsd-nat.c: Include "i386-tdep.h".
8407         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8408         I386_NUM_GREGS.
8409
8410         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8411         and associated comment.  They no longer make any sense, since we
8412         don't use this file anymore on Linux.
8413
8414         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8415         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8416         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8417         elements in these arrays.
8418         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8419         MAX_NUM_REGS.
8420
8421 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8422
8423         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8424         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8425
8426 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8427
8428         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8429         EXTRACT_RETURN_VALUE.
8430         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8431         EXTRACT_STRUCT_VALUE_ADDRESS.
8432         * gdbarch.h, gdbarch.c: Regenerate.
8433         
8434         * values.c (value_being_returned): Handle
8435         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8436         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8437
8438         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8439         * arm-tdep.c (arm_gdbarch_init): Update.
8440         * avr-tdep.c (avr_gdbarch_init): Update.
8441         * cris-tdep.c (cris_gdbarch_init): Update.
8442         * d10v-tdep.c (d10v_gdbarch_init): Update.
8443         * ia64-tdep.c (ia64_gdbarch_init): Update.
8444         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8445         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8446         * s390-tdep.c (s390_gdbarch_init): Update.
8447         * sh-tdep.c (sh_gdbarch_init): Update.
8448         * s390-tdep.c (s390_gdbarch_init): Update.
8449         * sparc-tdep.c (sparc_gdbarch_init): Update.
8450         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8451         * v850-tdep.c (v850_gdbarch_init): Update.
8452         * vax-tdep.c (vax_gdbarch_init): Update.
8453         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8454         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8455
8456         * config/arc/tm-arc.h: Update.
8457         * config/d30v/tm-d30v.h: Update.
8458         * config/fr30/tm-fr30.h: Update.
8459         * config/h8300/tm-h8300.h: Update.
8460         * config/h8500/tm-h8500.h: Update.
8461         * config/i386/tm-i386.h: Update.
8462         * config/i386/tm-ptx.h: Update.
8463         * config/i386/tm-symmetry.h: Update.
8464         * config/i960/tm-i960.h: Update.
8465         * config/m32r/tm-m32r.h: Update.
8466         * config/m68k/tm-delta68.h: Update.
8467         * config/m68k/tm-linux.h: Update.
8468         * config/m68k/tm-m68k.h: Update.
8469         * config/m88k/tm-m88k.h: Update.
8470         * config/mcore/tm-mcore.h: Update.
8471         * config/mips/tm-mips.h: Update.
8472         * config/mn10200/tm-mn10200.h: Update.
8473         * config/pa/tm-hppa.h: Update.
8474         * config/pa/tm-hppa64.h: Update.
8475         * config/sparc/tm-sp64.h: Update.
8476         * config/sparc/tm-sparc.h: Update.
8477         * config/sparc/tm-sparclet.h: Update.
8478         * config/z8k/tm-z8k.h: Update.
8479
8480 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8481
8482         * Makefile.in (i386_linux_tdep_h): Define.
8483         (i386_tdep_h, i387_tdep_h): Define.
8484         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8485         $(i386_tdep_h) and $(i387_tdep_h).
8486         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8487
8488 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8489
8490         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8491         Already covered by the default.
8492
8493         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8494         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8495         (i386_gdbarch_init): Initialize long_double_format and long_double
8496         bit.
8497
8498         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8499         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8500         Move these to ...
8501         * config/i386/i386sol2.mh: ... here.
8502         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8503         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8504         (SIGCONTEXT_PC_OFFSET): Remove define.
8505         (IN_SIGTRAMP): Remove define.
8506         * i386-sol2-tdep.c: New file.
8507         
8508         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8509         * config/i386/tm-i386nw.h: Removed.
8510
8511         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8512         USE_STRUCT_CONVENTION): Remove defines.
8513         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8514         (get_longjmp_target): Remove prototype.
8515         (IN_SIGTRAMP): Remove define.
8516         (i386bsd_in_sigtramp): Remove prototype.
8517         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8518         function.  Update comment accordingly
8519         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8520         (FRAME_SAVED_PC): Remove define.
8521         (i386bsd_frame_saved_pc): Remove prototype.
8522         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8523         GET_LONGJMP_TARGET): Remove defines.
8524         (get_longjmp_target): Remove prototype.
8525         (IN_SIGTRAMP): Remove define.
8526         (i386bsd_in_sigtramp): Remove prototype.
8527         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8528         function.  Update comment accordingly
8529         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8530         (FRAME_SAVED_PC): Remove define.
8531         (i386bsd_frame_saved_pc): Remove prototype.
8532         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8533         Remove prototype.
8534         (USE_STRUCT_CONVENTION): Remove prototype.
8535         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8536         declaration.
8537         (_initialize_i386bsd_nat): Revise logic to determine some
8538         constants at compile time when compiling a native GDB.  Warn if
8539         things don't match up with what we expect.
8540         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8541         Remove variables.
8542         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8543         to use date stored in `struct gdbarch_tdep'.
8544         (i386bsd_sigcontext_offset): Remove varaible.
8545         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8546         stored in `struct gdbarch_tdep'.
8547         (i386bsd_frame_saved_pc): Make static.
8548         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8549         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8550         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8551         i386fbsd4_sc_pc_offset): New variables.
8552         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8553         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8554         functions.
8555         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8556         functions.
8557         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8558         Modify the value of i386fbsd_sigtramp_start and
8559         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8560         i386fbsd_sigtramp_end.
8561         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8562         function.
8563
8564         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8565         define to i386-linux-tdep.h.
8566         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8567         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8568         defines.
8569         (i386_linux_register_name, i386_linux_register_byte,
8570         i386_linux_register_raw_size): Remove prototypes.
8571         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8572         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8573         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8574         TARGET_WRITE_PC): Remove defines.
8575         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8576         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8577         i386_linux_write_pc): Remove prototypes.
8578         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8579         (get_longjmp_target): Remove prototype.
8580         * i386-linux-tdep.h: New file.
8581         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8582         * i386-linux-tdep.c: Include "i386-tdep.h" and
8583         "i386-linux-tdep.h".
8584         (i386_linux_register_name, i386_linux_register_byte,
8585         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8586         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8587         Make static.
8588         (i386_linux_init_abi): New function.
8589         (_initialize_i386_linux_tdep): New function.
8590
8591         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8592         (i386_saved_pc_after_call): Remove prototype.
8593         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8594         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8595         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8596         (i386_register_name, i386_stab_reg_to_regnum,
8597         i386_dwarf_reg_to_regnum): Remove prototypes.
8598         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8599         SIZEOF_SSE_REGS): Remove defines.
8600         (REGISTER_BYTES): Remove define.
8601         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8602         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8603         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8604         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8605         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8606         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8607         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8608         (get_longjmp_target): Remove prototype.
8609         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8610         (sigtramp_saved_pc): Remove define.
8611         (i386v4_sigtramp_saved_pc): Remove prototype.
8612         * config/i386/tm-go32.h (FRAME_CHAIN,
8613         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8614         (i386go32_frame_saved_pc): Remove prototype.
8615         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8616         (get_longjmp_target): Remove prototype.
8617         * i386-tdep.h: Include "osabi.h".
8618         (enum i386_abi): Removed.
8619         (enum struct_return): New enum.
8620         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8621         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8622         sc_pc_offset members.
8623         (i386_gdbarch_register_os_abi): Remove prototype.
8624         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8625         I386_SSE_NUM_REGS): New defines.
8626         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8627         I386_SSE_SIZEOF_REGS): New defines.
8628         (i386_register_name, i386_register_byte, i386_register_raw_size):
8629         New prototypes.
8630         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8631         (i386bsd_sigtramp_saved_pc): New prototype.
8632         * i386-tdep.c: Don't include "elf-bfd.h".
8633         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8634         i386_frame_chain, i386_saved_pc_after_call): Make static.
8635         (i386_frame_saved_pc): Rewrite to call architecture dependent
8636         function to deal with signal handlers.  Make static.
8637         (i386go32_frame_saved_pc): Removed.
8638         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8639         Removed.
8640         (i386_get_longjmp_target): New function.
8641         (default_struct_convention, pcc_struct_convention,
8642         reg_struct_convention, valid_conventions, struct_convention): New
8643         variables.
8644         (i386_use_struct_convention): New function.
8645         (i386v4_sigtramp_saved_pc): Renamed to
8646         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8647         (i386_pc_in_sigtramp): New function.
8648         (i386_abi_names): Removed.
8649         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8650         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8651         Removed.
8652         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8653         i386_gdbarch_register_os_abi): Removed.
8654         (struct i386_abi_handler): Removed.
8655         (i386_abi_handler_list): Removed.
8656         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8657         functions.
8658         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8659         i386_nw_init_abi): New functions.
8660         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8661         Use set_gdbarch_xxx() calls instead of relying on macros for a
8662         number of calls.
8663         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8664         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8665         Register the various architecture variants defined in this file.
8666
8667 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8668
8669         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8670         (struct main_type): Remove arg_types member.  Update comments for
8671         struct field.
8672         (TYPE_ARG_TYPES): Remove.
8673         (TYPE_FN_FIELD_ARGS): Update.
8674         (smash_to_method_type): Update prototype.
8675
8676         * c-typeprint.c (cp_type_print_method_args): Take method type
8677         instead of argument list.  Use new argument layout.  Simplify.
8678         (c_type_print_args): Use new argument layout.  Simplify.
8679         (c_type_print_base): Update call to cp_type_print_method_args.
8680         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8681         argument; use die->type instead.  Update call to
8682         smash_to_method_type.
8683         (read_structure_scope): Update call to dwarf2_add_member_fn.
8684         * gdbtypes.c (allocate_stub_method): Update comment.
8685         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8686         Use new argument layout.
8687         (check_stub_method): Use new argument layout.  Don't count
8688         void as an argument.
8689         (print_arg_types): Update comments.  Use new argument layout.
8690         (recursive_dump_type): Don't print arg_types member.
8691         * hpread.c (hpread_read_struct_type): Use new argument layout.
8692         (fixup_class_method_type): Likewise.
8693         (hpread_type_lookup): Likewise.
8694         * stabsread.c (read_type): Update calls to read_args and
8695         smash_to_method_type.
8696         (read_args): Use new argument layout.  Simplify.
8697         * valops.c (typecmp): Use new argument layout.  Update parameters
8698         and comments.  Simplify.
8699         (hand_function_call): Use new argument layout.
8700         (search_struct_method): Update call to typecmp.
8701         (find_overload_match): Use new argument layout.
8702
8703 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8704
8705         * NEWS: Mention multithreaded debug support for gdbserver.
8706
8707 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8708
8709         * MAINTAINERS: Mention NEWS.
8710
8711 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8712
8713         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8714         (struct mips_objfile_private, compare_pdr_entries): New.
8715         (non_heuristic_proc_desc): Read the ".pdr" section if it
8716         is present.
8717
8718 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8719
8720         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8721         (arm_debug): New static variable.
8722         (_initialize_arm_tdep): Add ``set debug arm'' command.
8723
8724 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8725
8726         * Makefile.in (sim_arm_h): Define.
8727         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8728         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8729         (arm_register_sim_regno): New function, map an internal REGNUM
8730         onto a simulator register number.
8731         (arm_gdbarch_init): Set register_sim_regno.
8732
8733 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8734
8735         * MAINTAINERS: Add self.
8736
8737 2002-06-11  Jim Blandy  <jimb@redhat.com>
8738
8739         * source.c (source_info): Mention whether the symtab has
8740         information about preprocessor macros.
8741
8742         Call the command `info macro', not `show macro'.
8743         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8744         Fix error message.
8745         (_initialize_macrocmd): Register `info_macro_command' in
8746         `infolist', not `showlist'.
8747
8748 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8749
8750         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8751         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8752         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8753         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8754         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8755         unconditionally.
8756         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8757         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8758         (_initialize_mips_tdep): Remove dead code.
8759         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8760         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8761         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8762         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8763         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8764         MIPS_LAST_FP_ARG_REGNUM): Remove.
8765
8766 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8767
8768         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8769         (unwind_tmp_obstack_free, parse_frame_info)
8770         (update_context, cfi_read_fp, cfi_write_fp)
8771         (cfi_frame_chain, cfi_init_extra_frame_info)
8772         (cfi_virtual_frame_pointer): Use the above function.
8773         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8774
8775 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8776
8777         * v850-tdep.c (v850_type_is_scalar): New function.
8778         (v850_use_struct_convention): Match current gcc implementation
8779         as close as possible.
8780         (v850_push_arguments): Fix stack_offset handling.  Don't write
8781         struct_addr into register.  This is done by v850_store_struct_return.
8782         (v850_extract_return_value): Care for structs.
8783         (v850_store_return_value): Ditto.
8784         (v850_store_struct_return): Actually write address.
8785
8786 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8787
8788         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8789         without debug information too.
8790
8791 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8792
8793         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8794         Make multi-arch pure.
8795         * gdbarch.h, gdbarch.c: Re-generate.
8796         * arm-tdep.c (arm_print_float_info): Update.
8797         * arch-utils.h (default_print_float_info): Update.
8798         * arch-utils.c (default_print_float_info): Update.
8799         * infcmd.c (float_info): Update call.
8800
8801 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8802
8803         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8804         the front of the initialize list.
8805
8806 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8807
8808         * infrun.c (struct inferior_status): Replace fields
8809         selected_frame_address and selected_level with field
8810         selected_frame_id.
8811         (save_inferior_status): Update.  Use get_frame_id.
8812         (struct restore_selected_frame_args): Delete.
8813         (restore_selected_frame): Update.  Use frame_find_by_id.
8814         (restore_inferior_status): Update.
8815
8816         * breakpoint.h (struct breakpoint): Change type of
8817         watchpoint_frame to frame_id.
8818         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8819         call to get_current_frame.
8820         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8821         get_current_frame.
8822         (watchpoint_check): Use frame_find_by_id.
8823
8824         * frame.h (record_selected_frame): Delete declaration.
8825         * stack.c (record_selected_frame): Delete function.
8826         
8827         * frame.h (struct frame_id): Define.
8828         (get_frame_id): Declare.
8829         (frame_find_by_id): Declare.
8830         * frame.c (frame_find_by_id): New function.
8831         (get_frame_id): New function.
8832
8833 2002-06-10  Andrey Volkov <avolkov@transas.com>
8834
8835         * ser-e7kpc.c: Fix duplicated define and call of 
8836         _initialize_ser_e7000pc
8837             
8838 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8839
8840         * signals/signals.c (target_signal_from_host): Fix #ifdef
8841         SIGRTMIN case.
8842         (do_target_signal_to_host): Likewise.
8843
8844 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8845
8846         * mips-tdep.c (mips_find_abi_section): New function.
8847         (mips_gdbarch_init): Call it.
8848
8849 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8850
8851         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8852         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8853         after Andrew's 2002-06-08 gdbarch change.
8854
8855 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8856
8857         * i386-linux-nat.c (suppy_gregset): Don't supply
8858         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8859         register cache.
8860         (fill_gregset): Don't fetch it under the same circumstances.
8861
8862 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8863
8864         * Makefile.in (callback_h): Define.
8865         (remote_sim_h): Update path to remote-sim.h.
8866         (remote-rdp.o): Add $(callback_h).
8867         (remote-sim.o): Use $(callback_h).
8868         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8869         * remote-rdp.c: Include "gdb/callback.h".
8870
8871 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8872
8873         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8874         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8875
8876 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8877
8878         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8879         * rdi-share/serpardr.c: Ditto.
8880         * rdi-share/unixcomm.c: Ditto.
8881         * rdi-share/serdrv.c: Ditto.
8882         * rdi-share/hostchan.h: Ditto.
8883         * rdi-share/hostchan.c: Ditto.
8884         * rdi-share/host.h: Ditto.
8885         * rdi-share/devsw.c: Ditto.
8886
8887         * objfiles.h: Change type of obj_private to void pointer.
8888         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8889         strcmp instead of STREQ, use LONGEST, do not use PTR
8890         * somsolib.c: Ditto.
8891
8892         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8893         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8894         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8895
8896 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8897
8898         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8899         (default_get_saved_register): Delete function.
8900         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8901         generic_unwind_get_saved_register.
8902         * gdbarch.h, gdbarch.c: Re-generate.
8903         
8904 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8905
8906         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8907         generic_func_frame_chain_valid.
8908         * gdbarch.h, gdbarch.c: Re-generate.
8909         * blockframe.c (generic_func_frame_chain_valid): Only check
8910         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8911         passing FP to PC_IN_CALL_DUMMY.
8912         Fix PR gdb/360.
8913
8914 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8915
8916         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8917         (register_gdbarch_data): Initialize init_p.
8918         (gdbarch_data): Initialize data pointer using the init function.
8919         (init_gdbarch_data): Delete function.
8920         (gdbarch_update_p): Update.
8921         (initialize_non_multiarch): Update.
8922         (struct gdbarch): Add field initialized_p.
8923         * gdbarch.h, gdbarch.c: Re-generate.
8924
8925 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8926
8927         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8928         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8929         better do the things actually here.
8930         * x86-64-tdep.c (x86_64_register_name2nr): New.
8931         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8932         (x86_64_gdbarch_init): Respect the above change.
8933         * x86-64-tdep.h (x86_64_register_name2nr)
8934         (x86_64_register_nr2name): Add prototypes.
8935         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8936
8937 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8938
8939         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8940         Delete extra braces and re-indent.
8941         (d10v_store_return_value): Char return values
8942         must be shifted over by one byte in R0.
8943         (d10v_extract_return_value): Delete extra braces, re-indent.
8944
8945 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8946
8947         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8948         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8949         (d10v_integer_to_address): Rewrite.
8950         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8951         the d10v specific functions which take care of converting to the
8952         correct space.
8953
8954 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8955
8956         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8957         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8958
8959 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8960
8961         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8962         includes.
8963         * config/tm-linux.h: Ditto.
8964         * config/alpha/tm-alphalinux.h: Ditto.
8965         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8966         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8967         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8968         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8969         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8970         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8971         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8972         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8973         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8974         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8975         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8976         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8977         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8978         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8979         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8980         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8981         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8982         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8983         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8984         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8985         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8986         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8987         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8988         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8989         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8990         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8991         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8992         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8993         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8994         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8995         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8996         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8997         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8998         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8999         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9000         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9001         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9002
9003 2002-05-04  Aidan Skinner <aidan@velvet.net>
9004
9005         * ada-exp.tab.c: New file
9006         * ada-exp.y: New file
9007         * ada-lang.c: New file
9008         * ada-lang.h: New file
9009         * ada-lex.c: New file
9010         * ada-lex.l: New file
9011         * ada-tasks.c: New file
9012         * ada-typeprint.c: New file
9013         * ada-valprint.c: New file
9014         
9015 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9016
9017         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9018         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9019
9020 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9021
9022         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9023         insetead of ppc-linux-tdep.o.
9024         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9025         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9026
9027 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9028
9029         2002-05-07 Christian Groessler <chris@groessler.org>
9030         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9031         bit register contents for little endian hosts.
9032
9033 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9034
9035         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9036         any maintainer.
9037
9038 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9039
9040         * gdbarch.h: Regenerate.
9041
9042 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9043
9044         * MAINTAINERS: Add everyone to write-after-approval list.
9045
9046 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9047
9048         * stack.c (frame_info): Use frame_register_unwind instead of
9049         saved_regs.  Mention when the SP is on the stack or in a register.
9050
9051         * frame.h (frame_register_unwind_ftype): Define.  Document.
9052         (struct frame_info): Add field register_unwind and
9053         register_unwind_cache.
9054         (frame_register_unwind): Declare.
9055         (generic_unwind_get_saved_register): Declare.
9056
9057         * frame.c (frame_register_unwind): New function.
9058         (generic_unwind_get_saved_register): New function.
9059
9060         * blockframe.c (generic_call_dummy_register_unwind): New function.
9061         (frame_saved_regs_register_unwind): New function.
9062         (set_unwind_by_pc): New function.
9063         (create_new_frame): New function.
9064         (get_prev_frame): New function.
9065
9066 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9067
9068         * a29k-share/: Delete directory.
9069         * remote-vx29k.c: Delete file.
9070
9071 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9072
9073         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9074         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9075
9076 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9077
9078         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9079         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9080         (sparc64nbsd-nat.o)
9081         (sparcnbsd-nat.o)
9082         (sparcnbsd-tdep.o): New dependency lists.
9083         * NEWS: Note new UltraSPARC NetBSD native configuration.
9084         * configure.host (sparc64-*-netbsd*): New host.
9085         * configure.tgt (sparc-*-netbsdelf*)
9086         (sparc-*-netbsd*): Set gdb_target to nbsd.
9087         (sparc64-*-netbsd*): New target.
9088         * sparc64nbsd-nat.c: New file.
9089         * sparcnbsd-nat.c: New file.
9090         * sparcnbsd-tdep.c: New file.
9091         * sparcnbsd-tdep.h: New file.
9092         * config/sparc/nbsd.mt: New file.
9093         * config/sparc/nbsd64.mh: New file.
9094         * config/sparc/nbsd64.mt: New file.
9095         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9096         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9097         (HOST_IPC): Remove.
9098         * config/sparc/nbsdaout.mt: Remove.
9099         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9100         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9101         (HOST_IPC): Remove.
9102         * config/sparc/nbsdelf.mt: Remove.
9103         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9104         sparc-nat.c compatiblity defines.
9105         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9106         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9107         * config/sparc/tm-nbsd64.h: New file.
9108         * config/sparc/tm-nbsdaout.h: Remove.
9109         * config/sparc/xm-nbsd.h: Remove.
9110
9111 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9112
9113         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9114         * sparc-tdep.c: Include osabi.h.
9115         (gdbarch_tdep): Add osabi member.
9116         (_initialize_sparc_tdep): Use gdbarch_register.
9117         (sparc_gdbarch_init): Use generic OS ABI framework.
9118         (sparc_dump_tdep): New function.
9119
9120 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9121
9122         * corefile.c (do_captured_read_memory_integer): Return non-zero
9123         result.
9124         (safe_read_memory_integer): Copy result of memory read when
9125         status is non-zero.  Also, add comments.
9126
9127 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9128
9129         * Makefile.in (ppc_tdep_h): Define.
9130         (ppc-linux-nat.o)
9131         (ppc-linux-tdep.o)
9132         (rs6000-tdep.o): Use $(ppc_tdep_h).
9133         (ppc-sysv-tdep.o)
9134         (ppcnbsd-nat.o)
9135         (ppcnbsd-tdep.o): New dependency lists.
9136         * ppc-tdep.h: Use generic OS ABI framework.
9137         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9138         (ppc_linux_init_abi): New functions.
9139         (ppc_sysv_abi_broken_use_struct_convention)
9140         (ppc_sysv_abi_use_struct_convention)
9141         (ppc_sysv_abi_push_arguments): Move to...
9142         * ppc-sysv-tdep.c: ...here.
9143         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9144         * rs6000-tdep.c (process_note_abi_tag_sections)
9145         (get_elfosabi): Remove.
9146         (rs6000_gdbarch_init): Use generic OS ABI framework.
9147         (rs6000_dump_tdep): New function.
9148         (_initialize_rs6000_tdep): Use gdbarch_register.
9149         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9150         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9151         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9152         of ppc-linux-tdep.o.
9153         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9154         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9155         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9156         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9157         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9158         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9159
9160 2002-05-29  Jim Blandy  <jimb@redhat.com>
9161
9162         * macroscope.c (default_macro_scope): Put `void' in empty argument
9163         list.
9164
9165 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9166
9167         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9168         * arch-utils.c: Include "sim-regno.h".
9169         * gdbarch.sh: Don't include "sim-regno.h".
9170         * gdbarch.h, gdbarch.c: Regenerate.
9171         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9172         here.
9173         * arch-utils.h (legacy_register_sim_regno): To here.
9174         * remote-sim.c (legacy_register_sim_regno): Move function from
9175         here.
9176         * arch-utils.c (legacy_register_sim_regno): To here.
9177
9178 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9179
9180         * sim-regno.h: New file.
9181         * Makefile.in (sim_regno_h): Define.
9182         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9183         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9184         (legacy_register_sim_regno): New function.
9185         (one2one_register_sim_regno): New function.
9186         (gdbsim_fetch_register): Rewrite.
9187         (gdbsim_store_register): Only store a register when
9188         REGISTER_SIM_REGNO is valid.
9189         * d10v-tdep.c: Include "sim-regno.h".
9190         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9191         (d10v_ts3_register_sim_regno): Ditto.
9192         * gdbarch.sh: Include "sim-regno.h".
9193         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9194         * gdbarch.h, gdbarch.c: Regenerate.
9195         * arch-utils.h (default_register_sim_regno): Delete declaration.
9196         * arch-utils.c (default_register_sim_regno): Delete function.
9197
9198 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9199
9200         * ppcnbsd-nat.c: Rewrite.
9201         * ppcnbsd-tdep.c: New file.
9202         * ppcnbsd-tdep.h: New file.
9203         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9204         solib.o, and solib-svr4.o.
9205         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9206         nbsd-tdep.o, and corelow.o.
9207
9208 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9211         `tr' and `sed'.  Mention that `broken' targets are not expected to
9212         build.
9213
9214 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9215
9216         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9217         Let PC point right after the prologue before looking up symbols.
9218         
9219 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9220
9221         * i386-tdep.c (i386_register_virtual_type): Return 
9222         builtin_type_vec128i for SSE registers.
9223
9224         * gdbtypes.h (builtin_type_vec128i): Declare.
9225
9226         * gdbtypes.c (build_builtin_type_vec128i): New function.
9227         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9228         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9229         (build_gdbtypes): Initialize new builtin vector types.
9230         (_initialize_gdbtypes): Register new vector types with gdbarch.
9231
9232 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9233
9234         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9235         since it has been multi-arch'd.
9236         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9237         Move Alpha and VAX multi-arch news entries to same section
9238         as other multi-arch news.
9239
9240 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9241
9242         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9243         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9244         static.  Rename some register numbers to put them in ns32k-tdep
9245         private namespace.
9246         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9247         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9248         functions.
9249         (_initialize_ns32k_tdep): Use gdbarch_register.
9250         * ns32k-tdep.h: New file.
9251         * ns32knbsd-tdep.c: New file.
9252         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9253         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9254         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9255         REGISTER_BYTES, REGISTER_BYTE): Remove.
9256         * config/ns32k/tm-ns32k.h: New file.
9257         * config/ns32k/tm-umax.h: Remove.
9258
9259 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9260
9261         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9262         ns32k_store_struct_return, ns32k_extract_return_value,
9263         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9264         functions.
9265         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9266         ns32k_saved_pc_after_call.
9267         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9268         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9269         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9270         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9271         ns32k_extract_struct_value_address.
9272
9273 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9274
9275         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9276         ns32k_fix_call_dummy): New.
9277         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9278         ns32k_call_dummy_words.
9279         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9280         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9281         CALL_DUMMY_NARGS): Remove.
9282         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9283
9284 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9285
9286         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9287         ns32k_frame_saved_pc, ns32k_frame_args_address,
9288         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9289         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9290         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9291         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9292         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9293         (BREAKPOINT): Remove..
9294         (FRAME_CHAIN): Define as ns32k_frame_chain.
9295         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9296         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9297         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9298         (FRAME_FIND_SAVED_REGS): Remove.
9299         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9300         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9301         (POP_FRAME): Define as ns32k_pop_frame.
9302
9303 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9304
9305         * ns32k-tdep.c (ns32k_register_byte_32082,
9306         ns32k_register_byte_32382, ns32k_register_raw_size,
9307         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9308         functions.
9309         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9310         ns32k_register_byte_32382.
9311         * config/ns32k/tm-umax.h: Update copyright years.
9312         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9313         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9314         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9315         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9316         (ns32k_get_enter_addr): Fix prototype.
9317
9318 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9319
9320         * ns32k-tdep.c: Update copyright years.
9321         (ns32k_register_name_32082): New function.
9322         (ns32k_register_name_32382): Ditto.
9323         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9324         (REGISTER_NAME): Define as ns32k_register_name_32382.
9325         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9326         (REGISTER_NAME): Define as ns32k_register_name_32082.
9327
9328 2002-05-24  Jim Blandy  <jimb@redhat.com>
9329
9330         * dwarf2read.c (free_line_header): Use xfree, not free.
9331
9332 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9333
9334         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9335         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9336
9337 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9338
9339         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9340
9341 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9342
9343         From Ross Alexander at NEC Europe:
9344         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9345
9346 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9347
9348         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9349         for input, rather than parse_and_eval_address.  
9350
9351 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9352
9353         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9354         * Makefile.in (sim_d10v_h): Update definition.
9355
9356 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9357
9358         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9359         change `2002-05-22 Michael Snyder' below.
9360         (d10v_push_arguments): Ditto.
9361         (d10v_extract_return_value): Ditto.
9362
9363 2002-05-23  Jim Blandy  <jimb@redhat.com>
9364
9365         * macrotab.c (check_for_redefinition): Don't complain if the new
9366         definition is the same as the previous one.  Take more arguments
9367         to allow the comparison.
9368         (macro_define_object, macro_define_function): Pass more arguments
9369         to check_for_redefinition.
9370
9371 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9372
9373         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9374         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9375         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9376         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9377         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9378         Add a temp variable to save a call (and a memory read).
9379         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9380         if possible (so that PC_IN_CALL_DUMMY will work).
9381
9382 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9383
9384         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9385
9386 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9387
9388         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9389         fde->cie_ptr.
9390         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9391         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9392         so that frames of shared libraries are mapped correctly.
9393         (execute_stack_op): Change type of 'result' from ULONGEST to
9394         CORE_ADDR.
9395         
9396 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9397
9398         * config/alpha/tm-nbsd.h: Include solib.h.
9399
9400 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9401
9402         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9403         assumptions about the host's byte order.
9404
9405 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9406
9407         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9408         to dependency list.
9409         * alphanbsd-tdep.c: Include solib-svr4.h.
9410         * shnbsd-tdep.c: Ditto.
9411
9412 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9413
9414         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9415         nbsd-tdep.h to dependency list.
9416         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9417         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9418         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9419         nbsdaout.mh and nbsdelf.mh consistently.
9420         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9421         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9422         nbsdaout.mt and nbsdelf.mh consistently.
9423         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9424         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9425         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9426         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9427         a.out shared library stuff from here...
9428         * config/nm-nbsdaout.h: ...to here.
9429         * config/tm-nbsd.h: Remove.
9430         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9431         * config/arm/nbsd.mh: Remove.
9432         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9433         nbsd-tdep.o.
9434         * config/arm/nbsdaout.mh: New file. 
9435         * config/arm/nbsdelf.mh: New file.
9436         * config/arm/nm-nbsdaout.h: New file.
9437         * config/i386/nbsd.mh: Remove.
9438         * config/i386/nbsd.mt: Remove.
9439         * config/i386/nbsdaout.mh: New file.
9440         * config/i386/nbsdaout.mt: New file.
9441         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9442         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9443         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9444         i386_register_u_addr): Remove.
9445         * config/i386/nm-nbsdaout.h: New file.
9446         * config/i386/nm-nbsdelf.h: Remove.
9447         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9448         (USE_STRUCT_CONVENTION): Remove.
9449         * config/i386/tm-nbsdaout.h: New file.
9450         * config/i386/tm-nbsdelf.h: Remove.
9451         * config/m68k/nbsd.mh: Remove.
9452         * config/m68k/nbsd.mt: Remove.
9453         * config/m68k/nbsdaout.mh: New file.
9454         * config/m68k/nbsdaout.mt: New file. 
9455         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9456         * config/m68k/nm-nbsdaout.h: New file.
9457         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9458         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9459         * config/ns32k/nbsd.mh: Remove.
9460         * config/ns32k/nbsd.mt: Remove. 
9461         * config/ns32k/nbsdaout.mh: New file.
9462         * config/ns32k/nbsdaout.mt: New file.
9463         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9464         * config/ns32k/nm-nbsdaout.h: New file.
9465         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9466         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9467         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9468         (SVR4_SHARED_LIBS): Remove.
9469         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9470         * config/sparc/nbsd.mh: Remove.
9471         * config/sparc/nbsd.mt: Remove.
9472         * config/sparc/nbsdaout.mh: New file.
9473         * config/sparc/nbsdaout.mt: New file.
9474         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9475         * config/sparc/nbsdelf.mt: New file.
9476         * config/sparc/nm-nbsdaout.h: New file.   
9477         * config/sparc/nm-nbsdelf.h: Remove.
9478         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9479         * config/sparc/tm-nbsdaout.h: New file.
9480
9481 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9482
9483         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9484         mipsnbsd-tdep.c
9485         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9486
9487 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9488
9489         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9490         shnbsd-nat.c.
9491         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9492
9493 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9494
9495         * NEWS: Note new MIPS NetBSD native configuration. 
9496         * configure.host (mips*-*-netbsd*): New host. 
9497         * configure.tgt (mips*-*-netbsd*): New target. 
9498         * mipsnbsd-nat.c: New file.
9499         * mipsnbsd-tdep.c: New file.
9500         * mipsnbsd-tdep.h: New file.
9501         * config/mips/nbsd.mh: New file.
9502         * config/mips/nbsd.mt: New file.
9503         * config/mips/nm-nbsd.h: New file.
9504         * config/mips/tm-nbsd.h: New file.
9505
9506 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9507
9508         * Makefile.in (SFILES): Add osabi.c.
9509         (COMMON_OBS): Add osabi.o.
9510         (osabi.o): New dependency list.
9511         * osabi.c: New file.
9512         * osabi.h: New file.
9513         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9514
9515         * Makefile.in (alpha_tdep_h): Define and use instead of
9516         alpha-tdep.h.
9517         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9518         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9519         Remove.
9520         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9521         * alpha-tdep.h: Include osabi.h.
9522         (alpha_abi): Remove.
9523         (gdbarch_tdep): Use generic OS ABI framework.
9524         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9525         gdbarch_register_osabi.
9526         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9527         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9528         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9529
9530         * Makefile.in (sh_tdep_h): Add osabi.h.
9531         * sh-tdep.h (sh_osabi): Remove.
9532         (gdbarch_tdep): Use generic OS ABI framework.
9533         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9534         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9535         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9536         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9537
9538         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9539         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9540         gdbarch_register_osabi.
9541         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9542         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9543         (get_elfosabi): Rename to...
9544         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9545         ABI framework support routines.
9546         (arm_gdbarch_init): Use generic OS ABI framework.
9547         (arm_dump_tdep): Likewise.
9548         (_initialize_arm_tdep): Likewise.
9549         * arm-tdep.h: Include osabi.h.
9550         (arm_abi): Remove.
9551         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9552         osabi member.
9553         (arm_gdbarch_register_os_abi): Remove prototype.
9554         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9555         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9556
9557         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9558         * mips-tdep.c: Include osabi.h.
9559         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9560         OS ABI framework.
9561
9562 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9563
9564         * h8300-tdep.c: Fix formatting.
9565
9566 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9567
9568         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9569         printing vector registers.
9570
9571 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9572
9573         From Fernando Nasser:
9574         * remote.c (remote_async_open_1): Re-throw the exception when the
9575         connection fails.
9576         (remote_cisco_open): Ditto.
9577         (remote_open_1): Ditto.
9578
9579 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9580
9581         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9582         (remote_start_remote): Add uiout parameter.  Pass through to
9583         remote_start_remote_dummy.
9584         (remote_open_1): Use catch_exception instead of catch_errors.
9585         (remote_async_open_1): Ditto.
9586         (remote_cisco_open): Ditto.
9587
9588 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9589
9590         * remote.c (remote_start_remote): Replace PTR with void pointer.
9591         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9592         static.
9593
9594 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9595
9596         * gdb_indent.sh: Allow the script to be run in the sim directory.
9597
9598 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9599
9600         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9601         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9602
9603         * corelow.c (core_open): Only call set_gdbarch_from_file if
9604         exec_bfd is NULL.
9605
9606 2002-05-17  Andrey Volkov <avolkov@transas.com>
9607
9608         * h8300-tdep.c: Add support of EXR register
9609         * config/h8300/tm-h8300.h: Ditto. 
9610         
9611 2002-05-17  Andrey Volkov <avolkov@transas.com>
9612
9613         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9614         
9615 2002-05-17  Andrey Volkov <avolkov@transas.com>
9616
9617         * h8300-tdep.c: Change literal regnums to REGNO.
9618         
9619 2002-05-17  Jim Blandy  <jimb@redhat.com>
9620
9621         * NEWS: Note addition of macro support.
9622
9623         Expand preprocessor macros in C expressions.
9624         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9625         (scan_macro_expansion, scanning_macro_expansion,
9626         finished_macro_expansion): New function declarations.
9627         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9628         variable declarations.
9629         * parser-defs.h (expression_context_pc): New declaration.
9630         * parse.c (expression_context_pc): New variable.
9631         (parse_exp_1): Set expression_context_pc, as well as
9632         expression_context_block.
9633         * c-exp.y (yylex): If we're not already reading the result of a
9634         macro expansion, try to macro-expand the next token.  When we're
9635         done scanning a macro expansion, switch back to the mainline text.
9636         Commas and `if's in a macro's expansion don't terminate the input.
9637         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9638         (macro_original_text, macro_expanded_text,
9639         expression_macro_lookup_func, expression_macro_lookup_baton): New
9640         variables.
9641         (scan_macro_expansion, scanning_macro_expansion,
9642         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9643         c_preprocess_and_parse): New functions.
9644         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9645         c_preprocess_and_parse, instead of c_parse.
9646         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9647         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9648
9649 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9650
9651         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9652         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9653         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9654
9655 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9656
9657         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9658
9659 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9660
9661         * Makefile.in (sh_tdep_h): Define and use.
9662         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9663         register enum): Move to...
9664         * * sh-tdep.h: ...here.
9665         * sh-tdep.c: Include sh-tdep.h.
9666         * sh3-rom.c: Likewise.
9667         * shnbsd-tdep.c: Likewise.
9668
9669 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9670
9671         * arm-tdep.c: Spelling fix in comment.
9672
9673 2002-05-16  Jim Blandy  <jimb@redhat.com>
9674
9675         Add commands for manually expanding macros and showing their
9676         definitions.
9677         * macrocmd.c, macroscope.c, macroscope.h: New files.
9678         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9679         (macroscope_h): New variable.
9680         (HFILES_NO_SRCDIR): Add macroscope.h.
9681         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9682         (macroscope.o, macrocmd.o): New rules.
9683
9684         Teach the Dwarf 2 reader to read macro information.
9685         * dwarf2read.c: #include "macrotab.h".
9686         (dwarf_macinfo_buffer): New variable.
9687         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9688         dwarf_macinfo_size.
9689         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9690         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9691         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9692         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9693         dwarf2_macro_spaces_in_definition): New complaints.
9694         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9695         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9696         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9697         the partial symbol table.
9698         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9699         from what's recorded in the partial symbol table.
9700         (read_file_scope): If the compilation unit has a
9701         `DW_AT_macro_info' attribute, read its macro information.
9702         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9703
9704 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9705
9706         Fix PR gdb/546
9707         * ser-tcp.c: Don't include <netinet/udp.h>.
9708
9709 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9710
9711         * MAINTAINERS: Update my email address.
9712
9713 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9714
9715         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9716         include file of the same name.
9717
9718 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9719
9720         * configure.tgt: Mark v850 as multi-arched.
9721         * config/v850/tm-v850.h: Remove file.
9722         * config/v850/v850.mt: Eliminate TM_FILE.
9723
9724 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9725
9726         * v850-tdep.c: Full multi-arch.
9727         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9728         Define GDB_MULTI_ARCH to 2.
9729
9730 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9731
9732         * p-exp.y (current_type): New static variable.
9733         Carries the type of the expression at the position that is parsed.
9734         (push_current_type, pop_current_type): Two new functions. Used
9735         to store/restore current_type in expression on specific tokens.
9736         (search_field): New static variable. Set to one after parsing a point
9737         as at that point only a FIELDNAME token should be searched.
9738         (FIELDNAME): New token. After a point only a token belonging to 
9739         current_type type definition is allowed.
9740         (all over token rules): reset and change current_type according
9741         to rules.
9742         (exp '[' rule): insert implicit array index field if
9743         exp is a pascal string type.
9744
9745 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9746
9747         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9748         frame info.  Use frame_info's saved_regs instead of matching member
9749         in extra_frame_info throughout.
9750         (v850_frame_init_saved_regs): New function.
9751         (v850_init_extra_frame_info): Move most functionality into
9752         v850_frame_init_saved_regs().
9753         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9754         (v850_frame_find_saved_regs): Remove declaration.
9755         (FRAME_FIND_SAVED_REGS): Remove definition.
9756         (v850_frame_init_saved_regs): Add declaration.
9757         (FRAME_INIT_SAVED_REGS): Add definition.
9758
9759 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9760
9761         * v850-tdep.c: Begin multi-arch'ing v850.
9762         (v850_target_architecture_hook): Remove function.
9763         (v850_gdbarch_init): New function.  Add code previously in
9764         v850_target_architecture_hook().
9765         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9766         Call register_gdbarch_init() instead.
9767
9768 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9769
9770         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9771         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9772         (fixup_class_method_type): Likewise.
9773
9774 2002-05-15  Jim Blandy  <jimb@redhat.com>
9775
9776         Add macro structures to GDB's symbol tables.  Nobody puts anything
9777         in them yet.
9778         * symtab.h (struct symtab): New member: `macro_table'.
9779         * buildsym.h (pending_macros): New global variable.
9780         * buildsym.c: #include "macrotab.h".
9781         (buildsym_init): Initialize `pending_macros'.
9782         (end_symtab): If we found macro information while reading a CU's
9783         debugging info, do build a symtab structure for it.  Make the
9784         symtab point to the macro information, and clear the
9785         `pending_macros' pointer which held it while we were reading the
9786         debug info.
9787         (really_free_pendings): Free any pending macro table.
9788         * objfiles.h (struct objfile): New member: `macro_cache'.
9789         * objfiles.c (allocate_objfile): Set allocate and free functions
9790         for the macro cache's objstack.
9791         (free_objfile): Empty the macro cache's obstack.
9792         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9793         set new allocate and free functions for it.
9794         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9795         free functions for the macro cache's objstack.  (Why is this
9796         function building its own objfile?)
9797         * symmisc.c (print_objfile_statistics): Print statistics on the
9798         macro bcache.
9799         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9800
9801 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9802
9803         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9804         (REGISTER_U_ADDR): Delete definition.
9805         (arm_register_u_addr): Delete declaration.
9806
9807 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9808
9809         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9810         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9811
9812 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9813
9814         * regcache.c (register_valid): Revise comments refering to "Not
9815         available" and "unavailable".
9816         * frame.c (frame_register_read): Ditto.
9817         * findvar.c (value_of_register): Ditto.
9818
9819 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9820
9821         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9822         (remote-sim.o): Update dependencies.
9823         (d10v-tdep.o): Specify dependencies.
9824         (sim_d10v_h): Define.
9825
9826 2002-05-14  Jim Blandy  <jimb@redhat.com>
9827
9828         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9829         * macrotab.c (macro_lookup_inclusion, find_definition,
9830         new_macro_table): Same.
9831         
9832         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9833         not `! strcmp ()'.  This is a dubious improvement.
9834         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9835
9836         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9837         although it's not necessary, to avoid a warning.
9838
9839 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9840
9841         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9842         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9843         TYPE_INSTANCE_FLAGS.
9844         (struct main_type): New.
9845         (struct type): Move most members to struct main_type.  Change
9846         cv_type and as_type to new type_chain member.  Add instance_flags.
9847         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9848         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9849         (finish_cv_type): Remove prototype.
9850         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9851         Set TYPE_CHAIN.
9852         (alloc_type_instance): New function.
9853         (smash_type): New function.
9854         (make_pointer_type, make_reference_type, make_function_type)
9855         (smash_to_member_type, smash_to_method_type): Call smash_type.
9856         (make_qualified_type): New function.
9857         (make_type_with_address_space): Call make_qualified_type.
9858         (make_cv_type): Likewise.
9859         (finish_cv_type): Remove unnecessary function.
9860         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9861         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9862         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9863         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9864         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9865         * hpread.c (hpread_read_struct_type): Likewise.
9866         * stabsread.c (read_struct_type): Likewise.
9867
9868 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9869
9870         * configure.tgt: Add a catch all sh* target, for cases like
9871         sh[2,3,4]-elf and sh-hms.
9872
9873 2002-05-14  Keith Seitz  <keiths@redhat.com>
9874
9875         * event-loop.c (create_file_handler): Don't do anything but
9876         update data when we are given a fd which we are already
9877         monitoring.
9878
9879 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9880
9881         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9882         (update_context): Use __func__ in warnings.
9883         
9884 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9885
9886         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9887         and tcp_close to net_open and net_close.
9888         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9889         using UDP if requested.  Don't try to disable Nagle on UDP
9890         sockets.
9891         * remote.c (remote_serial_open): New function.  Warn about UDP.
9892         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9893
9894 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9895
9896         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9897
9898 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9899
9900         * configure.tgt: Remove sh-hms target.
9901         * MAINTAINERS: Don't list sh-hms as a separate target.
9902
9903 2002-05-13  Jim Blandy  <jimb@redhat.com>
9904
9905         Add first preprocessor macro-expansion files.
9906         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9907         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9908         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9909         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9910         (COMMON_OBS): Add macrotab.o, macroexp.o.
9911         (macroexp.o, macrotab.o): New rules.
9912
9913 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9914
9915         * config/m88k/tm-m88k.h: Update copyright.
9916         (m88k_target_write_pc): Declare
9917         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9918         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9919         (SHIFT_INST_REGS): Update definition.
9920         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9921         using old definition of TARGET_WRITE_PC.
9922         * regcache.c (generic_target_write_pc): Delete code handling
9923         NNPC_REGNUM.
9924         * gdbarch.sh (NNPC_REGNUM): Delete.
9925         * gdbarch.h, gdbarch.c: Regenerate.
9926
9927 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9928
9929         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9930         builtin reg number.
9931
9932 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9933
9934         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9935         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9936         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9937         access macros.
9938         * c-typeprint.c (cp_type_print_method_args): Likewise.
9939         (c_type_print_args): Likewise.
9940         * d10v-tdep.c (d10v_push_arguments): Likewise.
9941         (d10v_extract_return_value): Likewise.
9942         * expprint.c (print_subexp): Likewise.
9943         * gdbtypes.c (lookup_primitive_typename): Likewise.
9944         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9945         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9946         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9947         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9948         (TYPE_VECTOR): Likewise.
9949         * hpread.c (hpread_read_struct_type)
9950         (fix_static_member_physnames, fixup_class_method_type)
9951         (hpread_type_lookup): Likewise.
9952         * mdebugread.c (parse_symbol, parse_type): Likewise.
9953         * p-lang.c (is_pascal_string_type): Likewise.
9954         * valops.c (hand_function_call): Likewise.
9955         * x86-64-tdep.c (classify_argument): Likewise.
9956
9957         * hpread.c (hpread_read_function_type)
9958         (hpread_read_doc_function_type): Call replace_type.
9959         * dstread.c (create_new_type): Delete.
9960         (decode_dst_structure, process_dst_function): Call alloc_type.
9961         Use type access macros.
9962
9963 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9964
9965         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9966         the're not supported by the current architecture.
9967         (i387_fill_fxsave): Likewise.
9968
9969 2002-05-12  Fred Fish  <fnf@redhat.com>
9970
9971         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9972         sect_index_xxx members to index the first slot in section_offsets
9973         if all of the section_offsets are zero.
9974
9975 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9976
9977         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9978         checked in with last change.
9979
9980 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9981
9982         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9983         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9984         config.sub.
9985
9986 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9987
9988         * Makefile.in: Update dependencies.
9989
9990 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9991
9992         * language.c (local_hex_string_custom): Simplify.  Do not depend
9993         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9994
9995         * memattr.c (mem_info_command): Replace calls to
9996         longest_local_hex_string and longest_local_hex_string_custom.
9997         * buildsym.c (make_blockvector): Ditto.
9998         * solib.c (info_sharedlibrary_command): Ditto.
9999         * tracepoint.c (tracepoints_info): Ditto.
10000         * symtab.c (print_msymbol_info): Ditto.
10001
10002         * language.c (local_hex_string): Delete.
10003         (local_hex_string_custom): Delete.
10004         (longest_local_hex_string): Rename to local_hex_string.
10005         (longest_local_hex_string_custom): Rename to
10006         local_hex_string_custom.
10007         * language.h (local_hex_string): Change parameter type to LONGEST.
10008         (local_hex_string_custom): Ditto.
10009         (longest_local_hex_string): Delete declaration.
10010         (longest_local_hex_string_custom): Ditto.
10011
10012         * solib.c: Update copyright.
10013         * memattr.c: Update copyright.
10014         
10015 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10016
10017         * arch-utils.h (legacy_register_to_value): Declare.
10018         (legacy_value_to_register): Declare.
10019         (legacy_convert_register_p): Declare.
10020         * arch-utils.c (legacy_register_to_value): New function.
10021         (legacy_value_to_register): New function.
10022         (legacy_convert_register_p): New function.
10023
10024         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10025         (VALUE_TO_REGISTER): Define.
10026         (CONVERT_REGISTER_P): Define.
10027         * gdbarch.h, gdbarch.c: Regenerate.
10028
10029         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10030         VALUE_TO_REGISTER.
10031         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10032         CONVERT_REGISTER_P.
10033
10034 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10035             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10036
10037         * Makefile.in: Update dependencies for valops.c.
10038         * valops.c: Include "gdb_assert.h".
10039         (typecmp): Skip THIS parameter to methods.
10040         (find_method_list): Remove static_memfuncp argument,
10041         update callers.  Check for stub methods.
10042         (find_value_oload_method_list): Don't set *static_memfuncp.
10043         (find_overload_match): Don't check for stub methods.  Assert
10044         that methods are not stubbed.  Handle static methods.
10045         (value_find_oload_method_list): Remove static_memfuncp argument.
10046         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10047         to the argument list for static stub methods.
10048         * value.h (value_find_oload_method_list): Update prototype.
10049
10050 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10051
10052         * arch-utils.h (generic_register_size): Declare.
10053         (generic_register_raw_size, generic_register_virtual_size): Delete
10054         declarations.
10055         * arch-utils.c (generic_register_raw_size): Delete.
10056         (generic_register_size): New function.
10057         (generic_register_virtual_size): Delete.
10058
10059         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10060         default generic_register_size.
10061         * gdbarch.h, gdbarch.c: Re-generate.
10062         
10063         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10064         register_virtual_size.
10065         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10066         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10067
10068 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10069
10070         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10071         * gdbarch.h, gdbarch.c: Regenerate.
10072         * gnu-v3-abi.c: Update copyright.
10073         (vtable_address_point_offset): Update.
10074         (gnuv3_rtti_type): Update.
10075         (gnuv3_baseclass_offset): Update.
10076         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10077         (init_fetch_link_map_offsets): Update.
10078         * remote.c (get_remote_state): Update.
10079         
10080 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10081
10082         * TODO: Remove value_headof/value_from_vtable_info comment.
10083         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10084         * values.c (value_headof, value_from_vtable_info): Delete.
10085         * value.h (value_from_vtable_info): Delete prototype.
10086
10087 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10088
10089         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10090         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10091         $(gdb_regex_h).
10092         (gdb_assert_h): Define.
10093         (gdb_wait_h): Define.
10094         (gdb_regex_h): Define.
10095
10096 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10097
10098         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10099         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10100
10101 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10102
10103         * nbsd-tdep.c: Fix comment.
10104
10105 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10106
10107         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10108         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10109         (nbsd-tdep.o): New dependency list.
10110         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10111         nbsd-tdep.h.
10112         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10113         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10114         * nbsd-tdep.c: New file.
10115         * nbsd-tdep.h: New file.
10116         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10117         nbsd-tdep.h.
10118         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10119         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10120         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10121         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10122
10123 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10124
10125         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10126         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10127         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10128         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10129         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10130         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10131
10132 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10133
10134         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10135         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10136         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10137         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10138         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10139         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10140         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10141
10142 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10143
10144         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10145         fetch_elfcore_registers to...
10146         * i386nbsd-tdep.c: ...here.
10147         (i386nbsd_use_struct_convention): Rename to...
10148         (i386nbsd_aout_use_struct_convention): ...this.
10149         (i386nbsd_supply_reg): New function.
10150         (i386nbsd_fill_reg): New function.
10151         (fetch_core_registers): Use i386nbsd_supply_reg.
10152         (fetch_elfcore_registers): Likewise.
10153         (_initialize_i386nbsd_tdep): New function.
10154         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10155         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10156         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10157         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10158         (i386nbsd_aout_use_struct_convention): ...this.
10159
10160 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10161
10162         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10163         (store_inferior_registers): Use shnbsd_fill_reg.
10164         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10165         sh_nbsd_supply_register): Collapse into...
10166         (shnbsd_supply_reg): ...this.
10167         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10168         (shnbsd_fill_reg): ...this.
10169         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10170         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10171         (fetch_core_registers): Use shnbsd_supply_reg.
10172         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10173         (sh_nbsd_core_fns): Rename to...
10174         (shnbsd_core_fns): ...this.
10175         (sh_nbsd_elfcore_fns): Rename to...
10176         (shnbsd_elfcore_fns): ...this.
10177         (sh_nbsd_init_abi): Rename to...
10178         (shnbsd_init_abi): ...this.
10179         (_initialize_sh_nbsd_tdep): Rename to...
10180         (_initialize_shnbsd_tdep): ...this.
10181         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10182         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10183         sh_nbsd_fill_register): Remove prototypes.
10184         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10185
10186 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10187
10188         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10189         (i387-nat.o): Delete dependency list.
10190         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10191         (x86-64-linux-nat.o): Likewise.
10192         * i387-nat.c: Delete file, moving contents to...
10193         * i387-tdep.c: ...here.
10194         * i387-nat.h: Rename...
10195         * i387-tdep.h: ...to this.
10196         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10197         * i386-linux-nat.c: Likewise.
10198         * i386bsd-nat.c: Likewise.
10199         * i386gnu-nat.c: Likewise.
10200         * i386nbsd-nat.c: Likewise.
10201         * i386v4-nat.c: Likewise.
10202         * x86-64-linux-nat.c: Likewise.
10203         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10204         * config/i386/go32.mh (NATDEPFILES): Likewise.
10205         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10206         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10207         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10208         * config/i386/linux.mh (NATDEPFILES): Likewise.
10209         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10210         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10211         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10212         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10213
10214 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10215
10216         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10217         (alphanbsd-nat.o): Remove dependency list.
10218         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10219         * alphanbsd-nat.c: Delete.  Contents moved to...
10220         * alphanbsd-tdep.c: ...here.
10221         (_initialize_alphanbsd_tdep): Register core functions.
10222         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10223
10224 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10225
10226         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10227         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10228         (alphanbsd-nat.o): Likewise.
10229         (alphabsd-tdep.o): New dependency list.
10230         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10231         (fill_gregset): Use alphabsd_fill_reg.
10232         (supply_fpregset): Use alphabsd_supply_fpreg.
10233         (fill_fpregset): Use alphabsd_fill_fpreg.
10234         (fetch_inferior_registers): Use struct reg and struct fpreg
10235         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10236         and alphabsd_supply_fpreg.
10237         (store_inferior_registers): Use struct reg and struct fpreg
10238         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10239         and alphabsd_fill_fpreg.
10240         * alphabsd-tdep.c: New file.
10241         * alphabsd-tdep.h: New file.
10242         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10243         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10244         alphabsd_supply_fpreg.
10245         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10246         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10247
10248 2002-05-11  Eric Christopher  <echristo@redhat.com>
10249
10250         * mips-tdep.c (mips_double_register_type): Fix thinko.
10251         (mips_single_register_type): Ditto.
10252         * MAINTAINERS: Add self.
10253
10254 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10255
10256         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10257         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10258         right thing on architectures with different endianness and/or
10259         integer sizes.
10260
10261 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10262
10263         From Christian Limpach <chris@Pin.LU>
10264         * configure.in: Change sed expression which comments out
10265         NATDEPFILES to also comment out continuation lines.
10266         * configure: Regenerate.
10267
10268 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10269
10270         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10271         big patch.
10272
10273 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10274
10275         * sh-tdep.c: Include correct file.
10276
10277 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10278
10279         New support for sh64-elf (sh5) target.
10280
10281         * configure.tgt: For sh64-elf target, default to sh-elf.
10282
10283         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10284         (struct gdbarch_tdep): Add new fields for new registers and ABI
10285         info.
10286
10287         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10288         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10289         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10290         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10291         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10292         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10293         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10294         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10295         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10296         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10297         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10298         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10299         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10300         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10301         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10302         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10303         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10304         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10305         sign_extend, sh64_nofp_frame_init_saved_regs,
10306         sh64_init_extra_frame_info, sh64_get_saved_register,
10307         sh64_extract_struct_value_address, sh64_pop_frame,
10308         sh64_push_arguments, sh64_extract_return_value,
10309         sh64_store_return_value, sh64_show_media_regs,
10310         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10311         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10312         sh_sh64_register_virtual_type,
10313         sh_sh64_register_convert_to_virtual,
10314         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10315         sh64_register_read, sh64_pseudo_register_write,
10316         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10317         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10318         sh64_do_pseudo_register, sh_compact_do_registers_info,
10319         sh64_do_registers_info, sh_gdbarch_init): New functions.
10320
10321 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10322
10323         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10324
10325 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10326
10327         * linespec.c (decode_line_1): Check for a double quote after
10328         a filename correctly.
10329
10330 2002-05-10  Jim Blandy  <jimb@redhat.com>
10331
10332         Properly track the size of the current objfile's .debug_line section.
10333         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10334         (DWARF_LINE_SIZE): New macro.
10335         (dwarf2_build_psymtabs_hard): Record the line section's size in
10336         the partial symbol table.
10337         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10338         symbol table.
10339
10340 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10341
10342         * ia64-tdep.c: Handle breakpoints on L instruction type
10343         in MLX instruction bundle by moving the breakpoint to
10344         the third slot (X instruction type) as L holds only data.
10345
10346 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10347
10348         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10349         (process_one_symbol): Complain about discarding local symbols
10350         due to a misplaced N_LBRAC entry.
10351
10352 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10353
10354         From Daniel Berlin <dan@cgsoftware.com>
10355         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10356         decrease the depth we are at, in the case of templates.
10357
10358 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10359
10360         * mips-tdep.c (mips_float_register_type): New function.
10361         (mips_double_register_type): New function.
10362         (mips_print_register): Use them.
10363         (do_fp_register_row): Likewise.
10364
10365 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10366
10367         * signals/signals.c (signals): Remove conditional compilation around
10368         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10369         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10370
10371 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10372
10373         * remote-rdp.c (remote_rdp_can_run): Remove.
10374
10375 2002-05-09  Tom Tromey  <tromey@redhat.com>
10376
10377         * jv-valprint.c (java_val_print): Handle `char' as a special case
10378         of TYPE_CODE_INT.
10379
10380 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10381
10382         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10383         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10384         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10385         str r(0123),[sp,#nn].
10386         (arm_skip_prologue): Ditto.  Also make disassembly
10387         order-independent by placing it in a loop.
10388
10389 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10390
10391         * stabsread.c (read_type): Add recognition for new attribute:
10392         "@V;" means that an array type is actually a vector.
10393         This is analogous to the vector flag that's been added to dwarf2.
10394
10395 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10396
10397         * i386-tdep.h (i386_abi): New enum.
10398         (struct gdbarch_tdep): Replace os_ident member with abi.
10399         (i386_gdbarch_register_os_abi): New prototype.
10400         * i386-tdep.c (i386_abi_names): New array.
10401         (process_note_abi_tag_sections): Removed.
10402         (process_note_sections): New function.
10403         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10404         (struct i386_abi_handler): New struct.
10405         (i386_abi_handler_list): New variable.
10406         (i386_gdbarch_register_os_abi): New function.
10407         (i386_gdbarch_init): Adapt for the changes given above.
10408
10409 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10410
10411         * gregset.h: Say "GNU/Linux".
10412
10413 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10414
10415         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10416         (build_gdbtypes): Build builtin_type_v2_float.
10417         (_initialize_gdbtypes): Register new builtin type.
10418
10419 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10420
10421         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10422         (clear_gdbarch_swap): New function.
10423         (initialize_non_multiarch): Call.
10424         (gdbarch_update_p): Before calling init(), swap out and clear the
10425         existing architecture.
10426         * gdbarch.c: Regenerate.
10427
10428 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10429
10430         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10431         alphanbsd-tdep.c.
10432
10433 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10434
10435         * sh-nbsd-nat.c: Rename to...
10436         * shnbsd-nat.c: ...this.
10437         * sh-nbsd-tdep.c: Rename to...
10438         * shnbsd-tdep.c: ...this.
10439         * sh-nbsd-tdep.h: Rename to...
10440         * shnbsd-tdep.h: ...this.
10441         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10442         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10443
10444 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10445
10446         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10447         concatenation for command help messages.
10448
10449 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10450
10451         * NEWS: Note new sh*-*-netbsdelf* configuration.
10452         * configure.host: Set gdb_host_cpu to sh for all sh*.
10453         (sh*-*-netbsdelf*): New host.
10454         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10455         (sh*-*-netbsdelf*): New target.
10456         * sh-nbsd-nat.c: New file.
10457         * sh-nbsd-tdep.c: New file.
10458         * sh-nbsd-tdep.h: New file.
10459         * config/sh/nbsd.mh: New file.
10460         * config/sh/nbsd.mt: New file.
10461         * config/sh/nm-nbsd.h: New file.
10462         * config/sh/tm-nbsd.h: New file.
10463
10464 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10465
10466         * sh-tdep.c (sh_osabi_names): Declare.
10467         (process_note_abi_tag_sections): New function.
10468         (get_elfosabi): Ditto.
10469         (sh_gdbarch_register_os_abi): Ditto.
10470         (sh_dump_tdep): Ditto.
10471         _initialize_sh_tdep): Use gdbarch_register to register
10472         sh_gdbarch_init and sh_dump_tdep.
10473         * config/sh/tm-sh.h (sh_osabi): Declare.
10474         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10475
10476 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10477
10478         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10479         (thumb_scan_prologue): Ditto.
10480         (arm_find_callers_reg): Ditto.
10481         (arm_frame_chain): Ditto.
10482         (arm_init_extra_frame_info): Ditto.
10483         (arm_frame_saved_pc): Ditto.
10484         (arm_pop_frame): Ditto.
10485         (arm_push_return_address): New function.
10486         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10487         call_dummy_location, call_dummy_breakpoint_offset_p,
10488         call_dummy_breakpoint_offset, call_dummy_p,
10489         call_dummy_stack_adjust_p, call_dummy_words,
10490         sizeof_call_dummy_words, call_dummy_start_offset,
10491         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10492         call_dummy_address, push_return_address and push_dummy_frame for
10493         generic dummy frames.
10494
10495 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10496
10497         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10498         size computation for alloca.
10499         (sh_fp_frame_init_saved_regs): Likewise.
10500
10501 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10502
10503         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10504         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10505         * arm-tdep.c (arm_store_return_value): Use them.
10506         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10507         * remote-rdp.c (remote_rdp_fetch_register): Use
10508         ARM_MAX_REGISTER_RAW_SIZE.
10509         (remote_rdp_store_register): Likewise.
10510
10511 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10512
10513         * dwarf2cfi.c: Code cleanup, removed unused variables,
10514         added default labels to switch {} statements.
10515         * x86-64-tdep.c: Ditto.
10516         * x86-64-linux-nat.c: Ditto.
10517
10518 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10519
10520         * solib.h: Protect against multiple inclusion.
10521
10522 2002-05-06  Jim Blandy  <jimb@redhat.com>
10523
10524         Add first preprocessor macro-expansion files.
10525         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10526         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10527         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10528         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10529         (COMMON_OBS): Add macrotab.o, macroexp.o.
10530         (macroexp.o, macrotab.o): New rules.
10531
10532         Separate the job of reading the line number info statement program
10533         header (...expialidocious) out into its own function.
10534         * dwarf2read.c (struct line_head, struct filenames, struct
10535         directories): Replace with...
10536         (struct line_header): New structure, containing the full
10537         contents of the statement program header, including the
10538         include directory and file name tables.
10539         (read_file_scope): If we have line number info, instead of just
10540         calling dwarf_decode_lines to do all the work, call
10541         dwarf_decode_line_header first to get a `struct line_header'
10542         containing the data in the statement program header, and then
10543         pass that to dwarf_decode_lines, which will pick up where that
10544         left off.  Be sure to clean up the `struct line_header' object.
10545         (dwarf_decode_line_header, free_line_header, add_include_dir,
10546         add_file_name): New functions.
10547         (dwarf_decode_lines): Move all the code to read the statement
10548         program header into dwarf_decode_line_header.  Take the line
10549         header it built as the first argument, instead of the offset to
10550         the compilation unit's line number info.  Use the new `struct
10551         line_header' type instead of the old structures.  No need to do
10552         cleanups here now, since we don't allocate anything.
10553         (dwarf2_statement_list_fits_in_line_number_section,
10554         dwarf2_line_header_too_long): New complaints.
10555
10556 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10557
10558         * gdbtypes.c (init_vector_type): New function.
10559         (build_builtin_type_vec128): Simplify the representation of SIMD
10560         registers.
10561         (build_gdbtypes): Initialize new builtin vector types.
10562         (_initialize_gdbtypes): Register new vector types with gdbarch.
10563         (builtin_type_v4_float, builtin_type_v4_int32,
10564         builtin_type_v8_int16, builtin_type_v16_int8,
10565         builtin_type_v2_int32, builtin_type_v4_int16,
10566         builtin_type_v8_int8): New (renamed) SIMD types.
10567
10568 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10569
10570         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10571         (i387_fill_fxsave): Likewise.
10572
10573 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10574
10575         * alpha-tdep.c (alpha_extract_return_value): Don't use
10576         non-constant array size in prototype.
10577
10578 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10579
10580         From Brian Taylor <briant at model dot com>:
10581         * ui-out.c (ui_out_field_core_addr): Use the function
10582         longest_local_hex_string_custom'to format addresses > 32 bits
10583         wide.
10584
10585         * ui-out.c (ui_out_field_core_addr): Update comment.
10586
10587 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10588
10589         * stack.c (select_and_print_frame): Make static.  Delete the
10590         parameter `level'.
10591         (func_command): Update call.
10592         (select_frame_command): Delete code computing the frame level.
10593         * frame.h (select_and_print_frame): Delete declaration.
10594
10595 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10596
10597         * sparc-tdep.c (sparc_get_saved_register): Comment why
10598         get_prev_frame call is safe.
10599
10600 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10601
10602         * frame.h (select_frame): Delete level parameter.
10603         * stack.c (select_frame): Update.  Use frame_relative_level to
10604         obtain the frame's level.
10605         (select_and_print_frame): Update call.
10606         (select_frame_command): Ditto.
10607         (up_silently_base): Ditto.
10608         (down_silently_base): Ditto.
10609         * ocd.c (ocd_start_remote): Ditto.
10610         * remote-rdp.c (remote_rdp_open): Ditto.
10611         * remote-mips.c (mips_initialize): Ditto.
10612         (common_open): Ditto.
10613         * remote-e7000.c (e7000_start_remote): Ditto.
10614         * m3-nat.c (select_thread): Ditto.
10615         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10616         (child_get_current_exception_event): Ditto.
10617         * varobj.c (varobj_create): Ditto.
10618         (varobj_update): Ditto.
10619         (c_value_of_root): Ditto.
10620         * tracepoint.c (finish_tfind_command): Ditto.
10621         * corelow.c (core_open): Ditto.
10622         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10623         * thread.c (info_threads_command): Ditto.
10624         (switch_to_thread): Ditto.
10625         * infrun.c (normal_stop): Ditto.
10626         (restore_selected_frame): Ditto.
10627         (restore_inferior_status): Ditto.
10628         * breakpoint.c (insert_breakpoints): Ditto.
10629         (watchpoint_check): Ditto.
10630         (bpstat_stop_status): Ditto.
10631         (do_enable_breakpoint): Ditto.
10632         * blockframe.c (flush_cached_frames): Ditto.
10633         (reinit_frame_cache): Ditto.
10634
10635 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10636
10637         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10638         maintainer.
10639
10640 2002-05-04  Jim Blandy  <jimb@redhat.com>
10641
10642         * gdbtypes.c (replace_type): Doc fix.
10643
10644 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10645
10646         * valprint.c (strcat_longest): Delete commented out function.
10647         Update copyright.
10648
10649 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10650
10651         * MAINTAINERS: Mark a29k as deleted.
10652         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10653         Move new configurations to the top.
10654         * configure.tgt: Remove a29k.
10655         * config/a29k/tm-vx29k.h: Delete.
10656         * config/a29k/vx29k.mt: Delete.
10657         * config/a29k/tm-a29k.h: Delete.
10658         * config/a29k/a29k-udi.mt: Delete.
10659         * config/a29k/a29k.mt: Delete.
10660         * a29k-tdep.c: Delete.
10661         * remote-udi.c: Delete.
10662         * remote-mm.c: Delete.
10663         * remote-eb.c: Delete.
10664         * remote-adapt.c: Delete.
10665         * Makefile.in: Remove obsolete code.
10666         * config/s390/s390x.mt: Ditto.
10667         * config/s390/s390.mt: Ditto.
10668         * config/sparc/sparclynx.mh: Ditto.
10669         * config/sparc/linux.mh: Ditto.
10670         * config/pa/hppaosf.mh: Ditto.
10671         * config/pa/hppabsd.mh: Ditto.
10672         * config/ns32k/nbsd.mt: Ditto.
10673         * config/mips/vr5000.mt: Ditto.
10674         * config/m68k/sun3os4.mh: Ditto.
10675         * config/m68k/nbsd.mt: Ditto.
10676         * config/m68k/m68klynx.mh: Ditto.
10677         * config/m32r/m32r.mt: Ditto.
10678         * config/i386/x86-64linux.mt: Ditto.
10679         * config/i386/nbsdelf.mt: Ditto.
10680         * config/i386/nbsd.mt: Ditto.
10681         * config/i386/i386lynx.mh: Ditto.
10682
10683 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10684
10685         * target.c (debug_print_register): New function.  Handle oversize
10686         registers.
10687         (debug_to_fetch_registers): Call.
10688         (debug_to_store_registers): Call.
10689
10690 2002-05-03  Jim Blandy  <jimb@redhat.com>
10691
10692         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10693         (read_type): Doc fix.
10694         * gdbtypes.c (replace_type): Doc fix.
10695
10696         * stabsread.c (multiply_defined_struct): New complaint.
10697         (read_struct_type): If the type we were passed isn't empty, or
10698         incomplete, don't read the new struct type into it; complain,
10699         and return the original type unchanged.  Take a new `type_code'
10700         argument, which is the type code for the new type.
10701         (read_type): Rather than storing the type's type code here, pass
10702         it as an argument to read_struct_type, and let that take care of
10703         storing it.  That way, we don't overwrite the original type code,
10704         so read_struct_type can use it to decide whether we're overwriting
10705         something we shouldn't.
10706         (complain_about_struct_wipeout): New function.
10707
10708 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10709
10710         * gdbarch.sh: Assert that gdbarch is non-NULL.
10711         * gdbarch.c: Regenerate.
10712
10713 2002-05-03  Jason Merrill  <jason@redhat.com>
10714
10715         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10716         and return NULL.
10717
10718 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10719
10720         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10721         (x86_64_dwarf2gdb_regno_map_length),
10722         (x86_64_dwarf2_reg_to_regnum): Added.
10723         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10724         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10725         (_initialize_x86_64_tdep): Synced with the change above.
10726         (x86_64_skip_prologue): Reformulated message.
10727
10728 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10729
10730         * f-exp.y: Also use new prev_lexptr variable
10731         to improve error reporting. Based on Michael Snyder
10732         2002-04-24 dated patch to c-exp.y.
10733         * jv-exp.y: Likewise.
10734         * m2-exp.y: Likewise.
10735
10736 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10737
10738         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10739         we are dealing with vectors.
10740
10741 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10742
10743         * config/m68k/tm-nbsd.h: Obvious fix,
10744         correct machine name.
10745
10746 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10747
10748         * p-typeprint.c (pascal_type_print_base): Add support
10749         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10750
10751 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10752
10753         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10754         for fondamental pascal 'char' type.
10755
10756 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10757
10758         * p-lang.h (is_pascal_string_type): Declaration changed,
10759         new sixth argument of type char ** added.
10760         * p-lang.c (is_pascal_string_type): Implementation
10761         changed. Args length_pos, length_size, string_pos, char_size
10762         can now be NULL. New argument arrayname set to the field
10763         name of the char array. Return value set to char array
10764         field index plus one.
10765         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10766         is_pascal_string_type function.
10767
10768 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10769
10770         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10771         <cagney@redhat.com> change.
10772         * gdbarch.c: Regenerate.
10773
10774 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10775
10776         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10777         before probing for a new one.  Detect errorenous gdbarch_init
10778         functions.
10779         * gdbarch.c: Regenerate.
10780
10781 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10782
10783         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10784         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10785         * config/v850/tm-v850.h: Ditto.  Update copyright.
10786
10787 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10788
10789         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10790         current_gdbarch.
10791
10792 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10793
10794         * arm-tdep.c: Whitespace clean-ups.
10795         (arm_skip_prologue): Fix thinko; two lines
10796         should have been removed as part of 4/24 change.
10797
10798 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10799
10800         * rs6000-tdep.c: Added comment describing how fpscr register
10801         numbers were chosen.
10802
10803 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10804
10805         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10806
10807 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10808
10809         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10810         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10811         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10812
10813 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10814
10815         From Louis Hamilton <hamilton@redhat.com>:
10816         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10817         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10818         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10819         not bfd-private xcoff data, to determine wordsize.
10820         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10821
10822 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10823
10824         GDB 5.2 released from 5.2 branch.
10825
10826 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10827
10828         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10829         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10830         (x86_64_register_info_table): Added comments with register numbers.
10831
10832 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10833
10834         * rs6000-tdep.c (rs6000_extract_return_value,
10835         rs6000_store_return_value): Handle returning vectors.
10836         (rs6000_gdbarch_init): Use
10837         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10838         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10839         New function.
10840         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10841         vectors.
10842         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10843         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10844
10845 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10846
10847         * hpread.c (hpread_psymtab_to_symtab_1,
10848         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10849         with fprintf_unfiltered (gdb_stderr,...).
10850
10851 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10852
10853         * remote-array.c (printf_monitor, write_monitor,
10854         array_insert_breakpoint, array_remove_breakpoint ):
10855         Replace fprintf (stderr,...
10856         with fprintf_unfiltered (gdb_stderr,....
10857         * remote-es.c: Likewise.
10858         * remote-os9k.c: Likewise.
10859         * remote-st.c: Likewise.
10860
10861 2002-04-28  Andreas Schwab  <schwab@suse.de>
10862
10863         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10864         linux-proc.o and gcore.o.
10865
10866 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10867
10868         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10869         code without frame pointers.
10870
10871 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10872
10873         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10874         ON_STACK is needed.
10875
10876 2002-04-26  Ben Elliston  <bje@redhat.com>
10877
10878         * target.c (do_xfer_memory): Correct reference to the new option
10879         "trust-readonly-sections".
10880
10881 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10882
10883         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10884         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10885         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10886         vectors.
10887         (read_array_type): Record the fact that this array type is really a
10888         vector (i.e. are passed in by value).
10889
10890 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10891
10892         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10893         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10894         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10895         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10896         * alpha-linux-tdep.c: Include frame.h.
10897         (alpha_linux_sigcontext_addr): New function.
10898         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10899         alpha_linux_sigcontext_addr.
10900         * alpha-osf1-tdep.c: Include gdbcore.h.
10901         (alpha_osf1_sigcontext_addr): New function.
10902         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10903         alpha_osf1_sigcontext_addr.
10904         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10905         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10906
10907 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10908
10909         * stack.c (selected_frame_level):
10910         (select_frame): Do not set selected_frame_level.
10911         * frame.h (selected_frame_level): Delete declaration.
10912
10913 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10914
10915         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10916         convert_from_func_ptr-addr when AIX / PowerOpen.
10917
10918 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10919
10920         * valops.c (hand_function_call): Call
10921         generic_save_call_dummy_addr.
10922         * frame.h (generic_save_call_dummy_addr): Declare.
10923         * blockframe.c (struct dummy_frame): Add fields call_lo and
10924         call_hi.
10925         (generic_find_dummy_frame): Check for PC in range call_lo to
10926         call_hi instead of entry_point_address.
10927         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10928         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10929         (generic_save_call_dummy_addr): New function.
10930
10931 2002-04-24  David S. Miller  <davem@redhat.com>
10932
10933         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10934         sparc_skip_prologue.
10935         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10936         information to find prologue when possible.
10937         (sparc_prologue_frameless_p): Call examine_prologue directly.
10938         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10939         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10940         second argument.
10941         (SKIP_PROLOGUE): Likewise.
10942
10943 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10944
10945         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10946         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10947         indicate that the condition it was testing is always true.
10948         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10949         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10950         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10951
10952 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10953
10954         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10955         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10956         tdep->jb_pc and tdep->jb_elt_size.
10957         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10958         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10959         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10960         * alpha-nat.c (get_longjmp_target): Remove.
10961         (JB_ELEMENT_SIZE): Ditto.
10962         (JB_PC): Ditto.
10963         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10964         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10965         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10966         to alpha_get_longjmp_target.
10967         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10968         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10969         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10970
10971 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10972
10973         * README: Update to GDB 5.2.
10974
10975 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10976
10977         * gdbarch.sh (LC_ALL): Set to `c'.
10978
10979 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10980
10981         * avr-tdep.c: Ran through gdb_indent.sh.
10982
10983 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10984
10985         * MAINTAINERS: Add myself as AVR maintainer.
10986         * NEWS: Note new target avr.
10987
10988 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10989
10990         * Makefile.in: Add support for AVR target.
10991         * configure.tgt: Add support for AVR target.
10992         * avr-tdep.c: New file
10993         * config/avr/avr.mt: New file.
10994
10995 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10996
10997         * MAINTAINERS: Add myself to write-after-approval.
10998
10999 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11000
11001         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11002         with fprintf_unfiltered (gdb_stderr,....
11003
11004 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11005
11006         Fix PR gdb/508.
11007         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11008
11009 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11010
11011         * p-exp.y: Also use new prev_lexptr variable
11012         to improve error reporting. Based on Michael Snyder
11013         2002-04-24 dated patch to c-exp.y.
11014
11015 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11016
11017         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11018         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11019         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11020         to 0.
11021         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11022         and struct value.
11023         (FUNCTION_START_OFFSET): Remove.
11024         (BREAKPOINT): Ditto.
11025
11026 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11027
11028         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11029         * NEWS: Ditto.
11030
11031 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11032
11033         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11034         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11035         alpha_linux_pc_in_sigtramp.
11036         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11037         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11038         alpha_osf1_pc_in_sigtramp.
11039         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11040         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11041         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11042         alphafbsd_pc_in_sigtramp.
11043         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11044         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11045         alphanbsd_pc_in_sigtramp.
11046         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11047         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11048
11049 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11050
11051         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11052
11053 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11054
11055         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11056         alphanbsd-tdep.c.
11057         (alphanbsd-nat.o): New dependency list.
11058         (alphanbsd-tdep.o): Ditto.
11059         * NEWS: Note new native NetBSD/alpha configuration.
11060         * alphanbsd-nat.c: New file.
11061         * alphanbsd-tdep.c: Ditto.
11062         * configure.host (alpha*-*-netbsd*): New host.
11063         * configure.tgt (alpha*-*-netbsd*): New target.
11064         * config/alpha/nbsd.mh: New file.
11065         * config/alpha/nbsd.mt: Ditto.
11066         * config/alpha/nm-nbsd.h: Ditto.
11067         * config/alpha/tm-nbsd.h: Ditto.
11068
11069 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11070
11071         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11072         (alpha-osf1-tdep.o): New dependency list.
11073         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11074         and skip_sigtramp_frame members.
11075         * alpha-linux-tdep.c: Include gdbcore.h.
11076         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11077         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11078         * alpha-osf1-tdep.c: New file.
11079         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11080         alpha-osf1-dep.c.
11081         (alpha_frame_past_sigtramp_frame): New function.
11082         (alpha_dynamic_sigtramp_offset): Ditto.
11083         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11084         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11085         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11086         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11087         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11088         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11089         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11090         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11091         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11092         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11093         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11094         to find_solib_trampoline_target.
11095         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11096         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11097         (SKIP_TRAMPOLINE_CODE): Remove.
11098         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11099         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11100         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11101         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11102         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11103         (PROC_SIGTRAMP_MAGIC): Ditto.
11104         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11105         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11106         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11107         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11108         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11109
11110 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11111
11112         * NEWS: Note that Alpha targets are now multi-arch.
11113
11114 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11115
11116         * parser-defs.h (prev_lexptr): New external variable.
11117         * parse.c (parse_exp_1): Set prev_lexptr to null before
11118         calling the language-specific parser.
11119         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11120         (yyerror): Use prev_lexptr in error reporting.
11121
11122 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11123
11124         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11125         * gregset.h: If FILL_FPXREGSET is defined, provide
11126         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11127         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11128         is defined, call fill_fpxregset.
11129
11130 2002-04-24  Roland McGrath  <roland@frob.com>
11131
11132         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11133         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11134         (supply_gregset, supply_fpregset): New functions.
11135
11136         * gnu-nat.c (gnu_find_memory_regions): New function.
11137         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11138         (gnu_xfer_memory): Add a cast.
11139
11140 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11141
11142         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11143         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11144         of argument regs ("str r(0123), [r11, #-nn"]).
11145         (arm_skip_prologue): Better handling for frameless functions.
11146         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11147         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11148
11149 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11150
11151         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11152         NUM_PSEUDO_REGS can be used.
11153
11154 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11155
11156         * arch-utils.h: Update copyright.
11157
11158         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11159         * gdbarch.h, gdbarch.c: Re-generate.
11160
11161         * inferior.h (IN_SIGTRAMP): Delete definition.
11162         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11163         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11164
11165         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11166         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11167         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11168         (find_proc_framesize): Ditto.
11169         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11170         (alpha_init_extra_frame_info): Ditto.
11171         * infrun.c (handle_inferior_event): Ditto.
11172         (handle_inferior_event): Ditto.
11173         (check_sigtramp2): Ditto.
11174         * blockframe.c (create_new_frame): Ditto.
11175         (get_prev_frame): Ditto.
11176         * ppc-linux-tdep.c: Update comments.
11177         * i386-linux-tdep.c: Update comments.
11178         * breakpoint.c (bpstat_what): Update comment.
11179
11180 2002-04-24  David S. Miller  <davem@redhat.com>
11181
11182         * i960-tdep.c (register_in_window_p): New function.
11183         (i960_find_saved_register): Use it instead of
11184         REGISTER_IN_WINDOW_P.
11185         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11186
11187         * symtab.h (find_stab_function_addr): Kill extern.
11188         * minsyms.c (find_stab_function_addr): Remove from here...
11189         * dbxread.c: ... to here, and mark it static.
11190
11191 2002-04-20  David S. Miller  <davem@redhat.com>
11192
11193         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11194         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11195
11196 2002-04-21  David S. Miller  <davem@redhat.com>
11197
11198         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11199         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11200         (vx_write_register): Likewise.
11201
11202 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11203
11204         * source.c (is_regular_file): New function.
11205         (openp): Check wether file to open is a regular file
11206         to avoid opening directories.
11207
11208 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11209
11210         * findvar.c (extract_signed_integer): Cast printf argument
11211         to suppress format warning.
11212         (extract_unsigned_integer): Likewise.
11213         * infcmd.c (registers_info): Likewise.
11214         * top.c (get_prompt_1): Likewise.
11215         * valops.c (value_assign): Likewise.
11216         * valprint.c (print_decimal): Likewise.
11217
11218 2002-04-22  H.J. Lu  (hjl@gnu.org)
11219
11220         * c-exp.y (typebase): Support
11221
11222         [long|long long|short] [signed|unsigned] [int|]
11223
11224         and
11225
11226         signed [long|long long|short] int
11227
11228 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11229
11230         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11231         and vax-tdep.h.
11232         * vax-tdep.h: New file.
11233         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11234         Make several routines static.
11235         (vax_get_saved_register): New function.
11236         (vax_gdbarch_init): New function.
11237         (_initialize_vax_tdep): Register vax_gdbarch_init.
11238         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11239         Remove macros now under the control of gdbarch.
11240
11241 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11242
11243         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11244         Some whitespace and coding standards tweaks.
11245
11246 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11247
11248         * vax-tdep.c: Include regcache.h.
11249         (vax_call_dummy_words): New.
11250         (sizeof_vax_call_dummy_words): New.
11251         (vax_fix_call_dummy): New function.
11252         (vax_saved_pc_after_call): Ditto.
11253         * config/vax/tm-vax.h: Don't include regcache.h.
11254         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11255         (CALL_DUMMY): Remove.
11256         (CALL_DUMMY_WORDS): Define.
11257         (SIZEOF_CALL_DUMMY_WORDS): Define.
11258         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11259
11260 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11261
11262         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11263
11264 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11265
11266         * vax-tdep.c (vax_frame_chain): New function.
11267         (vax_push_dummy_frame): Ditto.
11268         (vax_pop_frame): Ditto.
11269         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11270         (FRAMELESS_FUNCTION_INVOCATION): Use
11271         generic_frameless_function_invocation_not.
11272         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11273         (POP_FRAME): Use vax_pop_frame.
11274
11275 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11276
11277         * vax-tdep.c (vax_store_struct_return): New function.
11278         (vax_extract_return_value): Ditto.
11279         (vax_store_return_value): Ditto.
11280         (vax_extract_struct_value_address): Ditto.
11281         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11282         vax_store_struct_return.
11283         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11284         (STORE_RETURN_VALUE): Use vax_store_return_value.
11285         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11286
11287 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11288
11289         * vax-tdep.c (vax_frame_saved_pc): New function.
11290         (vax_frame_args_address_correct): Ditto.
11291         (vax_frame_args_address): Ditto.
11292         (vax_frame_locals_address): Ditto.
11293         (vax_frame_num_args): Move code to be in proximity to
11294         other frame-related functions.
11295         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11296         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11297         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11298         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11299         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11300
11301 2002-04-22  H.J. Lu  (hjl@gnu.org)
11302
11303         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11304         includedir.
11305
11306 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11307
11308         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11309         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11310         (FRAME_INIT_SAVED_REGS): New macro.
11311
11312 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11313
11314         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11315
11316 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11317
11318         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11319         where needed.
11320         (fetch_osf_core_registers): Likewise.
11321         (supply_gregset): Likewise.
11322
11323 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11324
11325         * symfile.h (get_section_index): Define.
11326         * symfile.c (get_section_index): New function.
11327         * mdebugread.c (SC_IS_SBSS): New macro.
11328         (SC_IS_BSS): Return true for the scBss storage class only, as
11329         the scSBss storage class refers to the .sbss section.
11330         (parse_partial_symbols): Discard the symbols which associated
11331         section does not exist.
11332         Make sure to use the .sbss section index for symbols which
11333         storage class is scBss, rather than using the .bss section index.
11334
11335 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11336
11337         * vax-tdep.c: Update copyright years.
11338         (vax_register_name): New function.
11339         (vax_register_byte): Ditto.
11340         (vax_register_raw_size): Ditto.
11341         (vax_register_virtual_size): Ditto.
11342         (vax_register_virtual_type): Ditto.
11343         * config/vax/tm-vax.h: Update copyright years.
11344         (REGISTER_NAMES): Remove.
11345         (REGISTER_NAME): Define.
11346         (REGISTER_BYTE): Use vax_register_byte.
11347         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11348         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11349         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11350
11351 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11352
11353         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11354         declaration
11355         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11356
11357 2002-04-21  David S. Miller  <davem@redhat.com>
11358
11359         * arch-utils.c (generic_prologue_frameless_p): Kill
11360         SKIP_PROLOGUE_FRAMELESS_P code.
11361         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11362         references.
11363         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11364         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11365         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11366         references.
11367         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11368         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11369         (sparc_gdbarch_init): Pass it to
11370         set_gdbarch_prologue_frameless_p.
11371
11372 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11373
11374         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11375         (alphabsd-nat.o): New dependency list.
11376
11377 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11378
11379         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11380         alphafbsd-tdep.c.
11381         (alpha-linux-tdep.o): New dependency list.
11382         (alphafbsd-tdep.o): Likewise.
11383
11384 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11385
11386         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11387         to here...
11388         * alpha-tdep.c: ...from here.
11389         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11390
11391 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11392
11393         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11394         prototype from here...
11395         * alpha-tdep.h: ...to here.
11396
11397 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11398
11399         * frame.h (selected_frame_level): Document as deprecated.
11400         (frame_relative_level): Declare.
11401         * stack.c (frame_relative_level): New function.
11402         (selected_frame_level): Document as deprecated.
11403         (select_frame): Do not set the selected_frame_level.
11404
11405         * stack.c (frame_info, record_selected_frame): Update.
11406         (frame_command, current_frame_command): Update.
11407         (up_silently_base, up_command, down_silently_base): Update.
11408         (down_command): Update.
11409         * inflow.c (kill_command): Update.
11410         * tracepoint.c (finish_tfind_command): Update.
11411         * corelow.c (core_open): Update.
11412         * thread.c (info_threads_command): Update.
11413         (do_captured_thread_select): Update.
11414         * infcmd.c (finish_command): Update.
11415         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11416
11417 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11418
11419         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11420
11421 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11422
11423         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11424         type const.
11425
11426 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11427
11428         * alphafbsd-tdep.c: Update copyright years.  Include
11429         alpha-tdep.h.
11430         (alphafbsd_use_struct_convention): Make static.
11431         (alphafbsd_init_abi): New function.
11432         (_initialize_alphafbsd_tdep): New function.
11433         * config/alpha/tm-fbsd.h: Update copyright years.
11434         (USE_STRUCT_CONVENTION): Remove.
11435
11436 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11437
11438         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11439         an Alpha ABI variant.
11440         (alpha_abi_handler_list): Declare.
11441         (alpha_gdbarch_register_os_abi): New function.
11442         (alpha_gdbarch_init): Give registered ABI variant handlers a
11443         chance to tweak the gdbarch once we have set up defaults.
11444         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11445
11446 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11447
11448         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11449         to standard_coerce_float_to_double.
11450         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11451
11452 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11453
11454         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11455         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11456         from gdbarch_tdep rather than a constant.
11457         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11458         the default text address for all Alpha Unix ABIs.
11459         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11460         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11461
11462 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11463
11464         * alpha-tdep.h: New file.  Includes several Alpha target constants
11465         taken from...
11466         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11467         let gdbarch deal with.
11468         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11469         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11470         to dependency list.
11471         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11472         Alpha target register names.
11473         * alphabsd-nat.c: Likewise.
11474         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11475         Alpha target register names.  Make serveral routines static.
11476         (alpha_get_saved_register): New function.
11477         (alpha_abi_names): New.
11478         (process_note_abi_tag_sections): New function.
11479         (get_elfosabi): New function.
11480         (alpha_gdbarch_init): New function.
11481         (alpha_dump_tdep): New function.
11482         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11483
11484 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11485
11486         * frame.c (find_saved_register): Delete #ifdef
11487         HAVE_REGISTER_WINDOWS code.
11488         * config/sparc/tm-sparc.h: Update comments.
11489         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11490
11491 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11492
11493         * i960-tdep.c (i960_find_saved_register): New function.
11494         (i960_get_saved_register): New function.
11495         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11496         (i960_get_saved_register): Declare.
11497         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11498
11499 2002-04-20  David S. Miller  <davem@redhat.com>
11500
11501         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11502
11503 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11504
11505         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11506         instead of NUM_PSEUDO_REGS.
11507
11508 2002-04-20  David S. Miller  <davem@redhat.com>
11509
11510         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11511         GDB_MULTI_ARCH_PARTIAL
11512         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11513         define, let tm-sp64.h do it.
11514
11515 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11516
11517         * frame.c (find_saved_register): Avoid a NULL pointer
11518         dereference and actually walk the frame list.
11519
11520 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11521
11522         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11523         sorted in most most-recent-used order.  Document.
11524         * gdbarch.h, gdbarch.c: Regenerate.
11525
11526 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11527
11528         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11529         instead of ->prev.
11530         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11531         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11532         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11533         instead of ->prev.
11534
11535 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11536
11537         Fix PR gdb/471.
11538         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11539         (build_builtin_type_vec128): Ditto.
11540         (append_composite_type_field): Fix calculation of type length in
11541         union case.
11542
11543 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11544
11545         * config/djgpp/README: Update.
11546
11547         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11548         compiler warnings.
11549
11550 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11551
11552         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11553         (alpha_setup_arbitrary_frame): ...to this.
11554         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11555         for alpha_setup_arbitrary_frame.
11556
11557 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11558
11559         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11560         * gdbarch.h, gdbarch.c: Regenerate.
11561
11562         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11563         * target.h (memory_breakpoint_from_pc): Update declaration.
11564         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11565
11566         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11567         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11568         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11569         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11570         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11571         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11572         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11573         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11574         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11575         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11576         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11577         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11578
11579         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11580         const pointer.
11581         * monitor.c (monitor_insert_breakpoint): Ditto.
11582         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11583
11584         * config/mcore/tm-mcore.h: Update copyright.
11585         * mem-break.c: Ditto.
11586         * xstormy16-tdep.c: Ditto.
11587
11588 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11589
11590         * p-exp.y: Add precedence rule for '^' token.
11591         This removes the shift/reduce conflicts.
11592         Remove the comment concerning these shift/reduce conflicts.
11593
11594 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11595
11596         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11597         (registers_powerpc_nofp): New register set for processors
11598         without floating point unit.
11599
11600 2002-04-18  David S. Miller  <davem@redhat.com>
11601
11602         * MAINTAINERS: Add myself to write-after-approval.
11603
11604 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11605
11606         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11607
11608 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11609
11610         * rs6000-tdep.c (frame_initial_stack_address): Use
11611         frame_register_read to read the alloca_reg.
11612
11613 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11614
11615         * frame.c (find_saved_register): Find saved registers in the next
11616         not prev frame.
11617         Fix PR gdb/365.
11618
11619 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11620
11621         * gdbarch.sh (LANG): Set to ``c''.
11622
11623 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11624
11625         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11626
11627 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11628
11629         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11630         Update copyright.
11631
11632         * hpread.c (hpread_get_lntt): Add declaration.
11633         Also fix PR gdb/391.
11634
11635 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11636
11637         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11638         * aclocal.m4, configure: Re-generate.
11639         Fix PR gdb/391.
11640
11641 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11642
11643         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11644         instead of tm_print_insn.
11645
11646 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11647
11648         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11649
11650 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11651
11652         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11653         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11654         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11655
11656 2002-04-12  Don Howard  <dhoward@redhat.com>
11657
11658         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11659         max_user_call_depth.
11660         (init_cmd_lists): Initialize the new value;
11661         * cli/cli-script.c (execute_user_command): Limit the call depth of
11662         user defined commands.  This avoids a core-dump when user commands
11663         are infinitly recursive.
11664
11665 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11666
11667         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11668         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11669         from tdep struct instead of DEFAULT_LR_SAVE.
11670         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11671         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11672         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11673
11674 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11675
11676         * Remote.c: Spelling fix.
11677         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11678         If no symbol found for "sbrk", try "_sbrk".
11679         (make_output_phdrs): Use bfd_section_name.
11680         (gcore_copy_callback): Use bfd_section_name.
11681         * eval.c: Indentation fix-ups.
11682         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11683         in case it gets applied to an address that is already
11684         in the instruction space.
11685         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11686         * symfile.c: Fix indentation, long lines.
11687         * source.c: White space fix-up.
11688
11689 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11690
11691         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11692         * frame.c (frame_register_read): New function.  Return non-zero on
11693         success.
11694         (read_relative_register_raw_bytes_for_frame): Delete.
11695         (read_relative_register_raw_bytes): Delete.
11696         * frame.h (frame_register_read): Declare.
11697         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11698         * sh-tdep.c: Ditto.
11699         * infcmd.c (do_registers_info): Ditto.
11700         * hppa-tdep.c: Ditto.
11701         * rs6000-tdep.c: Ditto.
11702         * h8500-tdep.c: Ditto.
11703         * mips-tdep.c: Ditto.
11704         * h8300-tdep.c: Ditto.
11705         * z8k-tdep.c: Ditto.
11706
11707 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11708
11709         From Jimi X <jimix@watson.ibm.com>:
11710         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11711         64-bit SysV ABI.
11712
11713 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11714
11715         From Jimi X <jimix@watson.ibm.com>:
11716         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11717         bfd info.
11718
11719 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11720
11721         From Jimi X <jimix@watson.ibm.com>:
11722         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11723         register sets for these processor variants.
11724
11725 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11726
11727         * regformats/reg-ppc.dat: Support FPSCR.
11728
11729 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11730
11731         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11732         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11733         Add fpscr as an invalid/unfetchable register.
11734         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11735         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11736         (fill_fpregset): Add support for register fpscr.
11737         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11738         (fill_gregset): Account for the fact that register ``mq'' might
11739         not exist.
11740         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11741         (registers_power): Add fpscr to register set at slot 71.
11742         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11743         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11744
11745 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11746
11747         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11748         * configure: Regenerate.
11749         * config.in: Regenerate.
11750         * acconfig.h: Add define for _SYSCALL32.
11751         * core-sol2.c: Remove #define _SYSCALL32.
11752         * solib-legacy.c: Remove #define _SYSCALL32.
11753
11754 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11755
11756         * stack.c (select_frame): Cleanup internal error message, do not
11757         use %p.
11758
11759 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11760
11761         * stack.c (select_frame): Check that selected_frame and the
11762         specified level are as expected.
11763         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11764         Update copyright.
11765         * frame.h (struct frame_info): Add field `level'.  Update
11766         copyright.
11767         Work-in-progress PR gdb/464.
11768
11769 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11770
11771         * maint.c (maint_print_section_info): Rename print_section_info.
11772         (print_bfd_section_info, print_objfile_section_info): Update.
11773         * inferior.h (struct gdbarch): Add opaque declaration.
11774         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11775         * gdbarch.h: Regenerate.
11776
11777 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11778
11779         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11780         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11781         (kernel_u_size): Added.
11782         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11783         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11784
11785 2002-04-04  Jim Ingham  <jingham@apple.com>
11786
11787        * valarith.c (find_size_for_pointer_math): New function, either returns
11788        the size for a pointer's target, returns 1 for void *, or errors for
11789        incomplete types.
11790        (value_add, value_sub): use find_size_for_pointer_math.
11791
11792 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11793
11794         * linux-low.c (linux_look_up_symbols): New hook.
11795         (linux_target_ops): Add linux_look_up_symbols.
11796         * remote-utils.c (decode_address): New function.
11797         (look_up_one_symbol): New function.
11798         * server.c (handle_query): Call target look_up_symbols hook.
11799         * server.h (look_up_one_symbol): Add prototype.
11800         * target.h (struct target_ops): Add look_up_symbols hook.
11801
11802 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11803
11804         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11805         override FP_REGNUM with frame->fp.  Update copyright.
11806         * parse.c (num_std_regs, std_regs): Delete.
11807         (target_map_name_to_register): Do not search std_regs.  Update
11808         function description.
11809         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11810         declarations.  Update copyright.
11811         Fix PR gdb/251.
11812
11813 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11814
11815         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11816         after the last symbol in a block.
11817
11818 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11819
11820         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11821         is non zero as a found symbol.
11822
11823 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11824
11825         * findvar.c: Include "builtin-regs.h".
11826         (value_of_register): Call value_of_builtin_reg when applicable.
11827         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11828         (target_map_name_to_register): Call
11829         builtin_reg_map_name_to_regnum.
11830         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11831         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11832         (builtin_regs_h): Define.
11833         (builtin-regs.o): New target.
11834         (findvar.o): Add $(builtin_regs_h).
11835         * builtin-regs.c, builtin-regs.h: New files.
11836         * std-regs.c: New file.
11837         Partial fix for PR gdb/251.
11838
11839 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11840
11841         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11842         it's no longer required.
11843
11844 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11845
11846         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11847
11848 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11849
11850         From Jimi X <jimix@watson.ibm.com>:
11851         * rs6000-tdep.c (rs6000_software_single_step): Use
11852         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11853         and size.  Use target_insert_breakpoint() and
11854         target_remove_breakpoint() to insert and remove breakpoints
11855         instead of explicit memory reads and writes.
11856
11857 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11858
11859         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11860         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11861         ELF_OBJECT_FORMAT ifdef.
11862
11863 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11864
11865         From Jimi X <jimix@watson.ibm.com>:
11866         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11867
11868 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11869
11870         From Jimi X <jimix@watson.ibm.com>:
11871         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11872         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11873
11874 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11875
11876         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11877         s/asprintf/xasprintf/.
11878         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11879
11880 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11881
11882         I believe Jeff Law denies responsability for this one:
11883         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11884         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11885         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11886         Work-around for PR gdb/366.
11887
11888 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11889
11890         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11891         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11892         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11893
11894 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11895
11896         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11897         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11898         information.
11899
11900 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11901
11902         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11903         maintainer.
11904
11905 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11906
11907         * README (Reporting Bugs in GDB): Document the bug web page as the
11908         prefered way of submitting bugs.
11909         Fix PR gdb/402.
11910
11911 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11912
11913         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11914         -1.  Update comment.
11915         * gdbarch.h, gdbarch.c: Re-generate.
11916
11917 2002-04-07  Andreas Schwab  <schwab@suse.de>
11918
11919         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11920         buffer to regcache_collect.
11921
11922 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11923
11924         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11925         * gdbarch.c, gdbarch.h: Re-generate.
11926
11927 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11928
11929         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11930         declaration.  Fix -Werror.
11931
11932 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11933
11934         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11935         * gdbarch.c: Regenerate.
11936
11937 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11938
11939         * breakpoint.c (clear_command): Rewrite middle section to
11940         combine two loops with identical control conditions.
11941         Add a cleanup to eliminate a memory leak.
11942         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11943
11944 2002-04-05  H.J. Lu  (hjl@gnu.org)
11945
11946         * solib-svr4.c (bkpt_names): Add "__start".
11947
11948 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11949
11950         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11951         as test for 64 bit target.
11952
11953 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11954
11955         * h8500-tdep.c (h8500_write_fp): Delete function.
11956         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11957         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11958         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11959         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11960         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11961         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11962         (s390_write_fp):
11963         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11964         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11965         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11966         (d10v_write_fp): Delete function.
11967         * inferior.h (write_fp, generic_target_write_fp): Delete
11968         declarations.
11969         * regcache.c (generic_target_write_fp): Delete function.
11970         (write_fp): Delete function.
11971         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11972         * gdbarch.h, gdbarch.c: Regenerate.
11973         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11974         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11975         (sparc64_write_fp): Delete declaration.
11976         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11977         (h8500_write_fp): Delete declaration.
11978
11979 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11980
11981         * sparc-tdep.c (sparc64_write_fp): Delete.
11982         (sparc_push_dummy_frame): Replace write_fp call with code to store
11983         the FP directly.
11984         (sparc_gdbarch_init): Do not initialize write_fp.
11985
11986 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11987
11988         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11989         clause.
11990
11991 2002-03-29  Jim Blandy  <jimb@redhat.com>
11992
11993         * stack.c (get_selected_block): Add new argument `addr_in_block',
11994         used to return the exact code address we used to select the block,
11995         not just the block.
11996         * blockframe.c (get_frame_block, get_current_block): Same.
11997         * frame.h (get_frame_block, get_current_block,
11998         get_selected_block): Update declarations.
11999         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12000         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12001
12002 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12003
12004         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12005         warning message.
12006
12007 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12008
12009         * utils.c (xfullpath): New function.
12010         * defs.h (xfullpath): Add declaration.
12011         * source.c (openp): Use xfullpath in place of gdb_realpath to
12012         avoid resolving the basename part of filenames when the
12013         associated file is a symbolic link. This fixes a potential
12014         inconsistency between the filenames known to GDB and the
12015         filenames it prints in the annotations.
12016         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12017         to be able to match a filename with either the real filename, or
12018         the name of any symbolic link to this file.
12019         (lookup_partial_symtab): Ditto.
12020
12021 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12022
12023         * breakpoint.c: Add support for hardware breakpoints in overlays.
12024         (overlay_events_enabled): New state variable.
12025         (insert_breakpoints): Use overlay_events_enabled to decide
12026         whether to attempt to set a breakpoint at the overlay load addr.
12027         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12028         (remove_breakpoint): Use overlay_events_enabled to decide
12029         whether breakpoints need to be removed from overlay load addr.
12030         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12031         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12032         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12033         disable_overlay_breakpoints): Update overlay_events_enabled.
12034
12035 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12036
12037         * dwarf2read.c (struct function_range): New.
12038         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12039         (check_cu_functions): New.
12040         (read_file_scope): Initialize global function lists.
12041         Call dwarf_decode_line after processing children.
12042         (read_func_scope): Add to global function list.
12043         (dwarf_decode_lines): Call check_cu_functions everywhere
12044         record_line is called.  Call record_line with a linenumber
12045         of 0 to mark sequence ends.
12046
12047 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12048
12049         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12050         change sync with glibc.
12051
12052 2002-04-03  Jim Blandy  <jimb@redhat.com>
12053
12054         * configure.in: Call AC_C_INLINE.
12055         * configure: Regenerated.
12056
12057 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12058
12059         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12060         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12061
12062 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12063
12064         * NEWS: Mention gcore support on FreeBSD/i386.
12065
12066         * fbsd-proc.c: New file.
12067         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12068         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12069
12070         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12071         while statement.
12072
12073 2002-03-29  Jim Blandy  <jimb@redhat.com>
12074
12075         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12076         unescaped newlines in string literals, but newer ones don't.  So
12077         escape them.
12078
12079 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12080             Andrew Cagney <cagney@redhat.com>
12081
12082         * cli/cli-dump.c: New file.  Dump memory to file,
12083         restore file to memory.
12084         * cli/cli-dump.h: New file.
12085         * Makefile.in: Add rules, dependencies for cli-dump.o.
12086         * NEWS: Mention new commands.
12087
12088 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12089
12090         * symfile.c (symbol_file_add): Move test for null symbols to later.
12091
12092 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12093
12094         From veksler at il.ibm.com:
12095         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12096         the xstrduped original path.
12097         Fix PR gdb/417.
12098
12099 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12100
12101         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12102         * infcmd.c (_initialize_infcmd): Ditto.
12103         * language.c (_initialize_language): Ditto.
12104         * symfile.c (_initialize_symfile): Ditto.
12105         * top.c (_init_main): Ditto.
12106         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12107
12108 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12109
12110         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12111         vector registers handling.
12112         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12113         fields of frame data.
12114         (frame_get_saved_regs): Fill in information for AltiVec registers.
12115
12116 2002-03-27  Jim Blandy  <jimb@redhat.com>
12117
12118         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12119         a function; leave this macro here to invoke that function.
12120         (symbol_init_mangled_name): Declaration for that function.
12121         * symtab.c (symbol_init_mangled_name): New function.
12122
12123 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12124
12125         * valarith.c: Replace strerror with safe_strerror.
12126         * tracepoint.c: Ditto.
12127         * lin-lwp.c: Ditto.
12128         * go32-nat.c: Ditto.
12129         * inflow.c: Ditto.
12130         * gnu-nat.c: Ditto.
12131
12132 2002-03-27  Andreas Schwab  <schwab@suse.de>
12133
12134         * event-top.c (command_line_handler): Remove useless if.
12135
12136 2002-03-27  Andreas Jaeger  <aj@suse.de>
12137
12138         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12139         comment.
12140
12141 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12142
12143         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12144         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12145         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12146         (x86_64_linux_dr_get_status, supply_gregset),
12147         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12148         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12149         (x86_64_register_info_table): Add.
12150         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12151         (x86_64_register_raw_size, x86_64_register_virtual_type),
12152         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12153         general x86_64_register_info_table.
12154         (i386_gdbarch_init): gdbarch_register_bytes is now set
12155         dynamicaly during initialization.
12156         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12157         * gdbserver/linux-x86-64-low.c: Ditto.
12158
12159 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12160
12161         * gdbserver/server.c (main): Call target_signal_to_host_p
12162         and target_signal_to_host on signals received from the remote.
12163         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12164         target_signal_from_host on signals sent to the remote.
12165         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12166         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12167
12168 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12169
12170         * signals/signals.c: Include "server.h" in gdbserver build.
12171         (target_signal_from_name): Don't use STREQ.
12172         (_initialize_signals): Likewise.  Don't include function in
12173         gdbserver build.
12174
12175 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12176
12177         * signals.c: Moved to...
12178         * signals/signals.c: Here.
12179         * Makefile (signals.o): Update.
12180
12181 2002-03-26  Jeff Law (law@redhat.com)
12182
12183         * somread.c (som_symtab_read): Remove some commented out code and
12184         updated related comments.  Do not set the minimal symbol table to
12185         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12186         in a dynamic executable.
12187         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12188         where we are unable to find the minimal symbol for the given
12189         PC value.
12190
12191 2002-03-25  Jeff Law (law@redhat.com)
12192
12193         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12194
12195 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12196
12197         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12198
12199 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12200
12201         * command.h: Update copyright.
12202         (struct cmd_list_element): Replace definition with opaque
12203         declaration.
12204         (enum cmd_types): Document that it will eventually be moved to
12205         cli/cli-decode.h
12206         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12207         (MALLOCED_REPLACEMENT): Delete macro.
12208         * Makefile.in (cli_decode_h): Add $(command_h).
12209         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12210         * top.c: Include "cli/cli-decode.h".
12211         * completer.c: Include "cli/cli-decode.h".
12212         * maint.c: Include "cli/cli-decode.h".
12213         * cli/cli-decode.h: Include "command.h".
12214         (enum command_class): Delete.
12215         (enum cmd_types): Comment out.
12216         (enum cmd_auto_boolean): Delete.
12217         (enum var_types): Delete.
12218
12219 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12220
12221         * cli/cli-decode.c: Include "gdb_assert.h".
12222         (add_set_or_show_cmd): New static function.
12223         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12224         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12225         all fields, such as func, from the set command.
12226
12227 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12228
12229         * MAINTAINERS (sh-elf): Change warning flag to -w.
12230
12231 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12232
12233         * defs.h (error): Add printf format attribute.
12234         * thread-db.c (thread_from_lwp): Fix error format string.
12235         * stack.c (parse_frame_specification): Ditto.
12236         * cli/cli-decode.c (undef_cmd_error): Ditto.
12237         * scm-lang.c (scm_lookup_name): Ditto.
12238         * tracepoint.c (trace_error): Ditto.
12239         * remote-utils.c (usage): Ditto.
12240         * remote.c (compare_sections_command): Ditto.
12241         Fix PR gdb/328.
12242
12243 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12244
12245         * gdbtypes.c (append_composite_type_field): New function.
12246         (init_composite_type): New function.
12247         * gdbtypes.h (append_composite_type_field): Declare.
12248         (init_composite_type): Ditto.
12249
12250 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12251
12252         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12253         function.
12254         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12255         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12256         structure returning convention for SYSV ABI case, but not
12257         for GNU/Linux, FreeBSD, or NetBSD.
12258
12259 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12260
12261         * symtab.h (lookup_block_symbol): Add mangled_name argument
12262         to prototype.
12263
12264         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12265         with new mangled_name argument.
12266         * linespec.c (decode_line_1): Likewise.
12267         * valops (value_of_this): Likewise.
12268         * symtab.c (lookup_transparent_type): Likewise.
12269         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12270         (lookup_symbol): If we are given a mangled name, pass it down
12271         to lookup_symbol_aux.
12272         (lookup_block_symbol): If we are given a mangled name to check
12273         against, only return symbols which match it.
12274
12275 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12276
12277         * win32-nat.c (child_create_inferior): Check for proper shell to use
12278         here, in case the user changes it on the fly.
12279         (_initialize_inftarg): Remove shell path considerations.
12280
12281 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12282
12283         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12284         for gdbarch_max_register_raw_size and max_register_virtual_size.
12285         Adjust copyright year.
12286
12287 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12288
12289          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12290          in a function to cover the entire beginning of the function
12291          as well if it does not already.
12292
12293 2002-03-21  Tom Rix  <trix@redhat.com>
12294
12295         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12296         (rs6000_ptrace64): Renamed from ptrace64.
12297
12298 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12299
12300         * gdbserver/remote-utils.c (remote_open): Don't call
12301         getprotobyname, we're all using TCP here so just use
12302         IPPROTO_TCP.
12303         * gdbserver/gdbreplay.c (remote_open): Ditto.
12304
12305 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12306
12307         * regcache.c (_initialize_regcache): No need to call
12308         build_regcache() at this time; it gets called whenever
12309         the gdbarch changes.
12310
12311 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12312
12313         * sparc-nat.c:  Include sys/param.h where possible.
12314
12315 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12316
12317         Fix PR gdb/422.
12318         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12319         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12320         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12321         complex types.
12322         * stabsread.c (rs6000_builtin_type): Likewise.
12323         (read_sun_floating_type): Likewise.
12324
12325 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12326
12327         * stabsread.c (read_member_functions): Remove skip code for duplicate
12328         constructor/destructor methods.  Use standard parsing for these
12329         methods and just do not chain them to the list of methods after
12330         parsing.
12331
12332 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12333
12334         * coffread.c: Remove redundant static declarations.  Replace
12335         occurrences of `PTR' with `void *'.
12336         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12337         * top.h (quit_cover): Likewise.
12338         * defs.h (catch_errors): Likewise.
12339
12340 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12341
12342         * defs.h (XMALLOC): Define.
12343         * gdb-events.sh (XMALLOC): Delete macro.
12344         * gdb-events.c, gdb-events.h: Regenerate.
12345         * gdbarch.sh (XMALLOC): Delete macro.
12346         * gdbarch.c: Regenerate.
12347         * serial.c (XMALLOC): Delete macro.
12348         * ui-file.c (XMALLOC): Ditto.
12349         * ser-unix.h (XMALLOC): Ditto.
12350         * sh-tdep.c (XMALLOC): Ditto.
12351         * ui-out.c (XMALLOC): Ditto.
12352         * utils.c (XMALLOC): Ditto.
12353         * i386-tdep.c (XMALLOC): Ditto.
12354         * gdb-events.c (XMALLOC): Ditto.
12355         * d10v-tdep.c (XMALLOC): Ditto.
12356         * cli-out.c (XMALLOC): Ditto.
12357
12358         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12359         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12360         * ui-file.c, ui-out.c: Ditto.
12361
12362 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12363
12364         * command.h (struct cmd_list_element): Add field context.
12365         (set_cmd_context, get_cmd_context): Declare.
12366         * cli/cli-decode.h: Ditto.
12367         * cli/cli-decode.c (get_cmd_context): New function.
12368         (set_cmd_context): New function.
12369         (add_cmd): Initialize context.
12370         Part of fixing PR gdb/145 and PR gdb/146.
12371
12372 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12373
12374         * cli/cli-decode.c (cmd_type): New function.
12375         * command.h (cmd_type): Declare.
12376         * infrun.c (set_schedlock_func): Call function cmd_type.
12377         * kod.c (kod_set_os): Call cmd_type.
12378         * cris-tdep.c (cris_version_update): Use function cmd_type.
12379         (cris_mode_update, cris_abi_update): Ditto.
12380
12381         * command.h: (execute_cmd_post_hook): Declare.
12382         (execute_cmd_pre_hook): Declare.
12383         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12384         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12385         functions. Execute pre/post hook while ensuring that afterwords
12386         hook_in is cleared.
12387         * top.c (execute_command): Use execute_cmd_post_hook, and
12388         execute_cmd_pre_hook to execute pre/post commands.
12389         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12390         hook_stop_stub.
12391         (hook_stop_stub): Call execute_cmd_pre_hook.
12392
12393 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12394
12395         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12396         set'' and this leads to a core dump.  Move xstrdup of
12397         operating_system to after check that it is not NULL.
12398
12399 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12400
12401         * kod.c (kod_set_os): Remove unnecessary check that
12402         ``command->type'' is set_cmd.
12403
12404         * valprint.c (set_input_radix): Use input_radix.
12405         (set_output_radix): Use output_radix.
12406         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12407         isn't reverted.
12408
12409 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12410
12411         * value.h (struct value): Delete field ``substring_addr''.  Change
12412         aligner fields to force_doublest_align, force_longest_align,
12413         force_core_addr_align and force_pointer_aligh.
12414
12415         * value.h (struct value): Fix typo in above change.
12416
12417 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12418
12419         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12420         to fix internal_error from ``maintenance print architecture''.
12421
12422 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12423
12424         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12425         for gcc versions after gcc-2.8.1.
12426
12427 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12428
12429         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12430         for method resolution.  Restore adjustment of ``this'' pointer after
12431         calling value_struct_elt, which was accidentally removed during the
12432         HP merge.
12433
12434 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12435
12436         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12437         value_of_register.
12438         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12439         get_saved_register.
12440         * value.h (value_of_register): Update.
12441
12442 2002-03-14  Richard Henderson  <rth@redhat.com>
12443
12444         * configure.in: Detect declaration for canonicalize_file_name.
12445         * utils.c (canonicalize_file_name): Declare, if needed.
12446         (gdb_realpath): Prefer realpath if available and usable.
12447         * config.in, configure: Rebuild.
12448
12449 2002-03-14  Richard Henderson  <rth@redhat.com>
12450
12451         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12452         a constant array bound.
12453
12454         * MAINTAINERS: Add myself to write-after-approval.
12455
12456 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12457
12458         * symfile.c (syms_from_objfile): Return immediately if no syms.
12459         (symbol_file_add): Return immediately if no syms.
12460         (find_sym_fns): Return immediately if no syms.
12461
12462 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12463
12464         * gdbserver/remote-util.c (remote_open): Print remote-side's
12465         IP address when remote debugging over the network.
12466
12467 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12468
12469         * config/sparc/fbsd.mh: Fix copyright.
12470         * config/sparc/fbsd.mt: Likewise.
12471
12472 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12473
12474         * MAINTAINERS: Fix typo in name of gdb warnings option.
12475         (x86-64): Fix formating so that this can be parsed by awk.
12476
12477 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12478
12479         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12480         * defs.h: Include "gdb/signals.h".
12481         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12482
12483 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12484
12485         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12486         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12487         from x86-64-tdep.h
12488
12489 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12490             Don Howard <dhoward@redhat.com>
12491
12492         * mips-tdep.c (ST0_FR): Define.
12493         (mips2_fp_compat): New function, temporarily disabled.
12494         (mips_read_fp_register_single): New function.
12495         (mips_read_fp_register_double): New function.
12496         (mips_print_register): Use them.
12497         (do_fp_register_row): Likewise.
12498
12499 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12500
12501         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12502         approval''.
12503
12504 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12505
12506         * stabsread.c (read_member_functions): Fix is_stub test for
12507         static member functions, improve comment.
12508
12509 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12510
12511         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12512         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12513         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12514         commands that set boolean values.
12515         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12516         (arm_rdi_resume): Always initialize PC.
12517         (arm_rdi_open): Don't use rslt as a boolean.
12518         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12519         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12520         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12521         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12522
12523 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12524
12525         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12526         * configure: Rebuilt.
12527
12528 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12529
12530         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12531         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12532
12533 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12534
12535         * cli/cli-decode.c (set_cmd_completer): New function.
12536         * command.h (set_cmd_completer): Declare.
12537         * cli/cli-decode.h (set_cmd_completer): Ditto.
12538
12539         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12540         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12541         * win32-nat.c (_initialize_inftarg): Ditto.
12542         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12543         * proc-api.c (_initialize_proc_api): Ditto.
12544         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12545         * source.c (_initialize_source): Ditto.
12546         * exec.c (_initialize_exec): Ditto.
12547         * solib.c (_initialize_solib): Ditto.
12548         * top.c (init_main): Ditto.
12549         * tracepoint.c (_initialize_tracepoint): Ditto.
12550         * symfile.c (_initialize_symfile): Ditto.
12551         * printcmd.c (_initialize_printcmd): Ditto.
12552         * infcmd.c (_initialize_infcmd): Ditto.
12553         * corefile.c (_initialize_core): Ditto.
12554
12555 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12556
12557         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12558
12559 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12560
12561         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12562
12563 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12564
12565         * NEWS: Update headings, 5.2 has branched.
12566
12567 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12568
12569         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12570         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12571         (register_addr, REGISTER_RAW_SIZE): Likewise.
12572         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12573         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12574
12575 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12576
12577         * MAINTAINERS (x86-64): Add myself.
12578         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12579         changed value_ptr -> struct value *
12580
12581 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12582
12583         * configure.host (sparc64-*-freebsd): Add.
12584         * configure.tgt: Likewise.
12585         * config/sparc/fbsd.mh: New file.
12586         * config/sparc/fbsd.mt: Likewise.
12587         * config/sparc/nm-fbsd.h: Likewise.
12588         * config/sparc/tm-fbsd.h: Likewise.
12589
12590 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12591
12592         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12593         regformats/reg-s390x.dat.
12594
12595 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12596
12597         * utils.c: Add FIXME explaining true/false problem.
12598
12599 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12600
12601         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12602
12603 2002-02-28  Michael Chastain  <mec@shout.net>
12604
12605         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12606
12607 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12608
12609         * gdbserver/linux-s390-low.c: New file.
12610         * regformats/reg-s390.dat: New file.
12611         * regformats/reg-s390x.dat: New file.
12612         * gdbserver/configure.srv: Add S/390.
12613         * gdbserver/Makefile.in: Add S/390.
12614         * configure.tgt: Enable gdbserver for S/390.
12615
12616 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12617
12618         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12619         first line of the doc string for "info dos", except at the end of
12620         the sentence, since the short help stops at the first period.
12621
12622 2002-02-28  Jason Merrill  <jason@redhat.com>
12623
12624         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12625
12626 2002-02-27  Fred Fish  <fnf@redhat.com>
12627
12628         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12629         comment (dumy -> dummy).
12630
12631 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12632
12633         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12634
12635 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12636
12637       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12638
12639 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12640
12641         * gdbserver/acconfig.h: New file.
12642         * gdbserver/i387-fp.c: New file.
12643         * gdbserver/i387-fp.h: New file.
12644         * gdbserver/linux-x86-64.c: New file.
12645         * regformats/reg-x86-64.dat: New file.
12646         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12647         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12648         * gdbserver/configure.in: Add support for regsets.
12649         * gdbserver/config.in: Regenerate.
12650         * gdbserver/configure: Regenerate.
12651         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12652         * gdbserver/linux-low.h: New file.
12653         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12654         for regsets.
12655         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12656         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12657         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12658         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12659         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12660         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12661         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12662         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12663         * gdbserver/regcache.c (supply_register): New function.
12664         (supply_register_by_name): New function.
12665         (collect_register): New function.
12666         (collect_register_by_name): New function.
12667
12668 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12669
12670         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12671         (config.status): Add configure.srv dependency.
12672         (server_h): Add config.h dependency.
12673
12674 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12675
12676         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12677         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12678         * gdbserver/configure.srv: Change i386-*-linux* to use
12679         reg-i386-linux.o.
12680
12681 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12682
12683         * x86-64-tdep.c: Re-indent.  Update copyright date.
12684
12685 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12686
12687         From Michal Ludvig <mludvig@suse.cz>:
12688         * x86-64-tdep.c (value.h): Delete.
12689         (gdb_assert.h): Include.
12690         (x86_64_register_convert_to_virtual,
12691         x86_64_register_convert_to_raw ): Add check which lets only
12692         floating-point values to be converted.
12693         (value_push): Delete.
12694         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12695         (i386_gdbarch_init): Number of register_bytes fixed.
12696
12697 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12698
12699         * MAINTAINERS: Add x86-64 target.
12700
12701 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12702
12703         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12704         * osfsolib.c (solib_map_sections): Ditto.
12705         * irix5-nat.c (solib_map_sections): Ditto.
12706         * corelow.c (gdb_check_format): Ditto.
12707         * symfile.c (symfile_bfd_open): Ditto.
12708         * solib.c (solib_map_sections): Ditto.
12709         Fix PR gdb/354.
12710
12711 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12712
12713         * remote.c (_initialize_remote): By default, disable ``e'' and
12714         ``E'' step out-of-range packets.
12715
12716 2002-02-26  Andreas Schwab  <schwab@suse.de>
12717
12718         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12719         m68k_linux_frame_saved_pc.
12720         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12721         in_sigtramp.
12722         (SIGCONTEXT_PC_OFFSET): Remove.
12723         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12724         m68k_linux_sigtramp_saved_pc): New functions.
12725         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12726         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12727         (UCONTEXT_PC_OFFSET): Define.
12728         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12729         non-RT and RT signal trampolines.
12730
12731 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12732
12733         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12734         (TARGET_NBPG, STACK_END_ADDR): Delete
12735         (VARIABLES_INSIDE_BLOCK): Delete.
12736
12737 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12738
12739         * utils.c (perror_with_name): Make string parameter constant.
12740         (print_sys_errmsg): Ditto.
12741         (query): Ditto.
12742         * defs.h (perror_with_name): Update.
12743         (print_sys_errmsg): Update.
12744         (query): Update.
12745
12746 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12747
12748         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12749         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12750
12751 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12752
12753         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12754         if it already matches the current architecture from the exec file.
12755         Include arch-utils.h for gdbarch_info_init prototype.
12756         * Makefile.in (rs6000-nat.o): Update dependencies.
12757
12758 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12759
12760         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12761          list of exported variables.
12762
12763 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12764
12765         * gdbserver/configure.srv: New file.
12766         * gdbserver/configure.in: Use configure.srv instead
12767         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12768         from it.
12769         * gdbserver/configure: Regenerated.
12770         * gdbserver/terminal.h: New file.
12771         * gdbserver/Makefile.in: Update for configure changes.  Remove
12772         more unneeded include paths.
12773
12774 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12775
12776         From wiz at danbala:
12777         * config/sparc/tm-sp64.h: Fix grammar and typos.
12778         Fix PR gdb/287.
12779
12780 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12781
12782         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12783         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12784         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12785         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12786         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12787         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12788         * s390-tdep.c: Ditto.
12789         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12790         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12791         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12792         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12793         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12794         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12795         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12796         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12797         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12798         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12799         Fix PR gdb/378.
12800
12801 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12802
12803         * lin-thread.c: Delete file.
12804         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12805         to gdb_proc_service.h.
12806         * configure: Re-generate.
12807
12808         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12809         * serial.c (serial_open): Delete check for "ocd".
12810         Fix PR gdb/349.
12811
12812         * Makefile.in (linux-thread.o): Delete target.
12813         * linux-thread.c: Delete file.
12814
12815         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12816         renamed SH files to be consistent.
12817
12818         * symtab.c (sort_search_symbols): Use xfree.
12819
12820 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12821
12822         * arm-linux-tdep.c (arm_linux_init_abi): Register
12823         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12824         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12825         definition with undef, since we don't want the sysvr4 definition.
12826         (SKIP_TRAMPOLINE_CODE): Likewise.
12827
12828 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12829
12830         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12831
12832         * configure.in: (AC_CHECK_FUNCS) Added test for
12833         canonicalize_file_name Regenerated.
12834         * config.in, configure: Regenerated.
12835         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12836         defined use canonicalize_file_name.
12837
12838 2002-02-23  Michael Chastain  <mec@shout.net>
12839
12840         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12841
12842 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12843
12844         * README: Remove references to cygnus.com.
12845         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12846         dot com'' form.  Remove references to cygnus.com and sourceware.
12847
12848 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12849
12850         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12851         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12852         1003.1-2001 no longer allows "head -1".
12853         * gdb/Makefile.in (version.c): Likewise.
12854         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12855         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12856         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12857
12858 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12859
12860         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12861         * command.h (cmd_cfunc_eq): Declare.
12862         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12863
12864         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12865         ``struct cmd_list_element *''.
12866         * cli/cli-cmds.c (is_complete_command): Update.  Use
12867         cmd_cfunc_eq.
12868         * top.c (execute_command): Pass the command to
12869         is_complete_command.
12870         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12871
12872 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12873
12874         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12875         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12876         architecture defines.
12877         * s390-tdep.c (s390_gdbarch_init): Likewise.
12878
12879 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12880
12881         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12882         (arm_linux_push_arguments): Likewise.
12883         (arm_linux_init_abi): Register them.  Also register linux-specific
12884         call_dummy_words.
12885         (find_minsym_and_objfile): Use strcmp, not STREQ.
12886         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12887         (arm_linux_call_dummy_words): Delete declaration.
12888         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12889         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12890         declarations.
12891         (LOWEST_PC): Delete.
12892
12893 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12894
12895         * maint.c (print_section_info): Do not prepend `0x' to filepos
12896         output, it will be handled by local_hex_string_custom.
12897
12898 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12899
12900         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12901         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12902         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12903
12904 2002-02-22  Jim Blandy  <jimb@redhat.com>
12905
12906         Indicate that the bcache functions don't change the strings
12907         they're passed.
12908         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12909         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12910
12911 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12912
12913         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12914
12915 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12916
12917         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12918         find the complete path to a loaded DLL.
12919
12920 2002-02-21  Fred Fish  <fnf@redhat.com>
12921
12922         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12923         that marks the end of the range of a function, enter a line number
12924         entry that has a line number of zero and a PC offset that matches
12925         the end of the function.  This starts a range of PC's for which no
12926         line number information is known.
12927         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12928         PC's for which no line number info is found (line number is zero)
12929         then we didn't find any valid line information.
12930         * symtab.h: Document use of zero line number entry.
12931
12932 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12933
12934         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12935         (have_ptrace_getvrregs): Define for run time checks.
12936         (gdb_vrregset_t): New type for Altivec register handling.
12937         (fetch_register, store_register): Fetch/store altivec register
12938         when needed.
12939         (fetch_altivec_register, store_altivec_register): New functions.
12940         (supply_vrregset, fill_vrregset): New functions.
12941         (fetch_altivec_registers, store_altivec_registers): New functions.
12942         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12943         registers as well.
12944
12945 2002-02-21  Jiri Smid  <smid@suse.cz>
12946
12947         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12948
12949 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12950
12951         * Makefile.in (armnbsd-nat.o): Update dependencies.
12952         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12953         supply the integer register set.
12954         (supply_fparegset): New function.  Similar for FPA registers.
12955         (fetch_regs, fetch_fp_regs): Use them.
12956         (fetch_core_registers): Likewise.
12957         (fetch_elfcore_registers): New function.
12958         (arm_netbsd_elfcore_fns): New core-file type specification.
12959         (_initialize_arm_netbsd_nat): Register it.
12960
12961 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12962
12963         * armnbsd-nat.c: Include gdbcore.h.
12964         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12965         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12966         'void' to declaration, to shut up ARI.
12967         (fetch_core_registers): Make static.  Rewrite using supply_register.
12968         (arm_netbsd_core_fns): New core-file type specification.
12969         (_initialize_arm_netbsd_nat): New function.
12970
12971 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12972
12973         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12974         value.
12975
12976 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12977
12978         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12979         fails.
12980
12981 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12982
12983         * jv-exp.y (parse_number): Change type of implicit longs
12984         to builtin_type_uint64.
12985
12986 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12987
12988         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12989         to be an integer instead of a `union wait'.
12990
12991 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12992
12993         * mips-linux-nat.c: Call the operating system GNU/Linux.
12994         * mips-linux-tdep.c: Likewise.
12995         * mips-tdep.c: Likewise.
12996
12997 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12998
12999         Fix PR gdb/265.
13000         * jv-exp.y (parse_number): Handle 64-bit integers.
13001
13002 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13003
13004         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13005         AC_STDC_HEADERS to AC_HEADER_STDC.
13006         * gdbserver/configure: Regenerated.
13007
13008 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13009
13010         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13011         is defined.
13012         * sparc-tdep.c (get_longjmp_target): Likewise.
13013
13014 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13015
13016         * News: Add news about ARM and Multi-arch.  Mention the new target
13017         arm*-*-netbsd*.
13018
13019 2002-02-19  Jim Blandy  <jimb@redhat.com>
13020
13021         * stabsread.c (error_type_complaint): Improve error message.
13022
13023 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13024
13025         * gdbserver/README: Update documentation.
13026         * gdbserver/configure.in: Update configury to match documentation.
13027         * gdbserver/Makefile.in: Likewise.
13028         * gdbserver/configure: Regenerated.
13029         * gdbserver/aclocal.m4: New file, generated by aclocal.
13030         * gdbserver/config.in: New file, generated by autoheader.
13031
13032 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13033
13034         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13035         armnbsd-nat.c.
13036
13037 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13038
13039         * arm-tdep.h (enum arm_float_model): New enum.
13040         (struct gdbarch_tdep): Add fp_model.
13041         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13042         up floating-point conversions until we know the floating-point model
13043         in use by the inferior.  Don't complain about being unable to
13044         determine the ABI of the inferior when we don't have one.
13045         (arm_extract_return_value): Support different floating-point models.
13046         (arm_store_return_value): Likewise.
13047         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13048         ARM_FLOAT_SOFT.
13049         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13050
13051 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13052
13053         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13054         of ``current_gdbarch''.
13055
13056 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13057
13058         * armnbsd-nat.c : ANSIfy all function declarations.
13059         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13060         (fetch_inferior_registers): Re-implement in terms of above.
13061         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13062         (store_inferior_registers): Re-implement in terms of above.
13063
13064 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13065
13066         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13067         kernel.
13068         * arm-linux-tdep.c: Likewise.
13069         * config/arm/tm-linux.h: Likewise.
13070
13071 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13072
13073         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13074         * config/arm/nbsd.mt (TM_FILE): Delete.
13075         * config/arm/tm-nbsd.h: Delete.
13076
13077 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13078
13079         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13080         Initialize CALL_DUMMY_LENGTH.
13081
13082 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13083
13084         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13085         function.
13086         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13087         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13088         defines one thing and that is incorrect for this port.
13089         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13090
13091 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13092
13093         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13094
13095 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13096
13097         * win32-nat.c (display_selector): New function. Displays information
13098         about the information returned by GetThreadSelectorEntry API function.
13099         (display_selectors): New function. Displays the infomation of
13100         the selector given as argument, or of CS, DS ans FS selectors
13101         if no argument is given.
13102         ( _initialize_inftarg): Add "w32" as info prefix command.
13103         Add "info w32 selector" as command calling display_selectors.
13104
13105 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13106
13107         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13108         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13109         if not defined.
13110
13111 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13112
13113         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13114
13115 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13116
13117         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13118         (arm_fix_call_dummy): Call it.
13119         (arm_call_dummy_breakpoint_offset): Delete.
13120         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13121         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13122
13123 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13124
13125         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13126         Default to func_frame_chain_valid.
13127         * gdbarch.h, gdbarch.c: Re-generate.
13128         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13129
13130 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13131
13132         * ppc-linux-nat.c: Update copyright.
13133         (fetch_register, store_register): Add tid parameter, don't compute
13134         tid here.
13135         (fetch_ppc_registers, store_ppc_registers): Add tid
13136         parameter. Pass it along to callees.
13137         (fetch_inferior_registers, store_inferior_registers): Compute tid
13138         here, and pass it to calleed functions.
13139         (fill_gregset, supply_fpregset): Clean up formatting.
13140
13141 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13142
13143         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13144         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13145
13146 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13147
13148         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13149         * gdbarch.c gdbarch.h: Regenerate.
13150         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13151         function.
13152         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13153         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13154         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13155
13156         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13157         * arm-tdep.c (arm_get_longjmp_target): New function.
13158         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13159         this to a positive value register arm_get_longjmp_target as the
13160         longjmp handler.
13161         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13162         (arm_linux_init_abi): Set up longjmp description in tdep.
13163         * armnbsd-nat.c (get_longjmp_target): Delete.
13164         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13165         description in tdep.
13166         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13167         (get_longjmp_target): Delete declaration.
13168         (GET_LONGJMP_TARGET): Delete.
13169         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13170         (GET_LONGJMP_TARGET): Delete.
13171
13172 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13173
13174         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13175         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13176         of ``current_gdbarch''.
13177
13178 2002-02-17  Tom Tromey  <tromey@redhat.com>
13179
13180         * cli/cli-cmds.c (compare_strings): New function.
13181         (complete_command): Only print each unique item once.
13182         * completer.h (complete_line): Declare.
13183         * completer.c (complete_line): New function.
13184         (line_completion_function): Use it.
13185
13186 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13187
13188         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13189         * gdbarch.h, gdbarch.c: Re-generate.
13190
13191 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13192
13193         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13194
13195 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13196
13197         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13198         * valops.c (value_arg_coerce): Don't take the address of a reference
13199         to convert an argument to a reference.
13200
13201 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13202
13203         * win32-nat.c (get_image_name): New function.
13204         (handle_load_dll): Use get_image_name function.
13205         (get_child_debug_event): Avoid registering debug events until possibly
13206         execed process is started.
13207         (child_create_inferior): Allow invocation via shell so that command
13208         line redirection, etc.  works ok.
13209         (_initialize_inftarg): Add new command: "set shell" to control whether
13210         a shell is used to start a process.
13211
13212 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13213
13214         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13215         instead of find_register_by_number.
13216         (cannot_store_register): Likewise.
13217
13218 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13219
13220         * dwarf2read.c: Replace fprintf (stderr, ...) by
13221         fprintf_unfiltered (gdb_stderr, ...).
13222
13223 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13224
13225         * gdbserver/gdbserver.1: Document --attach.
13226
13227 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13228
13229         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13230         descriptions.
13231         * arm-tdep.c (arm_default_arm_le_breakpoint)
13232         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13233         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13234         traditional breakpoint defines.
13235         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13236         (arm_gdbarch_init): Initialize new breakpoint variables.
13237         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13238         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13239         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13240         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13241         code out to ...
13242         (arm_netbsd_init_abi_common): ... here; new function.
13243         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13244         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13245         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13246         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13247
13248 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13249
13250         * arm-tdep.h (enum arm_abi): New enum.
13251         (struct gdbarch_tdep): New structure.
13252         (LOWEST_PC): Provide a default.
13253         (arm_gdbarch_register_os_abi): Declare new function.
13254         * arm-tdep.c (arm_abi_names): New array.
13255         (process_note_abi_tag_sections): New function.
13256         (get_elfosabi): New function.
13257         (arm_gdbarch_register_os_abi): New function.
13258         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13259         support for that ABI has been built in, then call the appropriate
13260         configuration routine.  Use gdbarch_num_regs() to get the number
13261         of registers.
13262         (arm_dump_tdep): New function.
13263         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13264         place-holder functions.
13265         (_initialize_arm_tdep): Register them.
13266         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13267
13268         * armnbsd-tdep.c: New file.
13269         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13270         * config/arm/nbsd.mt (TDEPFILES): Add it.
13271         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13272
13273         * armnbsd-nat.c: Include regcache.h.
13274         * Makefile.in (armnbsd-nat.o): Update dependency list.
13275
13276         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13277
13278 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13279
13280         * gdbserver/Makefile.in: Fix typos in target rules.
13281
13282 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13283
13284         Fix part of PR gdb/267.
13285         * linespec.c (find_methods): Handle constructors specially for now.
13286
13287 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13288
13289         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13290         handling.
13291         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13292         standard_coerce_float_to_double().
13293
13294 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13295
13296         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13297         GDBINIT_FILENAME.
13298
13299 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13300
13301         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13302         find_variant_by_name, because it confuses the multiarch
13303         framework. Return NULL if there isn't an architecture with the
13304         user supplied name, instead of forcing a different one without
13305         recording the change with the multiarch machinery.
13306         (find_variant_by_name): Delete.
13307
13308 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13309
13310         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13311         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13312
13313 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13314
13315         * stack.c (print_frame_info_base): When calling
13316         print_frame_info_listing_hook, set current_source_symtab.
13317
13318 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13319
13320         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13321         and remove unused $(INCLUDE_DIR).
13322         Add regcache.c to OBS.
13323         Add generated register protocol files to clean target.
13324         Update dependencies for new objects, obsolete old target code.
13325
13326         * gdbserver/linux-low.c: Remove all platform-specific code to
13327         new files.  Remove various dead code.  Update to use regcache
13328         functionality.
13329         * gdbserver/remote-utils.c (fromhex): Add return statement
13330         to quiet warning.
13331         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13332         constant.
13333         (input_interrupt): Add integer parameter to match prototype
13334         of a signal handler.
13335         (outreg): Use register_data ().
13336         (prepare_resume_reply): Use gdbserver_expedite_regs.
13337         * gdbserver/server.c (main): Dynamically allocate own_buf because
13338         PBUFSIZ is no longer constant.  Use registers_to_string () and
13339         registers_from_string ().
13340         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13341         for error (), fatal (), and warning ().  Update definition of
13342         PBUFSIZ to use regcache functionality.  Add include guard.
13343         * gdbserver/utils.c (fatal): Add missing ``const''.
13344         (warning): New function.
13345
13346         * regformats/regdat.sh: Include "regcache.h" in generated files.
13347         Provide init_registers () function.
13348         * regformats/regdef.h: Add prototype for set_register_cache ().
13349         Add include guard.
13350
13351         * gdbserver/linux-arm-low.c: New file.
13352         * gdbserver/linux-i386-low.c: New file.
13353         * gdbserver/linux-ia64-low.c: New file.
13354         * gdbserver/linux-m68k-low.c: New file.
13355         * gdbserver/linux-mips-low.c: New file.
13356         * gdbserver/linux-ppc-low.c: New file.
13357         * gdbserver/linux-sh-low.c: New file.
13358
13359         * gdbserver/regcache.c: New file.
13360         * gdbserver/regcache.h: New file.
13361
13362         * gdbserver/low-linux.c: Removed obsolete file.
13363
13364 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13365
13366         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13367         * config/i386/linux.mt: Likewise.
13368         * config/ia64/linux.mt: Likewise.
13369         * config/m68k/linux.mh: Likewise.
13370         * config/powerpc/linux.mh: Likewise.
13371         * config/mips/linux.mt: Likewise.
13372
13373         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13374
13375         * config/i386/i386lynx.mh: Mark gdbserver variables
13376         as (currently) obsolete for this target.
13377         * config/i386/nbsd.mt: Likewise.
13378         * config/i386/nbsdelf.mt: Likewise.
13379         * config/m32r/m32r.mt: Likewise.
13380         * config/m68k/m68klynx.mh: Likewise.
13381         * config/m68k/nbsd.mt: Likewise.
13382         * config/m68k/sun3os4.mh: Likewise.
13383         * config/mips/vr5000.mt: Likewise.
13384         * config/ns32k/nbsd.mt: Likewise.
13385         * config/pa/hppabsd.mh: Likewise.
13386         * config/pa/hppaosf.mh: Likewise.
13387         * config/powerpc/nbsd.mt: Likewise.
13388         * config/rs6000/rs6000lynx.mh: Likewise.
13389         * config/s390/s390.mt: Likewise.
13390         * config/s390/s390x.mt: Likewise.
13391         * config/sparc/sparclynx.mh: Likewise.
13392         * config/sparc/sun4os4.mh: Likewise.
13393         * config/i386/x86-64linux.mt: Likewise.
13394         * config/sparc/linux.mh: Likewise.
13395
13396 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13397
13398         * configure.tgt: Configure gdbserver only for known working
13399         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13400         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13401         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13402         * configure: Regenerated.
13403
13404 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13405
13406         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13407
13408         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13409         (default_gcore_mach): Just return 0, work around a problem in bfd.
13410         (default_gcore_target): OK to return NULL if exec_bfd is null.
13411         (make_mem_sec): Use a cast, avoid a warning.
13412
13413         * procfs.c (find_memory_regions_callback): Use a cast instead of
13414         calling host_pointer_to_address (which complains if
13415         sizeof (host pointer) != sizeof (target pointer)).
13416         (procfs_make_note_section): Avoid overflow in psargs string.
13417
13418         * procfs.c (procfs_make_note_section): Make the default
13419         implementation return an error.
13420
13421 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13422
13423         * procfs.c (procfs_make_note_section): Provide a default definition
13424         (for alpha-dec-osf4.0f). Fix typos.
13425
13426 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13427
13428         * linux-proc.c: Add include of regcache.h.
13429         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13430
13431 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13432
13433         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13434         * memattr.c (create_mem_region): Disallow useless empty region.
13435         Regions are half-open intervals, so allow [A..B) [B..C) as
13436         non-overlapping.
13437
13438 2002-02-13  Michael Chastain <mec@shout.net>
13439
13440         * defs.h: Kill CONST_PTR.
13441         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13442         * c-lang.c (c_builtin_types): Likewise.
13443         * ch-lang.c (ch_builtin_types): Likewise.
13444         * f-lang.c (f_builtin_types): Likewise.
13445         * language.c (unknown_builtin_types): Likewise.
13446         * m2-lang.c (m2_builtin_types): Likewise.
13447         * p-lang.c (pascal_builtin_types): Likewise.
13448         * scm-lang.c (c_builtin_types): Likewise.
13449
13450 2002-02-13  Keith Seitz  <keiths@redhat.com>
13451
13452         * arm-tdep.h (arm_get_next_pc): Add declaration.
13453
13454 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13455
13456         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13457         with other related struct-returning functions.
13458         (arm_extract_struct_value_address): New function.
13459         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13460         initialize float_format, double_format and long_double_format as
13461         appropriate to the endianness of the target.
13462         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13463         (arm_use_struct_convention): Delete declaration.
13464         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13465
13466 2002-02-13  Keith Seitz  <keiths@redhat.com>
13467
13468         * defs.h (core_addr_to_string_nz): New function.
13469
13470 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13471
13472         Apply missing bits of 2002-01-15 patch.
13473         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13474         (fill_fpregset): Use i387_fill_fsave.
13475
13476 2002-02-12  Keith Seitz  <keiths@redhat.com>
13477
13478         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13479         (core_addr_to_string_nz): New function.
13480
13481 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13482
13483         * arm-linux-nat.c: Really include arm-tdep.h.
13484         * config/arm/tm-linux.h (struct type, struct value): Declare.
13485
13486 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13487
13488         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13489         (gcore section): Ifdef for Solaris and Unixware only.
13490         (procfs_do_thread_registers): Unixware needs one lwpstatus
13491         per thread (not one prstatus or pstatus).
13492         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13493         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13494         once before iterating over threads.
13495
13496 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13497
13498         * arm-tdep.h: New file.
13499         * arm-tdep.c: Include arm-tdep.h.
13500         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13501         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13502         (arm_print_float_info, arm_register_type, convert_to_extended)
13503         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13504         (arm_extract_return_value, arm_register_name): Make static.
13505         (arm_software_single_step): Similarly.  Fix types in declaration.
13506         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13507         (arm_store_return_value, arm_store_struct_return): New functions.
13508         (arm_gdbarch_init): Register the above functions.  Also register
13509         call_dummy_start_offset, sizeof_call_dummy_words,
13510         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13511         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13512         max_register_virtual_size, register_size.  Set up
13513         prologue_cache.saved_regs here, rather than ...
13514         (_initialize_arm_tdep): ... here.
13515         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13516         declarations.
13517         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13518         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13519         (arm_print_float_info, arm_register_type, convert_to_extended)
13520         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13521         (arm_extract_return_value, arm_register_name): Delete declarations.
13522         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13523         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13524         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13525         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13526         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13527         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13528         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13529         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13530         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13531         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13532         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13533         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13534         interface.
13535         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13536         * remote-rdi.c remote-rdp.c: Likewise.
13537         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13538         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13539         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13540         definition.
13541
13542         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13543         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13544         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13545         from non-ARM_ prefixed definitions.
13546         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13547         all uses of above.
13548         * remote-rdi.c remote-rdp.c: Likewise.
13549         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13550
13551 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13552
13553         * arm-tdep.c (arm_frameless_function_invocation)
13554         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13555         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13556         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13557         (arm_pop_frame, arm_get_next_pc): Make static.
13558         (arm_gdbarch_init): Register above in gdbarch structure.
13559         (arm_read_fp): Renamed from arm_target_read_fp.
13560         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13561         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13562         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13563         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13564         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13565         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13566         (arm_pc_is_thumb_dummy): Delete declarations.
13567         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13568         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13569         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13570         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13571
13572 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13573
13574         * symtab.c (compare_search_syms): New function.
13575         (sort_search_symbols): New function.
13576         (search_symbols): Sort symbols after searching rather than
13577         before.
13578
13579 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13580
13581         * NEWS: Linux -> GNU/Linux.
13582
13583 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13584
13585         * gdbarch.sh: For for level one methods, disallow a definition
13586         when partially multi-arched.  Add comments explaining rationale.
13587         * gdbarch.h: Re-generate.
13588
13589 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13590
13591         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13592         multi-arch partial.
13593
13594 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13595
13596         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13597         field.  Use diff -u.
13598         * gdbarch.c: Re-generate.
13599
13600 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13601
13602         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13603         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13604         partial.
13605
13606 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13607
13608         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13609         multi-arch partial.
13610         (PUSH_ARGUMENTS): Switch to using predefault.
13611         * gdbarch.c: Regenerate.
13612
13613 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13614
13615         * valops.c (PUSH_ARGUMENTS): Delete definition.
13616         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13617         partial.  Default to default_push_arguments.
13618         * gdbarch.h, gdbarch.c: Regenerate.
13619
13620 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13621
13622         * defs.h (throw_exception): Rename return_to_top_level.  Update
13623         comments.
13624         * utils.c (error_stream, internal_verror, quit): Ditto.
13625         * top.c (throw_exception, catcher): Ditto.
13626         * sparclet-rom.c (sparclet_load): Ditto.
13627         * remote.c (interrupt_query, minitelnet): Ditto.
13628         * remote-sds.c (interrupt_query): Ditto.
13629         * remote-mips.c (mips_error, mips_kill): Ditto.
13630         * ocd.c (interrupt_query): Ditto.
13631         * monitor.c (monitor_interrupt_query): Ditto.
13632         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13633         * target.h: Update comment.
13634
13635         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13636
13637 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13638
13639         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13640         default_double_format.
13641         * gdbarch.h, gdbarch.c: Re-generate.
13642         * findvar.c (floatformat_unknown): Delete variable definition.
13643         * doublest.h (floatformat_unknown): Delete variable declaration.
13644
13645 2002-02-09  Jim Blandy  <jimb@redhat.com>
13646
13647         * stabsread.c (read_type): Add code to parse Sun's syntax for
13648         prototyped function types.
13649
13650 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13651
13652         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13653         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13654
13655 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13656
13657         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13658         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13659         now _initialize_xcoffsolib gets called again and overrides the
13660         commands from solib.c in a native configuration.
13661
13662 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13663
13664         * doublest.c (store_typed_floating): Don't try to return a value.
13665         Fixes PR gdb/290.
13666
13667 2002-02-08  Jim Blandy  <jimb@redhat.com>
13668
13669         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13670         is prototyped and has no arguments, print its argument list as
13671         `(void)'.
13672
13673 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13674
13675         * MAINTAINERS (write-after-approval): Add myself.
13676         (paper-trail): I've escaped!
13677
13678 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13679
13680         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13681         changes.
13682         (_initialize_check_for_gdb_ini): Ditto.
13683
13684 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13685
13686         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13687         xaprintf -> xasprintf.
13688
13689 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13690
13691         * win32-nat.c: Remove use of printf and sprintf functions.
13692
13693 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13694
13695         * arm-tdep.c (arm_frame_chain_valid): Make static.
13696         (arm_push_arguments): Likewise.
13697         (arm_gdbarch_init): New function.
13698         (_initialize_arm_tdep): Call it.
13699         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13700         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13701         (FRAME_CHAIN_VALID): Delete.
13702         (arm_frame_chain_valid): Delete declaration.
13703         (PUSH_ARGUMENTS): Delete.
13704         (arm_push_arguments): Delete declaration.
13705         (CALL_DUMMY_P): Delete.
13706
13707 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13708             Corinna Vinschen  <vinschen@redhat.com>
13709
13710         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13711         on builtin float types.
13712
13713 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13714
13715         * utils.c: Include <curses.h> before "bfd.h".
13716         * tui/tui-hooks.c: Likewise.
13717         * tui/tui.c: Likewise.
13718         * tui/tuiCommand.c: Likewise.
13719         * tui/tuiData.c: Likewise.
13720         * tui/tuiDataWin.c: Likewise.
13721         * tui/tuiDisassem.c: Likewise.
13722         * tui/tuiGeneralWin.c: Likewise.
13723         * tui/tuiIO.c: Likewise.
13724         * tui/tuiLayout.c: Likewise.
13725         * tui/tuiRegs.c: Likewise.
13726         * tui/tuiSource.c: Likewise.
13727         * tui/tuiSourceWin.c: Likewise.
13728         * tui/tuiStack.c: Likewise.
13729         * tui/tuiWin.c: Likewise.
13730
13731 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13732
13733         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13734         to include space for pseudoregs as well. Update loops accordingly.
13735         (sh_fp_frame_init_saved_regs): Ditto.
13736         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13737
13738 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13739
13740         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13741         Add Richard Earnshaw to Arm maintainers.
13742
13743 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13744
13745         * defs.h (warning_begin): Delete declaration.
13746
13747         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13748         Delete macro.
13749
13750 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13751
13752         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13753         Logic bug, remove misplaced else.
13754
13755 2002-02-07  Klee Dienes  <klee@apple.com>
13756
13757         * fork-inferior.c (fork_inferior): Add '!' to the list of
13758         characters that need to be quoted when building a string for the
13759         shell.  Quote '!' specifically with a backslash, since CSH chokes
13760         when trying to evaluate "str!str".
13761
13762 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13763
13764         * rdi-share/host.h: Only provide a typedef for bool if it is not
13765         defined.
13766
13767 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13768
13769         * breakpoint.h (enum bptype): Add new overlay event bp type.
13770         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13771
13772         * breakpoint.c (create_internal_breakpoint): New function.
13773         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13774         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13775         (create_thread_event_breakpoint): Ditto.
13776         (create_solib_event_breakpoint): Ditto.
13777         (create_overlay_event_breakpoint): New function.
13778         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13779         (update_breakpoints_after_exec): Delete and re-initialize
13780         overlay event breakpoints after an exec.  Add FIXME comment
13781         about longjmp breakpoint.
13782         (print_it_typical): Ignore overlay event breakpoints.
13783         (print_one_breakpoint): Ditto.
13784         (mention): Ditto.
13785         (bpstat_what): Do not stop for overlay event breakpoints.
13786         (delete_breakpoint): Don't delete overlay event breakpoints.
13787         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13788         (breakpoint_re_set): Re-create overlay event breakpoint.
13789
13790         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13791         (overlay_manual_command): Disable overlay breakpoints.
13792         (overlay_off_command): Disable overlay breakpoints.
13793
13794 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13795
13796         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13797         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13798         to here from config/tm-arm.h.
13799         (coff_sym_is_thumb): Make static.
13800         (arm_elf_make_msymbol_special): New function.
13801         (arm_coff_make_msymbol_special): New function.
13802         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13803         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13804         (coff_sym_is_thumb): Delete declaration.
13805         (arm_elf_make_msymbol_special): Declare.
13806         (arm_coff_make_msymbol_special): Declare.
13807         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13808         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13809
13810 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13811
13812         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13813
13814 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13815
13816         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13817         * gdbarch.c gdbarch.h: Regenerate.
13818         * arch-utils.c (default_print_float_info): New function.
13819         * arch-utils.h (default_print_float_info): Prototype it.
13820         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13821         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13822         (PRINT_FLOAT_INFO): Document it.
13823
13824         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13825         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13826         (PRINT_FLOAT_INFO): Define.
13827
13828 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13829
13830         * win32-nat.c (_initialize_check_for_gdb_ini):
13831         Add typecast to sprintf argument to suppress a warning.
13832
13833 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13834
13835         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13836         to allow easier handling of pass state.
13837         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13838         that gives exception name and address.
13839         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13840         and set last_sig value to ourstatus->value.sig. Some missing
13841         exceptions added.
13842         (child_continue): Correctly report continue_status.
13843         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13844         TARGET_SIGNAL_0 (new default value).
13845         (child_resume): consider sig argument passed to decide if
13846         the exception should be passed to debuggee or not.
13847
13848 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13849
13850         * regcache.c (fetch_register): Call target_fetch_register
13851         only if we don't call FETCH_PSEUDO_REGISTER.
13852         (store_register): Call target_store_register only if we
13853         don't call STORE_PSEUDO_REGISTER.
13854
13855 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13856
13857         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13858         ELF_MAKE_MSYMBOL_SPECIAL.
13859         * gdbarch.c, gdbarch.h: Regenerate.
13860         * arch-utils.c (default_make_msymbol_special): New function.
13861         * arch-utils.h (default_make_msymbol_special): Export.
13862         * elfread.c (elf_symtab_read): Compile use of
13863         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13864         multiarched.
13865         * coffread.c (coff_symtab_read): Ditto, for
13866         COFF_MAKE_MSYMBOL_SPECIAL.
13867
13868 2002-02-05  Jim Blandy  <jimb@redhat.com>
13869
13870         * solib-svr4.c (svr4_truncate_ptr): New function.
13871         (svr4_relocate_section_addresses): Do the address arithmetic with
13872         the appropriate truncation for target addresses, even when
13873         CORE_ADDR is larger than a target address.
13874
13875 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13876
13877         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13878         to (int *).
13879
13880 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13881
13882         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13883         code.
13884
13885 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13886
13887         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13888
13889 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13890
13891         * gdbserver/linux-low.c: Remove unused include files.
13892
13893 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13894
13895         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13896         (read_inferior_memory): Use it.
13897         (write_inferior_memory): Likewise.
13898
13899 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13900
13901         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13902         grubbing through sys_errlist.
13903
13904 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13905
13906         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13907
13908 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13909         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13910
13911 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13912
13913         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13914         (do_sfunc, set_cmd_sfunc): New functions.
13915
13916         * command.h (struct cmd_list_element): Add field func.
13917         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13918         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13919         * cli/cli-decode.h: Ditto.
13920
13921         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13922         (help_all, help_cmd_list): Ditto.
13923         (find_cmd, complete_on_cmdlist): Ditto.
13924         * top.c (execute_command): Ditto.
13925
13926         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13927         function.sfunc.
13928
13929         * infcmd.c (notice_args_read): Fix function signature.
13930
13931         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13932         * cli/cli-decode.c (add_set_cmd): Ditto.
13933         * utils.c (initialize_utils): Ditto.
13934         * maint.c (_initialize_maint_cmds): Ditto.
13935         * infrun.c (_initialize_infrun): Ditto.
13936         * demangle.c (_initialize_demangler): Ditto.
13937         * remote.c (add_packet_config_cmd): Ditto.
13938         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13939         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13940         * proc-api.c (_initialize_proc_api): Ditto.
13941         * kod.c (_initialize_kod): Ditto.
13942         * valprint.c (_initialize_valprint): Ditto.
13943         * top.c (init_main): Ditto.
13944         * infcmd.c (_initialize_infcmd): Ditto.
13945         * corefile.c (_initialize_core): Ditto.
13946         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13947         * arch-utils.c (initialize_current_architecture): Ditto.
13948         (_initialize_gdbarch_utils): Ditto.
13949         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13950
13951         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13952         * wince.c (_initialize_inftarg): Ditto.
13953         * symfile.c (_initialize_symfile): Ditto.
13954         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13955         * language.c (_initialize_language): Ditto.
13956         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13957
13958 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13959
13960         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13961
13962 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13963
13964         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13965         Add rules for building the register data files.
13966
13967 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13968
13969         * regformats/regdat.sh: Add braces to the definition of
13970         expedite_regs_${arch}.
13971
13972 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13973
13974         * regformats/regdef.h (struct reg): Add comment describing the
13975         requirements for offset and size fields.
13976
13977 2002-02-04  Andreas Schwab  <schwab@suse.de>
13978
13979         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13980         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13981
13982 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13983
13984         * gdbarch.sh (copyright): Update years in generated header.
13985         (SMASH_TEXT_ADDRESS): Add rule.
13986         * gdbarch.h, gdbarch.c: Re-generate.
13987         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13988         * dbxread.c: Likewise.
13989         * dwarfread.c: Likewise.
13990         * elfread.c: Likewise.
13991         * somread.c: Likewise.
13992
13993         * arm-tdep.c (arm_smash_text_address): New function.
13994         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13995
13996 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13997
13998         Add support for hardware watchpoints on win32 native.
13999         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14000         CONTEXT_DEBUG_REGISTERS.
14001         (dr variable): New variable. Static array containing a local copy
14002         of debug registers.
14003         (debug_registers_changed): New variable.  Reflects when debug registers
14004         are changed and need to be written to inferior.
14005         (debug_registers_used): New variable. Reflects when any debug register
14006         was set, used when new threads are created.
14007         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14008         i386-nat code.
14009         (thread_rec): Set dr array if id is the thread of current_event .
14010         (child_continue, child_resume): Change the debug registers for all
14011         threads if debug_registers_changed.
14012         (child_add_thread): Change the debug registers if debug_registers_used.
14013         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14014         Link nm.h to new nm-cygwin.h file.
14015         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14016         of hardware registers.
14017
14018 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14019
14020         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14021         Restore behavour broken by 2002-01-20 Andrew Cagney
14022         <ac131313@redhat.com> IEEE_FLOAT removal.
14023
14024 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14025
14026         * c-valprint.c (c_val_print): Pass a proper valaddr to
14027         cp_print_class_method.
14028         * valops.c (search_struct_method): If there is only one method
14029         and args is NULL, return that method.
14030
14031 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14032
14033         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14034         accessing tag_name directly.
14035
14036 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14037
14038         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14039         of accessing tag_name directly.
14040
14041 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14042
14043         PR gdb/280
14044         * gdbtypes.c (replace_type): New function.
14045         * gdbtypes.h (replace_type): Add prototype.
14046         * stabsread.c (read_type): Use replace_type.
14047
14048 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14049
14050         * Makefile.in (memattr.o): Add missing dependencies rule.
14051
14052 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14053
14054         * breakpoint.c (break_at_finish_command): Really export.
14055         (break_at_finish_at_depth_command): Ditto.
14056         (tbreak_at_finish_command): Ditto.
14057         * hppa-tdep.c: Include completer.h.
14058         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14059         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14060
14061 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14062
14063         * utils.c (do_write): New function.
14064         (error_stream): Rewrite combining the code from error_begin and
14065         verror.
14066         (verror): Rewrite using error_stream.
14067         (error_begin): Delete function.
14068
14069 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14070
14071         * utils.c (error_begin): Make static.
14072         * defs.h (error_begin): Delete declaration.
14073
14074         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14075         (decode_line_1): Use cplusplus_error instead of error_begin,
14076         cplusplus_hint and return_to_top_level.
14077         * coffread.c (coff_symfile_read): Use error instead of error_begin
14078         and return_to_top_level.
14079         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14080
14081 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14082
14083         * language.h (type_error, range_error): Make string parameter
14084         constant.
14085         * language.c (warning_pre_print): Delete extern declaration.
14086         * dwarfread.c (warning_pre_print): Ditto.
14087         * language.c (type_error, range_error): Rewrite to use verror and
14088         vwarning instead of warning_begin.
14089
14090 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14091
14092         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14093         (set_ignore_count): Move misplaced comment back where it belongs.
14094
14095 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14096
14097         * command.h (NO_FUNCTION): Delete macro.
14098         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14099         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14100         * tracepoint.c (_initialize_tracepoint): Ditto.
14101         * cli/cli-decode.c (add_set_cmd): Ditto.
14102         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14103
14104 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14105
14106         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14107         Update ``this'' pointer when calling virtual functions.
14108
14109 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14110
14111         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14112         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14113
14114 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14115
14116         * regformats/reg-arm.dat: New file.
14117         * regformats/reg-i386.dat: New file.
14118         * regformats/reg-ia64.dat: New file.
14119         * regformats/reg-m68k.dat: New file.
14120         * regformats/reg-mips.dat: New file.
14121         * regformats/reg-ppc.dat: New file.
14122         * regformats/reg-sh.dat: New file.
14123         * regformats/regdef.h: New file.
14124         * regformats/regdat.sh: New file.
14125
14126 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14127
14128         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14129         (arm_frame_args_address, arm_frame_locals_address): New functions.
14130         (arm_frame_num_args): New function.
14131         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14132         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14133         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14134
14135 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14136
14137         * breakpoint.c (break_at_finish_command): Export.
14138         (break_at_finish_at_depth_command): Export.
14139         (tbreak_at_finish_command): Export.
14140         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14141         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14142         "txbreak" commands, which are HPPA specific.
14143
14144         * printcmd.c (disassemble_command): Remove an ancient
14145         artifact of an old merge.
14146
14147         * symfile.h (enum overlay_debugging_state):
14148         Define enum constant values for overlay mode.
14149         * symfile.c (overlay_debugging): Use enums instead of literals.
14150         (overlay_is_mapped, overlay_auto_command,
14151         overlay_manual_command): Ditto.
14152
14153         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14154         breakpoint_here_p, breakpoint_inserted_here_p,
14155         breakpoint_thread_match, bpstat_stop_status,
14156         describe_other_breakpoints, check_duplicates, clear_command):
14157         Coding standard fixes.
14158
14159         * target.c (target_xfer_memory): Add spaces, coding standard.
14160         (do_xfer_memory): Add missing line to trust-readonly
14161         code: check bfd SEC_READONLY flag for section.
14162
14163 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14164
14165         * PROBLEMS: Fix typo, 5.1->5.1.1.
14166
14167 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14168
14169         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14170         data symbols, since we search based on textlow and texthigh.
14171         (find_pc_sect_symtab): Likewise.
14172
14173 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14174
14175         * defs.h (vwarning): Declare.
14176         * utils.c (vwarning): New function.
14177         (warning): Call vwarning.
14178         (warning_begin): Delete function.
14179
14180         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14181         the warning message.
14182         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14183         warning_begin.
14184
14185 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14186
14187         * NEWS: Mention "set trust-readonly-sections" command.
14188         Mention generate-core-file command.
14189
14190 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14191
14192         * target.c: New command, "set trust-readonly-sections on".
14193         (do_xfer_memory): Honor the suggestion to trust readonly sections
14194         by reading them from the object file instead of from the target.
14195         (initialize_targets): Register command "set trust-readonly-sections".
14196
14197 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14198
14199         * parse.c (target_map_name_to_register): Simplify, search regs and
14200         pseudo-regs using a single loop.
14201
14202 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14203
14204         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14205
14206 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14207
14208         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14209         * config/i386/i386v42mp.mh: Add i387-nat.o .
14210         * i386v4-nat.c: Include i387-nat.h.
14211         (supply_fpregset): Use i387_supply_fsave.
14212         (fill_fpregset): Use i387_fill_fsave.
14213
14214 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14215
14216         * arm-tdep.c (arm_call_dummy_words): Define.
14217         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14218         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14219         (CALL_DUMMY_WORDS): Define.
14220         (arm_call_dummy_words): Declare.
14221         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14222         (arm_linux_call_dummy_words): Declare.
14223
14224 2002-01-30  Andreas Schwab  <schwab@suse.de>
14225
14226         * m68klinux-nat.c: Fix last change to use regcache_collect
14227         instead of referencing registers[] directly.
14228
14229 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14230
14231         * parse.c (target_map_name_to_register): Delete code wrapped in
14232         #ifdef REGISTER_NAME_ALIAS_HOOK.
14233
14234 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14235
14236         * regcache.c (legacy_read_register_gen): Need to be able to
14237         read pseudo-register as well as real register.
14238         (legacy_write_register_gen): Ditto.
14239
14240 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14241
14242         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14243         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14244         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14245         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14246         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14247         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14248         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14249         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14250         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14251         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14252         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14253         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14254         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14255         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14256         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14257         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14258         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14259         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14260         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14261         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14262
14263 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14264
14265         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14266         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14267         (initialize_current_architecture): Update target_byte_order using
14268         information from BFD.
14269         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14270         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14271
14272 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14273
14274         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14275         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14276
14277         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14278         #ifdef INVALID_FLOAT.
14279         * infcmd.c (do_registers_info): Ditto.
14280         * values.c (unpack_double): Ditto.  Add comment.
14281
14282         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14283         already commented out.
14284
14285 2002-01-26  Andreas Schwab  <schwab@suse.de>
14286
14287         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14288         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14289         registers and add support for PTRACE_GETREGS.
14290
14291 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14292
14293         GDB 5.1.1 released from 5.1 branch.
14294         * NEWS: Add 5.1.1 news.
14295         * README: Sync with 5.1 branch.
14296
14297 2002-01-23  Fred Fish  <fnf@redhat.com>
14298
14299         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14300         stabstring on initial malloc.  Reallocing will copy it for us,
14301         if necessary.
14302
14303 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14304
14305         * Makefile.in (hpread_h): Delete.
14306         (HFILES_NO_SRCDIR): Remove hpread.h.
14307         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14308         (hpread.o): Update dependencies.
14309         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14310
14311         * hp-psymtab-read.c: Remove file.
14312         * hp-symtab-read.c: Remove file.
14313         * hpread.h: Remove file.
14314
14315         * hpread.c: Merge all contents of hp-psymtab-read.c,
14316         hp-symtab-read.c and hpread.h into this file, as it was prior to
14317         January 1999.
14318
14319         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14320         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14321         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14322         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14323
14324 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14325
14326         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14327         fill_gregset): Call gdbarch_tdep() just once, assign result to
14328         variable and use that, instead of calling the function several
14329         times.
14330
14331 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14332
14333         * configure.host: Accept sparcv9 as alias for sparc64.
14334         * configure.tgt: Likewise.
14335
14336 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14337
14338         * solib-aix5.c (build_so_list_from_mapfile)
14339         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14340         arguments is not reversed.
14341         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14342         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14343
14344 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14345
14346         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14347         modified version of obsolete sh_fetch_pseudo_register.
14348         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14349         (sh4_register_read): New function.
14350         (sh_pseudo_register_write): New function. Renamed and modified
14351         version of obsolete sh_store_pseudo_register.
14352         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14353         (sh4_register_write): New function.
14354         (sh_gdbarch_init): Remove setting of gdbarch function
14355         fetch_pseudo_register and store_pseudo_register. Remove setting of
14356         register_convert_to_raw, register_convert_to_virtual,
14357         register_convertible.
14358         (sh_sh4_register_convertible): Delete. No longer needed. All is
14359         taken care by architecture specific functions
14360         register_read/register_write.
14361         (sh_sh4_register_convert_to_virtual): Make static.
14362         (sh_sh4_register_convert_to_raw): Ditto.
14363
14364 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14365
14366         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14367         (floatformat_is_nan, floatformat_mantissa): Ditto.
14368
14369         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14370         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14371         builtin_type_ieee_double_little,
14372         builtin_type_ieee_double_littlebyte_bigword,
14373         builtin_type_m68881_ext, builtin_type_i960_ext,
14374         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14375         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14376         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14377         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14378
14379 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14380
14381         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14382         parameter.  Set frameless flag if it exists and depended of
14383         whether the scanned function is frameless or not.
14384         (xstormy16_skip_prologue): If function is frameless, return
14385         result of xstormy16_scan_prologue().
14386         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14387         call.
14388
14389 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14390
14391         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14392         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14393         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14394         sh_sh4_register_byte, sh_sh4_register_raw_size,
14395         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14396         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14397         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14398         sh_store_pseudo_register, sh_do_pseudo_register): Call
14399         gdbarch_tdep() just once, assign result to variable and use that,
14400         instead of calling the function several times.
14401
14402 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14403
14404         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14405         macros instead of LAST_FPU_CTRL_REGNUM.
14406         (store_register): Likewise.
14407
14408 2002-01-21  Jim Blandy  <jimb@redhat.com>
14409
14410         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14411         is up-to-date before running the program, not just when a program
14412         exits.
14413
14414 2002-01-21  Fred Fish  <fnf@redhat.com>
14415
14416         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14417         when we have found all instructions we are looking for.
14418
14419 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14420
14421         * arm-tdep.c (arm_register_name): New function.
14422         (arm_registers_names): Make static.
14423         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14424         (arm_register_name): Declare.
14425         (REGISTER_NAME): Use it.
14426
14427 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14428             Kevin Buettner  <kevinb@redhat.com>
14429
14430         Convert arm targets to new FRAME interface.
14431         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14432         (arm_frame_find_save_regs): Delete.
14433         (arm_frame_init_saved_regs): New.
14434         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14435         Allocate extra_info as required.  Convert all uses of fsr.regs
14436         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14437         to use extra_info.
14438         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14439         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14440         (check_prologue_cache, save_prologue_cache): Likewise.
14441         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14442         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14443         (FRAME_FIND_SAVED_REGS): Delete.
14444         (arm_frame_find_saved_regs): Delete prototype.
14445         (arm_frame_init_saved_regs): New prototype.
14446         (FRAME_INIT_SAVED_REGS): Define.
14447
14448 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14449
14450         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14451
14452 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14453
14454         From Jeff Law <law@redhat.com>:
14455         * infttrace.c: Include <sys/pstat.h>.
14456         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14457         exec file if the ttrace equivalent fails.
14458
14459 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14460
14461         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14462         (closeLogFile): Ditto.
14463
14464 2002-01-20  Michael Chastain  <mec@shout.net>
14465
14466         * top.c (print_gdb_version): Bump copyright year to 2002.
14467
14468 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14469
14470         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14471         Zannoni and Eli Zaretskii.
14472
14473 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14474
14475         * buildsym.c: Update copyright years.
14476         * c-typeprint.c: Likewise.
14477         * dwarf2read.c: Likewise.
14478         * f-typeprint.c: Likewise.
14479         * gdbtypes.c: Likewise.
14480         * gdbtypes.h: Likewise.
14481         * hp-symtab-read.c: Likewise.
14482         * hpread.c: Likewise.
14483         * mdebugread.c: Likewise.
14484         * p-typeprint.c: Likewise.
14485
14486 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14487
14488         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14489         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14490         byte-order selectable.
14491         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14492         * arch-utils.c: Ditto.
14493         (set_endian): Ditto.
14494         (set_endian_from_file): Ditto.
14495         * gdbserver/low-sim.c (create_inferior): Ditto.
14496         * gdbarch.sh: Ditto.
14497         * gdbarch.h: Re-generate.
14498         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14499         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14500         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14501         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14502         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14503         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14504         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14505         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14506         macro definition.
14507         * config/mips/tm-wince.h: Remove #undef of macro
14508         TARGET_BYTE_ORDER_SELECTABLE.
14509         * config/sh/tm-wince.h: Ditto.
14510
14511 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14512
14513         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14514         member function fields.  Add accessor macro
14515         TYPE_FN_FIELD_ARTIFICIAL.
14516         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14517         * c-typeprint.c (c_type_print_base): Skip artificial member
14518         functions.
14519
14520 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14521
14522         * f-typeprint.c: Delete unused function f_type_print_args.
14523         * p-typeprint.c: Delete unused function pascal_type_print_args.
14524
14525 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14526
14527         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14528         comment.  Add ``artificial'' to ``union field_location''.
14529
14530         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14531
14532         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14533         * mdebugread.c (parse_symbol): Likewise.
14534         * stabsread.c (define_symbol): Likewise.
14535         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14536         initializing TYPE_FIELD_BITPOS to n (obsolete).
14537         (hpread_doc_function_type): Likewise.
14538         * hpread.c (hpread_function_type): Likewise.
14539
14540 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14541
14542         * configure.in (host_makefile_frag): Only require a host makefile
14543         fragment when a native build.
14544         * configure: Re-generate.
14545
14546 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14547
14548         * doublest.h (floatformat_from_type): Declare.
14549         * doublest.c (floatformat_from_type): New function.
14550         (convert_typed_floating): Use.
14551
14552         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14553         call to function floatformat_from_type.
14554
14555         * gdbarch.sh (IEEE_FLOAT): Delete.
14556         * gdbarch.h, gdbarch.c: Re-generate.
14557         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14558         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14559         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14560         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14561         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14562         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14563         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14564         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14565         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14566         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14567         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14568         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14569
14570         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14571         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14572         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14573         * sh-tdep.c (sh_gdbarch_init): Ditto.
14574         * mips-tdep.c (mips_gdbarch_init): Ditto.
14575         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14576         * cris-tdep.c (cris_gdbarch_init): Ditto.
14577
14578 2002-01-20  Jiri Smid  <smid@suse.cz>
14579
14580         * configure.host, configure.tgt: Support x86-64.
14581         * NEWS: Note new target x86-64.
14582
14583         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14584         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14585         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14586         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14587         x86-64-linux-nat.o): Fix dependencies.
14588
14589 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14590
14591         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14592         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14593         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14594         * config/sparc/xm-sun4os4.h: Delete file.
14595         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14596
14597 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14598
14599         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14600         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14601         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14602         * config/i386/i386lynx.mh (XM_FILE): Delete.
14603         * config/rs6000/xm-rs6000ly.h: Delete file.
14604         * config/sparc/xm-sparclynx.h: Delete file.
14605         * config/m68k/xm-m68klynx.h: Delete file.
14606         * config/i386/xm-i386lynx.h: Delete file.
14607         * config/xm-lynx.h: Delete file.
14608         * config/djgpp/fnchange.lst: Update.
14609
14610 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14611
14612         * alpha-tdep.c (alpha_register_byte): New function.
14613         (alpha_register_raw_size): Ditto.
14614         (alpha_register_virtual_size): Ditto.
14615         (alpha_skip_prologue_internal): Renamed from
14616         alpha_skip_prologue.
14617         (alpha_skip_prologue): New version that calls
14618         alpha_skip_prologue_internal.
14619         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14620         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14621         second argument from alpha_skip_prologue.
14622         (REGISTER_BYTE): Use alpha_register_byte.
14623         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14624         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14625         (FRAMELESS_FUNCTION_INVOCATION): Use
14626         generic_frameless_function_invocation_not.
14627         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14628         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14629
14630 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14631
14632         * config/mips/xm-news-mips.h: Delete file.
14633         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14634
14635         * config/m88k/xm-m88k.h: Delete file.
14636         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14637         * config/m88k/xm-delta88v4.h: Ditto.
14638         * config/m88k/xm-delta88.h: Ditto.
14639
14640         * config/alpha/xm-fbsd.h: Delete file.
14641         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14642
14643         * config/sparc/xm-sparc.h: Delete file.
14644         * Makefile.in (xm-sun4os4.h): Delete dependency.
14645         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14646         * config/sparc/xm-sun4os4.h: Ditto.
14647         * config/sparc/xm-linux.h: Ditto.
14648
14649         * config/i386/xm-windows.h: Delete file.
14650
14651 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14652
14653         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14654         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14655
14656 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14657
14658         * alpha-tdep.c (alpha_call_dummy_words): New.
14659         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14660         (CALL_DUMMY_P): Define.
14661         (CALL_DUMMY_WORDS): Define.
14662         (SIZEOF_CALL_DUMMY_WORDS): Define.
14663
14664 2002-01-19  Per Bothner  <per@bothner.com>
14665
14666         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14667         isn't NULL, which can happen with some gcj-3.x-produced code.
14668
14669 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14670
14671         * alpha-tdep.c (alpha_register_virtual_type): New function.
14672         (alpha_init_frame_pc_first): Ditto.
14673         (alpha_fix_call_dummy): Ditto.
14674         (alpha_store_struct_return): Ditto.
14675         (alpha_extract_struct_value_address): Ditto.
14676         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14677         alpha_register_virtual_type.
14678         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14679         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14680         alpha_extract_struct_value_address.
14681         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14682         (INIT_FRAME_PC): Use init_frame_pc_noop.
14683         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14684
14685 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14686
14687         * i386gnu-nat.c: Include "i386-tdep.h".
14688         (fetch_fpregs): Simplify code dealing with uninitialized floating
14689         point states such that it doesn't require FP7_REGNUM.
14690
14691 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14692
14693         * alpha-tdep.c (frame_extra_info): New.
14694         (alpha_find_saved_regs): Make static.  Use
14695         frame->extra_info.
14696         (alpha_frame_init_saved_regs): New function.
14697         (alpha_frame_saved_pc): Use frame->extra_info.
14698         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14699         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14700         (init_extra_frame_info): Rename to...
14701         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14702         (alpha_print_extra_frame_info): New function.
14703         (alpha_frame_locals_address): Ditto.
14704         (alpha_frame_args_address): Ditto.
14705         (alpha_pop_frame): Use frame->extra_info.
14706         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14707         alpha_frame_args_address.
14708         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14709         (alpha_find_saved_regs): Remove prototype.
14710         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14711         (EXTRA_FRAME_INFO): Remove.
14712         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14713         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14714
14715 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14716
14717         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14718         (alpha_cannot_fetch_register): Ditto.
14719         (alpha_cannot_store_register): Ditto.
14720         (alpha_register_convertible): Ditto.
14721         (alpha_use_struct_convention): Ditto.
14722         * config/alpha/tm-alpha.h: Update copyright years.
14723         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14724         (INNER_THAN): Use core_addr_lessthan.
14725         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14726         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14727         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14728         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14729         (FRAME_CHAIN): Remove unnecessary cast.
14730
14731 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14732
14733         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14734         obsolete.
14735
14736 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14737
14738         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14739         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14740         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14741         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14742         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14743         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14744         * x86-64-linux-nat.c: Ditto.
14745
14746 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14747
14748         * alpha-tdep.c (alpha_register_name): New function.
14749         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14750         (REGISTER_NAME): Define.
14751
14752 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14753
14754         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14755
14756 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14757
14758         * alpha-tdep.c: Update copyright years.
14759         (alpha_next_pc): New function.
14760         (alpha_software_single_step): Ditto.
14761         * config/alpha/tm-alpha.h: Add prototype for
14762         alpha_software_single_step.
14763
14764 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14765
14766         * alphabsd-nat.c: Update copyright years.
14767         (fill_gregset): Use regcache_collect.
14768         (fill_fpregset): Likewise.
14769         (fetch_inferior_registers): Only fetch integer registers
14770         if requested to do so.
14771         (store_inferior_registers): Only store integer registers
14772         if requested to do so.
14773
14774 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14775
14776         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14777         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14778         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14779         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14780         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14781         * config/arm/linux.mh (XDEPFILES): Delete.
14782         * config/arm/nbsd.mh (XDEPFILES): Delete.
14783         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14784         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14785         * config/i386/i386m3.mh (XDEPFILES): Delete.
14786         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14787         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14788         * config/i386/fbsd.mh (XDEPFILES): Delete.
14789         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14790         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14791         * config/i386/i386v4.mh (XDEPFILES): Delete.
14792         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14793         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14794         * config/i386/i386aix.mh (XDEPFILES): Delete.
14795         * config/i386/go32.mh (XDEPFILES): Delete.
14796         * config/i386/cygwin.mh (XDEPFILES): Delete.
14797         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14798         * config/i386/i386mach.mh (XDEPFILES): Delete.
14799         * config/i386/i386v32.mh (XDEPFILES): Delete.
14800         * config/i386/linux.mh (XDEPFILES): Delete.
14801         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14802         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14803         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14804         * config/i386/i386sco.mh (XDEPFILES): Delete.
14805         * config/i386/i386v.mh (XDEPFILES): Delete.
14806         * config/i386/nbsd.mh (XDEPFILES): Delete.
14807         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14808         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14809         * config/i386/symmetry.mh (XDEPFILES): Delete.
14810         * config/i386/obsd.mh (XDEPFILES): Delete.
14811         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14812         * config/ia64/linux.mh (XDEPFILES): Delete.
14813         * config/ia64/aix.mh (XDEPFILES): Delete.
14814         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14815         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14816         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14817         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14818         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14819         * config/m68k/linux.mh (XDEPFILES): Delete.
14820         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14821         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14822         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14823         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14824         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14825         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14826         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14827         * config/m88k/delta88.mh (XDEPFILES): Delete.
14828         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14829         * config/m88k/m88k.mh (XDEPFILES): Delete.
14830         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14831         * config/mips/linux.mh (XDEPFILES): Delete.
14832         * config/mips/irix6.mh (XDEPFILES): Delete.
14833         * config/mips/irix5.mh (XDEPFILES): Delete.
14834         * config/mips/irix4.mh (XDEPFILES): Delete.
14835         * config/mips/irix3.mh (XDEPFILES): Delete.
14836         * config/mips/decstation.mh (XDEPFILES): Delete.
14837         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14838         (NATDEPFILES): Move core-aout.o to here.
14839         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14840         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14841         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14842         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14843         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14844         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14845         * config/pa/hpux11.mh (XDEPFILES): Delete.
14846         * config/powerpc/aix.mh (XDEPFILES): Delete.
14847         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14848         * config/powerpc/linux.mh (XDEPFILES): Delete.
14849         * config/romp/rtbsd.mh: Rename XDEPFILES.
14850         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14851         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14852         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14853         * config/s390/s390.mh (XDEPFILES): Delete.
14854         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14855         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14856         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14857         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14858         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14859         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14860         * config/sparc/linux.mh (XDEPFILES): Delete.
14861         * config/vax/vaxult.mh (XDEPFILES): Delete.
14862         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14863         * Makefile.in (DEPFILES): Remove XDEPFILES.
14864
14865 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14866
14867         * utils.c (internal_verror): Fix comments, default is yes not no.
14868         Update queries to match.  Default to quit and dump core.
14869
14870 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14871
14872         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14873         copyright.
14874         * defs.h, event-top.c, gdbcmd.h: Ditto.
14875         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14876         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14877         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14878         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14879         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14880         * mi/mi-main.c:Ditto.
14881
14882         * stack.c, symfile.c: Update copyright.
14883
14884 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14885
14886         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14887         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14888         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14889         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14890
14891 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14892
14893         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14894         * gdbserver/low-lynx.c (myattach): Likewise.
14895         * gdbserver/low-nbsd.c (myattach): Likewise.
14896         * gdbserver/low-sim.c (myattach): Likewise.
14897         * gdbserver/low-sparc.c (myattach): Likewise.
14898         * gdbserver/low-sun3.c (myattach): Likewise.
14899
14900         * gdbserver/low-linux.c (myattach): New function.
14901
14902         * gdbserver/server.c (attach_inferior): New function.
14903         (main): Handle "--attach".
14904
14905 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14906
14907         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14908         maintainer.
14909
14910 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14911
14912         * c-typeprint.c (is_type_conversion_operator): Add additional
14913         check for non-conversion operators.
14914
14915 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14916
14917         * linux-proc.c: Add "info proc" command, a la procfs.c.
14918         (read_mapping): New function, abstract and re-use code.
14919         (linux_find_memory_regions): Use new func read_mapping.
14920         (linux_info_proc_cmd): New function, implement "info proc".
14921         (_initialize_linux_proc): Add new command "info proc".
14922
14923 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14924
14925         * symfile.c (generic_load): Use bfd_map_over_sections method
14926         instead of manipulating bfd structure members directly.
14927         (add_section_size_callback): New function, bfd sections callback
14928         used by generic_load.
14929         (load_sections_callback): New function, bfd sections callback
14930         used by generic_load.
14931
14932 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14933
14934         [Based on work by Jim Blandy]
14935         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14936         (builtin_type_vec128): Export.
14937         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14938         types.
14939         (builtin_type_vec128): New builtin type for 128 bit vector
14940         registers.
14941         (build_gdbtypes): Initialize builtin_type_v16qi and
14942         builtin_type_v8hi. Create the vec128 register builtin type
14943         structure.
14944         (build_builtin_type_vec128): New function.
14945         (_initialize_gdbtypes): Register builtin_type_v16qi and
14946         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14947         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14948         AltiVec register to new builtin type.
14949
14950 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14951
14952         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14953         to make_cv_type.
14954
14955 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14956
14957         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14958         CLEAN_UP_REGISTER_VALUE.
14959         * regcache.c (supply_register): Update only call.
14960
14961 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14962
14963         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14964         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14965         a29k-*-vxworks* targets as obsolete.
14966
14967 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14968
14969         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14970         until we can resolve portability issues.
14971         * gregset.h: Remove references to fpxregs.
14972         * gcore.c (gcore_command): Initialize note_sec to NULL.
14973
14974 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14975
14976         * signals.c (target_signal_to_name): Rewrite.  Only use
14977         signals[].name when in bounds and non-NULL.
14978
14979 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14980
14981         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14982         * signals.c (target_signal_to_name): Verify that SIG is within the
14983         bounds of the signals array.
14984
14985 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14986
14987         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14988
14989 2002-01-13  Keith Seitz  <keiths@redhat.com>
14990
14991         * stack.c (print_frame_info_base): Print the frame's pc
14992         only if when print_frame_info_listing_hook is not defined.
14993
14994 2002-01-13  Keith Seitz  <keiths@redhat.com>
14995
14996         * varobj.c (varobj_set_value): Make sure that there were no
14997         errors evaluating the object before attempting to set its
14998         value.
14999         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15000         so this offset adjustment is no longer necessary.
15001         (create_child): Don't set the error flag if the child is
15002         a CPLUS_FAKE_CHILD.
15003         (value_of_child): If value_fetch_lazy fails, return NULL
15004         so that callers will be notified that an error occurred.
15005         (c_value_of_variable): Delay check of variable's validity
15006         until later. We actually want all structs and unions to have
15007         the value "{...}".
15008         Do not return "???" for variables which could not be evaluated.
15009         This error condition must be returned to the caller so that it
15010         can get the error condition from gdb.
15011         (cplus_name_of_child): Adjust index for vptr before figuring
15012         out the name of the child.
15013         (cplus_value_of_child): If a child's (real) parent is not valid,
15014         don't even bother trying to give a value for it. Just return
15015         an error. Change all instances in this function.
15016         (cplus_type_of_child): If our parent is one of the "fake"
15017         parents, we need to get at the type of the real parent, and
15018         derive the child's true type using this information.
15019
15020 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15021
15022         From 2002-01-09 John Marshall <johnm@falch.net>:
15023         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15024         sources.redhat.com, and tweak some related URLs which had
15025         suffered from linkrot.
15026
15027 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15028
15029         From Jeff law:
15030         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15031         structures passed in registers.
15032
15033 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15034
15035         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15036         white space which prevented compilation.  Reported by DSK
15037         <dsk@student.unsw.edu.au>.
15038
15039 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15040
15041         * symfile.c (build_section_addr_info_from_section_tab):
15042         Use bfd access method instead of manipulating bfd directly.
15043         (syms_from_objfile): Ditto.
15044         (simple_overlay_update_1): Ditto.
15045         (simple_overlay_update): Ditto.
15046         (generic_load): Ditto.
15047         (overlay_unmapped_address): FIXME comment, bfd access methods.
15048         (sections_overlap): FIXME comment, bfd access methods.
15049         (pc_in_mapped_range): FIXME comment, bfd access methods.
15050         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15051         (section_is_mapped): FIXME comment, bfd access methods.
15052         (section_is_overlay): FIXME comment, bfd access methods.
15053
15054         * symfile.c (generic_load): Whitespace and long line cleanups.
15055         Remove duplicate variable, change several local variables to
15056         more appropriate data types.
15057         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15058
15059 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15060
15061         From Peter Schauer:
15062         * language.c (longest_local_hex_string_custom): Use phex_nz to
15063         convert NUM to a hex string.
15064
15065 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15066
15067         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15068         the function.
15069         Update Copyright year.
15070
15071 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15072
15073         * language.c (longest_raw_hex_string): Delete unused function.
15074
15075 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15076
15077         * MAINTAINERS (write-after-approval): Add myself.
15078         * dwarf2read.c (read_tag_string_type): Handling of
15079         DW_AT_byte_size.
15080         (read_tag_string_type): FORTRAN fix to prevent propagation of
15081         first string size.
15082         (set_cu_language): Handling of DW_LANG_Fortran95
15083
15084 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15085
15086         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15087         GETPID(inferior_ptid).
15088         (store_inferior_registers): Likewise.
15089
15090 2002-01-10  Jason Merrill  <jason@redhat.com>
15091
15092         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15093         Fix DW_OP_minus.
15094
15095 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15096
15097         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15098         and bfd/elf32-sh-nbsd.c.
15099
15100 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15101
15102         * NEWS: Mention --pid and corefile/proc-id behavior change.
15103
15104         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15105         * gcore.c: Include cli/cli-decode.h instead of command.h.
15106
15107         * main.c (captured_main): Add new command line option "--pid".
15108         If the second command line argument (following the symbol-file)
15109         begins with a digit, try to attach to it before trying to open
15110         it as a corefile.
15111         (print_gdb_help): Document the "--pid" argument.
15112
15113 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15114
15115         * completer.c (command_completer): New function.
15116
15117         * completer.h <command_completer>: Add prototype.
15118
15119         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15120         completer for the "help" command.
15121
15122 2002-01-09  Jason Merrill  <jason@redhat.com>
15123
15124         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15125
15126 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15127
15128         * i386-linux-nat.c (fill_fpxregset): Make global.
15129         (store_fpxregset): Ditto.
15130
15131         * gregset.h (gdb_fpxregset_t): Define.
15132         (supply_fpxregset): Prototype.
15133         (fill_fpxregset): Prototype.
15134
15135         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15136
15137 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15138
15139         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15140         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15141         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15142
15143 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15144
15145         * MAINTAINERS: Update target maintainer rules so that any
15146         Maintainer can approve a tested patch for a maintenance-only
15147         target.
15148
15149 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15150
15151         * MAINTAINERS (write-after-approval): Add myself.
15152
15153         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15154         IN_SIGTRAMP.
15155
15156 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15157
15158         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15159         real name of the executable, rather than the /proc name.
15160
15161 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15162
15163         Implement a "generate-core-file" command in gdb, save target state.
15164         * gcore.c: New file.  Implement new command 'generate-core-file'.
15165         Save a corefile image of the current state of the inferior.
15166         * linux-proc.c: Add linux-specific code for saving corefiles.
15167         * target.h (struct target_ops): Add new target vectors for saving
15168         corefiles; to_find_memory_regions and to_make_corefile_notes.
15169         (target_find_memory_regions): New macro.
15170         (target_make_corefile_notes): New macro.
15171         * target.c (update_current_target): Inherit new target methods.
15172         (dummy_find_memory_regions): New place-holder method.
15173         (dummy_make_corefile_notes): New place-holder method.
15174         (init_dummy_target): Initialize new dummy target vectors.
15175         * exec.c (exec_set_find_memory_regions): New function.
15176         Allow the exec_ops vector for memory regions to be taken over.
15177         (exec_make_note_section): New function, target vector method.
15178         * defs.h (exec_set_find_memory_regions): Export prototype.
15179         * procfs.c (proc_find_memory_regions): New function, corefile method.
15180         (procfs_make_note_section): New function, corefile method.
15181         (init_procfs_ops): Set new target vector pointers.
15182         (find_memory_regions_callback): New function.
15183         (procfs_do_thread_registers): New function.
15184         (procfs_corefile_thread_callback): New function.
15185         * sol-thread.c (sol_find_memory_regions): New function.
15186         (sol_make_note_section): New function.
15187         (init_sol_thread_ops): Initialize new target vectors.
15188         * inftarg.c (inftarg_set_find_memory_regions): New function.
15189         Allow to_find_memory_regions vector to be taken over.
15190         (inftarg_set_make_corefile_notes): New function.
15191         Allow to_make_corefile_notes vector to be taken over.
15192         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15193         interface layer if not target_has_execution (may be a corefile).
15194         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15195         * config/sparc/sun4sol2.mh: Ditto.
15196         * config/alpha/alpha-linux.mh: Ditto.
15197         * config/arm/linux.mh: Ditto.
15198         * config/i386/x86-64linux.mh: Ditto.
15199         * config/ia64/linux.mh: Ditto.
15200         * config/m68k/linux.mh: Ditto.
15201         * config/mips/linux.mh: Ditto.
15202         * config/powerpc/linux.mh: Ditto.
15203         * config/sparc/linux.mh: Ditto.
15204
15205 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15206
15207         * arm-linux-nat.c: Remove references to regcache.c internal data
15208         (registers[] and register_valid[]).
15209
15210 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15211
15212         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15213         so that attaching to a pid will automatically read the process's
15214         symbol file and shlibs.
15215         * Makefile.in: Add rule for linux-proc.o.
15216         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15217         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15218         * config/arm/linux.mh: Ditto.
15219         * config/i386/linux.mh: Ditto.
15220         * config/i386/x86-64linux.mh: Ditto.
15221         * config/ia64/linux.mh: Ditto.
15222         * config/m68k/linux.mh: Ditto.
15223         * config/mips/linux.mh: Ditto.
15224         * config/powerpc/linux.mh: Ditto.
15225         * config/sparc/linux.mh: Ditto.
15226
15227 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15228
15229         * win32-nat.c: Add i386-tdep.h dependency.
15230
15231 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15232
15233         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15234         instead of bfd_get_arch_size.  Don't bail out just because
15235         there's no exec_bfd.
15236
15237         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15238         * p-valprint.c (pascal_object_print_value): Ditto.
15239         * somread.c (som_symtab_read): Ditto.
15240         * symfile.c (simple_free_overlay_region_table): Ditto.
15241         * valops.c (value_assign): Ditto.
15242
15243         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15244         use tilde_expand and strerror for opening save-tracepoints file.
15245
15246         * thread-db.c (thread_db_new_objfile): Indendation fix.
15247
15248         * infptrace.c (GDB_MAX_ALLOCA): New define.
15249         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15250         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15251         can be overridden with whatever value is appropriate to the host).
15252         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15253         alloca to allocate potentially large buffer.
15254         * rs6000-nat.c (child_xfer_memory): Ditto.
15255         * symm-nat.c (child_xfer_memory): Ditto.
15256         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15257
15258 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15259
15260         From Nick Clifton  <nickc@redhat.com>
15261         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15262
15263 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15264
15265         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15266         Don't use exec_bfd if it's NULL.
15267
15268 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15269
15270         * valops.c (value_arg_coerce): Fix formatting.
15271
15272 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15273
15274         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15275         * gnu-nat.c: Ditto.
15276
15277 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15278
15279         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15280         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15281         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15282         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15283         z8k-coff have not been multi-arched.  Update z8k-coff build
15284         status.
15285
15286 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15287
15288         * MAINTAINERS: Mark a29k target as obsolete.
15289         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15290         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15291         comments.
15292         * NEWS: Note that a29k targets are obsolete.
15293         * a29k-tdep.c: Mark as obsolete.
15294         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15295         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15296         a29k-*-vxworks* targets as obsolete.
15297         * remote-adapt.c: Obsolete.
15298         * remote-eb.c: Obsolete.
15299         * remote-mm.c: Obsolete.
15300         * remote-udi.c: Obsolete.
15301         * config/a29k/a29k-udi.mt: Obsolete.
15302         * config/a29k/a29k.mt: Obsolete.
15303         * config/a29k/tm-a29k.h: Obsolete.
15304         * config/a29k/tm-vx29k.h: Obsolete.
15305         * config/a29k/vx29k.mt: Obsolete.
15306
15307 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15308
15309         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15310         with BFD_ENDIAN_BIG.
15311
15312 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15313
15314         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15315         * configure, config.in: Re-generate.
15316         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15317         * defs.h: Do not include <endian.h>.
15318
15319 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15320
15321         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15322         * config.in: Regenerate.
15323         * configure.in: Update copyright years.
15324         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15325         * configure: Regenerate.
15326         * i386bsd-nat.c: Update copyright years.
15327         (fill_gregset): Use regcache_collect.
15328         (fetch_inferior_registers): Only fetch integer registers
15329         if requested to do so.  Add support for XMM registers
15330         using PT_GETXMMREGS.
15331         (store_inferior_registers): Only store integer registers
15332         if requested to do so.  Add support for XMM registers
15333         using PT_SETXMMREGS.
15334         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15335         (store_inferior_registers): Remove.
15336         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15337         (fetch_elfcore_registers): New function.
15338         (i386nbsd_elfcore_fns): New.
15339         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15340         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15341         i386bsd-nat.o.
15342         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15343         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15344         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15345         * config/i386/tm-nbsd.h: Update copyright years.
15346         (HAVE_SSE_REGS): Define.
15347         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15348         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15349         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15350         (SIGCONTEXT_PC_OFFSET): Remove.
15351         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15352
15353 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15354
15355         * configure.tgt: Remove powerpc-*-macos* target.
15356         * config/m68k/xm-mpw.h: Delete file.
15357         * config/xm-mpw.h: Delete file.
15358         * ser-mac.c: Delete file.
15359         * mpw-make.sed: Delete file.
15360         * mpw-config.in: Delete file.
15361         * mac-xdep.c: Delete file.
15362         * mac-gdb.r: Delete file.
15363         * mac-defs.h: Delete file.
15364         * mac-nat.c: Delete file.
15365         * config/powerpc/macos.mh: Delete file.
15366         * config/powerpc/macos.mt: Delete file.
15367         * config/powerpc/nm-macos.h: Delete file.
15368         * config/powerpc/tm-macos.h: Delete file.
15369         * source.c (openp, open_source_file): Remove obsolete code.
15370         * top.c (gdb_readline): Ditto.
15371         * utils.c (query): Ditto.
15372         * event-top.c (display_gdb_prompt): Ditto.
15373         * Makefile.in (ser-mac.o): Delete obsolete target.
15374         * NEWS: Update.
15375
15376 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15377
15378         * defs.h (BIG_ENDIAN): Delete macro definition.
15379         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15380         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15381         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15382         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15383         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15384         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15385         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15386         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15387         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15388         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15389         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15390         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15391         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15392         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15393         * gdbarch.c: Re-generate.
15394
15395 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15396
15397         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15398         for core files.
15399
15400 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15401
15402         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15403
15404 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15405
15406         * value.h (value_ptr): Delete typedef.
15407
15408 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15409
15410         * i386nbsd-nat.c: Update copyright years.
15411         Include i386-tdep.h.
15412
15413 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15414
15415         * stabsread.c: Update copyright years.
15416
15417         From Debashis Mahata <debashis.mahata@wipro.com>:
15418         (read_struct_fields): Deal with Sun C compiler erroneous stab
15419         output for structs and unions.
15420         Fix PR gdb/269.
15421
15422 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15423
15424         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15425         prototype.
15426
15427 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15428
15429         * cp-abi.c: Fix whitespace.
15430         (baseclass_offset): New wrapper function.
15431         * cp-abi.h (baseclass_offset): Add prototype.
15432         (struct cp_abi_ops): Add baseclass_offset pointer.
15433
15434         * valops.c (vb_match): Move to...
15435         * gnu-v2-abi.c (vb_match): here.
15436         * valops.c (baseclass_offset): Move to...
15437         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15438
15439         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15440
15441         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15442         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15443         * hpacc-abi.c (init_hpacc_ops): Likewise.
15444
15445 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15446
15447         * valops.c (find_overload_match): Accept obj as a
15448         reference parameter.  Update it before returning.
15449         * value.h (find_overload_match): Update prototype.
15450         * eval.c (evaluate_subexp_standard): Pass object to
15451         find_overload_match by reference.
15452
15453 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15454
15455         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15456         register attribute from value declarations.
15457         * valops.c: Ditto.
15458         * value.h: Ditto.
15459         * scm-lang.c (scm_lookup_name): Ditto.
15460
15461 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15462
15463         Abstract the functionality of iterating over mapped memory
15464         regions into a general purpose iterator function.
15465         * procfs.c (iterate_over_mappings): New function, general purpose
15466         iterator for memory sections.
15467         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15468         (solib_mappings_callback): New function, callback for above.
15469         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15470         (info_mappings_callback): New function, callback for above.
15471
15472         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15473
15474 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15475
15476         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15477         * i386-tdep.c: Include "elf-bfd.h".
15478         (process_note_abi_tag_sections): New function.
15479         (i386_gdbarch_init): Add code to recognize various OS/ABI
15480         combinations.
15481
15482         * maint.c (_initialize_maint_cmds): Add missing \ in
15483         string-literal.
15484
15485 For older changes see ChangeLog-2001
15486 \f
15487 Local Variables:
15488 mode: change-log
15489 left-margin: 8
15490 fill-column: 74
15491 version-control: never
15492 End: