* configure.in: Move code that provides the --enable-gdbtk option
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
2
3         * configure.in: Move code that provides the --enable-gdbtk option
4         right after the code that handles the --enable-tui option, and
5         polish it somewhat.
6         * configure: Regenerated.
7
8         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
9         AC_CHECK_FUNCS and remove the old check for pread64.
10         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11         * acconfig.h (_GNU_SOURCE): Add.
12         (HAVE_PREAD64): Remove.
13         * configure, aclocal.m4, config.in: Regenerated.
14
15 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
16
17         * alpha-tdep.c: Use get_frame_saved_regs.
18         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
19         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
20         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
21         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
22         * vax-tdep.c, xstormy16-tdep.c: Ditto.
23
24 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
25
26         * configure.in: Remove all use of the SUBDIRS variable; add
27         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
28         code providing the --enable-multi-ice option, and move it right in
29         front of the code that checks whether gdbserver is supported.
30         Polish that too.
31         * configure: Regenerated.
32         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
33         @SUBDIRS@.
34
35 2003-01-03  Andrew Cagney  <cagney@redhat.com>
36
37         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
38         * avr-tdep.c, cris-tdep.c: Ditto.
39         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
40         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
41         
42 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
43
44         * configure.in: Remove --enable-netrom option.
45         * configure: Regenerated.
46
47 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
48
49         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
50         declaration for `struct re_pattern_buffer' instead.
51         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
52
53 2003-01-03  J. Brobecker  <brobecker@gnat.com>
54
55         * mdebugread.c (parse_symbol): Count until the stEnd matching
56         the structure name.
57
58 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
59
60         * configure.in: Remove --with-cpu option.
61         subscripts.  Remove evil changequotes here.
62         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
63         * config.in, configure: Regenerated.
64         
65         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
66         * configure.in: Cleanup section that sources GDB and BFD configure
67         subscripts.  Remove evil changequotes here.
68         * config.in, configure: Regenerated.
69
70 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
71
72         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
73         frame accessor methods.
74         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
75         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
76         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
77         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
78         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
79         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
80         * z8k-tdep.c: Ditto.
81         
82 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
83
84         * configure.in: Remove UI_OUT configuration code.
85         * ada-lang.c: Update assuming UI_OUT is always true.
86         * Makefile.in (UIOUT_CFLAGS): Remove.
87         * configure: Regenerated.
88         * TODO: Remove blurb about elimination of -DUI_OUT.
89
90         * configure.in: Move code that provides the --enable-gdbcli,
91         --enable-gdbmi options right before the code that handles the
92         --enable-tui option.  Polish a bit.
93         * configure: Regenerated.
94
95         * configure.in: Rewrite check for GNU regex and the
96         --without-included regex option, and move it into the "Checks for
97         library functions" section.  This makes us use the system regex
98         again by default on systems with version 2 of the GNU C library.
99         This was apparently broken.
100         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
101         * acconfig.h (USE_INCLUDED_REGEX): Remove.
102         * config.in, configure: Regenerated.
103
104         * configure.in: Move code that provides the --enable-tui option
105         before the "Checks for libraries" section.  Polish the code
106         somewhat and set need_curses to yes if we build the TUI.  Rewrite
107         code that looks for a library providing termcap functionality to
108         match more closely what's done in the Readline library, and move
109         it into to the "Checks for libraries" section.
110         * configure: Regenerated.
111         * Makefile.in (TERMCAP): Remove variable.
112         * config/i386/go32.mh (TERMCAP): Remove variable.
113
114 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
115
116         * MAINTAINERS: Mention gdb_mbuild.sh.
117         * gdb_mbuild.sh: Rewrite.
118
119 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
120
121         * configure.in: Fix typo in last change.
122         * config.in, configure: Regenerated.
123
124 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
125
126         * valarith.c (value_binop): Delete obsolete code and comments.
127         * configure.host: Ditto.
128         * buildsym.h (make_blockvector): Ditto.
129         * buildsym.c (make_blockvector): Ditto.
130         * defs.h (enum language): Ditto.
131         (chill_demangle): Ditto.
132         * elfread.c (elf_symtab_read): Ditto.
133         * dwarfread.c (CHILL_PRODUCER): Ditto.
134         (set_cu_language): Ditto.
135         (handle_producer): Ditto.
136         * expprint.c (print_subexp): Ditto.
137         * gdbtypes.c (chill_varying_type): Ditto.
138         * gdbtypes.h (builtin_type_chill_bool): Ditto.
139         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
140         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
141         (chill_varying_type): Ditto.
142         * language.h (_LANG_chill): Ditto.
143         * language.c (binop_result_type, integral_type): Ditto.
144         (character_type, string_type, structured_type): Ditto.
145         (lang_bool_type, binop_type_check): Ditto.
146         * stabsread.h (os9k_stabs): Ditto.
147         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
148         (define_symbol, read_type, read_struct_fields): Ditto.
149         (read_array_type, read_enum_type, read_huge_number): Ditto.
150         (read_range_type, start_stabs): Ditto.
151         * symfile.c (init_filename_language_table): Ditto.
152         (add_psymbol_with_dem_name_to_list): Ditto.
153         * symtab.c (symbol_init_language_specific): Ditto.
154         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
155         * symtab.h (struct general_symbol_info): Ditto.
156         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
157         * typeprint.c (typedef_print): Ditto.
158         * utils.c (fprintf_symbol_filtered): Ditto.
159         * valops.c (value_cast, search_struct_field, value_slice): Delete
160         obsolete code.
161         (varying_to_slice): Delete function.
162         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
163         (varying_to_slice): Delete declaration.
164         * MAINTAINERS: Update.
165
166 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
167
168         * configure.in: Reorganize "Checks for library functions section"
169         a bit.  Remove check for `btowc' and `isascii' functions.
170         * configure: Regenerated.
171
172         * acconfig.h (_MSE_INT_H): Remove.
173         * configure.in: Create "Checks for header files" section, and move
174         appropriate tests there.  Don't check for objlist.h, wchar.h,
175         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
176         misdetection fix.  Also add "Checks for types", "Checks for
177         compiler characteristics" and "Checks for library functions"
178         sections.
179         * config.in, configure: Regenerated.
180
181         * configure.in: Create "Checks for programs" section, and move
182         appropriate tests there.
183
184 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
185
186         * configure.in: Create "Checks for libraries" section, and move
187         appropriate tests there.  Cleanup check for wctype in libw.  Use
188         AC_SEARCH_LIBS to see whether we need libsocket.
189         * configure: Regenerated.
190
191 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
192
193         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
194         * config.in, configure: Regenerated.
195
196 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
197
198         * gdb_dirent.h: Cleanup and update code to match the example in
199         the Autoconf manual.
200         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
201         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
202         * configure: Regenerated.
203
204 2002-12-30  Adam Fedor  <fedor@gnu.org>
205
206         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
207         (yylex): Initialize c to avoid uninitialized warning.
208
209 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
210
211         * doc/fdl.texi: Revert the last change.
212
213 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
214
215         * tracepoint.c (ISATTY): Removed.
216
217 2002-12-26  J. Brobecker  <brobecker@gnat.com>
218
219         Continuing work to convert the hppa targets to multiarch partil.
220
221         * hppa-tdep.c: Add some missing forward declarations.
222         (frameless_function_invocation): Prefix the function name
223         by "hppa_" to avoid polluting the namespace.  Update all calls
224         to use the new function name.
225         (saved_pc_after_call): Ditto.
226         (init_extra_frame_info): Ditto.
227         (frame_chain): Ditto.
228         (push_dummy_frame): Ditto.
229         (target_read_pc): Ditto.
230         (target_write_pc): Ditto.
231         (in_solib_call_trampoline): Ditto.
232         (in_solib_return_trampoline): Ditto.
233         (skip_trampoline_code): Ditto.
234         (hppa_read_fp): New function, renamed from target_read_fp.
235         (hppa_target_read_fp): New function, using hppa_read_fp.
236         This function conforms to the function profile for the
237         READ_FP gdbarch method.
238         (hppa_extract_struct_value_address): New function, extracted
239         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
240         macro.
241         (hppa_frame_num_args): New function.
242         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
243
244         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
245         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
246         for the switch to multiarch partial.
247         Update some of the macros definitions to match some changes
248         described above in the name of the function they are calling.
249         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
250         not be straightforward to convert. Do now wrap it inside
251         "#if !... #endif" to remember that this macro has still not
252         been taken care of.
253         (FIX_CALL_DUMMY): Likewise.
254
255 2002-12-26  J. Brobecker  <brobecker@gnat.com>
256
257         Continuing work to convert the hppa targets to multiarch partial.
258
259         * hppa-tdep.c (hppa_register_raw_size): New function replacing
260         the body of macro REGISTER_RAW_SIZE.
261         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
262         config/pa/tm-hppah.h. These functions will be used to initialize
263         the gdbarch structure.
264         (hppa_hpux_pc_in_sigtramp): New function.
265         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
266         (hppa_hpux_frame_base_before_sigtramp): New function.
267         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
268         Add gdbcore.h #include.
269         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
270         of this gdbarch-eligible macro to a call to the new associated
271         function.
272         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
273         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
274         into a call to the new associated function.
275         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
276         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
277         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
278
279 2002-12-24  David Carlton  <carlton@math.stanford.edu>
280
281         * config/sparc/tm-sparc.h: Delete duplicate definition of
282         DEPRECATED_PC_IN_CALL_DUMMY.
283
284 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
285
286         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
287         $(gdb_assert_h).
288         * configure.tgt: Recognize mips64*-*-linux*.
289         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
290         (supply_32_bit_reg): New function.
291         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
292         (fill_gregset): Use regcache_collect() instead of
293         deprecated_registers[].
294         (register_addr): Change name to mips_linux_register_addr().
295         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
296         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
297         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
298         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
299         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
300         (MIPS64_LINUX_JB_PC): New defines.
301         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
302         (mips64_elf_fpregset_t): New typedefs.
303         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
304         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
305         (mips64_linux_register_addr, set_mips_linux_register_addr)
306         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
307         (init_register_addr_data)
308         New functions.
309         (fetch_core_registers): Add support for core file formats with 64-bit
310         registers.
311         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
312         (register_addr_data): New static global variable.
313         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
314         gdbarch_register_osabi() for each MIPS machine.
315         * config/mips/linux64.mt: New file.
316         * config/mips/tm-linux64.h: New file.
317
318 2002-12-23  Adam Fedor  <fedor@gnu.org>
319
320         * maint.c (maintenance_demangle): Add switch to demangle
321         ObjC language symbols as well.
322
323 2002-12-23  Adam Fedor  <fedor@gnu.org>
324
325         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
326         last argument from complaint function call.
327
328 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
329
330         * exec.c (print_section_info): Add FIXME comments regarding format
331         string choices.
332
333 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
334
335         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
336         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
337
338 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
339
340         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
341
342 2002-12-23  David Carlton  <carlton@math.stanford.edu>
343
344         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
345         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
346         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
347         information associated to a minsym, not lookup_symbol.
348
349 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
350
351         * x86-64-tdep.h (x86_64_init_abi): New prototype.
352         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
353         (x86_64_init_abi): Make non-static.  Set number of pseudo
354         registers to 0.
355         (x86_64_gdbarch_init): Remove function.
356         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
357         Remove code dealing with dissambly.
358         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
359         (_initialize_x86_64_linux_tdep): New function.
360         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
361         i386-tdep.o.
362
363 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
364
365         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
366         (struct gdb_osabi_handler): Remove member `arch'.  Add member
367         `arch_info'.
368         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
369         construct a `struct bfd_arch_info' and store it in the `struct
370         gdb_osabi_handler' that is created.
371         (gdbarch_init_osabi): Check for compatibility based on machine
372         type and architecture.
373         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
374         comment.
375         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
376         second argument in call to gdbarch_register_osabi.
377         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
378         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
379         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
380         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
381         * arm-tdep.c (_initialize_arm_tdep): Likewise.
382         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
383         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
384         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
385         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
386         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
387         * i386-tdep.c (_initialize_i386_tdep): Likewise.
388         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
389         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
390         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
391         _initialize_i386bsd_tdep and updated likewise.
392         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
393         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
394         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
395         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
396         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
397         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
398         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
399         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
400         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
401         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
402
403 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
404
405         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
406         DT_MIPS_RLD_MAP case for 64-bit targets.
407
408 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
409
410         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
411         ``temp_saved_regs'', not the pointer or other storage contiguous
412         to this pointer.
413
414 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
415
416         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
417         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
418         (mips_linux_get_longjmp_target): Delete declarations.
419         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
420         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
421         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
422         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
423         (mips_linux_get_longjmp_target)
424         (mips_linux_svr4_fetch_link_map_offsets): Make static.
425         (mips_linux_init_abi): New function.
426         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
427
428 2002-12-19  Keith Seitz  <keiths@redhat.com>
429
430         patch committed by Elena Zannoni  <ezannoni@redhat.com>
431         * thread.c (do_captured_list_thread_ids): Call prune_threads and
432         target_find_new_threads. Fix for PR mi/669.
433
434 2002-12-19  David Carlton  <carlton@math.stanford.edu>
435
436         * linespec.c (decode_line_1): Move code into decode_all_digits.
437         (decode_all_digits): New function.
438
439 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
440
441         * exec.c (print_section_info): Select a format string to use with
442         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
443
444 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
445
446         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
447         deprecated_update_current_frame_pc_hack.
448         (deprecated_update_frame_base_hack): New function.
449         * frame.h (deprecated_update_frame_pc_hack): Replace
450         (deprecated_update_frame_base_hack): Declare.
451         * infrun.c (normal_stop): Update.
452
453 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
454
455         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
456         frame_extra_info_zalloc.
457         (rs6000_frame_args_address): Use get_frame_extra_info.
458         (frame_get_saved_regs): Use get_frame_saved_regs.
459         (frame_initial_stack_address): Use get_frame_saved_regs and
460         get_frame_extra_info.
461         (frame_initial_stack_address): Use get_frame_extra_info.
462
463 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
464
465         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
466         array size.
467         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
468         checks for r3900_regnames[].
469
470 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
471
472         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
473         All uses changed
474         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
475
476 2002-12-17  David Carlton  <carlton@math.stanford.edu>
477
478         * symtab.c (lookup_partial_symbol): Don't search past the end of
479         the partial symbols.
480
481 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
482
483         * stack.c (frame_info): Use get_frame_saved_regs.
484         * breakpoint.c (until_break_command): Use get_frame_pc.
485
486 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
487
488         * buildsym.c (block_end_complaint, anon_block_end_complaint)
489         (innerblock_complaint, innerblock_anon_complaint)
490         (blockvector_complaint): Delete deprecated complaint structs.
491         (finish_block, make_blockvector, end_symtab): Replace calls
492         to complain() with calls to complaint().
493         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
494         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
495         (unexpected_type_complaint, bad_sclass_complaint)
496         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
497         Delete deprecated complaint structs.
498         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
499         Replace calls to complain() with calls to complaint().
500         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
501         (unknown_symtype_complaint, unknown_symchar_complaint)
502         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
503         (lbrac_mismatch_complaint, repeated_header_complaint)
504         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
505         Delete deprecated complaint structs.
506         (unknown_symtype_complaint, lbrac_mismatch_complaint)
507         (repeated_header_complaint)
508         (function_outside_compiliation_unit_complaint): New functions.
509         (add_old_header_file, find_corresponding_bincl_psymtab)
510         (set_namestring, find_stab_function_addr, read_dbx_symtab)
511         (process_one_symbol): Replace calls to complain() with, possibly
512         indirect, calls to complaint().
513         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
514         (unknown_attribute_form, unknown_attribute_length)
515         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
516         (const_ignored, botched_modified_type, op_deref2, op_deref4)
517         (basereg_not_handled, dup_user_type_allocation)
518         (dup_user_type_definition, missing_tag, bad_array_element_type)
519         (subscript_data_items, unhandled_array_subscript_format)
520         (unknown_array_subscript_format, not_row_major)
521         (missing_at_name): Delete deprecated complaint structs.
522         (bad_die_ref_complaint, unknown_attribute_form_complaint)
523         (dup_user_type_definition_complaint)
524         (bad_array_element_type_complaint): New functions.
525         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
526         (decode_subscript_data_item, dwarf_read_array_type)
527         (read_tag_string_type, read_subroutine_type, read_func_scope)
528         (locval, scan_partial_symbols, decode_modified_type)
529         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
530         (attribute_size): Replace calls to complain() with, possibly
531         indirect, calls to complaint().
532         * elfread.c (section_info_complaint, section_info_dup_complaint)
533         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
534         Delete deprecated complaint structs.
535         (elf_symtab_read, elfstab_offset_sections): Replace calls to
536         complain() with calls to complaint().
537         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
538         struct.
539         (stub_noname_complaint): New function.
540         (check_typedef, add_mangled_type): Replace calls to complain()
541         with calls to complaint().
542         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
543         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
544         (hpread_unhandled_type_complaint, hpread_struct_complaint)
545         (hpread_array_complaint, hpread_type_lookup_complaint)
546         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
547         (hpread_unhandled_common_complaint)
548         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
549         struct definitions and declarations.
550         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
551         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
552         Replace calls to complain() with, possibly indirect, calls to
553         complaint().
554         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
555         Likewise.
556         * mdebugread.c (bad_file_number_complaint, index_complaint)
557         (aux_index_complaint, block_index_complaint)
558         (unknown_ext_complaint, unknown_sym_complaint)
559         (unknown_st_complaint, block_overflow_complaint)
560         (basic_type_complaint, unknown_type_qual_complaint)
561         (array_index_type_complaint, bad_tag_guess_complaint)
562         (block_member_complaint, stEnd_complaint)
563         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
564         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
565         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
566         (bad_continued_complaint, bad_rfd_entry_complaint)
567         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
568         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
569         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
570         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
571         complaint structs.
572         (index_complaint, unknown_ext_complaint, basic_type_complaint)
573         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
574         (unexpected_type_code_complaint)
575         (function_outside_compilation_unit_complaint): New functions.
576         (parse_symbol, parse_type, upgrade_type, parse_procedure)
577         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
578         Replace calls to complain() with, possibly indirect calls to
579         complaint().
580         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
581         Delete deprecated complaint structs.
582         (lookup__objc_class, lookup_child_selector): Replace complain()
583         with complaint().
584         * remote-vx.c (cant_contact_target): Delete deprecated complaint
585         struct.
586         (vx_lookup_symbol): Replace complain() with complaint().
587         * stabsread.c (invalid_cpp_abbrev_complaint)
588         (invalid_cpp_type_complaint, member_fn_complaint)
589         (const_vol_complaint, error_type_complaint)
590         (invalid_member_complaint, range_type_base_complaint)
591         (reg_value_complaint, vtbl_notfound_complaint)
592         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
593         (unresolved_sym_chain_complaint, stabs_general_complaint)
594         (lrs_general_complaint, multiply_defined_struct): Delete
595         deprecated complaint structs.
596         (invalid_cpp_abbrev_complaint, ref_value_complaint)
597         (stabs_general_complaint, lrs_general_complaint)
598         (msg_unknown_complaint): New functions.
599         (dbx_lookup_type, read_cfront_baseclasses)
600         (read_cfront_member_functions, resolve_symbol_reference)
601         (define_symbol, resolve_live_range, add_live_range, read_type)
602         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
603         (read_one_struct_field, read_baseclasses, read_tilde_fields)
604         (read_cfront_static_fields, attach_fields_to_type)
605         (complain_about_struct_wipeout, read_range_type)
606         (common_block_start, common_block_end, cleanup_undefined_types)
607         (scan_file_globals): Replace complain() with complaint().
608         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
609         Delete deprecated complaint struct declarations.
610         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
611         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
612         (bf_not_found_complaint, ef_complaint, eb_complaint)
613         (function_outside_compilation_unit_complaint): New functions.
614         (record_include_begin, record_include_end, enter_line_range)
615         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
616         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
617         complain() with complaint().
618
619 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
620
621         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
622         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
623         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
624         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
625         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
626         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
627         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
628         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
629         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
630         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
631         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
632         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
633         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
634         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
635         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
636         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
637         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
638         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
639         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
640         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
641         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
642         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
643         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
644         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
645         * config/m88k/xm-dgux.h: Delete.
646         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
647         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
648         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
649         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
650         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
651         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
652         * ch-valprint.c: Delete.
653         
654 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
655
656         * infrun.c (handle_inferior_event): Rearrange code to resume if
657         no catchpoint triggers for an event.
658
659 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
660
661         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
662         and TARGET_WAITKIND_VFORKED cases.
663
664 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
665
666         * infrun.c (handle_inferior_event): Assume that catchpoints
667         are not affected by DECR_PC_AFTER_BREAK.
668
669 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
670
671         * target.c (update_current_target): Don't inherit DONT_USE.
672         * target.h (struct target_ops): Remove DONT_USE.
673         (target_next): Remove macro.
674
675 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
676
677         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
678
679 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
680
681         * arm-tdep.c (convert_from_extended): New argument to hold the
682         type of floating point result we want to convert to.  Make input 
683         argument const.  Fix all callers.
684         (convert_to_extended): Similarly.
685         (arm_extract_return_value): Now takes a regcache argument.  Change
686         code to use regcache accessor functions.  Correctly extract 
687         smaller-than-word results on big-endian machines.
688         (arm_store_return_value): Now takes a regcache argument.  Change
689         code to use regcache accessor functions.  Correctly zero/sign extend
690         smaller than word results before storing into r0.
691         (arm_gdbarch_init): Register new-style extract_return_value and
692         store_return_value functions.
693
694 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
695
696         * thread-db.c (thread_from_lwp): Uniquify error msg.
697         (lwp_from_thread): Ditto.
698         (check_event): Ditto.
699         (find_new_threads_callback): Ditto.
700         (thread_db_pid_to_str): Ditto.
701
702 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
703
704         * frame.h (get_frame_saved_regs): Declare.
705         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
706         pointer.
707         * frame.c (get_frame_saved_regs): New function.
708         (frame_saved_regs_zalloc): Return the allocated saved_regs.
709
710 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
711
712         * frame.c (deprecated_update_current_frame_pc_hack): New
713         function.
714         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
715         * infrun.c (normal_stop): Use said function instead of directly
716         modifying the frame's PC.
717         
718 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
719
720         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
721
722 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
723
724         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
725         config/mips/tm-irix6.h (NUM_REGS): Delete.
726         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
727         (temp_saved_regs): Declare as a pointer rather than an array.
728         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
729         that ``temp_saved_regs'' has storage allocated to it and that
730         it's the correct size.
731
732 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
733
734         * defs.h (init_last_source_visited): New prototype.
735         (add_path): Ditto.
736         * source.c (add_path): New function that adds to a specified path.
737         (mod_path): Change to call add_path.
738         (init_last_source_visited): New function to allow interfaces to
739         initialize static variable: last_source_visited.  Part of fix
740         for PR gdb/741.
741         * Makefile.in: Add support for mi/mi-cmd-env.c.
742
743 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
744
745         * frame.h (frame_id_unwind): Declare.
746         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
747         id_unwind_cache.
748         (frame_id_unwind_ftype): Declare.
749         * frame.c (frame_id_unwind): New function.
750         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
751         (create_new_frame, get_prev_frame): Pass id_unwind to
752         set_unwind_by_pc.
753         (frame_saved_regs_id_unwind): New function.
754         (frame_saved_regs_id_unwind): New function.
755         * dummy-frame.c (dummy_frame_id_unwind): New function.
756         (struct dummy_frame): Add field id.
757         (generic_push_dummy_frame): Initialize `id'.
758         * dummy-frame.h (dummy_frame_id_unwind): Declare.
759
760 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
761
762         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
763         pass that to set_momentary_breakpoint.  Move comments to where they
764         belong.
765         * frame.h (set_current_frame): Delete declaration.
766         * frame.c (set_current_frame): Delete function.
767
768 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
769
770         * frame.c (frame_extra_info_zalloc): New function.
771         * frame.h (frame_extra_info_zalloc): Declare.
772
773 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
774
775         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
776         in the previous prototype change to set_momentary_breakpoint.
777
778 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
779
780         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
781         and saw_child_exec.
782         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
783         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
784         (stop_stepping): Remove outdated check for child vfork events.
785
786 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
787
788         * GDB 5.3 released from gdb_5_3-branch.
789
790 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
791
792         * corelow.c (init_core_ops): Delete references to to_require_attach
793         and to_require_detach.
794         * exec.c (init_exec_ops): Likewise.
795         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
796         hppa_require_detach directly.
797         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
798         * inftarg.c (child_detach): Remove.
799         (child_detach_from_process): Rename to child_detach, remove
800         after_fork argument.
801         (child_attach): Remove.
802         (child_attach_to_process): Rename to child_attach, remove after_fork
803         argument.
804         (init_child_ops): Delete references to to_require_attach
805         and to_require_detach.
806         * infttrace.c (hppa_require_attach): Update comment.
807         * target.c (cleanup_target, update_current_target)
808         (init_dummy_target, setup_target_debug): Delete references to
809         to_require_attach and to_require_detach.
810         (find_default_require_detach, find_default_require_attach)
811         (debug_to_require_attach, debug_to_require_detach): Remove
812         functions.
813         * target.h (struct target_ops): Remove to_require_attach
814         and to_require_detach.
815         (target_require_attach, target_require_detach): Delete macros.
816         (find_default_require_detach, find_default_require_attach): Delete
817         prototypes.
818         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
819
820 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
821
822         * frame.c (get_frame_extra_info): New function.
823         * frame.h (get_frame_extra_info): Declare.
824
825 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
826
827         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
828         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
829         with `struct frame_id'.
830         (set_longjmp_resume_breakpoint): Ditto.
831         * infrun.c (handle_inferior_event): Update.
832         * breakpoint.c (watch_command_1, until_break_command): Update.
833         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
834         (handle_inferior_event, step_over_function): Update.
835         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
836         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
837         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
838         * infcmd.c (finish_command, run_stack_dummy): Update.
839
840 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
841
842         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
843         (dwarf2_non_const_array_bound_ignored)
844         (dwarf2_missing_line_number_section)
845         (dwarf2_statement_list_fits_in_line_number_section)
846         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
847         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
848         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
849         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
850         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
851         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
852         (dwarf2_missing_member_fn_type_complaint)
853         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
854         (dwarf2_const_value_length_mismatch)
855         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
856         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
857         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
858         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
859         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
860         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
861         complaints using deprecated struct..
862         (dwarf2_non_const_array_bound_ignored_complaint)
863         (dwarf2_complex_location_expr_complaint)
864         (dwarf2_unsupported_at_frame_base_complaint)
865         (dwarf2_const_value_length_mismatch_complaint)
866         (dwarf2_macros_too_long_complaint)
867         (dwarf2_macro_malformed_definition_complaint)
868         (dwarf2_invalid_attrib_class_complaint): New functions.
869         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
870         (read_structure_scope, read_array_type, read_common_block)
871         (read_tag_pointer_type, read_base_type, read_partial_die)
872         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
873         (new_symbol, dwarf2_const_value, read_type_die)
874         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
875         (parse_macro_definition, dwarf_decode_macros): Replace calls to
876         complain() with, possibly indirect, calls to complaint().
877
878 2002-12-11  Andrew Cagney  <cagney@redhat.com>
879
880         * frame.c (deprecated_get_frame_saved_regs): Rename
881         get_frame_saved_regs.
882         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
883         * sparc-tdep.c: Update.
884         * hppa-tdep.c: Update.
885         * h8500-tdep.c: Update.
886
887 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
888
889         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
890         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
891         ``char *'' for return and parameter types.
892         * gdbarch.h, gdbarch.c: Regenerate.
893         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
894         return type from ``char *'' to ``const char *''.
895         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
896         const.
897
898 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
899
900         * i386-tdep.c: Include "dummy-frame.h".
901         (i386_frame_chain, i386_frame_saved_pc): Replace
902         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
903         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
904
905 2002-12-10  Andrew Cagney  <cagney@redhat.com>
906
907         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
908         Change to a function with predicate.
909         * gdbarch.h, gdbarch.c: Re-generate.
910         * frame.c (get_prev_frame): Update.  Test
911         DEPRECATED_INIT_FRAME_PC_P.
912         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
913         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
914         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
915         * alpha-tdep.c (alpha_gdbarch_init): Update.
916         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
917         * mips-tdep.c (mips_gdbarch_init): Update.
918         * i386-interix-tdep.c (i386_interix_init_abi): Update.
919         * arm-tdep.c: Update comments.
920         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
921         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
922         * frv-tdep.c (frv_gdbarch_init): Ditto.
923         * x86-64-tdep.c (x86_64_init_abi): Ditto.
924         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
925         * s390-tdep.c (s390_gdbarch_init): Ditto.
926         * v850-tdep.c (v850_gdbarch_init): Ditto.
927         * vax-tdep.c (vax_gdbarch_init): Ditto.
928         * sh-tdep.c (sh_gdbarch_init): Ditto.
929         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
930         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
931         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
932         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
933         * i386-tdep.c (i386_gdbarch_init): Ditto.
934         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
935         * cris-tdep.c (cris_gdbarch_init): Ditto.
936         * avr-tdep.c (avr_gdbarch_init): Ditto.
937         * arm-tdep.c (arm_gdbarch_init): Ditto.
938         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
939         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
940
941 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
942
943         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
944         CHILD_FOLLOW_FORK.
945         * hppah-nat.c (saved_vfork_pid): Add.
946         (child_post_follow_vfork): Remove.
947         (child_follow_fork): New function.
948         (child_wait): Call detach_breakpoints after receiving the child vfork.
949         Call child_resume directly instead of going through resume ().
950         Make sure we have the exec before reporting the vfork.
951         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
952         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
953         (follow_fork): New function.  Call target_follow_fork.
954         (follow_inferior_reset_breakpoints): New function broken out from
955         old follow_inferior_fork.
956         (resume): Remove hack to follow exec after vfork.
957         * inftarg.c (child_post_follow_vfork): Remove.
958         (child_follow_fork): New function.
959         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
960         * target.c (cleanup_target): Replace to_post_follow_vfork with
961         to_follow_fork.
962         (update_current_target): Likewise.
963         (setup_target_debug): Likewise.
964         (debug_to_post_follow_vfork): Remove.
965         (debug_to_follow_fork): New function.
966         * target.h (struct target_ops): Replace to_post_folow_vfork with
967         to_follow_fork.
968         (child_post_follow_vfork): Remove prototype.
969         (child_follow_fork): Add prototype.
970         (target_post_follow_vfork): Remove macro.
971         (target_follow_fork): Add macro.
972
973 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
974
975         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
976         (child_post_follow_vfork): Cancel pending exec event if we follow
977         the parent.
978         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
979         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
980         event at the following wait call if necessary.
981         * infrun.c (follow_vfork): Don't follow_exec here.
982         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
983         case about HP/UX 10.20.  Remove code pushed down to
984         hppah-nat.c:child_wait.
985         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
986         vfork_in_flight is set.
987
988 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
989
990         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
991         for the parent's fork event.
992         * infrun.c (handle_inferior_event): Only expect one fork event.
993         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
994         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
995
996 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
997
998         * PROBLEMS: Delete reference to PR gdb/725.
999         
1000         * MAINTAINERS (gdb.c++): Add David Carlton.
1001
1002 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1003
1004         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1005         * cli/cli-cmds.c: Ditto.
1006
1007 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1008
1009         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1010         function address in <>.
1011         * gdbarch.c: Re-generate.
1012
1013 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1014
1015         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1016
1017 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1018
1019         * linespec.c (symtab_from_filename): New function.
1020         (decode_line_1): Move code into symtab_from_filename.
1021
1022 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1023
1024         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1025
1026 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1027
1028         * f-valprint.c (info_common_command): Use get_frame_pc.
1029         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1030         * ax-gdb.c (agent_command): Ditto.
1031         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1032         (rs6000_pop_frame): Ditto.
1033         (rs6000_frameless_function_invocation): Ditto.
1034         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1035         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1036         * macroscope.c (default_macro_scope): Ditto.
1037         * stack.c (print_frame_info_base): Ditto.
1038         (print_frame, frame_info, print_frame_label_vars): Ditto.
1039         (return_command, func_command, get_frame_language): Ditto.
1040         * infcmd.c (finish_command): Ditto.
1041         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1042         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1043         (break_at_finish_at_depth_command_1): Ditto.
1044         (break_at_finish_command_1): Ditto.
1045         (until_break_command, get_catch_sals): Ditto.
1046         * blockframe.c (func_frame_chain_valid): Ditto.
1047         (frameless_look_for_prologue): Ditto.
1048         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1049
1050 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1051
1052         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1053         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1054
1055 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1056
1057         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1058         to pure functions.
1059         * gdbarch.h, gdbarch.c: Re-generate.
1060         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1061         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1062
1063         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1064         declaration to a function returning a CORE_ADDR.
1065         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1066         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1067         (init_frame_pc_default): Ditto.
1068         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1069         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1070         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1071         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1072         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1073         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1074
1075         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1076         to init_frame_pc_noop.
1077         (i386_interix_init_frame_pc): Delete function.
1078         * z8k-tdep.c (init_frame_pc): Delete function.
1079         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1080         (INIT_FRAME_PC_FIRST): Ditto.
1081         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1082         (INIT_FRAME_PC_FIRST): Ditto.
1083         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1084         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1085         init_frame_pc_noop.
1086         (INIT_FRAME_PC_FIRST): Convert to an expression.
1087         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1088
1089 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1090
1091         * blockframe.c: Use get_frame_base instead of directly accessing
1092         the `struct frame_info' member frame.
1093         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1094         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1095
1096 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1097
1098         * Makefile.in (readline_h): Define.
1099         (completer.o): Depend on readline_h.
1100         (corelow.o): Ditto.
1101         (event-top.o): Ditto.
1102         (exec.o): Ditto.
1103         (solib.o): Ditto.
1104         (source.o): Ditto. 
1105         (symfile.o): Ditto. 
1106         (symmisc.o): Ditto. 
1107         (top.o): Ditto.
1108         (tracepoint.o): Ditto. 
1109         (utils.o): Ditto.
1110         (cli-dump.o): Ditto.
1111         (tui-hooks.o): Ditto. 
1112         (tuiWin.o): Ditto. 
1113
1114 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1115
1116         More cleanup from import of readline 4.3.
1117         * completer.h (complete_line, readline_line_completion_function):
1118         Update prototypes.
1119         (line_completion_function): Removed, not used outside of completer.c.
1120         * completer.c (readline_line_completion_function,
1121         complete_function, line_completion_function): Use const for first
1122         parameter.
1123         (line_completion_function): Make static.
1124         (filename_completer): filename_completion_function is now called
1125         rl_filename_completion_function
1126         * corelow.c: Include <readline/readline.h>.
1127         * exec.c: Ditto.
1128         * solib.c: Ditto.
1129         * source.c: Ditto.
1130         * symfile.c: Ditto.
1131         * symmisc.c: Ditto.
1132         * top.c (init_main): No need to coerce
1133         readline_line_completion_function anymore.
1134         * cli/cli-dump.c: Include <readline/readline.h>.
1135
1136 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1137
1138         * stack.c (frame_info): Use get_prev_frame.
1139         * blockframe.c (frame_address_in_block): Ditto.
1140         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1141         (rs6000_frameless_function_invocation): Ditto.
1142         (rs6000_frame_saved_pc): Ditto.
1143         (rs6000_frame_chain): Ditto.
1144         * arch-utils.c (init_frame_pc_default): Ditto.
1145
1146 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1147
1148         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1149         Delete redundant definition.
1150
1151 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1152
1153         Import of readline 4.3:
1154         * cli/cli-cmds.c: Include readline/tilde.h.
1155         * cli/cli-setshow.c: Ditto.
1156         * defs.h: Don't declare tilde_expand anymore, since readline
1157         exports it.
1158
1159 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1160
1161         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1162         -Werror on this file.
1163
1164 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1165
1166         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1167         the format name.
1168         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1169         * gdbarch.c: Regenerate.
1170         
1171 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1172
1173         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1174         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1175         provide a default value.
1176         * gdbarch.h, gdbarch.c: Regenerate.
1177         * frame.c (get_prev_frame): Update.  Check
1178         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1179         * s390-tdep.c (s390_gdbarch_init): Update.
1180         * mips-tdep.c (mips_gdbarch_init): Update.
1181         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1182         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1183         * alpha-tdep.c (alpha_gdbarch_init): Update.
1184         
1185 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1186
1187         * ia64-linux-nat.c: Include gdb_string.h.
1188         * alpha-nat.c: Ditto.
1189         * ppc-linux-nat.c: Ditto.
1190         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1191         Update dependencies.
1192
1193 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1194
1195         * gdbthread.h: Include "frame.h".
1196         (struct thread_info): Replace step_frame_address with
1197         step_frame_id.
1198         * inferior.h: Include "frame.h".
1199         (step_frame_id): Replace external variable step_frame_address.
1200         * gdbthread.h (save_infrun_state): Replace step_frame_address
1201         parameter with step_frame_id parameter.
1202         (load_infrun_state): Ditto.
1203         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1204         * infcmd.c (step_frame_id, step_1, step_once): Update.
1205         * thread.c (load_infrun_state, save_infrun_state): Update.
1206         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1207         (handle_inferior_event, step_over_function): Update.
1208         (normal_stop, context_switch, restore_inferior_status): Update.
1209         (struct inferior_status): Replace step_frame_address with
1210         step_frame_id.
1211
1212 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1213
1214         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1215         DW_TAG_member as well as a declaration as being a C++ static data
1216         member.
1217         (read_structure_scope): Combine tests for DW_TAG_member and
1218         DW_TAG_variable.
1219
1220 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1221
1222         * linespec.c (decode_compound): New function.
1223         (decode_line_1): Move code into decode_compound.
1224
1225 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1226
1227         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1228         argument.
1229         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1230         the static block.  See PR gdb/804.
1231
1232 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1233
1234         * symtab.c (lookup_symbol_aux_block): New function.
1235         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1236
1237 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1238
1239         * gdbarch.sh: Dump the predicate function and macro values.
1240         (read): Print error on standard error.
1241         * gdbarch.c: Regenerate.
1242         
1243 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1244
1245         * Makefile.in (mips_tdep_h): Define.
1246         (mips-tdep.o): Add mips_tdep_h to dependency list.
1247         * mips-tdep.h: New file.
1248         * mips-tdep.c (mips-tdep.h): Include.
1249         (enum mips_abi): Move to mips-tdep.h.
1250         (mips_abi): New function.
1251
1252 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1253
1254         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1255
1256 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1257
1258         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1259         function.
1260         (lookup_symbol_aux_minsyms): New function.
1261
1262 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1263
1264         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1265
1266 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1267
1268         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1269         which is an obsolete macro name.
1270
1271 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1272
1273         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1274         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1275
1276 2002-12-03  H.J. Lu  (hjl@gnu.org)
1277
1278         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1279         (create_breakpoints): Make sure the addr_string field is not
1280         NULL.
1281
1282 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1283
1284         * sparc-nat.c (fetch_inferior_registers)
1285         (store_inferior_registers): Add comment on problem of LWP vs
1286         threads.
1287         
1288         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1289         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1290         (lin_lwp_store_registers): Remove.
1291         (init_lin_lwp_ops): Use fetch_inferior_registers
1292         and store_inferior_registers directly.
1293         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1294         (store_inferior_registers): Likewise.
1295         Fix PR gdb/725.
1296
1297 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1298
1299         * frame.h (get_frame_id): Convert to a function.
1300         (null_frame_id, frame_id_p): Declare.
1301         (frame_id_eq, frame_id_inner): Declare.
1302         (frame_id_build): New function.
1303         * frame.c (get_frame_id): Update.  Use null_frame_id.
1304         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1305         frame_id_inner.
1306         (null_frame_id, frame_id_p): Define.
1307         (frame_id_eq, frame_id_inner): Define.
1308         (frame_id_build): New function.
1309         * varobj.c (varobj_create): Update.
1310         (varobj_update): Update.
1311         * valops.c (value_assign): Update.
1312         (new_root_variable): Update.
1313         * infrun.c (save_inferior_status): Update.
1314         * breakpoint.c (watch_command_1): Update.
1315
1316 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1317
1318         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1319         (SNAP2): Likewise.
1320
1321 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1322
1323         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1324         patch.
1325
1326         * PROBLEMS: Mention PR gdb/725.
1327
1328 2002-12-03  Andreas Schwab  <schwab@suse.de>
1329
1330         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1331
1332 2002-12-02  Adam Fedor  <fedor@gnu.org>
1333             Klee Dienes  <kdienes@apple.com>
1334
1335         * objc-lang.c (objc_printstr): Add width arg to match
1336         printstr prototype.
1337         (compare_selectors): Add 'const' to arg types.
1338         (compare_classes): Likewise.
1339         (find_imps): Cast msym pointer to avoid compiler warning.
1340         (print_object_command): Validate the address before
1341         passing it to the print routine.
1342         (find_objc_msgcall_submethod): Change function argument to
1343         return an int.
1344         * objc-lang.h: Add 'extern' to all function declarations.
1345         (value_nsstring): Add declaration.
1346
1347 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1348
1349         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1350         Fixes a build failure on HP/UX.
1351
1352         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1353         failure on HP/UX. 
1354         (hpread_has_name): Advance declaration to avoid a compilation warning.
1355         (pst_syms_count): Add missing variable type. By change, the compiler
1356         was defaulting to int, which seems a good choice. Fixes a compilation
1357         warning.
1358         (pst_syms_size): Likewise.
1359  
1360 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1361
1362         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1363         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1364         later to set the proper gdbarch methods depending on the osabi.
1365         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1366
1367 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1368
1369         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1370         * osabi.c (gdb_osabi_name): Add strings images for the two new
1371         enum values.
1372         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1373
1374 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1375
1376         * MAINTAINERS (Java): Global maintainers are responible for Java.
1377         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1378         part Java maintainers.
1379
1380 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1381
1382         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1383         Fixes a compilation failure on AiX.
1384
1385 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1386
1387         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1388         why aix-thread.o is not listed.
1389
1390 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1391
1392         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1393         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1394         * gdbarch.h, gdbarch.c: Re-generate.
1395         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1396         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1397         * config/pa/tm-hppa.h, frame.h: Update.
1398         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1399         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1400         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1401         * cris-tdep.c, alpha-tdep.c: Update.
1402         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1403         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1404         (get_prev_frame): Ditto.
1405
1406 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1407
1408         * exec.c (xfer_memory): Replace boolean with int.
1409         * p-exp.y: Use 0 instead of false.
1410         * corelow.c (gdb_check_format): Change return type to int from
1411         boolean.
1412         * utils.c: Don't include <curses.h> or <term.h> first.
1413
1414 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1415
1416         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1417         (m68hc11_register_byte): Remove.
1418         (m68hc11_gdbarch_init): Don't set the above.
1419
1420 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1421
1422         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1423         by calling get_selected_frame.
1424         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1425         set_current_frame, create_new_frame, select_frame and
1426         get_current_frame.
1427         * remote-e7000.c (e7000_start_remote): Ditto.
1428         * remote-mips.c (common_open): Ditto
1429         * remote-rdp.c (remote_rdp_open): Ditto.
1430
1431 2002-11-29  Andreas Schwab  <schwab@suse.de>
1432
1433         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1434         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1435         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1436         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1437         read_memory_unsigned_integer instead of read_memory_integer when
1438         dealing with addresses and instruction opcodes.
1439         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1440         (m68k_linux_frame_saved_pc): Likewise.
1441
1442 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1443
1444         * stack.c (selected_frame, select_frame): Move from here ...
1445         * frame.c (selected_frame, select_frame): ... to here.  Include
1446         "language.h".
1447         * Makefile.in (frame.o): Update dependencies.
1448         * frame.c (get_selected_frame): New function.
1449         * frame.h (get_selected_frame): Declare.
1450         (deprecated_selected_frame): Rename selected_frame.
1451         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1452         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1453         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1454         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1455         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1456         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1457         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1458         * z8k-tdep.c, cli/cli-cmds.c: Update.
1459         
1460 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1461
1462         * frame.h (get_selected_block): Add comments.
1463
1464 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1465
1466         * frame.c (pc_notcurrent): New function.
1467         (find_frame_sal): New function.
1468         * frame.h (find_frame_sal): Declare.
1469         (struct symtab_and_line): Add opaque declaration.
1470         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1471         find_pc_line.
1472         (frame_info): Ditto.
1473         * ada-lang.c (find_printable_frame): Ditto.
1474
1475 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1476
1477         * configure.in: Check that the pthdebug library is recent enough
1478         before enabling thread support on native AiX.
1479         * configure: Regenerate.
1480
1481         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1482         from the list of object files as it is now appended by configure
1483         if thread support is enabled.
1484         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1485         if thread support is enabled.
1486
1487 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1488
1489         * stack.c (get_selected_block): In-line get_current_block.
1490         * frame.h (get_current_block): Delete declaration.
1491         * blockframe.c (get_current_block): Delete function.
1492
1493 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1494
1495         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1496         USE_GENERIC_DUMMY_FRAMES.
1497         * gdbarch.h, gdbarch.c: Regenerate.
1498         * valops.c, frame.c: Update.
1499         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1500         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1501         * config/pa/tm-hppa.h, blockframe.c: Update.
1502         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1503         * m68k-tdep.c, alpha-tdep.c: Ditto.
1504
1505         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1506         * mips-tdep.c: Ditto.
1507
1508 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1509
1510         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1511         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1512         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1513         * gdbarch.c, gdbarch.h: Re-generate.
1514         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1515         (CALL_DUMMY_LOCATION): Delete macro definition.
1516         (PC_IN_CALL_DUMMY): Delete macro definitions.
1517         
1518         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1519         default is already generic_pc_in_call_dummy.
1520         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1521         * v850-tdep.c (v850_gdbarch_init): Ditto.
1522         * sh-tdep.c (sh_gdbarch_init): Ditto.
1523         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1524         * mips-tdep.c (mips_gdbarch_init): Ditto.
1525         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1526         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1527         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1528         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1529         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1530         * avr-tdep.c (avr_gdbarch_init): Ditto.
1531         
1532         * arm-tdep.c (arm_gdbarch_init): Do not set
1533         use_generic_dummy_frames, default is already 1.
1534         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1535         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1536         * v850-tdep.c (v850_gdbarch_init): Ditto.
1537         * sh-tdep.c (sh_gdbarch_init): Ditto.
1538         * s390-tdep.c (s390_gdbarch_init): Ditto.
1539         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1540         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1541         * mips-tdep.c (mips_gdbarch_init): Ditto.
1542         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1543         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1544         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1545         * i386-tdep.c (i386_gdbarch_init): Ditto.
1546         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1547         * frv-tdep.c (frv_gdbarch_init): Ditto.
1548         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1549         * cris-tdep.c (cris_gdbarch_init): Ditto.
1550         * avr-tdep.c (avr_gdbarch_init): Ditto.
1551
1552         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1553         call_dummy_location, default is already AT_ENTRY_POINT.
1554         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1555         * v850-tdep.c (v850_gdbarch_init): Ditto.
1556         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1557         * sh-tdep.c (sh_gdbarch_init): Ditto.
1558         * s390-tdep.c (s390_gdbarch_init): Ditto.
1559         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1560         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1561         * mips-tdep.c (mips_gdbarch_init): Ditto.
1562         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1563         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1564         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1565         * i386-tdep.c (i386_gdbarch_init): Ditto.
1566         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1567         * frv-tdep.c (frv_gdbarch_init): Ditto.
1568         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1569         * cris-tdep.c (cris_gdbarch_init): Ditto.
1570         * avr-tdep.c (avr_gdbarch_init): Ditto.
1571         * arm-tdep.c (arm_gdbarch_init): Ditto.
1572         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1573
1574 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1575
1576         * frame.h: Update comments on set_current_frame, create_new_frame,
1577         flush_cached_frames, reinit_frame_cache, select_frame and
1578         selected_frame.
1579         
1580 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1581
1582         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1583         deprecated pc_in_call_dummy function.
1584         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1585         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1586         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1587         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1588         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1589
1590 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1591
1592         * Makefile.in: Remove Tix dependencies.
1593         * acinclude.m4: Ditto.
1594         * aclocal.m4: Ditto.
1595         * configure.in: Ditto.
1596         * configure: Regenerated.
1597         
1598 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1599
1600         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1601         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1602         * gdbarch.c: Re-generate.
1603         
1604 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1605
1606         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1607         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1608         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1609         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1610         pc_in_call_dummy_at_entry_point.
1611         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1612         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1613         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1614         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1615         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1616         pc_in_call_dummy_on_stack.
1617         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1618         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1619         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1620         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1621         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1622         
1623 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1624
1625         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1626         pc_in_call_dummy_before_text_end
1627         (deprecated_pc_in_call_dummy_after_text_end): Rename
1628         pc_in_call_dummy_after_text_end.
1629         (deprecated_pc_in_call_dummy_on_stack): Rename
1630         pc_in_call_dummy_on_stack.
1631         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1632         pc_in_call_dummy_at_entry_point.
1633         * m68k-tdep.c (m68k_gdbarch_init): Update.
1634         * s390-tdep.c (s390_gdbarch_init): Update.
1635         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1636         * vax-tdep.c (vax_gdbarch_init): Update.
1637         * sparc-tdep.c (sparc_gdbarch_init): Update.
1638         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1639         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1640         * i386-tdep.c (i386_gdbarch_init): Update.
1641         * frv-tdep.c (frv_gdbarch_init): Update.
1642         * cris-tdep.c (cris_gdbarch_init): Update.
1643         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1644         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1645         (deprecated_pc_in_call_dummy_after_text_end)
1646         (deprecated_pc_in_call_dummy_on_stack)
1647         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1648         * alpha-tdep.c (alpha_gdbarch_init): Update.
1649
1650 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1651
1652         * acconfig.h (HAVE_PREAD64): Add.
1653         * configure.in: Check for pread64.
1654         * config.in: Regenerated.
1655         * configure: Regenerated.
1656         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1657         * linux-proc.c (linux_proc_xfer_memory): New function.
1658         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1659
1660 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1661
1662         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1663         pdi's with no name.
1664
1665 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1666
1667         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1668         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1669
1670 2002-11-25  Jim Blandy  <jimb@redhat.com>
1671
1672         * symfile.c (init_objfile_sect_indices): New function.
1673         (default_symfile_offsets): Move the section-index-initializing
1674         stuff into init_objfile_sect_indices, and call that.
1675
1676         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1677         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1678
1679         * symfile.c (syms_from_objfile): Adjust indentation.
1680
1681         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1682         || info_verbose isn't true.
1683
1684 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1685
1686         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1687         default to get_frame_base.
1688         * gdbarch.h, gdbarch.c: Regenerate.
1689         * arch-utils.c (default_frame_address): Delete function.
1690         * arch-utils.h (default_frame_address): Delete declaration
1691
1692 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1693
1694         * varobj.c (find_frame_addr_in_frame_chain):
1695         Use get_frame_base instead of FRAME_FP,
1696         obvious fix.
1697
1698 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1699
1700         * frame.h (FRAME_FP): Delete macro.
1701         (get_frame_base): New function declaration.
1702         * frame.c (get_frame_base): New function.
1703         (get_frame_id): Use ->frame.
1704         (frame_find_by_id): Rewrite to use get_frame_id.
1705         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1706         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1707         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1708         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1709         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1710         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1711         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1712
1713 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1716
1717 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1718
1719         * frame.c (set_unwind_by_pc): Revert change below, use
1720         PC_IN_CALL_DUMMY.
1721         (get_prev_frame): Ditto.
1722
1723 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1724
1725         * dummy-frame.c (pc_in_dummy_frame): New function.
1726         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1727         (find_dummy_frame): Update comment.
1728         (generic_pop_current_frame): Use get_frame_type.
1729         * dummy-frame.h (pc_in_dummy_frame): Declare.
1730         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1731         (create_new_frame): Use pc_in_dummy_frame.
1732         (get_prev_frame): Use pc_in_dummy_frame.
1733         (frame_saved_regs_register_unwind): Use get_prev_frame.
1734         (deprecated_generic_get_saved_register): Use get_prev_frame.
1735
1736 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1737
1738         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1739         from here ...
1740         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1741         (varobj_create): Note that frame ID should be used.
1742         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1743
1744 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1745
1746         * breakpoint.c: Include "gdb_assert.h".
1747         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1748         not being used.
1749         * Makefile.in (breakpoint.o): Update dependencies.
1750         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1751         deprecated_frame_in_dummy.
1752         * stack.c (print_frame_info_base): Ditto.
1753         (frame_info): Ditto.
1754         (print_frame_info_base): Ditto.  Delete dead code.
1755         
1756 2002-11-23  Andreas Schwab  <schwab@suse.de>
1757
1758         * Makefile.in (m68k_tdep_h): Define.
1759         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1760         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1761         * m68k-tdep.c: Move register number enum ...
1762         * m68k-tdep.h: ... to this new file and rename the constants from
1763         E_* to M68K_*.  All uses changed.
1764         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1765         * abug-rom.c: Include "m68k-tdep.h".  Use
1766         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1767         * cpu32bug-rom.c: Likewise.
1768         * dbug-rom.c: Likewise.
1769         * m68k-tdep.c: Likewise.
1770         * m68klinux-nat.c: Likewise.
1771         * remote-est.c: Likewise.
1772         * rom68k-rom.c: Likewise.
1773         * config/m68k/tm-linux.h: Likewise.
1774
1775 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1776
1777         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1778         dummy frame initialization code.
1779         * mips-tdep.c (mips_gdbarch_init): Ditto.
1780
1781 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1782
1783         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1784         attach will hang.
1785
1786 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1787
1788         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1789         to default_frame_address.
1790         * gdbarch.h, gdbarch.c: Re-generate.
1791
1792         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1793         or frame_locals_address to default_frame_address.
1794         * m68k-tdep.c (m68k_gdbarch_init): Update.
1795         * i386-tdep.c (i386_gdbarch_init): Update.
1796         * frv-tdep.c (frv_gdbarch_init): Update.
1797         * sh-tdep.c (sh_gdbarch_init): Update.
1798         * v850-tdep.c (v850_gdbarch_init): Update.
1799         * sparc-tdep.c (sparc_gdbarch_init): Update.
1800         * mips-tdep.c (mips_gdbarch_init): Update.
1801         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1802         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1803         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1804
1805         * cris-tdep.c (cris_frame_args_address): Delete function.
1806         (cris_frame_locals_address): Delete function.
1807         (cris_gdbarch_init): Do not set frame_args_address or
1808         frame_locals_address.
1809
1810 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1811
1812         * thread-db.c (thread_db_load): Tell the user what's going on
1813         if dlopen fails on libthread_db.
1814
1815 2002-11-23  Andreas Schwab  <schwab@suse.de>
1816
1817         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1818         invariant return values.
1819
1820 2002-11-22  Andreas Schwab  <schwab@suse.de>
1821
1822         * valops.c (value_slice): Move declaration of `offset' to avoid
1823         warning.
1824
1825 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1826
1827         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1828         (struct so_stuff): Add end_addr field.
1829         (register_loaded_dll): Calculate and store end address of loaded dll.
1830         (solib_address): New function.
1831         (child_solib_loaded_library_pathname): Pass carefully constructed
1832         section info to safe_symbol_file_add rather than ignoring it.
1833         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1834         DLL is loaded.
1835         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1836         (child_create_inferior): Fix a compiler warning.
1837         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1838         (solib_address): Declare new function.
1839
1840 2002-11-22  Andreas Schwab  <schwab@suse.de>
1841
1842         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1843         and FPS registers.
1844
1845 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1846
1847         * maint.c (_initialize_maint_cmds): Fix typo.  From
1848         Francesco Potorti` <pot@gnu.org>.
1849
1850 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1851
1852         * mips-tdep.c (mips_dump_tdep): Delete references to
1853         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1854         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1855         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1856         * printcmd.c (build_address_symbolic): Delete calls to
1857         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1858         (address_info): Ditto.
1859         Fix PR gdb/773.
1860         
1861 2002-11-19  Klee Dienes  <kdienes@apple.com>
1862             Adam Fedor  <fedor@gnu.org>
1863
1864         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1865         the ability to explicitly specify the quote characters and word
1866         break characters; if NULL is specified for either, use the old
1867         behavior of using the characters used by the completer.
1868         (skip_chars): New function.  Convenience wrapper around
1869         skip_quoted_chars to provide the original skip_chars behavior.
1870         * completer.h (skip_quoted_chars): Add prototype.
1871
1872 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1873
1874         Problems reported by Paul Eggert.
1875         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1876
1877 2002-11-19  Andreas Schwab  <schwab@suse.de>
1878
1879         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1880         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1881         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1882         (m68k_linux_frame_saved_pc): Move to ...
1883         * m68klinux-tdep.c: ... here.  New file.
1884         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1885         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1886
1887 2002-11-19  Adam Fedor  <fedor@gnu.org>
1888
1889         * objc-exp.y: Revert to old skip_quoted usage.
1890
1891 2002-11-19  Adam Fedor  <fedor@gnu.org>
1892
1893         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1894         (objc_lang_h): Define.
1895         (YYFILES): Add objc-exp.tab.c.
1896         (local-maintainer-clean): Remove objc-exp.tab.c.
1897         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1898         
1899 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1900
1901         * p-exp.y (typecast rule): Add automatic dereference of
1902         pascal classes if needed.
1903         (THIS): Set current_type.
1904         Automatically dereference pascal classes. 
1905         (typebase rule): Add ^typebase recognition.
1906
1907 2002-11-18  Adam Fedor  <fedor@gnu.org>
1908
1909         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1910         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1911         (op_name): Handle OP_OBJC_SELF.
1912         * Makefile.in (expprint.o): Add additional depends.
1913
1914 2002-11-18  Adam Fedor  <fedor@gnu.org>
1915
1916         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1917         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1918         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1919         * objc-exp.y: Likewise. 
1920
1921 2002-11-18  Adam Fedor  <fedor@gnu.org>
1922
1923         * gdb/parser-defs.h: (struct objc_class_str): New structure
1924         for parsing ObjC classes.
1925
1926 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1927
1928         * stack.c (frame_relative_level): Copy function from here ...
1929         * frame.c (frame_relative_level): ...to here.
1930
1931 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1932
1933         * frame.h (enum frame_type): Define.
1934         (get_frame_type): Declare.
1935         (struct frame_info): Add field `type'.  Delete field
1936         signal_handler_caller.
1937         (deprecated_set_frame_signal_handler_caller): Declare.
1938         * frame.c (get_frame_type): New function.
1939         (deprecated_set_frame_type): New function.
1940         (create_new_frame): Set the frame's type.
1941         (get_prev_frame): Similar.
1942         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1943         * s390-tdep.c: Ditto.
1944         * m68klinux-nat.c: Ditto.
1945         * ns32k-tdep.c: Ditto.
1946         * x86-64-linux-tdep.c: Ditto.
1947         * vax-tdep.c: Ditto.
1948         * rs6000-tdep.c: Ditto.
1949         * ppc-linux-tdep.c: Ditto.
1950         * i386-interix-tdep.c: Ditto.
1951         * mips-tdep.c: Ditto.
1952         * m68k-tdep.c: Ditto.
1953         * hppa-tdep.c: Ditto.
1954         * ia64-tdep.c: Ditto.
1955         * cris-tdep.c: Ditto.
1956         * arm-tdep.c: Ditto.
1957         * alpha-tdep.c: Ditto.
1958         * i386-tdep.c: Ditto.
1959         * stack.c: Ditto.
1960         * ada-lang.c: Ditto.
1961         * blockframe.c: Update.
1962         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1963         deprecated_set_frame_type instead of signal_handler_caller.
1964         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1965         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1966         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1967
1968 2002-11-18   Klee Dienes  <kdienes@apple.com>
1969
1970         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1971
1972 2002-11-18  Klee Dienes  <kdienes@apple.com>
1973
1974         * buildsym.c (pop_context): Add comment.
1975         
1976 2002-11-18  Klee Dienes  <kdienes@apple.com>
1977
1978         * buildsym.h (pop_context): Convert to function, defined in
1979         buildsym.c.
1980         * buildsym.c: Include gdb_assert.h.
1981         (pop_context): Implement as C function.  Add check for stack
1982         underflow.
1983         * dbxread.c (process_one_symbol): Complain and stop processing
1984         that symbol if we are already at the top of the context stack for
1985         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1986         when processing N_RBRAC.
1987
1988 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1989
1990         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1991         define.
1992         (struct target_waitstatus): Add opaque definition.
1993         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1994         * exec.c (init_exec_ops): Likewise.
1995         * fork-child.c (clone_and_follow_inferior): Remove.
1996         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1997         * inferior.h (clone_and_follow_inferior): Remove prototype.
1998         * infrun.c (follow_fork_mode_both): Remove.
1999         (follow_fork_mode_kind_names): Remove commented out "both".
2000         (follow_inferior_fork): Remove follow_fork_mode_both support.
2001         * inftarg.c (child_clone_and_follow_inferior): Remove.
2002         (child_post_follow_inferior_by_clone): Remove.
2003         (init_child_ops): Don't set to_clone_and_follow_inferior
2004         or to_post_follow_inferior_by_clone.
2005         * target.c (default_clone_and_follow_inferior): Remove.
2006         (cleanup_target): Don't set to_clone_and_follow_inferior
2007         or to_post_follow_inferior_by_clone.
2008         (find_default_clone_and_follow_inferior): Remove.
2009         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2010         (debug_to_clone_and_follow_inferior): Remove.
2011         (debug_to_post_follow_inferior_by_clone): Remove.
2012         (setup_target_debug): Don't set to_clone_and_follow_inferior
2013         or to_post_follow_inferior_by_clone.
2014         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2015         and to_post_follow_inferior_by_clone.
2016         (child_clone_and_follow_inferior): Remove prototype.
2017         (child_post_follow_inferior_by_clone): Remove prototype.
2018         (target_clone_and_follow_inferior): Remove macro.
2019         (target_post_follow_inferior_by_clone): Remove macro.
2020         (find_default_clone_and_follow_inferior): Remove prototype.
2021
2022 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2023
2024         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2025         inferior_has_vforked, and inferior_has_execd instead of
2026         target_has_forked, target_has_vforked, and target_has_execd.
2027         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2028         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2029         (CHILD_WAIT): Define.
2030         (child_wait): Add prototype.
2031         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2032         Add prototype.
2033         (hpux_has_vforked): Likewise, from child_has_vforked.
2034         (hpux_has_execd): Likewise, from child_has_execd.
2035         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2036         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2037         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2038         and hpux_has_syscall_event instead of the target hooks.
2039         * infrun.c (inferior_has_forked, inferior_has_vforked)
2040         (inferior_has_execd): New functions.
2041         * inftarg.c (not_same_real_pid): Remove.
2042         (child_wait): Remove references to not_same_real_pid,
2043         target_has_forked, target_has_vforked, target_has_execd,
2044         and target_has_syscall_event.
2045         (child_has_forked, child_has_vforked, child_has_execd)
2046         (child_has_syscall_event): Remove.
2047         (init_child_ops): Remove references to child_has_forked,
2048         child_has_vforked, child_has_execd, and child_has_syscall_event.
2049         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2050         (hpux_has_vforked): Likewise, from child_has_vforked.
2051         (hpux_has_execd): Likewise, from child_has_execd.
2052         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2053         * target.c (cleanup_target): Remove references to
2054         to_has_forked, to_has_vforked, to_has_execd, and
2055         to_has_syscall_event.
2056         (update_current_target): Likewise.
2057         (setup_target_debug): Likewise.
2058         (debug_to_has_forked): Remove.
2059         (debug_to_has_vforked): Remove.
2060         (debug_to_has_execd): Remove.
2061         (debug_to_has_syscall_event): Remove.
2062         * target.h (struct target_ops): Remove to_has_forked.
2063         to_has_vforked, to_has_execd, and to_has_syscall_event.
2064         (child_has_forked, child_has_vforked, child_has_execd)
2065         (child_has_syscall_event): Remove prototypes.
2066         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2067         prototypes.
2068         (target_has_forked, target_has_vforked, target_has_execd)
2069         (target_has_syscall_event): Remove macros.
2070
2071 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2072
2073         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2074         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2075         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2076         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2077         * target.c (cleanup_target): Remove reference to
2078         to_can_follow_vfork_prior_to_exec.
2079         (update_current_target): Likewise.
2080         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2081         (setup_target_debug): Remove reference to
2082         to_can_follow_vfork_prior_to_exec.
2083         * target.h (struct target_ops): Remove
2084         to_can_follow_vfork_prior_to_exec.
2085         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2086         (target_can_follow_vfork_prior_to_exec): Remove definition.
2087         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2088         define.
2089         * infrun.c (follow_vfork_when_exec): Remove.
2090         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2091         (follow_exec): Likewise.
2092         (handle_inferior_event): Likewise.
2093         (keep_going): Likewise.
2094
2095 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2096
2097         * frame.c (generic_unwind_get_saved_register): Make static.
2098         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2099         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2100         defaults to generic_unwind_get_saved_register.
2101         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2102         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2103         * frv-tdep.c (frv_gdbarch_init): Ditto.
2104         * i386-tdep.c (i386_gdbarch_init): Ditto.
2105         * s390-tdep.c (s390_gdbarch_init): Ditto.
2106         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2107         * v850-tdep.c (v850_gdbarch_init): Ditto.
2108         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2109         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2110         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2111
2112 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2113
2114         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2115         i386-tdep.c.
2116
2117 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2118
2119         * frame.h (sigtramp_saved_pc): Delete declaration.
2120         * blockframe.c (sigtramp_saved_pc): Delete function.
2121         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2122         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2123         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2124         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2125
2126 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2127
2128         * frame.c (frame_pc_unwind): New function.
2129         (frame_saved_regs_pc_unwind): New function.
2130         (frame_register_unwind): Pass unwind_cache instead of
2131         register_unwind_cache.
2132         (set_unwind_by_pc): Add unwind_pc parameter, set.
2133         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2134         (get_prev_frame): Ditto.
2135         * frame.h (frame_pc_unwind_ftype): Declare.
2136         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2137         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2138         (frame_pc_unwind): Declare.
2139         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2140         (struct dummy_frame): Add comment mentioning that values are for
2141         previous frame.
2142         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2143         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2144         (generic_file_frame_chain_valid): Ditto.
2145         * stack.c (frame_info): Ditto.
2146
2147 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2148
2149         * linespec.c (locate_first_half): New function.
2150         (decode_line_1): Move code into locate_first_half.
2151
2152 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2153
2154         * complaints.h: Add comment explaining how to eliminate a
2155         deprecated_complain call.
2156         * complaints.h: Fix spelling errors.
2157
2158 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2159
2160         * printcmd.c: Remove #include "disasm.h".
2161
2162 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2163
2164         * frame.h: Move the most relevant interface functions to the start
2165         of the file.
2166
2167 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2168
2169         * regcache.h (deprecated_registers): Rename registers.
2170         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2171         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2172         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2173         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2174         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2175         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2176         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2177         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2178         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2179         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2180         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2181         * v850ice.c: Update.
2182
2183 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2184
2185         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2186         NULL buffer.
2187
2188 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2189
2190         * regcache.h (deprecated_read_register_bytes): Rename
2191         read_register_bytes.
2192         (deprecated_write_register_bytes): Rename write_register_bytes.
2193         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2194         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2195         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2196         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2197         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2198         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2199         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2200         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2201         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2202         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2203         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2204         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2205         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2206         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2207
2208 2002-11-13  Jim Blandy  <jimb@redhat.com>
2209
2210         * findvar.c (read_var_value): Doc fix.
2211
2212 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2213
2214         * regcache.c (struct regcache): Replace passthough_p with
2215         readonly_p.
2216         (regcache_xmalloc): Initialize readonly_p.
2217         (build_regcache): Initialize readonly_p.
2218         (regcache_save): New function.
2219         (regcache_restore): New function.
2220         (regcache_cpy): Re-implement using regcache_save and
2221         regcache_restore.
2222         (regcache_raw_read): Update.
2223         (regcache_cooked_read): When a read-only cache, checked for cached
2224         pseudo register values.
2225         (regcache_raw_write): Assert that the cache is not read-only.
2226         Remove code handling a non-passthrough cache.
2227         * regcache.h (regcache_save): Declare.
2228         (regcache_restore): Declare.
2229
2230 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2231
2232         * regcache.c (struct regcache_descr): Add fields
2233         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2234         (init_legacy_regcache_descr): Compute the size of a cooked
2235         register cache and then assign that to sizeof_raw_registers.  Set
2236         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2237         (init_legacy_regcache_descr): Ditto.
2238
2239 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2240
2241         * regcache.c (register_buffer): Move to near start of file, update
2242         description.
2243         (regcache_raw_read): Use.
2244         (regcache_raw_write): Use.
2245         (struct regcache): Rename raw_registers to registers and
2246         raw_register_valid_p to register_valid_p.
2247         (regcache_xmalloc): Update.
2248         (regcache_xfree): Update.
2249         (register_buffer): Update.
2250         (regcache_cpy): Update.
2251         (regcache_cpy_no_passthrough): Update.
2252         (regcache_valid_p): Update.
2253         (deprecated_grub_regcache_for_registers): Update.
2254         (deprecated_grub_regcache_for_register_valid): Update.
2255         (set_register_cached): Update.
2256         (regcache_raw_write): Update.
2257
2258 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2259
2260         * p-exp.y (name_not_typename): Use copy_name to
2261         set current_type variable for fields of THIS.
2262
2263 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2264
2265         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2266         * monitor.c (init_base_monitor_ops): Likewise.
2267         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2268         * remote-array.c (init_array_ops): Likewise.
2269         * remote-e7000.c (init_e7000_ops): Likewise.
2270         * remote-es.c (init_es1800_ops): Likewise.
2271         (init_es1800_child_ops): Likewise.
2272         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2273         * remote-sim.c (init_gdbsim_ops): Likewise.
2274         * remote-st.c (init_st2000_ops): Likewise.
2275         * sol-thread.c (init_sol_core_ops): Likewise.
2276         (init_sol_thread_ops): Likewise.
2277         * v850ice.c (init_850ice_ops): Likewise.
2278         * win32-nat.c (init_child_ops): Likewise.
2279         * wince.c (init_child_ops): Likewise.
2280
2281 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2282
2283         * utils.c (gdb_realpath): Make rp a constant pointer.
2284
2285 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2286
2287         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2288         a constant buffer; cannonicalize_file_name(); realpath() with a
2289         pathconf() defined buffer, xstrdup().
2290
2291 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2294         to hang2.C; hang3.c to hang3.C.
2295
2296 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2297
2298         * findvar.c (read_var_value): Reenable TLS code.
2299
2300 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2301             Jim Blandy  <jimb@redhat.com>
2302         
2303         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2304         * target.c (update_current_target): Add
2305         to_get_thread_local_address.
2306         * target.h (to_get_thread_local_address): Export.
2307         (target_get_thread_local_address): Define.
2308         (target_get_thread_local_address_p): Define.
2309         * thread-db.c: Include solib-svr4.h.
2310         (td_thr_tls_get_addr_p): Define.
2311         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2312         (thread_db_get_thread_local_address): New function.
2313         (init_thread_db_ops): Initialize to_get_thread_local_address.
2314         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2315         * configure: Regenerate.
2316         * config.in: Regenerate.
2317
2318 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2319
2320         * linespec.c (set_flags): New function.
2321         (decode_line_1): Move code into set_flags.
2322
2323 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2324
2325         * linespec.c (decode_line_1): Move chunks of code to separate
2326         functions.
2327         (initialize_defaults): New function.
2328         (decode_indirect): New function.
2329
2330 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2331
2332         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2333         instead of void_code_ptr.
2334         (sigtramp_saved_pc): Ditto.
2335
2336         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2337         i386_fp_regnum_p.
2338
2339 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2340
2341         * gdbtypes.h (struct main_type): Move artificial flag out of
2342         loc.  New member of ``struct field'' named static_kind.  Reduce
2343         overloaded meaning of bitsize.
2344         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2345         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2346         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2347
2348         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2349         new fields.
2350         (template_to_fixed_record_type, template_to_static_fixed_type)
2351         (to_record_with_fixed_variant_part): Likewise.
2352         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2353         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2354         * dwarfread.c (struct_type, enum_type): Likewise.
2355         * hpread.c (hpread_read_enum_type)
2356         (hpread_read_function_type, hpread_read_doc_function_type)
2357         (hpread_read_struct_type): Likewise.
2358         * mdebugread.c (parse_symbol): Likewise.
2359
2360 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2361
2362         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2363         * stack.c (print_frame_info_base): Update.
2364         (print_frame_info_base, frame_info): Update.
2365         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2366         (sparc_frame_saved_pc): Update.
2367         * ada-lang.c (find_printable_frame): Update.
2368         * breakpoint.c (deprecated_frame_in_dummy): Update.
2369         
2370 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2371
2372         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2373         defined.
2374         (regmap): Extend to cover all registers.
2375         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2376         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2377         definitions.
2378         (fetch_register, sore_register): Simplify.
2379         (old_fetch_inferior_registers, old_store_inferior_registers):
2380         Remove functions.
2381         (cannot_fetch_register, cannot_store_register): Change
2382         implementation to use regmap array to decide which registers
2383         cannot be fetched/stored.  This removes $orig_eax from the
2384         registers that cannot be fetched/stored.
2385         (fetch_inferior_registers): Call fetch_register directly instead
2386         of calling old_fetch_inferior_registers.
2387         (store_inferior_registers): Call store_register directly instead
2388         of calling old_store_inferior_registers.
2389         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2390         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2391         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2392
2393 2002-11-09  Klee Dienes  <kdienes@apple.com>
2394
2395         * i387-tdep.c (i387_supply_register): When called with NULL as a
2396         buffer, mark the register as not provided (to mirror the behavior
2397         of supply_register).
2398         (i387_supply_fxsave): Ditto.
2399         (i387_supply_fsave): Ditto (inherits the behavior from
2400         i387_supply_register).
2401
2402 2002-11-09  Klee Dienes  <kdienes@apple.com>
2403
2404         * blockframe.c (sigtramp_saved_pc): Use
2405         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2406         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2407         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2408         
2409 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2410
2411         * frame.c (get_prev_frame): Test prev_p to identify a previously
2412         unwound frame.  Initialize prev_p.
2413         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2414         comment.
2415
2416 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2417
2418         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2419         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2420         more comments.  Zap dead code.
2421
2422 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2423
2424         * infcmd.c (print_vector_info, print_float_info): Move code that
2425         checks whether the target has any registers and whether there is a
2426         selected frame up, such that it is also used if a target provides
2427         multi-arch definitions of these functions.
2428
2429 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2430
2431         * Makefile.in (DESTDIR): Define.
2432         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2433         prefix.
2434
2435         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2436         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2437
2438 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2439
2440         * i386-linux-tdep.c: Include "reggroups.h".
2441         (i386_linux_register_reggroup_p): New function.
2442         (i386_linux_init_abi): Set register_reggroup_p to
2443         i386_linux_register_reggroup_p.
2444         * i386-tdep.h (i386_register_reggroup_p): Declare.
2445         * i386-tdep.c: Include "reggroups.h".
2446         (i386_init_reggroups): New function.
2447         (i386_add_reggroups): New function.
2448         (i386_register_reggroup_p): New function.
2449         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2450         (_initialize_i386_tdep): Call i386_init_reggroups.
2451         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2452         specific reggroups.
2453
2454 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2455
2456         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2457         request that's available in *BSD.
2458
2459         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2460
2461         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2462         FDOFF_REGNUM.
2463
2464 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2465
2466         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2467         * dummy-frame.c (find_dummy_frame): Rename
2468         generic_find_dummy_frame, make static.  Return the dummy frame
2469         instead of the regcache.
2470         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2471         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2472         (dummy_frame_register_unwind): Rename
2473         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2474         * dummy-frame.h (dummy_frame_register_unwind): Rename
2475         generic_call_dummy_register_unwind.
2476
2477 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2478
2479         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2480         except the inclusion of "i386/tm-i386.h", to...
2481         * config/i386/nm-i386v42mp.h: ...here.
2482         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2483
2484 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2485
2486         * Makefile.in (frame.o): Update dependencies.
2487         * blockframe.c (current_frame, frame_obstack_alloc)
2488         (frame_saved_regs_zalloc, get_current_frame)
2489         (set_current_frame, create_new_frame)
2490         (set_unwind_by_pc, get_next_frame)
2491         (flush_cached_frames, reinit_frame_cache)
2492         (frame_saved_regs_register_unwind)
2493         (deprecated_generic_get_saved_register)
2494         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2495         (_initialize_blockframe): Move frame code from here...
2496         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2497         "annotate.h" and "dummy-frame.h".
2498         (_initialize_frame): New function.
2499
2500 2002-11-08  Jim Blandy  <jimb@redhat.com>
2501
2502         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2503         when we finish a function a context.
2504         * buildsym.h (outermost_context_p): New macro.
2505         (Bug analyzed by David Edelsohn.)
2506
2507 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2508
2509         * blockframe.c: Include "dummy-frame.h".
2510         (struct dummy_frame, dummy_frame_stack)
2511         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2512         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2513         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2514         (generic_save_call_dummy_addr, generic_pop_current_frame)
2515         (generic_pop_dummy_frame, generic_fix_call_dummy)
2516         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2517         dummy frame code from here...
2518         * dummy-frame.c: ...to here.  New file.
2519         * dummy-frame.h: New file.
2520         (generic_call_dummy_register_unwind): Declare.
2521         (generic_find_dummy_frame): Declare.
2522         * Makefile.in (SFILES): Add dummy-frame.c.
2523         (dummy-frame.o): Specify dependencies.
2524         (dummy_frame_h): Define.
2525         (COMMON_OBS): Add dummy-frame.o.
2526         (blockframe.o): Update dependencies.
2527
2528 2002-11-08  Jim Blandy  <jimb@redhat.com>
2529
2530         * dwarf2read.c (read_func_scope): Restore local_symbols and
2531         param_symbols after we finish the function context.  (Based on a
2532         patch from David Edelsohn.)
2533
2534 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2535
2536         * linespec.c (symbol_found): New function.
2537         (minsym_found): New function.
2538         (decode_line_1): Separate out some code into separate functions.
2539
2540 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2541
2542         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2543         the benefit of the interix target.
2544         * i386-tdep.h (i386_frameless_signal_p): Declare.
2545
2546 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2547
2548         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2549         declaration that snuck in from change below.
2550
2551 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2552
2553         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2554         all callers.
2555         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2556         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2557         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2558         (i386_mxcsr_regnum_p): new function.  Use instead of
2559         MXCSR_REGNUM_P.
2560         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2561         (i386_sse_regnum_p): Declare.
2562         (i386_mxcsr_regnum_p): Declare.
2563         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2564         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2565         (IS_FP_REGNUM): Update definition.
2566         (IS_FPU_CTRL_REGNUM): Update definition..
2567         (IS_SSE_REGNUM): Update definition..
2568         * i386v-nat.c (register_u_addr): Update.
2569         * go32-nat.c (fetch_register): Update.
2570         (store_register): Update.
2571
2572 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2573
2574         Preparation work to convert the hppa targets to multiarch partial.
2575
2576         * hppa-tdep.c: Add new functions replacing macro bodies from
2577         config/pa/tm-hppa.h. These function will be used to initialize
2578         the gdbarch structure. Import some comments from tm-hppa.h,
2579         and place them where appropriate, to avoid loosing them when
2580         we cleanup this file.
2581         (hppa_reg_struct_has_addr): New function.
2582         (hppa_inner_than): New function.
2583         (hppa_stack_align): New function.
2584         (hppa_pc_requires_run_before_use): New function.
2585         (hppa_instruction_nullified): New function.
2586         (hppa_register_byte): New function.
2587         (hppa_register_virtual_type): New function.
2588         (hppa_store_struct_return): New function.
2589         (hppa_cannot_store_register): New function.
2590         (hppa_frame_args_address): New function.
2591         (hppa_frame_locals_address): New function.
2592         (hppa_smash_text_address): New function.
2593         (hppa_coerce_float_to_double): New function. Requires the inclusion
2594         of "language.h".
2595
2596         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2597
2598         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2599         gdbarch-eligible macro to a call to the new associated function
2600         created in hppa-tdep.c.
2601         (INNER_THAN): Likewise.
2602         (STACK_ALIGN): Likewise.
2603         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2604         (INSTRUCTION_NULLIFIED): Likewise.
2605         (REGISTER_BYTE): Likewise.
2606         (REGISTER_VIRTUAL_TYPE): Likewise.
2607         (STORE_STRUCT_RETURN): Likewise.
2608         (CANNOT_STORE_REGISTER): Likewise.
2609         (FRAME_ARGS_ADDRESS): Likewise.
2610         (FRAME_LOCALS_ADDRESS): Likewise.
2611         (SMASH_TEXT_ADDRESS): Likewise.
2612         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2613         (ABOUT_TO_RETURN): Delete, as no longer used.
2614
2615 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2616
2617         * printcmd.c (disassemble_command): Remove obsolete function.
2618         (_initialize_printcmd): Do not create disassemble command here.
2619         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2620         disassemble command.
2621         (init_cli_cmds): Create disassemble command here instead.
2622
2623 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2624
2625         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2626
2627 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2628
2629         * regcache.h (regcache_cooked_read_using_offset_hack)
2630         (regcache_cooked_write_using_offset_hack): Delete declarations.
2631         (register_changed): Delete declaration.
2632         * regcache.c (regcache_cooked_read_using_offset_hack)
2633         (regcache_cooked_write_using_offset_hack): Delete functions.
2634         (cooked_xfer_using_offset_hack): Delete function.
2635         (register_changed): Delete function.
2636
2637 2002-11-07  Jim Blandy  <jimb@redhat.com>
2638
2639         * macroscope.c: #include "complaints.h".
2640         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2641         but not in the macro table.
2642         * Makefile.in (macroscope.o): Record dependency.
2643
2644 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2645
2646         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2647
2648 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2649
2650         * regcache.c (deprecated_registers_fetched): Update.
2651         * regcache.h (deprecated_registers_fetched): Rename
2652         registers_fetched.
2653         * remote-vxsparc.c (vx_read_register): Update.
2654         * remote-vxmips.c (vx_read_register): Update.
2655         * remote-vx68.c (vx_read_register): Update.
2656         * irix5-nat.c (fetch_core_registers): Update.
2657         * mipsm3-nat.c (fetch_inferior_registers): Update.
2658         * sun3-nat.c (fetch_inferior_registers): Update.
2659         * symm-nat.c (fetch_inferior_registers): Update.
2660         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2661         (fetch_core_registers): Update.
2662         (fetch_kcore_registers): Update.
2663         * mips-nat.c (fetch_inferior_registers): Update.
2664         * corelow.c (get_core_registers): Update.
2665         * a68v-nat.c (fetch_inferior_registers): Update.
2666
2667 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2668
2669         Put in place the framework necessary for multiarching the hppa targets.
2670         * hppa-tdep.c (hppa_gdbarch_init): New function.
2671         (hppa_dump_tdep): New function.
2672         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2673         tdep structure dumper.
2674         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2675         until the multi-arching conversion has partially been completed.
2676
2677 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2678
2679         * valops.c (value_assign): Merge lval_register case into
2680         lval_reg_frame_relative.  Use frame_register and
2681         regcache_cooked_write instead of get_saved_register and
2682         write_register_bytes.  After flushing the register cache, try to
2683         re-select the selected frame.
2684
2685 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2686
2687         * regcache.h (deprecated_register_valid): Rename register_valid.
2688         * regcache.c: Update.
2689         * ia64-aix-nat.c: Update.
2690         * i386gnu-nat.c: Update.
2691         * alpha-nat.c: Update.
2692         * sparc-nat.c: Update.
2693         * lynx-nat.c: Update.
2694         * remote-mips.c: Update.
2695
2696 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2697
2698         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2699         to end of file, to be more consistent with the pratice followed
2700         by other targets.
2701
2702 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2703
2704         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2705         (print_float_info): Print registers in float_reggroup.
2706         (print_vector_info): Print registers in vector_reggroup.
2707         (default_print_registers_info): When all, print registers in
2708         all_reggroup.  Otherwize, print registers in general_reggroup.
2709         (registers_info): Rewrite.  Add support for register groups.
2710         Eliminate a goto.
2711
2712 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2713
2714         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2715         ages.
2716         (symtab_symbol_info): Remove eons old ifdeffed out code.
2717         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2718         command.
2719
2720 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2721
2722         * c-exp.y: Add missing semi-colons.
2723         * f-exp.y: Add missing semi-colons.
2724         * m2-exp.y: Add missing semi-colons.
2725         * p-exp.y: Add missing semi-colons.
2726         Add empty action to start rule to avoid a type clash error when
2727         building with bison >= 1.50.
2728
2729 2002-11-06  Jim Blandy  <jimb@redhat.com>
2730
2731         * macrotab.h (struct macro_source_file): Doc fix.
2732
2733 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2734
2735         * varobj.c (child_exists, cplus_number_of_children): Change
2736         STREQ macro references to strcmp.
2737         (cplus_name_of_child): Change code to handle the fact that
2738         fields are not necessarily contiguous with regards to their 
2739         access control. This is a fix for PR gdb/792.
2740
2741 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2742
2743         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2744         * gdbarch.h, gdbarch.c: Regnerate.
2745         * frame.h (frame_register): Declare.
2746         * frame.c (frame_register): New function.
2747         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2748         GET_SAVED_REGISTER, otherwize call
2749         generic_unwind_get_saved_register.
2750         (frame_register_read): Use frame_register instead of
2751         get_saved_register.
2752
2753 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2754         
2755         From Jim Ingham  <jingham@apple.com>:
2756         * event-top.c (gdb_disable_readline): New function.
2757         (_initialize_event_loop): Move comment.
2758
2759 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2760
2761         * event-loop.c (start_event_loop): Add comment.
2762         Update copyright.
2763
2764 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2765
2766         * infcmd.c (default_print_registers_info): Do not call
2767         PRINT_REGISTER_HOOK.
2768
2769 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2770
2771         * sparc-tdep.c (sparc_print_register_hook): Make static.
2772         (sparc_print_registers_info): New function.
2773         (sparc_do_registers_info): New function.
2774         (sparclet_print_registers_info): New function.
2775         (sparclet_do_registers_info): New function.
2776         (do_sparc_print_registers_info): New function.
2777         (sparc_print_registers): New static function, clone of infcmd.c's
2778         default_print_registers_info.
2779         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2780         (sparclet_do_registers_info): Declare.
2781         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2782         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2783         Re-define.
2784         (sparc_do_registers_info): Declare.
2785         (PRINT_REGISTER_HOOK): Delete macro.
2786         (sparc_print_register_hook): Delete declaration.
2787
2788 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2789
2790         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2791         functions.
2792         (lookup_symbol_aux_local): New function.
2793         (lookup_symbol_aux_symtabs): New function.
2794         (lookup_symbol_aux_psymtabs): New function.
2795
2796 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2797
2798         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2799         previous values of 'objfile' and 'block'.
2800
2801 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2802
2803         * values.c (value_change_enclosing_type): Set 
2804         enclosing_type field correctly also for the case where 
2805         more memory needs to be allocated.
2806
2807 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2808
2809         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2810         of puts_filtered.
2811
2812         * i387-tdep.c (i387_print_float_info): Replace calls to
2813         register_read and deprecated_read_register_gen with calls to
2814         frame_register_read, and make the necessary adjustments to the
2815         surrounding code.
2816
2817 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2818
2819         * gdbarch.sh (register_reggroup_p): Allow default value.
2820         * gdbarch.h, gdbarch.c: Regenerate.
2821
2822 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2823
2824         * regcache.h: Add coment indicating replacements for deprecated
2825         functions.
2826
2827 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2828
2829         * reggroups.h, reggroups.c: New files.
2830         * regcache.c: Include "reggroups.h".
2831         (enum regcache_dump_what): Add `regcache_dump_groups'.
2832         (regcache_dump): Contract size of the "Type" column.  When
2833         specified, dump the register's groups.
2834         (maintenance_print_register_groups): New function.
2835         (_initialize_regcache): Add command `maint print register-groups'.
2836         * Makefile.in (COMMON_OBS): Add reggroups.o
2837         (SFILES): Add reggroups.c.
2838         (reggroups_h): Define.
2839         (regcache.o, gdbarch.o): Update dependencies.
2840         (reggroups.o): Specify dependencies.
2841         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2842         Add opaque declaration for `struct reggroup' in generated .h file.
2843         Include "reggroups.h" in generated .c file.
2844         gdbarch.h, gdbarch.c: Re-generate.
2845
2846 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2847
2848         * regcache.h (deprecated_read_register_gen): Rename
2849         read_register_gen.
2850         (deprecated_write_register_gen): Rename write_register_gen.
2851         * i387-tdep.c: Update.
2852         * x86-64-linux-nat.c: Update
2853         * wince.c: Update.
2854         * thread-db.c: Update.
2855         * win32-nat.c: Update.
2856         * mips-tdep.c: Update.
2857         * d10v-tdep.c: Update.
2858         * cris-tdep.c: Update.
2859         * remote-sim.c: Update.
2860         * remote-rdi.c: Update.
2861         * remote-rdp.c: Update.
2862         * frame.c: Update.
2863         * target.c: Update.
2864         * blockframe.c: Update.
2865         * x86-64-tdep.c: Update.
2866         * xstormy16-tdep.c: Update.
2867         * sh-tdep.c: Update.
2868         * s390-tdep.c: Update.
2869         * rs6000-tdep.c: Update.
2870         * sparc-tdep.c: Update.
2871         * i386-tdep.c: Update.
2872         * dwarf2cfi.c: Update.
2873         * regcache.c: Update.
2874
2875 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2876
2877         New interix-specific files:
2878         * config/i386/nm-interix.h: New file.
2879         * config/i386/interix.mh: New file.
2880         * config/i386/interix.mt: New file.
2881         * i386-interix-nat.c: New file.
2882         * i386-interix-tdep.c: New file.
2883
2884 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2885
2886         * frame.h (deprecated_generic_get_saved_register): Rename
2887         generic_get_saved_register.
2888         * blockframe.c (deprecated_generic_get_saved_register): Update.
2889         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2890         (xstormy16_frame_saved_register): Update.
2891         * sh-tdep.c (sh_gdbarch_init): Update.
2892         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2893         * ia64-tdep.c (ia64_get_saved_register): Update.
2894         * cris-tdep.c (cris_gdbarch_init): Update.
2895         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2896         * arm-tdep.c (arm_gdbarch_init): Update.
2897
2898 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2899
2900         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2901
2902 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2903
2904         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2905         trampolines in sigaction.
2906
2907 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2908
2909         * h8300-tdep.c: Include "gdb_assert.h".
2910         (h8300_print_register): Add gdbarch, file and frame parameters.
2911         Use frame_read_unsigned_register to read the register's value.
2912         Use fprintf_filtered to display output.
2913         (h8300_print_registers_info): Replace h8300_do_registers_info.
2914         (h8300_gdbarch_init): Set print_registers_info.
2915
2916 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2917
2918         * frame.c (frame_read_unsigned_register): New function.
2919         (frame_read_signed_register): New function.
2920         * frame.h (frame_read_unsigned_register): Declare.
2921         (frame_read_signed_register): Declare.
2922
2923 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2924
2925         * h8500-tdep.c (h8500_print_registers_info): New static function,
2926         clone of infcmd.c's default_print_registers_info.
2927         (h8500_do_registers_info): New funtion.
2928         (h8500_print_register_hook): Rename print_register_hook, make
2929         static.
2930
2931         * config/h8500/tm-h8500.h: Update copyright.
2932         (DEPRECATED_DO_REGISTERS_INFO): Define.
2933         (h8500_do_registers_info: Declare.
2934         (PRINT_REGISTER_HOOK): Delete macro.
2935         (print_register_hook): Delete function.
2936
2937 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2938
2939         * z8k-tdep.c (z8k_print_register_hook): Make static.
2940         (z8k_print_registers_info): New static function, clone of
2941         infcmd.c's default_print_registers_info.
2942         (z8k_do_registers_info): New function.  Wrap
2943         z8k_print_registers_info.
2944         * config/z8k/tm-z8k.h: Update copyright.
2945         (PRINT_REGISTER_HOOK): Delete macro.
2946         (z8k_print_register_hook): Delete declaration.
2947         (DEPRECATED_DO_REGISTERS_INFO): Define.
2948         (z8k_do_registers_info): Declare.
2949
2950 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2951
2952         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2953         as this is already provided by value.h, and was actually causing
2954         a compilation error because of a conflict in parameter type
2955         declaration due to a missing const keyword.
2956         (low_text_segment_addres): Fix a compilation warning.
2957
2958 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2959
2960         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2961         registers without a name.
2962         (mips_linux_cannot_store_register): Don't store registers without
2963         a name.
2964
2965 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2966
2967         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2968         out.)
2969         * symtab.h: Delete prototype for find_addr_symbol.
2970
2971 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2972
2973         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2974         DO_REGISTERS_INFO.
2975         gdbarch.h, gdbarch.c: Re-generate.
2976         * infcmd.c (default_print_registers_info): Update reference.
2977         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2978         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2979         * sh-tdep.c (sh_gdbarch_init): Ditto.
2980         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2981         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2982
2983 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2984
2985         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2986         cfi_init_extra_frame_info.
2987         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2988         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2989
2990         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2991         target where necessary.  Add more comments and remove the ones
2992         that don't provide any useful information.
2993
2994         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2995         deprecated_read_register_dummy with
2996         frame_unwind_unsigned_register.
2997
2998         * i386-tdep.c (i386_extract_struct_value_address): Use
2999         regcache_raw_read_unsigned instead of
3000         regcache_cooked_read_unsigned since we know that the register
3001         we're reading isn't a pseudo register.  Rename variable 'val' into
3002         the more descriptive 'addr'.
3003
3004         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3005         (x86_64_push_return_address): Add comment.
3006         (x86_64_pop_frame): Make static.
3007         (examine_argument): Clarify comment.
3008         (x86_64_skip_prologue): Make prolog_expact variable static.
3009
3010         * dwarf2cfi.c: Fix some formatting problems.
3011         (context_cpy, read_encoded_pointer): Clarify comments.
3012
3013         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3014         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3015         i386 target back into x86_64_gdbarch_init.  Add some comments and
3016         remove meaningless ones.
3017
3018 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3019
3020         * complaints.h (struct deprecated_complaint): Rename `struct
3021         complaint'.
3022         * complaints.c (complain): Update.
3023         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3024         incorrect comment indicating that "symfile.h" was being included
3025         for the `struct complaint' definition.
3026         * remote-vx.c: Update.
3027         * objc-lang.c: Update.
3028         * xcoffread.c: Update.
3029         * hpread.c: Update.
3030         * mdebugread.c: Update.
3031         * stabsread.c: Update.
3032         * dwarf2read.c: Update.
3033         * dwarfread.c: Update.
3034         * elfread.c: Update.
3035         * coffread.c: Update.
3036         * stabsread.h: Update.
3037         * dbxread.c: Update.
3038         * buildsym.c: Update.
3039         * gdbtypes.c: Update.
3040         * macrotab.c: Update.
3041
3042 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3043
3044         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3045         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3046         (x86_64_init_abi): ...new function.
3047
3048         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3049         * i386v-nat.c: Include "i386-tdep.h".
3050
3051 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3052
3053         * gdbtypes.c (address_space_name_to_int): Update.
3054         (address_space_int_to_name): Update.
3055         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3056         multi-arch predicate.
3057         (address_class_name_to_type_flags): Ditto.
3058         * gdbarch.h, gdbarch.c: Re-generate.
3059         
3060         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3061
3062 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3063
3064         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3065
3066 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3067
3068         * symtab.h (INIT_SAL): Delete macro.
3069         (init_sal): Export.
3070         * symtab.c (init_sal): New function.
3071
3072         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3073         to init_sal function call.
3074         (find_sal_from_funcs_and_line): Ditto.
3075         (all_sals_for_line): Ditto. 
3076         * breakpoint.c (create_internal_breakpoint): Ditto. 
3077         (create_fork_vfork_event_catchpoint): Ditto. 
3078         (create_exec_event_catchpoint): Ditto. 
3079         (parse_breakpoint_sals): Ditto. 
3080         (watch_command_1): Ditto. 
3081         (handle_gnu_4_16_catch_command): Ditto.
3082         (clear_command): Ditto. 
3083         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3084         * infcmd.c (run_stack_dummy): Ditto. 
3085         * infrun.c (process_event_stop_test): Ditto.
3086         (check_sigtramp2): Ditto.
3087         (step_over_function): Ditto. 
3088         * linespec.c (decode_line_2): Ditto. 
3089         (decode_line_1): Ditto. 
3090         * source.c (line_info): Ditto. 
3091         * symtab.c (find_pc_sect_line): Ditto.
3092
3093 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3094
3095         * dwarf2cfi.c (struct context)
3096         (struct context_reg): Moved to dwarf2cfi.h
3097         (context_alloc, frame_state_alloc, context_cpy):
3098         Made extern instead of static, removed prototypes.
3099         * dwarf2cfi.h (struct context)
3100         (struct context_reg): New, moved from dwarf2cfi.c
3101         (context_alloc, frame_state_alloc, context_cpy):
3102         New prototypes.
3103         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3104         Changed from static to extern.
3105         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3106         (LINUX_SIGCONTEXT_FP_OFFSET)
3107         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3108         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3109         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3110         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3111         set_gdbarch_*() calls now use x86-64 specific functions 
3112         instead of DWARF2 CFI ones.
3113         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3114         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3115         (x86_64_init_extra_frame_info): New prototypes.
3116         
3117 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3118
3119         * linespec.c: #include "parser-defs.h".
3120         Delete prototype for find_template_name_end.
3121         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3122
3123 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3124
3125         * NEWS: add recent mi fixes.
3126         * varobj.c (struct varobj): Add new "updated" flag.
3127         (new_variable): Default "updated" flag to 0.
3128         (varobj_set_value): Set "updated" flag to 1 if value
3129         changes.
3130         (varobj_update): Check varobj "updated" flag before
3131         comparing old and refreshed values.  Fix for
3132         PR gdb/702.
3133
3134 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3135
3136         * parse.c (parse_exp_1): Use BLOCK_START.
3137         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3138         SYMBOL_BLOCK_VALUE.
3139         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3140
3141 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3142
3143         * symtab.c: Delete cplusplus_hint.
3144         Delete prototype for find_template_name_end.
3145
3146 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3147
3148         * symtab.h: Update comment.
3149
3150 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3151
3152         * printcmd.c (address_info): Restore quotes in output.
3153         * valops.c (value_of_local): Restore quotes in error message.
3154
3155 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3156
3157         * symtab.c (symbol_demangled_name): New function.
3158         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3159         turning most of it into a function.
3160         (symbol_demangled_name): Export.
3161
3162 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3163
3164         * valops.c (value_of_local): Restore quotes in error message.
3165
3166 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3167
3168         * symtab.c (symbol_init_language_specific): New function.
3169         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3170         turning most of it into a function.
3171         (symbol_init_language_specific): Export.
3172
3173 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3174
3175         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3176         (dwarf_attr_name): Ditto.
3177         (dwarf_type_encoding_name): Ditto.
3178         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3179         (process_die): Handle DW_TAG_namespace,
3180         DW_TAG_imported_declaration, DW_TAG_imported_module.
3181         (read_namespace): New function.
3182
3183 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3184
3185         * configure.in: Define NEW_PROC_API on Interix too.
3186         * configure: Regenerate.
3187
3188 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3189
3190         * configure: Regenerate using the proper version of autoconf.
3191
3192 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3193
3194         * findvar.c (read_var_value): Temporarily disable TLS code, until
3195         complete TLS support is added.
3196
3197 2002-10-21  Jim Blandy  <jimb@redhat.com>
3198             Elena Zannoni  <ezannoni@redhat.com>
3199
3200         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3201         for thread local storage locations.
3202         (struct symbol): Add objfile field.
3203         (SYMBOL_OBJFILE): Define.
3204         * dwarf2read.c (is_thread_local): New static variable.
3205         (new_symbol): If variable is in thread local fill in address class
3206         and objfile appropriately.
3207         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3208         stack operation.
3209         * printcmd.c (address_info): Print the information for thread
3210         local storage variable.
3211         * findvar.c (read_var_value): In case of thread local variable,
3212         defer to the target vector code to compute address.
3213
3214 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3215
3216         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3217         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3218
3219 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3220
3221         * symtab.h (address_class):  Rename
3222         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3223         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3224         * printcmd.c (address_info): Ditto.
3225         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3226
3227 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3228
3229         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3230         DBREG_DRX macro to acces debug registers.
3231
3232         * Makefile.in (i386obsd-tdep.o): New target.
3233
3234         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3235         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3236
3237         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3238         * config/i386/obsd.mt: New file.
3239         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3240         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3241         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3242         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3243         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3244         * i386obsd-tdep.c: New file.
3245
3246 2002-10-19  Adam Fedor  <fedor@gnu.org>
3247
3248         * objc-exp.y (name_not_typename): Fix invalid comment.  
3249
3250 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3251
3252         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3253         to allocate partial syms and macro byte caches.
3254
3255 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3256
3257         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3258
3259 2002-10-18  Adam Fedor  <fedor@gnu.org>
3260
3261         * stabsread.c (find_name_end): New function.
3262         (define_symbol): Use it.
3263
3264 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3265
3266         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3267         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3268         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3269         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3270
3271 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3272
3273         * symfile.h: Add opaque declaration for struct obstack.
3274         Declare obsavestring to take a const char *.
3275         * symfile.c (obsavestring): Make first argument a const char *.
3276
3277 2002-10-16  Adam Fedor  <fedor@gnu.org>
3278
3279         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3280         names when matching breakpoints in current file.
3281
3282 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3283
3284         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3285         (read_tag_pointer_type): Add address class support.
3286         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3287         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3288         New methods.
3289         * gdbarch.h, gdbarch.c: Regenerate.
3290         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3291         (make_type_with_address_space, recursive_type_dump): Add address
3292         class support.
3293         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3294         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3295         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3296
3297 2002-10-16  Klee Dienes  <kdienes@apple.com>
3298
3299         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3300         to get the last character of a char[] buffer, not
3301         name[sizeof(vptr_name)-1].
3302
3303 2002-10-14  Adam Fedor  <fedor@gnu.org>
3304
3305         * symtab.h: New objc_specific struct.
3306         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3307         (SYMBOL_DEMANGLED_NAME): Likewise.
3308
3309 2002-10-14  Adam Fedor  <fedor@gnu.org>
3310
3311         * symfile.c (init_filename_language_table): Add ObjC file extension.
3312
3313 2002-10-14  Adam Fedor  <fedor@gnu.org>
3314
3315         * utils.c (puts_filtered_tabular): New function.
3316         (fprintf_symbol_filtered): Get ObjC demangled name.
3317         * defs.h (puts_filtered_tabular): Declared.
3318
3319 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3320
3321         * c-lang.h (c_type_print_varspec_prefix): Delete.
3322         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3323         ``need_post_space'' parameter.  Adjust all callers.
3324
3325 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3326  
3327         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3328         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3329         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3330         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3331
3332 2002-10-13  Adam Fedor  <fedor@gnu.org>
3333
3334         * source.c (print_source_lines): Update comments.
3335
3336 2002-10-13  Adam Fedor  <fedor@gnu.org>
3337
3338         * valops.c (value_of_local): New function.
3339         (value_of_this): Use it.
3340         * value.h (value_of_local): Declared.
3341
3342 2002-10-13  Adam Fedor  <fedor@gnu.org>
3343
3344         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3345         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3346
3347 2002-10-12  Adam Fedor  <fedor@gnu.org>
3348
3349         * language.c (binop_result_type): Add language_objc to case.
3350         (integral_type): Likewise.
3351         (character_type): Likewise.
3352         (string_type): Likewise.
3353         (boolean_type): Likewise.
3354         (structured_type): Likewise.
3355         (binop_type_check): Likewise.
3356
3357 2002-10-11  Adam Fedor  <fedor@gnu.org>
3358
3359         * printcmd.c (address_info): Print 'self' for ObjC.
3360
3361 2002-10-11  Adam Fedor  <fedor@gnu.org>
3362
3363         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3364         OP_SELF.
3365
3366 2002-10-11  Adam Fedor  <fedor@gnu.org>
3367
3368         * language.h (CAST_IS_CONVERSION): Add language_objc.
3369
3370 2002-10-11  Adam Fedor  <fedor@gnu.org>
3371
3372         * defs.h (enum language): Add language_objc.
3373
3374 2002-10-11  Klee Dienes  <kdienes@apple.com>
3375
3376         * corefile.c (read_memory_typed_address): New function.
3377         * gdbcore.h (read_memory_typed_address): Add prototype.
3378         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3379         to read a value destined for a CORE_ADDR, not read_memory_integer.
3380         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3381         (f77_get_dynamic_lowerbound): Ditto.
3382
3383 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3384
3385         * utils.c (string_to_core_addr): After turning string into
3386         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3387         which will do necessary sign-extension, etc.
3388
3389 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3390
3391         * c-exp.y (THIS): Delete token and grammar rule.
3392         (yylex): Don't return THIS.
3393         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3394         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3395         * demangle.c (cplus_markers): Update comment.  Put '$'
3396         first.  Remove CPLUS_MARKER.
3397         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3398         * jv-exp.y (THIS): Delete token and grammar rule.
3399         (yylex): Don't return THIS.
3400         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3401         * objc-exp.y (THIS): Delete token and grammar rule.
3402         (yylex): Don't return THIS.
3403         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3404         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3405         (read_member_functions): Likewise for opname.
3406         (read_tilde_fields): Use is_cplus_marker.
3407
3408         * defs.h (CPLUS_MARKER): Don't define.
3409         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3410         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3411         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3412         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3413         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3414
3415         * config/i386/tm-i386v4.h: Delete file.
3416         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3417         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3418         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3419         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3420         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3421         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3422         * config/i386/i386v4.mt (TM_FILE): Likewise.
3423         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3424
3425 2002-10-10  Marko Mlinar  <markom@opencores.org>
3426
3427         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3428         accidentially not commited 2002-10-09
3429         * gdbarch.h, gdbarch.c: Re-generate.
3430
3431 2002-10-09  Marko Mlinar  <markom@opencores.org>
3432
3433         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3434         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3435         * gdbarch.h, gdbarch.c: Re-generate.
3436
3437 2002-10-08  Petr Sorfa <petrs@caldera.com>
3438
3439         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3440
3441         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3442         so we can work on more than one compilation unit at a time.  This
3443         helps prepare GDB to handle inter-CU die references.
3444         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3445         the code to be defined before struct comp_unit_head.
3446         (comp_unit_head): Added new members - offset, cu_head,
3447         begin_die, next and dwarf2_abbrevs.
3448         (dwarf2_abbrevs): Removed single static var; now member of
3449         struct comp_unit_head.
3450         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3451         members.
3452         (psymtab_to_symtab_1): Changed to work with the new
3453         struct comp_unit_head.
3454         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3455         constructs the dwarf2_abbrevs[] inside the cu_header.
3456         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3457         dwarf2_abbrev table to clean up.
3458         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3459         handling of dwarf2_abbrevs inside the cu_header.
3460         (read_partial_die): Now supports the call to the new
3461         dwarf2_lookup_abbrev.
3462         (read_full_die): Now supports the call to the new
3463         dwarf2_lookup_abbrev.
3464
3465 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3466
3467         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3468         insure that shell variables, such as "transformed_name" are propagated
3469         to later shell statements in rule.
3470
3471 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3472
3473         * config/i386/nm-i386sco.h: Add protection against
3474         multiple-inclusion.  Include "i386/nm-i386v.h".
3475         (REGISTER_U_ADDR): Remove define.
3476         (i386_register_u_addr): Remove prototype.
3477
3478 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3479
3480         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3481         before treating it as a single-step event.
3482
3483 2002-10-03  Adam Fedor  <fedor@gnu.org>
3484
3485         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3486         (objc_demangle): Remove assignment in if statements, Replace
3487         free with xfree.
3488         (add_msglist): Likewise.
3489         (end_msglist): Likewise.
3490         (complare_selectors): Likewise.
3491         (selectors_info): Likewise.
3492         (compare_classes): Likewise.
3493         (classes_info): Likewise.
3494         (print_object_command): Likewise.
3495         (find_objc_msgcall_submethod): Replace PTR with void *.
3496         * objc-lang.h: Remove check for __STDC__.
3497
3498 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3499
3500         * ui-out.h (ui_out_field_fmt_int): New prototype.
3501         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3502         of field width and alignment.
3503         * stack.c (print_frame_info_base): When printing frame level, use
3504         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3505         PR gdb/192
3506
3507 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3508
3509         * MAINTAINERS: Add self to Write After Approval list.
3510
3511 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3512
3513         * infcmd.c (interrupt_target_command_wrapper): Delete.
3514         (interrupt_target_command): Make non static.
3515         (nofp_registers_info): Make static.
3516         * stack.c (return_command_wrapper): Delete.
3517         (return_command): Make non static.
3518
3519 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3520
3521         * event-top.c (gdb_setup_readline): New function. Code moved from
3522         _initialize_event_loop().
3523         (_initialize_event_loop): Call gdb_setup_readline().
3524
3525 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3526
3527         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3528         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3529         * gdbarch.h, gdbarch.c: Re-generate.
3530
3531 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3532
3533         Fix PR gdb/778
3534         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3535         before recursing.
3536         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3537         of fill_in_vptr_fieldno.
3538
3539 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3540
3541         * inferior.h (registers_info, stepi_command, nexti_command,
3542         continue_command, interrupt_target_command): Export from infcmd.c.
3543         * frame.h (args_info, selected_frame_level_changed_hook,
3544         return_command): Export from stack.c.
3545         * v850ice.c (stepi_command, nexti_command, continue_command): use
3546         prototypes from inferior.h.
3547         * tracepoint.c (registers_info, args_info, locals_info): Use
3548         prototypes from frame.h and inferior.h.
3549         * Makefile.in (mi-main.o): Add dependency on frame.h.
3550
3551 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3552
3553         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3554         value in register 3 adjusted by ppc_gp0_regnum.
3555
3556         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3557
3558 2002-10-02  Marko Mlinar <markom@opencores.org>
3559
3560         * MAINTAINERS: Add myself to the Write After Approval list.
3561
3562 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3563
3564         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3565         of the section for the N64 ABI, fixed.
3566
3567         * config/mips/tm-irix6.h: Include solib.h.
3568
3569 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3570
3571         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3572         GNU operators.
3573
3574 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3575
3576         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3577         and that "mi0" syntax has been removed.
3578
3579 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3580
3581         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3582         * ppc-sysv-tdep.c: #include "gdb_string.h".
3583         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3584         pacify GCC.
3585
3586 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3587
3588         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3589         "vrsave"'s register number.
3590
3591 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3592
3593         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3594         use frame_unwind_signed_register to obtain the PC.
3595         (mips_frame_chain): Handle a generic dummy frame.
3596         (mips_init_extra_frame_info): When a generic dummy frame, don't
3597         re-compute the frame base.
3598         (mips_pop_frame): Handle generic dummy frames.
3599         (mips_gdbarch_init): When generic dummy frames, set
3600         use_generic_dummy_frames, push_dummy_frame to
3601         generic_push_dummy_frame, pc_in_call_dummy to
3602         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3603         generic_save_dummy_frame_tos.
3604
3605 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3606
3607         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3608         against TOP when TOP was explictly set.
3609         (generic_push_dummy_frame): Set TOP to zero.
3610
3611 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3612
3613         * event-loop.c (start_event_loop): Rename variable 'result' to
3614         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3615
3616 2002-09-30  Keith Seitz  <keiths@redhat.com>
3617
3618         * gdb-events.sh (selected_thread_changed): New event.
3619         * gdb-events.c: Regenerated.
3620         * gdb-events.h: Regenerated.
3621
3622 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3623
3624         * MAINTAINERS: Add self to Write After Approval list.
3625
3626 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3627
3628         * disasm.c: New file.  
3629         * disasm.h: New file.  
3630         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3631         (compare_lines): Ditto.
3632         (dump_insns): Ditto.
3633         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3634         argument.
3635         (do_assembly_only): Ditto.
3636         (do_disassembly): Renamed to gdb_disassembly and moved to
3637         disasm.c.  Sdded uiout argument.
3638         * Makefile.in: Add new files.  Reorder SFILES list. Update
3639         dependencies.  Include libgdb.a later in the insight executable.
3640
3641 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3642
3643         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3644         bfd/elf64-alpha-fbsd.c.
3645
3646 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3647
3648         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3649         i386gnu-tdep.c.
3650
3651 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3652
3653         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3654         __FUNCTION__.
3655         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3656         function name.
3657         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3658         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3659         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3660         (S_msg_sig_post_reply): Ditto.
3661         
3662 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3663
3664         * sh-tdep.c (sh_use_struct_convention): Use definition according
3665         to ABI.
3666         (sh_push_arguments): Store in register with correct endianess.
3667         (sh_default_store_return_value): Ditto.
3668         (sh_gdbarch_init): Set sizeof long double to 8.
3669
3670 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3671
3672         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3673         Fix some whitespace problems.
3674
3675 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3676
3677         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3678         (mcore-tdep.o): Ditto.
3679         (ns32k-tdep.o): Ditto.
3680         (ns32knbsd-tdep.o): Ditto.
3681         (sh3-rom.o): Ditto.
3682         (vax-tdep.o): Ditto.
3683         * cris-tdep.c: #include "gdb_string.h"
3684         * mcore-tdep.c: Ditto.
3685         * ns32k-tdep.c: Ditto.
3686         * ns32knbsd-tdep.c: Ditto.
3687         * sh3-rom.c: Ditto.
3688         * vax-tdep.c: Ditto.
3689
3690 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3691
3692         * config/djgpp/fnchange.lst: Add entries for
3693         gdb/testsuite/gdb.c++/m-static files.
3694
3695 2002-09-27  Jim Wilson  <wilson@redhat.com>
3696
3697         * MAINTAINERS: Add myself to the Write After Approval list.
3698
3699 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3700
3701         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3702
3703
3704 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3705
3706         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3707         frame.
3708
3709 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3710
3711         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3712         (rs6000_struct_return_address): Delete variable.
3713         (rs6000_store_struct_return): Update.
3714         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3715         deprecated_extract_struct_value_address.
3716         (rs6000_frame_align): New function.
3717         (rs6000_gdbarch_init): Set frame_align.
3718
3719 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3720
3721         From Grace Sainsbury <graces@redhat.com>:
3722         * Makefile.in (gdbtk-main.o): New target.
3723         (gdb.o): New target.
3724         (main_h): Define.
3725         (main.o): Update dependencies.
3726         (gdb$(EXEEXT)): Add gdb.o.
3727         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3728         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3729         (SUBDIR_GDBTK_CLEAN): Set.
3730         (install-gdbtk): Install the insight binary.
3731         (uninstall-gdbtk): New target.
3732         (all-gdbtk, clean-gdbtk): New rule.
3733         * top.c (use_windows): Default to zero.
3734         * main.c: Include "main.h".
3735         (main): Delete.
3736         (struct captured_main_args): Delete.
3737         (gdb_main): New function.
3738         * main.h: New file.
3739         * gdb.c: New File.
3740
3741 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3742
3743         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3744         (frame_map_regnum_to_name): New function.
3745         (frame_map_name_to_regnum): New function.
3746         * frame.h (frame_map_name_to_regnum): Declare.
3747         (frame_map_regnum_to_name): Declare.
3748         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3749         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3750         * parse.c: Do not include "builtin-regs.h".
3751         (target_map_name_to_register): Delete function.
3752         (write_dollar_variable): Use frame_map_name_to_regnum.
3753         * parser-defs.h (target_map_name_to_register): Delete declaration.
3754         * expprint.c: Include "frame.h".
3755         (print_subexp): Use frame_map_regnum_to_name.
3756         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3757         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3758
3759 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3760
3761         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3762         wasn't saved, and the next innermost frame is a dummy, return the
3763         dummy frame's link register.
3764
3765 2002-09-24  Jim Blandy  <jimb@redhat.com>
3766
3767         Fix from Paul Breed:
3768         * main.c (captured_main): Add a `break' after the case for 'b'.
3769
3770 2002-09-24  Keith Seitz  <keiths@redhat.com>
3771
3772         * varobj.c (c_type_of_child): Use get_target_type instead
3773         of TYPE_TARGET_TYPE.
3774
3775 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3776
3777         * source.c (get_current_or_default_source_symtab_and_line): Remove
3778         function.
3779         (set_default_source_symtab_and_line): New function. Attempts to
3780         determine a source file to list lines from if one is not currently
3781         defined.
3782         (get_current_source_symtab_and_line): Initialize sal.pc and
3783         sal.end fields.
3784         (set_current_source_symtab_and_line): Mark argument as const.
3785         * source.h: Update declarations and comments.
3786         * linespec.c (decode_line_1): Replace call to removed routine above.
3787         * stack.c (print_frame_info_base): Ditto.
3788         * cli/cli-cmds.c (edit_command): Ditto.
3789         (list_command): Ditto.
3790
3791 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3792
3793         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3794         sal.pc and sal.end fields.
3795         (get_current_or_default_source_symtab_and_line): Ditto.
3796         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3797         so we do not cause a new source symtab to be searched for (reverting an
3798         unintentional change from the 2002-09-20 patch).
3799         * scm-lang.c (scm_unpac): Ditto.
3800
3801 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3802
3803         * complaints.c (symfile_explanations): Remove new-line from
3804         ``isolated_message''.
3805         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3806         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3807
3808 2002-09-20  Nick Clifton  <nickc@redhat.com>
3809         
3810         * NEWS: Announce that V850EA ISA is no longer supported.
3811         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3812
3813 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3814
3815         * Makefile.in (c-lang.o): Correct dependencies.
3816         (utils.o): Gather dependencies.
3817         (charset.o): Move.
3818         * c-lang.c: #include "gdb_string.h"
3819
3820 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3821
3822         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3823         * cli/cli-cmds.c (list_command): New function.  Implements the new
3824         cli edit command.
3825         (_init_cli_cmds): Add new command definition.
3826         * gdb.1: Document edit command.
3827         * doc/gdb.texinfo: Document edit command.
3828
3829 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3830
3831         * source.c: Make global variables current_source_symtab and
3832         current_source_line static.
3833         (list_command): Moved to cli/cli-cmds.c.
3834         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3835         (get_first_line_listed): New accessor function.
3836         (get_lines_to_list): New accessor function.
3837         (get_current_source_symtab_and_line): New function. Retrieves the
3838         position in the source code that we consider current.
3839         (get_current_or_default_source_symtab_and_line): New function.
3840         Like the above but attempts to determine a default position if one
3841         is not currently defined.
3842         (set_current_source_symtab_and_line): New function. Sets the source
3843         code position considered current and returns the previously set one.
3844         (clear_current_source_symtab_and_line): Reset stored information about
3845         a current source line.
3846         (_initialize_source): Remove registration for the "list" command and
3847         its alias.
3848         * source.h: Add declarations for the new functions above.
3849         * symtab.h: Remove declarations for the global variables mentioned
3850         above.
3851         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3852         obtain current source line.
3853         * linespec.c (decode_line_1): Ditto.
3854         * macroscope.c (default_macro_scope): Ditto.
3855         * scm-lang.c (scm_unpac): Ditto.
3856         * stack.c (print_frame_info_base): Ditto.
3857         * symfile.c (clear_symtab_users): Ditto.
3858         * symtab.c (decode_line_spec): Ditto.
3859         * cli/cli-cmds.c (list_command): Moved here from source.c.
3860         (ambiguous_line_spec): Moved here from source.c.
3861         (_init_cli_cmds): Add definition for "list" and its alias.
3862         * Makefile.in: Update dependencies.
3863
3864 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3865
3866         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3867         with what gcc thinks is correct.
3868
3869 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3870
3871         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3872         multiple register push instruction.
3873
3874 2002-09-19  Jim Blandy  <jimb@redhat.com>
3875
3876         Add support for distinct host and target character sets.
3877         * charset.c, charset.h: New files.
3878         * c-exp.y: #include "charset.h".
3879         (yylex): Convert character and string literals to the target
3880         character set, before returning them as the semantic value of the
3881         token.
3882         * c-lang.c: #include "charset.h".
3883         (c_emit_char): Use charset-specific methods to recognize
3884         characters with backslash escape forms, to decide which characters
3885         to print literally and which to print using numeric escape
3886         sequences, and to convert target characters to host characters
3887         before printing.
3888         * utils.c: #include "charset.h".
3889         (no_control_char_error): New function.
3890         (parse_escape): Use charset-specific methods to recognize
3891         backslash escapes, parse `control character' notation, and convert
3892         characters from the host character set to the target character set.
3893         * configure.in: Set the default host character set.
3894         Check where to find iconv, and what its argument types might be.
3895         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3896         * Makefile.in (SFILES): List charset.c.
3897         (COMMON_OBS): List charset.o.   
3898         (charset.o): New rule.
3899         (charset_h): New header dependency variable.
3900         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3901         (LIBICONV): New variable, set by configure.
3902         (CLIBS): Include $(LIBICONV) here.
3903         * aclocal.m4, config.in, configure: Regenerated.
3904
3905 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3906
3907         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3908         bison 1.35 warning.
3909
3910 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3911
3912         * gdb_mbuild.sh: New file.
3913
3914 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3915
3916         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3917
3918 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3919
3920         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3921         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3922         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3923         valops.c, value.h: Revert previous change.
3924         
3925 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3926
3927         Preliminary support for Objective-C:
3928         * defs.h (language_objc): New enum value.
3929         (puts_filtered_tabular): Declaration only, exported from utils.c.
3930         (skip_quoted): Delete, declared in completer.h.
3931         * c-exp.y: Include completer.h.
3932         * p-exp.y: Ditto.
3933         * jv-exp.y: Ditto.
3934         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3935         New operator enum values.
3936         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3937         * language.c (binop_result_type): Handle language_objc case.
3938         (integral_type, character_type, string_type, boolean_type,
3939         structured_type, binop_type_check): Ditto.
3940         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3941         (struct objc_specific): Add to general_symbol_info.
3942         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3943         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3944         * parser-defs.h (struct objc_class_str): New struct type.
3945         (start_msglist, end_msglist, add_msglist): Declaration only,
3946         exported from objc-lang.c.
3947         * value.h (value_of_local, value_nsstring, 
3948         call_function_by_hand_expecting_type): Exported from valops.c.
3949         * valops.c (find_function_addr): Export.
3950         (call_function_by_hand_expecting_type): New function.
3951         (value_of_local): New function.
3952         * symfile.c (init_filename_language_table): Add ".m" extension
3953         for Objective-C.
3954         * utils.c (puts_filtered_tabular): New function.
3955         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3956         (set/show demangle): Extend help-string to refer to ObjC.
3957         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3958         * stabsread.c (symbol_reference_defined): Objective-C symbols
3959         may contain colons: make allowances when scanning stabs strings
3960         for colons.
3961         (objc_find_colon): New function.
3962         * printcmd.c (address_info): If language == objc then print
3963         "self" instead of "this".
3964         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3965         OP_NSSTRING, and OP_SELF.
3966         (prefixify_subexp): Ditto.
3967         * source.c (print_source_lines): Mention objc in comment.
3968         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3969         method names.
3970
3971 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3972
3973         * complaints.h: Update copyright.
3974         (struct complaints): Declare.
3975         (struct complaint): Make `message' constant.
3976         (internal_complaint): Declare.
3977         (complaint): Declare.
3978         (complaint_root): Delete declaration.
3979         (symfile_complaints): Delete declaration.
3980         (struct complaints): Add opaque declaration.
3981         (clear_complaints): Add a complaints parameter.
3982         * complaints.c: Update copyright.
3983         (enum complaint_series): Define.
3984         (complaint_root): Delete.
3985         (struct complaints): Define.
3986         (complaint_sentinel, symfile_complaint_book): New variables.
3987         (symfile_explanations, symfile_complaints): New variables.
3988         New variables.
3989         (get_complaints): New function.
3990         (vcomplaint): New function.
3991         (complaint): New function.
3992         (internal_complaint): New function.
3993         (complain): Call vcomplain with symfile_complaint.
3994         (clear_complaints): Rewrite.
3995         (_initialize_complaints): Use add_setshow_command.
3996         * Makefile.in (complaints.o): Update dependencies.
3997         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3998         to call to clear_complaints.
3999         (new_symfile_objfile, reread_symbols): Ditto.
4000         (oldsyms_complaint): Delete.
4001         (empty_symtab_complaint, unknown_option_complaint): Delete.
4002         (free_named_symtabs): Use complaint instead of complain.
4003
4004 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4005
4006         Contributed by Apple Computer, Inc.  Merged with current sources
4007         by Adam Fedor <fedor@doc.com> [cagney].
4008         
4009         * objc-lang.c: First clean-up round: comments, indentation.
4010         * objc-lang.h: Ditto.
4011         * objc-lang.y: Ditto.
4012
4013 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4014
4015         * maint.c (maintenance_internal_error): Print the parameter as the
4016         error message.
4017         (maintenance_internal_warning): New function.
4018         (_initialize_maint_cmds): Add command `maint internal-warning'.
4019
4020         * defs.h (internal_warning, internal_vwarning): Declare.
4021         * utils.c (struct internal_problem): Define.
4022         (internal_vproblem): New function.
4023         (internal_warning): New function.
4024         (internal_vwarning): New function.
4025         (internal_warning_problem, internal_error_problem): New variables.
4026         (internal_verror): Just call internal_vproblem.
4027
4028 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4029
4030         * objc-lang.c: New file, support for Objective-C.
4031         Preliminary check-in, not yet integrated into gdb.
4032         * objc-lang.h: New file.
4033         * objc-exp.y:  New file.
4034
4035 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4036
4037         * infrun.c (signal_stop_update): Convert definition to ISO C.
4038         (signal_print_update): Ditto.
4039         (signal_pass_update): Ditto.
4040         * inflow.c (terminal_save_ours): Ditto.
4041
4042         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4043         comments.
4044         
4045         * config/djgpp/fnchange.lst: Handle name clashes between
4046         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4047         bfd/coff-tic80.c.
4048
4049         * i386-linux-tdep.h: Fix tipo.
4050
4051 2002-09-18  Adam Fedor  <fedor@gnu.org>
4052
4053         * MAINTAINERS: Add myself to the Write After Approval list.
4054
4055 2002-09-18  Jim Blandy  <jimb@redhat.com>
4056
4057         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4058         texthigh and textlow to reader-specific structs caused
4059         objfile_relocate to miss them.  This is fixable, but the work that
4060         the change was supposed to prepare GDB for never got done anyway.
4061
4062 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4063
4064         * MAINTAINERS: Alphabetize Write After Approval list.
4065
4066 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4067
4068         Fix PR gdb/709
4069         * values.c (value_static_field): Call read_var_value.
4070
4071 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4072
4073         * valops.c (hand_function_call): Align the initial stack pointer
4074         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4075         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4076         return value.
4077         * mips-tdep.c (mips_frame_align): New function.
4078         (mips_gdbarch_init): Set frame_align.
4079         * gdbarch.sh (FRAME_ALIGN): New method.
4080         * gdbarch.h, gdbarch.c: Re-generate.
4081
4082 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4083
4084         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4085         registers.
4086
4087 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4088
4089         * NEWS: Mention that MIPS $fp behavior changed.
4090         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4091         reference to FP_REGNUM.
4092         (mipsnbsd_cannot_store_register): Ditto.
4093         * mips-linux-nat.c: Update copyright.
4094         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4095         (mips_linux_cannot_store_register): Ditto.
4096         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4097         * config/mips/tm-mips.h: Update copyright.
4098         (FP_REGNUM): Delete macro.
4099         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4100         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4101         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4102         (mips_r3041_reg_names, mips_r3051_reg_names)
4103         (mips_r3081_reg_names): Replace "fp" with "".
4104         Fix PR gdb/480.
4105
4106 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4107
4108         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4109         generic_read_register_dummy() (PR gdb/703).
4110         (avr_push_return_address): #if 0 out unused vars.
4111         (avr_gdbarch_init): Enable use of avr_push_return_address().
4112
4113 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4114
4115         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4116         RTE will take care of it.
4117
4118 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4119
4120         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4121         invalid, return SP_REGNUM.
4122
4123 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4124
4125         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4126         point registers without sign extension.
4127
4128 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4129
4130         * blockframe.c (deprecated_read_register_dummy): Rename
4131         generic_read_register_dummy.
4132         * frame.c (frame_unwind_signed_register): New function.
4133         (frame_unwind_unsigned_register): New function.
4134         * frame.h (frame_unwind_signed_register): Declare.
4135         (frame_unwind_unsigned_register): Declare.
4136         (deprecated_read_register_dummy): Rename
4137         generic_read_register_dummy.
4138
4139         * h8300-tdep.c (h8300_frame_chain): Update.
4140         (h8300_frame_saved_pc): Update.
4141         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4142         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4143         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4144         (s390_frame_chain): Update.
4145         * v850-tdep.c (v850_find_callers_reg): Update.
4146         (v850_frame_saved_pc): Update.
4147         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4148         (m32r_find_callers_reg): Update.
4149         (m32r_frame_saved_pc): Update.
4150         * sh-tdep.c (sh_find_callers_reg): Update.
4151         (sh64_get_saved_pr): Update.
4152         (sh_init_extra_frame_info): Update.
4153         (sh_init_extra_frame_info): Update.
4154         (sh64_init_extra_frame_info): Update.
4155         (sh64_init_extra_frame_info): Update.
4156         * mcore-tdep.c (mcore_find_callers_reg): Update.
4157         (mcore_frame_saved_pc): Update.
4158         (mcore_init_extra_frame_info): Update.
4159         * i386-tdep.c (i386_frame_saved_pc): Update.
4160         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4161         (ia64_init_extra_frame_info): Update.
4162         (ia64_init_extra_frame_info): Update.
4163         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4164         * cris-tdep.c (cris_init_extra_frame_info): Update.
4165         * avr-tdep.c (avr_frame_chain): Update.
4166         (avr_init_extra_frame_info): Update.
4167         (avr_frame_saved_pc): Update.
4168         * arm-tdep.c (arm_find_callers_reg): Update.
4169         (arm_init_extra_frame_info): Update.
4170         (arm_frame_saved_pc): Update.
4171
4172 2002-09-17  Tom Tromey  <tromey@redhat.com>
4173
4174         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4175         is "'".
4176
4177 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4178
4179         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4180         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4181         NEXT_PROLOGUE_INSN.
4182         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4183         NEXT_PROLOGUE_INSN.
4184
4185 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4186
4187         * osfsolib.c: Remove file, replaced by solib-osf.c.
4188         * Makefile.in: Remove compilation rules for osfsolib.c.
4189
4190 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4191
4192         * cp-valprint.c (cp_print_class_method): Correct args to
4193         check_stub_method_group.
4194
4195 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4196
4197         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4198         `set architecture'.  Unify naming convention of functions.
4199         (h8300_skip_prologue): Improve prologue analysis.
4200         (h8300_push_arguments): Rewritten to more closely match GCC's
4201         bizarre argument-passing behavior, along with the comment describing
4202         said behavior.
4203         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4204         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4205         sim, remote-e7000.c, remote-hms.c and remote.c
4206
4207 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4208
4209         * i386-tdep.c (gdb_print_insn_i386): Removed.
4210         (i386_print_insn): New function.
4211         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4212         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4213         tm_print_insn_info.
4214
4215 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4216
4217         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4218         zero.
4219
4220 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4221
4222         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4223         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4224         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4225
4226 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4227
4228         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4229
4230 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4231
4232         * gdbtypes.c (check_stub_method): Make static.
4233         (check_stub_method_group): New function.
4234         * gdbtypes.h: Update prototypes.
4235         * cp-support.c: New file.
4236         * cp-support.h: New file.
4237
4238         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4239         (update_method_name_from_physname): New function.
4240         (read_member_functions): Correct method names for operators
4241         and v3 constructors/destructors.  Separate v2 constructors and
4242         destructors.
4243         * Makefile.in (stabsread.o): Update dependencies.
4244         (SFILES): Add cp-support.c.
4245         (COMMON_OBS): Add cp-support.o.
4246         (cp_support_h, cp-support.o): Add.
4247
4248         * cp-valprint.c (cp_print_class_method): Call
4249         check_stub_method_group instead of check_stub_method.  Remove
4250         extraneous QUITs.
4251         * p-valprint.c (pascal_object_print_class_method): Likewise.
4252         * valops.c (search_struct_method): Likewise.
4253         (find_method_list, value_struct_elt_for_reference): Likewise.
4254
4255 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4256
4257         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4258         * gdbarch.h, gdbarch.c: Regenerate.
4259
4260 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4261
4262         * frame.c (find_saved_register): Delete function.
4263         * frame.h (find_saved_register): Delete declaration.
4264         Fix PR gdb/631.
4265
4266 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4267
4268         * mips-tdep.c (read_next_frame_reg): Re-hack using
4269         frame_register_unwind.
4270
4271 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4272
4273         * mips-tdep.c (mips_get_saved_register): Re-hack using
4274         frame_register_unwind.
4275
4276 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4277
4278         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4279         vector. Will be useful for Interix.  
4280         * gdbarch.h, gdbarch.c: Regenerate.
4281
4282         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4283         name of the malloc function by NAME_OF_MALLOC.
4284
4285 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4286
4287         * value.h (find_function_in_inferior): Add const keyword to
4288         one of the parameters. Allows us to invoke this function with
4289         a const char *.
4290         * valops.c (find_function_in_inferior): Likewise.
4291
4292 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4293
4294         * exec.c (xfer_memory): Fix compilation warning with old versions
4295         of GCC.
4296         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4297
4298 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4299
4300         * symtab.h: Run through gdb_indent.h.
4301         Add 2002 to Copyright year list.
4302
4303 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4304
4305         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4306         mach constants.
4307         * MAINTAINERS: Add myself to write after approval list.
4308
4309 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4310
4311         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4312
4313 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4314
4315         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4316         Interix.
4317
4318 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4319
4320         * procfs.c (do_detach): Clear current signal, not just fault.
4321         Corrects problem with breakpoint trap signal leaking to detached
4322         process on Tru64.
4323
4324 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4325
4326         * buildsym.c (finish_block): Protect against null pointer.
4327
4328 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4329
4330         * infcmd.c (default_print_registers_info): Send all output to
4331         ``file'' instead of ``gdb_stdout''.
4332
4333 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4334
4335         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4336         LONGEST, and use signed register read (addresses are sign-
4337         extended for mips).
4338
4339 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4340
4341         * event-loop.c (gdb_do_one_event): Make public.
4342         * event-loop.h (gdb_do_one_event): Declare.
4343
4344 2002-09-10  Jeff Law  <law@redhat.com>
4345
4346         * infttrace.c (child_resume): Simplify and rework to avoid
4347         TT_PROC_CONTINUE.
4348
4349 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4350
4351         * printcmd.c (print_scalar_formatted): "len" is the number of
4352         target bytes, NOT the number of target bits.
4353
4354 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4355
4356         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4357         * top.c (init_main): Set rl_terminal_name.
4358
4359 2002-09-08  Aidan Skinner <aidan@velvet.net>
4360
4361         * ada-lang.c (ada_array_bound, ada_type_match,
4362         _initialize_ada_language): Fix K&R definitions.
4363         * ada-tasks.c (get_current_task): Fix K&R definitions.
4364         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4365                         
4366 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4367
4368         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4369         Add XP.
4370
4371 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4372
4373         * i386-tdep.c (i386_register_virtual_type,
4374         i386_register_convertible, i386_register_convert_to_virtual,
4375         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4376         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4377         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4378         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4379         Don't set push_arguments twice.
4380
4381         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4382         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4383         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4384         sigtramp_end to NULL.
4385         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4386         defines.
4387         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4388
4389         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4390         whitespace.
4391
4392         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4393         * gdbarch.h, gdbarch.c: Re-generate.
4394         * blockframe.c (find_pc_sect_partial_function): Convert to use
4395         SIGTRAMP_START_P predicate.
4396
4397 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4398
4399         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4400         generic_dummy_frame method and old method.  Also distinguish
4401         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4402         (arm_extract_return_value): Use new regcache method.
4403
4404         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4405         adjustment that doesn't conform to the ABI.
4406         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4407         saved regcache, not from current regcache.
4408
4409 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4410
4411         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4412         * README: Update.
4413
4414 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4415
4416         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4417         if arm_apcs_32 is false.
4418
4419 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4420
4421         GDB 5.3 branch created.
4422
4423 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4424
4425         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4426         generic_unwind_get_saved_register.
4427
4428 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4429
4430         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4431         argument (PR gdb/653).  Update call to smash_to_method_type.
4432         (read_structure_scope): Update call to dwarf2_add_member_fn.
4433
4434 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4435
4436         * x86-64-linux-tdep.c: Include gdb_string.h
4437         * x86-64-linux-nat.c: Ditto.
4438
4439 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4440
4441         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4442         when YYDEBUG is set to 1.  
4443         * c-exp.y: Likewise.
4444         * f-exp.y: Likewise.
4445         * jv-exp.y: Likewise.
4446         * m2-exp.y: Likewise.
4447         * p-exp.y: Likewise.
4448
4449 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4450
4451         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4452         dependency list.
4453         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4454         solib_svr4_fetch_link_map_offsets to
4455         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4456         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4457         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4458         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4459         solib-svr4.o, and solib-legacy.o.
4460         * config/i386/tm-nbsd.h: Include solib.h.
4461
4462 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4463
4464         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4465         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4466         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4467         comment noting that this needs its own target configuration.
4468         * config/i386/nbsd.mt: New file.
4469         * config/i386/nbsdaout.mt: Remove.
4470         * config/i386/nbsdelf.mt: Ditto.
4471         * config/i386/tm-nbsdaout.h: Ditto. 
4472
4473 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4474
4475         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4476         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4477         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4478         tdep->sigtramp_end.
4479         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4480         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4481         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4482
4483 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4484
4485         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4486         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4487         * i386-tdep.h (i386bsd_init_abi): New prototype.
4488         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4489         function declaration.
4490         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4491         for NetBSD-a.out or NetBSD-ELF.
4492         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4493         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4494         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4495         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4496         and nbsd-tdep.h.
4497         (i386nbsd_pc_in_sigtramp): New function.
4498         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4499         i386nbsd_pc_in_sigtramp.
4500         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4501         and i386nbsdelf_init_abi OS ABI handlers.
4502         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4503         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4504
4505 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4506
4507         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4508         registers if the target really has them.
4509
4510 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4511
4512         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4513         than nbsd-tdep.h.
4514
4515 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4516
4517         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4518         list.
4519         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4520         (alphanbsd_skip_sigtramp_frame): New functions. 
4521         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4522         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4523         to alphanbsd_sigcontext_addr. 
4524
4525 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4526
4527         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4528         list.
4529         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4530         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4531         nbsd_pc_in_sigtramp. 
4532         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4533         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4534         * nbsd-tdep.c: Include gdb_string.h.
4535         (nbsd_pc_in_sigtramp): New function. 
4536         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4537         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4538         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4539         ppcnbsd_pc_in_sigtramp. 
4540         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4541         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4542         shnbsd_pc_in_sigtramp. 
4543         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4544         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4545         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4546
4547 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4548
4549         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4550         watchpoints to NULL.
4551         (insert_breakpoints): set val field of watchpoints if NULL.
4552
4553
4554 2002-08-29  Jim Blandy  <jimb@redhat.com>
4555
4556         * symtab.c (lookup_symbol_aux): In the cases where we find a
4557         minimal symbol of an appropriate name and use its address to
4558         select a symtab to read and search, use `name' (as passed to us)
4559         as the demangled name when searching the symtab's global and
4560         static blocks, not the minsym's name.
4561
4562 2002-08-29  Keith Seitz  <keiths@redhat.com>
4563
4564         * stack.c (print_frame_info_base): Always set current_source_symtab
4565         and current_source_line.
4566
4567 2002-08-29  Donn Terry  <donnte@microsoft.com>
4568
4569         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4570
4571 2002-08-28  Keith Seitz  <keiths@redhat.com>
4572
4573         * stack.c (select_frame): Add FIXME concerning selected-frame
4574         events.
4575         (select_frame_command): Send selected-frame-level-changed
4576         event notification, but only if the level actually changed.
4577         (up_silently_base): Add selected-frame-level-changed event
4578         notification.
4579         (down_silently_base): Likewise.
4580
4581 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4582
4583         * Makefile.in: Update dependencies for all gdb/*.c files.
4584
4585 2002-08-27  Tom Tromey  <tromey@redhat.com>
4586
4587         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4588         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4589         Update dependencies.
4590         * i387-tdep.c: Include gdb_string.h.
4591         * osabi.c: Likewise.
4592         * i386-linux-nat.c: Likewise.
4593         * lin-lwp.c: Likewise.
4594         * ax-gdb.c: Likewise.
4595         * signals/signals.c: Likewise.
4596         * jv-valprint.c: Likewise.
4597         * p-lang.c: Likewise.
4598         * c-valprint.c: Likewise.
4599         * cp-abi.c: Likewise.
4600
4601 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4602
4603         * cli/cli-script.h (copy_command_lines): Export.
4604         * breakpoint.c: Include cli/cli-script.h.
4605         * Makefile.in (breakpoint.o): Update dependencies.
4606
4607 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4608
4609         * breakpoint.c (insert_breakpoints): Protect all references
4610         to 'process_warning'.  Shorten long lines.
4611
4612 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4613
4614         * cli/cli-script.c (copy_command_lines): New function.
4615         * defs.h (copy_command_lines): Export.
4616         * testsuite/gdb.base/commands.exp: New tests for commands
4617         attached to a temporary breakpoint, and for commands that
4618         delete the breakpoint they are attached to.
4619         
4620 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4621
4622         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4623         pointer to the breakpoint commands struct, make a new copy
4624         of the struct and point to that.
4625         (bpstat_clear): Free the commands struct.
4626         (bpstat_clear_actions): Free the commands struct.
4627         (bpstat_do_actions): Free the command actions.  Also execute
4628         the local cleanups, instead of deleting them.
4629         (delete_breakpoint): Leave the commands field of the bpstat
4630         chain alone -- it will be freed later.
4631
4632 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4633
4634         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4635         deleted in 2002-08-20 commit.  This function is still used by
4636         ppc-linux-nat.c.
4637
4638 2002-08-26  Keith Seitz  <keiths@redhat.com>
4639
4640         * gdb-events.sh: Add selected-frame-level-changed event.
4641         * gdb-events.c: Regenerated.
4642         * gdb-events.h: Regenerated.
4643         
4644 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4645
4646         Fix PR gdb/393:
4647         * inflow.c (terminal_save_ours): New function to save terminal
4648         settings.
4649         * inferior.h (terminal_save_ours): Declare.
4650         * target.c (debug_to_terminal_save_ours): New function.
4651         (cleanup_target): Defaults to_terminal_save_ours.
4652         (update_current_target): Inherit to_terminal_save_ours.
4653         (setup_target_debug): Set to_terminal_save_ours.
4654         * target.h (target_terminal_save_ours): New to save terminal settings.
4655         (target_ops): New member to_terminal_save_ours.
4656         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4657         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4658         * inftarg.c (init_child_ops): Likewise.
4659         * m3-nat.c (init_m3_ops): Likewise.
4660         * procfs.c (init_procfs_ops): Likewise.
4661         * wince.c (init_child_ops): Likewise.
4662         * win32-nat.c (init_child_ops): Likewise.
4663         * sol-thread.c (init_sol_thread_ops): Likewise.
4664
4665 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4666
4667         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4668         use regcache_* functions.
4669         (i386_gdbarch_init): Set store_return_value instead of
4670         deprecated_store_return_value.
4671
4672         * regcache.c (regcache_raw_write_signed,
4673         regcache_raw_write_unsigned): New functions.
4674         * regcache.h (regcache_raw_write_signed,
4675         regcache_raw_write_unsigned): New prototypes.
4676
4677 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4678
4679         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4680         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4681         source file dependencies.  Cleanup corresponding generator rules.
4682
4683 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4684
4685         * regcache.h (register_offset_hack): Declare.
4686         (regcache_cooked_read_using_offset_hack): Declare.
4687         (regcache_cooked_write_using_offset_hack): Declare.
4688
4689         * regcache.c (register_offset_hack): New function.
4690         (regcache_cooked_read_using_offset_hack): New function.
4691         (regcache_cooked_write_using_offset_hack): New function.
4692         (regcache_dump): Check that the registers, according to their
4693         offset, are packed hard against each other.
4694         (cooked_xfer_using_offset_hack): New function.
4695
4696 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4697
4698         * regcache.c (struct regcache_descr): Add field register_type.
4699         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4700         in as a parameter
4701         (init_regcache_descr): Initialize register_type.  Pass the descr
4702         to init_legacy_regcache_descr.  Use register_type instead of
4703         REGISTER_VIRTUAL_TYPE.
4704         (register_type): New function.
4705         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4706         * regcache.h (register_type): Declare.
4707
4708 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4709
4710         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4711         instead of deprecated_store_return_value.  Fix fallout from
4712         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4713
4714 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4715
4716         * regcache.c (max_register_size): New function.
4717         (init_legacy_regcache_descr): Ensure that max_register_size is
4718         large enough for REGISTER_VIRTUAL_SIZE.
4719         * regcache.h (max_register_size): Declare.
4720
4721 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4722
4723         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4724         store_return_value.
4725         (e500_extract_return_value): Change type of valbuf pointer to
4726         void.
4727
4728 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4729
4730         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4731         workaround.
4732
4733         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4734         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4735         long long) to prevent compiler warning on 64-bit systems.
4736
4737 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4738
4739         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4740         (DEPRECATED_STORE_RETURN_VALUE): New method.
4741         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4742         * gdbarch.h, gdbarch.c: Re-generate.
4743
4744         * values.c (set_return_value): Pass current_regcache to
4745         STORE_RETURN_VALUE.
4746         * arch-utils.h (legacy_store_return_value): Declare.
4747         * arch-utils.c (legacy_store_return_value): New function.
4748         (legacy_extract_return_value): Update parameters.
4749
4750         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4751         STORE_RETURN_VALUE.
4752         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4753         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4754         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4755         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4756         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4757         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4758         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4759         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4760         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4761         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4762
4763         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4764         * i386-tdep.c (i386_extract_return_value): Update.
4765         * arch-utils.c (legacy_extract_return_value): Update.
4766         * frv-tdep.c (frv_gdbarch_init): Update.
4767         * cris-tdep.c (cris_gdbarch_init): Update.
4768         * d10v-tdep.c (d10v_gdbarch_init): Update.
4769         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4770         * m68k-tdep.c (m68k_gdbarch_init): Update.
4771         * mcore-tdep.c (mcore_gdbarch_init): Update.
4772         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4773         * s390-tdep.c (s390_gdbarch_init): Update.
4774         * sparc-tdep.c (sparc_gdbarch_init): Update.
4775         * sh-tdep.c (sh_gdbarch_init): Update.
4776         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4777         * v850-tdep.c (v850_gdbarch_init): Update.
4778         * avr-tdep.c (avr_gdbarch_init): Update.
4779         * ia64-tdep.c (ia64_gdbarch_init): Update.
4780         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4781         * vax-tdep.c (vax_gdbarch_init): Update.
4782         * alpha-tdep.c (alpha_gdbarch_init): Update.
4783         * arm-tdep.c (arm_gdbarch_init): Update.
4784         * mips-tdep.c (mips_gdbarch_init): Update.
4785         * i386-tdep.c (i386_gdbarch_init): Update.
4786
4787 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4788
4789         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4790         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4791
4792 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4793
4794         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4795         problems.
4796
4797 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4798
4799         * infrun.c (handle_inferior_event): Move a comment outside of a
4800         function call, in order to avoid indent reformatting this part
4801         of the code in an unreadable way.
4802
4803 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4804
4805         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4806         when breakpoints fail. Move general breakpoint error messages to
4807         insert_breakpoints.  
4808         * breakpoint.c (insert_breakpoints): Change warnings when
4809         breakpoints are nto inserted to specify the type. Remove call to
4810         memory_error when hardware breakpoints can't be inserted. Remove
4811         multiple calls to warning so all messages are sent to the user at
4812         once.
4813         (delete_breakpoints): Make insert error messsages more explicit.
4814
4815 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4816
4817         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4818         gdbserver/ChangeLog.
4819
4820 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4821
4822         * i386-tdep.c: Include "objfiles.h".
4823         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4824         skip_trampoline_code.
4825         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4826         (CPLUS_MARKER): Define to '.'.
4827
4828         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4829         member.
4830         (linux_corefile_thread_callback): Increase args->num_notes.
4831         (linux_make_note_section): Initialize thread_args.num_notes, and
4832         use it to determine whether notes for any threads were created.
4833
4834 2002-08-23  Donn Terry  <donnte@microsoft.com>
4835
4836         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4837         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4838         and PCUNKILL.
4839         (write_with_trace): Conditionalize out the switch branch handling
4840         PCSHOLD if the corresponding macro is not defined. Likewise for
4841         PRSABORT and PRSTOP.
4842         This change will be needed by the Interix port.
4843
4844 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4845
4846         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4847         write_register wherever possible instead of manipulating the
4848         register bytes directly.
4849         Assign VALUE_CONTENTS to a variable and use that.
4850         The GPR numbers are now dependent on the architecture.
4851         
4852 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4853
4854         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4855         ev_offset fields.
4856         (skip_prologue): Add support for BookE/e500 instructions.
4857         (e500_extract_return_value): New function.
4858         (frame_get_saved_regs): Add support for saving ev registers and
4859         pseudo gpr's.
4860         (e500_store_return_value): New function.
4861         (rs6000_gdbarch_init): Move up default intializations of
4862         deprecated_extract_return_value and store_return_value.  Overwrite
4863         init of store_return_value with e500 specific version.
4864         Set extract_return_value for e500.
4865         
4866 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4867
4868         * blockframe.c (generic_call_dummy_register_unwind): Use
4869         regcache_cooked_read to catch cases in which the variable is
4870         stored in a pseudo register.
4871
4872 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4873
4874         * NEWS: Mention that the i960 has been made obsolete.
4875         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4876         i960-tdep.c
4877         (remote-nrom.o): Obsolete target.
4878         (remote-nindy.o, i960-tdep.o): Ditto.
4879         * remote-nrom.c: Make file obsolete.
4880         * remote-nindy.c, remote-vx960.c: Ditto.
4881         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4882         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4883         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4884         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4885         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4886         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4887         i960-*-vxworks* obsolete.
4888         * MAINTAINERS: Note that the i960 is obsolete.
4889
4890 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4891
4892         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4893         detach to allow reinitialization.
4894
4895 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4896
4897         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4898         attempt).
4899
4900 2002-08-22  Jim Blandy  <jimb@redhat.com>
4901
4902         * coffread.c (coff_symfile_read): Don't try to read the line
4903         number table from disk if the image file doesn't have a symbol
4904         table; we'll never actually look at the info anyway, and Windows
4905         ships DLL's with bogus file offsets for the line number data.
4906
4907 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4908
4909         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4910         an e500 executable.
4911
4912 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4913
4914         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4915         (MSYMBOL_SIZE): Replace macro with function.
4916         (DEFAULT_MIPS_TYPE): Delete unused macro.
4917         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4918         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4919
4920 2002-08-21  Jim Blandy  <jimb@redhat.com>
4921
4922         * valops.c (value_cast): Simplify and correct logic for doing a
4923         static cast from a pointer to a base class to a pointer to a
4924         derived class.
4925
4926 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4927
4928         * infcmd.c (default_print_registers_info): Replace
4929         do_registers_info.
4930         (registers_info): Use gdbarch_print_registers_info instead of
4931         DO_REGISTERS_INFO.
4932         * inferior.h (default_print_registers_info): Replace
4933         do_registers_info.
4934         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4935         (DO_REGISTERS_INFO): Change to a predicate function.
4936         * gdbarch.h, gdbarch.c: Regenerate.
4937         
4938 2002-08-21  Keith Seitz  <keiths@redhat.com>
4939
4940         * gdb-events.sh: Add target-changed event.
4941         * gdb-events.c: Regenerated.
4942         * gdb-events.c: Regenerated.
4943         * valops.c (value_assign): Add target-changed event notification
4944         to inlval_register, lval_memory, and lval_reg_frame_relative.
4945
4946 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4947
4948         * NEWS: Add an entry regarding the improvement of the next/step
4949         operation on Alpha Tru64 multi-processor machines.
4950
4951 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4952
4953         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4954         directores.
4955         * Makefile.in: Update all _h macro definitions.
4956         * Makefile.in (install-gdbtk): Move to install section.
4957         (rdi-share/libangsd.a): Move to end of file.
4958
4959 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4960
4961         * frame.c (frame_register_unwind): When a register, set addrp to
4962         the register's byte.
4963
4964 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4965
4966         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4967         used locally, so move them from the target machine header to here.
4968         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4969         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4970         Make static.
4971         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4972
4973 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4974
4975         * NEWS: Mention that the Apollo line was made obsolete.
4976         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4977         m68*-hp-hpux* obsolete.
4978         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4979         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4980         * buildsym.c (make_blockvector): Make static.
4981         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4982         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4983         (ALLDEPFILES): Remove dstread.c.
4984         (dstread.o): Obsolete make rule.
4985         * dstread.c: Makefile obsolete.
4986         * dst.h: Ditto.
4987         * config/m68k/hp300hpux.mt: Ditto.
4988         * config/m68k/hp300hpux.mh: Ditto.
4989         * config/m68k/hp300bsd.mt: Ditto.
4990         * config/m68k/hp300bsd.mh: Ditto.
4991         * config/m68k/apollo68b.mt: Ditto.
4992         * config/m68k/apollo68v.mh: Ditto.
4993         * config/m68k/apollo68b.mh: Ditto.
4994
4995 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4996
4997         * mips-tdep.c (mips_in_return_stub): Make static.
4998         (mips_gdbarch_init): Set in_solib_return_trampoline.
4999         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5000
5001 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5002
5003         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5004         * gdbarch.c, gdbarch.h: Regenerate.
5005         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5006         Add.
5007         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5008
5009 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5010
5011         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5012         (mips_gdbarch_init): Set skip_trampoline_code, 
5013         in_solib_call_trampoline.
5014         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5015         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5016
5017 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5018
5019         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5020
5021         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5022         vector type for ev registers.
5023         (e500_pseudo_register_read): New function.
5024         (e500_pseudo_register_write): New function.
5025         (e500_dwarf2_reg_to_regnum): New function.
5026         (PPC_UISA_NOFP_SPRS): New macro.
5027         (PPC_EV_REGS): New macro.
5028         (PPC_GPRS_PSEUDO_REGS): New macro.
5029         (registers_e500): New register set for e500.
5030         (variants): Add e500 variant.
5031         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5032         before setting architectural dependent variations.  Initialize ev
5033         registers numbers.  Add case for e500 architecture.  Set the
5034         number of pseudo registers.
5035
5036 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5037
5038         * rs6000-tdep.c: Clean up comments.
5039
5040 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5041
5042         * h8300-tdep.c: Re-indent file.
5043
5044 2002-08-20  Jim Blandy  <jimb@redhat.com>
5045
5046         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5047         default for this.
5048
5049 2002-08-20  Keith Seitz  <keiths@redhat.com>
5050
5051         * breakpoints.c (watch_command_1): Use internal breakpoint
5052         when setting a watchpoint_scope breakpoint.
5053
5054 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5055
5056         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5057         (build_builtin_type_vec64i): Ditto.
5058         (build_builtin_type_vec128): Ditto.
5059         (build_builtin_type_vec128i): Ditto.
5060
5061 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5062
5063         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5064         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5065         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5066         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5067         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5068         CALL_DUMMY_ADDRESS): Delete.
5069         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5070         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5071         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5072         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5073         push_return_address.
5074         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5075         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5076         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5077         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5078         mips_n32n64_push_arguments, mips_push_return_address,
5079         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5080         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5081
5082 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5083
5084         * mips-tdep.c (mips_frame_num_args): New function.
5085         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5086         frame_saved_pc, frame_args_address, frame_locals_address, 
5087         frame_num_args, and frame_args_skip.
5088         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5089         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5090         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5091         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5092
5093 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5094
5095         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5096         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5097         * mips-tdep.c (mips_store_struct_return): New function.
5098         (mips_extract_struct_value_address): New function.
5099         (mips_gdbarch_init): Set store_struct_return and
5100         extract_struct_value_address.
5101
5102 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5103
5104         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5105         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5106         (read_file_scope): Check that line_header is nonzero before
5107         decoding macro information.
5108
5109 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5110
5111         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5112         flag the general-purpose registers as floating-point on targets
5113         that don't support the floating-point registers.
5114
5115 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5116
5117         * rs6000-tdep.c (altivec_register_p): Delete.
5118         (rs6000_do_altivec_registers): Delete.
5119         (rs6000_altivec_registers_info): Delete.
5120         (rs6000_do_registers_info): Delete.
5121         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5122         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5123
5124 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5125
5126         * infcmd.c (do_registers_info): Print vector registers in hex
5127         format only.
5128         (print_vector_info): Check that printing registers
5129         makes sense.
5130         (print_float_info): Ditto.
5131
5132 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5133
5134         * mips-tdep.c (mips_gdbarch_init): Update.
5135         (mips_o32_extract_return_value): Rewrite.
5136         (mips_o32_store_return_value): Rewrite.
5137         (mips_o32_xfer_return_value): New function.
5138         (mips_xfer_register): Tweak debug print message.  Allow for
5139         buf_offset when dumping the value transfered.
5140
5141 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5142
5143         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5144         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5145         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5146         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5147         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5148
5149 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5150
5151         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5152
5153 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5154
5155         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5156         register.
5157         (P): New macro to define a register as a pseudo register.
5158         (R, R4, R8, R16, FR32, R64, R0): Updated.
5159         (struct variant): Add new fields for number of pseudo registers
5160         and number of total registers.
5161         (tot_num_registers): New macro replacing....
5162         (num_registers): ...deleted macro.
5163         (num_registers): New function.
5164         (num_pseudo_registers): New function.
5165         (variants): Update all variants to intialize new fields correctly.
5166         Postpone initialization of number of pseudo regs and real regs.
5167         (init_variants): New function.
5168         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5169         registers offsets.
5170
5171 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5172
5173         * valops.c (search_struct_field): Change error message to treat
5174         return value of 0 from value_static_field as meaning that field is
5175         optimized out.
5176         (value_struct_elt_for_reference): Ditto.
5177         * values.c (value_static_field): Treat an unresolved location the
5178         same as a nonexistent symbol.  Fix PR gdb/635.
5179         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5180         enclosed.  Fix PR gdb/574.
5181         * MAINTAINERS: Add self to Write After Approval list.
5182
5183 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5184
5185         * mips-tdep.c (mips_xfer_register): New function.
5186         (mips_n32n64_extract_return_value): Rewrite.
5187         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5188         instead of deprecated_extract_return_value.
5189
5190 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5191
5192         * rs6000-tdep.c (TDEP): Delete macro.
5193         (branch_dest): Replace use of TDEP macro with its body.
5194         (rs6000_pop_frame): Ditto.
5195         (rs6000_push_arguments): Ditto.
5196         (rs6000_skip_trampoline_code): Ditto.
5197         (rs6000_frame_saved_pc): Ditto.
5198         (rs6000_frame_chain): Ditto.
5199         (rs6000_register_name): Ditto.
5200         (rs6000_register_byte): Ditto.
5201         (rs6000_register_raw_size): Ditto.
5202         (rs6000_register_virtual_type): Ditto.
5203         (rs6000_register_convertible): Ditto.
5204         (rs6000_convert_from_func_ptr_addr): Ditto.
5205
5206 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5207
5208         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5209         conditionally.
5210         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5211         MIPS_LINUX_JB_ELEMENT_SIZE.
5212         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5213         for MAX_REGISTER_RAW_SIZE arrays.
5214         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5215         MIPS_LINUX_JB_ELEMENT_SIZE.
5216
5217 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5218
5219         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5220
5221 2002-08-19  Aidan Skinner <aidan@velvet.net>
5222
5223         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5224         ada-valprint.c ada-tasks.c.
5225         (YYFILES): Add ada-exp.y.
5226         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5227         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5228         (ada-exp.tab.o): New target.
5229                 
5230 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5231
5232         * regcache.c (regcache_xfer_part): New function.
5233         (regcache_raw_read_part): New function.
5234         (regcache_raw_write_part): New function.
5235         (regcache_cooked_read_part): New function.
5236         (regcache_cooked_write_part): New function.
5237         * regcache.h (regcache_raw_read_part): Declare.
5238         (regcache_raw_write_part): Declare.
5239         (regcache_cooked_read_part): Declare.
5240         (regcache_cooked_write_part): Declare.
5241
5242 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5243
5244         * remote.c (remote_open_1): Add async_p.
5245         (remote_async_open_1): Delete.
5246         (open_remote_target): Delete.
5247         (remote_open, extended_remote_open): Update calls to remote_open_1.
5248         (remote_async_open, extended_remote_async_open): Call
5249         remote_open_1 instead of remote_async_open_1.
5250
5251 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5252
5253         * blockframe.c: Fix a few coding standard violations.
5254
5255 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5256
5257         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5258         here from ...
5259         * config/i386/tm-i386sco5.h: ... here.  File removed.
5260         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5261
5262         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5263         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5264         (TM_FILE): Set to tm-i386.h.
5265         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5266         * config/i386/tm-i386v.h: Remove file.
5267         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5268         instead of "i386/tm-i386v.h".
5269         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5270         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5271         "i386/tm-i386v.h".
5272         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5273         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5274         "i386/tm-i386.h".
5275
5276 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5277
5278         * config/i386/nm-i386v.h: Add protection against
5279         multiple-inclusion.
5280         (i386_register_u_addr): Remove prototype.
5281         (register_u_addr): New prototype.
5282         (REGISTER_U_ADDR): Redefine accordingly.
5283         * i386v-nat.c: Improve several comments.
5284         (i386_register_u_addr): Change signature and rename to
5285         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5286         ubase variable.
5287
5288 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5289
5290         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5291         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5292         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5293         deprecated_extract_return_value.
5294         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5295         rename mips_o32o64_push_arguments.
5296         (mips_gdbarch_init): Update.
5297         (mips_extract_return_value): Delete.
5298         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5299         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5300         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5301         (mips_n32n64_extract_return_value): Clone
5302         mips_extract_return_value.
5303         (mips_store_return_value): Delete.
5304         (mips_o32_store_return_value): Clone mips_store_return_value.
5305         (mips_o64_store_return_value): Clone mips_store_return_value.
5306         (mips_eabi_store_return_value): Clone mips_store_return_value.
5307         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5308
5309 2002-08-18  Aidan Skinner <aidan@velvet.net>
5310
5311         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5312         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5313                 
5314 2002-08-18  Aidan Skinner <aidan@velvet.net>
5315
5316         * ada-lang.c: Run through gdb_indent.sh.
5317         * ada-lang.h: Run through gdb_indent.sh.
5318         * ada-tasks.c: Run through gdb_indent.sh.
5319         * ada-typeprint.c: Run through gdb_indent.sh.
5320         * ada-valprint.c: Run through gdb_indent.sh.
5321
5322 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5323
5324         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5325         ABI.
5326
5327 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5328
5329         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5330
5331         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5332         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5333
5334         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5335         write_register_gen instead of write_register_bytes.
5336
5337         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5338         i[3456]-*-osf1mk* configurations have been made obsolete.
5339         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5340         i[3456]86-*-osf1mk* hosts obsolete.
5341         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5342         targets obsolete.
5343         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5344         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5345         config/i386/i386m3.mt, config/i386/nm-m3.h,
5346         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5347         config/i386/i386mk.mh, config/i386/i386mk.mt,
5348         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5349         obsolete.
5350         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5351         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5352         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5353
5354 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5355
5356         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5357         (hppa_value_returned_from_stack): Declare.
5358         (hppa_extract_return_value): Declare.
5359         * config/pa/hppa.mt: New file.
5360         * configure.tgt: Recognize hppa*-*-*.
5361         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5362
5363 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5364
5365         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5366         comment.
5367
5368 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5369
5370         * top.c (gdb_rl_operate_and_get_next): Make sure
5371         operate-and-get-next functions correctly even when the history
5372         list is completely filled.
5373
5374 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5375
5376         * MAINTAINERS (Target Instruction Set Architectures): Rename
5377         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5378         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5379         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5380         already listed under Host/Native.
5381
5382         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5383         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5384         mips*-*-*.
5385
5386 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5387
5388         * config/ia64/ia64.mt: New file.
5389         * config/alpha/alpha.mt: New file.
5390         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5391         ia64-linux-gnu.  Mention that ia64-elf is broken.
5392         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5393
5394 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5395
5396         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5397         generic_func_frame_valid instead of func_frame_valid.
5398
5399 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5400
5401         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5402         procfs appears to be broken when debugging on multi-processor
5403         machines. So enable software single stepping in order to avoid
5404         using the procfs interface to do next/step operations, using
5405         internal breakpoints instead.
5406
5407         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5408         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5409         make this pc address equal to the value it would have if the
5410         system stepping capability was used. Also set a new flag used
5411         to ensure that we don't readjust the PC one more time later.
5412
5413         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5414         address by DECR_PC_AFTER_BREAK when software single step is
5415         in use for this architecture, as this has already been taken
5416         care of in handle_inferior_event().
5417
5418 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5419
5420         * infrun.c (handle_inferior_event): Minor reformatting, to make
5421         a rather long condition expression easier to read.
5422
5423 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5424
5425         * Makefile.in (gdbtk.o): Move to end of file.
5426         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5427         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5428         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5429         (gdbtk-wrapper.o, gdbres.o): Ditto.
5430
5431 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5432
5433         * Makefile.in (copying.o): Separate out compile rule.
5434         (hpux-thread.o, procfs.o, signals.o): Ditto.
5435         (v850ice.o, z8k-tdep.o): Ditto.
5436         (tui-file.o): Move to TUI section.
5437         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5438         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5439
5440 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5441
5442         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5443         skip_trampoline_code, for better namespace-proofing.   
5444
5445         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5446
5447 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5448
5449         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5450
5451 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5452
5453         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5454         signal, check whether we hit a breakpoint before checking for a
5455         single step breakpoint. Otherwise, GDB fails to notice that a
5456         breakpoint has been hit when stepping onto a breakpoint.
5457
5458 2002-08-16  Keith Seitz  <keiths@redhat.com>
5459
5460         * gdb-events.sh (clear_gdb_event_hooks): New function.
5461         * gdb-events.c: Regenerate.
5462         * gdb-events.h: Regenerate.
5463
5464 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5465
5466         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5467         not_a_sw_breakpoint.
5468         * breakpoint.h (bpstat_stop_status): Add parameter names.
5469
5470 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5471
5472         * remote.c (remote_insert_hw_breakpoint)
5473         (remote_remove_hw_breakpoint): Fix calculation of length field
5474         for Z-packet.
5475
5476 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5477
5478         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5479         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5480         (supply_fpregset): Ditto.
5481         
5482         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5483         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5484         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5485         (TARGET_READ_SP): Delete.
5486         (DO_REGISTERS_INFO): Delete.
5487         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5488         Delete.
5489         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5490         from macros to functions.
5491
5492         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5493         (mips_register_convertible, mips_register_convert_to_virtual,
5494         mips_register_convert_to_raw): Make static.
5495         (mips_read_sp): New function.
5496         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5497         (mips_do_registers_info): Make static.
5498         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5499         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5500         (mips_register_convert_from_type, mips_register_convert_to_type):
5501         New functions.
5502         (mips_gdbarch_init): Set up function_start_offset, 
5503         register_virtual_size, pc_in_sigtramp.
5504
5505 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5506
5507         * infcmd.c (vector_info): New function.
5508         (_initialize_infcmd): Add command "info vector".
5509         (print_vector_info): New function.
5510
5511         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5512         * gdbarch.h, gdbarch.c: Regenerate.
5513
5514 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5515
5516         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5517         ``print_all''.  Only print vector registers when ``print_all''.
5518
5519 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5520
5521         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5522         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5523
5524         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5525         Add `args' parameter.
5526         * gdbarch.h, gdbarch.c: Regenerate.
5527         
5528         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5529         
5530         * infcmd.c (float_info): Call print_float_info.
5531         (print_float_info): New function.  By default, print the
5532         floating-point registers.
5533
5534         * arch-utils.h (default_print_float_info): Delete declaration.
5535         * arch-utils.c (default_print_float_info): Delete function.
5536         
5537 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5540         out define.
5541
5542         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5543         FRAME.
5544
5545         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5546         * configure.host: Make i[3456]86-*-aix host obsolete.
5547         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5548         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5549         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5550         config/i386/xm-i386aix.h: Make files obsolete.
5551         * i386aix-nat.c: Make file obsolete.
5552         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5553         (i386aix-nat.o): Make target obsolete.
5554
5555         * config/i386/nm-gnu.h: Removed.
5556         * config/i386/nm-i386gnu.h: New file.
5557         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5558         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5559         Moved here from ...
5560         * config/i386/tm-i386gnu.h: ... here.  Removed.
5561         * config/i386/xm-i386gnu.h: Removed.
5562         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5563         (NAT_FILE): Set to nm-i386gnu.h.
5564         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5565         * i386-tdep.c: New file.
5566         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5567         (i386gnu-tdep.o): Specify dependencies.
5568
5569 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5570
5571         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5572         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5573         Adjust a few comments to reflect reality a bit closer.
5574         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5575         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5576         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5577         target_insert_watchpoint, target_remove_watchpoint):
5578         Move defines to ...
5579         * config/i386/nm-i386sco5.h: ... here.
5580         (kernel_u_size): Add prototype.  Improve a few comments and add
5581         protection against multiple inclusion.
5582         
5583         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5584         out define.
5585
5586         * uw-thread.c (SP_ARG0): Define if not already defined.
5587         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5588
5589         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5590
5591         * config/i386/tm-i386.h: Don't include "regcache.h".
5592
5593         * i387-tdep.h (i387_print_float_info): New prototype.
5594         * i387-tdep.c (print_i387_value, print_i387_ext,
5595         print_i387_status_word, print_i387_control_word): Add `struct
5596         ui_file *' argument and use it for output.
5597         (i387_print_float_info): Renamed from i387_float_info.  Add
5598         `struct gdbarch *' and `struct ui_file *' arguments and use the
5599         latter for output.
5600         * i386-tdep.c: Include "i387-tdep.h".
5601         (i386_gdbarch_init): Set print_float_info.
5602         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5603         (FLOAT_INFO): Remove define.
5604
5605 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5606
5607         * mips-tdep.c (mips_push_arguments): Rename to
5608         mips_eabi_push_arguments, and tune for EABI.
5609         (MIPS_REGS_HAVE_HOME_P): Delete.
5610         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5611         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5612         Delete references to mips_regs_have_home_p.
5613
5614 2002-08-14  Keith Seitz  <keiths@redhat.com>
5615
5616         * Makefile.in (install-gdbtk): Create insight plugin directory.
5617         Install plugins.tcl file.
5618
5619 2002-08-14  Keith Seitz  <keiths@redhat.com>
5620
5621         * configure.in: Move SUBDIRS to near top of the file so that
5622         --enable options may add things to it.
5623         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5624         * configure: Regenerate.
5625
5626 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5627
5628         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5629         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5630         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5631
5632 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5633
5634         * vax-tdep.c (vax_get_saved_register): Delete function.
5635         (vax_gdbarch_init): Update.
5636         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5637         (ns32k_gdbarch_init): Update.
5638         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5639         (alpha_gdbarch_init): Update.
5640
5641 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5642
5643         * regcache.c (init_regcache_descr): Overallocate the
5644         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5645         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5646         nr_raw_registers.
5647         (set_register_cached): Add range checking assertions.  Use
5648         current_regcache.
5649
5650 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5651
5652         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5653         numbers for MMX registers.
5654
5655 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5656
5657         * i386-tdep.c (i386_gdbarch_init): Use
5658         generic_unwind_get_saved_register.
5659
5660 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5661
5662         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5663         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5664         target vector.
5665         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5666         Delete.  Add comment regarding this now-deleted target method.
5667
5668 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5669
5670         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5671         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5672         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5673         real PC and the page number (if it's within the memory bank window).
5674         (m68hc11_pseudo_register_write): Likewise when saving.
5675         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5676         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5677         (m68hc11_register_raw_size): And use 32-bit for it.
5678         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5679         16K memory bank is used by the prog; also use the virtual pc.
5680
5681 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5682
5683         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5684         (m68hc11_gdbarch_init): Install it in gdbarch.
5685         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5686         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5687         (MSYMBOL_SIZE): New for documentation.
5688         (insn_return_kind): Enum to specify how a function returns.
5689         (frame_extra_info): Cleanup and record the return mode.
5690         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5691         register in address computation.
5692         (m68hc11_get_return_insn): New to obtain the return instruction used
5693         by the function.
5694         (m68hc11_frame_init_saved_regs): Take into account the return
5695         instruction used by the function for far and interrupt functions.
5696         (m68hc11_init_extra_frame_info): Take into account page register.
5697         (m68hc11_frame_args_address): Adjust according to the return mode.
5698         (show_regs): Print page register only when it's used.
5699
5700 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5701
5702         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5703         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5704         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5705         registers.
5706         (m68hc11_register_raw_size): Likewise.
5707
5708 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5709
5710         * i386-tdep.c (i386_register_name): Handle mmx registers.
5711         (mmx_regnum_p): New function.
5712         (i386_mmx_names): New array.
5713         (mmx_num_regs): New variable.
5714         (i386_pseudo_register_read): New function.
5715         (i386_pseudo_register_write): New function.
5716         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5717
5718         * regcache.c (regcache_raw_read_unsigned): New function.
5719         (regcache_raw_read_signed): New function.
5720         * regcache.h (regcache_raw_read_unsigned): Declare.
5721         (regcache_raw_read_signed): Declare.
5722
5723 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5724
5725         * regcache.c (regcache_raw_read_as_address): Delete function.
5726         (regcache_cooked_read_signed): New function.
5727         (regcache_cooked_read_unsigned): New function.
5728         * regcache.h (regcache_cooked_read_signed): Declare.
5729         (regcache_cooked_read_unsigned): Declare.
5730         (regcache_raw_read_as_address): Delete declaration.
5731
5732         * blockframe.c (generic_read_register_dummy): Use
5733         regcache_cooked_read_unsigned.
5734         * i386-tdep.c (i386_extract_struct_value_address): Use
5735         regcache_cooked_read_unsigned.
5736
5737 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5738
5739         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5740         double sizes according to ELF ABI flags.
5741         (gdbarch_tdep): Record elf_flags.
5742
5743 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5744
5745         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5746         (m6812_prolog): They can appear in 68HC12 function prologue.
5747         (m68hc11_frame_chain): Cleanup.
5748
5749 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5750
5751         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5752         declarations.
5753         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5754         (i386_linux_register_raw_size): Delete function.
5755         (i386_linux_init_abi): Update.
5756         * i386-tdep.c (i386_register_raw_size): Delete function.
5757         (i386_register_byte): Delete function.
5758         (i386_gdbarch_init): Update.
5759         (i386_register_size): Delete array.
5760         (i386_register_offset): Delete array.
5761
5762         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5763         (REGISTER_RAW_SIZE): Delete macro.
5764         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5765         (REGISTER_BYTE): Delete macro.
5766
5767 2002-08-11  Aidan Skinner <aidan@velvet.net>
5768
5769         * ada-lang.c (ada_lookup_partial_symbol)
5770         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5771         prototype names so that grep ^func works properly.
5772
5773         * ada-lang.c (ada_array_element_type)
5774         (ada_lookup_partial_symbol): Fix typos in parameter list.
5775
5776         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5777         Fix prototype names so that grep ^func works properly.
5778         
5779 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5780             Elena Zannoni  <ezannoni@redhat.com>
5781             Martin M. Hunt  <hunt@redhat.com>
5782
5783         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5784         (build_builtin_type_vec128i): Set the vector bit.
5785         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5786         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5787         (build_builtin_type_vec64): New function.
5788         (build_builtin_type_vec64i): New function.
5789         (build_gdbtypes): Initialize builtin_type_vec64 and
5790         builtin_type_vec64i.
5791
5792 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5793
5794         * regcache.c (regcache_dump): Compare the register offset
5795         with REGISTER_BYTE.
5796         * arch-utils.c (generic_register_byte): New function.
5797         * arch-utils.h (generic_register_byte): Declare.
5798         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5799         * gdbarch.h, gdbarch.c: Regenerate.
5800
5801 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5802
5803         * regcache.c: Include "gdbcmd.h"
5804         (_initialize_regcache): Add commands "maintenance print
5805         registers", "maintenance print raw-registers" and "maintenance
5806         print cooked-registers".
5807         (enum regcache_dump_what): Define.
5808         (dump_endian_bytes): New function.
5809         (regcache_dump): New function.
5810         (regcache_print): New function.
5811         (maintenance_print_registers): New function.
5812         (maintenance_print_raw_registers): New function.
5813         (maintenance_print_cooked_registers): New function.
5814         * Makefile.in (regcache.o): Update dependencies.
5815
5816 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5817
5818         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5819         (mips_push_arguments): Correct some comments.  Use paddr_nz
5820         for printing addresses in debug output.  Replace static
5821         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5822         (mips_n32n64_push_arguments): New function, cloned from
5823         mips_push_arguments and tuned for the n32/n64 ABI.
5824         (mips_push_register): Buffer needs dynamic allocation.
5825         (mips_print_register): Ditto.
5826         (do_gp_register_row): Ditto.
5827         (mips_store_return_value): Ditto.
5828         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5829
5830 2002-08-09  Don Howard  <dhoward@redhat.com>
5831
5832         * memattr.c (mem_info_command): Print special case of upper bound
5833         as max CORE_ADDR + 1.
5834
5835 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5836
5837         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5838         returns structs by ref if they're too big to fit in two registers.
5839
5840 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5841
5842         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5843         saved regs value.
5844         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5845         mips_find_saved_regs().
5846         (mips_pop_frame): Likewise.
5847
5848 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5849
5850         * blockframe.c (frame_saved_regs_register_unwind): Revise
5851         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5852         frames are in use.
5853
5854 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5855         
5856         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5857         T-packets; the 'a' is not taken as a register number.
5858         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5859         (remote_stopped_data_address): New functions; add to target
5860         vector.
5861         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5862         prototypes to match other implementations of this
5863         function. replace integer argument with pointer -- the length
5864         field in the Z-packet is the length of what is pointed to or 1 if
5865         pointer is null. Add to target vector.
5866         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5867         target vector.
5868
5869         From Mark Salter:
5870         * remote.c (remote_wait): Add support to extract optional
5871         watchpoint information from T-packet. Ignore unrecognized
5872         optional info in T-packet.
5873         (remote_async_wait): Ditto.
5874
5875 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5876
5877         * cli/cli-dump.c: Change fopen modes to use binary open modes
5878         as defined in include/fopen-bin.h throughout.
5879
5880 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5881
5882         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5883
5884 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5885
5886         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5887         assertion failure by returning early after a warning.
5888
5889 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5890
5891         * mips-tdep.c (mips_find_saved_regs): Make static.
5892         (mips_frame_init_saved_regs): New function.
5893         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5894         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5895         (mips_find_saved_regs): Delete declaration.
5896
5897 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5898
5899         * remote.c (remote_wait, remote_async_wait): Change
5900         thread_num from int to ULONGEST.
5901         (unpack_varlen_hex): Change result parameter from
5902         int * to ULONGEST *.
5903
5904 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5905
5906         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5907         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5908         powerpc*-*-*.
5909         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5910
5911 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5912
5913         * gcore.c (override_derive_stack_segment): Delete variable.
5914         (preempt_derive_stack_segment): Delete function.
5915         (derive_stack_segment): Delete function.
5916         (default_derive_stack_segment): Renamed to derive_stack_segment.
5917         (override_derive_heap_segment): Delete variable.
5918         (preempt_derive_heap_segment): Delete function.
5919         (derive_heap_segment): Delete function.
5920         (default_derive_heap_segment): Rename to derive_heap_segment.
5921
5922 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5923
5924         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5925         * mips-tdep.c (mips_EABI_use_struct_convention, 
5926         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5927         New functions.  (mips_use_struct_convention): Delete.
5928         (mips_gdbarch_init): set use_gdbarch_convention.
5929
5930 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5931
5932         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5933         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5934         mips_o32_reg_struct_has_addr): New functions.
5935         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5936
5937 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5938
5939         * regcache.c (pseudo_register): Delete function.
5940         (fetch_register): Delete function.
5941         (store_register): Delete function.
5942         (regcache_raw_read, legacy_read_register_gen): Use
5943         target_fetch_registers instead of fetch_register.
5944         (legacy_write_register_gen, regcache_raw_write): Use
5945         target_store_register instead of store_register.
5946         (write_register_bytes): Ditto.
5947
5948         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5949         (STORE_PSEUDO_REGISTER): Delete.
5950         * gdbarch.h, gdbarch.c: Regenerate.
5951
5952 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5953
5954         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5955         write dump file binary.
5956
5957 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5958
5959         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5960         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5961         (mips_gdbarch_init): Set N32 target to be mips64.
5962
5963 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5964
5965         * frame.c (find_saved_register): Break out of loop once saved
5966         register address is found.  Don't mention sparc in loop comment
5967         anymore.
5968
5969 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5970
5971         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5972         mips_default_saved_regsize to 8.
5973
5974 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5975
5976         * gcore.c: Do not include <sys/procfs.h>.
5977         * Makefile.in (gcore.o): Update dependencies.
5978
5979 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5980
5981         * configure.tgt: Make arc-*-* obsolete.
5982         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5983         * MAINTAINERS: Make arc-elf obsolete.
5984         * arc-tdep.c: Make file obsolete.
5985         * config/arc/arc.mt: Ditto.
5986         * config/arc/tm-arc.h: Ditto.
5987
5988 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5989
5990         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5991
5992 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5993
5994         * mcore-tdep.c (mcore_gdbarch_init): Use
5995         generic_unwind_get_saved_register instead of
5996         generic_get_saved_register.
5997         * v850-tdep.c (v850_gdbarch_init): Ditto.
5998         * frv-tdep.c (frv_gdbarch_init): Ditto.
5999         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6000         * s390-tdep.c (s390_gdbarch_init): Ditto.
6001         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6002         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6003         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6004
6005 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6006
6007         * objfiles.h: Add missing #include "symfile.h"
6008
6009         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6010
6011 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6012
6013         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6014         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6015         of FIELD_BITSIZE.
6016
6017 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6018
6019         * NEWS: Cleanup and nitpick.
6020
6021 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6022
6023         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6024
6025 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6026
6027         * Makefile.in (gdbtk-bp.o): Update dependencies.
6028         (gdbtk-register.o): Ditto.
6029         (gdbtk-varobj.o): Ditto.
6030
6031 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6032
6033         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6034         m68hc11_fetch_pseudo_register.
6035         (m68hc11_pseudo_register_write): Replace
6036         m68hc11_store_pseudo_register.
6037         (m68hc11_gdbarch_init): Update.
6038
6039 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6040
6041         * gdbarch.sh: Include "gdb_string.h".
6042         * gdbarch.c: Regenerate.
6043
6044         * regcache.c: Include "gdb_string.h".
6045         * ax-general.c: Ditto.
6046         * varobj.c: Ditto.
6047         * std-regs.c: Ditto.
6048         * fbsd-proc.c: Ditto.
6049         * thread.c: Ditto.
6050
6051         * Makefile.in (regcache.o): Update dependencies.
6052         (thread.o, gdbarch.o): Ditto.
6053         (ax-general.o, gdbarch.o): Ditto.
6054         (varobj.o, std-regs.o): Ditto.
6055         (fbsd-proc.o): Specify dependencies.
6056
6057 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6058
6059         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6060         regnum.
6061         (regcache_cooked_write): Ditto.
6062
6063 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6064
6065         * regcache.c (regcache_cooked_read): New function.
6066         (regcache_cooked_write): New function.
6067         (read_register_gen): Rewrite using regcache_cooked_read.
6068         (write_register_gen): Rewrite using regcache_cooked_write.
6069
6070         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6071         Declare.
6072
6073 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6074
6075         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6076         Replace the architecture methods register_read and register_write.
6077         * gdbarch.h, gdbarch.c: Regenerate.
6078         * regcache.c (init_regcache_descr): Update.
6079         (read_register_gen): Update.
6080         (write_register_gen): Update.
6081         (supply_register): Update comment.
6082
6083         * sh-tdep.c (sh_gdbarch_init): Update.
6084         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6085         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6086         pointer.  Update code.
6087         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6088         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6089         void pointer.  Update code.
6090         (sh64_register_write): Delete.
6091         (sh4_register_read): Delete.
6092         (sh64_register_read): Delete.
6093         (sh4_register_write): Delete.
6094         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6095         void pointer, `to' parameter a void pointer.
6096         (sh_sh64_register_convert_to_raw): Ditto.
6097
6098 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6099
6100         * mips-tdep.c (mips_register_virtual_type): Use architecture
6101         invariant return values.
6102
6103 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6104
6105         * linux-proc.c: Include "gdb_string.h".
6106         * Makefile.in (linux-proc.o): Update dependency list.
6107
6108 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6109
6110         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6111         comment.
6112
6113 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6114
6115         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6116         to_insert_watchpoint, to_remove_watchpoint,
6117         to_stopped_by_watchpoint, to_stopped_data_address,
6118         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6119         target vecctor. Define their corresponding macros so they call
6120         them.
6121         
6122         * target.c: Add default and debug versions of for
6123         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6124         to_insert_watchpoint, to_remove_watchpoint,
6125         to_stopped_by_watchpoint, to_stopped_data_address,
6126         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6127
6128 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6129
6130         * mips-tdep.c (mips_register_virtual_type): New function.
6131         (mips_gdbarch_init): Register mips_register_virtual_type()
6132         with gdbarch machinery.
6133         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6134         this file instead of tm-bigmips.h.
6135         (MIPS_REGSIZE): Delete this macro.
6136         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6137         multiarch version in mips-tdep.c will be found.
6138
6139 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6140
6141         * NEWS: Menion that CHILL has been made obsolete.
6142
6143         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6144         * stabsread.c (read_range_type): Ditto.
6145         * gdbtypes.h: Ditto.
6146         * language.c (binop_type_check): Ditto.
6147         (binop_result_type): Ditto.
6148         (integral_type): Ditto.
6149         (character_type): Ditto.
6150         (string_type): Ditto.
6151         (boolean_type): Ditto.
6152         (structured_type): Ditto.
6153         (lang_bool_type): Ditto.
6154         (binop_type_check): Ditto.
6155         * language.h (_LANG_chill): Ditto.
6156         * dwarfread.c (set_cu_language): Ditto.
6157         * dwarfread.c (CHILL_PRODUCER): Ditto.
6158         * dwarfread.c (handle_producer): Ditto.
6159         * expression.h (enum exp_opcode): Ditto.
6160         * eval.c: Ditto for comments.
6161         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6162         * expprint.c (print_subexp): Ditto.
6163         (print_subexp): Ditto.
6164         * valops.c (value_cast): Ditto.
6165         (search_struct_field): Ditto.
6166         * value.h (COERCE_VARYING_ARRAY): Ditto.
6167         * symfile.c (init_filename_language_table): Ditto.
6168         (add_psymbol_with_dem_name_to_list): Ditto.
6169         * valarith.c (value_binop): Ditto.
6170         (value_neg): Ditto.
6171         * valops.c (value_slice): Ditto.
6172         * symtab.h (union language_specific): Ditto.
6173         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6174         (SYMBOL_DEMANGLED_NAME): Ditto.
6175         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6176         * defs.h (enum language): Ditto.
6177         * symtab.c (got_symtab): Ditto.
6178         * utils.c (fprintf_symbol_filtered): Ditto.
6179
6180         * ch-typeprint.c: Make file obsolete.
6181         * ch-valprint.c: Make file obsolete.
6182         * ch-lang.h: Make file obsolete.
6183         * ch-exp.c: Make file obsolete.
6184         * ch-lang.c: Make file obsolete.
6185
6186         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6187         CHILL_LIB.
6188         (TARGET_FLAGS_TO_PASS): Ditto.
6189         (CHILLFLAGS): Obsolete.
6190         (CHILL): Obsolete.
6191         (CHILL_FOR_TARGET): Obsolete.
6192         (CHILL_LIB): Obsolete.
6193         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6194         ch-valprint.c.
6195         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6196         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6197         ch-lang.o.
6198         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6199         targets.
6200
6201 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6202
6203         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6204         This does not change anything at the moment, but will be helpful
6205         later when full Ada support is integrated.
6206
6207 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6208
6209         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6210         help message.
6211
6212 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6213
6214         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6215         and save it in a local variable.  Use variable in later test.
6216
6217 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6218
6219         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6220         test.  (Thanks to Daniel Jacobowitz.)
6221         
6222 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6223
6224         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6225         (mips_abi_strings): Add "n64".
6226         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6227
6228 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6229
6230         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6231         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6232
6233 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6234
6235         * utils.c (host_pointer_to_address, address_to_host_pointer):
6236         Use gdb_assert() instead of explicit call to internal_error().
6237
6238 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6239
6240         * Makefile.in (rs6000-nat.o): Update dependencies.
6241
6242         From Nicholas Duffek:
6243         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6244         (aix-thread.o): New rule.
6245         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6246         * config/powerpc/aix432.mh: New file.
6247
6248 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6249
6250         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6251         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6252         (fetch_core_registers, ppc_linux_supply_gregset)
6253         (ppc_linux_supply_fpregset): New functions.
6254         (ppc_linux_regset_core_fns): New.
6255         (_initialize_ppc_linux_tdep): Call add_core_fns.
6256         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6257         and ppc_linux_supply_gregset.
6258         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6259         (supply_fpregset): Call ppc_linux_supply_fpregset.
6260         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6261         corelow.o.
6262         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6263
6264 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6265
6266         * symtab.c (lookup_symbol): Demangle before lowercasing.
6267
6268 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6269
6270         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6271         declaration.
6272         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6273         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6274         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6275         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6276         "gdb_string.h".
6277         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6278         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6279         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6280         (avr-tdep.o, mon960-rom.o): Ditto.
6281         (aout_stabs_gnu_h): Define.
6282         (symtab_h): Remove $(gdb_obstack_h).
6283
6284 2002-07-30  Jim Blandy  <jimb@redhat.com>
6285
6286         Patch from David Carlton <carlton@math.stanford.edu>:
6287         * gdbinit.in: Move the `dir' commands that add GDB's own source
6288         directory to the search path to the end, so that the `gdb' source
6289         directory will be searched first.
6290
6291 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6292
6293         * gdb_obstack.h: New file.
6294         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6295         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6296         * objfiles.h: Include "gdb_obstack.h".
6297         * Makefile.in (gdb_obstack_h): Define.
6298         (symtab_h): Add $(gdb_obstack_h).
6299         (objfiles_h): Add $(gdb_obstack_h).
6300         
6301         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6302         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6303         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6304         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6305         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6306         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6307         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6308         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6309
6310         * Makefile.in (bcache.o): Update dependencies.
6311         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6312         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6313         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6314         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6315         (stabsread.o, symfile.o, symmisc.o): Ditto.
6316         (symtab.o, typeprint.o, macroexp.o): Ditto.
6317         (macrotab.o, mdebugread.o): Ditto.
6318         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6319         (coff_ecoff_h, aout_aout64_h): Define.
6320         (aout_stabs_gnu_h, libaout_h): Define.
6321
6322 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6323
6324         * regcache.c (struct regcache_descr): Rename nr_registers to
6325         nr_cooked_registers.  Revise comments describing the structure
6326         member fields.
6327         (init_regcache_descr): Update.
6328         (init_legacy_regcache_descr): Update.
6329         (read_register_gen, write_register_gen): When a cooked register in
6330         the raw register range, directly access the value from the raw
6331         register cache.
6332
6333 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6334
6335         * z8k-tdep.c: Do not include "obstack.h".
6336         * h8300-tdep.c, h8500-tdep.c: Ditto.
6337         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6338         * valprint.c, v850-tdep.c: Ditto.
6339         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6340         * mn10200-tdep.c: Ditto.
6341
6342         * Makefile.in (z8k-tdep.o): Update dependencies.
6343         (m68hc11-tdep.o, valprint.o): Ditto.
6344         (v850-tdep.o, d10v-tdep.o): Ditto.
6345         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6346         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6347         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6348         (sh_opc_h, gdb_sim_sh_h): Define.
6349         (elf_sh_h, elf_bfd_h): Define.
6350         (opcode_m68hc11_h): Define.
6351         (OPCODES_SRC, OPCODES_DIR): define.
6352         (OPCODES): Use $(OPCODES_DIR).
6353         (gdb_sim_d10v_h): Rename sim_d10v_h.
6354         (gdb_sim_arm_h): Rename sim_arm_h.
6355
6356 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6357
6358         * utils.c (host_pointer_to_address, address_to_host_pointer):
6359         Change internal_error() message to indicate function responsible
6360         for the error.
6361
6362 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6363
6364         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6365         calls to local_hex_string_custom().
6366
6367 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6368
6369         * irix5-nat.c: Move IRIX shared library support from here...
6370         * solib-irix.c: ...to here.  Revised substantially to work with
6371         generic solib framework.
6372
6373         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6374         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6375         * mips-irix-tdep.c: New file.
6376
6377         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6378         (mips-irix-tdep.o, solib-irix.o): New rules.
6379         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6380         solib-irix.o.
6381         * config/mips/irix6.mt (TDEPFILES): Likewise.
6382         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6383
6384 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6385
6386         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6387         disabled (via ``#if 0'') includes.
6388
6389 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6390
6391         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6392         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6393         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6394         Add support for the fpscr register.
6395         * rs6000-nat.c (regmap, fetch_inferior_registers)
6396         (store_inferior_registers, fetch_core_registers): Likewise.
6397
6398 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6399
6400         * rs6000-nat.c (language.h): Include.
6401         (special_regs): Delete this array.
6402         (regmap): New function.
6403         (fetch_register, store_register):  Use regmap() to map gdb
6404         register numbers to ptrace register numbers.  Also, use
6405         outputs from regmap() to make decisions regarding type of
6406         ptrace() call to make.  In particular, don't compare against
6407         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6408         (fetch_inferior_registers, store_inferior_registers): Where
6409         possible, obtain register numbers from tdep struct.  Don't
6410         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6411         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6412         (LAST_UISA_SP_REGNUM): Delete.
6413         
6414 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6415
6416         * rs6000-nat.c (ppc-tdep.h): Include.
6417         (fetch_registers, store_register, fetch_core_registers): Don't
6418         access registers[] directly.  Instead, use supply_register() or
6419         regcache_collect() as appropriate.
6420         (find_toc_address): Format hex address with local_hex_string().
6421
6422 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6423
6424         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6425         bfd/elf32-frv.c.
6426
6427 2002-07-24  Tom Tromey  <tromey@redhat.com>
6428
6429         * jv-exp.y: Marked all strings with _().
6430         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6431         internal_error.
6432         (MethodInvocation, CastExpression, parse_number, yyerror,
6433         java_type_from_name, push_expression_name, yylex): Typo fixes.
6434
6435 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6436
6437         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6438         (tee_file_flush, tee_file_write, tee_file_fputs)
6439         (tee_file_isatty): New.
6440         * ui-file.h (tee_file_new): Add prototype.
6441
6442 2002-07-24  Aidan Skinner <aidan@velvet.net>
6443
6444         * ada-lang.c: Change k&r style function definitions to prototyped
6445         form.
6446         * ada-typeprint.c: Change k&r style function definitions to prototyped
6447         form.
6448         * ada-valprint.c: Change k&r style function definitions to prototyped
6449         form.
6450         
6451 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6452
6453         * README: Remove reference to remote-bug.
6454         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6455         remote-bug.c.
6456         (m88k-nat.o): Delete rule.
6457         (m88k-tdep.o): Delete rule.
6458         (remote-bug.o): Delete rule.
6459         * MAINTAINERS: Mark as obsolete.
6460         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6461         * m88k-tdep.c: Make file obsolete.
6462         * config/m88k/m88k.mh: Ditto.
6463         * config/m88k/delta88v4.mh: Ditto.
6464         * config/m88k/delta88v4.mt: Ditto.
6465         * config/m88k/delta88.mt: Ditto.
6466         * config/m88k/delta88.mh: Ditto.
6467         * remote-bug.c: Ditto.
6468         * config/m88k/tm-delta88.h: Ditto.
6469         * config/m88k/nm-delta88v4.h: Ditto.
6470         * config/m88k/xm-delta88.h: Ditto.
6471         * config/m88k/xm-dgux.h: Ditto.
6472         * config/m88k/tm-m88k.h: Ditto.
6473         * config/m88k/nm-m88k.h: Ditto.
6474         * config/m88k/tm-delta88v4.h: Ditto.
6475         * m88k-nat.c: Ditto.
6476         * cxux-nat.c: Ditto.
6477         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6478         and m88*-*-* obsolete.
6479         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6480         m88*-*-* obsolete.
6481
6482 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6483
6484         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6485         constant.  Same for local pointer variables.
6486         (extract_signed_integer): Ditto.
6487         * defs.h (extract_unsigned_integer): Update.
6488         (extract_signed_integer): Update.
6489
6490 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6491
6492         * regcache.c (regcache_raw_write): Change buf parameter to a
6493         constant void pointer.
6494         (regcache_raw_read): Change buf parameter to a void pointer.
6495         (legacy_write_register_gen): Change myaddr parameter a constant
6496         void pointer.
6497         (supply_register): Change val parameter to a const void pointer.
6498         * regcache.h (regcache_raw_write): Update declaration.
6499         (regcache_raw_read): Update declaration.
6500         (supply_register): Update declaration.
6501
6502 2002-07-24  Tom Tromey  <tromey@redhat.com>
6503
6504         * defs.h (gdb_readline_wrapper): Declare.
6505         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6506         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6507         * top.c (gdb_readline_wrapper): New function.
6508         (command_line_input): Use it.
6509
6510 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6511
6512         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6513         regcache_read and regcache_write.
6514         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6515         * regcache.c: Update.
6516         * sh-tdep.c (sh64_push_arguments): Update comment.
6517         (sh_pseudo_register_read): Update.
6518         (sh_pseudo_register_write): Update.
6519         (sh4_register_read): Update.
6520         (sh4_register_write): Update.
6521         (sh64_pseudo_register_read): Update.
6522         (sh64_pseudo_register_write): Update.
6523         (sh64_register_read): Update.
6524         (sh64_register_write): Update.
6525         * i386-tdep.c (i386_extract_return_value): Update.
6526         (i386_extract_struct_value_address): Update.
6527         (i386_extract_return_value): Update.
6528         * blockframe.c (generic_read_register_dummy): Update.
6529         (generic_call_dummy_register_unwind): Update
6530         * infrun.c (write_inferior_status_register): Update.
6531
6532 2002-07-23  Jim Blandy  <jimb@redhat.com>
6533
6534         * parser-defs.h (expression_context_pc): Make this extern.
6535         (Thanks to Michael Snyder.)
6536
6537 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6538
6539         GDB 5.2.1 released from 5.2 branch.
6540         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6541         * README: Update to mention 5.2.1.
6542
6543 2002-07-23  Mark Salter  <msalter@redhat.com>
6544
6545         * remote.c (remote_read_bytes): Fix check for error.
6546
6547 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6548
6549         * aix-thread.c (language.h): Include.
6550         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6551         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6552         Print newlines at end of debug messages.
6553         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6554         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6555
6556 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6557
6558         * aix-thread.c (ppc-tdep.h): Include.
6559         (special_register_p): New function.
6560         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6561         (store_regs_user_thread): Use register number information from
6562         gdbarch_tdep struct instead of hardcoded offsets relative to
6563         FIRST_UISA_SP_REGNUM.
6564         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6565         special_register_p() instead of using FPLAST_REGNUM and
6566         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6567         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6568         will be MQ's register number.
6569
6570 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6571
6572         * aix-thread.c (ops): Rename to aix_thread_ops.
6573         (base_ops): Rename to base_target.
6574         (ops_attach): Rename to aix_thread_attach.
6575         (ops_detach): Rename to aix_thread_detach.
6576         (ops_resume): Rename to aix_thread_detach.
6577         (ops_wait):   Rename to aix_thread_wait.
6578         (ops_kill):   Rename to aix_thread_kill.
6579         (init_ops):   Rename to init_aix_thread_ops.
6580         (ops_fetch_register): Rename to aix_thread_fetch_register.
6581         (ops_store_register): Rename to aix_thread_store_register.
6582         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6583         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6584         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6585         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6586         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6587         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6588         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6589         (store_regs_lib):  Rename to store_regs_user_thread.
6590         (store_regs_kern): Rename to store_regs_kernel_thread.
6591
6592 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6593
6594         * aix-thread.c (ops_prepare_to_store): Eliminate.
6595         (init_ops): Don't initialize ops.prepare_to_store.
6596         (store_regs_kern): Pre-fetch register buffers from child, 
6597         because some registers may not be in the cache.  Copy
6598         regs from register cache only if they are cached.
6599         (store_regs_lib): Copy regs from register cache only
6600         if they are cached.
6601         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6602         fill_gprs64): Ditto.
6603
6604 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6605
6606         * aix-thread.c (gdb_assert.h): Include.
6607         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6608         register sizes (from register cache) match size of buffer holding
6609         register data.
6610         (fill_sprs32): Change parameter types to match those in the ptrace()
6611         buffer.
6612         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6613         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6614
6615 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6616
6617         * aix-thread.c (supply_sprs64): Cosmetic change.
6618         (supply_sprs32): Cosmetic change.
6619         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6620         (fill_sprs64): Use regcache_collect instead of read_register.
6621         (store_regs_lib): Use regcache_collect instead of 
6622         read_register.  Use fill_sprs32 instead of fill_sprs64,
6623         if debugging a 32-bit architecture.
6624         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6625         out of the register cache, instead of passing a pointer into
6626         the register cache directly to ptrace.  Use regcache_collect
6627         insteaad of read_register.
6628         (ops_prepare_to_store): Use target_read_registers instead
6629         of read_register_bytes.
6630
6631 2002-07-20  Aidan Skinner <aidan@velvet.net>
6632
6633         * MAINTAINERS: Add self under write after approval. 
6634                 
6635 2002-07-20  Aidan Skinner <aidan@velvet.net>
6636
6637         * ada-tasks.c: Change k&r style function definitions to prototyped
6638         form.
6639                 
6640 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6641
6642         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6643         * x86-64-tdep.c: Include "objfiles.h".
6644         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6645         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6646
6647 2002-07-17  Michal Ludvig  <michal@suse.cz>
6648
6649         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6650         (update_context): Initialise cfa variable.
6651
6652 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6653
6654         * aix-thread.c: Shorten some long lines.  
6655         Bring comments into line with code spec.
6656
6657 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6658
6659         * infrun.c: Re-indent using gdb_indent.sh.
6660
6661 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6662
6663         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6664         Leave the indentation temporarily untouched, to minimize the diffs.
6665
6666 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6667
6668         * stabsread.c: Make os9k sections of the code obsolete,
6669         for real this time.
6670         * stabsread.h: Make os9k sections of the code obsolete.
6671
6672 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6673
6674         * linux-low.c (regsets_store_inferior_registers): Add free()
6675         at the end of a loop to prevent memory leak.
6676         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6677         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6678         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6679         line a comment.
6680         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6681
6682 2002-07-17  Jim Blandy  <jimb@redhat.com>
6683
6684         * macrocmd.c (info_macro_command): Remove newline from error
6685         message.
6686
6687 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6688
6689         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6690         (sh_gdbarch_init): Use it for sh-dsp.
6691
6692 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6693
6694         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6695         64-bit DWARF2 format.
6696
6697 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6698
6699         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6700         <sys/proc.h> when not available.
6701
6702 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6703
6704         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6705         * stabsread.c: Make os9k sections of the code obsolete.
6706         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6707         * config/i386/i386os9k.mt: Make file obsolete.
6708         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6709         (COMMON_OBS): Remove os9kread.o
6710         (SFILES): Remove os9kread.c.
6711         (os9kread.o, remote-os9k.o): Make target obsolete.
6712         * remote-os9k.c: Make file obsolete.
6713         * os9kread.c: Make file obsolete.
6714         * Makefile.in
6715
6716 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6717
6718         * NEWS: Mention that the FR30 has been made obsolete.
6719         * fr30-tdep.c: Make file obsolete.
6720         * config/fr30/tm-fr30.h: Ditto.
6721         * config/fr30/fr30.mt: Ditto.
6722         * configure.tgt: Make fr30-*-elf obsolete.
6723         * MAINTAINERS: Make fr30-elf obsolete.
6724
6725 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6726
6727         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6728         found is not inside a section.
6729
6730 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6731
6732         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6733         strerror().
6734         (pdc_realloc): Use xrealloc() instead of realloc().
6735
6736 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6737
6738         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6739         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6740         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6741         macros.
6742
6743 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6744
6745         * aix-thread.c (ptrace_check): Eliminate goto.
6746         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6747         problem.
6748
6749 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6750
6751         * aix-thread.c (gdbcmd.h): Include.
6752         (DEBUG, DBG, DBG2, dbg): Eliminate.
6753         (debug_aix_thread): New static global.
6754         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6755         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6756         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6757         invocations to DBG and DBG2 macros to test against
6758         ``debug_aix_thread'' and call fprintf_unfiltered().
6759         (_initialize_aix_thread): Add new command "set debug aix-thread".
6760
6761 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6762
6763         From Gerhard Tonn <TON@de.ibm.com>:
6764         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6765         instead of supply_register.
6766
6767 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6768
6769         * dwarf2cfi.c: Include "gdb_assert.h".
6770         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6771         non-NULL.
6772         (update_context): Do not use __func__.  Add missing ``break''.
6773         (update_context): Do not use __func__.
6774
6775 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6776
6777         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6778         and its setting.  Set gdbarch instruction printing functions
6779         directly.  For non-rs6000 case use new function
6780         gdb_print_insn_powerpc.
6781         (gdb_print_insn_powerpc): New function.
6782
6783 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6784
6785         * NEWS: Mention that the d30v has been marked obsolete.
6786         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6787         * configure.tgt: Mark d30v-*-* as obsolete.
6788         * d30v-tdep.c: Mark file as obsolete.
6789         * config/d30v/d30v.mt: Ditto.
6790         * config/d30v/tm-d30v.h: Ditto.
6791
6792 2002-07-13  Aidan Skinner <aidan@velvet.net>
6793
6794         * ada-tasks.c (add_task_entry): replace calls to
6795         malloc() with xmalloc
6796         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6797         
6798         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6799         ada_finish_decode_line_1, all_sals_for_line
6800         ada_breakpoint_rewrite): replace calls to free() with xfree()
6801                 
6802 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6803
6804         From Nicholas Duffek (with minor changes by Martin Hunt, 
6805         Louis Hamilton, and Kevin Buettner):
6806         * aix-thread.c: New file.
6807
6808 2002-07-12  Petr Sorfa <petrs@caldera.com>
6809
6810         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6811         complaint for invalid attribute class or form.
6812         (read_func_scope): DW_AT_frame_base
6813         better handling of DW_AT_block*.
6814         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6815         better handling of DW_AT_block*.
6816         (read_common_block): DW_AT_location
6817         better handling of DW_AT_block*.
6818         (read_partial_die): DW_AT_location better handling
6819         of DW_AT_block*.
6820         (new_symbol): DW_AT_external better handling of
6821         DW_AT_block*. Proper initialization of variable
6822         "addr".
6823         (attr_form_is_block): New function that returns true
6824         if the attribute's form is of DW_FORM_block*.
6825
6826 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6827
6828         * valops.c (find_method_list): Remove comment about
6829         removed STATIC_MEMFUNCP argument.
6830         (value_find_oload_method_list): Likewise.
6831
6832 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6833
6834         From Nicholas Duffek:
6835         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6836         target_new_objfile_hook.
6837
6838 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6839
6840         From Nicholas Duffek:
6841         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6842         csect.
6843
6844 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6845
6846         * MAINTAINERS: Mention --enable-sim-build-warnings.
6847         (m68hc11-elf): Disable sim build warnings.
6848         (m32r-elf): Mark as broken obsolete candidate.
6849         (x86_64-linux-gnu): Mark as buildable with -Werror.
6850         (arm-elf): Change -w to ``,'' which enables warnings but not
6851         -Werror.
6852
6853 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6854
6855         * bcache.h: Update copyright.
6856         (struct bstring, struct bcache): Move definition to "bcache.c".
6857         Replaced by opaque declaration.
6858         (bcache_xfree): Replace free_bcache.
6859         (bcache_xmalloc, bcache_memory_used): Declare.
6860         
6861         * bcache.c: Update copyright.
6862         (struct bstring, struct bcache): Moved to here from "bcache.h".
6863         Update comments.
6864         (bcache_xmalloc, bcache_memory_used): New functions.
6865         (bcache_xfree): Replace function free_bcache.
6866         
6867         * Makefile.in (objfiles.o): Add $(bcache_h).
6868         (objfiles_h): Remove $(bcache_h).
6869         (symfile.o): Add $(bcache_h).
6870
6871         * symmisc.c: Update copyright.
6872         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6873         (print_objfile_statistics): Use bcache_memory_used.
6874
6875         * symfile.c: Include "bcache.h".
6876         (reread_symbols): Use bcache_xfree.
6877         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6878         (add_psymbol_to_list): Pass psymbol_cache by value.
6879         (add_psymbol_with_dem_name_to_list): Ditto.
6880
6881         * objfiles.h: Update copyright.
6882         (struct bcache): Declare opaque.  Do not include "bcache.h".
6883         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6884         bcache'' pointers.
6885         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6886
6887         * objfiles.c: Include "bcache.h".  Update copyright.
6888         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6889         macro_cache.
6890         (free_objfile): Use bcache_xfree.
6891
6892 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6893
6894         * monitor.c (monitor_fetch_register): Make name a constant.
6895         (monitor_store_register): Same.
6896
6897 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6898
6899         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6900         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6901         (finish_block) For non-function blocks, hash the symbol table.  For
6902         function blocks, mark the symbol table as unhashed.
6903         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6904         (msymbol_hash_iw): Likewise.
6905         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6906         value.
6907         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6908         (lookup_minimal_symbol): Likewise for both.
6909         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6910         hashtable.
6911         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6912         (ALL_BLOCK_SYMBOLS): Update.
6913         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6914         (struct symbol): Add `hash_next' pointer.
6915         * symtab.c (lookup_block_symbol): Search using the hash table when
6916         possible.
6917         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6918         (search_symbols, find_addr_symbol): Likewise.
6919
6920         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6921         (read_dst_symtab): Likewise.
6922         * jv-lang.c (get_java_class_symtab): Likewise.
6923         * mdebugread.c: Include "gdb_assert.h".
6924         (shrink_block): Assert that the block being modified is not hashed.
6925         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6926         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6927         symbols.
6928         (dump_symtab): Recognize hashed blocks.
6929         * printcmd.c (print_frame_args):  Assert that function blocks do not
6930         have hashed symbol tables.
6931         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6932         (fill_in_ada_prototype, debug_print_block): Likewise.
6933         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6934
6935 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6936
6937         * stack.c (print_frame): Use result of frame_address_in_block()
6938         instead of fi->pc when evaluating symbols.
6939         (backtrace_command_1): Ditto.
6940
6941 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6942
6943         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6944         Make static.
6945
6946         * arm-tdep.c (arm_register_name): Make return type constant.
6947
6948 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6949
6950         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6951         prototype.
6952         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6953         * s390-tdep.c (s390_fp_regnum): Ditto.
6954         (s390_read_fp): Ditto.
6955         (s390_pop_frame): Ditto.
6956         (_initialize_s390_tdep): Ditto.
6957         * remote.c (get_remote_state): Ditto.
6958         * procfs.c (mappingflags): Ditto.
6959         * memattr.c (_initialize_mem): Ditto.
6960         * mcore-tdep.c (mcore_pop_frame): Ditto.
6961         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6962         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6963         * language.c (set_case_str): Ditto.
6964         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6965         * frv-tdep.c (new_variant): Ditto.
6966         (frv_stopped_data_address): Ditto.
6967         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6968         (context_alloc): Ditto.
6969         (frame_state_alloc): Ditto.
6970         (unwind_tmp_obstack_init): Ditto.
6971         (unwind_tmp_obstack_free): Ditto.
6972         (cfi_read_fp): Ditto.
6973         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6974         (cris_pop_frame): Ditto.
6975         * c-lang.c (scanning_macro_expansion): Ditto.
6976         (finished_macro_expansion): Ditto.
6977         (c_preprocess_and_parse): Ditto.
6978         * gdbarch.sh: Ditto.
6979         * gdbarch.h, gdbarch.c: Regenerate.
6980         * config/mn10200/tm-mn10200.h: Adjust indentation.
6981         * target.c: Adjust indentation.
6982         * symtab.h: Adjust indentation.
6983         * stabsread.h: Adjust indentation.
6984         * remote-es.c: Adjust indentation.
6985         * os9kread.c: Adjust indentation.
6986
6987 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6988         
6989         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6990         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6991
6992 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6993         
6994         * NEWS: Mention m68k, mcore multi-arching.  
6995         * MAINTAINERS: Change status of m68k, mcore to reflect
6996         multi-arching.
6997
6998 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6999
7000         * valops.c (find_overload_match): Free oload_syms.
7001
7002 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7003
7004         Define HAVE_SYS_PROC_H if sys/proc.h exists
7005         * configure.in: Add check for sys/proc.h
7006         * config.in: Regenerate.
7007         * configure: Regenerate.
7008
7009 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7010
7011         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7012         #if !GDB_MULTI_ARCH. 
7013
7014 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7015
7016         * config.in, configure: Regenerate.
7017
7018 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7019
7020         * dwarf2cfi.c: Include "gcore.h".
7021         (execute_stack_op): Fix implementation of the
7022         DW_OP_deref and DW_OP_deref_size operators by letting do their
7023         lookup in the target.
7024
7025 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7026
7027         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7028         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7029         tdep->sc_sp_offset.
7030
7031 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7032
7033         Fix PR gdb/595, gdb/602
7034         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7035         Don't call value_cast, just read the vtable pointer; update comments
7036         to match.
7037
7038 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7039
7040         * config/mcore/tm-mcore.h: Remove file.
7041         * config/mcore/mcore.mt: Remove definition of TM_FILE
7042         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7043
7044 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7045
7046         * i386bsd-tdep.c: Include "gdb_string.h".
7047
7048 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7049
7050         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7051         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7052         mcore-tdep.
7053         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7054         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7055         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7056         (RETVAL_REGNUM): Move macros from tm-mcore.h
7057         (mcore_reg_struct_has_addr): New function.
7058         (mcore_gdbarch_init): Added initializations for the macros removed
7059         from tm-mcore.h.
7060
7061 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7062
7063         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7064         traditonal string branding within the ELF header.
7065
7066 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7067
7068         * symtab.c (remove_params): New function.
7069         (make_symbol_overload_list): Use it instead of cplus_demangle.
7070         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7071
7072 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7073
7074         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7075
7076         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7077         New variables.
7078         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7079         and tdep->sigtramp_end.
7080         * i386obsd-nat.c: New file.
7081         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7082
7083         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7084         Don't call get_current_frame().
7085
7086 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7087
7088         * i386-nat.c (child_post_startup_inferior): New function
7089         calling i386_cleanup_dregs if
7090         I386_USE_GENERIC_WATCHPOINTS is defined.
7091         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7092         conditional to acknowledge that i386-nat.c has its
7093         own child_post_startup_inferior function.
7094
7095 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7096
7097         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7098         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7099         instead of MAX_REGISTER_RAW_SIZE.
7100         (i386_extract_return_value, i386_extract_struct_value_address):
7101         Convert to use regcache.
7102         (i386_gdbarch_init): Set max_register_raw_size and
7103         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7104         Set extract_return_value and extract_struct_value_address instead
7105         of their deprecated variants.
7106
7107         Convert i386 target to generic dummy frames.
7108         * i386-tdep.c: Include "symfile.h".
7109         (i386_frameless_signal_p): Consider a function to be frameless if
7110         the pc points at the first instruction of the function.
7111         (i386_frame_chain): Handle (generic) call dummies.
7112         (i386_frame_saved_pc): Likewise.
7113         (i386_frame_init_saved_regs): Remove code dealing with call
7114         dummies on the stack.
7115         (i386_push_dummy_frame): Removed.
7116         (i386_call_dummy_words): Removed.
7117         (i386_fix_call_dummy): Removed.
7118         (i386_push_return_address): New function.
7119         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7120         parameter, and don't call get_current_frame.
7121         (i386_pop_frame): New function.
7122         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7123         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7124         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7125         call_dummy_length to 0, set call_dummy_words to NULL, set
7126         sizeof_call_dummy_words to 0, set fix_call_dummy to
7127         generic_fix_call_dummy, set pc_in_call_dummy to
7128         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7129         generic_push_dummy_frame, set push_return_address to
7130         i386_push_return_address and set frame_chain_valid to
7131         generic_file_frame_chain_valid.
7132
7133 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7134
7135         * gdbarch.sh (struct regcache): Add opaque declaration.
7136         (EXTRACT_RETURN_VALUE): New architecture method.
7137         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7138         * gdbarch.h, gdbarch.c: Regenerate.
7139         * arch-utils.c (legacy_extract_return_value): New function.
7140         * arch-utils.h (legacy_extract_return_value): Declare.
7141         * values.c (value_being_returned): Re-enable code handling
7142         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7143         deprecated_grub_regcache_for_registers call to block handling
7144         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7145         (EXTRACT_RETURN_VALUE): Do not define.
7146
7147 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7148
7149         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7150         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7151         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7152         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7153         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7154         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7155         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7156         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7157         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7158         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7159         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7160         argument so the function fits the prototype in the architecture
7161         vector.
7162         (mcore_pop_frame): Remove argument so the function fits the
7163         prototype. Use get_current_frame instead of the argument.
7164         (mcore_push_arguments): Change type of struct_return so the
7165         function can be used in the architecture vector.
7166         (mcore_store_struct_return): Add.
7167         (mcore_frame_init_saved_regs): Add.
7168         (mcore_gdbarch_init): Add function calls to replace the macros
7169         removed from tm-mcore.h
7170
7171 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7172
7173         * infcmd.c (print_return_value): Remove compatibility code calling
7174         deprecated_grub_regcache_for_registers.
7175         
7176         * values.c: Include "regcache.h".
7177         (value_being_returned): Update.  Use
7178         deprecated_grub_regcache_for_registers to extract the register
7179         buffer address.  
7180         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7181         ``struct regcache''.
7182         * Makefile.in (values.o): Add dependency on $(regcache_h).
7183
7184         * inferior.h (run_stack_dummy): Change type of second parameter to
7185         a ``struct regcache''.
7186         * valops.c (hand_function_call): Change type of retbuf to ``struct
7187         regcache''.  Allocate using regcache_xmalloc, clean using
7188         make_cleanup_regcache_xfree.
7189         * infcmd.c (run_stack_dummy): Update.  Use
7190         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7191
7192         * regcache.c (do_regcache_xfree): New function.
7193         (make_cleanup_regcache_xfree): New function.
7194         * regcache.h (make_cleanup_regcache_xfree): Declare.
7195
7196 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7197
7198         * event-top.c (command_line_handler): Don't read past
7199         beginning of buffer.
7200
7201 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7202         
7203         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7204         struct frame_id. 
7205         (varobj_create): Store frame_id for root.
7206         (varobj_gen_name): Use xasprintf.
7207         (varobj_update): Save and restore frame using get_frame_id() and
7208         frame_find_by_id().
7209         (create_child): Use xasprintf.
7210         (new_root_variable): Initialize frame_id.
7211         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7212         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7213         to prevent memory leak.
7214
7215 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7216
7217         * valops.c (hand_function_call): Move declaration of retbuf to
7218         start of function, allocate using malloc, add a cleanup but before
7219         the inf_status cleanup, cleanup the buffer.  Rename local variable
7220         old_chain to inf_status_cleanup.
7221
7222 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7223
7224         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7225
7226         * cli/cli-decode.c (cmd_func_p): New function.
7227         (cmd_func): New function.
7228
7229         * command.h: Add cmd_func() and cmd_func_p().   
7230         
7231 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7232
7233         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7234         (REGISTER_SIZE): Remove.
7235         (MAX_REGISTER_RAW_SIZE): Remove.
7236         (REGISTER_VIRTUAL_TYPE): Remove.
7237         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7238         (REGISTER_NAME): Remove.
7239         (USE_GENERIC_DUMMY_FRAMES): Remove.
7240         (CALL_DUMMY): Remove.
7241         (CALL_DUMMY_START_OFFSET): Remove.
7242         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7243         (CALL_DUMMY_LOCATION): Remove.
7244         (FIX_CALL_DUMMY): Remove.
7245         (CALL_DUMMY_ADDRESS): Remove.
7246         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7247         (SAVE_DUMMY_FRAME_TOS): Remove.
7248         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7249         (mcore_register_virtual_type): New function.
7250         (mcore_register_byte): New function.
7251         (mcore_register_size): New function.
7252         (mcore_register_name): New function.
7253         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7254         macros removed from tm-mcore.h.
7255         (mcore_dump_tdep): Add.
7256         (_initialize_mcore_tdep): Add gdbarch_register call.
7257
7258 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7259
7260         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7261         frameless_look_for_prologue, such that we actually call this
7262         function.
7263
7264 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7265
7266         * frame.h (frame_address_in_block): New function.
7267
7268         * blockframe.c (frame_address_in_block): New function extracted
7269         from get_frame_block().
7270         (get_frame_block): Use frame_address_in_block().
7271         (block_innermost_frame): Use frame_address_in_block() to match
7272         the frame pc address against the block boundaries rather than
7273         the frame pc directly. This prevents a failure when a frame pc
7274         is actually a return-address pointing immediately after the end
7275         of the given block. 
7276
7277 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7278
7279         * MAINTAINERS: Add self under write after approval. 
7280
7281 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7282
7283         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7284         used in architecture vector. The default is
7285         m68k_local_breakpoint_from_pc.
7286         (m68k_local_breakpoint_from_pc): Add.
7287         (enum): Add register numbers from tm-m68k.h.
7288         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7289         vector.  
7290         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7291         GDB_MULTI_ARCH_PARTIAL.
7292         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7293         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7294         m68k-tdep.c.
7295         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7296         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7297         to enum in m68k-tdep.c
7298
7299 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7300
7301         * solib-osf.c (open_map): Compute the list of shared libraries
7302         loaded by the inferior, rather than the list of libraries loaded
7303         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7304         the wrong shared libraries...
7305
7306 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7307
7308         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7309         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7310         macros.
7311         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7312         Remove functions.
7313         (FRAMELESS_SIGNAL): Remove function.
7314         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7315         i386_linux_saved_pc_after_call): Removed.
7316         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7317         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7318         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7319
7320         * i386-tdep.c (i386_frameless_signal_p): New function.
7321         (i386_frame_chain): Deal with frameless signals.
7322         (i386_sigtramp_saved_sp): New function.
7323         (i386_frame_saved_pc): Deal with frameless signals.
7324         (i386_saved_pc_after_call): Make sure the correct value is
7325         returned just after entry into a sigtramp.
7326         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7327         i386fbsd4_sc_sp_offset): New variables.
7328         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7329         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7330         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7331         similiar to what we already did for sc_pc_offset.
7332         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7333         tdep->sc_sp_offset.
7334
7335         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7336
7337 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7338
7339         * config/i386/tm-x86-64linux.h: New.
7340         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7341         definitions.
7342         * config/i386/nm-x86-64.h: Rename to ...
7343         * config/i386/nm-x86-64linux.h: ... this one.
7344         * config/i386/x86-64linux.mh: Reflect the above change.
7345         
7346 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7347
7348         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7349         with sigcontext_addr.  Add sc_sp_offset.
7350         (i386bsd_sigtramp_saved_pc): Remove prototype.
7351         (i386bsd_sicontext_addr): Add prototype.
7352         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7353         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7354         (i386_svr4_sigtramp_saved_pc): Removed.
7355         (i386_svr4_sigcontext_addr): New function.
7356         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7357         Initialize tdep->sigcontext_addr instead.  Initialize
7358         tdep->sc_pc_offset and tdep->sc_sp_offset.
7359         (i386_gdbarch_init): Likewise.
7360         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7361         any more.
7362         (i386bsd_sigtramp_saved_pc): Remove function.
7363         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7364         Initialize tdep->sigcontext_addr instead.  Initialize
7365         tdep->sc_pc_offset.
7366         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7367         of tdep->sigtramp_saved_pc.
7368         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7369         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7370         instead.
7371
7372         * i386-tdep.c (i386_frameless_function_invocation,
7373         i386_frame_num_args, i386_frame_init_saved_regs,
7374         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7375         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7376         i386_extract_return_value, i386_store_return_value,
7377         i386_extract_struct_value_address, i386_register_virtual_type,
7378         i386_register_convertible, i386_register_convert_to_virtual,
7379         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7380         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7381         static.
7382
7383 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7384
7385         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7386
7387         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7388         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7389         this macro.  Include "value.h".
7390
7391 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7392
7393         * ada-exp.tab.c: remove as it's a generated file
7394         * ada-lex.c: remove as it's a generated file
7395                 
7396 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7397
7398         * config/i386/tm-i386.h (struct frame_info, struct
7399         frame_saved_regs, struct value, struct type): Remove forward
7400         declarations.
7401
7402         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7403         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7404         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7405         (FILL_FPXREGSET): Define.
7406
7407         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7408
7409         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7410         i[3456]86-*-netbsd* case.
7411         * config/i386/tm-obsd.h: Removed.
7412         * config/i386/obsd.mt: Removed.
7413         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7414         core-aout.o.
7415         (MH_CFLAGS): Add -DYYDEBUG=0.
7416
7417         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7418         i386nbsd_sc_pc_offset on OpenBSD too.
7419
7420         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7421         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7422         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7423         define.
7424         * i386bsd-tdep.c: Include "arch-utils.h".
7425         (i386bsd_aout_in_solib_call_trampoline): New function.
7426         (i386bsd_init_abi): Set in_solib_call_trampoline to
7427         i386bsd_aout_in_solib_call_trampoline.
7428         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7429         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7430
7431 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7432
7433         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7434         (struct obstack, struct bcache): Add opaque declarations.
7435         * Makefile.in (macrotab_h): Update
7436
7437 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7438
7439         * blockframe.c (generic_find_dummy_frame): Change return type to
7440         ``struct regcache''.
7441         (struct dummy_frame): Replace field ``registers'' with regcache, a
7442         struct regcache object.
7443         (generic_find_dummy_frame): Update.
7444         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7445         regcache_xmalloc and regcache_cpy.
7446         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7447         regcache_xfree.
7448         (deprecated_generic_find_dummy_frame): Update.
7449         (generic_read_register_dummy): Update.  Use
7450         regcache_read_as_address.
7451         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7452         (generic_get_saved_register): Update.  Use regcache_read.
7453
7454 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7455
7456         * Makefile.in (objfiles_h): Add $(bcache_h).
7457         * objfiles.h: Include "bcache.h".
7458
7459         * Makefile.in (symtab_h): Remove $(bcache_h).
7460         * symtab.h: Do not include "bcache.h".
7461
7462 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7463
7464         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7465         generic_func_frame_chain_valid.
7466
7467 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7468
7469         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7470         * config/i386/tm-fbsd.h: Likewise.
7471
7472 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7473
7474         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7475         generic_unwind_get_saved_register.
7476
7477 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7478
7479         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7480         * regcache.c (supply_register): Add missing argument to
7481         register_buffer call.
7482
7483 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7484
7485         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7486         Solaris /bin/grep does not not like it.  From Peter Schauer.
7487
7488 2002-06-26  Tom Tromey  <tromey@redhat.com>
7489
7490         * command.h (add_setshow_cmd): Declare.
7491         (add_setshow_cmd_full): Declare.
7492         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7493         returns void.  Use add_setshow_cmd_full.
7494         (add_setshow_cmd_full): New function.
7495         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7496         (add_setshow_boolean_cmd): Likewise.
7497
7498 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7499
7500         * config/vax/tm-vax.h: Protect from multiple inclusion.
7501         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7502         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7503         * config/vax/tm-vaxbsd.h: ...here.  New file.
7504         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7505
7506 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7507
7508         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7509         (BELIEVE_PCC_PROMOTION): Remove.
7510         (AP_REGNUM): Move to...
7511         * config/vax/nm-vax.h: ...here.
7512         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7513         (vax_breakpoint_from_pc): New function.
7514         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7515         and gdbarch_believe_pcc_promotion.
7516
7517 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7518
7519         * Makefile.in (vax_tdep_h): Define.  
7520         (vax-tdep.o): Use $(vax_tdep_h).
7521         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7522         (vax_dump_tdep): New function. 
7523         (_initialize_vax_tdep): Register vax_dump_tdep.
7524         * vax-tdep.h: Include osabi.h.     
7525         (struct gdbarch_tdep): New. 
7526
7527 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7528
7529         * frame.h (deprecated_generic_find_dummy_frame): Rename
7530         generic_find_dummy_frame.
7531         * blockframe.c (generic_find_dummy_frame): Make static.
7532         (deprecated_generic_find_dummy_frame): New function.
7533         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7534         generic_find_dummy_frame with deprecated_find_dummy_frame.
7535         (sh64_nofp_frame_init_saved_regs): Ditto.
7536         (sh_fp_frame_init_saved_regs): Ditto.
7537         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7538         (s390_frame_chain): Ditto.
7539         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7540
7541 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7542
7543         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7544         gdbarch vector are at the top.
7545         (NUM_REGS): Remove.
7546         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7547         (FRAME_ARGS_ADDRESS): Remove.
7548         (FRAME_LOCALS_ADDRESS): Remove.
7549         (FRAME_NUM_ARGS): Remove.
7550         (FRAME_ARGS_SKIP): Remove.  
7551         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7552         (m68k_gdbarch_init): Add gdbarch initializations for macros
7553         undefined in tm-m68k.h
7554
7555 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7556
7557         * monitor.h: Add the function regname to monitor_ops
7558         structure. This way NUM_REGS does not have to be a constant.
7559         * monitor.c (monitor_fetch_register): Added support for regname
7560         function. The function is called if the array regnames is NULL.
7561         (monitor_store_register): Same.
7562         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7563         regnames array.
7564         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7565         cpu32bug_cmds.regname to point to new function.
7566         * abug-rom.c (abug_regname): Same as above.
7567         (init_abug_cmds): Same.
7568         * dbug-rom.c (dbug_regname): Same as above.
7569         (init_dbug_cmds): Same.
7570         * remote-est.c (est_regname): Same. 
7571         (init_est_cmds): Same.
7572         * rom68k-rom.c (rom68k_regname): Same. 
7573         (init_rom68k_cmds): Same.
7574
7575 2002-06-25  Tom Tromey  <tromey@redhat.com>
7576
7577         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7578
7579 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7580
7581         * infrun.c (stop_registers): Change variable's type to ``struct
7582         regcache'''.
7583         (xmalloc_inferior_status): Delete function.
7584         (free_inferior_status): Delete function.
7585         (normal_stop): Use regcache_cpy.
7586         (struct inferior_status): Change type of fields ``stop_registers''
7587         and ``registers'' to ``struct regcache''.
7588         (write_inferior_status_register): Use regcache_write.
7589         (save_inferior_status): Instead of calling
7590         xmalloc_inferior_status, allocate the inf_status buffer directly.
7591         Use regcache_dup_no_passthrough and regcache_dup to save the
7592         buffers.
7593         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7594         Replace the stop_registers regcache instead of overriding it.  Use
7595         regcache_xfree.  Instead of calling free_inferior_status, xfree
7596         the buffer directly.
7597         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7598         free_inferior_status, xfree the buffer directly.
7599         (build_infrun): Use regcache_xmalloc.
7600         (_initialize_infrun): Delete redundant call to build_infrun.
7601
7602         * Makefile.in (infcmd.o): Add $(regcache_h).
7603
7604         * infcmd.c: Include "regcache.h".
7605         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7606         obtain the address of `stop_registers' register buffer.
7607         (print_return_value): Ditto.
7608
7609         * inferior.h (struct regcache): Add opaque declaration.
7610         (stop_registers): Change variable's declared type to ``struct
7611         regcache''.
7612
7613 2002-06-24  Tom Tromey  <tromey@redhat.com>
7614
7615         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7616         * target.c (initialize_targets): Fixed typo in
7617         trust-readonly-sections `show' documentation.
7618
7619         * main.c: Marked all strings with _().
7620
7621 2002-06-24  Don Howard  <dhoward@redhat.com>
7622
7623         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7624         that means max CORE_ADDR+1.
7625         (lookup_mem_region): Ditto.
7626         (mem_info_command): Ditto.
7627
7628 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7629
7630         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7631         (REGISTER_BYTES_OK): Remove.
7632         (REGISTER_BYTES): Remove.
7633         (STORE_STRUCT_RETURN): Remove.
7634         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7635         (STORE_RETURN_VALUE): Remove.
7636         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7637         (FRAME_CHAIN): Remove.
7638         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7639         (FRAME_SAVED_PC): Remove.  
7640         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7641         (m68k_store_struct_return): Add.
7642         (m68k_deprecated_extract_return_value): Add.
7643         (m68k_deprecated_extract_struct_value_address): Add.
7644         (m68k_store_return_value): Add.
7645         (m68k_frame_chain): Add.
7646         (m68k_frameless_function_invocation): Add.
7647         (m68k_frame_saved_pc): Add.
7648         (m68k_gdbarch_init): added set_gdbarch calls for new 
7649         functions and deleted macros.
7650
7651 2002-06-23  Tom Tromey  <tromey@redhat.com>
7652
7653         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7654         (ALLDEPFILES): Likewise.
7655         (udiheaders): Removed.
7656         (udip2soc.o): Likewise.
7657         (udi2go32.o): Likewise.
7658         (udr.o): Likewise.
7659         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7660
7661 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7662
7663         * infrun.c (_initialize_infrun): Delete unnecessary call to
7664         build_infrun.
7665
7666         * regcache.h: Update comments describing the regcache_cpy family
7667         of functions.
7668         (regcache_save, regcache_restore): Delete declaration.
7669         (regcache_save_no_passthrough): Delete declaration.
7670         (regcache_restore_no_passthrough): Delete declaration.
7671         * regcache.c (regcache_save): Delete function.
7672         (regcache_save_no_passthrough): Delete function.
7673         (regcache_restore): Delete function.
7674         (regcache_restore_no_passthrough): Delete function.
7675
7676 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7677
7678         * config/m68k/tm-m68k.h: Fix typo.
7679         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7680         (m68k_frame_init_saved_regs): Declare.
7681
7682 2002-06-21  Jim Blandy  <jimb@redhat.com>
7683
7684         Remove some vestiges of Harris 88k support.
7685         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7686         register numbering quirk.
7687         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7688         odd symbols occurring in Harris 88k ELF targets.
7689
7690 2002-06-21  Tom Tromey  <tromey@redhat.com>
7691
7692         * gdb_locale.h: New file.
7693         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7694         (defs_h): Added gdb_locale.h.
7695         * configure, config.in: Rebuilt.
7696         * configure.in (PACKAGE): Define.
7697         * defs.h: Include gdb_locale.h.
7698         * main.c (captured_main): Call setlocale, bindtextdomain,
7699         textdomain.
7700
7701 2002-06-21  Dave Brolley  <brolley@redhat.com>
7702
7703         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7704         * config/frv/frv.mt: New file.
7705         * config/frv/tm-frv.h: New file.
7706         * configure.tgt: Support frv-*-*.
7707         * Makefile.in (frv-tdep.o): New target.
7708         * frv-tdep.c: New file.
7709         * NEWS: Mention frv.
7710
7711 2002-06-21  Dave Brolley  <brolley@redhat.com>
7712
7713         * MAINTAINERS: Add self to "Write After Approval" list.
7714
7715 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7716
7717         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7718         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7719         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7720         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7721         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7722
7723         * m68k-tdep.c: Include arch-utils.h
7724         (m68k_register_raw_size): Add.
7725         (m68k_register_virtual_size): Add.
7726         (m68k_register_virtual_type): Add.
7727         (m68k_register_name): Add.
7728         (m68k_stack_align): Add.
7729         (m68k_register_byte): Add.
7730         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7731         tm-m68k.h.
7732
7733 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7734
7735         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7736         m68k_find_saved_regs.
7737         (m68k_pop_frame): Removed saved_regs structure, and replaced
7738         references to it with frame->saved_regs.
7739         (m68k_gdbarch_init): Added function calls to initialize the
7740         gdbarch structure.
7741         (m68k_fix_call_dummy): Add. 
7742         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7743         (CALL_DUMMY): Remove.
7744         (CALL_DUMMY_LENGTH): Remove.
7745         (CALL_DUMMY_START_OFFSET): Remove.
7746         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7747         (FIX_CALL_DUMMY): Remove.
7748         (PUSH_DUMMY_FRAME): Remove.
7749         (POP_FRAME): Remove.
7750
7751 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7752
7753         * parse.c (parse_fprintf): New function used to avoid calls to
7754         fprintf in bison parser generated debug code.
7755         * parser-defs.h: Declaration of new parse_fprintf function.
7756         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7757         Set YYDEBUG to 1 by default.
7758         Set YYFPRINTF as parse_fprintf.
7759
7760 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7761
7762         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7763         encoding anymore.
7764         (pointer_encoding, enum ptr_encoding): New.
7765         (execute_cfa_program): Take care about pointer encoding.        
7766         (dwarf2_build_frame_info): Only call parse_frame_info for 
7767         .debug_frame and .eh_frame.
7768         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7769         fixed augmentation handling, added relative addressing, 
7770         ignore duplicate FDEs. Added comments.
7771         * dwarf2cfi.c: Reindented.
7772         
7773 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7774
7775         * event-top.c (command_handler): Don't use space_at_cmd_start
7776         unless there is sbrk() on the host. Assign time and space data
7777         to union fields of the appropriate length.
7778
7779 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7780
7781         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7782         x86_64_register_name. Return type changed to 'const char *'.
7783         (x86_64_register_name2nr): Rename to x86_64_register_number.
7784         (x86_64_gdbarch_init): Update to reflect the change.
7785         * x86-64-tdep.h: Ditto.
7786         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7787         (supply_fpregset): Ditto.
7788
7789 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7790
7791         * regcache.h: Update copyright.
7792         (struct regcache, struct gdbarch): Add opaque declarations.
7793         (current_regcache): Declare global variable.
7794         (regcache_read, regcache_write): Add gdbarch parameter.
7795         (regcache_save, regcache_save_no_passthrough)
7796         (regcache_restore, regcache_restore_no_passthrough)
7797         (regcache_dup, regcache_dup_no_passthrough)
7798         (regcache_cpy, regcache_cpy_no_passthrough)
7799         (deprecated_grub_regcache_for_registers)
7800         (deprecated_grub_regcache_for_register_valid)
7801         (regcache_valid_p): Add function declarations.
7802         
7803         * regcache.c: Update copyright.
7804         (regcache_descr_handle): New global variable.
7805         (struct regcache_descr): Define.
7806         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7807         (regcache_descr, xfree_regcache_descr): New functions.
7808         (struct regcache): Define.
7809         (regcache_xmalloc, regcache_xfree): New functions.
7810         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7811         (regcache_dup, regcache_dup_no_passthrough): New functions.
7812         (regcache_valid_p, regcache_read_as_address): New functions.
7813         (deprecated_grub_regcache_for_registers): New function.
7814         (deprecated_grub_regcache_for_register_valid): New function.
7815         (current_regcache): New global variable.
7816         (register_buffer): Add regcache parameter.  Update calls.
7817         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7818         (read_register_gen, write_register_gen): Update register_buffer
7819         call.  Test for legacy_p instead of gdbarch_register_read_p or
7820         gdbarch_register_write_p.
7821         (regcache_collect): Update register_buffer call.
7822         (build_regcache): Rewrite.  Use deprecated grub functions.
7823         (regcache_save, regcache_save_no_passthrough): New functions.
7824         (regcache_restore, regcache_restore_no_passthrough): New
7825         functions.
7826         (_initialize_regcache): Create the regcache_data_handle. Swap
7827         current_regcache global variable.
7828         
7829         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7830         parameter to regcache_read and regcache_write calls.
7831         (sh4_register_read): Ditto.
7832         (sh64_pseudo_register_read): Ditto.
7833         (sh64_register_read): Ditto.
7834         (sh_pseudo_register_write): Ditto.
7835         (sh4_register_write): Ditto.
7836         (sh64_pseudo_register_write): Ditto.
7837         (sh64_register_write): Ditto.
7838
7839         * defs.h (XCALLOC): Define.
7840
7841 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7842
7843         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7844         * m68k-tdep.c (m68k_gdbarch_init): Added.
7845         (m68k_dump_tdep): Added.
7846
7847 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7848
7849         * ada-lang.c (fill_in_ada_prototype): Update comment.
7850
7851 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7852
7853         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7854         MIPS_ABI_LAST.
7855         (mips_abi_string, mips_abi_strings): New.
7856         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7857         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7858         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7859         O32 if no ABI is found.
7860         (mips_dump_tdep): Use mips_abi_strings.
7861         (mips_abi_update): New function.
7862         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7863         ``set mips abi'' and ``show mips abi''.  Check the size of
7864         mips_abi_strings.
7865
7866 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7867
7868         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7869         constant.
7870
7871 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7872
7873         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7874         current frame using only the first stack size adjustment. All
7875         subsequent size adjustments are not considered to be part of
7876         the "static" part of the current frame.
7877         Compute the address of the saved registers relative to the
7878         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7879         in use in this frame.
7880
7881 2002-06-18  Don Howard  <dhoward@redhat.com>
7882  
7883         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7884         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7885         suggesting this solution.
7886
7887 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7888
7889         * config/romp/xm-rtbsd.h: Delete file.
7890         * config/romp/rtbsd.mh: Delete file.
7891
7892 2002-06-18  Keith Seitz  <keiths@redhat.com>
7893
7894         * breakpoint.c (condition_command): Post breakpoint_modify
7895         when a condition is added to an existing breakpoint.
7896         (commands_command): Likewise for commands.
7897         (set_ignore_count): Likewise for ignore counts.
7898         If no tty, do not simply return, still need to send event
7899         notification.
7900         (ignore_command): Only print a newline if the command came
7901         from a tty.
7902         Don't call breakpoints_changed, since this is now properly
7903         handled by set_ignore_count.
7904
7905 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7906
7907         * MAINTAINERS: Note that cris-elf target can be compiled with
7908         -Werror.
7909         * cris-tdep.c (cris_register_name): Make return type constant.
7910         (cris_breakpoint_from_pc): Ditto.
7911
7912 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7913
7914         * frame.h (struct frame_info): Change type of context to 
7915         'struct context'.
7916
7917 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7918
7919         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7920         pointer.
7921         * gdbarch.h, gdbarch.c: Regenerate.
7922         * config/mips/tm-mips.h (mips_register_name): Update.
7923         * i386-tdep.h (i386_register_name): Update.
7924         * mips-tdep.c (mips_register_name): Update
7925         * alpha-tdep.c (alpha_register_name): Update.
7926         * arch-utils.c (legacy_register_name): Update.
7927         * arch-utils.h (legacy_register_name): Update.
7928         * avr-tdep.c (avr_register_name): Update.
7929         * ia64-tdep.c (ia64_register_name): Update.
7930         * i386-tdep.c (i386_register_name): Update.
7931         * sparc-tdep.c (sparc32_register_name): Update.
7932         (sparc64_register_name): Update.
7933         (sparclite_register_name): Update.
7934         (sparclet_register_name): Update.
7935         * sh-tdep.c (sh_generic_register_name): Update.
7936         (sh_sh_register_name): Update.
7937         (sh_sh3_register_name): Update.
7938         (sh_sh3e_register_name): Update.
7939         (sh_sh_dsp_register_name): Update.
7940         (sh_sh3_dsp_register_name): Update.
7941         (sh_sh4_register_name): Update.
7942         (sh_sh64_register_name): Update.
7943         * s390-tdep.c (s390_register_name): Update.
7944         * rs6000-tdep.c (rs6000_register_name): Update.
7945         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7946         (ns32k_register_name_32382): Update.
7947         * d10v-tdep.c (d10v_ts2_register_name): Update.
7948         (d10v_ts3_register_name): Update.
7949         * xstormy16-tdep.c (xstormy16_register_name): Update.
7950         * vax-tdep.c (vax_register_name): Update.
7951         * v850-tdep.c (v850_register_name): Update.
7952         * m68hc11-tdep.c (m68hc11_register_name): Update.
7953         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7954         (am33_register_name): Update.
7955
7956 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7957
7958         * m68k-tdep.c: Reindented.
7959
7960 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7961
7962         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7963         list of predefined types.
7964
7965 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7966
7967         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7968         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7969         REGISTER_CONVERT_TO_RAW): Remove defines.
7970         (i386_register_virtual_type, i386_register_convertible,
7971         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7972         Remove prototypes.
7973         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7974         macros mentioned above.
7975
7976         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7977         (i386lynx_saved_pc_after_call): Remove prototype.
7978         * i386ly-tdep.c: Include "i386-tdep.h".
7979         (i386lynx_saved_pc_after_call): Make static.  Use
7980         read_memory_nobpt instead of read_memory.  Use
7981         read_memory_unsigned_integer instead of read_memory_integer.
7982         (i386lynx_init_abi): New function.
7983         (i386lynx_coff_osabi_sniffer): New function.
7984         (_initialize_i386bsd_tdep): New function.
7985
7986         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7987         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7988         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7989         (i386_fix_call_dummy): Remove prototype.
7990         * i386-tdep.c (i386_call_dummy_words): New variable.
7991         (i386_gdbarch_init): Adjust for removal of the
7992         macros mentioned above.
7993
7994 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7995
7996         * command.h (add_setshow_auto_boolean_cmd): Replace
7997         add_set_auto_boolean_cmd.
7998         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7999         add_set_auto_boolean_cmd.
8000         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8001         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8002         mask-address'' command.
8003         (show_mask_address): Add cmd parameter.
8004         * remote.c (add_packet_config_cmd): Update.  Change type of
8005         set_func and show_func to cmd_sfunc_ftype.
8006         (_initialize_remote): Update `set remote Z-packet'
8007         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8008         (show_remote_protocol_e_packet_cmd): Ditto.
8009         (show_remote_protocol_E_packet_cmd): Ditto.
8010         (show_remote_protocol_P_packet_cmd): Ditto.
8011         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8012         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8013         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8014         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8015         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8016         (show_remote_protocol_Z_packet_cmd): Ditto.
8017         (show_remote_protocol_binary_download_cmd): Ditto.
8018         (show_remote_cmd): Pass NULL to all of above.
8019
8020 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8021
8022         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8023         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8024         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8025         POP_FRAME): Remove defines.
8026         (i386_push_arguments, i386_store_struct_return,
8027         i386_extract_return_value, i386_store_return_value,
8028         i386_extract_struct_value_address, i386_push_dummy_frame,
8029         i386_pop_frame): Renove prototypes.
8030         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8031         macros mentioned above.
8032
8033 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8034
8035         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8036         add_set_boolean_cmd.
8037         (add_setshow_cmd): New function.
8038         * command.h (add_setshow_boolean_cmd): Replace
8039         add_set_boolean_cmd.
8040         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8041         and ``set rdiromatzero''.
8042         * maint.c (_initialize_maint_cmds): Update commented out code.
8043         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8044         * target.c (initialize_targets): Update `set
8045         trust-readonly-sections'.
8046         * remote.c (_initialize_remote): Update `set remotebreak'.
8047
8048 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8049
8050         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8051         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8052         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8053         fit into multi-arch framework.
8054         (i386_breakpoint_from_pc): New function.
8055         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8056         above.
8057
8058         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8059         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8060         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8061         (i386_frameless_function_invocation, i386_frame_num_args,
8062         i386_frame_init_saved_regs): Remove prototypes.
8063         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8064         macros mentioned above.
8065
8066 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8067
8068         * cli/cli-decode.c (set_cmd_cfunc): Update.
8069         (set_cmd_sfunc): Update.
8070         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8071         (set_cmd_sfunc, set_cmd_cfunc): Update.
8072         * cli/cli-decode.h: Update.
8073
8074 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8075
8076         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8077         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8078
8079 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8080
8081         * defs.h (auto_boolean): Declare enum.
8082         * command.h (cmd_auto_boolean): Delete enum.
8083         * mips-tdep.c (mask_address_var): Update.
8084         (mips_mask_address_p): Update.
8085         (show_mask_address): Update.
8086         * remote.c (struct packet_config): Update.
8087         (update_packet_config): Update.
8088         (show_packet_config_cmd): Update.
8089         (packet_ok): Update.
8090         (add_packet_config_cmd): Update.
8091         (_initialize_remote): 
8092         * command.h: Update.
8093         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8094         (do_setshow_command): Update.
8095         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8096         * cli/cli-decode.h: Update.
8097
8098 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8099
8100         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8101         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8102         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8103         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8104         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8105         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8106
8107         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8108         list of DJGPP COFF targets.
8109
8110         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8111         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8112         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8113         (FP0_REGNUM): Remove define.
8114         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8115         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8116         (i386_register_virtual_size): Remove protoype.
8117         * i386-tdep.c (i386_register_virtual_size): Removed.
8118         (i386_extract_return_value, i386_store_return_value): Use
8119         FP0_REGNUM instead of NUM_FREGS to determine whether the
8120         floating-point registers are available.
8121         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8122         Adjust for removal of macros mentioned above.
8123
8124 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8125
8126         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8127         comments.
8128         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8129         Remove prototypes.
8130         (supply_gregset, fill_gregset): Remove use of register keyword and
8131         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8132         NUM_REGS and NUM_FREGS.
8133         (FPREGSET_FSAVE_OFFSET): Remove.
8134         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8135         NUM_FREGS to determine whether the floating-point registers are
8136         available.
8137
8138         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8139         gnu_store_registers): Replace usage of NUM_GREGS with
8140         I386_NUM_GREGS.
8141
8142         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8143         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8144         usage of NUM_GREGS with I386_NUM_GREGS.
8145
8146         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8147
8148         * i386bsd-nat.c: Include "i386-tdep.h".
8149         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8150         I386_NUM_GREGS.
8151
8152         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8153         and associated comment.  They no longer make any sense, since we
8154         don't use this file anymore on Linux.
8155
8156         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8157         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8158         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8159         elements in these arrays.
8160         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8161         MAX_NUM_REGS.
8162
8163 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8164
8165         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8166         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8167
8168 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8169
8170         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8171         EXTRACT_RETURN_VALUE.
8172         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8173         EXTRACT_STRUCT_VALUE_ADDRESS.
8174         * gdbarch.h, gdbarch.c: Regenerate.
8175         
8176         * values.c (value_being_returned): Handle
8177         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8178         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8179
8180         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8181         * arm-tdep.c (arm_gdbarch_init): Update.
8182         * avr-tdep.c (avr_gdbarch_init): Update.
8183         * cris-tdep.c (cris_gdbarch_init): Update.
8184         * d10v-tdep.c (d10v_gdbarch_init): Update.
8185         * ia64-tdep.c (ia64_gdbarch_init): Update.
8186         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8187         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8188         * s390-tdep.c (s390_gdbarch_init): Update.
8189         * sh-tdep.c (sh_gdbarch_init): Update.
8190         * s390-tdep.c (s390_gdbarch_init): Update.
8191         * sparc-tdep.c (sparc_gdbarch_init): Update.
8192         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8193         * v850-tdep.c (v850_gdbarch_init): Update.
8194         * vax-tdep.c (vax_gdbarch_init): Update.
8195         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8196         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8197
8198         * config/arc/tm-arc.h: Update.
8199         * config/d30v/tm-d30v.h: Update.
8200         * config/fr30/tm-fr30.h: Update.
8201         * config/h8300/tm-h8300.h: Update.
8202         * config/h8500/tm-h8500.h: Update.
8203         * config/i386/tm-i386.h: Update.
8204         * config/i386/tm-ptx.h: Update.
8205         * config/i386/tm-symmetry.h: Update.
8206         * config/i960/tm-i960.h: Update.
8207         * config/m32r/tm-m32r.h: Update.
8208         * config/m68k/tm-delta68.h: Update.
8209         * config/m68k/tm-linux.h: Update.
8210         * config/m68k/tm-m68k.h: Update.
8211         * config/m88k/tm-m88k.h: Update.
8212         * config/mcore/tm-mcore.h: Update.
8213         * config/mips/tm-mips.h: Update.
8214         * config/mn10200/tm-mn10200.h: Update.
8215         * config/pa/tm-hppa.h: Update.
8216         * config/pa/tm-hppa64.h: Update.
8217         * config/sparc/tm-sp64.h: Update.
8218         * config/sparc/tm-sparc.h: Update.
8219         * config/sparc/tm-sparclet.h: Update.
8220         * config/z8k/tm-z8k.h: Update.
8221
8222 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8223
8224         * Makefile.in (i386_linux_tdep_h): Define.
8225         (i386_tdep_h, i387_tdep_h): Define.
8226         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8227         $(i386_tdep_h) and $(i387_tdep_h).
8228         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8229
8230 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8231
8232         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8233         Already covered by the default.
8234
8235         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8236         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8237         (i386_gdbarch_init): Initialize long_double_format and long_double
8238         bit.
8239
8240         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8241         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8242         Move these to ...
8243         * config/i386/i386sol2.mh: ... here.
8244         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8245         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8246         (SIGCONTEXT_PC_OFFSET): Remove define.
8247         (IN_SIGTRAMP): Remove define.
8248         * i386-sol2-tdep.c: New file.
8249         
8250         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8251         * config/i386/tm-i386nw.h: Removed.
8252
8253         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8254         USE_STRUCT_CONVENTION): Remove defines.
8255         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8256         (get_longjmp_target): Remove prototype.
8257         (IN_SIGTRAMP): Remove define.
8258         (i386bsd_in_sigtramp): Remove prototype.
8259         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8260         function.  Update comment accordingly
8261         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8262         (FRAME_SAVED_PC): Remove define.
8263         (i386bsd_frame_saved_pc): Remove prototype.
8264         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8265         GET_LONGJMP_TARGET): Remove defines.
8266         (get_longjmp_target): Remove prototype.
8267         (IN_SIGTRAMP): Remove define.
8268         (i386bsd_in_sigtramp): Remove prototype.
8269         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8270         function.  Update comment accordingly
8271         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8272         (FRAME_SAVED_PC): Remove define.
8273         (i386bsd_frame_saved_pc): Remove prototype.
8274         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8275         Remove prototype.
8276         (USE_STRUCT_CONVENTION): Remove prototype.
8277         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8278         declaration.
8279         (_initialize_i386bsd_nat): Revise logic to determine some
8280         constants at compile time when compiling a native GDB.  Warn if
8281         things don't match up with what we expect.
8282         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8283         Remove variables.
8284         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8285         to use date stored in `struct gdbarch_tdep'.
8286         (i386bsd_sigcontext_offset): Remove varaible.
8287         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8288         stored in `struct gdbarch_tdep'.
8289         (i386bsd_frame_saved_pc): Make static.
8290         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8291         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8292         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8293         i386fbsd4_sc_pc_offset): New variables.
8294         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8295         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8296         functions.
8297         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8298         functions.
8299         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8300         Modify the value of i386fbsd_sigtramp_start and
8301         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8302         i386fbsd_sigtramp_end.
8303         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8304         function.
8305
8306         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8307         define to i386-linux-tdep.h.
8308         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8309         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8310         defines.
8311         (i386_linux_register_name, i386_linux_register_byte,
8312         i386_linux_register_raw_size): Remove prototypes.
8313         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8314         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8315         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8316         TARGET_WRITE_PC): Remove defines.
8317         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8318         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8319         i386_linux_write_pc): Remove prototypes.
8320         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8321         (get_longjmp_target): Remove prototype.
8322         * i386-linux-tdep.h: New file.
8323         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8324         * i386-linux-tdep.c: Include "i386-tdep.h" and
8325         "i386-linux-tdep.h".
8326         (i386_linux_register_name, i386_linux_register_byte,
8327         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8328         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8329         Make static.
8330         (i386_linux_init_abi): New function.
8331         (_initialize_i386_linux_tdep): New function.
8332
8333         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8334         (i386_saved_pc_after_call): Remove prototype.
8335         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8336         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8337         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8338         (i386_register_name, i386_stab_reg_to_regnum,
8339         i386_dwarf_reg_to_regnum): Remove prototypes.
8340         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8341         SIZEOF_SSE_REGS): Remove defines.
8342         (REGISTER_BYTES): Remove define.
8343         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8344         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8345         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8346         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8347         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8348         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8349         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8350         (get_longjmp_target): Remove prototype.
8351         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8352         (sigtramp_saved_pc): Remove define.
8353         (i386v4_sigtramp_saved_pc): Remove prototype.
8354         * config/i386/tm-go32.h (FRAME_CHAIN,
8355         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8356         (i386go32_frame_saved_pc): Remove prototype.
8357         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8358         (get_longjmp_target): Remove prototype.
8359         * i386-tdep.h: Include "osabi.h".
8360         (enum i386_abi): Removed.
8361         (enum struct_return): New enum.
8362         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8363         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8364         sc_pc_offset members.
8365         (i386_gdbarch_register_os_abi): Remove prototype.
8366         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8367         I386_SSE_NUM_REGS): New defines.
8368         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8369         I386_SSE_SIZEOF_REGS): New defines.
8370         (i386_register_name, i386_register_byte, i386_register_raw_size):
8371         New prototypes.
8372         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8373         (i386bsd_sigtramp_saved_pc): New prototype.
8374         * i386-tdep.c: Don't include "elf-bfd.h".
8375         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8376         i386_frame_chain, i386_saved_pc_after_call): Make static.
8377         (i386_frame_saved_pc): Rewrite to call architecture dependent
8378         function to deal with signal handlers.  Make static.
8379         (i386go32_frame_saved_pc): Removed.
8380         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8381         Removed.
8382         (i386_get_longjmp_target): New function.
8383         (default_struct_convention, pcc_struct_convention,
8384         reg_struct_convention, valid_conventions, struct_convention): New
8385         variables.
8386         (i386_use_struct_convention): New function.
8387         (i386v4_sigtramp_saved_pc): Renamed to
8388         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8389         (i386_pc_in_sigtramp): New function.
8390         (i386_abi_names): Removed.
8391         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8392         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8393         Removed.
8394         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8395         i386_gdbarch_register_os_abi): Removed.
8396         (struct i386_abi_handler): Removed.
8397         (i386_abi_handler_list): Removed.
8398         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8399         functions.
8400         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8401         i386_nw_init_abi): New functions.
8402         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8403         Use set_gdbarch_xxx() calls instead of relying on macros for a
8404         number of calls.
8405         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8406         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8407         Register the various architecture variants defined in this file.
8408
8409 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8410
8411         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8412         (struct main_type): Remove arg_types member.  Update comments for
8413         struct field.
8414         (TYPE_ARG_TYPES): Remove.
8415         (TYPE_FN_FIELD_ARGS): Update.
8416         (smash_to_method_type): Update prototype.
8417
8418         * c-typeprint.c (cp_type_print_method_args): Take method type
8419         instead of argument list.  Use new argument layout.  Simplify.
8420         (c_type_print_args): Use new argument layout.  Simplify.
8421         (c_type_print_base): Update call to cp_type_print_method_args.
8422         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8423         argument; use die->type instead.  Update call to
8424         smash_to_method_type.
8425         (read_structure_scope): Update call to dwarf2_add_member_fn.
8426         * gdbtypes.c (allocate_stub_method): Update comment.
8427         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8428         Use new argument layout.
8429         (check_stub_method): Use new argument layout.  Don't count
8430         void as an argument.
8431         (print_arg_types): Update comments.  Use new argument layout.
8432         (recursive_dump_type): Don't print arg_types member.
8433         * hpread.c (hpread_read_struct_type): Use new argument layout.
8434         (fixup_class_method_type): Likewise.
8435         (hpread_type_lookup): Likewise.
8436         * stabsread.c (read_type): Update calls to read_args and
8437         smash_to_method_type.
8438         (read_args): Use new argument layout.  Simplify.
8439         * valops.c (typecmp): Use new argument layout.  Update parameters
8440         and comments.  Simplify.
8441         (hand_function_call): Use new argument layout.
8442         (search_struct_method): Update call to typecmp.
8443         (find_overload_match): Use new argument layout.
8444
8445 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8446
8447         * NEWS: Mention multithreaded debug support for gdbserver.
8448
8449 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8450
8451         * MAINTAINERS: Mention NEWS.
8452
8453 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8454
8455         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8456         (struct mips_objfile_private, compare_pdr_entries): New.
8457         (non_heuristic_proc_desc): Read the ".pdr" section if it
8458         is present.
8459
8460 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8461
8462         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8463         (arm_debug): New static variable.
8464         (_initialize_arm_tdep): Add ``set debug arm'' command.
8465
8466 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8467
8468         * Makefile.in (sim_arm_h): Define.
8469         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8470         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8471         (arm_register_sim_regno): New function, map an internal REGNUM
8472         onto a simulator register number.
8473         (arm_gdbarch_init): Set register_sim_regno.
8474
8475 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8476
8477         * MAINTAINERS: Add self.
8478
8479 2002-06-11  Jim Blandy  <jimb@redhat.com>
8480
8481         * source.c (source_info): Mention whether the symtab has
8482         information about preprocessor macros.
8483
8484         Call the command `info macro', not `show macro'.
8485         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8486         Fix error message.
8487         (_initialize_macrocmd): Register `info_macro_command' in
8488         `infolist', not `showlist'.
8489
8490 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8491
8492         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8493         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8494         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8495         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8496         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8497         unconditionally.
8498         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8499         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8500         (_initialize_mips_tdep): Remove dead code.
8501         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8502         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8503         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8504         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8505         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8506         MIPS_LAST_FP_ARG_REGNUM): Remove.
8507
8508 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8509
8510         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8511         (unwind_tmp_obstack_free, parse_frame_info)
8512         (update_context, cfi_read_fp, cfi_write_fp)
8513         (cfi_frame_chain, cfi_init_extra_frame_info)
8514         (cfi_virtual_frame_pointer): Use the above function.
8515         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8516
8517 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8518
8519         * v850-tdep.c (v850_type_is_scalar): New function.
8520         (v850_use_struct_convention): Match current gcc implementation
8521         as close as possible.
8522         (v850_push_arguments): Fix stack_offset handling.  Don't write
8523         struct_addr into register.  This is done by v850_store_struct_return.
8524         (v850_extract_return_value): Care for structs.
8525         (v850_store_return_value): Ditto.
8526         (v850_store_struct_return): Actually write address.
8527
8528 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8529
8530         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8531         without debug information too.
8532
8533 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8534
8535         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8536         Make multi-arch pure.
8537         * gdbarch.h, gdbarch.c: Re-generate.
8538         * arm-tdep.c (arm_print_float_info): Update.
8539         * arch-utils.h (default_print_float_info): Update.
8540         * arch-utils.c (default_print_float_info): Update.
8541         * infcmd.c (float_info): Update call.
8542
8543 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8544
8545         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8546         the front of the initialize list.
8547
8548 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8549
8550         * infrun.c (struct inferior_status): Replace fields
8551         selected_frame_address and selected_level with field
8552         selected_frame_id.
8553         (save_inferior_status): Update.  Use get_frame_id.
8554         (struct restore_selected_frame_args): Delete.
8555         (restore_selected_frame): Update.  Use frame_find_by_id.
8556         (restore_inferior_status): Update.
8557
8558         * breakpoint.h (struct breakpoint): Change type of
8559         watchpoint_frame to frame_id.
8560         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8561         call to get_current_frame.
8562         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8563         get_current_frame.
8564         (watchpoint_check): Use frame_find_by_id.
8565
8566         * frame.h (record_selected_frame): Delete declaration.
8567         * stack.c (record_selected_frame): Delete function.
8568         
8569         * frame.h (struct frame_id): Define.
8570         (get_frame_id): Declare.
8571         (frame_find_by_id): Declare.
8572         * frame.c (frame_find_by_id): New function.
8573         (get_frame_id): New function.
8574
8575 2002-06-10  Andrey Volkov <avolkov@transas.com>
8576
8577         * ser-e7kpc.c: Fix duplicated define and call of 
8578         _initialize_ser_e7000pc
8579             
8580 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8581
8582         * signals/signals.c (target_signal_from_host): Fix #ifdef
8583         SIGRTMIN case.
8584         (do_target_signal_to_host): Likewise.
8585
8586 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8587
8588         * mips-tdep.c (mips_find_abi_section): New function.
8589         (mips_gdbarch_init): Call it.
8590
8591 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8592
8593         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8594         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8595         after Andrew's 2002-06-08 gdbarch change.
8596
8597 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8598
8599         * i386-linux-nat.c (suppy_gregset): Don't supply
8600         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8601         register cache.
8602         (fill_gregset): Don't fetch it under the same circumstances.
8603
8604 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8605
8606         * Makefile.in (callback_h): Define.
8607         (remote_sim_h): Update path to remote-sim.h.
8608         (remote-rdp.o): Add $(callback_h).
8609         (remote-sim.o): Use $(callback_h).
8610         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8611         * remote-rdp.c: Include "gdb/callback.h".
8612
8613 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8614
8615         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8616         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8617
8618 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8619
8620         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8621         * rdi-share/serpardr.c: Ditto.
8622         * rdi-share/unixcomm.c: Ditto.
8623         * rdi-share/serdrv.c: Ditto.
8624         * rdi-share/hostchan.h: Ditto.
8625         * rdi-share/hostchan.c: Ditto.
8626         * rdi-share/host.h: Ditto.
8627         * rdi-share/devsw.c: Ditto.
8628
8629         * objfiles.h: Change type of obj_private to void pointer.
8630         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8631         strcmp instead of STREQ, use LONGEST, do not use PTR
8632         * somsolib.c: Ditto.
8633
8634         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8635         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8636         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8637
8638 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8639
8640         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8641         (default_get_saved_register): Delete function.
8642         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8643         generic_unwind_get_saved_register.
8644         * gdbarch.h, gdbarch.c: Re-generate.
8645         
8646 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8647
8648         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8649         generic_func_frame_chain_valid.
8650         * gdbarch.h, gdbarch.c: Re-generate.
8651         * blockframe.c (generic_func_frame_chain_valid): Only check
8652         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8653         passing FP to PC_IN_CALL_DUMMY.
8654         Fix PR gdb/360.
8655
8656 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8657
8658         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8659         (register_gdbarch_data): Initialize init_p.
8660         (gdbarch_data): Initialize data pointer using the init function.
8661         (init_gdbarch_data): Delete function.
8662         (gdbarch_update_p): Update.
8663         (initialize_non_multiarch): Update.
8664         (struct gdbarch): Add field initialized_p.
8665         * gdbarch.h, gdbarch.c: Re-generate.
8666
8667 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8668
8669         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8670         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8671         better do the things actually here.
8672         * x86-64-tdep.c (x86_64_register_name2nr): New.
8673         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8674         (x86_64_gdbarch_init): Respect the above change.
8675         * x86-64-tdep.h (x86_64_register_name2nr)
8676         (x86_64_register_nr2name): Add prototypes.
8677         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8678
8679 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8680
8681         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8682         Delete extra braces and re-indent.
8683         (d10v_store_return_value): Char return values
8684         must be shifted over by one byte in R0.
8685         (d10v_extract_return_value): Delete extra braces, re-indent.
8686
8687 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8688
8689         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8690         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8691         (d10v_integer_to_address): Rewrite.
8692         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8693         the d10v specific functions which take care of converting to the
8694         correct space.
8695
8696 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8697
8698         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8699         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8700
8701 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8702
8703         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8704         includes.
8705         * config/tm-linux.h: Ditto.
8706         * config/alpha/tm-alphalinux.h: Ditto.
8707         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8708         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8709         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8710         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8711         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8712         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8713         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8714         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8715         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8716         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8717         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8718         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8719         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8720         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8721         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8722         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8723         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8724         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8725         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8726         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8727         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8728         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8729         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8730         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8731         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8732         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8733         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8734         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8735         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8736         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8737         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8738         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8739         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8740         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8741         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8742         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8743         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8744
8745 2002-05-04  Aidan Skinner <aidan@velvet.net>
8746
8747         * ada-exp.tab.c: New file
8748         * ada-exp.y: New file
8749         * ada-lang.c: New file
8750         * ada-lang.h: New file
8751         * ada-lex.c: New file
8752         * ada-lex.l: New file
8753         * ada-tasks.c: New file
8754         * ada-typeprint.c: New file
8755         * ada-valprint.c: New file
8756         
8757 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8758
8759         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8760         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8761
8762 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8763
8764         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8765         insetead of ppc-linux-tdep.o.
8766         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8767         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8768
8769 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8770
8771         2002-05-07 Christian Groessler <chris@groessler.org>
8772         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8773         bit register contents for little endian hosts.
8774
8775 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8776
8777         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8778         any maintainer.
8779
8780 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8781
8782         * gdbarch.h: Regenerate.
8783
8784 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8785
8786         * MAINTAINERS: Add everyone to write-after-approval list.
8787
8788 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8789
8790         * stack.c (frame_info): Use frame_register_unwind instead of
8791         saved_regs.  Mention when the SP is on the stack or in a register.
8792
8793         * frame.h (frame_register_unwind_ftype): Define.  Document.
8794         (struct frame_info): Add field register_unwind and
8795         register_unwind_cache.
8796         (frame_register_unwind): Declare.
8797         (generic_unwind_get_saved_register): Declare.
8798
8799         * frame.c (frame_register_unwind): New function.
8800         (generic_unwind_get_saved_register): New function.
8801
8802         * blockframe.c (generic_call_dummy_register_unwind): New function.
8803         (frame_saved_regs_register_unwind): New function.
8804         (set_unwind_by_pc): New function.
8805         (create_new_frame): New function.
8806         (get_prev_frame): New function.
8807
8808 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8809
8810         * a29k-share/: Delete directory.
8811         * remote-vx29k.c: Delete file.
8812
8813 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8814
8815         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8816         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8817
8818 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8819
8820         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8821         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8822         (sparc64nbsd-nat.o)
8823         (sparcnbsd-nat.o)
8824         (sparcnbsd-tdep.o): New dependency lists.
8825         * NEWS: Note new UltraSPARC NetBSD native configuration.
8826         * configure.host (sparc64-*-netbsd*): New host.
8827         * configure.tgt (sparc-*-netbsdelf*)
8828         (sparc-*-netbsd*): Set gdb_target to nbsd.
8829         (sparc64-*-netbsd*): New target.
8830         * sparc64nbsd-nat.c: New file.
8831         * sparcnbsd-nat.c: New file.
8832         * sparcnbsd-tdep.c: New file.
8833         * sparcnbsd-tdep.h: New file.
8834         * config/sparc/nbsd.mt: New file.
8835         * config/sparc/nbsd64.mh: New file.
8836         * config/sparc/nbsd64.mt: New file.
8837         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8838         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8839         (HOST_IPC): Remove.
8840         * config/sparc/nbsdaout.mt: Remove.
8841         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8842         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8843         (HOST_IPC): Remove.
8844         * config/sparc/nbsdelf.mt: Remove.
8845         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8846         sparc-nat.c compatiblity defines.
8847         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8848         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8849         * config/sparc/tm-nbsd64.h: New file.
8850         * config/sparc/tm-nbsdaout.h: Remove.
8851         * config/sparc/xm-nbsd.h: Remove.
8852
8853 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8854
8855         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8856         * sparc-tdep.c: Include osabi.h.
8857         (gdbarch_tdep): Add osabi member.
8858         (_initialize_sparc_tdep): Use gdbarch_register.
8859         (sparc_gdbarch_init): Use generic OS ABI framework.
8860         (sparc_dump_tdep): New function.
8861
8862 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8863
8864         * corefile.c (do_captured_read_memory_integer): Return non-zero
8865         result.
8866         (safe_read_memory_integer): Copy result of memory read when
8867         status is non-zero.  Also, add comments.
8868
8869 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8870
8871         * Makefile.in (ppc_tdep_h): Define.
8872         (ppc-linux-nat.o)
8873         (ppc-linux-tdep.o)
8874         (rs6000-tdep.o): Use $(ppc_tdep_h).
8875         (ppc-sysv-tdep.o)
8876         (ppcnbsd-nat.o)
8877         (ppcnbsd-tdep.o): New dependency lists.
8878         * ppc-tdep.h: Use generic OS ABI framework.
8879         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8880         (ppc_linux_init_abi): New functions.
8881         (ppc_sysv_abi_broken_use_struct_convention)
8882         (ppc_sysv_abi_use_struct_convention)
8883         (ppc_sysv_abi_push_arguments): Move to...
8884         * ppc-sysv-tdep.c: ...here.
8885         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8886         * rs6000-tdep.c (process_note_abi_tag_sections)
8887         (get_elfosabi): Remove.
8888         (rs6000_gdbarch_init): Use generic OS ABI framework.
8889         (rs6000_dump_tdep): New function.
8890         (_initialize_rs6000_tdep): Use gdbarch_register.
8891         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8892         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8893         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8894         of ppc-linux-tdep.o.
8895         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8896         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8897         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8898         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8899         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8900         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8901
8902 2002-05-29  Jim Blandy  <jimb@redhat.com>
8903
8904         * macroscope.c (default_macro_scope): Put `void' in empty argument
8905         list.
8906
8907 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8908
8909         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8910         * arch-utils.c: Include "sim-regno.h".
8911         * gdbarch.sh: Don't include "sim-regno.h".
8912         * gdbarch.h, gdbarch.c: Regenerate.
8913         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8914         here.
8915         * arch-utils.h (legacy_register_sim_regno): To here.
8916         * remote-sim.c (legacy_register_sim_regno): Move function from
8917         here.
8918         * arch-utils.c (legacy_register_sim_regno): To here.
8919
8920 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8921
8922         * sim-regno.h: New file.
8923         * Makefile.in (sim_regno_h): Define.
8924         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8925         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8926         (legacy_register_sim_regno): New function.
8927         (one2one_register_sim_regno): New function.
8928         (gdbsim_fetch_register): Rewrite.
8929         (gdbsim_store_register): Only store a register when
8930         REGISTER_SIM_REGNO is valid.
8931         * d10v-tdep.c: Include "sim-regno.h".
8932         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8933         (d10v_ts3_register_sim_regno): Ditto.
8934         * gdbarch.sh: Include "sim-regno.h".
8935         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8936         * gdbarch.h, gdbarch.c: Regenerate.
8937         * arch-utils.h (default_register_sim_regno): Delete declaration.
8938         * arch-utils.c (default_register_sim_regno): Delete function.
8939
8940 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8941
8942         * ppcnbsd-nat.c: Rewrite.
8943         * ppcnbsd-tdep.c: New file.
8944         * ppcnbsd-tdep.h: New file.
8945         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8946         solib.o, and solib-svr4.o.
8947         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8948         nbsd-tdep.o, and corelow.o.
8949
8950 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8951
8952         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8953         `tr' and `sed'.  Mention that `broken' targets are not expected to
8954         build.
8955
8956 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8957
8958         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8959         Let PC point right after the prologue before looking up symbols.
8960         
8961 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8962
8963         * i386-tdep.c (i386_register_virtual_type): Return 
8964         builtin_type_vec128i for SSE registers.
8965
8966         * gdbtypes.h (builtin_type_vec128i): Declare.
8967
8968         * gdbtypes.c (build_builtin_type_vec128i): New function.
8969         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8970         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8971         (build_gdbtypes): Initialize new builtin vector types.
8972         (_initialize_gdbtypes): Register new vector types with gdbarch.
8973
8974 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8975
8976         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8977         since it has been multi-arch'd.
8978         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8979         Move Alpha and VAX multi-arch news entries to same section
8980         as other multi-arch news.
8981
8982 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8983
8984         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8985         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8986         static.  Rename some register numbers to put them in ns32k-tdep
8987         private namespace.
8988         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8989         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8990         functions.
8991         (_initialize_ns32k_tdep): Use gdbarch_register.
8992         * ns32k-tdep.h: New file.
8993         * ns32knbsd-tdep.c: New file.
8994         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8995         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8996         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8997         REGISTER_BYTES, REGISTER_BYTE): Remove.
8998         * config/ns32k/tm-ns32k.h: New file.
8999         * config/ns32k/tm-umax.h: Remove.
9000
9001 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9002
9003         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9004         ns32k_store_struct_return, ns32k_extract_return_value,
9005         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9006         functions.
9007         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9008         ns32k_saved_pc_after_call.
9009         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9010         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9011         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9012         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9013         ns32k_extract_struct_value_address.
9014
9015 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9016
9017         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9018         ns32k_fix_call_dummy): New.
9019         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9020         ns32k_call_dummy_words.
9021         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9022         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9023         CALL_DUMMY_NARGS): Remove.
9024         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9025
9026 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9027
9028         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9029         ns32k_frame_saved_pc, ns32k_frame_args_address,
9030         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9031         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9032         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9033         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9034         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9035         (BREAKPOINT): Remove..
9036         (FRAME_CHAIN): Define as ns32k_frame_chain.
9037         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9038         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9039         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9040         (FRAME_FIND_SAVED_REGS): Remove.
9041         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9042         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9043         (POP_FRAME): Define as ns32k_pop_frame.
9044
9045 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9046
9047         * ns32k-tdep.c (ns32k_register_byte_32082,
9048         ns32k_register_byte_32382, ns32k_register_raw_size,
9049         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9050         functions.
9051         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9052         ns32k_register_byte_32382.
9053         * config/ns32k/tm-umax.h: Update copyright years.
9054         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9055         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9056         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9057         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9058         (ns32k_get_enter_addr): Fix prototype.
9059
9060 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9061
9062         * ns32k-tdep.c: Update copyright years.
9063         (ns32k_register_name_32082): New function.
9064         (ns32k_register_name_32382): Ditto.
9065         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9066         (REGISTER_NAME): Define as ns32k_register_name_32382.
9067         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9068         (REGISTER_NAME): Define as ns32k_register_name_32082.
9069
9070 2002-05-24  Jim Blandy  <jimb@redhat.com>
9071
9072         * dwarf2read.c (free_line_header): Use xfree, not free.
9073
9074 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9075
9076         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9077         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9078
9079 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9080
9081         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9082
9083 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9084
9085         From Ross Alexander at NEC Europe:
9086         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9087
9088 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9089
9090         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9091         for input, rather than parse_and_eval_address.  
9092
9093 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9094
9095         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9096         * Makefile.in (sim_d10v_h): Update definition.
9097
9098 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9099
9100         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9101         change `2002-05-22 Michael Snyder' below.
9102         (d10v_push_arguments): Ditto.
9103         (d10v_extract_return_value): Ditto.
9104
9105 2002-05-23  Jim Blandy  <jimb@redhat.com>
9106
9107         * macrotab.c (check_for_redefinition): Don't complain if the new
9108         definition is the same as the previous one.  Take more arguments
9109         to allow the comparison.
9110         (macro_define_object, macro_define_function): Pass more arguments
9111         to check_for_redefinition.
9112
9113 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9114
9115         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9116         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9117         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9118         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9119         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9120         Add a temp variable to save a call (and a memory read).
9121         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9122         if possible (so that PC_IN_CALL_DUMMY will work).
9123
9124 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9125
9126         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9127
9128 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9129
9130         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9131         fde->cie_ptr.
9132         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9133         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9134         so that frames of shared libraries are mapped correctly.
9135         (execute_stack_op): Change type of 'result' from ULONGEST to
9136         CORE_ADDR.
9137         
9138 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9139
9140         * config/alpha/tm-nbsd.h: Include solib.h.
9141
9142 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9143
9144         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9145         assumptions about the host's byte order.
9146
9147 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9148
9149         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9150         to dependency list.
9151         * alphanbsd-tdep.c: Include solib-svr4.h.
9152         * shnbsd-tdep.c: Ditto.
9153
9154 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9155
9156         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9157         nbsd-tdep.h to dependency list.
9158         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9159         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9160         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9161         nbsdaout.mh and nbsdelf.mh consistently.
9162         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9163         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9164         nbsdaout.mt and nbsdelf.mh consistently.
9165         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9166         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9167         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9168         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9169         a.out shared library stuff from here...
9170         * config/nm-nbsdaout.h: ...to here.
9171         * config/tm-nbsd.h: Remove.
9172         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9173         * config/arm/nbsd.mh: Remove.
9174         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9175         nbsd-tdep.o.
9176         * config/arm/nbsdaout.mh: New file. 
9177         * config/arm/nbsdelf.mh: New file.
9178         * config/arm/nm-nbsdaout.h: New file.
9179         * config/i386/nbsd.mh: Remove.
9180         * config/i386/nbsd.mt: Remove.
9181         * config/i386/nbsdaout.mh: New file.
9182         * config/i386/nbsdaout.mt: New file.
9183         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9184         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9185         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9186         i386_register_u_addr): Remove.
9187         * config/i386/nm-nbsdaout.h: New file.
9188         * config/i386/nm-nbsdelf.h: Remove.
9189         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9190         (USE_STRUCT_CONVENTION): Remove.
9191         * config/i386/tm-nbsdaout.h: New file.
9192         * config/i386/tm-nbsdelf.h: Remove.
9193         * config/m68k/nbsd.mh: Remove.
9194         * config/m68k/nbsd.mt: Remove.
9195         * config/m68k/nbsdaout.mh: New file.
9196         * config/m68k/nbsdaout.mt: New file. 
9197         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9198         * config/m68k/nm-nbsdaout.h: New file.
9199         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9200         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9201         * config/ns32k/nbsd.mh: Remove.
9202         * config/ns32k/nbsd.mt: Remove. 
9203         * config/ns32k/nbsdaout.mh: New file.
9204         * config/ns32k/nbsdaout.mt: New file.
9205         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9206         * config/ns32k/nm-nbsdaout.h: New file.
9207         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9208         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9209         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9210         (SVR4_SHARED_LIBS): Remove.
9211         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9212         * config/sparc/nbsd.mh: Remove.
9213         * config/sparc/nbsd.mt: Remove.
9214         * config/sparc/nbsdaout.mh: New file.
9215         * config/sparc/nbsdaout.mt: New file.
9216         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9217         * config/sparc/nbsdelf.mt: New file.
9218         * config/sparc/nm-nbsdaout.h: New file.   
9219         * config/sparc/nm-nbsdelf.h: Remove.
9220         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9221         * config/sparc/tm-nbsdaout.h: New file.
9222
9223 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9224
9225         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9226         mipsnbsd-tdep.c
9227         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9228
9229 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9230
9231         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9232         shnbsd-nat.c.
9233         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9234
9235 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9236
9237         * NEWS: Note new MIPS NetBSD native configuration. 
9238         * configure.host (mips*-*-netbsd*): New host. 
9239         * configure.tgt (mips*-*-netbsd*): New target. 
9240         * mipsnbsd-nat.c: New file.
9241         * mipsnbsd-tdep.c: New file.
9242         * mipsnbsd-tdep.h: New file.
9243         * config/mips/nbsd.mh: New file.
9244         * config/mips/nbsd.mt: New file.
9245         * config/mips/nm-nbsd.h: New file.
9246         * config/mips/tm-nbsd.h: New file.
9247
9248 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9249
9250         * Makefile.in (SFILES): Add osabi.c.
9251         (COMMON_OBS): Add osabi.o.
9252         (osabi.o): New dependency list.
9253         * osabi.c: New file.
9254         * osabi.h: New file.
9255         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9256
9257         * Makefile.in (alpha_tdep_h): Define and use instead of
9258         alpha-tdep.h.
9259         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9260         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9261         Remove.
9262         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9263         * alpha-tdep.h: Include osabi.h.
9264         (alpha_abi): Remove.
9265         (gdbarch_tdep): Use generic OS ABI framework.
9266         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9267         gdbarch_register_osabi.
9268         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9269         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9270         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9271
9272         * Makefile.in (sh_tdep_h): Add osabi.h.
9273         * sh-tdep.h (sh_osabi): Remove.
9274         (gdbarch_tdep): Use generic OS ABI framework.
9275         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9276         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9277         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9278         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9279
9280         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9281         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9282         gdbarch_register_osabi.
9283         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9284         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9285         (get_elfosabi): Rename to...
9286         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9287         ABI framework support routines.
9288         (arm_gdbarch_init): Use generic OS ABI framework.
9289         (arm_dump_tdep): Likewise.
9290         (_initialize_arm_tdep): Likewise.
9291         * arm-tdep.h: Include osabi.h.
9292         (arm_abi): Remove.
9293         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9294         osabi member.
9295         (arm_gdbarch_register_os_abi): Remove prototype.
9296         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9297         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9298
9299         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9300         * mips-tdep.c: Include osabi.h.
9301         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9302         OS ABI framework.
9303
9304 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9305
9306         * h8300-tdep.c: Fix formatting.
9307
9308 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9309
9310         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9311         printing vector registers.
9312
9313 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9314
9315         From Fernando Nasser:
9316         * remote.c (remote_async_open_1): Re-throw the exception when the
9317         connection fails.
9318         (remote_cisco_open): Ditto.
9319         (remote_open_1): Ditto.
9320
9321 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9322
9323         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9324         (remote_start_remote): Add uiout parameter.  Pass through to
9325         remote_start_remote_dummy.
9326         (remote_open_1): Use catch_exception instead of catch_errors.
9327         (remote_async_open_1): Ditto.
9328         (remote_cisco_open): Ditto.
9329
9330 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9331
9332         * remote.c (remote_start_remote): Replace PTR with void pointer.
9333         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9334         static.
9335
9336 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9337
9338         * gdb_indent.sh: Allow the script to be run in the sim directory.
9339
9340 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9341
9342         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9343         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9344
9345         * corelow.c (core_open): Only call set_gdbarch_from_file if
9346         exec_bfd is NULL.
9347
9348 2002-05-17  Andrey Volkov <avolkov@transas.com>
9349
9350         * h8300-tdep.c: Add support of EXR register
9351         * config/h8300/tm-h8300.h: Ditto. 
9352         
9353 2002-05-17  Andrey Volkov <avolkov@transas.com>
9354
9355         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9356         
9357 2002-05-17  Andrey Volkov <avolkov@transas.com>
9358
9359         * h8300-tdep.c: Change literal regnums to REGNO.
9360         
9361 2002-05-17  Jim Blandy  <jimb@redhat.com>
9362
9363         * NEWS: Note addition of macro support.
9364
9365         Expand preprocessor macros in C expressions.
9366         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9367         (scan_macro_expansion, scanning_macro_expansion,
9368         finished_macro_expansion): New function declarations.
9369         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9370         variable declarations.
9371         * parser-defs.h (expression_context_pc): New declaration.
9372         * parse.c (expression_context_pc): New variable.
9373         (parse_exp_1): Set expression_context_pc, as well as
9374         expression_context_block.
9375         * c-exp.y (yylex): If we're not already reading the result of a
9376         macro expansion, try to macro-expand the next token.  When we're
9377         done scanning a macro expansion, switch back to the mainline text.
9378         Commas and `if's in a macro's expansion don't terminate the input.
9379         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9380         (macro_original_text, macro_expanded_text,
9381         expression_macro_lookup_func, expression_macro_lookup_baton): New
9382         variables.
9383         (scan_macro_expansion, scanning_macro_expansion,
9384         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9385         c_preprocess_and_parse): New functions.
9386         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9387         c_preprocess_and_parse, instead of c_parse.
9388         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9389         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9390
9391 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9392
9393         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9394         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9395         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9396
9397 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9398
9399         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9400
9401 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9402
9403         * Makefile.in (sh_tdep_h): Define and use.
9404         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9405         register enum): Move to...
9406         * * sh-tdep.h: ...here.
9407         * sh-tdep.c: Include sh-tdep.h.
9408         * sh3-rom.c: Likewise.
9409         * shnbsd-tdep.c: Likewise.
9410
9411 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9412
9413         * arm-tdep.c: Spelling fix in comment.
9414
9415 2002-05-16  Jim Blandy  <jimb@redhat.com>
9416
9417         Add commands for manually expanding macros and showing their
9418         definitions.
9419         * macrocmd.c, macroscope.c, macroscope.h: New files.
9420         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9421         (macroscope_h): New variable.
9422         (HFILES_NO_SRCDIR): Add macroscope.h.
9423         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9424         (macroscope.o, macrocmd.o): New rules.
9425
9426         Teach the Dwarf 2 reader to read macro information.
9427         * dwarf2read.c: #include "macrotab.h".
9428         (dwarf_macinfo_buffer): New variable.
9429         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9430         dwarf_macinfo_size.
9431         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9432         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9433         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9434         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9435         dwarf2_macro_spaces_in_definition): New complaints.
9436         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9437         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9438         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9439         the partial symbol table.
9440         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9441         from what's recorded in the partial symbol table.
9442         (read_file_scope): If the compilation unit has a
9443         `DW_AT_macro_info' attribute, read its macro information.
9444         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9445
9446 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9447
9448         Fix PR gdb/546
9449         * ser-tcp.c: Don't include <netinet/udp.h>.
9450
9451 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9452
9453         * MAINTAINERS: Update my email address.
9454
9455 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9456
9457         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9458         include file of the same name.
9459
9460 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9461
9462         * configure.tgt: Mark v850 as multi-arched.
9463         * config/v850/tm-v850.h: Remove file.
9464         * config/v850/v850.mt: Eliminate TM_FILE.
9465
9466 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9467
9468         * v850-tdep.c: Full multi-arch.
9469         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9470         Define GDB_MULTI_ARCH to 2.
9471
9472 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9473
9474         * p-exp.y (current_type): New static variable.
9475         Carries the type of the expression at the position that is parsed.
9476         (push_current_type, pop_current_type): Two new functions. Used
9477         to store/restore current_type in expression on specific tokens.
9478         (search_field): New static variable. Set to one after parsing a point
9479         as at that point only a FIELDNAME token should be searched.
9480         (FIELDNAME): New token. After a point only a token belonging to 
9481         current_type type definition is allowed.
9482         (all over token rules): reset and change current_type according
9483         to rules.
9484         (exp '[' rule): insert implicit array index field if
9485         exp is a pascal string type.
9486
9487 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9488
9489         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9490         frame info.  Use frame_info's saved_regs instead of matching member
9491         in extra_frame_info throughout.
9492         (v850_frame_init_saved_regs): New function.
9493         (v850_init_extra_frame_info): Move most functionality into
9494         v850_frame_init_saved_regs().
9495         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9496         (v850_frame_find_saved_regs): Remove declaration.
9497         (FRAME_FIND_SAVED_REGS): Remove definition.
9498         (v850_frame_init_saved_regs): Add declaration.
9499         (FRAME_INIT_SAVED_REGS): Add definition.
9500
9501 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9502
9503         * v850-tdep.c: Begin multi-arch'ing v850.
9504         (v850_target_architecture_hook): Remove function.
9505         (v850_gdbarch_init): New function.  Add code previously in
9506         v850_target_architecture_hook().
9507         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9508         Call register_gdbarch_init() instead.
9509
9510 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9511
9512         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9513         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9514         (fixup_class_method_type): Likewise.
9515
9516 2002-05-15  Jim Blandy  <jimb@redhat.com>
9517
9518         Add macro structures to GDB's symbol tables.  Nobody puts anything
9519         in them yet.
9520         * symtab.h (struct symtab): New member: `macro_table'.
9521         * buildsym.h (pending_macros): New global variable.
9522         * buildsym.c: #include "macrotab.h".
9523         (buildsym_init): Initialize `pending_macros'.
9524         (end_symtab): If we found macro information while reading a CU's
9525         debugging info, do build a symtab structure for it.  Make the
9526         symtab point to the macro information, and clear the
9527         `pending_macros' pointer which held it while we were reading the
9528         debug info.
9529         (really_free_pendings): Free any pending macro table.
9530         * objfiles.h (struct objfile): New member: `macro_cache'.
9531         * objfiles.c (allocate_objfile): Set allocate and free functions
9532         for the macro cache's objstack.
9533         (free_objfile): Empty the macro cache's obstack.
9534         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9535         set new allocate and free functions for it.
9536         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9537         free functions for the macro cache's objstack.  (Why is this
9538         function building its own objfile?)
9539         * symmisc.c (print_objfile_statistics): Print statistics on the
9540         macro bcache.
9541         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9542
9543 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9544
9545         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9546         (REGISTER_U_ADDR): Delete definition.
9547         (arm_register_u_addr): Delete declaration.
9548
9549 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9550
9551         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9552         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9553
9554 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9555
9556         * regcache.c (register_valid): Revise comments refering to "Not
9557         available" and "unavailable".
9558         * frame.c (frame_register_read): Ditto.
9559         * findvar.c (value_of_register): Ditto.
9560
9561 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9562
9563         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9564         (remote-sim.o): Update dependencies.
9565         (d10v-tdep.o): Specify dependencies.
9566         (sim_d10v_h): Define.
9567
9568 2002-05-14  Jim Blandy  <jimb@redhat.com>
9569
9570         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9571         * macrotab.c (macro_lookup_inclusion, find_definition,
9572         new_macro_table): Same.
9573         
9574         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9575         not `! strcmp ()'.  This is a dubious improvement.
9576         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9577
9578         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9579         although it's not necessary, to avoid a warning.
9580
9581 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9582
9583         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9584         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9585         TYPE_INSTANCE_FLAGS.
9586         (struct main_type): New.
9587         (struct type): Move most members to struct main_type.  Change
9588         cv_type and as_type to new type_chain member.  Add instance_flags.
9589         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9590         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9591         (finish_cv_type): Remove prototype.
9592         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9593         Set TYPE_CHAIN.
9594         (alloc_type_instance): New function.
9595         (smash_type): New function.
9596         (make_pointer_type, make_reference_type, make_function_type)
9597         (smash_to_member_type, smash_to_method_type): Call smash_type.
9598         (make_qualified_type): New function.
9599         (make_type_with_address_space): Call make_qualified_type.
9600         (make_cv_type): Likewise.
9601         (finish_cv_type): Remove unnecessary function.
9602         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9603         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9604         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9605         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9606         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9607         * hpread.c (hpread_read_struct_type): Likewise.
9608         * stabsread.c (read_struct_type): Likewise.
9609
9610 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9611
9612         * configure.tgt: Add a catch all sh* target, for cases like
9613         sh[2,3,4]-elf and sh-hms.
9614
9615 2002-05-14  Keith Seitz  <keiths@redhat.com>
9616
9617         * event-loop.c (create_file_handler): Don't do anything but
9618         update data when we are given a fd which we are already
9619         monitoring.
9620
9621 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9622
9623         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9624         (update_context): Use __func__ in warnings.
9625         
9626 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9627
9628         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9629         and tcp_close to net_open and net_close.
9630         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9631         using UDP if requested.  Don't try to disable Nagle on UDP
9632         sockets.
9633         * remote.c (remote_serial_open): New function.  Warn about UDP.
9634         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9635
9636 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9637
9638         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9639
9640 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9641
9642         * configure.tgt: Remove sh-hms target.
9643         * MAINTAINERS: Don't list sh-hms as a separate target.
9644
9645 2002-05-13  Jim Blandy  <jimb@redhat.com>
9646
9647         Add first preprocessor macro-expansion files.
9648         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9649         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9650         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9651         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9652         (COMMON_OBS): Add macrotab.o, macroexp.o.
9653         (macroexp.o, macrotab.o): New rules.
9654
9655 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9656
9657         * config/m88k/tm-m88k.h: Update copyright.
9658         (m88k_target_write_pc): Declare
9659         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9660         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9661         (SHIFT_INST_REGS): Update definition.
9662         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9663         using old definition of TARGET_WRITE_PC.
9664         * regcache.c (generic_target_write_pc): Delete code handling
9665         NNPC_REGNUM.
9666         * gdbarch.sh (NNPC_REGNUM): Delete.
9667         * gdbarch.h, gdbarch.c: Regenerate.
9668
9669 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9670
9671         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9672         builtin reg number.
9673
9674 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9675
9676         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9677         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9678         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9679         access macros.
9680         * c-typeprint.c (cp_type_print_method_args): Likewise.
9681         (c_type_print_args): Likewise.
9682         * d10v-tdep.c (d10v_push_arguments): Likewise.
9683         (d10v_extract_return_value): Likewise.
9684         * expprint.c (print_subexp): Likewise.
9685         * gdbtypes.c (lookup_primitive_typename): Likewise.
9686         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9687         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9688         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9689         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9690         (TYPE_VECTOR): Likewise.
9691         * hpread.c (hpread_read_struct_type)
9692         (fix_static_member_physnames, fixup_class_method_type)
9693         (hpread_type_lookup): Likewise.
9694         * mdebugread.c (parse_symbol, parse_type): Likewise.
9695         * p-lang.c (is_pascal_string_type): Likewise.
9696         * valops.c (hand_function_call): Likewise.
9697         * x86-64-tdep.c (classify_argument): Likewise.
9698
9699         * hpread.c (hpread_read_function_type)
9700         (hpread_read_doc_function_type): Call replace_type.
9701         * dstread.c (create_new_type): Delete.
9702         (decode_dst_structure, process_dst_function): Call alloc_type.
9703         Use type access macros.
9704
9705 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9706
9707         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9708         the're not supported by the current architecture.
9709         (i387_fill_fxsave): Likewise.
9710
9711 2002-05-12  Fred Fish  <fnf@redhat.com>
9712
9713         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9714         sect_index_xxx members to index the first slot in section_offsets
9715         if all of the section_offsets are zero.
9716
9717 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9718
9719         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9720         checked in with last change.
9721
9722 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9723
9724         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9725         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9726         config.sub.
9727
9728 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9729
9730         * Makefile.in: Update dependencies.
9731
9732 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9733
9734         * language.c (local_hex_string_custom): Simplify.  Do not depend
9735         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9736
9737         * memattr.c (mem_info_command): Replace calls to
9738         longest_local_hex_string and longest_local_hex_string_custom.
9739         * buildsym.c (make_blockvector): Ditto.
9740         * solib.c (info_sharedlibrary_command): Ditto.
9741         * tracepoint.c (tracepoints_info): Ditto.
9742         * symtab.c (print_msymbol_info): Ditto.
9743
9744         * language.c (local_hex_string): Delete.
9745         (local_hex_string_custom): Delete.
9746         (longest_local_hex_string): Rename to local_hex_string.
9747         (longest_local_hex_string_custom): Rename to
9748         local_hex_string_custom.
9749         * language.h (local_hex_string): Change parameter type to LONGEST.
9750         (local_hex_string_custom): Ditto.
9751         (longest_local_hex_string): Delete declaration.
9752         (longest_local_hex_string_custom): Ditto.
9753
9754         * solib.c: Update copyright.
9755         * memattr.c: Update copyright.
9756         
9757 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9758
9759         * arch-utils.h (legacy_register_to_value): Declare.
9760         (legacy_value_to_register): Declare.
9761         (legacy_convert_register_p): Declare.
9762         * arch-utils.c (legacy_register_to_value): New function.
9763         (legacy_value_to_register): New function.
9764         (legacy_convert_register_p): New function.
9765
9766         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9767         (VALUE_TO_REGISTER): Define.
9768         (CONVERT_REGISTER_P): Define.
9769         * gdbarch.h, gdbarch.c: Regenerate.
9770
9771         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9772         VALUE_TO_REGISTER.
9773         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9774         CONVERT_REGISTER_P.
9775
9776 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9777             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9778
9779         * Makefile.in: Update dependencies for valops.c.
9780         * valops.c: Include "gdb_assert.h".
9781         (typecmp): Skip THIS parameter to methods.
9782         (find_method_list): Remove static_memfuncp argument,
9783         update callers.  Check for stub methods.
9784         (find_value_oload_method_list): Don't set *static_memfuncp.
9785         (find_overload_match): Don't check for stub methods.  Assert
9786         that methods are not stubbed.  Handle static methods.
9787         (value_find_oload_method_list): Remove static_memfuncp argument.
9788         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9789         to the argument list for static stub methods.
9790         * value.h (value_find_oload_method_list): Update prototype.
9791
9792 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9793
9794         * arch-utils.h (generic_register_size): Declare.
9795         (generic_register_raw_size, generic_register_virtual_size): Delete
9796         declarations.
9797         * arch-utils.c (generic_register_raw_size): Delete.
9798         (generic_register_size): New function.
9799         (generic_register_virtual_size): Delete.
9800
9801         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9802         default generic_register_size.
9803         * gdbarch.h, gdbarch.c: Re-generate.
9804         
9805         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9806         register_virtual_size.
9807         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9808         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9809
9810 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9811
9812         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9813         * gdbarch.h, gdbarch.c: Regenerate.
9814         * gnu-v3-abi.c: Update copyright.
9815         (vtable_address_point_offset): Update.
9816         (gnuv3_rtti_type): Update.
9817         (gnuv3_baseclass_offset): Update.
9818         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9819         (init_fetch_link_map_offsets): Update.
9820         * remote.c (get_remote_state): Update.
9821         
9822 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9823
9824         * TODO: Remove value_headof/value_from_vtable_info comment.
9825         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9826         * values.c (value_headof, value_from_vtable_info): Delete.
9827         * value.h (value_from_vtable_info): Delete prototype.
9828
9829 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9830
9831         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9832         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9833         $(gdb_regex_h).
9834         (gdb_assert_h): Define.
9835         (gdb_wait_h): Define.
9836         (gdb_regex_h): Define.
9837
9838 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9839
9840         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9841         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9842
9843 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9844
9845         * nbsd-tdep.c: Fix comment.
9846
9847 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9848
9849         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9850         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9851         (nbsd-tdep.o): New dependency list.
9852         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9853         nbsd-tdep.h.
9854         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9855         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9856         * nbsd-tdep.c: New file.
9857         * nbsd-tdep.h: New file.
9858         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9859         nbsd-tdep.h.
9860         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9861         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9862         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9863         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9864
9865 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9866
9867         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9868         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9869         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9870         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9871         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9872         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9873
9874 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9875
9876         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9877         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9878         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9879         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9880         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9881         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9882         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9883
9884 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9885
9886         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9887         fetch_elfcore_registers to...
9888         * i386nbsd-tdep.c: ...here.
9889         (i386nbsd_use_struct_convention): Rename to...
9890         (i386nbsd_aout_use_struct_convention): ...this.
9891         (i386nbsd_supply_reg): New function.
9892         (i386nbsd_fill_reg): New function.
9893         (fetch_core_registers): Use i386nbsd_supply_reg.
9894         (fetch_elfcore_registers): Likewise.
9895         (_initialize_i386nbsd_tdep): New function.
9896         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9897         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9898         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9899         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9900         (i386nbsd_aout_use_struct_convention): ...this.
9901
9902 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9903
9904         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9905         (store_inferior_registers): Use shnbsd_fill_reg.
9906         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9907         sh_nbsd_supply_register): Collapse into...
9908         (shnbsd_supply_reg): ...this.
9909         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9910         (shnbsd_fill_reg): ...this.
9911         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9912         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9913         (fetch_core_registers): Use shnbsd_supply_reg.
9914         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9915         (sh_nbsd_core_fns): Rename to...
9916         (shnbsd_core_fns): ...this.
9917         (sh_nbsd_elfcore_fns): Rename to...
9918         (shnbsd_elfcore_fns): ...this.
9919         (sh_nbsd_init_abi): Rename to...
9920         (shnbsd_init_abi): ...this.
9921         (_initialize_sh_nbsd_tdep): Rename to...
9922         (_initialize_shnbsd_tdep): ...this.
9923         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9924         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9925         sh_nbsd_fill_register): Remove prototypes.
9926         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9927
9928 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9929
9930         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9931         (i387-nat.o): Delete dependency list.
9932         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9933         (x86-64-linux-nat.o): Likewise.
9934         * i387-nat.c: Delete file, moving contents to...
9935         * i387-tdep.c: ...here.
9936         * i387-nat.h: Rename...
9937         * i387-tdep.h: ...to this.
9938         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9939         * i386-linux-nat.c: Likewise.
9940         * i386bsd-nat.c: Likewise.
9941         * i386gnu-nat.c: Likewise.
9942         * i386nbsd-nat.c: Likewise.
9943         * i386v4-nat.c: Likewise.
9944         * x86-64-linux-nat.c: Likewise.
9945         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9946         * config/i386/go32.mh (NATDEPFILES): Likewise.
9947         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9948         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9949         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9950         * config/i386/linux.mh (NATDEPFILES): Likewise.
9951         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9952         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9953         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9954         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9955
9956 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9957
9958         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9959         (alphanbsd-nat.o): Remove dependency list.
9960         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9961         * alphanbsd-nat.c: Delete.  Contents moved to...
9962         * alphanbsd-tdep.c: ...here.
9963         (_initialize_alphanbsd_tdep): Register core functions.
9964         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9965
9966 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9967
9968         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9969         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9970         (alphanbsd-nat.o): Likewise.
9971         (alphabsd-tdep.o): New dependency list.
9972         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9973         (fill_gregset): Use alphabsd_fill_reg.
9974         (supply_fpregset): Use alphabsd_supply_fpreg.
9975         (fill_fpregset): Use alphabsd_fill_fpreg.
9976         (fetch_inferior_registers): Use struct reg and struct fpreg
9977         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9978         and alphabsd_supply_fpreg.
9979         (store_inferior_registers): Use struct reg and struct fpreg
9980         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9981         and alphabsd_fill_fpreg.
9982         * alphabsd-tdep.c: New file.
9983         * alphabsd-tdep.h: New file.
9984         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9985         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9986         alphabsd_supply_fpreg.
9987         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9988         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9989
9990 2002-05-11  Eric Christopher  <echristo@redhat.com>
9991
9992         * mips-tdep.c (mips_double_register_type): Fix thinko.
9993         (mips_single_register_type): Ditto.
9994         * MAINTAINERS: Add self.
9995
9996 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9997
9998         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9999         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10000         right thing on architectures with different endianness and/or
10001         integer sizes.
10002
10003 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10004
10005         From Christian Limpach <chris@Pin.LU>
10006         * configure.in: Change sed expression which comments out
10007         NATDEPFILES to also comment out continuation lines.
10008         * configure: Regenerate.
10009
10010 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10011
10012         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10013         big patch.
10014
10015 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10016
10017         * sh-tdep.c: Include correct file.
10018
10019 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10020
10021         New support for sh64-elf (sh5) target.
10022
10023         * configure.tgt: For sh64-elf target, default to sh-elf.
10024
10025         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10026         (struct gdbarch_tdep): Add new fields for new registers and ABI
10027         info.
10028
10029         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10030         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10031         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10032         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10033         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10034         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10035         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10036         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10037         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10038         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10039         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10040         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10041         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10042         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10043         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10044         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10045         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10046         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10047         sign_extend, sh64_nofp_frame_init_saved_regs,
10048         sh64_init_extra_frame_info, sh64_get_saved_register,
10049         sh64_extract_struct_value_address, sh64_pop_frame,
10050         sh64_push_arguments, sh64_extract_return_value,
10051         sh64_store_return_value, sh64_show_media_regs,
10052         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10053         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10054         sh_sh64_register_virtual_type,
10055         sh_sh64_register_convert_to_virtual,
10056         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10057         sh64_register_read, sh64_pseudo_register_write,
10058         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10059         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10060         sh64_do_pseudo_register, sh_compact_do_registers_info,
10061         sh64_do_registers_info, sh_gdbarch_init): New functions.
10062
10063 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10064
10065         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10066
10067 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10068
10069         * linespec.c (decode_line_1): Check for a double quote after
10070         a filename correctly.
10071
10072 2002-05-10  Jim Blandy  <jimb@redhat.com>
10073
10074         Properly track the size of the current objfile's .debug_line section.
10075         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10076         (DWARF_LINE_SIZE): New macro.
10077         (dwarf2_build_psymtabs_hard): Record the line section's size in
10078         the partial symbol table.
10079         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10080         symbol table.
10081
10082 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10083
10084         * ia64-tdep.c: Handle breakpoints on L instruction type
10085         in MLX instruction bundle by moving the breakpoint to
10086         the third slot (X instruction type) as L holds only data.
10087
10088 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10089
10090         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10091         (process_one_symbol): Complain about discarding local symbols
10092         due to a misplaced N_LBRAC entry.
10093
10094 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10095
10096         From Daniel Berlin <dan@cgsoftware.com>
10097         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10098         decrease the depth we are at, in the case of templates.
10099
10100 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10101
10102         * mips-tdep.c (mips_float_register_type): New function.
10103         (mips_double_register_type): New function.
10104         (mips_print_register): Use them.
10105         (do_fp_register_row): Likewise.
10106
10107 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10108
10109         * signals/signals.c (signals): Remove conditional compilation around
10110         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10111         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10112
10113 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10114
10115         * remote-rdp.c (remote_rdp_can_run): Remove.
10116
10117 2002-05-09  Tom Tromey  <tromey@redhat.com>
10118
10119         * jv-valprint.c (java_val_print): Handle `char' as a special case
10120         of TYPE_CODE_INT.
10121
10122 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10123
10124         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10125         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10126         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10127         str r(0123),[sp,#nn].
10128         (arm_skip_prologue): Ditto.  Also make disassembly
10129         order-independent by placing it in a loop.
10130
10131 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10132
10133         * stabsread.c (read_type): Add recognition for new attribute:
10134         "@V;" means that an array type is actually a vector.
10135         This is analogous to the vector flag that's been added to dwarf2.
10136
10137 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10138
10139         * i386-tdep.h (i386_abi): New enum.
10140         (struct gdbarch_tdep): Replace os_ident member with abi.
10141         (i386_gdbarch_register_os_abi): New prototype.
10142         * i386-tdep.c (i386_abi_names): New array.
10143         (process_note_abi_tag_sections): Removed.
10144         (process_note_sections): New function.
10145         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10146         (struct i386_abi_handler): New struct.
10147         (i386_abi_handler_list): New variable.
10148         (i386_gdbarch_register_os_abi): New function.
10149         (i386_gdbarch_init): Adapt for the changes given above.
10150
10151 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10152
10153         * gregset.h: Say "GNU/Linux".
10154
10155 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10156
10157         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10158         (build_gdbtypes): Build builtin_type_v2_float.
10159         (_initialize_gdbtypes): Register new builtin type.
10160
10161 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10162
10163         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10164         (clear_gdbarch_swap): New function.
10165         (initialize_non_multiarch): Call.
10166         (gdbarch_update_p): Before calling init(), swap out and clear the
10167         existing architecture.
10168         * gdbarch.c: Regenerate.
10169
10170 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10171
10172         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10173         alphanbsd-tdep.c.
10174
10175 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10176
10177         * sh-nbsd-nat.c: Rename to...
10178         * shnbsd-nat.c: ...this.
10179         * sh-nbsd-tdep.c: Rename to...
10180         * shnbsd-tdep.c: ...this.
10181         * sh-nbsd-tdep.h: Rename to...
10182         * shnbsd-tdep.h: ...this.
10183         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10184         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10185
10186 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10187
10188         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10189         concatenation for command help messages.
10190
10191 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10192
10193         * NEWS: Note new sh*-*-netbsdelf* configuration.
10194         * configure.host: Set gdb_host_cpu to sh for all sh*.
10195         (sh*-*-netbsdelf*): New host.
10196         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10197         (sh*-*-netbsdelf*): New target.
10198         * sh-nbsd-nat.c: New file.
10199         * sh-nbsd-tdep.c: New file.
10200         * sh-nbsd-tdep.h: New file.
10201         * config/sh/nbsd.mh: New file.
10202         * config/sh/nbsd.mt: New file.
10203         * config/sh/nm-nbsd.h: New file.
10204         * config/sh/tm-nbsd.h: New file.
10205
10206 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10207
10208         * sh-tdep.c (sh_osabi_names): Declare.
10209         (process_note_abi_tag_sections): New function.
10210         (get_elfosabi): Ditto.
10211         (sh_gdbarch_register_os_abi): Ditto.
10212         (sh_dump_tdep): Ditto.
10213         _initialize_sh_tdep): Use gdbarch_register to register
10214         sh_gdbarch_init and sh_dump_tdep.
10215         * config/sh/tm-sh.h (sh_osabi): Declare.
10216         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10217
10218 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10219
10220         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10221         (thumb_scan_prologue): Ditto.
10222         (arm_find_callers_reg): Ditto.
10223         (arm_frame_chain): Ditto.
10224         (arm_init_extra_frame_info): Ditto.
10225         (arm_frame_saved_pc): Ditto.
10226         (arm_pop_frame): Ditto.
10227         (arm_push_return_address): New function.
10228         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10229         call_dummy_location, call_dummy_breakpoint_offset_p,
10230         call_dummy_breakpoint_offset, call_dummy_p,
10231         call_dummy_stack_adjust_p, call_dummy_words,
10232         sizeof_call_dummy_words, call_dummy_start_offset,
10233         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10234         call_dummy_address, push_return_address and push_dummy_frame for
10235         generic dummy frames.
10236
10237 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10238
10239         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10240         size computation for alloca.
10241         (sh_fp_frame_init_saved_regs): Likewise.
10242
10243 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10244
10245         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10246         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10247         * arm-tdep.c (arm_store_return_value): Use them.
10248         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10249         * remote-rdp.c (remote_rdp_fetch_register): Use
10250         ARM_MAX_REGISTER_RAW_SIZE.
10251         (remote_rdp_store_register): Likewise.
10252
10253 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10254
10255         * dwarf2cfi.c: Code cleanup, removed unused variables,
10256         added default labels to switch {} statements.
10257         * x86-64-tdep.c: Ditto.
10258         * x86-64-linux-nat.c: Ditto.
10259
10260 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10261
10262         * solib.h: Protect against multiple inclusion.
10263
10264 2002-05-06  Jim Blandy  <jimb@redhat.com>
10265
10266         Add first preprocessor macro-expansion files.
10267         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10268         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10269         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10270         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10271         (COMMON_OBS): Add macrotab.o, macroexp.o.
10272         (macroexp.o, macrotab.o): New rules.
10273
10274         Separate the job of reading the line number info statement program
10275         header (...expialidocious) out into its own function.
10276         * dwarf2read.c (struct line_head, struct filenames, struct
10277         directories): Replace with...
10278         (struct line_header): New structure, containing the full
10279         contents of the statement program header, including the
10280         include directory and file name tables.
10281         (read_file_scope): If we have line number info, instead of just
10282         calling dwarf_decode_lines to do all the work, call
10283         dwarf_decode_line_header first to get a `struct line_header'
10284         containing the data in the statement program header, and then
10285         pass that to dwarf_decode_lines, which will pick up where that
10286         left off.  Be sure to clean up the `struct line_header' object.
10287         (dwarf_decode_line_header, free_line_header, add_include_dir,
10288         add_file_name): New functions.
10289         (dwarf_decode_lines): Move all the code to read the statement
10290         program header into dwarf_decode_line_header.  Take the line
10291         header it built as the first argument, instead of the offset to
10292         the compilation unit's line number info.  Use the new `struct
10293         line_header' type instead of the old structures.  No need to do
10294         cleanups here now, since we don't allocate anything.
10295         (dwarf2_statement_list_fits_in_line_number_section,
10296         dwarf2_line_header_too_long): New complaints.
10297
10298 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10299
10300         * gdbtypes.c (init_vector_type): New function.
10301         (build_builtin_type_vec128): Simplify the representation of SIMD
10302         registers.
10303         (build_gdbtypes): Initialize new builtin vector types.
10304         (_initialize_gdbtypes): Register new vector types with gdbarch.
10305         (builtin_type_v4_float, builtin_type_v4_int32,
10306         builtin_type_v8_int16, builtin_type_v16_int8,
10307         builtin_type_v2_int32, builtin_type_v4_int16,
10308         builtin_type_v8_int8): New (renamed) SIMD types.
10309
10310 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10311
10312         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10313         (i387_fill_fxsave): Likewise.
10314
10315 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10316
10317         * alpha-tdep.c (alpha_extract_return_value): Don't use
10318         non-constant array size in prototype.
10319
10320 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10321
10322         From Brian Taylor <briant at model dot com>:
10323         * ui-out.c (ui_out_field_core_addr): Use the function
10324         longest_local_hex_string_custom'to format addresses > 32 bits
10325         wide.
10326
10327         * ui-out.c (ui_out_field_core_addr): Update comment.
10328
10329 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10330
10331         * stack.c (select_and_print_frame): Make static.  Delete the
10332         parameter `level'.
10333         (func_command): Update call.
10334         (select_frame_command): Delete code computing the frame level.
10335         * frame.h (select_and_print_frame): Delete declaration.
10336
10337 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10338
10339         * sparc-tdep.c (sparc_get_saved_register): Comment why
10340         get_prev_frame call is safe.
10341
10342 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10343
10344         * frame.h (select_frame): Delete level parameter.
10345         * stack.c (select_frame): Update.  Use frame_relative_level to
10346         obtain the frame's level.
10347         (select_and_print_frame): Update call.
10348         (select_frame_command): Ditto.
10349         (up_silently_base): Ditto.
10350         (down_silently_base): Ditto.
10351         * ocd.c (ocd_start_remote): Ditto.
10352         * remote-rdp.c (remote_rdp_open): Ditto.
10353         * remote-mips.c (mips_initialize): Ditto.
10354         (common_open): Ditto.
10355         * remote-e7000.c (e7000_start_remote): Ditto.
10356         * m3-nat.c (select_thread): Ditto.
10357         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10358         (child_get_current_exception_event): Ditto.
10359         * varobj.c (varobj_create): Ditto.
10360         (varobj_update): Ditto.
10361         (c_value_of_root): Ditto.
10362         * tracepoint.c (finish_tfind_command): Ditto.
10363         * corelow.c (core_open): Ditto.
10364         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10365         * thread.c (info_threads_command): Ditto.
10366         (switch_to_thread): Ditto.
10367         * infrun.c (normal_stop): Ditto.
10368         (restore_selected_frame): Ditto.
10369         (restore_inferior_status): Ditto.
10370         * breakpoint.c (insert_breakpoints): Ditto.
10371         (watchpoint_check): Ditto.
10372         (bpstat_stop_status): Ditto.
10373         (do_enable_breakpoint): Ditto.
10374         * blockframe.c (flush_cached_frames): Ditto.
10375         (reinit_frame_cache): Ditto.
10376
10377 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10378
10379         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10380         maintainer.
10381
10382 2002-05-04  Jim Blandy  <jimb@redhat.com>
10383
10384         * gdbtypes.c (replace_type): Doc fix.
10385
10386 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10387
10388         * valprint.c (strcat_longest): Delete commented out function.
10389         Update copyright.
10390
10391 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10392
10393         * MAINTAINERS: Mark a29k as deleted.
10394         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10395         Move new configurations to the top.
10396         * configure.tgt: Remove a29k.
10397         * config/a29k/tm-vx29k.h: Delete.
10398         * config/a29k/vx29k.mt: Delete.
10399         * config/a29k/tm-a29k.h: Delete.
10400         * config/a29k/a29k-udi.mt: Delete.
10401         * config/a29k/a29k.mt: Delete.
10402         * a29k-tdep.c: Delete.
10403         * remote-udi.c: Delete.
10404         * remote-mm.c: Delete.
10405         * remote-eb.c: Delete.
10406         * remote-adapt.c: Delete.
10407         * Makefile.in: Remove obsolete code.
10408         * config/s390/s390x.mt: Ditto.
10409         * config/s390/s390.mt: Ditto.
10410         * config/sparc/sparclynx.mh: Ditto.
10411         * config/sparc/linux.mh: Ditto.
10412         * config/pa/hppaosf.mh: Ditto.
10413         * config/pa/hppabsd.mh: Ditto.
10414         * config/ns32k/nbsd.mt: Ditto.
10415         * config/mips/vr5000.mt: Ditto.
10416         * config/m68k/sun3os4.mh: Ditto.
10417         * config/m68k/nbsd.mt: Ditto.
10418         * config/m68k/m68klynx.mh: Ditto.
10419         * config/m32r/m32r.mt: Ditto.
10420         * config/i386/x86-64linux.mt: Ditto.
10421         * config/i386/nbsdelf.mt: Ditto.
10422         * config/i386/nbsd.mt: Ditto.
10423         * config/i386/i386lynx.mh: Ditto.
10424
10425 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10426
10427         * target.c (debug_print_register): New function.  Handle oversize
10428         registers.
10429         (debug_to_fetch_registers): Call.
10430         (debug_to_store_registers): Call.
10431
10432 2002-05-03  Jim Blandy  <jimb@redhat.com>
10433
10434         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10435         (read_type): Doc fix.
10436         * gdbtypes.c (replace_type): Doc fix.
10437
10438         * stabsread.c (multiply_defined_struct): New complaint.
10439         (read_struct_type): If the type we were passed isn't empty, or
10440         incomplete, don't read the new struct type into it; complain,
10441         and return the original type unchanged.  Take a new `type_code'
10442         argument, which is the type code for the new type.
10443         (read_type): Rather than storing the type's type code here, pass
10444         it as an argument to read_struct_type, and let that take care of
10445         storing it.  That way, we don't overwrite the original type code,
10446         so read_struct_type can use it to decide whether we're overwriting
10447         something we shouldn't.
10448         (complain_about_struct_wipeout): New function.
10449
10450 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10451
10452         * gdbarch.sh: Assert that gdbarch is non-NULL.
10453         * gdbarch.c: Regenerate.
10454
10455 2002-05-03  Jason Merrill  <jason@redhat.com>
10456
10457         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10458         and return NULL.
10459
10460 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10461
10462         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10463         (x86_64_dwarf2gdb_regno_map_length),
10464         (x86_64_dwarf2_reg_to_regnum): Added.
10465         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10466         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10467         (_initialize_x86_64_tdep): Synced with the change above.
10468         (x86_64_skip_prologue): Reformulated message.
10469
10470 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10471
10472         * f-exp.y: Also use new prev_lexptr variable
10473         to improve error reporting. Based on Michael Snyder
10474         2002-04-24 dated patch to c-exp.y.
10475         * jv-exp.y: Likewise.
10476         * m2-exp.y: Likewise.
10477
10478 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10479
10480         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10481         we are dealing with vectors.
10482
10483 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10484
10485         * config/m68k/tm-nbsd.h: Obvious fix,
10486         correct machine name.
10487
10488 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10489
10490         * p-typeprint.c (pascal_type_print_base): Add support
10491         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10492
10493 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10494
10495         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10496         for fondamental pascal 'char' type.
10497
10498 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10499
10500         * p-lang.h (is_pascal_string_type): Declaration changed,
10501         new sixth argument of type char ** added.
10502         * p-lang.c (is_pascal_string_type): Implementation
10503         changed. Args length_pos, length_size, string_pos, char_size
10504         can now be NULL. New argument arrayname set to the field
10505         name of the char array. Return value set to char array
10506         field index plus one.
10507         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10508         is_pascal_string_type function.
10509
10510 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10511
10512         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10513         <cagney@redhat.com> change.
10514         * gdbarch.c: Regenerate.
10515
10516 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10517
10518         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10519         before probing for a new one.  Detect errorenous gdbarch_init
10520         functions.
10521         * gdbarch.c: Regenerate.
10522
10523 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10524
10525         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10526         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10527         * config/v850/tm-v850.h: Ditto.  Update copyright.
10528
10529 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10530
10531         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10532         current_gdbarch.
10533
10534 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10535
10536         * arm-tdep.c: Whitespace clean-ups.
10537         (arm_skip_prologue): Fix thinko; two lines
10538         should have been removed as part of 4/24 change.
10539
10540 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10541
10542         * rs6000-tdep.c: Added comment describing how fpscr register
10543         numbers were chosen.
10544
10545 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10546
10547         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10548
10549 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10550
10551         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10552         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10553         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10554
10555 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10556
10557         From Louis Hamilton <hamilton@redhat.com>:
10558         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10559         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10560         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10561         not bfd-private xcoff data, to determine wordsize.
10562         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10563
10564 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10565
10566         GDB 5.2 released from 5.2 branch.
10567
10568 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10569
10570         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10571         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10572         (x86_64_register_info_table): Added comments with register numbers.
10573
10574 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10575
10576         * rs6000-tdep.c (rs6000_extract_return_value,
10577         rs6000_store_return_value): Handle returning vectors.
10578         (rs6000_gdbarch_init): Use
10579         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10580         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10581         New function.
10582         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10583         vectors.
10584         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10585         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10586
10587 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10588
10589         * hpread.c (hpread_psymtab_to_symtab_1,
10590         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10591         with fprintf_unfiltered (gdb_stderr,...).
10592
10593 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10594
10595         * remote-array.c (printf_monitor, write_monitor,
10596         array_insert_breakpoint, array_remove_breakpoint ):
10597         Replace fprintf (stderr,...
10598         with fprintf_unfiltered (gdb_stderr,....
10599         * remote-es.c: Likewise.
10600         * remote-os9k.c: Likewise.
10601         * remote-st.c: Likewise.
10602
10603 2002-04-28  Andreas Schwab  <schwab@suse.de>
10604
10605         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10606         linux-proc.o and gcore.o.
10607
10608 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10609
10610         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10611         code without frame pointers.
10612
10613 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10614
10615         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10616         ON_STACK is needed.
10617
10618 2002-04-26  Ben Elliston  <bje@redhat.com>
10619
10620         * target.c (do_xfer_memory): Correct reference to the new option
10621         "trust-readonly-sections".
10622
10623 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10624
10625         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10626         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10627         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10628         vectors.
10629         (read_array_type): Record the fact that this array type is really a
10630         vector (i.e. are passed in by value).
10631
10632 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10633
10634         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10635         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10636         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10637         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10638         * alpha-linux-tdep.c: Include frame.h.
10639         (alpha_linux_sigcontext_addr): New function.
10640         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10641         alpha_linux_sigcontext_addr.
10642         * alpha-osf1-tdep.c: Include gdbcore.h.
10643         (alpha_osf1_sigcontext_addr): New function.
10644         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10645         alpha_osf1_sigcontext_addr.
10646         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10647         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10648
10649 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10650
10651         * stack.c (selected_frame_level):
10652         (select_frame): Do not set selected_frame_level.
10653         * frame.h (selected_frame_level): Delete declaration.
10654
10655 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10656
10657         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10658         convert_from_func_ptr-addr when AIX / PowerOpen.
10659
10660 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10661
10662         * valops.c (hand_function_call): Call
10663         generic_save_call_dummy_addr.
10664         * frame.h (generic_save_call_dummy_addr): Declare.
10665         * blockframe.c (struct dummy_frame): Add fields call_lo and
10666         call_hi.
10667         (generic_find_dummy_frame): Check for PC in range call_lo to
10668         call_hi instead of entry_point_address.
10669         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10670         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10671         (generic_save_call_dummy_addr): New function.
10672
10673 2002-04-24  David S. Miller  <davem@redhat.com>
10674
10675         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10676         sparc_skip_prologue.
10677         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10678         information to find prologue when possible.
10679         (sparc_prologue_frameless_p): Call examine_prologue directly.
10680         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10681         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10682         second argument.
10683         (SKIP_PROLOGUE): Likewise.
10684
10685 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10686
10687         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10688         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10689         indicate that the condition it was testing is always true.
10690         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10691         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10692         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10693
10694 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10695
10696         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10697         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10698         tdep->jb_pc and tdep->jb_elt_size.
10699         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10700         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10701         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10702         * alpha-nat.c (get_longjmp_target): Remove.
10703         (JB_ELEMENT_SIZE): Ditto.
10704         (JB_PC): Ditto.
10705         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10706         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10707         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10708         to alpha_get_longjmp_target.
10709         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10710         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10711         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10712
10713 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10714
10715         * README: Update to GDB 5.2.
10716
10717 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10718
10719         * gdbarch.sh (LC_ALL): Set to `c'.
10720
10721 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10722
10723         * avr-tdep.c: Ran through gdb_indent.sh.
10724
10725 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10726
10727         * MAINTAINERS: Add myself as AVR maintainer.
10728         * NEWS: Note new target avr.
10729
10730 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10731
10732         * Makefile.in: Add support for AVR target.
10733         * configure.tgt: Add support for AVR target.
10734         * avr-tdep.c: New file
10735         * config/avr/avr.mt: New file.
10736
10737 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10738
10739         * MAINTAINERS: Add myself to write-after-approval.
10740
10741 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10742
10743         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10744         with fprintf_unfiltered (gdb_stderr,....
10745
10746 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10747
10748         Fix PR gdb/508.
10749         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10750
10751 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10752
10753         * p-exp.y: Also use new prev_lexptr variable
10754         to improve error reporting. Based on Michael Snyder
10755         2002-04-24 dated patch to c-exp.y.
10756
10757 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10758
10759         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10760         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10761         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10762         to 0.
10763         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10764         and struct value.
10765         (FUNCTION_START_OFFSET): Remove.
10766         (BREAKPOINT): Ditto.
10767
10768 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10769
10770         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10771         * NEWS: Ditto.
10772
10773 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10774
10775         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10776         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10777         alpha_linux_pc_in_sigtramp.
10778         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10779         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10780         alpha_osf1_pc_in_sigtramp.
10781         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10782         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10783         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10784         alphafbsd_pc_in_sigtramp.
10785         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10786         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10787         alphanbsd_pc_in_sigtramp.
10788         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10789         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10790
10791 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10792
10793         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10794
10795 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10796
10797         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10798         alphanbsd-tdep.c.
10799         (alphanbsd-nat.o): New dependency list.
10800         (alphanbsd-tdep.o): Ditto.
10801         * NEWS: Note new native NetBSD/alpha configuration.
10802         * alphanbsd-nat.c: New file.
10803         * alphanbsd-tdep.c: Ditto.
10804         * configure.host (alpha*-*-netbsd*): New host.
10805         * configure.tgt (alpha*-*-netbsd*): New target.
10806         * config/alpha/nbsd.mh: New file.
10807         * config/alpha/nbsd.mt: Ditto.
10808         * config/alpha/nm-nbsd.h: Ditto.
10809         * config/alpha/tm-nbsd.h: Ditto.
10810
10811 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10812
10813         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10814         (alpha-osf1-tdep.o): New dependency list.
10815         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10816         and skip_sigtramp_frame members.
10817         * alpha-linux-tdep.c: Include gdbcore.h.
10818         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10819         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10820         * alpha-osf1-tdep.c: New file.
10821         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10822         alpha-osf1-dep.c.
10823         (alpha_frame_past_sigtramp_frame): New function.
10824         (alpha_dynamic_sigtramp_offset): Ditto.
10825         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10826         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10827         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10828         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10829         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10830         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10831         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10832         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10833         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10834         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10835         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10836         to find_solib_trampoline_target.
10837         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10838         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10839         (SKIP_TRAMPOLINE_CODE): Remove.
10840         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10841         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10842         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10843         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10844         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10845         (PROC_SIGTRAMP_MAGIC): Ditto.
10846         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10847         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10848         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10849         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10850         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10851
10852 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10853
10854         * NEWS: Note that Alpha targets are now multi-arch.
10855
10856 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10857
10858         * parser-defs.h (prev_lexptr): New external variable.
10859         * parse.c (parse_exp_1): Set prev_lexptr to null before
10860         calling the language-specific parser.
10861         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10862         (yyerror): Use prev_lexptr in error reporting.
10863
10864 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10865
10866         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10867         * gregset.h: If FILL_FPXREGSET is defined, provide
10868         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10869         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10870         is defined, call fill_fpxregset.
10871
10872 2002-04-24  Roland McGrath  <roland@frob.com>
10873
10874         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10875         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10876         (supply_gregset, supply_fpregset): New functions.
10877
10878         * gnu-nat.c (gnu_find_memory_regions): New function.
10879         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10880         (gnu_xfer_memory): Add a cast.
10881
10882 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10883
10884         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10885         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10886         of argument regs ("str r(0123), [r11, #-nn"]).
10887         (arm_skip_prologue): Better handling for frameless functions.
10888         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10889         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10890
10891 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10892
10893         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10894         NUM_PSEUDO_REGS can be used.
10895
10896 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10897
10898         * arch-utils.h: Update copyright.
10899
10900         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10901         * gdbarch.h, gdbarch.c: Re-generate.
10902
10903         * inferior.h (IN_SIGTRAMP): Delete definition.
10904         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10905         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10906
10907         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10908         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10909         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10910         (find_proc_framesize): Ditto.
10911         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10912         (alpha_init_extra_frame_info): Ditto.
10913         * infrun.c (handle_inferior_event): Ditto.
10914         (handle_inferior_event): Ditto.
10915         (check_sigtramp2): Ditto.
10916         * blockframe.c (create_new_frame): Ditto.
10917         (get_prev_frame): Ditto.
10918         * ppc-linux-tdep.c: Update comments.
10919         * i386-linux-tdep.c: Update comments.
10920         * breakpoint.c (bpstat_what): Update comment.
10921
10922 2002-04-24  David S. Miller  <davem@redhat.com>
10923
10924         * i960-tdep.c (register_in_window_p): New function.
10925         (i960_find_saved_register): Use it instead of
10926         REGISTER_IN_WINDOW_P.
10927         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10928
10929         * symtab.h (find_stab_function_addr): Kill extern.
10930         * minsyms.c (find_stab_function_addr): Remove from here...
10931         * dbxread.c: ... to here, and mark it static.
10932
10933 2002-04-20  David S. Miller  <davem@redhat.com>
10934
10935         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10936         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10937
10938 2002-04-21  David S. Miller  <davem@redhat.com>
10939
10940         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10941         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10942         (vx_write_register): Likewise.
10943
10944 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10945
10946         * source.c (is_regular_file): New function.
10947         (openp): Check wether file to open is a regular file
10948         to avoid opening directories.
10949
10950 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10951
10952         * findvar.c (extract_signed_integer): Cast printf argument
10953         to suppress format warning.
10954         (extract_unsigned_integer): Likewise.
10955         * infcmd.c (registers_info): Likewise.
10956         * top.c (get_prompt_1): Likewise.
10957         * valops.c (value_assign): Likewise.
10958         * valprint.c (print_decimal): Likewise.
10959
10960 2002-04-22  H.J. Lu  (hjl@gnu.org)
10961
10962         * c-exp.y (typebase): Support
10963
10964         [long|long long|short] [signed|unsigned] [int|]
10965
10966         and
10967
10968         signed [long|long long|short] int
10969
10970 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10971
10972         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10973         and vax-tdep.h.
10974         * vax-tdep.h: New file.
10975         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10976         Make several routines static.
10977         (vax_get_saved_register): New function.
10978         (vax_gdbarch_init): New function.
10979         (_initialize_vax_tdep): Register vax_gdbarch_init.
10980         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10981         Remove macros now under the control of gdbarch.
10982
10983 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10984
10985         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10986         Some whitespace and coding standards tweaks.
10987
10988 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10989
10990         * vax-tdep.c: Include regcache.h.
10991         (vax_call_dummy_words): New.
10992         (sizeof_vax_call_dummy_words): New.
10993         (vax_fix_call_dummy): New function.
10994         (vax_saved_pc_after_call): Ditto.
10995         * config/vax/tm-vax.h: Don't include regcache.h.
10996         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10997         (CALL_DUMMY): Remove.
10998         (CALL_DUMMY_WORDS): Define.
10999         (SIZEOF_CALL_DUMMY_WORDS): Define.
11000         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11001
11002 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11003
11004         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11005
11006 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11007
11008         * vax-tdep.c (vax_frame_chain): New function.
11009         (vax_push_dummy_frame): Ditto.
11010         (vax_pop_frame): Ditto.
11011         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11012         (FRAMELESS_FUNCTION_INVOCATION): Use
11013         generic_frameless_function_invocation_not.
11014         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11015         (POP_FRAME): Use vax_pop_frame.
11016
11017 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11018
11019         * vax-tdep.c (vax_store_struct_return): New function.
11020         (vax_extract_return_value): Ditto.
11021         (vax_store_return_value): Ditto.
11022         (vax_extract_struct_value_address): Ditto.
11023         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11024         vax_store_struct_return.
11025         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11026         (STORE_RETURN_VALUE): Use vax_store_return_value.
11027         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11028
11029 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11030
11031         * vax-tdep.c (vax_frame_saved_pc): New function.
11032         (vax_frame_args_address_correct): Ditto.
11033         (vax_frame_args_address): Ditto.
11034         (vax_frame_locals_address): Ditto.
11035         (vax_frame_num_args): Move code to be in proximity to
11036         other frame-related functions.
11037         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11038         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11039         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11040         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11041         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11042
11043 2002-04-22  H.J. Lu  (hjl@gnu.org)
11044
11045         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11046         includedir.
11047
11048 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11049
11050         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11051         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11052         (FRAME_INIT_SAVED_REGS): New macro.
11053
11054 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11055
11056         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11057
11058 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11059
11060         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11061         where needed.
11062         (fetch_osf_core_registers): Likewise.
11063         (supply_gregset): Likewise.
11064
11065 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11066
11067         * symfile.h (get_section_index): Define.
11068         * symfile.c (get_section_index): New function.
11069         * mdebugread.c (SC_IS_SBSS): New macro.
11070         (SC_IS_BSS): Return true for the scBss storage class only, as
11071         the scSBss storage class refers to the .sbss section.
11072         (parse_partial_symbols): Discard the symbols which associated
11073         section does not exist.
11074         Make sure to use the .sbss section index for symbols which
11075         storage class is scBss, rather than using the .bss section index.
11076
11077 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11078
11079         * vax-tdep.c: Update copyright years.
11080         (vax_register_name): New function.
11081         (vax_register_byte): Ditto.
11082         (vax_register_raw_size): Ditto.
11083         (vax_register_virtual_size): Ditto.
11084         (vax_register_virtual_type): Ditto.
11085         * config/vax/tm-vax.h: Update copyright years.
11086         (REGISTER_NAMES): Remove.
11087         (REGISTER_NAME): Define.
11088         (REGISTER_BYTE): Use vax_register_byte.
11089         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11090         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11091         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11092
11093 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11094
11095         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11096         declaration
11097         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11098
11099 2002-04-21  David S. Miller  <davem@redhat.com>
11100
11101         * arch-utils.c (generic_prologue_frameless_p): Kill
11102         SKIP_PROLOGUE_FRAMELESS_P code.
11103         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11104         references.
11105         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11106         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11107         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11108         references.
11109         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11110         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11111         (sparc_gdbarch_init): Pass it to
11112         set_gdbarch_prologue_frameless_p.
11113
11114 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11115
11116         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11117         (alphabsd-nat.o): New dependency list.
11118
11119 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11120
11121         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11122         alphafbsd-tdep.c.
11123         (alpha-linux-tdep.o): New dependency list.
11124         (alphafbsd-tdep.o): Likewise.
11125
11126 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11127
11128         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11129         to here...
11130         * alpha-tdep.c: ...from here.
11131         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11132
11133 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11134
11135         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11136         prototype from here...
11137         * alpha-tdep.h: ...to here.
11138
11139 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11140
11141         * frame.h (selected_frame_level): Document as deprecated.
11142         (frame_relative_level): Declare.
11143         * stack.c (frame_relative_level): New function.
11144         (selected_frame_level): Document as deprecated.
11145         (select_frame): Do not set the selected_frame_level.
11146
11147         * stack.c (frame_info, record_selected_frame): Update.
11148         (frame_command, current_frame_command): Update.
11149         (up_silently_base, up_command, down_silently_base): Update.
11150         (down_command): Update.
11151         * inflow.c (kill_command): Update.
11152         * tracepoint.c (finish_tfind_command): Update.
11153         * corelow.c (core_open): Update.
11154         * thread.c (info_threads_command): Update.
11155         (do_captured_thread_select): Update.
11156         * infcmd.c (finish_command): Update.
11157         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11158
11159 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11160
11161         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11162
11163 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11164
11165         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11166         type const.
11167
11168 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11169
11170         * alphafbsd-tdep.c: Update copyright years.  Include
11171         alpha-tdep.h.
11172         (alphafbsd_use_struct_convention): Make static.
11173         (alphafbsd_init_abi): New function.
11174         (_initialize_alphafbsd_tdep): New function.
11175         * config/alpha/tm-fbsd.h: Update copyright years.
11176         (USE_STRUCT_CONVENTION): Remove.
11177
11178 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11179
11180         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11181         an Alpha ABI variant.
11182         (alpha_abi_handler_list): Declare.
11183         (alpha_gdbarch_register_os_abi): New function.
11184         (alpha_gdbarch_init): Give registered ABI variant handlers a
11185         chance to tweak the gdbarch once we have set up defaults.
11186         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11187
11188 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11189
11190         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11191         to standard_coerce_float_to_double.
11192         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11193
11194 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11195
11196         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11197         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11198         from gdbarch_tdep rather than a constant.
11199         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11200         the default text address for all Alpha Unix ABIs.
11201         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11202         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11203
11204 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11205
11206         * alpha-tdep.h: New file.  Includes several Alpha target constants
11207         taken from...
11208         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11209         let gdbarch deal with.
11210         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11211         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11212         to dependency list.
11213         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11214         Alpha target register names.
11215         * alphabsd-nat.c: Likewise.
11216         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11217         Alpha target register names.  Make serveral routines static.
11218         (alpha_get_saved_register): New function.
11219         (alpha_abi_names): New.
11220         (process_note_abi_tag_sections): New function.
11221         (get_elfosabi): New function.
11222         (alpha_gdbarch_init): New function.
11223         (alpha_dump_tdep): New function.
11224         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11225
11226 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11227
11228         * frame.c (find_saved_register): Delete #ifdef
11229         HAVE_REGISTER_WINDOWS code.
11230         * config/sparc/tm-sparc.h: Update comments.
11231         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11232
11233 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11234
11235         * i960-tdep.c (i960_find_saved_register): New function.
11236         (i960_get_saved_register): New function.
11237         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11238         (i960_get_saved_register): Declare.
11239         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11240
11241 2002-04-20  David S. Miller  <davem@redhat.com>
11242
11243         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11244
11245 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11246
11247         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11248         instead of NUM_PSEUDO_REGS.
11249
11250 2002-04-20  David S. Miller  <davem@redhat.com>
11251
11252         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11253         GDB_MULTI_ARCH_PARTIAL
11254         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11255         define, let tm-sp64.h do it.
11256
11257 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11258
11259         * frame.c (find_saved_register): Avoid a NULL pointer
11260         dereference and actually walk the frame list.
11261
11262 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11263
11264         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11265         sorted in most most-recent-used order.  Document.
11266         * gdbarch.h, gdbarch.c: Regenerate.
11267
11268 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11269
11270         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11271         instead of ->prev.
11272         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11273         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11274         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11275         instead of ->prev.
11276
11277 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11278
11279         Fix PR gdb/471.
11280         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11281         (build_builtin_type_vec128): Ditto.
11282         (append_composite_type_field): Fix calculation of type length in
11283         union case.
11284
11285 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11286
11287         * config/djgpp/README: Update.
11288
11289         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11290         compiler warnings.
11291
11292 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11293
11294         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11295         (alpha_setup_arbitrary_frame): ...to this.
11296         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11297         for alpha_setup_arbitrary_frame.
11298
11299 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11300
11301         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11302         * gdbarch.h, gdbarch.c: Regenerate.
11303
11304         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11305         * target.h (memory_breakpoint_from_pc): Update declaration.
11306         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11307
11308         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11309         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11310         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11311         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11312         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11313         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11314         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11315         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11316         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11317         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11318         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11319         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11320
11321         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11322         const pointer.
11323         * monitor.c (monitor_insert_breakpoint): Ditto.
11324         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11325
11326         * config/mcore/tm-mcore.h: Update copyright.
11327         * mem-break.c: Ditto.
11328         * xstormy16-tdep.c: Ditto.
11329
11330 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11331
11332         * p-exp.y: Add precedence rule for '^' token.
11333         This removes the shift/reduce conflicts.
11334         Remove the comment concerning these shift/reduce conflicts.
11335
11336 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11337
11338         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11339         (registers_powerpc_nofp): New register set for processors
11340         without floating point unit.
11341
11342 2002-04-18  David S. Miller  <davem@redhat.com>
11343
11344         * MAINTAINERS: Add myself to write-after-approval.
11345
11346 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11347
11348         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11349
11350 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11351
11352         * rs6000-tdep.c (frame_initial_stack_address): Use
11353         frame_register_read to read the alloca_reg.
11354
11355 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11356
11357         * frame.c (find_saved_register): Find saved registers in the next
11358         not prev frame.
11359         Fix PR gdb/365.
11360
11361 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11362
11363         * gdbarch.sh (LANG): Set to ``c''.
11364
11365 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11366
11367         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11368
11369 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11370
11371         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11372         Update copyright.
11373
11374         * hpread.c (hpread_get_lntt): Add declaration.
11375         Also fix PR gdb/391.
11376
11377 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11378
11379         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11380         * aclocal.m4, configure: Re-generate.
11381         Fix PR gdb/391.
11382
11383 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11384
11385         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11386         instead of tm_print_insn.
11387
11388 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11389
11390         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11391
11392 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11393
11394         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11395         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11396         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11397
11398 2002-04-12  Don Howard  <dhoward@redhat.com>
11399
11400         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11401         max_user_call_depth.
11402         (init_cmd_lists): Initialize the new value;
11403         * cli/cli-script.c (execute_user_command): Limit the call depth of
11404         user defined commands.  This avoids a core-dump when user commands
11405         are infinitly recursive.
11406
11407 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11408
11409         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11410         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11411         from tdep struct instead of DEFAULT_LR_SAVE.
11412         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11413         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11414         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11415
11416 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11417
11418         * Remote.c: Spelling fix.
11419         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11420         If no symbol found for "sbrk", try "_sbrk".
11421         (make_output_phdrs): Use bfd_section_name.
11422         (gcore_copy_callback): Use bfd_section_name.
11423         * eval.c: Indentation fix-ups.
11424         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11425         in case it gets applied to an address that is already
11426         in the instruction space.
11427         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11428         * symfile.c: Fix indentation, long lines.
11429         * source.c: White space fix-up.
11430
11431 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11432
11433         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11434         * frame.c (frame_register_read): New function.  Return non-zero on
11435         success.
11436         (read_relative_register_raw_bytes_for_frame): Delete.
11437         (read_relative_register_raw_bytes): Delete.
11438         * frame.h (frame_register_read): Declare.
11439         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11440         * sh-tdep.c: Ditto.
11441         * infcmd.c (do_registers_info): Ditto.
11442         * hppa-tdep.c: Ditto.
11443         * rs6000-tdep.c: Ditto.
11444         * h8500-tdep.c: Ditto.
11445         * mips-tdep.c: Ditto.
11446         * h8300-tdep.c: Ditto.
11447         * z8k-tdep.c: Ditto.
11448
11449 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11450
11451         From Jimi X <jimix@watson.ibm.com>:
11452         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11453         64-bit SysV ABI.
11454
11455 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11456
11457         From Jimi X <jimix@watson.ibm.com>:
11458         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11459         bfd info.
11460
11461 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11462
11463         From Jimi X <jimix@watson.ibm.com>:
11464         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11465         register sets for these processor variants.
11466
11467 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11468
11469         * regformats/reg-ppc.dat: Support FPSCR.
11470
11471 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11472
11473         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11474         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11475         Add fpscr as an invalid/unfetchable register.
11476         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11477         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11478         (fill_fpregset): Add support for register fpscr.
11479         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11480         (fill_gregset): Account for the fact that register ``mq'' might
11481         not exist.
11482         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11483         (registers_power): Add fpscr to register set at slot 71.
11484         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11485         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11486
11487 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11488
11489         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11490         * configure: Regenerate.
11491         * config.in: Regenerate.
11492         * acconfig.h: Add define for _SYSCALL32.
11493         * core-sol2.c: Remove #define _SYSCALL32.
11494         * solib-legacy.c: Remove #define _SYSCALL32.
11495
11496 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11497
11498         * stack.c (select_frame): Cleanup internal error message, do not
11499         use %p.
11500
11501 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11502
11503         * stack.c (select_frame): Check that selected_frame and the
11504         specified level are as expected.
11505         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11506         Update copyright.
11507         * frame.h (struct frame_info): Add field `level'.  Update
11508         copyright.
11509         Work-in-progress PR gdb/464.
11510
11511 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11512
11513         * maint.c (maint_print_section_info): Rename print_section_info.
11514         (print_bfd_section_info, print_objfile_section_info): Update.
11515         * inferior.h (struct gdbarch): Add opaque declaration.
11516         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11517         * gdbarch.h: Regenerate.
11518
11519 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11520
11521         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11522         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11523         (kernel_u_size): Added.
11524         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11525         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11526
11527 2002-04-04  Jim Ingham  <jingham@apple.com>
11528
11529        * valarith.c (find_size_for_pointer_math): New function, either returns
11530        the size for a pointer's target, returns 1 for void *, or errors for
11531        incomplete types.
11532        (value_add, value_sub): use find_size_for_pointer_math.
11533
11534 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11535
11536         * linux-low.c (linux_look_up_symbols): New hook.
11537         (linux_target_ops): Add linux_look_up_symbols.
11538         * remote-utils.c (decode_address): New function.
11539         (look_up_one_symbol): New function.
11540         * server.c (handle_query): Call target look_up_symbols hook.
11541         * server.h (look_up_one_symbol): Add prototype.
11542         * target.h (struct target_ops): Add look_up_symbols hook.
11543
11544 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11545
11546         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11547         override FP_REGNUM with frame->fp.  Update copyright.
11548         * parse.c (num_std_regs, std_regs): Delete.
11549         (target_map_name_to_register): Do not search std_regs.  Update
11550         function description.
11551         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11552         declarations.  Update copyright.
11553         Fix PR gdb/251.
11554
11555 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11556
11557         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11558         after the last symbol in a block.
11559
11560 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11561
11562         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11563         is non zero as a found symbol.
11564
11565 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11566
11567         * findvar.c: Include "builtin-regs.h".
11568         (value_of_register): Call value_of_builtin_reg when applicable.
11569         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11570         (target_map_name_to_register): Call
11571         builtin_reg_map_name_to_regnum.
11572         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11573         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11574         (builtin_regs_h): Define.
11575         (builtin-regs.o): New target.
11576         (findvar.o): Add $(builtin_regs_h).
11577         * builtin-regs.c, builtin-regs.h: New files.
11578         * std-regs.c: New file.
11579         Partial fix for PR gdb/251.
11580
11581 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11582
11583         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11584         it's no longer required.
11585
11586 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11587
11588         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11589
11590 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11591
11592         From Jimi X <jimix@watson.ibm.com>:
11593         * rs6000-tdep.c (rs6000_software_single_step): Use
11594         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11595         and size.  Use target_insert_breakpoint() and
11596         target_remove_breakpoint() to insert and remove breakpoints
11597         instead of explicit memory reads and writes.
11598
11599 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11600
11601         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11602         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11603         ELF_OBJECT_FORMAT ifdef.
11604
11605 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11606
11607         From Jimi X <jimix@watson.ibm.com>:
11608         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11609
11610 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11611
11612         From Jimi X <jimix@watson.ibm.com>:
11613         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11614         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11615
11616 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11617
11618         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11619         s/asprintf/xasprintf/.
11620         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11621
11622 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11623
11624         I believe Jeff Law denies responsability for this one:
11625         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11626         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11627         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11628         Work-around for PR gdb/366.
11629
11630 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11631
11632         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11633         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11634         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11635
11636 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11637
11638         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11639         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11640         information.
11641
11642 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11643
11644         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11645         maintainer.
11646
11647 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11648
11649         * README (Reporting Bugs in GDB): Document the bug web page as the
11650         prefered way of submitting bugs.
11651         Fix PR gdb/402.
11652
11653 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11654
11655         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11656         -1.  Update comment.
11657         * gdbarch.h, gdbarch.c: Re-generate.
11658
11659 2002-04-07  Andreas Schwab  <schwab@suse.de>
11660
11661         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11662         buffer to regcache_collect.
11663
11664 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11665
11666         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11667         * gdbarch.c, gdbarch.h: Re-generate.
11668
11669 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11670
11671         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11672         declaration.  Fix -Werror.
11673
11674 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11675
11676         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11677         * gdbarch.c: Regenerate.
11678
11679 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11680
11681         * breakpoint.c (clear_command): Rewrite middle section to
11682         combine two loops with identical control conditions.
11683         Add a cleanup to eliminate a memory leak.
11684         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11685
11686 2002-04-05  H.J. Lu  (hjl@gnu.org)
11687
11688         * solib-svr4.c (bkpt_names): Add "__start".
11689
11690 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11691
11692         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11693         as test for 64 bit target.
11694
11695 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11696
11697         * h8500-tdep.c (h8500_write_fp): Delete function.
11698         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11699         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11700         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11701         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11702         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11703         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11704         (s390_write_fp):
11705         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11706         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11707         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11708         (d10v_write_fp): Delete function.
11709         * inferior.h (write_fp, generic_target_write_fp): Delete
11710         declarations.
11711         * regcache.c (generic_target_write_fp): Delete function.
11712         (write_fp): Delete function.
11713         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11714         * gdbarch.h, gdbarch.c: Regenerate.
11715         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11716         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11717         (sparc64_write_fp): Delete declaration.
11718         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11719         (h8500_write_fp): Delete declaration.
11720
11721 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11722
11723         * sparc-tdep.c (sparc64_write_fp): Delete.
11724         (sparc_push_dummy_frame): Replace write_fp call with code to store
11725         the FP directly.
11726         (sparc_gdbarch_init): Do not initialize write_fp.
11727
11728 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11729
11730         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11731         clause.
11732
11733 2002-03-29  Jim Blandy  <jimb@redhat.com>
11734
11735         * stack.c (get_selected_block): Add new argument `addr_in_block',
11736         used to return the exact code address we used to select the block,
11737         not just the block.
11738         * blockframe.c (get_frame_block, get_current_block): Same.
11739         * frame.h (get_frame_block, get_current_block,
11740         get_selected_block): Update declarations.
11741         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11742         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11743
11744 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11745
11746         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11747         warning message.
11748
11749 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11750
11751         * utils.c (xfullpath): New function.
11752         * defs.h (xfullpath): Add declaration.
11753         * source.c (openp): Use xfullpath in place of gdb_realpath to
11754         avoid resolving the basename part of filenames when the
11755         associated file is a symbolic link. This fixes a potential
11756         inconsistency between the filenames known to GDB and the
11757         filenames it prints in the annotations.
11758         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11759         to be able to match a filename with either the real filename, or
11760         the name of any symbolic link to this file.
11761         (lookup_partial_symtab): Ditto.
11762
11763 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11764
11765         * breakpoint.c: Add support for hardware breakpoints in overlays.
11766         (overlay_events_enabled): New state variable.
11767         (insert_breakpoints): Use overlay_events_enabled to decide
11768         whether to attempt to set a breakpoint at the overlay load addr.
11769         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11770         (remove_breakpoint): Use overlay_events_enabled to decide
11771         whether breakpoints need to be removed from overlay load addr.
11772         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11773         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11774         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11775         disable_overlay_breakpoints): Update overlay_events_enabled.
11776
11777 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11778
11779         * dwarf2read.c (struct function_range): New.
11780         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11781         (check_cu_functions): New.
11782         (read_file_scope): Initialize global function lists.
11783         Call dwarf_decode_line after processing children.
11784         (read_func_scope): Add to global function list.
11785         (dwarf_decode_lines): Call check_cu_functions everywhere
11786         record_line is called.  Call record_line with a linenumber
11787         of 0 to mark sequence ends.
11788
11789 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11790
11791         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11792         change sync with glibc.
11793
11794 2002-04-03  Jim Blandy  <jimb@redhat.com>
11795
11796         * configure.in: Call AC_C_INLINE.
11797         * configure: Regenerated.
11798
11799 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11800
11801         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11802         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11803
11804 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11805
11806         * NEWS: Mention gcore support on FreeBSD/i386.
11807
11808         * fbsd-proc.c: New file.
11809         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11810         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11811
11812         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11813         while statement.
11814
11815 2002-03-29  Jim Blandy  <jimb@redhat.com>
11816
11817         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11818         unescaped newlines in string literals, but newer ones don't.  So
11819         escape them.
11820
11821 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11822             Andrew Cagney <cagney@redhat.com>
11823
11824         * cli/cli-dump.c: New file.  Dump memory to file,
11825         restore file to memory.
11826         * cli/cli-dump.h: New file.
11827         * Makefile.in: Add rules, dependencies for cli-dump.o.
11828         * NEWS: Mention new commands.
11829
11830 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11831
11832         * symfile.c (symbol_file_add): Move test for null symbols to later.
11833
11834 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11835
11836         From veksler at il.ibm.com:
11837         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11838         the xstrduped original path.
11839         Fix PR gdb/417.
11840
11841 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11842
11843         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11844         * infcmd.c (_initialize_infcmd): Ditto.
11845         * language.c (_initialize_language): Ditto.
11846         * symfile.c (_initialize_symfile): Ditto.
11847         * top.c (_init_main): Ditto.
11848         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11849
11850 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11851
11852         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11853         vector registers handling.
11854         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11855         fields of frame data.
11856         (frame_get_saved_regs): Fill in information for AltiVec registers.
11857
11858 2002-03-27  Jim Blandy  <jimb@redhat.com>
11859
11860         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11861         a function; leave this macro here to invoke that function.
11862         (symbol_init_mangled_name): Declaration for that function.
11863         * symtab.c (symbol_init_mangled_name): New function.
11864
11865 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11866
11867         * valarith.c: Replace strerror with safe_strerror.
11868         * tracepoint.c: Ditto.
11869         * lin-lwp.c: Ditto.
11870         * go32-nat.c: Ditto.
11871         * inflow.c: Ditto.
11872         * gnu-nat.c: Ditto.
11873
11874 2002-03-27  Andreas Schwab  <schwab@suse.de>
11875
11876         * event-top.c (command_line_handler): Remove useless if.
11877
11878 2002-03-27  Andreas Jaeger  <aj@suse.de>
11879
11880         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11881         comment.
11882
11883 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11884
11885         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11886         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11887         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11888         (x86_64_linux_dr_get_status, supply_gregset),
11889         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11890         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11891         (x86_64_register_info_table): Add.
11892         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11893         (x86_64_register_raw_size, x86_64_register_virtual_type),
11894         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11895         general x86_64_register_info_table.
11896         (i386_gdbarch_init): gdbarch_register_bytes is now set
11897         dynamicaly during initialization.
11898         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11899         * gdbserver/linux-x86-64-low.c: Ditto.
11900
11901 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11902
11903         * gdbserver/server.c (main): Call target_signal_to_host_p
11904         and target_signal_to_host on signals received from the remote.
11905         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11906         target_signal_from_host on signals sent to the remote.
11907         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11908         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11909
11910 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11911
11912         * signals/signals.c: Include "server.h" in gdbserver build.
11913         (target_signal_from_name): Don't use STREQ.
11914         (_initialize_signals): Likewise.  Don't include function in
11915         gdbserver build.
11916
11917 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11918
11919         * signals.c: Moved to...
11920         * signals/signals.c: Here.
11921         * Makefile (signals.o): Update.
11922
11923 2002-03-26  Jeff Law (law@redhat.com)
11924
11925         * somread.c (som_symtab_read): Remove some commented out code and
11926         updated related comments.  Do not set the minimal symbol table to
11927         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11928         in a dynamic executable.
11929         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11930         where we are unable to find the minimal symbol for the given
11931         PC value.
11932
11933 2002-03-25  Jeff Law (law@redhat.com)
11934
11935         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11936
11937 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11938
11939         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11940
11941 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11942
11943         * command.h: Update copyright.
11944         (struct cmd_list_element): Replace definition with opaque
11945         declaration.
11946         (enum cmd_types): Document that it will eventually be moved to
11947         cli/cli-decode.h
11948         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11949         (MALLOCED_REPLACEMENT): Delete macro.
11950         * Makefile.in (cli_decode_h): Add $(command_h).
11951         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11952         * top.c: Include "cli/cli-decode.h".
11953         * completer.c: Include "cli/cli-decode.h".
11954         * maint.c: Include "cli/cli-decode.h".
11955         * cli/cli-decode.h: Include "command.h".
11956         (enum command_class): Delete.
11957         (enum cmd_types): Comment out.
11958         (enum cmd_auto_boolean): Delete.
11959         (enum var_types): Delete.
11960
11961 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11962
11963         * cli/cli-decode.c: Include "gdb_assert.h".
11964         (add_set_or_show_cmd): New static function.
11965         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11966         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11967         all fields, such as func, from the set command.
11968
11969 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11970
11971         * MAINTAINERS (sh-elf): Change warning flag to -w.
11972
11973 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11974
11975         * defs.h (error): Add printf format attribute.
11976         * thread-db.c (thread_from_lwp): Fix error format string.
11977         * stack.c (parse_frame_specification): Ditto.
11978         * cli/cli-decode.c (undef_cmd_error): Ditto.
11979         * scm-lang.c (scm_lookup_name): Ditto.
11980         * tracepoint.c (trace_error): Ditto.
11981         * remote-utils.c (usage): Ditto.
11982         * remote.c (compare_sections_command): Ditto.
11983         Fix PR gdb/328.
11984
11985 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11986
11987         * gdbtypes.c (append_composite_type_field): New function.
11988         (init_composite_type): New function.
11989         * gdbtypes.h (append_composite_type_field): Declare.
11990         (init_composite_type): Ditto.
11991
11992 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11993
11994         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11995         function.
11996         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11997         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11998         structure returning convention for SYSV ABI case, but not
11999         for GNU/Linux, FreeBSD, or NetBSD.
12000
12001 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12002
12003         * symtab.h (lookup_block_symbol): Add mangled_name argument
12004         to prototype.
12005
12006         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12007         with new mangled_name argument.
12008         * linespec.c (decode_line_1): Likewise.
12009         * valops (value_of_this): Likewise.
12010         * symtab.c (lookup_transparent_type): Likewise.
12011         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12012         (lookup_symbol): If we are given a mangled name, pass it down
12013         to lookup_symbol_aux.
12014         (lookup_block_symbol): If we are given a mangled name to check
12015         against, only return symbols which match it.
12016
12017 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12018
12019         * win32-nat.c (child_create_inferior): Check for proper shell to use
12020         here, in case the user changes it on the fly.
12021         (_initialize_inftarg): Remove shell path considerations.
12022
12023 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12024
12025         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12026         for gdbarch_max_register_raw_size and max_register_virtual_size.
12027         Adjust copyright year.
12028
12029 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12030
12031          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12032          in a function to cover the entire beginning of the function
12033          as well if it does not already.
12034
12035 2002-03-21  Tom Rix  <trix@redhat.com>
12036
12037         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12038         (rs6000_ptrace64): Renamed from ptrace64.
12039
12040 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12041
12042         * gdbserver/remote-utils.c (remote_open): Don't call
12043         getprotobyname, we're all using TCP here so just use
12044         IPPROTO_TCP.
12045         * gdbserver/gdbreplay.c (remote_open): Ditto.
12046
12047 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12048
12049         * regcache.c (_initialize_regcache): No need to call
12050         build_regcache() at this time; it gets called whenever
12051         the gdbarch changes.
12052
12053 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12054
12055         * sparc-nat.c:  Include sys/param.h where possible.
12056
12057 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12058
12059         Fix PR gdb/422.
12060         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12061         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12062         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12063         complex types.
12064         * stabsread.c (rs6000_builtin_type): Likewise.
12065         (read_sun_floating_type): Likewise.
12066
12067 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12068
12069         * stabsread.c (read_member_functions): Remove skip code for duplicate
12070         constructor/destructor methods.  Use standard parsing for these
12071         methods and just do not chain them to the list of methods after
12072         parsing.
12073
12074 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12075
12076         * coffread.c: Remove redundant static declarations.  Replace
12077         occurrences of `PTR' with `void *'.
12078         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12079         * top.h (quit_cover): Likewise.
12080         * defs.h (catch_errors): Likewise.
12081
12082 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12083
12084         * defs.h (XMALLOC): Define.
12085         * gdb-events.sh (XMALLOC): Delete macro.
12086         * gdb-events.c, gdb-events.h: Regenerate.
12087         * gdbarch.sh (XMALLOC): Delete macro.
12088         * gdbarch.c: Regenerate.
12089         * serial.c (XMALLOC): Delete macro.
12090         * ui-file.c (XMALLOC): Ditto.
12091         * ser-unix.h (XMALLOC): Ditto.
12092         * sh-tdep.c (XMALLOC): Ditto.
12093         * ui-out.c (XMALLOC): Ditto.
12094         * utils.c (XMALLOC): Ditto.
12095         * i386-tdep.c (XMALLOC): Ditto.
12096         * gdb-events.c (XMALLOC): Ditto.
12097         * d10v-tdep.c (XMALLOC): Ditto.
12098         * cli-out.c (XMALLOC): Ditto.
12099
12100         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12101         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12102         * ui-file.c, ui-out.c: Ditto.
12103
12104 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12105
12106         * command.h (struct cmd_list_element): Add field context.
12107         (set_cmd_context, get_cmd_context): Declare.
12108         * cli/cli-decode.h: Ditto.
12109         * cli/cli-decode.c (get_cmd_context): New function.
12110         (set_cmd_context): New function.
12111         (add_cmd): Initialize context.
12112         Part of fixing PR gdb/145 and PR gdb/146.
12113
12114 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12115
12116         * cli/cli-decode.c (cmd_type): New function.
12117         * command.h (cmd_type): Declare.
12118         * infrun.c (set_schedlock_func): Call function cmd_type.
12119         * kod.c (kod_set_os): Call cmd_type.
12120         * cris-tdep.c (cris_version_update): Use function cmd_type.
12121         (cris_mode_update, cris_abi_update): Ditto.
12122
12123         * command.h: (execute_cmd_post_hook): Declare.
12124         (execute_cmd_pre_hook): Declare.
12125         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12126         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12127         functions. Execute pre/post hook while ensuring that afterwords
12128         hook_in is cleared.
12129         * top.c (execute_command): Use execute_cmd_post_hook, and
12130         execute_cmd_pre_hook to execute pre/post commands.
12131         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12132         hook_stop_stub.
12133         (hook_stop_stub): Call execute_cmd_pre_hook.
12134
12135 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12136
12137         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12138         set'' and this leads to a core dump.  Move xstrdup of
12139         operating_system to after check that it is not NULL.
12140
12141 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12142
12143         * kod.c (kod_set_os): Remove unnecessary check that
12144         ``command->type'' is set_cmd.
12145
12146         * valprint.c (set_input_radix): Use input_radix.
12147         (set_output_radix): Use output_radix.
12148         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12149         isn't reverted.
12150
12151 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12152
12153         * value.h (struct value): Delete field ``substring_addr''.  Change
12154         aligner fields to force_doublest_align, force_longest_align,
12155         force_core_addr_align and force_pointer_aligh.
12156
12157         * value.h (struct value): Fix typo in above change.
12158
12159 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12160
12161         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12162         to fix internal_error from ``maintenance print architecture''.
12163
12164 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12165
12166         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12167         for gcc versions after gcc-2.8.1.
12168
12169 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12170
12171         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12172         for method resolution.  Restore adjustment of ``this'' pointer after
12173         calling value_struct_elt, which was accidentally removed during the
12174         HP merge.
12175
12176 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12177
12178         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12179         value_of_register.
12180         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12181         get_saved_register.
12182         * value.h (value_of_register): Update.
12183
12184 2002-03-14  Richard Henderson  <rth@redhat.com>
12185
12186         * configure.in: Detect declaration for canonicalize_file_name.
12187         * utils.c (canonicalize_file_name): Declare, if needed.
12188         (gdb_realpath): Prefer realpath if available and usable.
12189         * config.in, configure: Rebuild.
12190
12191 2002-03-14  Richard Henderson  <rth@redhat.com>
12192
12193         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12194         a constant array bound.
12195
12196         * MAINTAINERS: Add myself to write-after-approval.
12197
12198 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12199
12200         * symfile.c (syms_from_objfile): Return immediately if no syms.
12201         (symbol_file_add): Return immediately if no syms.
12202         (find_sym_fns): Return immediately if no syms.
12203
12204 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12205
12206         * gdbserver/remote-util.c (remote_open): Print remote-side's
12207         IP address when remote debugging over the network.
12208
12209 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12210
12211         * config/sparc/fbsd.mh: Fix copyright.
12212         * config/sparc/fbsd.mt: Likewise.
12213
12214 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12215
12216         * MAINTAINERS: Fix typo in name of gdb warnings option.
12217         (x86-64): Fix formating so that this can be parsed by awk.
12218
12219 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12220
12221         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12222         * defs.h: Include "gdb/signals.h".
12223         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12224
12225 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12226
12227         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12228         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12229         from x86-64-tdep.h
12230
12231 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12232             Don Howard <dhoward@redhat.com>
12233
12234         * mips-tdep.c (ST0_FR): Define.
12235         (mips2_fp_compat): New function, temporarily disabled.
12236         (mips_read_fp_register_single): New function.
12237         (mips_read_fp_register_double): New function.
12238         (mips_print_register): Use them.
12239         (do_fp_register_row): Likewise.
12240
12241 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12242
12243         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12244         approval''.
12245
12246 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12247
12248         * stabsread.c (read_member_functions): Fix is_stub test for
12249         static member functions, improve comment.
12250
12251 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12252
12253         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12254         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12255         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12256         commands that set boolean values.
12257         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12258         (arm_rdi_resume): Always initialize PC.
12259         (arm_rdi_open): Don't use rslt as a boolean.
12260         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12261         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12262         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12263         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12264
12265 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12266
12267         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12268         * configure: Rebuilt.
12269
12270 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12271
12272         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12273         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12274
12275 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12276
12277         * cli/cli-decode.c (set_cmd_completer): New function.
12278         * command.h (set_cmd_completer): Declare.
12279         * cli/cli-decode.h (set_cmd_completer): Ditto.
12280
12281         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12282         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12283         * win32-nat.c (_initialize_inftarg): Ditto.
12284         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12285         * proc-api.c (_initialize_proc_api): Ditto.
12286         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12287         * source.c (_initialize_source): Ditto.
12288         * exec.c (_initialize_exec): Ditto.
12289         * solib.c (_initialize_solib): Ditto.
12290         * top.c (init_main): Ditto.
12291         * tracepoint.c (_initialize_tracepoint): Ditto.
12292         * symfile.c (_initialize_symfile): Ditto.
12293         * printcmd.c (_initialize_printcmd): Ditto.
12294         * infcmd.c (_initialize_infcmd): Ditto.
12295         * corefile.c (_initialize_core): Ditto.
12296
12297 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12298
12299         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12300
12301 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12302
12303         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12304
12305 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12306
12307         * NEWS: Update headings, 5.2 has branched.
12308
12309 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12310
12311         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12312         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12313         (register_addr, REGISTER_RAW_SIZE): Likewise.
12314         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12315         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12316
12317 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12318
12319         * MAINTAINERS (x86-64): Add myself.
12320         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12321         changed value_ptr -> struct value *
12322
12323 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12324
12325         * configure.host (sparc64-*-freebsd): Add.
12326         * configure.tgt: Likewise.
12327         * config/sparc/fbsd.mh: New file.
12328         * config/sparc/fbsd.mt: Likewise.
12329         * config/sparc/nm-fbsd.h: Likewise.
12330         * config/sparc/tm-fbsd.h: Likewise.
12331
12332 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12333
12334         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12335         regformats/reg-s390x.dat.
12336
12337 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12338
12339         * utils.c: Add FIXME explaining true/false problem.
12340
12341 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12342
12343         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12344
12345 2002-02-28  Michael Chastain  <mec@shout.net>
12346
12347         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12348
12349 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12350
12351         * gdbserver/linux-s390-low.c: New file.
12352         * regformats/reg-s390.dat: New file.
12353         * regformats/reg-s390x.dat: New file.
12354         * gdbserver/configure.srv: Add S/390.
12355         * gdbserver/Makefile.in: Add S/390.
12356         * configure.tgt: Enable gdbserver for S/390.
12357
12358 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12359
12360         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12361         first line of the doc string for "info dos", except at the end of
12362         the sentence, since the short help stops at the first period.
12363
12364 2002-02-28  Jason Merrill  <jason@redhat.com>
12365
12366         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12367
12368 2002-02-27  Fred Fish  <fnf@redhat.com>
12369
12370         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12371         comment (dumy -> dummy).
12372
12373 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12374
12375         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12376
12377 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12378
12379       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12380
12381 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12382
12383         * gdbserver/acconfig.h: New file.
12384         * gdbserver/i387-fp.c: New file.
12385         * gdbserver/i387-fp.h: New file.
12386         * gdbserver/linux-x86-64.c: New file.
12387         * regformats/reg-x86-64.dat: New file.
12388         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12389         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12390         * gdbserver/configure.in: Add support for regsets.
12391         * gdbserver/config.in: Regenerate.
12392         * gdbserver/configure: Regenerate.
12393         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12394         * gdbserver/linux-low.h: New file.
12395         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12396         for regsets.
12397         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12398         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12399         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12400         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12401         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12402         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12403         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12404         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12405         * gdbserver/regcache.c (supply_register): New function.
12406         (supply_register_by_name): New function.
12407         (collect_register): New function.
12408         (collect_register_by_name): New function.
12409
12410 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12411
12412         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12413         (config.status): Add configure.srv dependency.
12414         (server_h): Add config.h dependency.
12415
12416 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12417
12418         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12419         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12420         * gdbserver/configure.srv: Change i386-*-linux* to use
12421         reg-i386-linux.o.
12422
12423 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12424
12425         * x86-64-tdep.c: Re-indent.  Update copyright date.
12426
12427 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12428
12429         From Michal Ludvig <mludvig@suse.cz>:
12430         * x86-64-tdep.c (value.h): Delete.
12431         (gdb_assert.h): Include.
12432         (x86_64_register_convert_to_virtual,
12433         x86_64_register_convert_to_raw ): Add check which lets only
12434         floating-point values to be converted.
12435         (value_push): Delete.
12436         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12437         (i386_gdbarch_init): Number of register_bytes fixed.
12438
12439 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12440
12441         * MAINTAINERS: Add x86-64 target.
12442
12443 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12444
12445         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12446         * osfsolib.c (solib_map_sections): Ditto.
12447         * irix5-nat.c (solib_map_sections): Ditto.
12448         * corelow.c (gdb_check_format): Ditto.
12449         * symfile.c (symfile_bfd_open): Ditto.
12450         * solib.c (solib_map_sections): Ditto.
12451         Fix PR gdb/354.
12452
12453 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12454
12455         * remote.c (_initialize_remote): By default, disable ``e'' and
12456         ``E'' step out-of-range packets.
12457
12458 2002-02-26  Andreas Schwab  <schwab@suse.de>
12459
12460         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12461         m68k_linux_frame_saved_pc.
12462         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12463         in_sigtramp.
12464         (SIGCONTEXT_PC_OFFSET): Remove.
12465         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12466         m68k_linux_sigtramp_saved_pc): New functions.
12467         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12468         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12469         (UCONTEXT_PC_OFFSET): Define.
12470         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12471         non-RT and RT signal trampolines.
12472
12473 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12474
12475         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12476         (TARGET_NBPG, STACK_END_ADDR): Delete
12477         (VARIABLES_INSIDE_BLOCK): Delete.
12478
12479 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12480
12481         * utils.c (perror_with_name): Make string parameter constant.
12482         (print_sys_errmsg): Ditto.
12483         (query): Ditto.
12484         * defs.h (perror_with_name): Update.
12485         (print_sys_errmsg): Update.
12486         (query): Update.
12487
12488 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12489
12490         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12491         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12492
12493 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12494
12495         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12496         if it already matches the current architecture from the exec file.
12497         Include arch-utils.h for gdbarch_info_init prototype.
12498         * Makefile.in (rs6000-nat.o): Update dependencies.
12499
12500 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12501
12502         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12503          list of exported variables.
12504
12505 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12506
12507         * gdbserver/configure.srv: New file.
12508         * gdbserver/configure.in: Use configure.srv instead
12509         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12510         from it.
12511         * gdbserver/configure: Regenerated.
12512         * gdbserver/terminal.h: New file.
12513         * gdbserver/Makefile.in: Update for configure changes.  Remove
12514         more unneeded include paths.
12515
12516 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12517
12518         From wiz at danbala:
12519         * config/sparc/tm-sp64.h: Fix grammar and typos.
12520         Fix PR gdb/287.
12521
12522 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12523
12524         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12525         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12526         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12527         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12528         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12529         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12530         * s390-tdep.c: Ditto.
12531         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12532         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12533         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12534         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12535         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12536         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12537         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12538         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12539         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12540         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12541         Fix PR gdb/378.
12542
12543 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12544
12545         * lin-thread.c: Delete file.
12546         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12547         to gdb_proc_service.h.
12548         * configure: Re-generate.
12549
12550         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12551         * serial.c (serial_open): Delete check for "ocd".
12552         Fix PR gdb/349.
12553
12554         * Makefile.in (linux-thread.o): Delete target.
12555         * linux-thread.c: Delete file.
12556
12557         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12558         renamed SH files to be consistent.
12559
12560         * symtab.c (sort_search_symbols): Use xfree.
12561
12562 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12563
12564         * arm-linux-tdep.c (arm_linux_init_abi): Register
12565         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12566         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12567         definition with undef, since we don't want the sysvr4 definition.
12568         (SKIP_TRAMPOLINE_CODE): Likewise.
12569
12570 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12571
12572         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12573
12574         * configure.in: (AC_CHECK_FUNCS) Added test for
12575         canonicalize_file_name Regenerated.
12576         * config.in, configure: Regenerated.
12577         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12578         defined use canonicalize_file_name.
12579
12580 2002-02-23  Michael Chastain  <mec@shout.net>
12581
12582         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12583
12584 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12585
12586         * README: Remove references to cygnus.com.
12587         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12588         dot com'' form.  Remove references to cygnus.com and sourceware.
12589
12590 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12591
12592         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12593         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12594         1003.1-2001 no longer allows "head -1".
12595         * gdb/Makefile.in (version.c): Likewise.
12596         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12597         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12598         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12599
12600 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12601
12602         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12603         * command.h (cmd_cfunc_eq): Declare.
12604         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12605
12606         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12607         ``struct cmd_list_element *''.
12608         * cli/cli-cmds.c (is_complete_command): Update.  Use
12609         cmd_cfunc_eq.
12610         * top.c (execute_command): Pass the command to
12611         is_complete_command.
12612         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12613
12614 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12615
12616         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12617         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12618         architecture defines.
12619         * s390-tdep.c (s390_gdbarch_init): Likewise.
12620
12621 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12622
12623         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12624         (arm_linux_push_arguments): Likewise.
12625         (arm_linux_init_abi): Register them.  Also register linux-specific
12626         call_dummy_words.
12627         (find_minsym_and_objfile): Use strcmp, not STREQ.
12628         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12629         (arm_linux_call_dummy_words): Delete declaration.
12630         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12631         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12632         declarations.
12633         (LOWEST_PC): Delete.
12634
12635 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12636
12637         * maint.c (print_section_info): Do not prepend `0x' to filepos
12638         output, it will be handled by local_hex_string_custom.
12639
12640 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12641
12642         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12643         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12644         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12645
12646 2002-02-22  Jim Blandy  <jimb@redhat.com>
12647
12648         Indicate that the bcache functions don't change the strings
12649         they're passed.
12650         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12651         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12652
12653 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12654
12655         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12656
12657 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12658
12659         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12660         find the complete path to a loaded DLL.
12661
12662 2002-02-21  Fred Fish  <fnf@redhat.com>
12663
12664         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12665         that marks the end of the range of a function, enter a line number
12666         entry that has a line number of zero and a PC offset that matches
12667         the end of the function.  This starts a range of PC's for which no
12668         line number information is known.
12669         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12670         PC's for which no line number info is found (line number is zero)
12671         then we didn't find any valid line information.
12672         * symtab.h: Document use of zero line number entry.
12673
12674 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12675
12676         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12677         (have_ptrace_getvrregs): Define for run time checks.
12678         (gdb_vrregset_t): New type for Altivec register handling.
12679         (fetch_register, store_register): Fetch/store altivec register
12680         when needed.
12681         (fetch_altivec_register, store_altivec_register): New functions.
12682         (supply_vrregset, fill_vrregset): New functions.
12683         (fetch_altivec_registers, store_altivec_registers): New functions.
12684         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12685         registers as well.
12686
12687 2002-02-21  Jiri Smid  <smid@suse.cz>
12688
12689         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12690
12691 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12692
12693         * Makefile.in (armnbsd-nat.o): Update dependencies.
12694         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12695         supply the integer register set.
12696         (supply_fparegset): New function.  Similar for FPA registers.
12697         (fetch_regs, fetch_fp_regs): Use them.
12698         (fetch_core_registers): Likewise.
12699         (fetch_elfcore_registers): New function.
12700         (arm_netbsd_elfcore_fns): New core-file type specification.
12701         (_initialize_arm_netbsd_nat): Register it.
12702
12703 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12704
12705         * armnbsd-nat.c: Include gdbcore.h.
12706         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12707         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12708         'void' to declaration, to shut up ARI.
12709         (fetch_core_registers): Make static.  Rewrite using supply_register.
12710         (arm_netbsd_core_fns): New core-file type specification.
12711         (_initialize_arm_netbsd_nat): New function.
12712
12713 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12714
12715         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12716         value.
12717
12718 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12719
12720         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12721         fails.
12722
12723 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12724
12725         * jv-exp.y (parse_number): Change type of implicit longs
12726         to builtin_type_uint64.
12727
12728 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12729
12730         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12731         to be an integer instead of a `union wait'.
12732
12733 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12734
12735         * mips-linux-nat.c: Call the operating system GNU/Linux.
12736         * mips-linux-tdep.c: Likewise.
12737         * mips-tdep.c: Likewise.
12738
12739 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12740
12741         Fix PR gdb/265.
12742         * jv-exp.y (parse_number): Handle 64-bit integers.
12743
12744 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12745
12746         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12747         AC_STDC_HEADERS to AC_HEADER_STDC.
12748         * gdbserver/configure: Regenerated.
12749
12750 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12751
12752         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12753         is defined.
12754         * sparc-tdep.c (get_longjmp_target): Likewise.
12755
12756 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12757
12758         * News: Add news about ARM and Multi-arch.  Mention the new target
12759         arm*-*-netbsd*.
12760
12761 2002-02-19  Jim Blandy  <jimb@redhat.com>
12762
12763         * stabsread.c (error_type_complaint): Improve error message.
12764
12765 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12766
12767         * gdbserver/README: Update documentation.
12768         * gdbserver/configure.in: Update configury to match documentation.
12769         * gdbserver/Makefile.in: Likewise.
12770         * gdbserver/configure: Regenerated.
12771         * gdbserver/aclocal.m4: New file, generated by aclocal.
12772         * gdbserver/config.in: New file, generated by autoheader.
12773
12774 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12775
12776         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12777         armnbsd-nat.c.
12778
12779 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12780
12781         * arm-tdep.h (enum arm_float_model): New enum.
12782         (struct gdbarch_tdep): Add fp_model.
12783         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12784         up floating-point conversions until we know the floating-point model
12785         in use by the inferior.  Don't complain about being unable to
12786         determine the ABI of the inferior when we don't have one.
12787         (arm_extract_return_value): Support different floating-point models.
12788         (arm_store_return_value): Likewise.
12789         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12790         ARM_FLOAT_SOFT.
12791         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12792
12793 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12794
12795         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12796         of ``current_gdbarch''.
12797
12798 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12799
12800         * armnbsd-nat.c : ANSIfy all function declarations.
12801         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12802         (fetch_inferior_registers): Re-implement in terms of above.
12803         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12804         (store_inferior_registers): Re-implement in terms of above.
12805
12806 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12807
12808         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12809         kernel.
12810         * arm-linux-tdep.c: Likewise.
12811         * config/arm/tm-linux.h: Likewise.
12812
12813 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12814
12815         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12816         * config/arm/nbsd.mt (TM_FILE): Delete.
12817         * config/arm/tm-nbsd.h: Delete.
12818
12819 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12820
12821         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12822         Initialize CALL_DUMMY_LENGTH.
12823
12824 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12825
12826         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12827         function.
12828         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12829         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12830         defines one thing and that is incorrect for this port.
12831         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12832
12833 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12834
12835         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12836
12837 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12838
12839         * win32-nat.c (display_selector): New function. Displays information
12840         about the information returned by GetThreadSelectorEntry API function.
12841         (display_selectors): New function. Displays the infomation of
12842         the selector given as argument, or of CS, DS ans FS selectors
12843         if no argument is given.
12844         ( _initialize_inftarg): Add "w32" as info prefix command.
12845         Add "info w32 selector" as command calling display_selectors.
12846
12847 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12848
12849         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12850         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12851         if not defined.
12852
12853 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12854
12855         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12856
12857 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12858
12859         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12860         (arm_fix_call_dummy): Call it.
12861         (arm_call_dummy_breakpoint_offset): Delete.
12862         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12863         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12864
12865 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12866
12867         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12868         Default to func_frame_chain_valid.
12869         * gdbarch.h, gdbarch.c: Re-generate.
12870         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12871
12872 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12873
12874         * ppc-linux-nat.c: Update copyright.
12875         (fetch_register, store_register): Add tid parameter, don't compute
12876         tid here.
12877         (fetch_ppc_registers, store_ppc_registers): Add tid
12878         parameter. Pass it along to callees.
12879         (fetch_inferior_registers, store_inferior_registers): Compute tid
12880         here, and pass it to calleed functions.
12881         (fill_gregset, supply_fpregset): Clean up formatting.
12882
12883 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12884
12885         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12886         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12887
12888 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12889
12890         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12891         * gdbarch.c gdbarch.h: Regenerate.
12892         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12893         function.
12894         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12895         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12896         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12897
12898         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12899         * arm-tdep.c (arm_get_longjmp_target): New function.
12900         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12901         this to a positive value register arm_get_longjmp_target as the
12902         longjmp handler.
12903         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12904         (arm_linux_init_abi): Set up longjmp description in tdep.
12905         * armnbsd-nat.c (get_longjmp_target): Delete.
12906         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12907         description in tdep.
12908         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12909         (get_longjmp_target): Delete declaration.
12910         (GET_LONGJMP_TARGET): Delete.
12911         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12912         (GET_LONGJMP_TARGET): Delete.
12913
12914 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12915
12916         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12917         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12918         of ``current_gdbarch''.
12919
12920 2002-02-17  Tom Tromey  <tromey@redhat.com>
12921
12922         * cli/cli-cmds.c (compare_strings): New function.
12923         (complete_command): Only print each unique item once.
12924         * completer.h (complete_line): Declare.
12925         * completer.c (complete_line): New function.
12926         (line_completion_function): Use it.
12927
12928 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12929
12930         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12931         * gdbarch.h, gdbarch.c: Re-generate.
12932
12933 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12934
12935         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12936
12937 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12938
12939         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12940         * valops.c (value_arg_coerce): Don't take the address of a reference
12941         to convert an argument to a reference.
12942
12943 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12944
12945         * win32-nat.c (get_image_name): New function.
12946         (handle_load_dll): Use get_image_name function.
12947         (get_child_debug_event): Avoid registering debug events until possibly
12948         execed process is started.
12949         (child_create_inferior): Allow invocation via shell so that command
12950         line redirection, etc.  works ok.
12951         (_initialize_inftarg): Add new command: "set shell" to control whether
12952         a shell is used to start a process.
12953
12954 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12955
12956         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12957         instead of find_register_by_number.
12958         (cannot_store_register): Likewise.
12959
12960 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12961
12962         * dwarf2read.c: Replace fprintf (stderr, ...) by
12963         fprintf_unfiltered (gdb_stderr, ...).
12964
12965 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12966
12967         * gdbserver/gdbserver.1: Document --attach.
12968
12969 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12970
12971         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12972         descriptions.
12973         * arm-tdep.c (arm_default_arm_le_breakpoint)
12974         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12975         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12976         traditional breakpoint defines.
12977         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12978         (arm_gdbarch_init): Initialize new breakpoint variables.
12979         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12980         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12981         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12982         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12983         code out to ...
12984         (arm_netbsd_init_abi_common): ... here; new function.
12985         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12986         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12987         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12988         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12989
12990 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12991
12992         * arm-tdep.h (enum arm_abi): New enum.
12993         (struct gdbarch_tdep): New structure.
12994         (LOWEST_PC): Provide a default.
12995         (arm_gdbarch_register_os_abi): Declare new function.
12996         * arm-tdep.c (arm_abi_names): New array.
12997         (process_note_abi_tag_sections): New function.
12998         (get_elfosabi): New function.
12999         (arm_gdbarch_register_os_abi): New function.
13000         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13001         support for that ABI has been built in, then call the appropriate
13002         configuration routine.  Use gdbarch_num_regs() to get the number
13003         of registers.
13004         (arm_dump_tdep): New function.
13005         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13006         place-holder functions.
13007         (_initialize_arm_tdep): Register them.
13008         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13009
13010         * armnbsd-tdep.c: New file.
13011         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13012         * config/arm/nbsd.mt (TDEPFILES): Add it.
13013         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13014
13015         * armnbsd-nat.c: Include regcache.h.
13016         * Makefile.in (armnbsd-nat.o): Update dependency list.
13017
13018         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13019
13020 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13021
13022         * gdbserver/Makefile.in: Fix typos in target rules.
13023
13024 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13025
13026         Fix part of PR gdb/267.
13027         * linespec.c (find_methods): Handle constructors specially for now.
13028
13029 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13030
13031         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13032         handling.
13033         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13034         standard_coerce_float_to_double().
13035
13036 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13037
13038         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13039         GDBINIT_FILENAME.
13040
13041 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13042
13043         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13044         find_variant_by_name, because it confuses the multiarch
13045         framework. Return NULL if there isn't an architecture with the
13046         user supplied name, instead of forcing a different one without
13047         recording the change with the multiarch machinery.
13048         (find_variant_by_name): Delete.
13049
13050 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13051
13052         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13053         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13054
13055 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13056
13057         * stack.c (print_frame_info_base): When calling
13058         print_frame_info_listing_hook, set current_source_symtab.
13059
13060 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13061
13062         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13063         and remove unused $(INCLUDE_DIR).
13064         Add regcache.c to OBS.
13065         Add generated register protocol files to clean target.
13066         Update dependencies for new objects, obsolete old target code.
13067
13068         * gdbserver/linux-low.c: Remove all platform-specific code to
13069         new files.  Remove various dead code.  Update to use regcache
13070         functionality.
13071         * gdbserver/remote-utils.c (fromhex): Add return statement
13072         to quiet warning.
13073         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13074         constant.
13075         (input_interrupt): Add integer parameter to match prototype
13076         of a signal handler.
13077         (outreg): Use register_data ().
13078         (prepare_resume_reply): Use gdbserver_expedite_regs.
13079         * gdbserver/server.c (main): Dynamically allocate own_buf because
13080         PBUFSIZ is no longer constant.  Use registers_to_string () and
13081         registers_from_string ().
13082         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13083         for error (), fatal (), and warning ().  Update definition of
13084         PBUFSIZ to use regcache functionality.  Add include guard.
13085         * gdbserver/utils.c (fatal): Add missing ``const''.
13086         (warning): New function.
13087
13088         * regformats/regdat.sh: Include "regcache.h" in generated files.
13089         Provide init_registers () function.
13090         * regformats/regdef.h: Add prototype for set_register_cache ().
13091         Add include guard.
13092
13093         * gdbserver/linux-arm-low.c: New file.
13094         * gdbserver/linux-i386-low.c: New file.
13095         * gdbserver/linux-ia64-low.c: New file.
13096         * gdbserver/linux-m68k-low.c: New file.
13097         * gdbserver/linux-mips-low.c: New file.
13098         * gdbserver/linux-ppc-low.c: New file.
13099         * gdbserver/linux-sh-low.c: New file.
13100
13101         * gdbserver/regcache.c: New file.
13102         * gdbserver/regcache.h: New file.
13103
13104         * gdbserver/low-linux.c: Removed obsolete file.
13105
13106 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13107
13108         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13109         * config/i386/linux.mt: Likewise.
13110         * config/ia64/linux.mt: Likewise.
13111         * config/m68k/linux.mh: Likewise.
13112         * config/powerpc/linux.mh: Likewise.
13113         * config/mips/linux.mt: Likewise.
13114
13115         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13116
13117         * config/i386/i386lynx.mh: Mark gdbserver variables
13118         as (currently) obsolete for this target.
13119         * config/i386/nbsd.mt: Likewise.
13120         * config/i386/nbsdelf.mt: Likewise.
13121         * config/m32r/m32r.mt: Likewise.
13122         * config/m68k/m68klynx.mh: Likewise.
13123         * config/m68k/nbsd.mt: Likewise.
13124         * config/m68k/sun3os4.mh: Likewise.
13125         * config/mips/vr5000.mt: Likewise.
13126         * config/ns32k/nbsd.mt: Likewise.
13127         * config/pa/hppabsd.mh: Likewise.
13128         * config/pa/hppaosf.mh: Likewise.
13129         * config/powerpc/nbsd.mt: Likewise.
13130         * config/rs6000/rs6000lynx.mh: Likewise.
13131         * config/s390/s390.mt: Likewise.
13132         * config/s390/s390x.mt: Likewise.
13133         * config/sparc/sparclynx.mh: Likewise.
13134         * config/sparc/sun4os4.mh: Likewise.
13135         * config/i386/x86-64linux.mt: Likewise.
13136         * config/sparc/linux.mh: Likewise.
13137
13138 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13139
13140         * configure.tgt: Configure gdbserver only for known working
13141         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13142         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13143         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13144         * configure: Regenerated.
13145
13146 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13147
13148         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13149
13150         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13151         (default_gcore_mach): Just return 0, work around a problem in bfd.
13152         (default_gcore_target): OK to return NULL if exec_bfd is null.
13153         (make_mem_sec): Use a cast, avoid a warning.
13154
13155         * procfs.c (find_memory_regions_callback): Use a cast instead of
13156         calling host_pointer_to_address (which complains if
13157         sizeof (host pointer) != sizeof (target pointer)).
13158         (procfs_make_note_section): Avoid overflow in psargs string.
13159
13160         * procfs.c (procfs_make_note_section): Make the default
13161         implementation return an error.
13162
13163 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13164
13165         * procfs.c (procfs_make_note_section): Provide a default definition
13166         (for alpha-dec-osf4.0f). Fix typos.
13167
13168 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13169
13170         * linux-proc.c: Add include of regcache.h.
13171         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13172
13173 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13174
13175         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13176         * memattr.c (create_mem_region): Disallow useless empty region.
13177         Regions are half-open intervals, so allow [A..B) [B..C) as
13178         non-overlapping.
13179
13180 2002-02-13  Michael Chastain <mec@shout.net>
13181
13182         * defs.h: Kill CONST_PTR.
13183         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13184         * c-lang.c (c_builtin_types): Likewise.
13185         * ch-lang.c (ch_builtin_types): Likewise.
13186         * f-lang.c (f_builtin_types): Likewise.
13187         * language.c (unknown_builtin_types): Likewise.
13188         * m2-lang.c (m2_builtin_types): Likewise.
13189         * p-lang.c (pascal_builtin_types): Likewise.
13190         * scm-lang.c (c_builtin_types): Likewise.
13191
13192 2002-02-13  Keith Seitz  <keiths@redhat.com>
13193
13194         * arm-tdep.h (arm_get_next_pc): Add declaration.
13195
13196 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13197
13198         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13199         with other related struct-returning functions.
13200         (arm_extract_struct_value_address): New function.
13201         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13202         initialize float_format, double_format and long_double_format as
13203         appropriate to the endianness of the target.
13204         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13205         (arm_use_struct_convention): Delete declaration.
13206         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13207
13208 2002-02-13  Keith Seitz  <keiths@redhat.com>
13209
13210         * defs.h (core_addr_to_string_nz): New function.
13211
13212 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13213
13214         Apply missing bits of 2002-01-15 patch.
13215         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13216         (fill_fpregset): Use i387_fill_fsave.
13217
13218 2002-02-12  Keith Seitz  <keiths@redhat.com>
13219
13220         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13221         (core_addr_to_string_nz): New function.
13222
13223 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13224
13225         * arm-linux-nat.c: Really include arm-tdep.h.
13226         * config/arm/tm-linux.h (struct type, struct value): Declare.
13227
13228 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13229
13230         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13231         (gcore section): Ifdef for Solaris and Unixware only.
13232         (procfs_do_thread_registers): Unixware needs one lwpstatus
13233         per thread (not one prstatus or pstatus).
13234         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13235         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13236         once before iterating over threads.
13237
13238 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13239
13240         * arm-tdep.h: New file.
13241         * arm-tdep.c: Include arm-tdep.h.
13242         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13243         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13244         (arm_print_float_info, arm_register_type, convert_to_extended)
13245         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13246         (arm_extract_return_value, arm_register_name): Make static.
13247         (arm_software_single_step): Similarly.  Fix types in declaration.
13248         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13249         (arm_store_return_value, arm_store_struct_return): New functions.
13250         (arm_gdbarch_init): Register the above functions.  Also register
13251         call_dummy_start_offset, sizeof_call_dummy_words,
13252         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13253         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13254         max_register_virtual_size, register_size.  Set up
13255         prologue_cache.saved_regs here, rather than ...
13256         (_initialize_arm_tdep): ... here.
13257         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13258         declarations.
13259         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13260         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13261         (arm_print_float_info, arm_register_type, convert_to_extended)
13262         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13263         (arm_extract_return_value, arm_register_name): Delete declarations.
13264         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13265         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13266         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13267         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13268         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13269         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13270         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13271         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13272         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13273         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13274         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13275         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13276         interface.
13277         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13278         * remote-rdi.c remote-rdp.c: Likewise.
13279         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13280         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13281         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13282         definition.
13283
13284         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13285         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13286         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13287         from non-ARM_ prefixed definitions.
13288         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13289         all uses of above.
13290         * remote-rdi.c remote-rdp.c: Likewise.
13291         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13292
13293 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13294
13295         * arm-tdep.c (arm_frameless_function_invocation)
13296         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13297         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13298         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13299         (arm_pop_frame, arm_get_next_pc): Make static.
13300         (arm_gdbarch_init): Register above in gdbarch structure.
13301         (arm_read_fp): Renamed from arm_target_read_fp.
13302         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13303         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13304         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13305         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13306         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13307         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13308         (arm_pc_is_thumb_dummy): Delete declarations.
13309         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13310         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13311         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13312         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13313
13314 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13315
13316         * symtab.c (compare_search_syms): New function.
13317         (sort_search_symbols): New function.
13318         (search_symbols): Sort symbols after searching rather than
13319         before.
13320
13321 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13322
13323         * NEWS: Linux -> GNU/Linux.
13324
13325 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13326
13327         * gdbarch.sh: For for level one methods, disallow a definition
13328         when partially multi-arched.  Add comments explaining rationale.
13329         * gdbarch.h: Re-generate.
13330
13331 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13332
13333         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13334         multi-arch partial.
13335
13336 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13337
13338         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13339         field.  Use diff -u.
13340         * gdbarch.c: Re-generate.
13341
13342 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13343
13344         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13345         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13346         partial.
13347
13348 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13349
13350         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13351         multi-arch partial.
13352         (PUSH_ARGUMENTS): Switch to using predefault.
13353         * gdbarch.c: Regenerate.
13354
13355 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13356
13357         * valops.c (PUSH_ARGUMENTS): Delete definition.
13358         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13359         partial.  Default to default_push_arguments.
13360         * gdbarch.h, gdbarch.c: Regenerate.
13361
13362 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * defs.h (throw_exception): Rename return_to_top_level.  Update
13365         comments.
13366         * utils.c (error_stream, internal_verror, quit): Ditto.
13367         * top.c (throw_exception, catcher): Ditto.
13368         * sparclet-rom.c (sparclet_load): Ditto.
13369         * remote.c (interrupt_query, minitelnet): Ditto.
13370         * remote-sds.c (interrupt_query): Ditto.
13371         * remote-mips.c (mips_error, mips_kill): Ditto.
13372         * ocd.c (interrupt_query): Ditto.
13373         * monitor.c (monitor_interrupt_query): Ditto.
13374         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13375         * target.h: Update comment.
13376
13377         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13378
13379 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13380
13381         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13382         default_double_format.
13383         * gdbarch.h, gdbarch.c: Re-generate.
13384         * findvar.c (floatformat_unknown): Delete variable definition.
13385         * doublest.h (floatformat_unknown): Delete variable declaration.
13386
13387 2002-02-09  Jim Blandy  <jimb@redhat.com>
13388
13389         * stabsread.c (read_type): Add code to parse Sun's syntax for
13390         prototyped function types.
13391
13392 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13393
13394         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13395         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13396
13397 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13398
13399         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13400         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13401         now _initialize_xcoffsolib gets called again and overrides the
13402         commands from solib.c in a native configuration.
13403
13404 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13405
13406         * doublest.c (store_typed_floating): Don't try to return a value.
13407         Fixes PR gdb/290.
13408
13409 2002-02-08  Jim Blandy  <jimb@redhat.com>
13410
13411         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13412         is prototyped and has no arguments, print its argument list as
13413         `(void)'.
13414
13415 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13416
13417         * MAINTAINERS (write-after-approval): Add myself.
13418         (paper-trail): I've escaped!
13419
13420 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13421
13422         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13423         changes.
13424         (_initialize_check_for_gdb_ini): Ditto.
13425
13426 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13427
13428         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13429         xaprintf -> xasprintf.
13430
13431 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13432
13433         * win32-nat.c: Remove use of printf and sprintf functions.
13434
13435 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13436
13437         * arm-tdep.c (arm_frame_chain_valid): Make static.
13438         (arm_push_arguments): Likewise.
13439         (arm_gdbarch_init): New function.
13440         (_initialize_arm_tdep): Call it.
13441         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13442         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13443         (FRAME_CHAIN_VALID): Delete.
13444         (arm_frame_chain_valid): Delete declaration.
13445         (PUSH_ARGUMENTS): Delete.
13446         (arm_push_arguments): Delete declaration.
13447         (CALL_DUMMY_P): Delete.
13448
13449 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13450             Corinna Vinschen  <vinschen@redhat.com>
13451
13452         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13453         on builtin float types.
13454
13455 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13456
13457         * utils.c: Include <curses.h> before "bfd.h".
13458         * tui/tui-hooks.c: Likewise.
13459         * tui/tui.c: Likewise.
13460         * tui/tuiCommand.c: Likewise.
13461         * tui/tuiData.c: Likewise.
13462         * tui/tuiDataWin.c: Likewise.
13463         * tui/tuiDisassem.c: Likewise.
13464         * tui/tuiGeneralWin.c: Likewise.
13465         * tui/tuiIO.c: Likewise.
13466         * tui/tuiLayout.c: Likewise.
13467         * tui/tuiRegs.c: Likewise.
13468         * tui/tuiSource.c: Likewise.
13469         * tui/tuiSourceWin.c: Likewise.
13470         * tui/tuiStack.c: Likewise.
13471         * tui/tuiWin.c: Likewise.
13472
13473 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13474
13475         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13476         to include space for pseudoregs as well. Update loops accordingly.
13477         (sh_fp_frame_init_saved_regs): Ditto.
13478         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13479
13480 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13481
13482         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13483         Add Richard Earnshaw to Arm maintainers.
13484
13485 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13486
13487         * defs.h (warning_begin): Delete declaration.
13488
13489         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13490         Delete macro.
13491
13492 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13493
13494         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13495         Logic bug, remove misplaced else.
13496
13497 2002-02-07  Klee Dienes  <klee@apple.com>
13498
13499         * fork-inferior.c (fork_inferior): Add '!' to the list of
13500         characters that need to be quoted when building a string for the
13501         shell.  Quote '!' specifically with a backslash, since CSH chokes
13502         when trying to evaluate "str!str".
13503
13504 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13505
13506         * rdi-share/host.h: Only provide a typedef for bool if it is not
13507         defined.
13508
13509 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13510
13511         * breakpoint.h (enum bptype): Add new overlay event bp type.
13512         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13513
13514         * breakpoint.c (create_internal_breakpoint): New function.
13515         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13516         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13517         (create_thread_event_breakpoint): Ditto.
13518         (create_solib_event_breakpoint): Ditto.
13519         (create_overlay_event_breakpoint): New function.
13520         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13521         (update_breakpoints_after_exec): Delete and re-initialize
13522         overlay event breakpoints after an exec.  Add FIXME comment
13523         about longjmp breakpoint.
13524         (print_it_typical): Ignore overlay event breakpoints.
13525         (print_one_breakpoint): Ditto.
13526         (mention): Ditto.
13527         (bpstat_what): Do not stop for overlay event breakpoints.
13528         (delete_breakpoint): Don't delete overlay event breakpoints.
13529         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13530         (breakpoint_re_set): Re-create overlay event breakpoint.
13531
13532         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13533         (overlay_manual_command): Disable overlay breakpoints.
13534         (overlay_off_command): Disable overlay breakpoints.
13535
13536 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13537
13538         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13539         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13540         to here from config/tm-arm.h.
13541         (coff_sym_is_thumb): Make static.
13542         (arm_elf_make_msymbol_special): New function.
13543         (arm_coff_make_msymbol_special): New function.
13544         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13545         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13546         (coff_sym_is_thumb): Delete declaration.
13547         (arm_elf_make_msymbol_special): Declare.
13548         (arm_coff_make_msymbol_special): Declare.
13549         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13550         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13551
13552 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13553
13554         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13555
13556 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13557
13558         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13559         * gdbarch.c gdbarch.h: Regenerate.
13560         * arch-utils.c (default_print_float_info): New function.
13561         * arch-utils.h (default_print_float_info): Prototype it.
13562         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13563         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13564         (PRINT_FLOAT_INFO): Document it.
13565
13566         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13567         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13568         (PRINT_FLOAT_INFO): Define.
13569
13570 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13571
13572         * win32-nat.c (_initialize_check_for_gdb_ini):
13573         Add typecast to sprintf argument to suppress a warning.
13574
13575 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13576
13577         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13578         to allow easier handling of pass state.
13579         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13580         that gives exception name and address.
13581         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13582         and set last_sig value to ourstatus->value.sig. Some missing
13583         exceptions added.
13584         (child_continue): Correctly report continue_status.
13585         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13586         TARGET_SIGNAL_0 (new default value).
13587         (child_resume): consider sig argument passed to decide if
13588         the exception should be passed to debuggee or not.
13589
13590 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13591
13592         * regcache.c (fetch_register): Call target_fetch_register
13593         only if we don't call FETCH_PSEUDO_REGISTER.
13594         (store_register): Call target_store_register only if we
13595         don't call STORE_PSEUDO_REGISTER.
13596
13597 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13598
13599         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13600         ELF_MAKE_MSYMBOL_SPECIAL.
13601         * gdbarch.c, gdbarch.h: Regenerate.
13602         * arch-utils.c (default_make_msymbol_special): New function.
13603         * arch-utils.h (default_make_msymbol_special): Export.
13604         * elfread.c (elf_symtab_read): Compile use of
13605         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13606         multiarched.
13607         * coffread.c (coff_symtab_read): Ditto, for
13608         COFF_MAKE_MSYMBOL_SPECIAL.
13609
13610 2002-02-05  Jim Blandy  <jimb@redhat.com>
13611
13612         * solib-svr4.c (svr4_truncate_ptr): New function.
13613         (svr4_relocate_section_addresses): Do the address arithmetic with
13614         the appropriate truncation for target addresses, even when
13615         CORE_ADDR is larger than a target address.
13616
13617 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13618
13619         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13620         to (int *).
13621
13622 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13623
13624         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13625         code.
13626
13627 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13628
13629         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13630
13631 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13632
13633         * gdbserver/linux-low.c: Remove unused include files.
13634
13635 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13636
13637         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13638         (read_inferior_memory): Use it.
13639         (write_inferior_memory): Likewise.
13640
13641 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13642
13643         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13644         grubbing through sys_errlist.
13645
13646 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13647
13648         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13649
13650 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13651         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13652
13653 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13654
13655         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13656         (do_sfunc, set_cmd_sfunc): New functions.
13657
13658         * command.h (struct cmd_list_element): Add field func.
13659         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13660         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13661         * cli/cli-decode.h: Ditto.
13662
13663         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13664         (help_all, help_cmd_list): Ditto.
13665         (find_cmd, complete_on_cmdlist): Ditto.
13666         * top.c (execute_command): Ditto.
13667
13668         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13669         function.sfunc.
13670
13671         * infcmd.c (notice_args_read): Fix function signature.
13672
13673         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13674         * cli/cli-decode.c (add_set_cmd): Ditto.
13675         * utils.c (initialize_utils): Ditto.
13676         * maint.c (_initialize_maint_cmds): Ditto.
13677         * infrun.c (_initialize_infrun): Ditto.
13678         * demangle.c (_initialize_demangler): Ditto.
13679         * remote.c (add_packet_config_cmd): Ditto.
13680         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13681         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13682         * proc-api.c (_initialize_proc_api): Ditto.
13683         * kod.c (_initialize_kod): Ditto.
13684         * valprint.c (_initialize_valprint): Ditto.
13685         * top.c (init_main): Ditto.
13686         * infcmd.c (_initialize_infcmd): Ditto.
13687         * corefile.c (_initialize_core): Ditto.
13688         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13689         * arch-utils.c (initialize_current_architecture): Ditto.
13690         (_initialize_gdbarch_utils): Ditto.
13691         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13692
13693         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13694         * wince.c (_initialize_inftarg): Ditto.
13695         * symfile.c (_initialize_symfile): Ditto.
13696         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13697         * language.c (_initialize_language): Ditto.
13698         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13699
13700 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13701
13702         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13703
13704 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13705
13706         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13707         Add rules for building the register data files.
13708
13709 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13710
13711         * regformats/regdat.sh: Add braces to the definition of
13712         expedite_regs_${arch}.
13713
13714 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13715
13716         * regformats/regdef.h (struct reg): Add comment describing the
13717         requirements for offset and size fields.
13718
13719 2002-02-04  Andreas Schwab  <schwab@suse.de>
13720
13721         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13722         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13723
13724 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13725
13726         * gdbarch.sh (copyright): Update years in generated header.
13727         (SMASH_TEXT_ADDRESS): Add rule.
13728         * gdbarch.h, gdbarch.c: Re-generate.
13729         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13730         * dbxread.c: Likewise.
13731         * dwarfread.c: Likewise.
13732         * elfread.c: Likewise.
13733         * somread.c: Likewise.
13734
13735         * arm-tdep.c (arm_smash_text_address): New function.
13736         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13737
13738 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13739
13740         Add support for hardware watchpoints on win32 native.
13741         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13742         CONTEXT_DEBUG_REGISTERS.
13743         (dr variable): New variable. Static array containing a local copy
13744         of debug registers.
13745         (debug_registers_changed): New variable.  Reflects when debug registers
13746         are changed and need to be written to inferior.
13747         (debug_registers_used): New variable. Reflects when any debug register
13748         was set, used when new threads are created.
13749         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13750         i386-nat code.
13751         (thread_rec): Set dr array if id is the thread of current_event .
13752         (child_continue, child_resume): Change the debug registers for all
13753         threads if debug_registers_changed.
13754         (child_add_thread): Change the debug registers if debug_registers_used.
13755         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13756         Link nm.h to new nm-cygwin.h file.
13757         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13758         of hardware registers.
13759
13760 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13761
13762         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13763         Restore behavour broken by 2002-01-20 Andrew Cagney
13764         <ac131313@redhat.com> IEEE_FLOAT removal.
13765
13766 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13767
13768         * c-valprint.c (c_val_print): Pass a proper valaddr to
13769         cp_print_class_method.
13770         * valops.c (search_struct_method): If there is only one method
13771         and args is NULL, return that method.
13772
13773 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13774
13775         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13776         accessing tag_name directly.
13777
13778 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13779
13780         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13781         of accessing tag_name directly.
13782
13783 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13784
13785         PR gdb/280
13786         * gdbtypes.c (replace_type): New function.
13787         * gdbtypes.h (replace_type): Add prototype.
13788         * stabsread.c (read_type): Use replace_type.
13789
13790 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13791
13792         * Makefile.in (memattr.o): Add missing dependencies rule.
13793
13794 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13795
13796         * breakpoint.c (break_at_finish_command): Really export.
13797         (break_at_finish_at_depth_command): Ditto.
13798         (tbreak_at_finish_command): Ditto.
13799         * hppa-tdep.c: Include completer.h.
13800         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13801         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13802
13803 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13804
13805         * utils.c (do_write): New function.
13806         (error_stream): Rewrite combining the code from error_begin and
13807         verror.
13808         (verror): Rewrite using error_stream.
13809         (error_begin): Delete function.
13810
13811 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13812
13813         * utils.c (error_begin): Make static.
13814         * defs.h (error_begin): Delete declaration.
13815
13816         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13817         (decode_line_1): Use cplusplus_error instead of error_begin,
13818         cplusplus_hint and return_to_top_level.
13819         * coffread.c (coff_symfile_read): Use error instead of error_begin
13820         and return_to_top_level.
13821         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13822
13823 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13824
13825         * language.h (type_error, range_error): Make string parameter
13826         constant.
13827         * language.c (warning_pre_print): Delete extern declaration.
13828         * dwarfread.c (warning_pre_print): Ditto.
13829         * language.c (type_error, range_error): Rewrite to use verror and
13830         vwarning instead of warning_begin.
13831
13832 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13833
13834         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13835         (set_ignore_count): Move misplaced comment back where it belongs.
13836
13837 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13838
13839         * command.h (NO_FUNCTION): Delete macro.
13840         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13841         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13842         * tracepoint.c (_initialize_tracepoint): Ditto.
13843         * cli/cli-decode.c (add_set_cmd): Ditto.
13844         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13845
13846 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13847
13848         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13849         Update ``this'' pointer when calling virtual functions.
13850
13851 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13852
13853         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13854         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13855
13856 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13857
13858         * regformats/reg-arm.dat: New file.
13859         * regformats/reg-i386.dat: New file.
13860         * regformats/reg-ia64.dat: New file.
13861         * regformats/reg-m68k.dat: New file.
13862         * regformats/reg-mips.dat: New file.
13863         * regformats/reg-ppc.dat: New file.
13864         * regformats/reg-sh.dat: New file.
13865         * regformats/regdef.h: New file.
13866         * regformats/regdat.sh: New file.
13867
13868 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13869
13870         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13871         (arm_frame_args_address, arm_frame_locals_address): New functions.
13872         (arm_frame_num_args): New function.
13873         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13874         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13875         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13876
13877 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13878
13879         * breakpoint.c (break_at_finish_command): Export.
13880         (break_at_finish_at_depth_command): Export.
13881         (tbreak_at_finish_command): Export.
13882         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13883         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13884         "txbreak" commands, which are HPPA specific.
13885
13886         * printcmd.c (disassemble_command): Remove an ancient
13887         artifact of an old merge.
13888
13889         * symfile.h (enum overlay_debugging_state):
13890         Define enum constant values for overlay mode.
13891         * symfile.c (overlay_debugging): Use enums instead of literals.
13892         (overlay_is_mapped, overlay_auto_command,
13893         overlay_manual_command): Ditto.
13894
13895         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13896         breakpoint_here_p, breakpoint_inserted_here_p,
13897         breakpoint_thread_match, bpstat_stop_status,
13898         describe_other_breakpoints, check_duplicates, clear_command):
13899         Coding standard fixes.
13900
13901         * target.c (target_xfer_memory): Add spaces, coding standard.
13902         (do_xfer_memory): Add missing line to trust-readonly
13903         code: check bfd SEC_READONLY flag for section.
13904
13905 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13906
13907         * PROBLEMS: Fix typo, 5.1->5.1.1.
13908
13909 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13910
13911         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13912         data symbols, since we search based on textlow and texthigh.
13913         (find_pc_sect_symtab): Likewise.
13914
13915 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13916
13917         * defs.h (vwarning): Declare.
13918         * utils.c (vwarning): New function.
13919         (warning): Call vwarning.
13920         (warning_begin): Delete function.
13921
13922         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13923         the warning message.
13924         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13925         warning_begin.
13926
13927 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13928
13929         * NEWS: Mention "set trust-readonly-sections" command.
13930         Mention generate-core-file command.
13931
13932 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13933
13934         * target.c: New command, "set trust-readonly-sections on".
13935         (do_xfer_memory): Honor the suggestion to trust readonly sections
13936         by reading them from the object file instead of from the target.
13937         (initialize_targets): Register command "set trust-readonly-sections".
13938
13939 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13940
13941         * parse.c (target_map_name_to_register): Simplify, search regs and
13942         pseudo-regs using a single loop.
13943
13944 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13945
13946         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13947
13948 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13949
13950         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13951         * config/i386/i386v42mp.mh: Add i387-nat.o .
13952         * i386v4-nat.c: Include i387-nat.h.
13953         (supply_fpregset): Use i387_supply_fsave.
13954         (fill_fpregset): Use i387_fill_fsave.
13955
13956 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13957
13958         * arm-tdep.c (arm_call_dummy_words): Define.
13959         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13960         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13961         (CALL_DUMMY_WORDS): Define.
13962         (arm_call_dummy_words): Declare.
13963         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13964         (arm_linux_call_dummy_words): Declare.
13965
13966 2002-01-30  Andreas Schwab  <schwab@suse.de>
13967
13968         * m68klinux-nat.c: Fix last change to use regcache_collect
13969         instead of referencing registers[] directly.
13970
13971 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13972
13973         * parse.c (target_map_name_to_register): Delete code wrapped in
13974         #ifdef REGISTER_NAME_ALIAS_HOOK.
13975
13976 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13977
13978         * regcache.c (legacy_read_register_gen): Need to be able to
13979         read pseudo-register as well as real register.
13980         (legacy_write_register_gen): Ditto.
13981
13982 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13983
13984         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13985         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13986         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13987         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13988         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13989         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13990         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13991         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13992         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13993         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13994         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13995         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13996         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13997         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13998         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13999         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14000         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14001         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14002         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14003         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14004
14005 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14006
14007         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14008         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14009         (initialize_current_architecture): Update target_byte_order using
14010         information from BFD.
14011         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14012         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14013
14014 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14015
14016         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14017         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14018
14019         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14020         #ifdef INVALID_FLOAT.
14021         * infcmd.c (do_registers_info): Ditto.
14022         * values.c (unpack_double): Ditto.  Add comment.
14023
14024         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14025         already commented out.
14026
14027 2002-01-26  Andreas Schwab  <schwab@suse.de>
14028
14029         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14030         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14031         registers and add support for PTRACE_GETREGS.
14032
14033 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14034
14035         GDB 5.1.1 released from 5.1 branch.
14036         * NEWS: Add 5.1.1 news.
14037         * README: Sync with 5.1 branch.
14038
14039 2002-01-23  Fred Fish  <fnf@redhat.com>
14040
14041         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14042         stabstring on initial malloc.  Reallocing will copy it for us,
14043         if necessary.
14044
14045 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14046
14047         * Makefile.in (hpread_h): Delete.
14048         (HFILES_NO_SRCDIR): Remove hpread.h.
14049         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14050         (hpread.o): Update dependencies.
14051         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14052
14053         * hp-psymtab-read.c: Remove file.
14054         * hp-symtab-read.c: Remove file.
14055         * hpread.h: Remove file.
14056
14057         * hpread.c: Merge all contents of hp-psymtab-read.c,
14058         hp-symtab-read.c and hpread.h into this file, as it was prior to
14059         January 1999.
14060
14061         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14062         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14063         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14064         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14065
14066 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14067
14068         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14069         fill_gregset): Call gdbarch_tdep() just once, assign result to
14070         variable and use that, instead of calling the function several
14071         times.
14072
14073 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14074
14075         * configure.host: Accept sparcv9 as alias for sparc64.
14076         * configure.tgt: Likewise.
14077
14078 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14079
14080         * solib-aix5.c (build_so_list_from_mapfile)
14081         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14082         arguments is not reversed.
14083         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14084         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14085
14086 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14087
14088         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14089         modified version of obsolete sh_fetch_pseudo_register.
14090         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14091         (sh4_register_read): New function.
14092         (sh_pseudo_register_write): New function. Renamed and modified
14093         version of obsolete sh_store_pseudo_register.
14094         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14095         (sh4_register_write): New function.
14096         (sh_gdbarch_init): Remove setting of gdbarch function
14097         fetch_pseudo_register and store_pseudo_register. Remove setting of
14098         register_convert_to_raw, register_convert_to_virtual,
14099         register_convertible.
14100         (sh_sh4_register_convertible): Delete. No longer needed. All is
14101         taken care by architecture specific functions
14102         register_read/register_write.
14103         (sh_sh4_register_convert_to_virtual): Make static.
14104         (sh_sh4_register_convert_to_raw): Ditto.
14105
14106 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14107
14108         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14109         (floatformat_is_nan, floatformat_mantissa): Ditto.
14110
14111         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14112         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14113         builtin_type_ieee_double_little,
14114         builtin_type_ieee_double_littlebyte_bigword,
14115         builtin_type_m68881_ext, builtin_type_i960_ext,
14116         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14117         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14118         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14119         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14120
14121 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14122
14123         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14124         parameter.  Set frameless flag if it exists and depended of
14125         whether the scanned function is frameless or not.
14126         (xstormy16_skip_prologue): If function is frameless, return
14127         result of xstormy16_scan_prologue().
14128         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14129         call.
14130
14131 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14132
14133         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14134         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14135         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14136         sh_sh4_register_byte, sh_sh4_register_raw_size,
14137         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14138         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14139         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14140         sh_store_pseudo_register, sh_do_pseudo_register): Call
14141         gdbarch_tdep() just once, assign result to variable and use that,
14142         instead of calling the function several times.
14143
14144 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14145
14146         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14147         macros instead of LAST_FPU_CTRL_REGNUM.
14148         (store_register): Likewise.
14149
14150 2002-01-21  Jim Blandy  <jimb@redhat.com>
14151
14152         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14153         is up-to-date before running the program, not just when a program
14154         exits.
14155
14156 2002-01-21  Fred Fish  <fnf@redhat.com>
14157
14158         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14159         when we have found all instructions we are looking for.
14160
14161 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14162
14163         * arm-tdep.c (arm_register_name): New function.
14164         (arm_registers_names): Make static.
14165         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14166         (arm_register_name): Declare.
14167         (REGISTER_NAME): Use it.
14168
14169 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14170             Kevin Buettner  <kevinb@redhat.com>
14171
14172         Convert arm targets to new FRAME interface.
14173         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14174         (arm_frame_find_save_regs): Delete.
14175         (arm_frame_init_saved_regs): New.
14176         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14177         Allocate extra_info as required.  Convert all uses of fsr.regs
14178         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14179         to use extra_info.
14180         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14181         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14182         (check_prologue_cache, save_prologue_cache): Likewise.
14183         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14184         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14185         (FRAME_FIND_SAVED_REGS): Delete.
14186         (arm_frame_find_saved_regs): Delete prototype.
14187         (arm_frame_init_saved_regs): New prototype.
14188         (FRAME_INIT_SAVED_REGS): Define.
14189
14190 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14191
14192         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14193
14194 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14195
14196         From Jeff Law <law@redhat.com>:
14197         * infttrace.c: Include <sys/pstat.h>.
14198         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14199         exec file if the ttrace equivalent fails.
14200
14201 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14202
14203         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14204         (closeLogFile): Ditto.
14205
14206 2002-01-20  Michael Chastain  <mec@shout.net>
14207
14208         * top.c (print_gdb_version): Bump copyright year to 2002.
14209
14210 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14211
14212         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14213         Zannoni and Eli Zaretskii.
14214
14215 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14216
14217         * buildsym.c: Update copyright years.
14218         * c-typeprint.c: Likewise.
14219         * dwarf2read.c: Likewise.
14220         * f-typeprint.c: Likewise.
14221         * gdbtypes.c: Likewise.
14222         * gdbtypes.h: Likewise.
14223         * hp-symtab-read.c: Likewise.
14224         * hpread.c: Likewise.
14225         * mdebugread.c: Likewise.
14226         * p-typeprint.c: Likewise.
14227
14228 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14229
14230         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14231         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14232         byte-order selectable.
14233         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14234         * arch-utils.c: Ditto.
14235         (set_endian): Ditto.
14236         (set_endian_from_file): Ditto.
14237         * gdbserver/low-sim.c (create_inferior): Ditto.
14238         * gdbarch.sh: Ditto.
14239         * gdbarch.h: Re-generate.
14240         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14241         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14242         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14243         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14244         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14245         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14246         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14247         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14248         macro definition.
14249         * config/mips/tm-wince.h: Remove #undef of macro
14250         TARGET_BYTE_ORDER_SELECTABLE.
14251         * config/sh/tm-wince.h: Ditto.
14252
14253 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14254
14255         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14256         member function fields.  Add accessor macro
14257         TYPE_FN_FIELD_ARTIFICIAL.
14258         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14259         * c-typeprint.c (c_type_print_base): Skip artificial member
14260         functions.
14261
14262 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14263
14264         * f-typeprint.c: Delete unused function f_type_print_args.
14265         * p-typeprint.c: Delete unused function pascal_type_print_args.
14266
14267 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14268
14269         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14270         comment.  Add ``artificial'' to ``union field_location''.
14271
14272         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14273
14274         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14275         * mdebugread.c (parse_symbol): Likewise.
14276         * stabsread.c (define_symbol): Likewise.
14277         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14278         initializing TYPE_FIELD_BITPOS to n (obsolete).
14279         (hpread_doc_function_type): Likewise.
14280         * hpread.c (hpread_function_type): Likewise.
14281
14282 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14283
14284         * configure.in (host_makefile_frag): Only require a host makefile
14285         fragment when a native build.
14286         * configure: Re-generate.
14287
14288 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14289
14290         * doublest.h (floatformat_from_type): Declare.
14291         * doublest.c (floatformat_from_type): New function.
14292         (convert_typed_floating): Use.
14293
14294         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14295         call to function floatformat_from_type.
14296
14297         * gdbarch.sh (IEEE_FLOAT): Delete.
14298         * gdbarch.h, gdbarch.c: Re-generate.
14299         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14300         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14301         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14302         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14303         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14304         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14305         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14306         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14307         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14308         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14309         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14310         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14311
14312         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14313         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14314         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14315         * sh-tdep.c (sh_gdbarch_init): Ditto.
14316         * mips-tdep.c (mips_gdbarch_init): Ditto.
14317         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14318         * cris-tdep.c (cris_gdbarch_init): Ditto.
14319
14320 2002-01-20  Jiri Smid  <smid@suse.cz>
14321
14322         * configure.host, configure.tgt: Support x86-64.
14323         * NEWS: Note new target x86-64.
14324
14325         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14326         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14327         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14328         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14329         x86-64-linux-nat.o): Fix dependencies.
14330
14331 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14332
14333         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14334         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14335         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14336         * config/sparc/xm-sun4os4.h: Delete file.
14337         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14338
14339 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14340
14341         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14342         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14343         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14344         * config/i386/i386lynx.mh (XM_FILE): Delete.
14345         * config/rs6000/xm-rs6000ly.h: Delete file.
14346         * config/sparc/xm-sparclynx.h: Delete file.
14347         * config/m68k/xm-m68klynx.h: Delete file.
14348         * config/i386/xm-i386lynx.h: Delete file.
14349         * config/xm-lynx.h: Delete file.
14350         * config/djgpp/fnchange.lst: Update.
14351
14352 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14353
14354         * alpha-tdep.c (alpha_register_byte): New function.
14355         (alpha_register_raw_size): Ditto.
14356         (alpha_register_virtual_size): Ditto.
14357         (alpha_skip_prologue_internal): Renamed from
14358         alpha_skip_prologue.
14359         (alpha_skip_prologue): New version that calls
14360         alpha_skip_prologue_internal.
14361         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14362         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14363         second argument from alpha_skip_prologue.
14364         (REGISTER_BYTE): Use alpha_register_byte.
14365         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14366         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14367         (FRAMELESS_FUNCTION_INVOCATION): Use
14368         generic_frameless_function_invocation_not.
14369         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14370         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14371
14372 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14373
14374         * config/mips/xm-news-mips.h: Delete file.
14375         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14376
14377         * config/m88k/xm-m88k.h: Delete file.
14378         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14379         * config/m88k/xm-delta88v4.h: Ditto.
14380         * config/m88k/xm-delta88.h: Ditto.
14381
14382         * config/alpha/xm-fbsd.h: Delete file.
14383         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14384
14385         * config/sparc/xm-sparc.h: Delete file.
14386         * Makefile.in (xm-sun4os4.h): Delete dependency.
14387         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14388         * config/sparc/xm-sun4os4.h: Ditto.
14389         * config/sparc/xm-linux.h: Ditto.
14390
14391         * config/i386/xm-windows.h: Delete file.
14392
14393 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14394
14395         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14396         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14397
14398 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14399
14400         * alpha-tdep.c (alpha_call_dummy_words): New.
14401         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14402         (CALL_DUMMY_P): Define.
14403         (CALL_DUMMY_WORDS): Define.
14404         (SIZEOF_CALL_DUMMY_WORDS): Define.
14405
14406 2002-01-19  Per Bothner  <per@bothner.com>
14407
14408         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14409         isn't NULL, which can happen with some gcj-3.x-produced code.
14410
14411 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14412
14413         * alpha-tdep.c (alpha_register_virtual_type): New function.
14414         (alpha_init_frame_pc_first): Ditto.
14415         (alpha_fix_call_dummy): Ditto.
14416         (alpha_store_struct_return): Ditto.
14417         (alpha_extract_struct_value_address): Ditto.
14418         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14419         alpha_register_virtual_type.
14420         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14421         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14422         alpha_extract_struct_value_address.
14423         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14424         (INIT_FRAME_PC): Use init_frame_pc_noop.
14425         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14426
14427 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14428
14429         * i386gnu-nat.c: Include "i386-tdep.h".
14430         (fetch_fpregs): Simplify code dealing with uninitialized floating
14431         point states such that it doesn't require FP7_REGNUM.
14432
14433 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14434
14435         * alpha-tdep.c (frame_extra_info): New.
14436         (alpha_find_saved_regs): Make static.  Use
14437         frame->extra_info.
14438         (alpha_frame_init_saved_regs): New function.
14439         (alpha_frame_saved_pc): Use frame->extra_info.
14440         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14441         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14442         (init_extra_frame_info): Rename to...
14443         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14444         (alpha_print_extra_frame_info): New function.
14445         (alpha_frame_locals_address): Ditto.
14446         (alpha_frame_args_address): Ditto.
14447         (alpha_pop_frame): Use frame->extra_info.
14448         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14449         alpha_frame_args_address.
14450         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14451         (alpha_find_saved_regs): Remove prototype.
14452         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14453         (EXTRA_FRAME_INFO): Remove.
14454         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14455         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14456
14457 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14458
14459         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14460         (alpha_cannot_fetch_register): Ditto.
14461         (alpha_cannot_store_register): Ditto.
14462         (alpha_register_convertible): Ditto.
14463         (alpha_use_struct_convention): Ditto.
14464         * config/alpha/tm-alpha.h: Update copyright years.
14465         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14466         (INNER_THAN): Use core_addr_lessthan.
14467         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14468         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14469         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14470         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14471         (FRAME_CHAIN): Remove unnecessary cast.
14472
14473 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14474
14475         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14476         obsolete.
14477
14478 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14479
14480         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14481         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14482         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14483         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14484         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14485         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14486         * x86-64-linux-nat.c: Ditto.
14487
14488 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14489
14490         * alpha-tdep.c (alpha_register_name): New function.
14491         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14492         (REGISTER_NAME): Define.
14493
14494 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14495
14496         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14497
14498 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14499
14500         * alpha-tdep.c: Update copyright years.
14501         (alpha_next_pc): New function.
14502         (alpha_software_single_step): Ditto.
14503         * config/alpha/tm-alpha.h: Add prototype for
14504         alpha_software_single_step.
14505
14506 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14507
14508         * alphabsd-nat.c: Update copyright years.
14509         (fill_gregset): Use regcache_collect.
14510         (fill_fpregset): Likewise.
14511         (fetch_inferior_registers): Only fetch integer registers
14512         if requested to do so.
14513         (store_inferior_registers): Only store integer registers
14514         if requested to do so.
14515
14516 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14517
14518         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14519         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14520         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14521         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14522         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14523         * config/arm/linux.mh (XDEPFILES): Delete.
14524         * config/arm/nbsd.mh (XDEPFILES): Delete.
14525         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14526         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14527         * config/i386/i386m3.mh (XDEPFILES): Delete.
14528         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14529         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14530         * config/i386/fbsd.mh (XDEPFILES): Delete.
14531         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14532         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14533         * config/i386/i386v4.mh (XDEPFILES): Delete.
14534         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14535         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14536         * config/i386/i386aix.mh (XDEPFILES): Delete.
14537         * config/i386/go32.mh (XDEPFILES): Delete.
14538         * config/i386/cygwin.mh (XDEPFILES): Delete.
14539         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14540         * config/i386/i386mach.mh (XDEPFILES): Delete.
14541         * config/i386/i386v32.mh (XDEPFILES): Delete.
14542         * config/i386/linux.mh (XDEPFILES): Delete.
14543         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14544         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14545         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14546         * config/i386/i386sco.mh (XDEPFILES): Delete.
14547         * config/i386/i386v.mh (XDEPFILES): Delete.
14548         * config/i386/nbsd.mh (XDEPFILES): Delete.
14549         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14550         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14551         * config/i386/symmetry.mh (XDEPFILES): Delete.
14552         * config/i386/obsd.mh (XDEPFILES): Delete.
14553         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14554         * config/ia64/linux.mh (XDEPFILES): Delete.
14555         * config/ia64/aix.mh (XDEPFILES): Delete.
14556         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14557         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14558         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14559         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14560         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14561         * config/m68k/linux.mh (XDEPFILES): Delete.
14562         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14563         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14564         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14565         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14566         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14567         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14568         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14569         * config/m88k/delta88.mh (XDEPFILES): Delete.
14570         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14571         * config/m88k/m88k.mh (XDEPFILES): Delete.
14572         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14573         * config/mips/linux.mh (XDEPFILES): Delete.
14574         * config/mips/irix6.mh (XDEPFILES): Delete.
14575         * config/mips/irix5.mh (XDEPFILES): Delete.
14576         * config/mips/irix4.mh (XDEPFILES): Delete.
14577         * config/mips/irix3.mh (XDEPFILES): Delete.
14578         * config/mips/decstation.mh (XDEPFILES): Delete.
14579         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14580         (NATDEPFILES): Move core-aout.o to here.
14581         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14582         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14583         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14584         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14585         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14586         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14587         * config/pa/hpux11.mh (XDEPFILES): Delete.
14588         * config/powerpc/aix.mh (XDEPFILES): Delete.
14589         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14590         * config/powerpc/linux.mh (XDEPFILES): Delete.
14591         * config/romp/rtbsd.mh: Rename XDEPFILES.
14592         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14593         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14594         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14595         * config/s390/s390.mh (XDEPFILES): Delete.
14596         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14597         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14598         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14599         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14600         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14601         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14602         * config/sparc/linux.mh (XDEPFILES): Delete.
14603         * config/vax/vaxult.mh (XDEPFILES): Delete.
14604         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14605         * Makefile.in (DEPFILES): Remove XDEPFILES.
14606
14607 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14608
14609         * utils.c (internal_verror): Fix comments, default is yes not no.
14610         Update queries to match.  Default to quit and dump core.
14611
14612 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14613
14614         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14615         copyright.
14616         * defs.h, event-top.c, gdbcmd.h: Ditto.
14617         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14618         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14619         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14620         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14621         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14622         * mi/mi-main.c:Ditto.
14623
14624         * stack.c, symfile.c: Update copyright.
14625
14626 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14627
14628         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14629         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14630         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14631         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14632
14633 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14634
14635         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14636         * gdbserver/low-lynx.c (myattach): Likewise.
14637         * gdbserver/low-nbsd.c (myattach): Likewise.
14638         * gdbserver/low-sim.c (myattach): Likewise.
14639         * gdbserver/low-sparc.c (myattach): Likewise.
14640         * gdbserver/low-sun3.c (myattach): Likewise.
14641
14642         * gdbserver/low-linux.c (myattach): New function.
14643
14644         * gdbserver/server.c (attach_inferior): New function.
14645         (main): Handle "--attach".
14646
14647 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14648
14649         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14650         maintainer.
14651
14652 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14653
14654         * c-typeprint.c (is_type_conversion_operator): Add additional
14655         check for non-conversion operators.
14656
14657 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14658
14659         * linux-proc.c: Add "info proc" command, a la procfs.c.
14660         (read_mapping): New function, abstract and re-use code.
14661         (linux_find_memory_regions): Use new func read_mapping.
14662         (linux_info_proc_cmd): New function, implement "info proc".
14663         (_initialize_linux_proc): Add new command "info proc".
14664
14665 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14666
14667         * symfile.c (generic_load): Use bfd_map_over_sections method
14668         instead of manipulating bfd structure members directly.
14669         (add_section_size_callback): New function, bfd sections callback
14670         used by generic_load.
14671         (load_sections_callback): New function, bfd sections callback
14672         used by generic_load.
14673
14674 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14675
14676         [Based on work by Jim Blandy]
14677         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14678         (builtin_type_vec128): Export.
14679         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14680         types.
14681         (builtin_type_vec128): New builtin type for 128 bit vector
14682         registers.
14683         (build_gdbtypes): Initialize builtin_type_v16qi and
14684         builtin_type_v8hi. Create the vec128 register builtin type
14685         structure.
14686         (build_builtin_type_vec128): New function.
14687         (_initialize_gdbtypes): Register builtin_type_v16qi and
14688         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14689         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14690         AltiVec register to new builtin type.
14691
14692 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14693
14694         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14695         to make_cv_type.
14696
14697 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14698
14699         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14700         CLEAN_UP_REGISTER_VALUE.
14701         * regcache.c (supply_register): Update only call.
14702
14703 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14704
14705         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14706         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14707         a29k-*-vxworks* targets as obsolete.
14708
14709 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14710
14711         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14712         until we can resolve portability issues.
14713         * gregset.h: Remove references to fpxregs.
14714         * gcore.c (gcore_command): Initialize note_sec to NULL.
14715
14716 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14717
14718         * signals.c (target_signal_to_name): Rewrite.  Only use
14719         signals[].name when in bounds and non-NULL.
14720
14721 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14722
14723         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14724         * signals.c (target_signal_to_name): Verify that SIG is within the
14725         bounds of the signals array.
14726
14727 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14728
14729         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14730
14731 2002-01-13  Keith Seitz  <keiths@redhat.com>
14732
14733         * stack.c (print_frame_info_base): Print the frame's pc
14734         only if when print_frame_info_listing_hook is not defined.
14735
14736 2002-01-13  Keith Seitz  <keiths@redhat.com>
14737
14738         * varobj.c (varobj_set_value): Make sure that there were no
14739         errors evaluating the object before attempting to set its
14740         value.
14741         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14742         so this offset adjustment is no longer necessary.
14743         (create_child): Don't set the error flag if the child is
14744         a CPLUS_FAKE_CHILD.
14745         (value_of_child): If value_fetch_lazy fails, return NULL
14746         so that callers will be notified that an error occurred.
14747         (c_value_of_variable): Delay check of variable's validity
14748         until later. We actually want all structs and unions to have
14749         the value "{...}".
14750         Do not return "???" for variables which could not be evaluated.
14751         This error condition must be returned to the caller so that it
14752         can get the error condition from gdb.
14753         (cplus_name_of_child): Adjust index for vptr before figuring
14754         out the name of the child.
14755         (cplus_value_of_child): If a child's (real) parent is not valid,
14756         don't even bother trying to give a value for it. Just return
14757         an error. Change all instances in this function.
14758         (cplus_type_of_child): If our parent is one of the "fake"
14759         parents, we need to get at the type of the real parent, and
14760         derive the child's true type using this information.
14761
14762 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14763
14764         From 2002-01-09 John Marshall <johnm@falch.net>:
14765         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14766         sources.redhat.com, and tweak some related URLs which had
14767         suffered from linkrot.
14768
14769 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14770
14771         From Jeff law:
14772         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14773         structures passed in registers.
14774
14775 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14776
14777         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14778         white space which prevented compilation.  Reported by DSK
14779         <dsk@student.unsw.edu.au>.
14780
14781 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14782
14783         * symfile.c (build_section_addr_info_from_section_tab):
14784         Use bfd access method instead of manipulating bfd directly.
14785         (syms_from_objfile): Ditto.
14786         (simple_overlay_update_1): Ditto.
14787         (simple_overlay_update): Ditto.
14788         (generic_load): Ditto.
14789         (overlay_unmapped_address): FIXME comment, bfd access methods.
14790         (sections_overlap): FIXME comment, bfd access methods.
14791         (pc_in_mapped_range): FIXME comment, bfd access methods.
14792         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14793         (section_is_mapped): FIXME comment, bfd access methods.
14794         (section_is_overlay): FIXME comment, bfd access methods.
14795
14796         * symfile.c (generic_load): Whitespace and long line cleanups.
14797         Remove duplicate variable, change several local variables to
14798         more appropriate data types.
14799         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14800
14801 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14802
14803         From Peter Schauer:
14804         * language.c (longest_local_hex_string_custom): Use phex_nz to
14805         convert NUM to a hex string.
14806
14807 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14808
14809         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14810         the function.
14811         Update Copyright year.
14812
14813 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14814
14815         * language.c (longest_raw_hex_string): Delete unused function.
14816
14817 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14818
14819         * MAINTAINERS (write-after-approval): Add myself.
14820         * dwarf2read.c (read_tag_string_type): Handling of
14821         DW_AT_byte_size.
14822         (read_tag_string_type): FORTRAN fix to prevent propagation of
14823         first string size.
14824         (set_cu_language): Handling of DW_LANG_Fortran95
14825
14826 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14827
14828         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14829         GETPID(inferior_ptid).
14830         (store_inferior_registers): Likewise.
14831
14832 2002-01-10  Jason Merrill  <jason@redhat.com>
14833
14834         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14835         Fix DW_OP_minus.
14836
14837 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14838
14839         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14840         and bfd/elf32-sh-nbsd.c.
14841
14842 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14843
14844         * NEWS: Mention --pid and corefile/proc-id behavior change.
14845
14846         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14847         * gcore.c: Include cli/cli-decode.h instead of command.h.
14848
14849         * main.c (captured_main): Add new command line option "--pid".
14850         If the second command line argument (following the symbol-file)
14851         begins with a digit, try to attach to it before trying to open
14852         it as a corefile.
14853         (print_gdb_help): Document the "--pid" argument.
14854
14855 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14856
14857         * completer.c (command_completer): New function.
14858
14859         * completer.h <command_completer>: Add prototype.
14860
14861         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14862         completer for the "help" command.
14863
14864 2002-01-09  Jason Merrill  <jason@redhat.com>
14865
14866         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14867
14868 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14869
14870         * i386-linux-nat.c (fill_fpxregset): Make global.
14871         (store_fpxregset): Ditto.
14872
14873         * gregset.h (gdb_fpxregset_t): Define.
14874         (supply_fpxregset): Prototype.
14875         (fill_fpxregset): Prototype.
14876
14877         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14878
14879 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14880
14881         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14882         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14883         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14884
14885 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14886
14887         * MAINTAINERS: Update target maintainer rules so that any
14888         Maintainer can approve a tested patch for a maintenance-only
14889         target.
14890
14891 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14892
14893         * MAINTAINERS (write-after-approval): Add myself.
14894
14895         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14896         IN_SIGTRAMP.
14897
14898 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14899
14900         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14901         real name of the executable, rather than the /proc name.
14902
14903 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14904
14905         Implement a "generate-core-file" command in gdb, save target state.
14906         * gcore.c: New file.  Implement new command 'generate-core-file'.
14907         Save a corefile image of the current state of the inferior.
14908         * linux-proc.c: Add linux-specific code for saving corefiles.
14909         * target.h (struct target_ops): Add new target vectors for saving
14910         corefiles; to_find_memory_regions and to_make_corefile_notes.
14911         (target_find_memory_regions): New macro.
14912         (target_make_corefile_notes): New macro.
14913         * target.c (update_current_target): Inherit new target methods.
14914         (dummy_find_memory_regions): New place-holder method.
14915         (dummy_make_corefile_notes): New place-holder method.
14916         (init_dummy_target): Initialize new dummy target vectors.
14917         * exec.c (exec_set_find_memory_regions): New function.
14918         Allow the exec_ops vector for memory regions to be taken over.
14919         (exec_make_note_section): New function, target vector method.
14920         * defs.h (exec_set_find_memory_regions): Export prototype.
14921         * procfs.c (proc_find_memory_regions): New function, corefile method.
14922         (procfs_make_note_section): New function, corefile method.
14923         (init_procfs_ops): Set new target vector pointers.
14924         (find_memory_regions_callback): New function.
14925         (procfs_do_thread_registers): New function.
14926         (procfs_corefile_thread_callback): New function.
14927         * sol-thread.c (sol_find_memory_regions): New function.
14928         (sol_make_note_section): New function.
14929         (init_sol_thread_ops): Initialize new target vectors.
14930         * inftarg.c (inftarg_set_find_memory_regions): New function.
14931         Allow to_find_memory_regions vector to be taken over.
14932         (inftarg_set_make_corefile_notes): New function.
14933         Allow to_make_corefile_notes vector to be taken over.
14934         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14935         interface layer if not target_has_execution (may be a corefile).
14936         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14937         * config/sparc/sun4sol2.mh: Ditto.
14938         * config/alpha/alpha-linux.mh: Ditto.
14939         * config/arm/linux.mh: Ditto.
14940         * config/i386/x86-64linux.mh: Ditto.
14941         * config/ia64/linux.mh: Ditto.
14942         * config/m68k/linux.mh: Ditto.
14943         * config/mips/linux.mh: Ditto.
14944         * config/powerpc/linux.mh: Ditto.
14945         * config/sparc/linux.mh: Ditto.
14946
14947 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14948
14949         * arm-linux-nat.c: Remove references to regcache.c internal data
14950         (registers[] and register_valid[]).
14951
14952 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14953
14954         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14955         so that attaching to a pid will automatically read the process's
14956         symbol file and shlibs.
14957         * Makefile.in: Add rule for linux-proc.o.
14958         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14959         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14960         * config/arm/linux.mh: Ditto.
14961         * config/i386/linux.mh: Ditto.
14962         * config/i386/x86-64linux.mh: Ditto.
14963         * config/ia64/linux.mh: Ditto.
14964         * config/m68k/linux.mh: Ditto.
14965         * config/mips/linux.mh: Ditto.
14966         * config/powerpc/linux.mh: Ditto.
14967         * config/sparc/linux.mh: Ditto.
14968
14969 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14970
14971         * win32-nat.c: Add i386-tdep.h dependency.
14972
14973 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14974
14975         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14976         instead of bfd_get_arch_size.  Don't bail out just because
14977         there's no exec_bfd.
14978
14979         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14980         * p-valprint.c (pascal_object_print_value): Ditto.
14981         * somread.c (som_symtab_read): Ditto.
14982         * symfile.c (simple_free_overlay_region_table): Ditto.
14983         * valops.c (value_assign): Ditto.
14984
14985         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14986         use tilde_expand and strerror for opening save-tracepoints file.
14987
14988         * thread-db.c (thread_db_new_objfile): Indendation fix.
14989
14990         * infptrace.c (GDB_MAX_ALLOCA): New define.
14991         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14992         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14993         can be overridden with whatever value is appropriate to the host).
14994         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14995         alloca to allocate potentially large buffer.
14996         * rs6000-nat.c (child_xfer_memory): Ditto.
14997         * symm-nat.c (child_xfer_memory): Ditto.
14998         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14999
15000 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15001
15002         From Nick Clifton  <nickc@redhat.com>
15003         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15004
15005 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15006
15007         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15008         Don't use exec_bfd if it's NULL.
15009
15010 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15011
15012         * valops.c (value_arg_coerce): Fix formatting.
15013
15014 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15015
15016         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15017         * gnu-nat.c: Ditto.
15018
15019 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15020
15021         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15022         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15023         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15024         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15025         z8k-coff have not been multi-arched.  Update z8k-coff build
15026         status.
15027
15028 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15029
15030         * MAINTAINERS: Mark a29k target as obsolete.
15031         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15032         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15033         comments.
15034         * NEWS: Note that a29k targets are obsolete.
15035         * a29k-tdep.c: Mark as obsolete.
15036         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15037         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15038         a29k-*-vxworks* targets as obsolete.
15039         * remote-adapt.c: Obsolete.
15040         * remote-eb.c: Obsolete.
15041         * remote-mm.c: Obsolete.
15042         * remote-udi.c: Obsolete.
15043         * config/a29k/a29k-udi.mt: Obsolete.
15044         * config/a29k/a29k.mt: Obsolete.
15045         * config/a29k/tm-a29k.h: Obsolete.
15046         * config/a29k/tm-vx29k.h: Obsolete.
15047         * config/a29k/vx29k.mt: Obsolete.
15048
15049 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15050
15051         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15052         with BFD_ENDIAN_BIG.
15053
15054 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15055
15056         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15057         * configure, config.in: Re-generate.
15058         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15059         * defs.h: Do not include <endian.h>.
15060
15061 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15062
15063         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15064         * config.in: Regenerate.
15065         * configure.in: Update copyright years.
15066         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15067         * configure: Regenerate.
15068         * i386bsd-nat.c: Update copyright years.
15069         (fill_gregset): Use regcache_collect.
15070         (fetch_inferior_registers): Only fetch integer registers
15071         if requested to do so.  Add support for XMM registers
15072         using PT_GETXMMREGS.
15073         (store_inferior_registers): Only store integer registers
15074         if requested to do so.  Add support for XMM registers
15075         using PT_SETXMMREGS.
15076         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15077         (store_inferior_registers): Remove.
15078         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15079         (fetch_elfcore_registers): New function.
15080         (i386nbsd_elfcore_fns): New.
15081         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15082         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15083         i386bsd-nat.o.
15084         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15085         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15086         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15087         * config/i386/tm-nbsd.h: Update copyright years.
15088         (HAVE_SSE_REGS): Define.
15089         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15090         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15091         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15092         (SIGCONTEXT_PC_OFFSET): Remove.
15093         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15094
15095 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15096
15097         * configure.tgt: Remove powerpc-*-macos* target.
15098         * config/m68k/xm-mpw.h: Delete file.
15099         * config/xm-mpw.h: Delete file.
15100         * ser-mac.c: Delete file.
15101         * mpw-make.sed: Delete file.
15102         * mpw-config.in: Delete file.
15103         * mac-xdep.c: Delete file.
15104         * mac-gdb.r: Delete file.
15105         * mac-defs.h: Delete file.
15106         * mac-nat.c: Delete file.
15107         * config/powerpc/macos.mh: Delete file.
15108         * config/powerpc/macos.mt: Delete file.
15109         * config/powerpc/nm-macos.h: Delete file.
15110         * config/powerpc/tm-macos.h: Delete file.
15111         * source.c (openp, open_source_file): Remove obsolete code.
15112         * top.c (gdb_readline): Ditto.
15113         * utils.c (query): Ditto.
15114         * event-top.c (display_gdb_prompt): Ditto.
15115         * Makefile.in (ser-mac.o): Delete obsolete target.
15116         * NEWS: Update.
15117
15118 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15119
15120         * defs.h (BIG_ENDIAN): Delete macro definition.
15121         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15122         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15123         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15124         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15125         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15126         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15127         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15128         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15129         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15130         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15131         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15132         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15133         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15134         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15135         * gdbarch.c: Re-generate.
15136
15137 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15138
15139         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15140         for core files.
15141
15142 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15143
15144         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15145
15146 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15147
15148         * value.h (value_ptr): Delete typedef.
15149
15150 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15151
15152         * i386nbsd-nat.c: Update copyright years.
15153         Include i386-tdep.h.
15154
15155 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15156
15157         * stabsread.c: Update copyright years.
15158
15159         From Debashis Mahata <debashis.mahata@wipro.com>:
15160         (read_struct_fields): Deal with Sun C compiler erroneous stab
15161         output for structs and unions.
15162         Fix PR gdb/269.
15163
15164 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15165
15166         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15167         prototype.
15168
15169 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15170
15171         * cp-abi.c: Fix whitespace.
15172         (baseclass_offset): New wrapper function.
15173         * cp-abi.h (baseclass_offset): Add prototype.
15174         (struct cp_abi_ops): Add baseclass_offset pointer.
15175
15176         * valops.c (vb_match): Move to...
15177         * gnu-v2-abi.c (vb_match): here.
15178         * valops.c (baseclass_offset): Move to...
15179         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15180
15181         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15182
15183         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15184         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15185         * hpacc-abi.c (init_hpacc_ops): Likewise.
15186
15187 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15188
15189         * valops.c (find_overload_match): Accept obj as a
15190         reference parameter.  Update it before returning.
15191         * value.h (find_overload_match): Update prototype.
15192         * eval.c (evaluate_subexp_standard): Pass object to
15193         find_overload_match by reference.
15194
15195 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15196
15197         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15198         register attribute from value declarations.
15199         * valops.c: Ditto.
15200         * value.h: Ditto.
15201         * scm-lang.c (scm_lookup_name): Ditto.
15202
15203 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15204
15205         Abstract the functionality of iterating over mapped memory
15206         regions into a general purpose iterator function.
15207         * procfs.c (iterate_over_mappings): New function, general purpose
15208         iterator for memory sections.
15209         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15210         (solib_mappings_callback): New function, callback for above.
15211         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15212         (info_mappings_callback): New function, callback for above.
15213
15214         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15215
15216 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15217
15218         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15219         * i386-tdep.c: Include "elf-bfd.h".
15220         (process_note_abi_tag_sections): New function.
15221         (i386_gdbarch_init): Add code to recognize various OS/ABI
15222         combinations.
15223
15224         * maint.c (_initialize_maint_cmds): Add missing \ in
15225         string-literal.
15226
15227 For older changes see ChangeLog-2001
15228 \f
15229 Local Variables:
15230 mode: change-log
15231 left-margin: 8
15232 fill-column: 74
15233 version-control: never
15234 End: