* configure.in: Call AC_GNU_SOURCE. Check for pread64 using
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
2
3         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
4         AC_CHECK_FUNCS and remove the old check for pread64.
5         * acinclude.m4 (AC_GNU_SOURCE): New macro.
6         * acconfig.h (_GNU_SOURCE): Add.
7         (HAVE_PREAD64): Remove.
8         * configure, aclocal.m4, config.in: Regenerated.
9
10 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
11
12         * alpha-tdep.c: Use get_frame_saved_regs.
13         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
16         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
17         * vax-tdep.c, xstormy16-tdep.c: Ditto.
18
19 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
20
21         * configure.in: Remove all use of the SUBDIRS variable; add
22         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
23         code providing the --enable-multi-ice option, and move it right in
24         front of the code that checks whether gdbserver is supported.
25         Polish that too.
26         * configure: Regenerated.
27         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
28         @SUBDIRS@.
29
30 2003-01-03  Andrew Cagney  <cagney@redhat.com>
31
32         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
33         * avr-tdep.c, cris-tdep.c: Ditto.
34         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
35         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
36         
37 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
38
39         * configure.in: Remove --enable-netrom option.
40         * configure: Regenerated.
41
42 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
43
44         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
45         declaration for `struct re_pattern_buffer' instead.
46         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
47
48 2003-01-03  J. Brobecker  <brobecker@gnat.com>
49
50         * mdebugread.c (parse_symbol): Count until the stEnd matching
51         the structure name.
52
53 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
54
55         * configure.in: Remove --with-cpu option.
56         subscripts.  Remove evil changequotes here.
57         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
58         * config.in, configure: Regenerated.
59         
60         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
61         * configure.in: Cleanup section that sources GDB and BFD configure
62         subscripts.  Remove evil changequotes here.
63         * config.in, configure: Regenerated.
64
65 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
66
67         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
68         frame accessor methods.
69         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
70         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
71         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
72         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
73         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
74         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
75         * z8k-tdep.c: Ditto.
76         
77 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
78
79         * configure.in: Remove UI_OUT configuration code.
80         * ada-lang.c: Update assuming UI_OUT is always true.
81         * Makefile.in (UIOUT_CFLAGS): Remove.
82         * configure: Regenerated.
83         * TODO: Remove blurb about elimination of -DUI_OUT.
84
85         * configure.in: Move code that provides the --enable-gdbcli,
86         --enable-gdbmi options right before the code that handles the
87         --enable-tui option.  Polish a bit.
88         * configure: Regenerated.
89
90         * configure.in: Rewrite check for GNU regex and the
91         --without-included regex option, and move it into the "Checks for
92         library functions" section.  This makes us use the system regex
93         again by default on systems with version 2 of the GNU C library.
94         This was apparently broken.
95         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
96         * acconfig.h (USE_INCLUDED_REGEX): Remove.
97         * config.in, configure: Regenerated.
98
99         * configure.in: Move code that provides the --enable-tui option
100         before the "Checks for libraries" section.  Polish the code
101         somewhat and set need_curses to yes if we build the TUI.  Rewrite
102         code that looks for a library providing termcap functionality to
103         match more closely what's done in the Readline library, and move
104         it into to the "Checks for libraries" section.
105         * configure: Regenerated.
106         * Makefile.in (TERMCAP): Remove variable.
107         * config/i386/go32.mh (TERMCAP): Remove variable.
108
109 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
110
111         * MAINTAINERS: Mention gdb_mbuild.sh.
112         * gdb_mbuild.sh: Rewrite.
113
114 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
115
116         * configure.in: Fix typo in last change.
117         * config.in, configure: Regenerated.
118
119 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
120
121         * valarith.c (value_binop): Delete obsolete code and comments.
122         * configure.host: Ditto.
123         * buildsym.h (make_blockvector): Ditto.
124         * buildsym.c (make_blockvector): Ditto.
125         * defs.h (enum language): Ditto.
126         (chill_demangle): Ditto.
127         * elfread.c (elf_symtab_read): Ditto.
128         * dwarfread.c (CHILL_PRODUCER): Ditto.
129         (set_cu_language): Ditto.
130         (handle_producer): Ditto.
131         * expprint.c (print_subexp): Ditto.
132         * gdbtypes.c (chill_varying_type): Ditto.
133         * gdbtypes.h (builtin_type_chill_bool): Ditto.
134         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
135         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
136         (chill_varying_type): Ditto.
137         * language.h (_LANG_chill): Ditto.
138         * language.c (binop_result_type, integral_type): Ditto.
139         (character_type, string_type, structured_type): Ditto.
140         (lang_bool_type, binop_type_check): Ditto.
141         * stabsread.h (os9k_stabs): Ditto.
142         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
143         (define_symbol, read_type, read_struct_fields): Ditto.
144         (read_array_type, read_enum_type, read_huge_number): Ditto.
145         (read_range_type, start_stabs): Ditto.
146         * symfile.c (init_filename_language_table): Ditto.
147         (add_psymbol_with_dem_name_to_list): Ditto.
148         * symtab.c (symbol_init_language_specific): Ditto.
149         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
150         * symtab.h (struct general_symbol_info): Ditto.
151         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
152         * typeprint.c (typedef_print): Ditto.
153         * utils.c (fprintf_symbol_filtered): Ditto.
154         * valops.c (value_cast, search_struct_field, value_slice): Delete
155         obsolete code.
156         (varying_to_slice): Delete function.
157         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
158         (varying_to_slice): Delete declaration.
159         * MAINTAINERS: Update.
160
161 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
162
163         * configure.in: Reorganize "Checks for library functions section"
164         a bit.  Remove check for `btowc' and `isascii' functions.
165         * configure: Regenerated.
166
167         * acconfig.h (_MSE_INT_H): Remove.
168         * configure.in: Create "Checks for header files" section, and move
169         appropriate tests there.  Don't check for objlist.h, wchar.h,
170         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
171         misdetection fix.  Also add "Checks for types", "Checks for
172         compiler characteristics" and "Checks for library functions"
173         sections.
174         * config.in, configure: Regenerated.
175
176         * configure.in: Create "Checks for programs" section, and move
177         appropriate tests there.
178
179 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
180
181         * configure.in: Create "Checks for libraries" section, and move
182         appropriate tests there.  Cleanup check for wctype in libw.  Use
183         AC_SEARCH_LIBS to see whether we need libsocket.
184         * configure: Regenerated.
185
186 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
187
188         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
189         * config.in, configure: Regenerated.
190
191 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
192
193         * gdb_dirent.h: Cleanup and update code to match the example in
194         the Autoconf manual.
195         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
196         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
197         * configure: Regenerated.
198
199 2002-12-30  Adam Fedor  <fedor@gnu.org>
200
201         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
202         (yylex): Initialize c to avoid uninitialized warning.
203
204 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
205
206         * doc/fdl.texi: Revert the last change.
207
208 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
209
210         * tracepoint.c (ISATTY): Removed.
211
212 2002-12-26  J. Brobecker  <brobecker@gnat.com>
213
214         Continuing work to convert the hppa targets to multiarch partil.
215
216         * hppa-tdep.c: Add some missing forward declarations.
217         (frameless_function_invocation): Prefix the function name
218         by "hppa_" to avoid polluting the namespace.  Update all calls
219         to use the new function name.
220         (saved_pc_after_call): Ditto.
221         (init_extra_frame_info): Ditto.
222         (frame_chain): Ditto.
223         (push_dummy_frame): Ditto.
224         (target_read_pc): Ditto.
225         (target_write_pc): Ditto.
226         (in_solib_call_trampoline): Ditto.
227         (in_solib_return_trampoline): Ditto.
228         (skip_trampoline_code): Ditto.
229         (hppa_read_fp): New function, renamed from target_read_fp.
230         (hppa_target_read_fp): New function, using hppa_read_fp.
231         This function conforms to the function profile for the
232         READ_FP gdbarch method.
233         (hppa_extract_struct_value_address): New function, extracted
234         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
235         macro.
236         (hppa_frame_num_args): New function.
237         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
238
239         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
240         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
241         for the switch to multiarch partial.
242         Update some of the macros definitions to match some changes
243         described above in the name of the function they are calling.
244         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
245         not be straightforward to convert. Do now wrap it inside
246         "#if !... #endif" to remember that this macro has still not
247         been taken care of.
248         (FIX_CALL_DUMMY): Likewise.
249
250 2002-12-26  J. Brobecker  <brobecker@gnat.com>
251
252         Continuing work to convert the hppa targets to multiarch partial.
253
254         * hppa-tdep.c (hppa_register_raw_size): New function replacing
255         the body of macro REGISTER_RAW_SIZE.
256         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
257         config/pa/tm-hppah.h. These functions will be used to initialize
258         the gdbarch structure.
259         (hppa_hpux_pc_in_sigtramp): New function.
260         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
261         (hppa_hpux_frame_base_before_sigtramp): New function.
262         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
263         Add gdbcore.h #include.
264         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
265         of this gdbarch-eligible macro to a call to the new associated
266         function.
267         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
268         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
269         into a call to the new associated function.
270         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
271         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
272         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
273
274 2002-12-24  David Carlton  <carlton@math.stanford.edu>
275
276         * config/sparc/tm-sparc.h: Delete duplicate definition of
277         DEPRECATED_PC_IN_CALL_DUMMY.
278
279 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
280
281         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
282         $(gdb_assert_h).
283         * configure.tgt: Recognize mips64*-*-linux*.
284         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
285         (supply_32_bit_reg): New function.
286         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
287         (fill_gregset): Use regcache_collect() instead of
288         deprecated_registers[].
289         (register_addr): Change name to mips_linux_register_addr().
290         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
291         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
292         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
293         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
294         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
295         (MIPS64_LINUX_JB_PC): New defines.
296         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
297         (mips64_elf_fpregset_t): New typedefs.
298         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
299         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
300         (mips64_linux_register_addr, set_mips_linux_register_addr)
301         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
302         (init_register_addr_data)
303         New functions.
304         (fetch_core_registers): Add support for core file formats with 64-bit
305         registers.
306         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
307         (register_addr_data): New static global variable.
308         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
309         gdbarch_register_osabi() for each MIPS machine.
310         * config/mips/linux64.mt: New file.
311         * config/mips/tm-linux64.h: New file.
312
313 2002-12-23  Adam Fedor  <fedor@gnu.org>
314
315         * maint.c (maintenance_demangle): Add switch to demangle
316         ObjC language symbols as well.
317
318 2002-12-23  Adam Fedor  <fedor@gnu.org>
319
320         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
321         last argument from complaint function call.
322
323 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
324
325         * exec.c (print_section_info): Add FIXME comments regarding format
326         string choices.
327
328 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
329
330         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
331         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
332
333 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
334
335         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
336
337 2002-12-23  David Carlton  <carlton@math.stanford.edu>
338
339         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
340         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
341         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
342         information associated to a minsym, not lookup_symbol.
343
344 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
345
346         * x86-64-tdep.h (x86_64_init_abi): New prototype.
347         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
348         (x86_64_init_abi): Make non-static.  Set number of pseudo
349         registers to 0.
350         (x86_64_gdbarch_init): Remove function.
351         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
352         Remove code dealing with dissambly.
353         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
354         (_initialize_x86_64_linux_tdep): New function.
355         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
356         i386-tdep.o.
357
358 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
359
360         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
361         (struct gdb_osabi_handler): Remove member `arch'.  Add member
362         `arch_info'.
363         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
364         construct a `struct bfd_arch_info' and store it in the `struct
365         gdb_osabi_handler' that is created.
366         (gdbarch_init_osabi): Check for compatibility based on machine
367         type and architecture.
368         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
369         comment.
370         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
371         second argument in call to gdbarch_register_osabi.
372         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
373         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
374         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
375         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
376         * arm-tdep.c (_initialize_arm_tdep): Likewise.
377         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
378         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
379         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
380         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
381         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
382         * i386-tdep.c (_initialize_i386_tdep): Likewise.
383         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
384         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
385         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
386         _initialize_i386bsd_tdep and updated likewise.
387         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
388         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
389         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
390         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
391         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
392         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
393         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
394         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
395         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
396         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
397
398 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
399
400         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
401         DT_MIPS_RLD_MAP case for 64-bit targets.
402
403 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
404
405         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
406         ``temp_saved_regs'', not the pointer or other storage contiguous
407         to this pointer.
408
409 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
410
411         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
412         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
413         (mips_linux_get_longjmp_target): Delete declarations.
414         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
415         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
416         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
417         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
418         (mips_linux_get_longjmp_target)
419         (mips_linux_svr4_fetch_link_map_offsets): Make static.
420         (mips_linux_init_abi): New function.
421         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
422
423 2002-12-19  Keith Seitz  <keiths@redhat.com>
424
425         patch committed by Elena Zannoni  <ezannoni@redhat.com>
426         * thread.c (do_captured_list_thread_ids): Call prune_threads and
427         target_find_new_threads. Fix for PR mi/669.
428
429 2002-12-19  David Carlton  <carlton@math.stanford.edu>
430
431         * linespec.c (decode_line_1): Move code into decode_all_digits.
432         (decode_all_digits): New function.
433
434 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
435
436         * exec.c (print_section_info): Select a format string to use with
437         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
438
439 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
440
441         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
442         deprecated_update_current_frame_pc_hack.
443         (deprecated_update_frame_base_hack): New function.
444         * frame.h (deprecated_update_frame_pc_hack): Replace
445         (deprecated_update_frame_base_hack): Declare.
446         * infrun.c (normal_stop): Update.
447
448 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
449
450         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
451         frame_extra_info_zalloc.
452         (rs6000_frame_args_address): Use get_frame_extra_info.
453         (frame_get_saved_regs): Use get_frame_saved_regs.
454         (frame_initial_stack_address): Use get_frame_saved_regs and
455         get_frame_extra_info.
456         (frame_initial_stack_address): Use get_frame_extra_info.
457
458 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
459
460         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
461         array size.
462         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
463         checks for r3900_regnames[].
464
465 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
466
467         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
468         All uses changed
469         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
470
471 2002-12-17  David Carlton  <carlton@math.stanford.edu>
472
473         * symtab.c (lookup_partial_symbol): Don't search past the end of
474         the partial symbols.
475
476 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
477
478         * stack.c (frame_info): Use get_frame_saved_regs.
479         * breakpoint.c (until_break_command): Use get_frame_pc.
480
481 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
482
483         * buildsym.c (block_end_complaint, anon_block_end_complaint)
484         (innerblock_complaint, innerblock_anon_complaint)
485         (blockvector_complaint): Delete deprecated complaint structs.
486         (finish_block, make_blockvector, end_symtab): Replace calls
487         to complain() with calls to complaint().
488         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
489         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
490         (unexpected_type_complaint, bad_sclass_complaint)
491         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
492         Delete deprecated complaint structs.
493         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
494         Replace calls to complain() with calls to complaint().
495         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
496         (unknown_symtype_complaint, unknown_symchar_complaint)
497         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
498         (lbrac_mismatch_complaint, repeated_header_complaint)
499         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
500         Delete deprecated complaint structs.
501         (unknown_symtype_complaint, lbrac_mismatch_complaint)
502         (repeated_header_complaint)
503         (function_outside_compiliation_unit_complaint): New functions.
504         (add_old_header_file, find_corresponding_bincl_psymtab)
505         (set_namestring, find_stab_function_addr, read_dbx_symtab)
506         (process_one_symbol): Replace calls to complain() with, possibly
507         indirect, calls to complaint().
508         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
509         (unknown_attribute_form, unknown_attribute_length)
510         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
511         (const_ignored, botched_modified_type, op_deref2, op_deref4)
512         (basereg_not_handled, dup_user_type_allocation)
513         (dup_user_type_definition, missing_tag, bad_array_element_type)
514         (subscript_data_items, unhandled_array_subscript_format)
515         (unknown_array_subscript_format, not_row_major)
516         (missing_at_name): Delete deprecated complaint structs.
517         (bad_die_ref_complaint, unknown_attribute_form_complaint)
518         (dup_user_type_definition_complaint)
519         (bad_array_element_type_complaint): New functions.
520         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
521         (decode_subscript_data_item, dwarf_read_array_type)
522         (read_tag_string_type, read_subroutine_type, read_func_scope)
523         (locval, scan_partial_symbols, decode_modified_type)
524         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
525         (attribute_size): Replace calls to complain() with, possibly
526         indirect, calls to complaint().
527         * elfread.c (section_info_complaint, section_info_dup_complaint)
528         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
529         Delete deprecated complaint structs.
530         (elf_symtab_read, elfstab_offset_sections): Replace calls to
531         complain() with calls to complaint().
532         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
533         struct.
534         (stub_noname_complaint): New function.
535         (check_typedef, add_mangled_type): Replace calls to complain()
536         with calls to complaint().
537         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
538         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
539         (hpread_unhandled_type_complaint, hpread_struct_complaint)
540         (hpread_array_complaint, hpread_type_lookup_complaint)
541         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
542         (hpread_unhandled_common_complaint)
543         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
544         struct definitions and declarations.
545         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
546         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
547         Replace calls to complain() with, possibly indirect, calls to
548         complaint().
549         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
550         Likewise.
551         * mdebugread.c (bad_file_number_complaint, index_complaint)
552         (aux_index_complaint, block_index_complaint)
553         (unknown_ext_complaint, unknown_sym_complaint)
554         (unknown_st_complaint, block_overflow_complaint)
555         (basic_type_complaint, unknown_type_qual_complaint)
556         (array_index_type_complaint, bad_tag_guess_complaint)
557         (block_member_complaint, stEnd_complaint)
558         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
559         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
560         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
561         (bad_continued_complaint, bad_rfd_entry_complaint)
562         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
563         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
564         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
565         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
566         complaint structs.
567         (index_complaint, unknown_ext_complaint, basic_type_complaint)
568         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
569         (unexpected_type_code_complaint)
570         (function_outside_compilation_unit_complaint): New functions.
571         (parse_symbol, parse_type, upgrade_type, parse_procedure)
572         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
573         Replace calls to complain() with, possibly indirect calls to
574         complaint().
575         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
576         Delete deprecated complaint structs.
577         (lookup__objc_class, lookup_child_selector): Replace complain()
578         with complaint().
579         * remote-vx.c (cant_contact_target): Delete deprecated complaint
580         struct.
581         (vx_lookup_symbol): Replace complain() with complaint().
582         * stabsread.c (invalid_cpp_abbrev_complaint)
583         (invalid_cpp_type_complaint, member_fn_complaint)
584         (const_vol_complaint, error_type_complaint)
585         (invalid_member_complaint, range_type_base_complaint)
586         (reg_value_complaint, vtbl_notfound_complaint)
587         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
588         (unresolved_sym_chain_complaint, stabs_general_complaint)
589         (lrs_general_complaint, multiply_defined_struct): Delete
590         deprecated complaint structs.
591         (invalid_cpp_abbrev_complaint, ref_value_complaint)
592         (stabs_general_complaint, lrs_general_complaint)
593         (msg_unknown_complaint): New functions.
594         (dbx_lookup_type, read_cfront_baseclasses)
595         (read_cfront_member_functions, resolve_symbol_reference)
596         (define_symbol, resolve_live_range, add_live_range, read_type)
597         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
598         (read_one_struct_field, read_baseclasses, read_tilde_fields)
599         (read_cfront_static_fields, attach_fields_to_type)
600         (complain_about_struct_wipeout, read_range_type)
601         (common_block_start, common_block_end, cleanup_undefined_types)
602         (scan_file_globals): Replace complain() with complaint().
603         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
604         Delete deprecated complaint struct declarations.
605         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
606         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
607         (bf_not_found_complaint, ef_complaint, eb_complaint)
608         (function_outside_compilation_unit_complaint): New functions.
609         (record_include_begin, record_include_end, enter_line_range)
610         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
611         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
612         complain() with complaint().
613
614 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
615
616         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
617         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
618         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
619         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
620         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
621         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
622         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
623         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
624         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
625         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
626         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
627         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
628         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
629         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
630         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
631         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
632         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
633         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
634         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
635         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
636         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
637         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
638         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
639         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
640         * config/m88k/xm-dgux.h: Delete.
641         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
642         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
643         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
644         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
645         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
646         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
647         * ch-valprint.c: Delete.
648         
649 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
650
651         * infrun.c (handle_inferior_event): Rearrange code to resume if
652         no catchpoint triggers for an event.
653
654 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
655
656         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
657         and TARGET_WAITKIND_VFORKED cases.
658
659 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
660
661         * infrun.c (handle_inferior_event): Assume that catchpoints
662         are not affected by DECR_PC_AFTER_BREAK.
663
664 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
665
666         * target.c (update_current_target): Don't inherit DONT_USE.
667         * target.h (struct target_ops): Remove DONT_USE.
668         (target_next): Remove macro.
669
670 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
671
672         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
673
674 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
675
676         * arm-tdep.c (convert_from_extended): New argument to hold the
677         type of floating point result we want to convert to.  Make input 
678         argument const.  Fix all callers.
679         (convert_to_extended): Similarly.
680         (arm_extract_return_value): Now takes a regcache argument.  Change
681         code to use regcache accessor functions.  Correctly extract 
682         smaller-than-word results on big-endian machines.
683         (arm_store_return_value): Now takes a regcache argument.  Change
684         code to use regcache accessor functions.  Correctly zero/sign extend
685         smaller than word results before storing into r0.
686         (arm_gdbarch_init): Register new-style extract_return_value and
687         store_return_value functions.
688
689 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
690
691         * thread-db.c (thread_from_lwp): Uniquify error msg.
692         (lwp_from_thread): Ditto.
693         (check_event): Ditto.
694         (find_new_threads_callback): Ditto.
695         (thread_db_pid_to_str): Ditto.
696
697 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
698
699         * frame.h (get_frame_saved_regs): Declare.
700         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
701         pointer.
702         * frame.c (get_frame_saved_regs): New function.
703         (frame_saved_regs_zalloc): Return the allocated saved_regs.
704
705 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
706
707         * frame.c (deprecated_update_current_frame_pc_hack): New
708         function.
709         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
710         * infrun.c (normal_stop): Use said function instead of directly
711         modifying the frame's PC.
712         
713 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
714
715         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
716
717 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
718
719         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
720         config/mips/tm-irix6.h (NUM_REGS): Delete.
721         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
722         (temp_saved_regs): Declare as a pointer rather than an array.
723         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
724         that ``temp_saved_regs'' has storage allocated to it and that
725         it's the correct size.
726
727 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
728
729         * defs.h (init_last_source_visited): New prototype.
730         (add_path): Ditto.
731         * source.c (add_path): New function that adds to a specified path.
732         (mod_path): Change to call add_path.
733         (init_last_source_visited): New function to allow interfaces to
734         initialize static variable: last_source_visited.  Part of fix
735         for PR gdb/741.
736         * Makefile.in: Add support for mi/mi-cmd-env.c.
737
738 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
739
740         * frame.h (frame_id_unwind): Declare.
741         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
742         id_unwind_cache.
743         (frame_id_unwind_ftype): Declare.
744         * frame.c (frame_id_unwind): New function.
745         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
746         (create_new_frame, get_prev_frame): Pass id_unwind to
747         set_unwind_by_pc.
748         (frame_saved_regs_id_unwind): New function.
749         (frame_saved_regs_id_unwind): New function.
750         * dummy-frame.c (dummy_frame_id_unwind): New function.
751         (struct dummy_frame): Add field id.
752         (generic_push_dummy_frame): Initialize `id'.
753         * dummy-frame.h (dummy_frame_id_unwind): Declare.
754
755 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
756
757         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
758         pass that to set_momentary_breakpoint.  Move comments to where they
759         belong.
760         * frame.h (set_current_frame): Delete declaration.
761         * frame.c (set_current_frame): Delete function.
762
763 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
764
765         * frame.c (frame_extra_info_zalloc): New function.
766         * frame.h (frame_extra_info_zalloc): Declare.
767
768 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
769
770         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
771         in the previous prototype change to set_momentary_breakpoint.
772
773 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
774
775         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
776         and saw_child_exec.
777         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
778         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
779         (stop_stepping): Remove outdated check for child vfork events.
780
781 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
782
783         * GDB 5.3 released from gdb_5_3-branch.
784
785 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
786
787         * corelow.c (init_core_ops): Delete references to to_require_attach
788         and to_require_detach.
789         * exec.c (init_exec_ops): Likewise.
790         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
791         hppa_require_detach directly.
792         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
793         * inftarg.c (child_detach): Remove.
794         (child_detach_from_process): Rename to child_detach, remove
795         after_fork argument.
796         (child_attach): Remove.
797         (child_attach_to_process): Rename to child_attach, remove after_fork
798         argument.
799         (init_child_ops): Delete references to to_require_attach
800         and to_require_detach.
801         * infttrace.c (hppa_require_attach): Update comment.
802         * target.c (cleanup_target, update_current_target)
803         (init_dummy_target, setup_target_debug): Delete references to
804         to_require_attach and to_require_detach.
805         (find_default_require_detach, find_default_require_attach)
806         (debug_to_require_attach, debug_to_require_detach): Remove
807         functions.
808         * target.h (struct target_ops): Remove to_require_attach
809         and to_require_detach.
810         (target_require_attach, target_require_detach): Delete macros.
811         (find_default_require_detach, find_default_require_attach): Delete
812         prototypes.
813         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
814
815 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
816
817         * frame.c (get_frame_extra_info): New function.
818         * frame.h (get_frame_extra_info): Declare.
819
820 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
821
822         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
823         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
824         with `struct frame_id'.
825         (set_longjmp_resume_breakpoint): Ditto.
826         * infrun.c (handle_inferior_event): Update.
827         * breakpoint.c (watch_command_1, until_break_command): Update.
828         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
829         (handle_inferior_event, step_over_function): Update.
830         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
831         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
832         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
833         * infcmd.c (finish_command, run_stack_dummy): Update.
834
835 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
836
837         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
838         (dwarf2_non_const_array_bound_ignored)
839         (dwarf2_missing_line_number_section)
840         (dwarf2_statement_list_fits_in_line_number_section)
841         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
842         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
843         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
844         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
845         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
846         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
847         (dwarf2_missing_member_fn_type_complaint)
848         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
849         (dwarf2_const_value_length_mismatch)
850         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
851         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
852         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
853         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
854         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
855         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
856         complaints using deprecated struct..
857         (dwarf2_non_const_array_bound_ignored_complaint)
858         (dwarf2_complex_location_expr_complaint)
859         (dwarf2_unsupported_at_frame_base_complaint)
860         (dwarf2_const_value_length_mismatch_complaint)
861         (dwarf2_macros_too_long_complaint)
862         (dwarf2_macro_malformed_definition_complaint)
863         (dwarf2_invalid_attrib_class_complaint): New functions.
864         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
865         (read_structure_scope, read_array_type, read_common_block)
866         (read_tag_pointer_type, read_base_type, read_partial_die)
867         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
868         (new_symbol, dwarf2_const_value, read_type_die)
869         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
870         (parse_macro_definition, dwarf_decode_macros): Replace calls to
871         complain() with, possibly indirect, calls to complaint().
872
873 2002-12-11  Andrew Cagney  <cagney@redhat.com>
874
875         * frame.c (deprecated_get_frame_saved_regs): Rename
876         get_frame_saved_regs.
877         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
878         * sparc-tdep.c: Update.
879         * hppa-tdep.c: Update.
880         * h8500-tdep.c: Update.
881
882 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
883
884         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
885         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
886         ``char *'' for return and parameter types.
887         * gdbarch.h, gdbarch.c: Regenerate.
888         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
889         return type from ``char *'' to ``const char *''.
890         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
891         const.
892
893 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
894
895         * i386-tdep.c: Include "dummy-frame.h".
896         (i386_frame_chain, i386_frame_saved_pc): Replace
897         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
898         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
899
900 2002-12-10  Andrew Cagney  <cagney@redhat.com>
901
902         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
903         Change to a function with predicate.
904         * gdbarch.h, gdbarch.c: Re-generate.
905         * frame.c (get_prev_frame): Update.  Test
906         DEPRECATED_INIT_FRAME_PC_P.
907         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
908         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
909         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
910         * alpha-tdep.c (alpha_gdbarch_init): Update.
911         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
912         * mips-tdep.c (mips_gdbarch_init): Update.
913         * i386-interix-tdep.c (i386_interix_init_abi): Update.
914         * arm-tdep.c: Update comments.
915         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
916         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
917         * frv-tdep.c (frv_gdbarch_init): Ditto.
918         * x86-64-tdep.c (x86_64_init_abi): Ditto.
919         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
920         * s390-tdep.c (s390_gdbarch_init): Ditto.
921         * v850-tdep.c (v850_gdbarch_init): Ditto.
922         * vax-tdep.c (vax_gdbarch_init): Ditto.
923         * sh-tdep.c (sh_gdbarch_init): Ditto.
924         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
925         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
926         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
927         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
928         * i386-tdep.c (i386_gdbarch_init): Ditto.
929         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
930         * cris-tdep.c (cris_gdbarch_init): Ditto.
931         * avr-tdep.c (avr_gdbarch_init): Ditto.
932         * arm-tdep.c (arm_gdbarch_init): Ditto.
933         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
934         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
935
936 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
937
938         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
939         CHILD_FOLLOW_FORK.
940         * hppah-nat.c (saved_vfork_pid): Add.
941         (child_post_follow_vfork): Remove.
942         (child_follow_fork): New function.
943         (child_wait): Call detach_breakpoints after receiving the child vfork.
944         Call child_resume directly instead of going through resume ().
945         Make sure we have the exec before reporting the vfork.
946         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
947         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
948         (follow_fork): New function.  Call target_follow_fork.
949         (follow_inferior_reset_breakpoints): New function broken out from
950         old follow_inferior_fork.
951         (resume): Remove hack to follow exec after vfork.
952         * inftarg.c (child_post_follow_vfork): Remove.
953         (child_follow_fork): New function.
954         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
955         * target.c (cleanup_target): Replace to_post_follow_vfork with
956         to_follow_fork.
957         (update_current_target): Likewise.
958         (setup_target_debug): Likewise.
959         (debug_to_post_follow_vfork): Remove.
960         (debug_to_follow_fork): New function.
961         * target.h (struct target_ops): Replace to_post_folow_vfork with
962         to_follow_fork.
963         (child_post_follow_vfork): Remove prototype.
964         (child_follow_fork): Add prototype.
965         (target_post_follow_vfork): Remove macro.
966         (target_follow_fork): Add macro.
967
968 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
969
970         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
971         (child_post_follow_vfork): Cancel pending exec event if we follow
972         the parent.
973         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
974         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
975         event at the following wait call if necessary.
976         * infrun.c (follow_vfork): Don't follow_exec here.
977         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
978         case about HP/UX 10.20.  Remove code pushed down to
979         hppah-nat.c:child_wait.
980         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
981         vfork_in_flight is set.
982
983 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
984
985         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
986         for the parent's fork event.
987         * infrun.c (handle_inferior_event): Only expect one fork event.
988         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
989         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
990
991 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
992
993         * PROBLEMS: Delete reference to PR gdb/725.
994         
995         * MAINTAINERS (gdb.c++): Add David Carlton.
996
997 2002-12-09  David Carlton  <carlton@math.stanford.edu>
998
999         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1000         * cli/cli-cmds.c: Ditto.
1001
1002 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1003
1004         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1005         function address in <>.
1006         * gdbarch.c: Re-generate.
1007
1008 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1009
1010         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1011
1012 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1013
1014         * linespec.c (symtab_from_filename): New function.
1015         (decode_line_1): Move code into symtab_from_filename.
1016
1017 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1018
1019         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1020
1021 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1022
1023         * f-valprint.c (info_common_command): Use get_frame_pc.
1024         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1025         * ax-gdb.c (agent_command): Ditto.
1026         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1027         (rs6000_pop_frame): Ditto.
1028         (rs6000_frameless_function_invocation): Ditto.
1029         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1030         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1031         * macroscope.c (default_macro_scope): Ditto.
1032         * stack.c (print_frame_info_base): Ditto.
1033         (print_frame, frame_info, print_frame_label_vars): Ditto.
1034         (return_command, func_command, get_frame_language): Ditto.
1035         * infcmd.c (finish_command): Ditto.
1036         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1037         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1038         (break_at_finish_at_depth_command_1): Ditto.
1039         (break_at_finish_command_1): Ditto.
1040         (until_break_command, get_catch_sals): Ditto.
1041         * blockframe.c (func_frame_chain_valid): Ditto.
1042         (frameless_look_for_prologue): Ditto.
1043         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1044
1045 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1046
1047         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1048         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1049
1050 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1051
1052         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1053         to pure functions.
1054         * gdbarch.h, gdbarch.c: Re-generate.
1055         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1056         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1057
1058         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1059         declaration to a function returning a CORE_ADDR.
1060         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1061         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1062         (init_frame_pc_default): Ditto.
1063         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1064         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1065         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1066         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1067         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1068         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1069
1070         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1071         to init_frame_pc_noop.
1072         (i386_interix_init_frame_pc): Delete function.
1073         * z8k-tdep.c (init_frame_pc): Delete function.
1074         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1075         (INIT_FRAME_PC_FIRST): Ditto.
1076         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1077         (INIT_FRAME_PC_FIRST): Ditto.
1078         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1079         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1080         init_frame_pc_noop.
1081         (INIT_FRAME_PC_FIRST): Convert to an expression.
1082         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1083
1084 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1085
1086         * blockframe.c: Use get_frame_base instead of directly accessing
1087         the `struct frame_info' member frame.
1088         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1089         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1090
1091 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1092
1093         * Makefile.in (readline_h): Define.
1094         (completer.o): Depend on readline_h.
1095         (corelow.o): Ditto.
1096         (event-top.o): Ditto.
1097         (exec.o): Ditto.
1098         (solib.o): Ditto.
1099         (source.o): Ditto. 
1100         (symfile.o): Ditto. 
1101         (symmisc.o): Ditto. 
1102         (top.o): Ditto.
1103         (tracepoint.o): Ditto. 
1104         (utils.o): Ditto.
1105         (cli-dump.o): Ditto.
1106         (tui-hooks.o): Ditto. 
1107         (tuiWin.o): Ditto. 
1108
1109 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1110
1111         More cleanup from import of readline 4.3.
1112         * completer.h (complete_line, readline_line_completion_function):
1113         Update prototypes.
1114         (line_completion_function): Removed, not used outside of completer.c.
1115         * completer.c (readline_line_completion_function,
1116         complete_function, line_completion_function): Use const for first
1117         parameter.
1118         (line_completion_function): Make static.
1119         (filename_completer): filename_completion_function is now called
1120         rl_filename_completion_function
1121         * corelow.c: Include <readline/readline.h>.
1122         * exec.c: Ditto.
1123         * solib.c: Ditto.
1124         * source.c: Ditto.
1125         * symfile.c: Ditto.
1126         * symmisc.c: Ditto.
1127         * top.c (init_main): No need to coerce
1128         readline_line_completion_function anymore.
1129         * cli/cli-dump.c: Include <readline/readline.h>.
1130
1131 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1132
1133         * stack.c (frame_info): Use get_prev_frame.
1134         * blockframe.c (frame_address_in_block): Ditto.
1135         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1136         (rs6000_frameless_function_invocation): Ditto.
1137         (rs6000_frame_saved_pc): Ditto.
1138         (rs6000_frame_chain): Ditto.
1139         * arch-utils.c (init_frame_pc_default): Ditto.
1140
1141 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1142
1143         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1144         Delete redundant definition.
1145
1146 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1147
1148         Import of readline 4.3:
1149         * cli/cli-cmds.c: Include readline/tilde.h.
1150         * cli/cli-setshow.c: Ditto.
1151         * defs.h: Don't declare tilde_expand anymore, since readline
1152         exports it.
1153
1154 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1155
1156         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1157         -Werror on this file.
1158
1159 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1162         the format name.
1163         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1164         * gdbarch.c: Regenerate.
1165         
1166 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1167
1168         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1169         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1170         provide a default value.
1171         * gdbarch.h, gdbarch.c: Regenerate.
1172         * frame.c (get_prev_frame): Update.  Check
1173         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1174         * s390-tdep.c (s390_gdbarch_init): Update.
1175         * mips-tdep.c (mips_gdbarch_init): Update.
1176         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1177         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1178         * alpha-tdep.c (alpha_gdbarch_init): Update.
1179         
1180 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1181
1182         * ia64-linux-nat.c: Include gdb_string.h.
1183         * alpha-nat.c: Ditto.
1184         * ppc-linux-nat.c: Ditto.
1185         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1186         Update dependencies.
1187
1188 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1189
1190         * gdbthread.h: Include "frame.h".
1191         (struct thread_info): Replace step_frame_address with
1192         step_frame_id.
1193         * inferior.h: Include "frame.h".
1194         (step_frame_id): Replace external variable step_frame_address.
1195         * gdbthread.h (save_infrun_state): Replace step_frame_address
1196         parameter with step_frame_id parameter.
1197         (load_infrun_state): Ditto.
1198         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1199         * infcmd.c (step_frame_id, step_1, step_once): Update.
1200         * thread.c (load_infrun_state, save_infrun_state): Update.
1201         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1202         (handle_inferior_event, step_over_function): Update.
1203         (normal_stop, context_switch, restore_inferior_status): Update.
1204         (struct inferior_status): Replace step_frame_address with
1205         step_frame_id.
1206
1207 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1208
1209         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1210         DW_TAG_member as well as a declaration as being a C++ static data
1211         member.
1212         (read_structure_scope): Combine tests for DW_TAG_member and
1213         DW_TAG_variable.
1214
1215 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1216
1217         * linespec.c (decode_compound): New function.
1218         (decode_line_1): Move code into decode_compound.
1219
1220 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1221
1222         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1223         argument.
1224         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1225         the static block.  See PR gdb/804.
1226
1227 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1228
1229         * symtab.c (lookup_symbol_aux_block): New function.
1230         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1231
1232 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1233
1234         * gdbarch.sh: Dump the predicate function and macro values.
1235         (read): Print error on standard error.
1236         * gdbarch.c: Regenerate.
1237         
1238 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1239
1240         * Makefile.in (mips_tdep_h): Define.
1241         (mips-tdep.o): Add mips_tdep_h to dependency list.
1242         * mips-tdep.h: New file.
1243         * mips-tdep.c (mips-tdep.h): Include.
1244         (enum mips_abi): Move to mips-tdep.h.
1245         (mips_abi): New function.
1246
1247 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1248
1249         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1250
1251 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1252
1253         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1254         function.
1255         (lookup_symbol_aux_minsyms): New function.
1256
1257 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1258
1259         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1260
1261 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1262
1263         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1264         which is an obsolete macro name.
1265
1266 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1267
1268         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1269         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1270
1271 2002-12-03  H.J. Lu  (hjl@gnu.org)
1272
1273         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1274         (create_breakpoints): Make sure the addr_string field is not
1275         NULL.
1276
1277 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * sparc-nat.c (fetch_inferior_registers)
1280         (store_inferior_registers): Add comment on problem of LWP vs
1281         threads.
1282         
1283         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1284         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1285         (lin_lwp_store_registers): Remove.
1286         (init_lin_lwp_ops): Use fetch_inferior_registers
1287         and store_inferior_registers directly.
1288         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1289         (store_inferior_registers): Likewise.
1290         Fix PR gdb/725.
1291
1292 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1293
1294         * frame.h (get_frame_id): Convert to a function.
1295         (null_frame_id, frame_id_p): Declare.
1296         (frame_id_eq, frame_id_inner): Declare.
1297         (frame_id_build): New function.
1298         * frame.c (get_frame_id): Update.  Use null_frame_id.
1299         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1300         frame_id_inner.
1301         (null_frame_id, frame_id_p): Define.
1302         (frame_id_eq, frame_id_inner): Define.
1303         (frame_id_build): New function.
1304         * varobj.c (varobj_create): Update.
1305         (varobj_update): Update.
1306         * valops.c (value_assign): Update.
1307         (new_root_variable): Update.
1308         * infrun.c (save_inferior_status): Update.
1309         * breakpoint.c (watch_command_1): Update.
1310
1311 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1312
1313         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1314         (SNAP2): Likewise.
1315
1316 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1317
1318         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1319         patch.
1320
1321         * PROBLEMS: Mention PR gdb/725.
1322
1323 2002-12-03  Andreas Schwab  <schwab@suse.de>
1324
1325         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1326
1327 2002-12-02  Adam Fedor  <fedor@gnu.org>
1328             Klee Dienes  <kdienes@apple.com>
1329
1330         * objc-lang.c (objc_printstr): Add width arg to match
1331         printstr prototype.
1332         (compare_selectors): Add 'const' to arg types.
1333         (compare_classes): Likewise.
1334         (find_imps): Cast msym pointer to avoid compiler warning.
1335         (print_object_command): Validate the address before
1336         passing it to the print routine.
1337         (find_objc_msgcall_submethod): Change function argument to
1338         return an int.
1339         * objc-lang.h: Add 'extern' to all function declarations.
1340         (value_nsstring): Add declaration.
1341
1342 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1343
1344         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1345         Fixes a build failure on HP/UX.
1346
1347         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1348         failure on HP/UX. 
1349         (hpread_has_name): Advance declaration to avoid a compilation warning.
1350         (pst_syms_count): Add missing variable type. By change, the compiler
1351         was defaulting to int, which seems a good choice. Fixes a compilation
1352         warning.
1353         (pst_syms_size): Likewise.
1354  
1355 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1356
1357         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1358         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1359         later to set the proper gdbarch methods depending on the osabi.
1360         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1361
1362 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1363
1364         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1365         * osabi.c (gdb_osabi_name): Add strings images for the two new
1366         enum values.
1367         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1368
1369 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1370
1371         * MAINTAINERS (Java): Global maintainers are responible for Java.
1372         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1373         part Java maintainers.
1374
1375 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1376
1377         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1378         Fixes a compilation failure on AiX.
1379
1380 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1381
1382         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1383         why aix-thread.o is not listed.
1384
1385 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1386
1387         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1388         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1389         * gdbarch.h, gdbarch.c: Re-generate.
1390         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1391         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1392         * config/pa/tm-hppa.h, frame.h: Update.
1393         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1394         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1395         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1396         * cris-tdep.c, alpha-tdep.c: Update.
1397         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1398         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1399         (get_prev_frame): Ditto.
1400
1401 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1402
1403         * exec.c (xfer_memory): Replace boolean with int.
1404         * p-exp.y: Use 0 instead of false.
1405         * corelow.c (gdb_check_format): Change return type to int from
1406         boolean.
1407         * utils.c: Don't include <curses.h> or <term.h> first.
1408
1409 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1410
1411         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1412         (m68hc11_register_byte): Remove.
1413         (m68hc11_gdbarch_init): Don't set the above.
1414
1415 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1416
1417         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1418         by calling get_selected_frame.
1419         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1420         set_current_frame, create_new_frame, select_frame and
1421         get_current_frame.
1422         * remote-e7000.c (e7000_start_remote): Ditto.
1423         * remote-mips.c (common_open): Ditto
1424         * remote-rdp.c (remote_rdp_open): Ditto.
1425
1426 2002-11-29  Andreas Schwab  <schwab@suse.de>
1427
1428         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1429         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1430         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1431         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1432         read_memory_unsigned_integer instead of read_memory_integer when
1433         dealing with addresses and instruction opcodes.
1434         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1435         (m68k_linux_frame_saved_pc): Likewise.
1436
1437 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1438
1439         * stack.c (selected_frame, select_frame): Move from here ...
1440         * frame.c (selected_frame, select_frame): ... to here.  Include
1441         "language.h".
1442         * Makefile.in (frame.o): Update dependencies.
1443         * frame.c (get_selected_frame): New function.
1444         * frame.h (get_selected_frame): Declare.
1445         (deprecated_selected_frame): Rename selected_frame.
1446         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1447         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1448         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1449         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1450         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1451         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1452         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1453         * z8k-tdep.c, cli/cli-cmds.c: Update.
1454         
1455 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1456
1457         * frame.h (get_selected_block): Add comments.
1458
1459 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1460
1461         * frame.c (pc_notcurrent): New function.
1462         (find_frame_sal): New function.
1463         * frame.h (find_frame_sal): Declare.
1464         (struct symtab_and_line): Add opaque declaration.
1465         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1466         find_pc_line.
1467         (frame_info): Ditto.
1468         * ada-lang.c (find_printable_frame): Ditto.
1469
1470 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1471
1472         * configure.in: Check that the pthdebug library is recent enough
1473         before enabling thread support on native AiX.
1474         * configure: Regenerate.
1475
1476         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1477         from the list of object files as it is now appended by configure
1478         if thread support is enabled.
1479         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1480         if thread support is enabled.
1481
1482 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1483
1484         * stack.c (get_selected_block): In-line get_current_block.
1485         * frame.h (get_current_block): Delete declaration.
1486         * blockframe.c (get_current_block): Delete function.
1487
1488 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1489
1490         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1491         USE_GENERIC_DUMMY_FRAMES.
1492         * gdbarch.h, gdbarch.c: Regenerate.
1493         * valops.c, frame.c: Update.
1494         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1495         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1496         * config/pa/tm-hppa.h, blockframe.c: Update.
1497         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1498         * m68k-tdep.c, alpha-tdep.c: Ditto.
1499
1500         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1501         * mips-tdep.c: Ditto.
1502
1503 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1504
1505         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1506         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1507         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1508         * gdbarch.c, gdbarch.h: Re-generate.
1509         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1510         (CALL_DUMMY_LOCATION): Delete macro definition.
1511         (PC_IN_CALL_DUMMY): Delete macro definitions.
1512         
1513         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1514         default is already generic_pc_in_call_dummy.
1515         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1516         * v850-tdep.c (v850_gdbarch_init): Ditto.
1517         * sh-tdep.c (sh_gdbarch_init): Ditto.
1518         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1519         * mips-tdep.c (mips_gdbarch_init): Ditto.
1520         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1521         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1522         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1523         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1524         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1525         * avr-tdep.c (avr_gdbarch_init): Ditto.
1526         
1527         * arm-tdep.c (arm_gdbarch_init): Do not set
1528         use_generic_dummy_frames, default is already 1.
1529         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1530         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1531         * v850-tdep.c (v850_gdbarch_init): Ditto.
1532         * sh-tdep.c (sh_gdbarch_init): Ditto.
1533         * s390-tdep.c (s390_gdbarch_init): Ditto.
1534         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1535         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1536         * mips-tdep.c (mips_gdbarch_init): Ditto.
1537         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1538         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1539         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1540         * i386-tdep.c (i386_gdbarch_init): Ditto.
1541         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1542         * frv-tdep.c (frv_gdbarch_init): Ditto.
1543         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1544         * cris-tdep.c (cris_gdbarch_init): Ditto.
1545         * avr-tdep.c (avr_gdbarch_init): Ditto.
1546
1547         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1548         call_dummy_location, default is already AT_ENTRY_POINT.
1549         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1550         * v850-tdep.c (v850_gdbarch_init): Ditto.
1551         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1552         * sh-tdep.c (sh_gdbarch_init): Ditto.
1553         * s390-tdep.c (s390_gdbarch_init): Ditto.
1554         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1555         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1556         * mips-tdep.c (mips_gdbarch_init): Ditto.
1557         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1558         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1559         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1560         * i386-tdep.c (i386_gdbarch_init): Ditto.
1561         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1562         * frv-tdep.c (frv_gdbarch_init): Ditto.
1563         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1564         * cris-tdep.c (cris_gdbarch_init): Ditto.
1565         * avr-tdep.c (avr_gdbarch_init): Ditto.
1566         * arm-tdep.c (arm_gdbarch_init): Ditto.
1567         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1568
1569 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1570
1571         * frame.h: Update comments on set_current_frame, create_new_frame,
1572         flush_cached_frames, reinit_frame_cache, select_frame and
1573         selected_frame.
1574         
1575 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1576
1577         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1578         deprecated pc_in_call_dummy function.
1579         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1580         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1581         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1582         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1583         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1584
1585 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1586
1587         * Makefile.in: Remove Tix dependencies.
1588         * acinclude.m4: Ditto.
1589         * aclocal.m4: Ditto.
1590         * configure.in: Ditto.
1591         * configure: Regenerated.
1592         
1593 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1594
1595         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1596         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1597         * gdbarch.c: Re-generate.
1598         
1599 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1600
1601         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1602         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1603         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1604         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1605         pc_in_call_dummy_at_entry_point.
1606         * config/pa/tm-hppa.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/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1610         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1611         pc_in_call_dummy_on_stack.
1612         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1613         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1614         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1615         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1616         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1617         
1618 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1619
1620         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1621         pc_in_call_dummy_before_text_end
1622         (deprecated_pc_in_call_dummy_after_text_end): Rename
1623         pc_in_call_dummy_after_text_end.
1624         (deprecated_pc_in_call_dummy_on_stack): Rename
1625         pc_in_call_dummy_on_stack.
1626         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1627         pc_in_call_dummy_at_entry_point.
1628         * m68k-tdep.c (m68k_gdbarch_init): Update.
1629         * s390-tdep.c (s390_gdbarch_init): Update.
1630         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1631         * vax-tdep.c (vax_gdbarch_init): Update.
1632         * sparc-tdep.c (sparc_gdbarch_init): Update.
1633         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1634         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1635         * i386-tdep.c (i386_gdbarch_init): Update.
1636         * frv-tdep.c (frv_gdbarch_init): Update.
1637         * cris-tdep.c (cris_gdbarch_init): Update.
1638         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1639         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1640         (deprecated_pc_in_call_dummy_after_text_end)
1641         (deprecated_pc_in_call_dummy_on_stack)
1642         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1643         * alpha-tdep.c (alpha_gdbarch_init): Update.
1644
1645 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1646
1647         * acconfig.h (HAVE_PREAD64): Add.
1648         * configure.in: Check for pread64.
1649         * config.in: Regenerated.
1650         * configure: Regenerated.
1651         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1652         * linux-proc.c (linux_proc_xfer_memory): New function.
1653         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1654
1655 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1656
1657         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1658         pdi's with no name.
1659
1660 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1661
1662         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1663         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1664
1665 2002-11-25  Jim Blandy  <jimb@redhat.com>
1666
1667         * symfile.c (init_objfile_sect_indices): New function.
1668         (default_symfile_offsets): Move the section-index-initializing
1669         stuff into init_objfile_sect_indices, and call that.
1670
1671         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1672         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1673
1674         * symfile.c (syms_from_objfile): Adjust indentation.
1675
1676         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1677         || info_verbose isn't true.
1678
1679 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1680
1681         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1682         default to get_frame_base.
1683         * gdbarch.h, gdbarch.c: Regenerate.
1684         * arch-utils.c (default_frame_address): Delete function.
1685         * arch-utils.h (default_frame_address): Delete declaration
1686
1687 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1688
1689         * varobj.c (find_frame_addr_in_frame_chain):
1690         Use get_frame_base instead of FRAME_FP,
1691         obvious fix.
1692
1693 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1694
1695         * frame.h (FRAME_FP): Delete macro.
1696         (get_frame_base): New function declaration.
1697         * frame.c (get_frame_base): New function.
1698         (get_frame_id): Use ->frame.
1699         (frame_find_by_id): Rewrite to use get_frame_id.
1700         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1701         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1702         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1703         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1704         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1705         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1706         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1707
1708 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1709
1710         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1711
1712 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1713
1714         * frame.c (set_unwind_by_pc): Revert change below, use
1715         PC_IN_CALL_DUMMY.
1716         (get_prev_frame): Ditto.
1717
1718 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1719
1720         * dummy-frame.c (pc_in_dummy_frame): New function.
1721         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1722         (find_dummy_frame): Update comment.
1723         (generic_pop_current_frame): Use get_frame_type.
1724         * dummy-frame.h (pc_in_dummy_frame): Declare.
1725         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1726         (create_new_frame): Use pc_in_dummy_frame.
1727         (get_prev_frame): Use pc_in_dummy_frame.
1728         (frame_saved_regs_register_unwind): Use get_prev_frame.
1729         (deprecated_generic_get_saved_register): Use get_prev_frame.
1730
1731 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1732
1733         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1734         from here ...
1735         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1736         (varobj_create): Note that frame ID should be used.
1737         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1738
1739 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1740
1741         * breakpoint.c: Include "gdb_assert.h".
1742         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1743         not being used.
1744         * Makefile.in (breakpoint.o): Update dependencies.
1745         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1746         deprecated_frame_in_dummy.
1747         * stack.c (print_frame_info_base): Ditto.
1748         (frame_info): Ditto.
1749         (print_frame_info_base): Ditto.  Delete dead code.
1750         
1751 2002-11-23  Andreas Schwab  <schwab@suse.de>
1752
1753         * Makefile.in (m68k_tdep_h): Define.
1754         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1755         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1756         * m68k-tdep.c: Move register number enum ...
1757         * m68k-tdep.h: ... to this new file and rename the constants from
1758         E_* to M68K_*.  All uses changed.
1759         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1760         * abug-rom.c: Include "m68k-tdep.h".  Use
1761         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1762         * cpu32bug-rom.c: Likewise.
1763         * dbug-rom.c: Likewise.
1764         * m68k-tdep.c: Likewise.
1765         * m68klinux-nat.c: Likewise.
1766         * remote-est.c: Likewise.
1767         * rom68k-rom.c: Likewise.
1768         * config/m68k/tm-linux.h: Likewise.
1769
1770 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1771
1772         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1773         dummy frame initialization code.
1774         * mips-tdep.c (mips_gdbarch_init): Ditto.
1775
1776 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1777
1778         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1779         attach will hang.
1780
1781 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1782
1783         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1784         to default_frame_address.
1785         * gdbarch.h, gdbarch.c: Re-generate.
1786
1787         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1788         or frame_locals_address to default_frame_address.
1789         * m68k-tdep.c (m68k_gdbarch_init): Update.
1790         * i386-tdep.c (i386_gdbarch_init): Update.
1791         * frv-tdep.c (frv_gdbarch_init): Update.
1792         * sh-tdep.c (sh_gdbarch_init): Update.
1793         * v850-tdep.c (v850_gdbarch_init): Update.
1794         * sparc-tdep.c (sparc_gdbarch_init): Update.
1795         * mips-tdep.c (mips_gdbarch_init): Update.
1796         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1797         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1798         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1799
1800         * cris-tdep.c (cris_frame_args_address): Delete function.
1801         (cris_frame_locals_address): Delete function.
1802         (cris_gdbarch_init): Do not set frame_args_address or
1803         frame_locals_address.
1804
1805 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1806
1807         * thread-db.c (thread_db_load): Tell the user what's going on
1808         if dlopen fails on libthread_db.
1809
1810 2002-11-23  Andreas Schwab  <schwab@suse.de>
1811
1812         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1813         invariant return values.
1814
1815 2002-11-22  Andreas Schwab  <schwab@suse.de>
1816
1817         * valops.c (value_slice): Move declaration of `offset' to avoid
1818         warning.
1819
1820 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1821
1822         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1823         (struct so_stuff): Add end_addr field.
1824         (register_loaded_dll): Calculate and store end address of loaded dll.
1825         (solib_address): New function.
1826         (child_solib_loaded_library_pathname): Pass carefully constructed
1827         section info to safe_symbol_file_add rather than ignoring it.
1828         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1829         DLL is loaded.
1830         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1831         (child_create_inferior): Fix a compiler warning.
1832         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1833         (solib_address): Declare new function.
1834
1835 2002-11-22  Andreas Schwab  <schwab@suse.de>
1836
1837         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1838         and FPS registers.
1839
1840 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1841
1842         * maint.c (_initialize_maint_cmds): Fix typo.  From
1843         Francesco Potorti` <pot@gnu.org>.
1844
1845 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1846
1847         * mips-tdep.c (mips_dump_tdep): Delete references to
1848         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1849         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1850         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1851         * printcmd.c (build_address_symbolic): Delete calls to
1852         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1853         (address_info): Ditto.
1854         Fix PR gdb/773.
1855         
1856 2002-11-19  Klee Dienes  <kdienes@apple.com>
1857             Adam Fedor  <fedor@gnu.org>
1858
1859         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1860         the ability to explicitly specify the quote characters and word
1861         break characters; if NULL is specified for either, use the old
1862         behavior of using the characters used by the completer.
1863         (skip_chars): New function.  Convenience wrapper around
1864         skip_quoted_chars to provide the original skip_chars behavior.
1865         * completer.h (skip_quoted_chars): Add prototype.
1866
1867 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1868
1869         Problems reported by Paul Eggert.
1870         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1871
1872 2002-11-19  Andreas Schwab  <schwab@suse.de>
1873
1874         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1875         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1876         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1877         (m68k_linux_frame_saved_pc): Move to ...
1878         * m68klinux-tdep.c: ... here.  New file.
1879         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1880         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1881
1882 2002-11-19  Adam Fedor  <fedor@gnu.org>
1883
1884         * objc-exp.y: Revert to old skip_quoted usage.
1885
1886 2002-11-19  Adam Fedor  <fedor@gnu.org>
1887
1888         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1889         (objc_lang_h): Define.
1890         (YYFILES): Add objc-exp.tab.c.
1891         (local-maintainer-clean): Remove objc-exp.tab.c.
1892         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1893         
1894 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1895
1896         * p-exp.y (typecast rule): Add automatic dereference of
1897         pascal classes if needed.
1898         (THIS): Set current_type.
1899         Automatically dereference pascal classes. 
1900         (typebase rule): Add ^typebase recognition.
1901
1902 2002-11-18  Adam Fedor  <fedor@gnu.org>
1903
1904         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1905         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1906         (op_name): Handle OP_OBJC_SELF.
1907         * Makefile.in (expprint.o): Add additional depends.
1908
1909 2002-11-18  Adam Fedor  <fedor@gnu.org>
1910
1911         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1912         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1913         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1914         * objc-exp.y: Likewise. 
1915
1916 2002-11-18  Adam Fedor  <fedor@gnu.org>
1917
1918         * gdb/parser-defs.h: (struct objc_class_str): New structure
1919         for parsing ObjC classes.
1920
1921 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1922
1923         * stack.c (frame_relative_level): Copy function from here ...
1924         * frame.c (frame_relative_level): ...to here.
1925
1926 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1927
1928         * frame.h (enum frame_type): Define.
1929         (get_frame_type): Declare.
1930         (struct frame_info): Add field `type'.  Delete field
1931         signal_handler_caller.
1932         (deprecated_set_frame_signal_handler_caller): Declare.
1933         * frame.c (get_frame_type): New function.
1934         (deprecated_set_frame_type): New function.
1935         (create_new_frame): Set the frame's type.
1936         (get_prev_frame): Similar.
1937         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1938         * s390-tdep.c: Ditto.
1939         * m68klinux-nat.c: Ditto.
1940         * ns32k-tdep.c: Ditto.
1941         * x86-64-linux-tdep.c: Ditto.
1942         * vax-tdep.c: Ditto.
1943         * rs6000-tdep.c: Ditto.
1944         * ppc-linux-tdep.c: Ditto.
1945         * i386-interix-tdep.c: Ditto.
1946         * mips-tdep.c: Ditto.
1947         * m68k-tdep.c: Ditto.
1948         * hppa-tdep.c: Ditto.
1949         * ia64-tdep.c: Ditto.
1950         * cris-tdep.c: Ditto.
1951         * arm-tdep.c: Ditto.
1952         * alpha-tdep.c: Ditto.
1953         * i386-tdep.c: Ditto.
1954         * stack.c: Ditto.
1955         * ada-lang.c: Ditto.
1956         * blockframe.c: Update.
1957         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1958         deprecated_set_frame_type instead of signal_handler_caller.
1959         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1960         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1961         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1962
1963 2002-11-18   Klee Dienes  <kdienes@apple.com>
1964
1965         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1966
1967 2002-11-18  Klee Dienes  <kdienes@apple.com>
1968
1969         * buildsym.c (pop_context): Add comment.
1970         
1971 2002-11-18  Klee Dienes  <kdienes@apple.com>
1972
1973         * buildsym.h (pop_context): Convert to function, defined in
1974         buildsym.c.
1975         * buildsym.c: Include gdb_assert.h.
1976         (pop_context): Implement as C function.  Add check for stack
1977         underflow.
1978         * dbxread.c (process_one_symbol): Complain and stop processing
1979         that symbol if we are already at the top of the context stack for
1980         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1981         when processing N_RBRAC.
1982
1983 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1984
1985         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1986         define.
1987         (struct target_waitstatus): Add opaque definition.
1988         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1989         * exec.c (init_exec_ops): Likewise.
1990         * fork-child.c (clone_and_follow_inferior): Remove.
1991         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1992         * inferior.h (clone_and_follow_inferior): Remove prototype.
1993         * infrun.c (follow_fork_mode_both): Remove.
1994         (follow_fork_mode_kind_names): Remove commented out "both".
1995         (follow_inferior_fork): Remove follow_fork_mode_both support.
1996         * inftarg.c (child_clone_and_follow_inferior): Remove.
1997         (child_post_follow_inferior_by_clone): Remove.
1998         (init_child_ops): Don't set to_clone_and_follow_inferior
1999         or to_post_follow_inferior_by_clone.
2000         * target.c (default_clone_and_follow_inferior): Remove.
2001         (cleanup_target): Don't set to_clone_and_follow_inferior
2002         or to_post_follow_inferior_by_clone.
2003         (find_default_clone_and_follow_inferior): Remove.
2004         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2005         (debug_to_clone_and_follow_inferior): Remove.
2006         (debug_to_post_follow_inferior_by_clone): Remove.
2007         (setup_target_debug): Don't set to_clone_and_follow_inferior
2008         or to_post_follow_inferior_by_clone.
2009         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2010         and to_post_follow_inferior_by_clone.
2011         (child_clone_and_follow_inferior): Remove prototype.
2012         (child_post_follow_inferior_by_clone): Remove prototype.
2013         (target_clone_and_follow_inferior): Remove macro.
2014         (target_post_follow_inferior_by_clone): Remove macro.
2015         (find_default_clone_and_follow_inferior): Remove prototype.
2016
2017 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2018
2019         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2020         inferior_has_vforked, and inferior_has_execd instead of
2021         target_has_forked, target_has_vforked, and target_has_execd.
2022         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2023         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2024         (CHILD_WAIT): Define.
2025         (child_wait): Add prototype.
2026         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2027         Add prototype.
2028         (hpux_has_vforked): Likewise, from child_has_vforked.
2029         (hpux_has_execd): Likewise, from child_has_execd.
2030         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2031         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2032         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2033         and hpux_has_syscall_event instead of the target hooks.
2034         * infrun.c (inferior_has_forked, inferior_has_vforked)
2035         (inferior_has_execd): New functions.
2036         * inftarg.c (not_same_real_pid): Remove.
2037         (child_wait): Remove references to not_same_real_pid,
2038         target_has_forked, target_has_vforked, target_has_execd,
2039         and target_has_syscall_event.
2040         (child_has_forked, child_has_vforked, child_has_execd)
2041         (child_has_syscall_event): Remove.
2042         (init_child_ops): Remove references to child_has_forked,
2043         child_has_vforked, child_has_execd, and child_has_syscall_event.
2044         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2045         (hpux_has_vforked): Likewise, from child_has_vforked.
2046         (hpux_has_execd): Likewise, from child_has_execd.
2047         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2048         * target.c (cleanup_target): Remove references to
2049         to_has_forked, to_has_vforked, to_has_execd, and
2050         to_has_syscall_event.
2051         (update_current_target): Likewise.
2052         (setup_target_debug): Likewise.
2053         (debug_to_has_forked): Remove.
2054         (debug_to_has_vforked): Remove.
2055         (debug_to_has_execd): Remove.
2056         (debug_to_has_syscall_event): Remove.
2057         * target.h (struct target_ops): Remove to_has_forked.
2058         to_has_vforked, to_has_execd, and to_has_syscall_event.
2059         (child_has_forked, child_has_vforked, child_has_execd)
2060         (child_has_syscall_event): Remove prototypes.
2061         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2062         prototypes.
2063         (target_has_forked, target_has_vforked, target_has_execd)
2064         (target_has_syscall_event): Remove macros.
2065
2066 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2067
2068         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2069         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2070         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2071         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2072         * target.c (cleanup_target): Remove reference to
2073         to_can_follow_vfork_prior_to_exec.
2074         (update_current_target): Likewise.
2075         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2076         (setup_target_debug): Remove reference to
2077         to_can_follow_vfork_prior_to_exec.
2078         * target.h (struct target_ops): Remove
2079         to_can_follow_vfork_prior_to_exec.
2080         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2081         (target_can_follow_vfork_prior_to_exec): Remove definition.
2082         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2083         define.
2084         * infrun.c (follow_vfork_when_exec): Remove.
2085         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2086         (follow_exec): Likewise.
2087         (handle_inferior_event): Likewise.
2088         (keep_going): Likewise.
2089
2090 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2091
2092         * frame.c (generic_unwind_get_saved_register): Make static.
2093         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2094         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2095         defaults to generic_unwind_get_saved_register.
2096         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2097         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2098         * frv-tdep.c (frv_gdbarch_init): Ditto.
2099         * i386-tdep.c (i386_gdbarch_init): Ditto.
2100         * s390-tdep.c (s390_gdbarch_init): Ditto.
2101         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2102         * v850-tdep.c (v850_gdbarch_init): Ditto.
2103         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2104         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2105         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2106
2107 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2108
2109         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2110         i386-tdep.c.
2111
2112 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2113
2114         * frame.h (sigtramp_saved_pc): Delete declaration.
2115         * blockframe.c (sigtramp_saved_pc): Delete function.
2116         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2117         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2118         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2119         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2120
2121 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2122
2123         * frame.c (frame_pc_unwind): New function.
2124         (frame_saved_regs_pc_unwind): New function.
2125         (frame_register_unwind): Pass unwind_cache instead of
2126         register_unwind_cache.
2127         (set_unwind_by_pc): Add unwind_pc parameter, set.
2128         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2129         (get_prev_frame): Ditto.
2130         * frame.h (frame_pc_unwind_ftype): Declare.
2131         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2132         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2133         (frame_pc_unwind): Declare.
2134         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2135         (struct dummy_frame): Add comment mentioning that values are for
2136         previous frame.
2137         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2138         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2139         (generic_file_frame_chain_valid): Ditto.
2140         * stack.c (frame_info): Ditto.
2141
2142 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2143
2144         * linespec.c (locate_first_half): New function.
2145         (decode_line_1): Move code into locate_first_half.
2146
2147 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2148
2149         * complaints.h: Add comment explaining how to eliminate a
2150         deprecated_complain call.
2151         * complaints.h: Fix spelling errors.
2152
2153 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2154
2155         * printcmd.c: Remove #include "disasm.h".
2156
2157 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2158
2159         * frame.h: Move the most relevant interface functions to the start
2160         of the file.
2161
2162 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2163
2164         * regcache.h (deprecated_registers): Rename registers.
2165         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2166         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2167         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2168         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2169         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2170         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2171         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2172         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2173         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2174         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2175         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2176         * v850ice.c: Update.
2177
2178 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2179
2180         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2181         NULL buffer.
2182
2183 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2184
2185         * regcache.h (deprecated_read_register_bytes): Rename
2186         read_register_bytes.
2187         (deprecated_write_register_bytes): Rename write_register_bytes.
2188         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2189         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2190         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2191         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2192         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2193         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2194         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2195         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2196         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2197         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2198         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2199         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2200         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2201         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2202
2203 2002-11-13  Jim Blandy  <jimb@redhat.com>
2204
2205         * findvar.c (read_var_value): Doc fix.
2206
2207 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2208
2209         * regcache.c (struct regcache): Replace passthough_p with
2210         readonly_p.
2211         (regcache_xmalloc): Initialize readonly_p.
2212         (build_regcache): Initialize readonly_p.
2213         (regcache_save): New function.
2214         (regcache_restore): New function.
2215         (regcache_cpy): Re-implement using regcache_save and
2216         regcache_restore.
2217         (regcache_raw_read): Update.
2218         (regcache_cooked_read): When a read-only cache, checked for cached
2219         pseudo register values.
2220         (regcache_raw_write): Assert that the cache is not read-only.
2221         Remove code handling a non-passthrough cache.
2222         * regcache.h (regcache_save): Declare.
2223         (regcache_restore): Declare.
2224
2225 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2226
2227         * regcache.c (struct regcache_descr): Add fields
2228         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2229         (init_legacy_regcache_descr): Compute the size of a cooked
2230         register cache and then assign that to sizeof_raw_registers.  Set
2231         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2232         (init_legacy_regcache_descr): Ditto.
2233
2234 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2235
2236         * regcache.c (register_buffer): Move to near start of file, update
2237         description.
2238         (regcache_raw_read): Use.
2239         (regcache_raw_write): Use.
2240         (struct regcache): Rename raw_registers to registers and
2241         raw_register_valid_p to register_valid_p.
2242         (regcache_xmalloc): Update.
2243         (regcache_xfree): Update.
2244         (register_buffer): Update.
2245         (regcache_cpy): Update.
2246         (regcache_cpy_no_passthrough): Update.
2247         (regcache_valid_p): Update.
2248         (deprecated_grub_regcache_for_registers): Update.
2249         (deprecated_grub_regcache_for_register_valid): Update.
2250         (set_register_cached): Update.
2251         (regcache_raw_write): Update.
2252
2253 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2254
2255         * p-exp.y (name_not_typename): Use copy_name to
2256         set current_type variable for fields of THIS.
2257
2258 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2259
2260         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2261         * monitor.c (init_base_monitor_ops): Likewise.
2262         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2263         * remote-array.c (init_array_ops): Likewise.
2264         * remote-e7000.c (init_e7000_ops): Likewise.
2265         * remote-es.c (init_es1800_ops): Likewise.
2266         (init_es1800_child_ops): Likewise.
2267         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2268         * remote-sim.c (init_gdbsim_ops): Likewise.
2269         * remote-st.c (init_st2000_ops): Likewise.
2270         * sol-thread.c (init_sol_core_ops): Likewise.
2271         (init_sol_thread_ops): Likewise.
2272         * v850ice.c (init_850ice_ops): Likewise.
2273         * win32-nat.c (init_child_ops): Likewise.
2274         * wince.c (init_child_ops): Likewise.
2275
2276 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2277
2278         * utils.c (gdb_realpath): Make rp a constant pointer.
2279
2280 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2281
2282         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2283         a constant buffer; cannonicalize_file_name(); realpath() with a
2284         pathconf() defined buffer, xstrdup().
2285
2286 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2287
2288         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2289         to hang2.C; hang3.c to hang3.C.
2290
2291 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2292
2293         * findvar.c (read_var_value): Reenable TLS code.
2294
2295 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2296             Jim Blandy  <jimb@redhat.com>
2297         
2298         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2299         * target.c (update_current_target): Add
2300         to_get_thread_local_address.
2301         * target.h (to_get_thread_local_address): Export.
2302         (target_get_thread_local_address): Define.
2303         (target_get_thread_local_address_p): Define.
2304         * thread-db.c: Include solib-svr4.h.
2305         (td_thr_tls_get_addr_p): Define.
2306         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2307         (thread_db_get_thread_local_address): New function.
2308         (init_thread_db_ops): Initialize to_get_thread_local_address.
2309         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2310         * configure: Regenerate.
2311         * config.in: Regenerate.
2312
2313 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2314
2315         * linespec.c (set_flags): New function.
2316         (decode_line_1): Move code into set_flags.
2317
2318 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2319
2320         * linespec.c (decode_line_1): Move chunks of code to separate
2321         functions.
2322         (initialize_defaults): New function.
2323         (decode_indirect): New function.
2324
2325 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2326
2327         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2328         instead of void_code_ptr.
2329         (sigtramp_saved_pc): Ditto.
2330
2331         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2332         i386_fp_regnum_p.
2333
2334 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2335
2336         * gdbtypes.h (struct main_type): Move artificial flag out of
2337         loc.  New member of ``struct field'' named static_kind.  Reduce
2338         overloaded meaning of bitsize.
2339         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2340         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2341         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2342
2343         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2344         new fields.
2345         (template_to_fixed_record_type, template_to_static_fixed_type)
2346         (to_record_with_fixed_variant_part): Likewise.
2347         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2348         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2349         * dwarfread.c (struct_type, enum_type): Likewise.
2350         * hpread.c (hpread_read_enum_type)
2351         (hpread_read_function_type, hpread_read_doc_function_type)
2352         (hpread_read_struct_type): Likewise.
2353         * mdebugread.c (parse_symbol): Likewise.
2354
2355 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2356
2357         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2358         * stack.c (print_frame_info_base): Update.
2359         (print_frame_info_base, frame_info): Update.
2360         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2361         (sparc_frame_saved_pc): Update.
2362         * ada-lang.c (find_printable_frame): Update.
2363         * breakpoint.c (deprecated_frame_in_dummy): Update.
2364         
2365 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2366
2367         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2368         defined.
2369         (regmap): Extend to cover all registers.
2370         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2371         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2372         definitions.
2373         (fetch_register, sore_register): Simplify.
2374         (old_fetch_inferior_registers, old_store_inferior_registers):
2375         Remove functions.
2376         (cannot_fetch_register, cannot_store_register): Change
2377         implementation to use regmap array to decide which registers
2378         cannot be fetched/stored.  This removes $orig_eax from the
2379         registers that cannot be fetched/stored.
2380         (fetch_inferior_registers): Call fetch_register directly instead
2381         of calling old_fetch_inferior_registers.
2382         (store_inferior_registers): Call store_register directly instead
2383         of calling old_store_inferior_registers.
2384         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2385         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2386         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2387
2388 2002-11-09  Klee Dienes  <kdienes@apple.com>
2389
2390         * i387-tdep.c (i387_supply_register): When called with NULL as a
2391         buffer, mark the register as not provided (to mirror the behavior
2392         of supply_register).
2393         (i387_supply_fxsave): Ditto.
2394         (i387_supply_fsave): Ditto (inherits the behavior from
2395         i387_supply_register).
2396
2397 2002-11-09  Klee Dienes  <kdienes@apple.com>
2398
2399         * blockframe.c (sigtramp_saved_pc): Use
2400         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2401         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2402         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2403         
2404 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2405
2406         * frame.c (get_prev_frame): Test prev_p to identify a previously
2407         unwound frame.  Initialize prev_p.
2408         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2409         comment.
2410
2411 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2412
2413         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2414         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2415         more comments.  Zap dead code.
2416
2417 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2418
2419         * infcmd.c (print_vector_info, print_float_info): Move code that
2420         checks whether the target has any registers and whether there is a
2421         selected frame up, such that it is also used if a target provides
2422         multi-arch definitions of these functions.
2423
2424 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2425
2426         * Makefile.in (DESTDIR): Define.
2427         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2428         prefix.
2429
2430         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2431         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2432
2433 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2434
2435         * i386-linux-tdep.c: Include "reggroups.h".
2436         (i386_linux_register_reggroup_p): New function.
2437         (i386_linux_init_abi): Set register_reggroup_p to
2438         i386_linux_register_reggroup_p.
2439         * i386-tdep.h (i386_register_reggroup_p): Declare.
2440         * i386-tdep.c: Include "reggroups.h".
2441         (i386_init_reggroups): New function.
2442         (i386_add_reggroups): New function.
2443         (i386_register_reggroup_p): New function.
2444         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2445         (_initialize_i386_tdep): Call i386_init_reggroups.
2446         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2447         specific reggroups.
2448
2449 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2450
2451         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2452         request that's available in *BSD.
2453
2454         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2455
2456         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2457         FDOFF_REGNUM.
2458
2459 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2460
2461         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2462         * dummy-frame.c (find_dummy_frame): Rename
2463         generic_find_dummy_frame, make static.  Return the dummy frame
2464         instead of the regcache.
2465         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2466         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2467         (dummy_frame_register_unwind): Rename
2468         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2469         * dummy-frame.h (dummy_frame_register_unwind): Rename
2470         generic_call_dummy_register_unwind.
2471
2472 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2473
2474         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2475         except the inclusion of "i386/tm-i386.h", to...
2476         * config/i386/nm-i386v42mp.h: ...here.
2477         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2478
2479 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2480
2481         * Makefile.in (frame.o): Update dependencies.
2482         * blockframe.c (current_frame, frame_obstack_alloc)
2483         (frame_saved_regs_zalloc, get_current_frame)
2484         (set_current_frame, create_new_frame)
2485         (set_unwind_by_pc, get_next_frame)
2486         (flush_cached_frames, reinit_frame_cache)
2487         (frame_saved_regs_register_unwind)
2488         (deprecated_generic_get_saved_register)
2489         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2490         (_initialize_blockframe): Move frame code from here...
2491         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2492         "annotate.h" and "dummy-frame.h".
2493         (_initialize_frame): New function.
2494
2495 2002-11-08  Jim Blandy  <jimb@redhat.com>
2496
2497         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2498         when we finish a function a context.
2499         * buildsym.h (outermost_context_p): New macro.
2500         (Bug analyzed by David Edelsohn.)
2501
2502 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2503
2504         * blockframe.c: Include "dummy-frame.h".
2505         (struct dummy_frame, dummy_frame_stack)
2506         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2507         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2508         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2509         (generic_save_call_dummy_addr, generic_pop_current_frame)
2510         (generic_pop_dummy_frame, generic_fix_call_dummy)
2511         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2512         dummy frame code from here...
2513         * dummy-frame.c: ...to here.  New file.
2514         * dummy-frame.h: New file.
2515         (generic_call_dummy_register_unwind): Declare.
2516         (generic_find_dummy_frame): Declare.
2517         * Makefile.in (SFILES): Add dummy-frame.c.
2518         (dummy-frame.o): Specify dependencies.
2519         (dummy_frame_h): Define.
2520         (COMMON_OBS): Add dummy-frame.o.
2521         (blockframe.o): Update dependencies.
2522
2523 2002-11-08  Jim Blandy  <jimb@redhat.com>
2524
2525         * dwarf2read.c (read_func_scope): Restore local_symbols and
2526         param_symbols after we finish the function context.  (Based on a
2527         patch from David Edelsohn.)
2528
2529 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2530
2531         * linespec.c (symbol_found): New function.
2532         (minsym_found): New function.
2533         (decode_line_1): Separate out some code into separate functions.
2534
2535 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2536
2537         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2538         the benefit of the interix target.
2539         * i386-tdep.h (i386_frameless_signal_p): Declare.
2540
2541 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2542
2543         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2544         declaration that snuck in from change below.
2545
2546 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2547
2548         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2549         all callers.
2550         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2551         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2552         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2553         (i386_mxcsr_regnum_p): new function.  Use instead of
2554         MXCSR_REGNUM_P.
2555         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2556         (i386_sse_regnum_p): Declare.
2557         (i386_mxcsr_regnum_p): Declare.
2558         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2559         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2560         (IS_FP_REGNUM): Update definition.
2561         (IS_FPU_CTRL_REGNUM): Update definition..
2562         (IS_SSE_REGNUM): Update definition..
2563         * i386v-nat.c (register_u_addr): Update.
2564         * go32-nat.c (fetch_register): Update.
2565         (store_register): Update.
2566
2567 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2568
2569         Preparation work to convert the hppa targets to multiarch partial.
2570
2571         * hppa-tdep.c: Add new functions replacing macro bodies from
2572         config/pa/tm-hppa.h. These function will be used to initialize
2573         the gdbarch structure. Import some comments from tm-hppa.h,
2574         and place them where appropriate, to avoid loosing them when
2575         we cleanup this file.
2576         (hppa_reg_struct_has_addr): New function.
2577         (hppa_inner_than): New function.
2578         (hppa_stack_align): New function.
2579         (hppa_pc_requires_run_before_use): New function.
2580         (hppa_instruction_nullified): New function.
2581         (hppa_register_byte): New function.
2582         (hppa_register_virtual_type): New function.
2583         (hppa_store_struct_return): New function.
2584         (hppa_cannot_store_register): New function.
2585         (hppa_frame_args_address): New function.
2586         (hppa_frame_locals_address): New function.
2587         (hppa_smash_text_address): New function.
2588         (hppa_coerce_float_to_double): New function. Requires the inclusion
2589         of "language.h".
2590
2591         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2592
2593         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2594         gdbarch-eligible macro to a call to the new associated function
2595         created in hppa-tdep.c.
2596         (INNER_THAN): Likewise.
2597         (STACK_ALIGN): Likewise.
2598         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2599         (INSTRUCTION_NULLIFIED): Likewise.
2600         (REGISTER_BYTE): Likewise.
2601         (REGISTER_VIRTUAL_TYPE): Likewise.
2602         (STORE_STRUCT_RETURN): Likewise.
2603         (CANNOT_STORE_REGISTER): Likewise.
2604         (FRAME_ARGS_ADDRESS): Likewise.
2605         (FRAME_LOCALS_ADDRESS): Likewise.
2606         (SMASH_TEXT_ADDRESS): Likewise.
2607         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2608         (ABOUT_TO_RETURN): Delete, as no longer used.
2609
2610 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2611
2612         * printcmd.c (disassemble_command): Remove obsolete function.
2613         (_initialize_printcmd): Do not create disassemble command here.
2614         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2615         disassemble command.
2616         (init_cli_cmds): Create disassemble command here instead.
2617
2618 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2619
2620         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2621
2622 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2623
2624         * regcache.h (regcache_cooked_read_using_offset_hack)
2625         (regcache_cooked_write_using_offset_hack): Delete declarations.
2626         (register_changed): Delete declaration.
2627         * regcache.c (regcache_cooked_read_using_offset_hack)
2628         (regcache_cooked_write_using_offset_hack): Delete functions.
2629         (cooked_xfer_using_offset_hack): Delete function.
2630         (register_changed): Delete function.
2631
2632 2002-11-07  Jim Blandy  <jimb@redhat.com>
2633
2634         * macroscope.c: #include "complaints.h".
2635         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2636         but not in the macro table.
2637         * Makefile.in (macroscope.o): Record dependency.
2638
2639 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2640
2641         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2642
2643 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2644
2645         * regcache.c (deprecated_registers_fetched): Update.
2646         * regcache.h (deprecated_registers_fetched): Rename
2647         registers_fetched.
2648         * remote-vxsparc.c (vx_read_register): Update.
2649         * remote-vxmips.c (vx_read_register): Update.
2650         * remote-vx68.c (vx_read_register): Update.
2651         * irix5-nat.c (fetch_core_registers): Update.
2652         * mipsm3-nat.c (fetch_inferior_registers): Update.
2653         * sun3-nat.c (fetch_inferior_registers): Update.
2654         * symm-nat.c (fetch_inferior_registers): Update.
2655         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2656         (fetch_core_registers): Update.
2657         (fetch_kcore_registers): Update.
2658         * mips-nat.c (fetch_inferior_registers): Update.
2659         * corelow.c (get_core_registers): Update.
2660         * a68v-nat.c (fetch_inferior_registers): Update.
2661
2662 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2663
2664         Put in place the framework necessary for multiarching the hppa targets.
2665         * hppa-tdep.c (hppa_gdbarch_init): New function.
2666         (hppa_dump_tdep): New function.
2667         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2668         tdep structure dumper.
2669         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2670         until the multi-arching conversion has partially been completed.
2671
2672 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2673
2674         * valops.c (value_assign): Merge lval_register case into
2675         lval_reg_frame_relative.  Use frame_register and
2676         regcache_cooked_write instead of get_saved_register and
2677         write_register_bytes.  After flushing the register cache, try to
2678         re-select the selected frame.
2679
2680 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2681
2682         * regcache.h (deprecated_register_valid): Rename register_valid.
2683         * regcache.c: Update.
2684         * ia64-aix-nat.c: Update.
2685         * i386gnu-nat.c: Update.
2686         * alpha-nat.c: Update.
2687         * sparc-nat.c: Update.
2688         * lynx-nat.c: Update.
2689         * remote-mips.c: Update.
2690
2691 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2692
2693         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2694         to end of file, to be more consistent with the pratice followed
2695         by other targets.
2696
2697 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2698
2699         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2700         (print_float_info): Print registers in float_reggroup.
2701         (print_vector_info): Print registers in vector_reggroup.
2702         (default_print_registers_info): When all, print registers in
2703         all_reggroup.  Otherwize, print registers in general_reggroup.
2704         (registers_info): Rewrite.  Add support for register groups.
2705         Eliminate a goto.
2706
2707 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2708
2709         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2710         ages.
2711         (symtab_symbol_info): Remove eons old ifdeffed out code.
2712         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2713         command.
2714
2715 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2716
2717         * c-exp.y: Add missing semi-colons.
2718         * f-exp.y: Add missing semi-colons.
2719         * m2-exp.y: Add missing semi-colons.
2720         * p-exp.y: Add missing semi-colons.
2721         Add empty action to start rule to avoid a type clash error when
2722         building with bison >= 1.50.
2723
2724 2002-11-06  Jim Blandy  <jimb@redhat.com>
2725
2726         * macrotab.h (struct macro_source_file): Doc fix.
2727
2728 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2729
2730         * varobj.c (child_exists, cplus_number_of_children): Change
2731         STREQ macro references to strcmp.
2732         (cplus_name_of_child): Change code to handle the fact that
2733         fields are not necessarily contiguous with regards to their 
2734         access control. This is a fix for PR gdb/792.
2735
2736 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2737
2738         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2739         * gdbarch.h, gdbarch.c: Regnerate.
2740         * frame.h (frame_register): Declare.
2741         * frame.c (frame_register): New function.
2742         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2743         GET_SAVED_REGISTER, otherwize call
2744         generic_unwind_get_saved_register.
2745         (frame_register_read): Use frame_register instead of
2746         get_saved_register.
2747
2748 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2749         
2750         From Jim Ingham  <jingham@apple.com>:
2751         * event-top.c (gdb_disable_readline): New function.
2752         (_initialize_event_loop): Move comment.
2753
2754 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2755
2756         * event-loop.c (start_event_loop): Add comment.
2757         Update copyright.
2758
2759 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2760
2761         * infcmd.c (default_print_registers_info): Do not call
2762         PRINT_REGISTER_HOOK.
2763
2764 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2765
2766         * sparc-tdep.c (sparc_print_register_hook): Make static.
2767         (sparc_print_registers_info): New function.
2768         (sparc_do_registers_info): New function.
2769         (sparclet_print_registers_info): New function.
2770         (sparclet_do_registers_info): New function.
2771         (do_sparc_print_registers_info): New function.
2772         (sparc_print_registers): New static function, clone of infcmd.c's
2773         default_print_registers_info.
2774         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2775         (sparclet_do_registers_info): Declare.
2776         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2777         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2778         Re-define.
2779         (sparc_do_registers_info): Declare.
2780         (PRINT_REGISTER_HOOK): Delete macro.
2781         (sparc_print_register_hook): Delete declaration.
2782
2783 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2784
2785         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2786         functions.
2787         (lookup_symbol_aux_local): New function.
2788         (lookup_symbol_aux_symtabs): New function.
2789         (lookup_symbol_aux_psymtabs): New function.
2790
2791 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2792
2793         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2794         previous values of 'objfile' and 'block'.
2795
2796 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2797
2798         * values.c (value_change_enclosing_type): Set 
2799         enclosing_type field correctly also for the case where 
2800         more memory needs to be allocated.
2801
2802 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2803
2804         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2805         of puts_filtered.
2806
2807         * i387-tdep.c (i387_print_float_info): Replace calls to
2808         register_read and deprecated_read_register_gen with calls to
2809         frame_register_read, and make the necessary adjustments to the
2810         surrounding code.
2811
2812 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2813
2814         * gdbarch.sh (register_reggroup_p): Allow default value.
2815         * gdbarch.h, gdbarch.c: Regenerate.
2816
2817 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2818
2819         * regcache.h: Add coment indicating replacements for deprecated
2820         functions.
2821
2822 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2823
2824         * reggroups.h, reggroups.c: New files.
2825         * regcache.c: Include "reggroups.h".
2826         (enum regcache_dump_what): Add `regcache_dump_groups'.
2827         (regcache_dump): Contract size of the "Type" column.  When
2828         specified, dump the register's groups.
2829         (maintenance_print_register_groups): New function.
2830         (_initialize_regcache): Add command `maint print register-groups'.
2831         * Makefile.in (COMMON_OBS): Add reggroups.o
2832         (SFILES): Add reggroups.c.
2833         (reggroups_h): Define.
2834         (regcache.o, gdbarch.o): Update dependencies.
2835         (reggroups.o): Specify dependencies.
2836         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2837         Add opaque declaration for `struct reggroup' in generated .h file.
2838         Include "reggroups.h" in generated .c file.
2839         gdbarch.h, gdbarch.c: Re-generate.
2840
2841 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2842
2843         * regcache.h (deprecated_read_register_gen): Rename
2844         read_register_gen.
2845         (deprecated_write_register_gen): Rename write_register_gen.
2846         * i387-tdep.c: Update.
2847         * x86-64-linux-nat.c: Update
2848         * wince.c: Update.
2849         * thread-db.c: Update.
2850         * win32-nat.c: Update.
2851         * mips-tdep.c: Update.
2852         * d10v-tdep.c: Update.
2853         * cris-tdep.c: Update.
2854         * remote-sim.c: Update.
2855         * remote-rdi.c: Update.
2856         * remote-rdp.c: Update.
2857         * frame.c: Update.
2858         * target.c: Update.
2859         * blockframe.c: Update.
2860         * x86-64-tdep.c: Update.
2861         * xstormy16-tdep.c: Update.
2862         * sh-tdep.c: Update.
2863         * s390-tdep.c: Update.
2864         * rs6000-tdep.c: Update.
2865         * sparc-tdep.c: Update.
2866         * i386-tdep.c: Update.
2867         * dwarf2cfi.c: Update.
2868         * regcache.c: Update.
2869
2870 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2871
2872         New interix-specific files:
2873         * config/i386/nm-interix.h: New file.
2874         * config/i386/interix.mh: New file.
2875         * config/i386/interix.mt: New file.
2876         * i386-interix-nat.c: New file.
2877         * i386-interix-tdep.c: New file.
2878
2879 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2880
2881         * frame.h (deprecated_generic_get_saved_register): Rename
2882         generic_get_saved_register.
2883         * blockframe.c (deprecated_generic_get_saved_register): Update.
2884         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2885         (xstormy16_frame_saved_register): Update.
2886         * sh-tdep.c (sh_gdbarch_init): Update.
2887         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2888         * ia64-tdep.c (ia64_get_saved_register): Update.
2889         * cris-tdep.c (cris_gdbarch_init): Update.
2890         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2891         * arm-tdep.c (arm_gdbarch_init): Update.
2892
2893 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2894
2895         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2896
2897 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2898
2899         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2900         trampolines in sigaction.
2901
2902 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2903
2904         * h8300-tdep.c: Include "gdb_assert.h".
2905         (h8300_print_register): Add gdbarch, file and frame parameters.
2906         Use frame_read_unsigned_register to read the register's value.
2907         Use fprintf_filtered to display output.
2908         (h8300_print_registers_info): Replace h8300_do_registers_info.
2909         (h8300_gdbarch_init): Set print_registers_info.
2910
2911 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2912
2913         * frame.c (frame_read_unsigned_register): New function.
2914         (frame_read_signed_register): New function.
2915         * frame.h (frame_read_unsigned_register): Declare.
2916         (frame_read_signed_register): Declare.
2917
2918 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2919
2920         * h8500-tdep.c (h8500_print_registers_info): New static function,
2921         clone of infcmd.c's default_print_registers_info.
2922         (h8500_do_registers_info): New funtion.
2923         (h8500_print_register_hook): Rename print_register_hook, make
2924         static.
2925
2926         * config/h8500/tm-h8500.h: Update copyright.
2927         (DEPRECATED_DO_REGISTERS_INFO): Define.
2928         (h8500_do_registers_info: Declare.
2929         (PRINT_REGISTER_HOOK): Delete macro.
2930         (print_register_hook): Delete function.
2931
2932 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2933
2934         * z8k-tdep.c (z8k_print_register_hook): Make static.
2935         (z8k_print_registers_info): New static function, clone of
2936         infcmd.c's default_print_registers_info.
2937         (z8k_do_registers_info): New function.  Wrap
2938         z8k_print_registers_info.
2939         * config/z8k/tm-z8k.h: Update copyright.
2940         (PRINT_REGISTER_HOOK): Delete macro.
2941         (z8k_print_register_hook): Delete declaration.
2942         (DEPRECATED_DO_REGISTERS_INFO): Define.
2943         (z8k_do_registers_info): Declare.
2944
2945 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2946
2947         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2948         as this is already provided by value.h, and was actually causing
2949         a compilation error because of a conflict in parameter type
2950         declaration due to a missing const keyword.
2951         (low_text_segment_addres): Fix a compilation warning.
2952
2953 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2954
2955         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2956         registers without a name.
2957         (mips_linux_cannot_store_register): Don't store registers without
2958         a name.
2959
2960 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2961
2962         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2963         out.)
2964         * symtab.h: Delete prototype for find_addr_symbol.
2965
2966 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2967
2968         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2969         DO_REGISTERS_INFO.
2970         gdbarch.h, gdbarch.c: Re-generate.
2971         * infcmd.c (default_print_registers_info): Update reference.
2972         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2973         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2974         * sh-tdep.c (sh_gdbarch_init): Ditto.
2975         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2976         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2977
2978 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2979
2980         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2981         cfi_init_extra_frame_info.
2982         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2983         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2984
2985         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2986         target where necessary.  Add more comments and remove the ones
2987         that don't provide any useful information.
2988
2989         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2990         deprecated_read_register_dummy with
2991         frame_unwind_unsigned_register.
2992
2993         * i386-tdep.c (i386_extract_struct_value_address): Use
2994         regcache_raw_read_unsigned instead of
2995         regcache_cooked_read_unsigned since we know that the register
2996         we're reading isn't a pseudo register.  Rename variable 'val' into
2997         the more descriptive 'addr'.
2998
2999         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3000         (x86_64_push_return_address): Add comment.
3001         (x86_64_pop_frame): Make static.
3002         (examine_argument): Clarify comment.
3003         (x86_64_skip_prologue): Make prolog_expact variable static.
3004
3005         * dwarf2cfi.c: Fix some formatting problems.
3006         (context_cpy, read_encoded_pointer): Clarify comments.
3007
3008         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3009         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3010         i386 target back into x86_64_gdbarch_init.  Add some comments and
3011         remove meaningless ones.
3012
3013 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3014
3015         * complaints.h (struct deprecated_complaint): Rename `struct
3016         complaint'.
3017         * complaints.c (complain): Update.
3018         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3019         incorrect comment indicating that "symfile.h" was being included
3020         for the `struct complaint' definition.
3021         * remote-vx.c: Update.
3022         * objc-lang.c: Update.
3023         * xcoffread.c: Update.
3024         * hpread.c: Update.
3025         * mdebugread.c: Update.
3026         * stabsread.c: Update.
3027         * dwarf2read.c: Update.
3028         * dwarfread.c: Update.
3029         * elfread.c: Update.
3030         * coffread.c: Update.
3031         * stabsread.h: Update.
3032         * dbxread.c: Update.
3033         * buildsym.c: Update.
3034         * gdbtypes.c: Update.
3035         * macrotab.c: Update.
3036
3037 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3038
3039         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3040         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3041         (x86_64_init_abi): ...new function.
3042
3043         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3044         * i386v-nat.c: Include "i386-tdep.h".
3045
3046 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3047
3048         * gdbtypes.c (address_space_name_to_int): Update.
3049         (address_space_int_to_name): Update.
3050         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3051         multi-arch predicate.
3052         (address_class_name_to_type_flags): Ditto.
3053         * gdbarch.h, gdbarch.c: Re-generate.
3054         
3055         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3056
3057 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3058
3059         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3060
3061 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3062
3063         * symtab.h (INIT_SAL): Delete macro.
3064         (init_sal): Export.
3065         * symtab.c (init_sal): New function.
3066
3067         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3068         to init_sal function call.
3069         (find_sal_from_funcs_and_line): Ditto.
3070         (all_sals_for_line): Ditto. 
3071         * breakpoint.c (create_internal_breakpoint): Ditto. 
3072         (create_fork_vfork_event_catchpoint): Ditto. 
3073         (create_exec_event_catchpoint): Ditto. 
3074         (parse_breakpoint_sals): Ditto. 
3075         (watch_command_1): Ditto. 
3076         (handle_gnu_4_16_catch_command): Ditto.
3077         (clear_command): Ditto. 
3078         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3079         * infcmd.c (run_stack_dummy): Ditto. 
3080         * infrun.c (process_event_stop_test): Ditto.
3081         (check_sigtramp2): Ditto.
3082         (step_over_function): Ditto. 
3083         * linespec.c (decode_line_2): Ditto. 
3084         (decode_line_1): Ditto. 
3085         * source.c (line_info): Ditto. 
3086         * symtab.c (find_pc_sect_line): Ditto.
3087
3088 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3089
3090         * dwarf2cfi.c (struct context)
3091         (struct context_reg): Moved to dwarf2cfi.h
3092         (context_alloc, frame_state_alloc, context_cpy):
3093         Made extern instead of static, removed prototypes.
3094         * dwarf2cfi.h (struct context)
3095         (struct context_reg): New, moved from dwarf2cfi.c
3096         (context_alloc, frame_state_alloc, context_cpy):
3097         New prototypes.
3098         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3099         Changed from static to extern.
3100         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3101         (LINUX_SIGCONTEXT_FP_OFFSET)
3102         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3103         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3104         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3105         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3106         set_gdbarch_*() calls now use x86-64 specific functions 
3107         instead of DWARF2 CFI ones.
3108         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3109         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3110         (x86_64_init_extra_frame_info): New prototypes.
3111         
3112 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3113
3114         * linespec.c: #include "parser-defs.h".
3115         Delete prototype for find_template_name_end.
3116         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3117
3118 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3119
3120         * NEWS: add recent mi fixes.
3121         * varobj.c (struct varobj): Add new "updated" flag.
3122         (new_variable): Default "updated" flag to 0.
3123         (varobj_set_value): Set "updated" flag to 1 if value
3124         changes.
3125         (varobj_update): Check varobj "updated" flag before
3126         comparing old and refreshed values.  Fix for
3127         PR gdb/702.
3128
3129 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3130
3131         * parse.c (parse_exp_1): Use BLOCK_START.
3132         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3133         SYMBOL_BLOCK_VALUE.
3134         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3135
3136 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3137
3138         * symtab.c: Delete cplusplus_hint.
3139         Delete prototype for find_template_name_end.
3140
3141 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3142
3143         * symtab.h: Update comment.
3144
3145 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3146
3147         * printcmd.c (address_info): Restore quotes in output.
3148         * valops.c (value_of_local): Restore quotes in error message.
3149
3150 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3151
3152         * symtab.c (symbol_demangled_name): New function.
3153         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3154         turning most of it into a function.
3155         (symbol_demangled_name): Export.
3156
3157 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3158
3159         * valops.c (value_of_local): Restore quotes in error message.
3160
3161 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3162
3163         * symtab.c (symbol_init_language_specific): New function.
3164         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3165         turning most of it into a function.
3166         (symbol_init_language_specific): Export.
3167
3168 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3169
3170         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3171         (dwarf_attr_name): Ditto.
3172         (dwarf_type_encoding_name): Ditto.
3173         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3174         (process_die): Handle DW_TAG_namespace,
3175         DW_TAG_imported_declaration, DW_TAG_imported_module.
3176         (read_namespace): New function.
3177
3178 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3179
3180         * configure.in: Define NEW_PROC_API on Interix too.
3181         * configure: Regenerate.
3182
3183 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3184
3185         * configure: Regenerate using the proper version of autoconf.
3186
3187 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3188
3189         * findvar.c (read_var_value): Temporarily disable TLS code, until
3190         complete TLS support is added.
3191
3192 2002-10-21  Jim Blandy  <jimb@redhat.com>
3193             Elena Zannoni  <ezannoni@redhat.com>
3194
3195         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3196         for thread local storage locations.
3197         (struct symbol): Add objfile field.
3198         (SYMBOL_OBJFILE): Define.
3199         * dwarf2read.c (is_thread_local): New static variable.
3200         (new_symbol): If variable is in thread local fill in address class
3201         and objfile appropriately.
3202         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3203         stack operation.
3204         * printcmd.c (address_info): Print the information for thread
3205         local storage variable.
3206         * findvar.c (read_var_value): In case of thread local variable,
3207         defer to the target vector code to compute address.
3208
3209 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3210
3211         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3212         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3213
3214 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3215
3216         * symtab.h (address_class):  Rename
3217         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3218         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3219         * printcmd.c (address_info): Ditto.
3220         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3221
3222 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3223
3224         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3225         DBREG_DRX macro to acces debug registers.
3226
3227         * Makefile.in (i386obsd-tdep.o): New target.
3228
3229         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3230         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3231
3232         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3233         * config/i386/obsd.mt: New file.
3234         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3235         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3236         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3237         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3238         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3239         * i386obsd-tdep.c: New file.
3240
3241 2002-10-19  Adam Fedor  <fedor@gnu.org>
3242
3243         * objc-exp.y (name_not_typename): Fix invalid comment.  
3244
3245 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3246
3247         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3248         to allocate partial syms and macro byte caches.
3249
3250 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3251
3252         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3253
3254 2002-10-18  Adam Fedor  <fedor@gnu.org>
3255
3256         * stabsread.c (find_name_end): New function.
3257         (define_symbol): Use it.
3258
3259 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3260
3261         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3262         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3263         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3264         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3265
3266 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3267
3268         * symfile.h: Add opaque declaration for struct obstack.
3269         Declare obsavestring to take a const char *.
3270         * symfile.c (obsavestring): Make first argument a const char *.
3271
3272 2002-10-16  Adam Fedor  <fedor@gnu.org>
3273
3274         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3275         names when matching breakpoints in current file.
3276
3277 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3278
3279         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3280         (read_tag_pointer_type): Add address class support.
3281         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3282         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3283         New methods.
3284         * gdbarch.h, gdbarch.c: Regenerate.
3285         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3286         (make_type_with_address_space, recursive_type_dump): Add address
3287         class support.
3288         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3289         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3290         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3291
3292 2002-10-16  Klee Dienes  <kdienes@apple.com>
3293
3294         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3295         to get the last character of a char[] buffer, not
3296         name[sizeof(vptr_name)-1].
3297
3298 2002-10-14  Adam Fedor  <fedor@gnu.org>
3299
3300         * symtab.h: New objc_specific struct.
3301         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3302         (SYMBOL_DEMANGLED_NAME): Likewise.
3303
3304 2002-10-14  Adam Fedor  <fedor@gnu.org>
3305
3306         * symfile.c (init_filename_language_table): Add ObjC file extension.
3307
3308 2002-10-14  Adam Fedor  <fedor@gnu.org>
3309
3310         * utils.c (puts_filtered_tabular): New function.
3311         (fprintf_symbol_filtered): Get ObjC demangled name.
3312         * defs.h (puts_filtered_tabular): Declared.
3313
3314 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3315
3316         * c-lang.h (c_type_print_varspec_prefix): Delete.
3317         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3318         ``need_post_space'' parameter.  Adjust all callers.
3319
3320 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3321  
3322         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3323         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3324         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3325         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3326
3327 2002-10-13  Adam Fedor  <fedor@gnu.org>
3328
3329         * source.c (print_source_lines): Update comments.
3330
3331 2002-10-13  Adam Fedor  <fedor@gnu.org>
3332
3333         * valops.c (value_of_local): New function.
3334         (value_of_this): Use it.
3335         * value.h (value_of_local): Declared.
3336
3337 2002-10-13  Adam Fedor  <fedor@gnu.org>
3338
3339         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3340         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3341
3342 2002-10-12  Adam Fedor  <fedor@gnu.org>
3343
3344         * language.c (binop_result_type): Add language_objc to case.
3345         (integral_type): Likewise.
3346         (character_type): Likewise.
3347         (string_type): Likewise.
3348         (boolean_type): Likewise.
3349         (structured_type): Likewise.
3350         (binop_type_check): Likewise.
3351
3352 2002-10-11  Adam Fedor  <fedor@gnu.org>
3353
3354         * printcmd.c (address_info): Print 'self' for ObjC.
3355
3356 2002-10-11  Adam Fedor  <fedor@gnu.org>
3357
3358         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3359         OP_SELF.
3360
3361 2002-10-11  Adam Fedor  <fedor@gnu.org>
3362
3363         * language.h (CAST_IS_CONVERSION): Add language_objc.
3364
3365 2002-10-11  Adam Fedor  <fedor@gnu.org>
3366
3367         * defs.h (enum language): Add language_objc.
3368
3369 2002-10-11  Klee Dienes  <kdienes@apple.com>
3370
3371         * corefile.c (read_memory_typed_address): New function.
3372         * gdbcore.h (read_memory_typed_address): Add prototype.
3373         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3374         to read a value destined for a CORE_ADDR, not read_memory_integer.
3375         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3376         (f77_get_dynamic_lowerbound): Ditto.
3377
3378 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3379
3380         * utils.c (string_to_core_addr): After turning string into
3381         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3382         which will do necessary sign-extension, etc.
3383
3384 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3385
3386         * c-exp.y (THIS): Delete token and grammar rule.
3387         (yylex): Don't return THIS.
3388         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3389         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3390         * demangle.c (cplus_markers): Update comment.  Put '$'
3391         first.  Remove CPLUS_MARKER.
3392         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3393         * jv-exp.y (THIS): Delete token and grammar rule.
3394         (yylex): Don't return THIS.
3395         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3396         * objc-exp.y (THIS): Delete token and grammar rule.
3397         (yylex): Don't return THIS.
3398         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3399         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3400         (read_member_functions): Likewise for opname.
3401         (read_tilde_fields): Use is_cplus_marker.
3402
3403         * defs.h (CPLUS_MARKER): Don't define.
3404         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3405         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3406         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3407         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3408         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3409
3410         * config/i386/tm-i386v4.h: Delete file.
3411         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3412         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3413         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3414         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3415         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3416         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3417         * config/i386/i386v4.mt (TM_FILE): Likewise.
3418         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3419
3420 2002-10-10  Marko Mlinar  <markom@opencores.org>
3421
3422         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3423         accidentially not commited 2002-10-09
3424         * gdbarch.h, gdbarch.c: Re-generate.
3425
3426 2002-10-09  Marko Mlinar  <markom@opencores.org>
3427
3428         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3429         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3430         * gdbarch.h, gdbarch.c: Re-generate.
3431
3432 2002-10-08  Petr Sorfa <petrs@caldera.com>
3433
3434         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3435
3436         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3437         so we can work on more than one compilation unit at a time.  This
3438         helps prepare GDB to handle inter-CU die references.
3439         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3440         the code to be defined before struct comp_unit_head.
3441         (comp_unit_head): Added new members - offset, cu_head,
3442         begin_die, next and dwarf2_abbrevs.
3443         (dwarf2_abbrevs): Removed single static var; now member of
3444         struct comp_unit_head.
3445         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3446         members.
3447         (psymtab_to_symtab_1): Changed to work with the new
3448         struct comp_unit_head.
3449         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3450         constructs the dwarf2_abbrevs[] inside the cu_header.
3451         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3452         dwarf2_abbrev table to clean up.
3453         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3454         handling of dwarf2_abbrevs inside the cu_header.
3455         (read_partial_die): Now supports the call to the new
3456         dwarf2_lookup_abbrev.
3457         (read_full_die): Now supports the call to the new
3458         dwarf2_lookup_abbrev.
3459
3460 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3461
3462         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3463         insure that shell variables, such as "transformed_name" are propagated
3464         to later shell statements in rule.
3465
3466 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3467
3468         * config/i386/nm-i386sco.h: Add protection against
3469         multiple-inclusion.  Include "i386/nm-i386v.h".
3470         (REGISTER_U_ADDR): Remove define.
3471         (i386_register_u_addr): Remove prototype.
3472
3473 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3474
3475         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3476         before treating it as a single-step event.
3477
3478 2002-10-03  Adam Fedor  <fedor@gnu.org>
3479
3480         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3481         (objc_demangle): Remove assignment in if statements, Replace
3482         free with xfree.
3483         (add_msglist): Likewise.
3484         (end_msglist): Likewise.
3485         (complare_selectors): Likewise.
3486         (selectors_info): Likewise.
3487         (compare_classes): Likewise.
3488         (classes_info): Likewise.
3489         (print_object_command): Likewise.
3490         (find_objc_msgcall_submethod): Replace PTR with void *.
3491         * objc-lang.h: Remove check for __STDC__.
3492
3493 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3494
3495         * ui-out.h (ui_out_field_fmt_int): New prototype.
3496         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3497         of field width and alignment.
3498         * stack.c (print_frame_info_base): When printing frame level, use
3499         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3500         PR gdb/192
3501
3502 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3503
3504         * MAINTAINERS: Add self to Write After Approval list.
3505
3506 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3507
3508         * infcmd.c (interrupt_target_command_wrapper): Delete.
3509         (interrupt_target_command): Make non static.
3510         (nofp_registers_info): Make static.
3511         * stack.c (return_command_wrapper): Delete.
3512         (return_command): Make non static.
3513
3514 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3515
3516         * event-top.c (gdb_setup_readline): New function. Code moved from
3517         _initialize_event_loop().
3518         (_initialize_event_loop): Call gdb_setup_readline().
3519
3520 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3521
3522         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3523         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3524         * gdbarch.h, gdbarch.c: Re-generate.
3525
3526 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3527
3528         Fix PR gdb/778
3529         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3530         before recursing.
3531         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3532         of fill_in_vptr_fieldno.
3533
3534 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3535
3536         * inferior.h (registers_info, stepi_command, nexti_command,
3537         continue_command, interrupt_target_command): Export from infcmd.c.
3538         * frame.h (args_info, selected_frame_level_changed_hook,
3539         return_command): Export from stack.c.
3540         * v850ice.c (stepi_command, nexti_command, continue_command): use
3541         prototypes from inferior.h.
3542         * tracepoint.c (registers_info, args_info, locals_info): Use
3543         prototypes from frame.h and inferior.h.
3544         * Makefile.in (mi-main.o): Add dependency on frame.h.
3545
3546 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3547
3548         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3549         value in register 3 adjusted by ppc_gp0_regnum.
3550
3551         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3552
3553 2002-10-02  Marko Mlinar <markom@opencores.org>
3554
3555         * MAINTAINERS: Add myself to the Write After Approval list.
3556
3557 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3558
3559         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3560         of the section for the N64 ABI, fixed.
3561
3562         * config/mips/tm-irix6.h: Include solib.h.
3563
3564 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3565
3566         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3567         GNU operators.
3568
3569 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3570
3571         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3572         and that "mi0" syntax has been removed.
3573
3574 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3575
3576         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3577         * ppc-sysv-tdep.c: #include "gdb_string.h".
3578         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3579         pacify GCC.
3580
3581 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3582
3583         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3584         "vrsave"'s register number.
3585
3586 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3587
3588         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3589         use frame_unwind_signed_register to obtain the PC.
3590         (mips_frame_chain): Handle a generic dummy frame.
3591         (mips_init_extra_frame_info): When a generic dummy frame, don't
3592         re-compute the frame base.
3593         (mips_pop_frame): Handle generic dummy frames.
3594         (mips_gdbarch_init): When generic dummy frames, set
3595         use_generic_dummy_frames, push_dummy_frame to
3596         generic_push_dummy_frame, pc_in_call_dummy to
3597         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3598         generic_save_dummy_frame_tos.
3599
3600 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3601
3602         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3603         against TOP when TOP was explictly set.
3604         (generic_push_dummy_frame): Set TOP to zero.
3605
3606 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3607
3608         * event-loop.c (start_event_loop): Rename variable 'result' to
3609         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3610
3611 2002-09-30  Keith Seitz  <keiths@redhat.com>
3612
3613         * gdb-events.sh (selected_thread_changed): New event.
3614         * gdb-events.c: Regenerated.
3615         * gdb-events.h: Regenerated.
3616
3617 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3618
3619         * MAINTAINERS: Add self to Write After Approval list.
3620
3621 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3622
3623         * disasm.c: New file.  
3624         * disasm.h: New file.  
3625         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3626         (compare_lines): Ditto.
3627         (dump_insns): Ditto.
3628         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3629         argument.
3630         (do_assembly_only): Ditto.
3631         (do_disassembly): Renamed to gdb_disassembly and moved to
3632         disasm.c.  Sdded uiout argument.
3633         * Makefile.in: Add new files.  Reorder SFILES list. Update
3634         dependencies.  Include libgdb.a later in the insight executable.
3635
3636 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3637
3638         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3639         bfd/elf64-alpha-fbsd.c.
3640
3641 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3642
3643         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3644         i386gnu-tdep.c.
3645
3646 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3647
3648         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3649         __FUNCTION__.
3650         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3651         function name.
3652         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3653         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3654         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3655         (S_msg_sig_post_reply): Ditto.
3656         
3657 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3658
3659         * sh-tdep.c (sh_use_struct_convention): Use definition according
3660         to ABI.
3661         (sh_push_arguments): Store in register with correct endianess.
3662         (sh_default_store_return_value): Ditto.
3663         (sh_gdbarch_init): Set sizeof long double to 8.
3664
3665 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3666
3667         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3668         Fix some whitespace problems.
3669
3670 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3671
3672         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3673         (mcore-tdep.o): Ditto.
3674         (ns32k-tdep.o): Ditto.
3675         (ns32knbsd-tdep.o): Ditto.
3676         (sh3-rom.o): Ditto.
3677         (vax-tdep.o): Ditto.
3678         * cris-tdep.c: #include "gdb_string.h"
3679         * mcore-tdep.c: Ditto.
3680         * ns32k-tdep.c: Ditto.
3681         * ns32knbsd-tdep.c: Ditto.
3682         * sh3-rom.c: Ditto.
3683         * vax-tdep.c: Ditto.
3684
3685 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3686
3687         * config/djgpp/fnchange.lst: Add entries for
3688         gdb/testsuite/gdb.c++/m-static files.
3689
3690 2002-09-27  Jim Wilson  <wilson@redhat.com>
3691
3692         * MAINTAINERS: Add myself to the Write After Approval list.
3693
3694 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3695
3696         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3697
3698
3699 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3700
3701         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3702         frame.
3703
3704 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3705
3706         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3707         (rs6000_struct_return_address): Delete variable.
3708         (rs6000_store_struct_return): Update.
3709         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3710         deprecated_extract_struct_value_address.
3711         (rs6000_frame_align): New function.
3712         (rs6000_gdbarch_init): Set frame_align.
3713
3714 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3715
3716         From Grace Sainsbury <graces@redhat.com>:
3717         * Makefile.in (gdbtk-main.o): New target.
3718         (gdb.o): New target.
3719         (main_h): Define.
3720         (main.o): Update dependencies.
3721         (gdb$(EXEEXT)): Add gdb.o.
3722         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3723         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3724         (SUBDIR_GDBTK_CLEAN): Set.
3725         (install-gdbtk): Install the insight binary.
3726         (uninstall-gdbtk): New target.
3727         (all-gdbtk, clean-gdbtk): New rule.
3728         * top.c (use_windows): Default to zero.
3729         * main.c: Include "main.h".
3730         (main): Delete.
3731         (struct captured_main_args): Delete.
3732         (gdb_main): New function.
3733         * main.h: New file.
3734         * gdb.c: New File.
3735
3736 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3737
3738         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3739         (frame_map_regnum_to_name): New function.
3740         (frame_map_name_to_regnum): New function.
3741         * frame.h (frame_map_name_to_regnum): Declare.
3742         (frame_map_regnum_to_name): Declare.
3743         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3744         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3745         * parse.c: Do not include "builtin-regs.h".
3746         (target_map_name_to_register): Delete function.
3747         (write_dollar_variable): Use frame_map_name_to_regnum.
3748         * parser-defs.h (target_map_name_to_register): Delete declaration.
3749         * expprint.c: Include "frame.h".
3750         (print_subexp): Use frame_map_regnum_to_name.
3751         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3752         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3753
3754 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3755
3756         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3757         wasn't saved, and the next innermost frame is a dummy, return the
3758         dummy frame's link register.
3759
3760 2002-09-24  Jim Blandy  <jimb@redhat.com>
3761
3762         Fix from Paul Breed:
3763         * main.c (captured_main): Add a `break' after the case for 'b'.
3764
3765 2002-09-24  Keith Seitz  <keiths@redhat.com>
3766
3767         * varobj.c (c_type_of_child): Use get_target_type instead
3768         of TYPE_TARGET_TYPE.
3769
3770 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3771
3772         * source.c (get_current_or_default_source_symtab_and_line): Remove
3773         function.
3774         (set_default_source_symtab_and_line): New function. Attempts to
3775         determine a source file to list lines from if one is not currently
3776         defined.
3777         (get_current_source_symtab_and_line): Initialize sal.pc and
3778         sal.end fields.
3779         (set_current_source_symtab_and_line): Mark argument as const.
3780         * source.h: Update declarations and comments.
3781         * linespec.c (decode_line_1): Replace call to removed routine above.
3782         * stack.c (print_frame_info_base): Ditto.
3783         * cli/cli-cmds.c (edit_command): Ditto.
3784         (list_command): Ditto.
3785
3786 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3787
3788         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3789         sal.pc and sal.end fields.
3790         (get_current_or_default_source_symtab_and_line): Ditto.
3791         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3792         so we do not cause a new source symtab to be searched for (reverting an
3793         unintentional change from the 2002-09-20 patch).
3794         * scm-lang.c (scm_unpac): Ditto.
3795
3796 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3797
3798         * complaints.c (symfile_explanations): Remove new-line from
3799         ``isolated_message''.
3800         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3801         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3802
3803 2002-09-20  Nick Clifton  <nickc@redhat.com>
3804         
3805         * NEWS: Announce that V850EA ISA is no longer supported.
3806         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3807
3808 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3809
3810         * Makefile.in (c-lang.o): Correct dependencies.
3811         (utils.o): Gather dependencies.
3812         (charset.o): Move.
3813         * c-lang.c: #include "gdb_string.h"
3814
3815 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3816
3817         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3818         * cli/cli-cmds.c (list_command): New function.  Implements the new
3819         cli edit command.
3820         (_init_cli_cmds): Add new command definition.
3821         * gdb.1: Document edit command.
3822         * doc/gdb.texinfo: Document edit command.
3823
3824 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3825
3826         * source.c: Make global variables current_source_symtab and
3827         current_source_line static.
3828         (list_command): Moved to cli/cli-cmds.c.
3829         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3830         (get_first_line_listed): New accessor function.
3831         (get_lines_to_list): New accessor function.
3832         (get_current_source_symtab_and_line): New function. Retrieves the
3833         position in the source code that we consider current.
3834         (get_current_or_default_source_symtab_and_line): New function.
3835         Like the above but attempts to determine a default position if one
3836         is not currently defined.
3837         (set_current_source_symtab_and_line): New function. Sets the source
3838         code position considered current and returns the previously set one.
3839         (clear_current_source_symtab_and_line): Reset stored information about
3840         a current source line.
3841         (_initialize_source): Remove registration for the "list" command and
3842         its alias.
3843         * source.h: Add declarations for the new functions above.
3844         * symtab.h: Remove declarations for the global variables mentioned
3845         above.
3846         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3847         obtain current source line.
3848         * linespec.c (decode_line_1): Ditto.
3849         * macroscope.c (default_macro_scope): Ditto.
3850         * scm-lang.c (scm_unpac): Ditto.
3851         * stack.c (print_frame_info_base): Ditto.
3852         * symfile.c (clear_symtab_users): Ditto.
3853         * symtab.c (decode_line_spec): Ditto.
3854         * cli/cli-cmds.c (list_command): Moved here from source.c.
3855         (ambiguous_line_spec): Moved here from source.c.
3856         (_init_cli_cmds): Add definition for "list" and its alias.
3857         * Makefile.in: Update dependencies.
3858
3859 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3860
3861         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3862         with what gcc thinks is correct.
3863
3864 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3865
3866         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3867         multiple register push instruction.
3868
3869 2002-09-19  Jim Blandy  <jimb@redhat.com>
3870
3871         Add support for distinct host and target character sets.
3872         * charset.c, charset.h: New files.
3873         * c-exp.y: #include "charset.h".
3874         (yylex): Convert character and string literals to the target
3875         character set, before returning them as the semantic value of the
3876         token.
3877         * c-lang.c: #include "charset.h".
3878         (c_emit_char): Use charset-specific methods to recognize
3879         characters with backslash escape forms, to decide which characters
3880         to print literally and which to print using numeric escape
3881         sequences, and to convert target characters to host characters
3882         before printing.
3883         * utils.c: #include "charset.h".
3884         (no_control_char_error): New function.
3885         (parse_escape): Use charset-specific methods to recognize
3886         backslash escapes, parse `control character' notation, and convert
3887         characters from the host character set to the target character set.
3888         * configure.in: Set the default host character set.
3889         Check where to find iconv, and what its argument types might be.
3890         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3891         * Makefile.in (SFILES): List charset.c.
3892         (COMMON_OBS): List charset.o.   
3893         (charset.o): New rule.
3894         (charset_h): New header dependency variable.
3895         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3896         (LIBICONV): New variable, set by configure.
3897         (CLIBS): Include $(LIBICONV) here.
3898         * aclocal.m4, config.in, configure: Regenerated.
3899
3900 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3901
3902         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3903         bison 1.35 warning.
3904
3905 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3906
3907         * gdb_mbuild.sh: New file.
3908
3909 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3910
3911         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3912
3913 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3914
3915         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3916         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3917         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3918         valops.c, value.h: Revert previous change.
3919         
3920 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3921
3922         Preliminary support for Objective-C:
3923         * defs.h (language_objc): New enum value.
3924         (puts_filtered_tabular): Declaration only, exported from utils.c.
3925         (skip_quoted): Delete, declared in completer.h.
3926         * c-exp.y: Include completer.h.
3927         * p-exp.y: Ditto.
3928         * jv-exp.y: Ditto.
3929         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3930         New operator enum values.
3931         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3932         * language.c (binop_result_type): Handle language_objc case.
3933         (integral_type, character_type, string_type, boolean_type,
3934         structured_type, binop_type_check): Ditto.
3935         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3936         (struct objc_specific): Add to general_symbol_info.
3937         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3938         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3939         * parser-defs.h (struct objc_class_str): New struct type.
3940         (start_msglist, end_msglist, add_msglist): Declaration only,
3941         exported from objc-lang.c.
3942         * value.h (value_of_local, value_nsstring, 
3943         call_function_by_hand_expecting_type): Exported from valops.c.
3944         * valops.c (find_function_addr): Export.
3945         (call_function_by_hand_expecting_type): New function.
3946         (value_of_local): New function.
3947         * symfile.c (init_filename_language_table): Add ".m" extension
3948         for Objective-C.
3949         * utils.c (puts_filtered_tabular): New function.
3950         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3951         (set/show demangle): Extend help-string to refer to ObjC.
3952         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3953         * stabsread.c (symbol_reference_defined): Objective-C symbols
3954         may contain colons: make allowances when scanning stabs strings
3955         for colons.
3956         (objc_find_colon): New function.
3957         * printcmd.c (address_info): If language == objc then print
3958         "self" instead of "this".
3959         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3960         OP_NSSTRING, and OP_SELF.
3961         (prefixify_subexp): Ditto.
3962         * source.c (print_source_lines): Mention objc in comment.
3963         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3964         method names.
3965
3966 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3967
3968         * complaints.h: Update copyright.
3969         (struct complaints): Declare.
3970         (struct complaint): Make `message' constant.
3971         (internal_complaint): Declare.
3972         (complaint): Declare.
3973         (complaint_root): Delete declaration.
3974         (symfile_complaints): Delete declaration.
3975         (struct complaints): Add opaque declaration.
3976         (clear_complaints): Add a complaints parameter.
3977         * complaints.c: Update copyright.
3978         (enum complaint_series): Define.
3979         (complaint_root): Delete.
3980         (struct complaints): Define.
3981         (complaint_sentinel, symfile_complaint_book): New variables.
3982         (symfile_explanations, symfile_complaints): New variables.
3983         New variables.
3984         (get_complaints): New function.
3985         (vcomplaint): New function.
3986         (complaint): New function.
3987         (internal_complaint): New function.
3988         (complain): Call vcomplain with symfile_complaint.
3989         (clear_complaints): Rewrite.
3990         (_initialize_complaints): Use add_setshow_command.
3991         * Makefile.in (complaints.o): Update dependencies.
3992         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3993         to call to clear_complaints.
3994         (new_symfile_objfile, reread_symbols): Ditto.
3995         (oldsyms_complaint): Delete.
3996         (empty_symtab_complaint, unknown_option_complaint): Delete.
3997         (free_named_symtabs): Use complaint instead of complain.
3998
3999 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4000
4001         Contributed by Apple Computer, Inc.  Merged with current sources
4002         by Adam Fedor <fedor@doc.com> [cagney].
4003         
4004         * objc-lang.c: First clean-up round: comments, indentation.
4005         * objc-lang.h: Ditto.
4006         * objc-lang.y: Ditto.
4007
4008 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4009
4010         * maint.c (maintenance_internal_error): Print the parameter as the
4011         error message.
4012         (maintenance_internal_warning): New function.
4013         (_initialize_maint_cmds): Add command `maint internal-warning'.
4014
4015         * defs.h (internal_warning, internal_vwarning): Declare.
4016         * utils.c (struct internal_problem): Define.
4017         (internal_vproblem): New function.
4018         (internal_warning): New function.
4019         (internal_vwarning): New function.
4020         (internal_warning_problem, internal_error_problem): New variables.
4021         (internal_verror): Just call internal_vproblem.
4022
4023 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4024
4025         * objc-lang.c: New file, support for Objective-C.
4026         Preliminary check-in, not yet integrated into gdb.
4027         * objc-lang.h: New file.
4028         * objc-exp.y:  New file.
4029
4030 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4031
4032         * infrun.c (signal_stop_update): Convert definition to ISO C.
4033         (signal_print_update): Ditto.
4034         (signal_pass_update): Ditto.
4035         * inflow.c (terminal_save_ours): Ditto.
4036
4037         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4038         comments.
4039         
4040         * config/djgpp/fnchange.lst: Handle name clashes between
4041         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4042         bfd/coff-tic80.c.
4043
4044         * i386-linux-tdep.h: Fix tipo.
4045
4046 2002-09-18  Adam Fedor  <fedor@gnu.org>
4047
4048         * MAINTAINERS: Add myself to the Write After Approval list.
4049
4050 2002-09-18  Jim Blandy  <jimb@redhat.com>
4051
4052         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4053         texthigh and textlow to reader-specific structs caused
4054         objfile_relocate to miss them.  This is fixable, but the work that
4055         the change was supposed to prepare GDB for never got done anyway.
4056
4057 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4058
4059         * MAINTAINERS: Alphabetize Write After Approval list.
4060
4061 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4062
4063         Fix PR gdb/709
4064         * values.c (value_static_field): Call read_var_value.
4065
4066 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4067
4068         * valops.c (hand_function_call): Align the initial stack pointer
4069         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4070         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4071         return value.
4072         * mips-tdep.c (mips_frame_align): New function.
4073         (mips_gdbarch_init): Set frame_align.
4074         * gdbarch.sh (FRAME_ALIGN): New method.
4075         * gdbarch.h, gdbarch.c: Re-generate.
4076
4077 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4078
4079         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4080         registers.
4081
4082 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4083
4084         * NEWS: Mention that MIPS $fp behavior changed.
4085         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4086         reference to FP_REGNUM.
4087         (mipsnbsd_cannot_store_register): Ditto.
4088         * mips-linux-nat.c: Update copyright.
4089         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4090         (mips_linux_cannot_store_register): Ditto.
4091         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4092         * config/mips/tm-mips.h: Update copyright.
4093         (FP_REGNUM): Delete macro.
4094         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4095         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4096         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4097         (mips_r3041_reg_names, mips_r3051_reg_names)
4098         (mips_r3081_reg_names): Replace "fp" with "".
4099         Fix PR gdb/480.
4100
4101 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4102
4103         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4104         generic_read_register_dummy() (PR gdb/703).
4105         (avr_push_return_address): #if 0 out unused vars.
4106         (avr_gdbarch_init): Enable use of avr_push_return_address().
4107
4108 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4109
4110         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4111         RTE will take care of it.
4112
4113 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4114
4115         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4116         invalid, return SP_REGNUM.
4117
4118 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4119
4120         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4121         point registers without sign extension.
4122
4123 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4124
4125         * blockframe.c (deprecated_read_register_dummy): Rename
4126         generic_read_register_dummy.
4127         * frame.c (frame_unwind_signed_register): New function.
4128         (frame_unwind_unsigned_register): New function.
4129         * frame.h (frame_unwind_signed_register): Declare.
4130         (frame_unwind_unsigned_register): Declare.
4131         (deprecated_read_register_dummy): Rename
4132         generic_read_register_dummy.
4133
4134         * h8300-tdep.c (h8300_frame_chain): Update.
4135         (h8300_frame_saved_pc): Update.
4136         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4137         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4138         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4139         (s390_frame_chain): Update.
4140         * v850-tdep.c (v850_find_callers_reg): Update.
4141         (v850_frame_saved_pc): Update.
4142         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4143         (m32r_find_callers_reg): Update.
4144         (m32r_frame_saved_pc): Update.
4145         * sh-tdep.c (sh_find_callers_reg): Update.
4146         (sh64_get_saved_pr): Update.
4147         (sh_init_extra_frame_info): Update.
4148         (sh_init_extra_frame_info): Update.
4149         (sh64_init_extra_frame_info): Update.
4150         (sh64_init_extra_frame_info): Update.
4151         * mcore-tdep.c (mcore_find_callers_reg): Update.
4152         (mcore_frame_saved_pc): Update.
4153         (mcore_init_extra_frame_info): Update.
4154         * i386-tdep.c (i386_frame_saved_pc): Update.
4155         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4156         (ia64_init_extra_frame_info): Update.
4157         (ia64_init_extra_frame_info): Update.
4158         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4159         * cris-tdep.c (cris_init_extra_frame_info): Update.
4160         * avr-tdep.c (avr_frame_chain): Update.
4161         (avr_init_extra_frame_info): Update.
4162         (avr_frame_saved_pc): Update.
4163         * arm-tdep.c (arm_find_callers_reg): Update.
4164         (arm_init_extra_frame_info): Update.
4165         (arm_frame_saved_pc): Update.
4166
4167 2002-09-17  Tom Tromey  <tromey@redhat.com>
4168
4169         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4170         is "'".
4171
4172 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4173
4174         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4175         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4176         NEXT_PROLOGUE_INSN.
4177         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4178         NEXT_PROLOGUE_INSN.
4179
4180 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4181
4182         * osfsolib.c: Remove file, replaced by solib-osf.c.
4183         * Makefile.in: Remove compilation rules for osfsolib.c.
4184
4185 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4186
4187         * cp-valprint.c (cp_print_class_method): Correct args to
4188         check_stub_method_group.
4189
4190 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4191
4192         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4193         `set architecture'.  Unify naming convention of functions.
4194         (h8300_skip_prologue): Improve prologue analysis.
4195         (h8300_push_arguments): Rewritten to more closely match GCC's
4196         bizarre argument-passing behavior, along with the comment describing
4197         said behavior.
4198         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4199         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4200         sim, remote-e7000.c, remote-hms.c and remote.c
4201
4202 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4203
4204         * i386-tdep.c (gdb_print_insn_i386): Removed.
4205         (i386_print_insn): New function.
4206         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4207         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4208         tm_print_insn_info.
4209
4210 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4211
4212         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4213         zero.
4214
4215 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4216
4217         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4218         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4219         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4220
4221 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4222
4223         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4224
4225 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4226
4227         * gdbtypes.c (check_stub_method): Make static.
4228         (check_stub_method_group): New function.
4229         * gdbtypes.h: Update prototypes.
4230         * cp-support.c: New file.
4231         * cp-support.h: New file.
4232
4233         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4234         (update_method_name_from_physname): New function.
4235         (read_member_functions): Correct method names for operators
4236         and v3 constructors/destructors.  Separate v2 constructors and
4237         destructors.
4238         * Makefile.in (stabsread.o): Update dependencies.
4239         (SFILES): Add cp-support.c.
4240         (COMMON_OBS): Add cp-support.o.
4241         (cp_support_h, cp-support.o): Add.
4242
4243         * cp-valprint.c (cp_print_class_method): Call
4244         check_stub_method_group instead of check_stub_method.  Remove
4245         extraneous QUITs.
4246         * p-valprint.c (pascal_object_print_class_method): Likewise.
4247         * valops.c (search_struct_method): Likewise.
4248         (find_method_list, value_struct_elt_for_reference): Likewise.
4249
4250 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4251
4252         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4253         * gdbarch.h, gdbarch.c: Regenerate.
4254
4255 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4256
4257         * frame.c (find_saved_register): Delete function.
4258         * frame.h (find_saved_register): Delete declaration.
4259         Fix PR gdb/631.
4260
4261 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4262
4263         * mips-tdep.c (read_next_frame_reg): Re-hack using
4264         frame_register_unwind.
4265
4266 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4267
4268         * mips-tdep.c (mips_get_saved_register): Re-hack using
4269         frame_register_unwind.
4270
4271 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4272
4273         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4274         vector. Will be useful for Interix.  
4275         * gdbarch.h, gdbarch.c: Regenerate.
4276
4277         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4278         name of the malloc function by NAME_OF_MALLOC.
4279
4280 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4281
4282         * value.h (find_function_in_inferior): Add const keyword to
4283         one of the parameters. Allows us to invoke this function with
4284         a const char *.
4285         * valops.c (find_function_in_inferior): Likewise.
4286
4287 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4288
4289         * exec.c (xfer_memory): Fix compilation warning with old versions
4290         of GCC.
4291         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4292
4293 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4294
4295         * symtab.h: Run through gdb_indent.h.
4296         Add 2002 to Copyright year list.
4297
4298 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4299
4300         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4301         mach constants.
4302         * MAINTAINERS: Add myself to write after approval list.
4303
4304 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4305
4306         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4307
4308 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4309
4310         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4311         Interix.
4312
4313 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4314
4315         * procfs.c (do_detach): Clear current signal, not just fault.
4316         Corrects problem with breakpoint trap signal leaking to detached
4317         process on Tru64.
4318
4319 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4320
4321         * buildsym.c (finish_block): Protect against null pointer.
4322
4323 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4324
4325         * infcmd.c (default_print_registers_info): Send all output to
4326         ``file'' instead of ``gdb_stdout''.
4327
4328 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4329
4330         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4331         LONGEST, and use signed register read (addresses are sign-
4332         extended for mips).
4333
4334 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4335
4336         * event-loop.c (gdb_do_one_event): Make public.
4337         * event-loop.h (gdb_do_one_event): Declare.
4338
4339 2002-09-10  Jeff Law  <law@redhat.com>
4340
4341         * infttrace.c (child_resume): Simplify and rework to avoid
4342         TT_PROC_CONTINUE.
4343
4344 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4345
4346         * printcmd.c (print_scalar_formatted): "len" is the number of
4347         target bytes, NOT the number of target bits.
4348
4349 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4350
4351         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4352         * top.c (init_main): Set rl_terminal_name.
4353
4354 2002-09-08  Aidan Skinner <aidan@velvet.net>
4355
4356         * ada-lang.c (ada_array_bound, ada_type_match,
4357         _initialize_ada_language): Fix K&R definitions.
4358         * ada-tasks.c (get_current_task): Fix K&R definitions.
4359         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4360                         
4361 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4362
4363         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4364         Add XP.
4365
4366 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4367
4368         * i386-tdep.c (i386_register_virtual_type,
4369         i386_register_convertible, i386_register_convert_to_virtual,
4370         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4371         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4372         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4373         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4374         Don't set push_arguments twice.
4375
4376         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4377         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4378         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4379         sigtramp_end to NULL.
4380         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4381         defines.
4382         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4383
4384         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4385         whitespace.
4386
4387         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4388         * gdbarch.h, gdbarch.c: Re-generate.
4389         * blockframe.c (find_pc_sect_partial_function): Convert to use
4390         SIGTRAMP_START_P predicate.
4391
4392 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4393
4394         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4395         generic_dummy_frame method and old method.  Also distinguish
4396         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4397         (arm_extract_return_value): Use new regcache method.
4398
4399         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4400         adjustment that doesn't conform to the ABI.
4401         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4402         saved regcache, not from current regcache.
4403
4404 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4405
4406         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4407         * README: Update.
4408
4409 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4410
4411         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4412         if arm_apcs_32 is false.
4413
4414 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4415
4416         GDB 5.3 branch created.
4417
4418 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4419
4420         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4421         generic_unwind_get_saved_register.
4422
4423 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4424
4425         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4426         argument (PR gdb/653).  Update call to smash_to_method_type.
4427         (read_structure_scope): Update call to dwarf2_add_member_fn.
4428
4429 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4430
4431         * x86-64-linux-tdep.c: Include gdb_string.h
4432         * x86-64-linux-nat.c: Ditto.
4433
4434 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4435
4436         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4437         when YYDEBUG is set to 1.  
4438         * c-exp.y: Likewise.
4439         * f-exp.y: Likewise.
4440         * jv-exp.y: Likewise.
4441         * m2-exp.y: Likewise.
4442         * p-exp.y: Likewise.
4443
4444 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4445
4446         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4447         dependency list.
4448         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4449         solib_svr4_fetch_link_map_offsets to
4450         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4451         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4452         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4453         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4454         solib-svr4.o, and solib-legacy.o.
4455         * config/i386/tm-nbsd.h: Include solib.h.
4456
4457 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4458
4459         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4460         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4461         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4462         comment noting that this needs its own target configuration.
4463         * config/i386/nbsd.mt: New file.
4464         * config/i386/nbsdaout.mt: Remove.
4465         * config/i386/nbsdelf.mt: Ditto.
4466         * config/i386/tm-nbsdaout.h: Ditto. 
4467
4468 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4469
4470         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4471         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4472         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4473         tdep->sigtramp_end.
4474         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4475         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4476         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4477
4478 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4479
4480         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4481         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4482         * i386-tdep.h (i386bsd_init_abi): New prototype.
4483         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4484         function declaration.
4485         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4486         for NetBSD-a.out or NetBSD-ELF.
4487         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4488         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4489         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4490         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4491         and nbsd-tdep.h.
4492         (i386nbsd_pc_in_sigtramp): New function.
4493         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4494         i386nbsd_pc_in_sigtramp.
4495         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4496         and i386nbsdelf_init_abi OS ABI handlers.
4497         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4498         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4499
4500 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4501
4502         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4503         registers if the target really has them.
4504
4505 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4506
4507         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4508         than nbsd-tdep.h.
4509
4510 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4511
4512         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4513         list.
4514         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4515         (alphanbsd_skip_sigtramp_frame): New functions. 
4516         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4517         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4518         to alphanbsd_sigcontext_addr. 
4519
4520 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4521
4522         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4523         list.
4524         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4525         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4526         nbsd_pc_in_sigtramp. 
4527         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4528         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4529         * nbsd-tdep.c: Include gdb_string.h.
4530         (nbsd_pc_in_sigtramp): New function. 
4531         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4532         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4533         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4534         ppcnbsd_pc_in_sigtramp. 
4535         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4536         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4537         shnbsd_pc_in_sigtramp. 
4538         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4539         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4540         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4541
4542 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4543
4544         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4545         watchpoints to NULL.
4546         (insert_breakpoints): set val field of watchpoints if NULL.
4547
4548
4549 2002-08-29  Jim Blandy  <jimb@redhat.com>
4550
4551         * symtab.c (lookup_symbol_aux): In the cases where we find a
4552         minimal symbol of an appropriate name and use its address to
4553         select a symtab to read and search, use `name' (as passed to us)
4554         as the demangled name when searching the symtab's global and
4555         static blocks, not the minsym's name.
4556
4557 2002-08-29  Keith Seitz  <keiths@redhat.com>
4558
4559         * stack.c (print_frame_info_base): Always set current_source_symtab
4560         and current_source_line.
4561
4562 2002-08-29  Donn Terry  <donnte@microsoft.com>
4563
4564         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4565
4566 2002-08-28  Keith Seitz  <keiths@redhat.com>
4567
4568         * stack.c (select_frame): Add FIXME concerning selected-frame
4569         events.
4570         (select_frame_command): Send selected-frame-level-changed
4571         event notification, but only if the level actually changed.
4572         (up_silently_base): Add selected-frame-level-changed event
4573         notification.
4574         (down_silently_base): Likewise.
4575
4576 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4577
4578         * Makefile.in: Update dependencies for all gdb/*.c files.
4579
4580 2002-08-27  Tom Tromey  <tromey@redhat.com>
4581
4582         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4583         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4584         Update dependencies.
4585         * i387-tdep.c: Include gdb_string.h.
4586         * osabi.c: Likewise.
4587         * i386-linux-nat.c: Likewise.
4588         * lin-lwp.c: Likewise.
4589         * ax-gdb.c: Likewise.
4590         * signals/signals.c: Likewise.
4591         * jv-valprint.c: Likewise.
4592         * p-lang.c: Likewise.
4593         * c-valprint.c: Likewise.
4594         * cp-abi.c: Likewise.
4595
4596 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4597
4598         * cli/cli-script.h (copy_command_lines): Export.
4599         * breakpoint.c: Include cli/cli-script.h.
4600         * Makefile.in (breakpoint.o): Update dependencies.
4601
4602 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4603
4604         * breakpoint.c (insert_breakpoints): Protect all references
4605         to 'process_warning'.  Shorten long lines.
4606
4607 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4608
4609         * cli/cli-script.c (copy_command_lines): New function.
4610         * defs.h (copy_command_lines): Export.
4611         * testsuite/gdb.base/commands.exp: New tests for commands
4612         attached to a temporary breakpoint, and for commands that
4613         delete the breakpoint they are attached to.
4614         
4615 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4616
4617         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4618         pointer to the breakpoint commands struct, make a new copy
4619         of the struct and point to that.
4620         (bpstat_clear): Free the commands struct.
4621         (bpstat_clear_actions): Free the commands struct.
4622         (bpstat_do_actions): Free the command actions.  Also execute
4623         the local cleanups, instead of deleting them.
4624         (delete_breakpoint): Leave the commands field of the bpstat
4625         chain alone -- it will be freed later.
4626
4627 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4628
4629         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4630         deleted in 2002-08-20 commit.  This function is still used by
4631         ppc-linux-nat.c.
4632
4633 2002-08-26  Keith Seitz  <keiths@redhat.com>
4634
4635         * gdb-events.sh: Add selected-frame-level-changed event.
4636         * gdb-events.c: Regenerated.
4637         * gdb-events.h: Regenerated.
4638         
4639 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4640
4641         Fix PR gdb/393:
4642         * inflow.c (terminal_save_ours): New function to save terminal
4643         settings.
4644         * inferior.h (terminal_save_ours): Declare.
4645         * target.c (debug_to_terminal_save_ours): New function.
4646         (cleanup_target): Defaults to_terminal_save_ours.
4647         (update_current_target): Inherit to_terminal_save_ours.
4648         (setup_target_debug): Set to_terminal_save_ours.
4649         * target.h (target_terminal_save_ours): New to save terminal settings.
4650         (target_ops): New member to_terminal_save_ours.
4651         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4652         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4653         * inftarg.c (init_child_ops): Likewise.
4654         * m3-nat.c (init_m3_ops): Likewise.
4655         * procfs.c (init_procfs_ops): Likewise.
4656         * wince.c (init_child_ops): Likewise.
4657         * win32-nat.c (init_child_ops): Likewise.
4658         * sol-thread.c (init_sol_thread_ops): Likewise.
4659
4660 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4661
4662         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4663         use regcache_* functions.
4664         (i386_gdbarch_init): Set store_return_value instead of
4665         deprecated_store_return_value.
4666
4667         * regcache.c (regcache_raw_write_signed,
4668         regcache_raw_write_unsigned): New functions.
4669         * regcache.h (regcache_raw_write_signed,
4670         regcache_raw_write_unsigned): New prototypes.
4671
4672 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4673
4674         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4675         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4676         source file dependencies.  Cleanup corresponding generator rules.
4677
4678 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4679
4680         * regcache.h (register_offset_hack): Declare.
4681         (regcache_cooked_read_using_offset_hack): Declare.
4682         (regcache_cooked_write_using_offset_hack): Declare.
4683
4684         * regcache.c (register_offset_hack): New function.
4685         (regcache_cooked_read_using_offset_hack): New function.
4686         (regcache_cooked_write_using_offset_hack): New function.
4687         (regcache_dump): Check that the registers, according to their
4688         offset, are packed hard against each other.
4689         (cooked_xfer_using_offset_hack): New function.
4690
4691 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4692
4693         * regcache.c (struct regcache_descr): Add field register_type.
4694         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4695         in as a parameter
4696         (init_regcache_descr): Initialize register_type.  Pass the descr
4697         to init_legacy_regcache_descr.  Use register_type instead of
4698         REGISTER_VIRTUAL_TYPE.
4699         (register_type): New function.
4700         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4701         * regcache.h (register_type): Declare.
4702
4703 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4704
4705         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4706         instead of deprecated_store_return_value.  Fix fallout from
4707         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4708
4709 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4710
4711         * regcache.c (max_register_size): New function.
4712         (init_legacy_regcache_descr): Ensure that max_register_size is
4713         large enough for REGISTER_VIRTUAL_SIZE.
4714         * regcache.h (max_register_size): Declare.
4715
4716 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4717
4718         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4719         store_return_value.
4720         (e500_extract_return_value): Change type of valbuf pointer to
4721         void.
4722
4723 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4724
4725         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4726         workaround.
4727
4728         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4729         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4730         long long) to prevent compiler warning on 64-bit systems.
4731
4732 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4733
4734         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4735         (DEPRECATED_STORE_RETURN_VALUE): New method.
4736         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4737         * gdbarch.h, gdbarch.c: Re-generate.
4738
4739         * values.c (set_return_value): Pass current_regcache to
4740         STORE_RETURN_VALUE.
4741         * arch-utils.h (legacy_store_return_value): Declare.
4742         * arch-utils.c (legacy_store_return_value): New function.
4743         (legacy_extract_return_value): Update parameters.
4744
4745         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4746         STORE_RETURN_VALUE.
4747         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4748         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4749         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4750         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4751         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4752         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4753         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4754         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4755         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4756         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4757
4758         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4759         * i386-tdep.c (i386_extract_return_value): Update.
4760         * arch-utils.c (legacy_extract_return_value): Update.
4761         * frv-tdep.c (frv_gdbarch_init): Update.
4762         * cris-tdep.c (cris_gdbarch_init): Update.
4763         * d10v-tdep.c (d10v_gdbarch_init): Update.
4764         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4765         * m68k-tdep.c (m68k_gdbarch_init): Update.
4766         * mcore-tdep.c (mcore_gdbarch_init): Update.
4767         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4768         * s390-tdep.c (s390_gdbarch_init): Update.
4769         * sparc-tdep.c (sparc_gdbarch_init): Update.
4770         * sh-tdep.c (sh_gdbarch_init): Update.
4771         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4772         * v850-tdep.c (v850_gdbarch_init): Update.
4773         * avr-tdep.c (avr_gdbarch_init): Update.
4774         * ia64-tdep.c (ia64_gdbarch_init): Update.
4775         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4776         * vax-tdep.c (vax_gdbarch_init): Update.
4777         * alpha-tdep.c (alpha_gdbarch_init): Update.
4778         * arm-tdep.c (arm_gdbarch_init): Update.
4779         * mips-tdep.c (mips_gdbarch_init): Update.
4780         * i386-tdep.c (i386_gdbarch_init): Update.
4781
4782 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4783
4784         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4785         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4786
4787 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4788
4789         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4790         problems.
4791
4792 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4793
4794         * infrun.c (handle_inferior_event): Move a comment outside of a
4795         function call, in order to avoid indent reformatting this part
4796         of the code in an unreadable way.
4797
4798 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4799
4800         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4801         when breakpoints fail. Move general breakpoint error messages to
4802         insert_breakpoints.  
4803         * breakpoint.c (insert_breakpoints): Change warnings when
4804         breakpoints are nto inserted to specify the type. Remove call to
4805         memory_error when hardware breakpoints can't be inserted. Remove
4806         multiple calls to warning so all messages are sent to the user at
4807         once.
4808         (delete_breakpoints): Make insert error messsages more explicit.
4809
4810 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4811
4812         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4813         gdbserver/ChangeLog.
4814
4815 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4816
4817         * i386-tdep.c: Include "objfiles.h".
4818         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4819         skip_trampoline_code.
4820         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4821         (CPLUS_MARKER): Define to '.'.
4822
4823         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4824         member.
4825         (linux_corefile_thread_callback): Increase args->num_notes.
4826         (linux_make_note_section): Initialize thread_args.num_notes, and
4827         use it to determine whether notes for any threads were created.
4828
4829 2002-08-23  Donn Terry  <donnte@microsoft.com>
4830
4831         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4832         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4833         and PCUNKILL.
4834         (write_with_trace): Conditionalize out the switch branch handling
4835         PCSHOLD if the corresponding macro is not defined. Likewise for
4836         PRSABORT and PRSTOP.
4837         This change will be needed by the Interix port.
4838
4839 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4840
4841         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4842         write_register wherever possible instead of manipulating the
4843         register bytes directly.
4844         Assign VALUE_CONTENTS to a variable and use that.
4845         The GPR numbers are now dependent on the architecture.
4846         
4847 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4848
4849         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4850         ev_offset fields.
4851         (skip_prologue): Add support for BookE/e500 instructions.
4852         (e500_extract_return_value): New function.
4853         (frame_get_saved_regs): Add support for saving ev registers and
4854         pseudo gpr's.
4855         (e500_store_return_value): New function.
4856         (rs6000_gdbarch_init): Move up default intializations of
4857         deprecated_extract_return_value and store_return_value.  Overwrite
4858         init of store_return_value with e500 specific version.
4859         Set extract_return_value for e500.
4860         
4861 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4862
4863         * blockframe.c (generic_call_dummy_register_unwind): Use
4864         regcache_cooked_read to catch cases in which the variable is
4865         stored in a pseudo register.
4866
4867 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4868
4869         * NEWS: Mention that the i960 has been made obsolete.
4870         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4871         i960-tdep.c
4872         (remote-nrom.o): Obsolete target.
4873         (remote-nindy.o, i960-tdep.o): Ditto.
4874         * remote-nrom.c: Make file obsolete.
4875         * remote-nindy.c, remote-vx960.c: Ditto.
4876         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4877         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4878         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4879         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4880         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4881         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4882         i960-*-vxworks* obsolete.
4883         * MAINTAINERS: Note that the i960 is obsolete.
4884
4885 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4886
4887         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4888         detach to allow reinitialization.
4889
4890 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4891
4892         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4893         attempt).
4894
4895 2002-08-22  Jim Blandy  <jimb@redhat.com>
4896
4897         * coffread.c (coff_symfile_read): Don't try to read the line
4898         number table from disk if the image file doesn't have a symbol
4899         table; we'll never actually look at the info anyway, and Windows
4900         ships DLL's with bogus file offsets for the line number data.
4901
4902 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4903
4904         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4905         an e500 executable.
4906
4907 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4908
4909         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4910         (MSYMBOL_SIZE): Replace macro with function.
4911         (DEFAULT_MIPS_TYPE): Delete unused macro.
4912         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4913         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4914
4915 2002-08-21  Jim Blandy  <jimb@redhat.com>
4916
4917         * valops.c (value_cast): Simplify and correct logic for doing a
4918         static cast from a pointer to a base class to a pointer to a
4919         derived class.
4920
4921 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4922
4923         * infcmd.c (default_print_registers_info): Replace
4924         do_registers_info.
4925         (registers_info): Use gdbarch_print_registers_info instead of
4926         DO_REGISTERS_INFO.
4927         * inferior.h (default_print_registers_info): Replace
4928         do_registers_info.
4929         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4930         (DO_REGISTERS_INFO): Change to a predicate function.
4931         * gdbarch.h, gdbarch.c: Regenerate.
4932         
4933 2002-08-21  Keith Seitz  <keiths@redhat.com>
4934
4935         * gdb-events.sh: Add target-changed event.
4936         * gdb-events.c: Regenerated.
4937         * gdb-events.c: Regenerated.
4938         * valops.c (value_assign): Add target-changed event notification
4939         to inlval_register, lval_memory, and lval_reg_frame_relative.
4940
4941 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4942
4943         * NEWS: Add an entry regarding the improvement of the next/step
4944         operation on Alpha Tru64 multi-processor machines.
4945
4946 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4947
4948         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4949         directores.
4950         * Makefile.in: Update all _h macro definitions.
4951         * Makefile.in (install-gdbtk): Move to install section.
4952         (rdi-share/libangsd.a): Move to end of file.
4953
4954 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4955
4956         * frame.c (frame_register_unwind): When a register, set addrp to
4957         the register's byte.
4958
4959 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4960
4961         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4962         used locally, so move them from the target machine header to here.
4963         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4964         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4965         Make static.
4966         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4967
4968 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4969
4970         * NEWS: Mention that the Apollo line was made obsolete.
4971         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4972         m68*-hp-hpux* obsolete.
4973         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4974         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4975         * buildsym.c (make_blockvector): Make static.
4976         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4977         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4978         (ALLDEPFILES): Remove dstread.c.
4979         (dstread.o): Obsolete make rule.
4980         * dstread.c: Makefile obsolete.
4981         * dst.h: Ditto.
4982         * config/m68k/hp300hpux.mt: Ditto.
4983         * config/m68k/hp300hpux.mh: Ditto.
4984         * config/m68k/hp300bsd.mt: Ditto.
4985         * config/m68k/hp300bsd.mh: Ditto.
4986         * config/m68k/apollo68b.mt: Ditto.
4987         * config/m68k/apollo68v.mh: Ditto.
4988         * config/m68k/apollo68b.mh: Ditto.
4989
4990 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4991
4992         * mips-tdep.c (mips_in_return_stub): Make static.
4993         (mips_gdbarch_init): Set in_solib_return_trampoline.
4994         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4995
4996 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4997
4998         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4999         * gdbarch.c, gdbarch.h: Regenerate.
5000         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5001         Add.
5002         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5003
5004 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5005
5006         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5007         (mips_gdbarch_init): Set skip_trampoline_code, 
5008         in_solib_call_trampoline.
5009         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5010         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5011
5012 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5013
5014         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5015
5016         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5017         vector type for ev registers.
5018         (e500_pseudo_register_read): New function.
5019         (e500_pseudo_register_write): New function.
5020         (e500_dwarf2_reg_to_regnum): New function.
5021         (PPC_UISA_NOFP_SPRS): New macro.
5022         (PPC_EV_REGS): New macro.
5023         (PPC_GPRS_PSEUDO_REGS): New macro.
5024         (registers_e500): New register set for e500.
5025         (variants): Add e500 variant.
5026         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5027         before setting architectural dependent variations.  Initialize ev
5028         registers numbers.  Add case for e500 architecture.  Set the
5029         number of pseudo registers.
5030
5031 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5032
5033         * rs6000-tdep.c: Clean up comments.
5034
5035 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5036
5037         * h8300-tdep.c: Re-indent file.
5038
5039 2002-08-20  Jim Blandy  <jimb@redhat.com>
5040
5041         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5042         default for this.
5043
5044 2002-08-20  Keith Seitz  <keiths@redhat.com>
5045
5046         * breakpoints.c (watch_command_1): Use internal breakpoint
5047         when setting a watchpoint_scope breakpoint.
5048
5049 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5050
5051         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5052         (build_builtin_type_vec64i): Ditto.
5053         (build_builtin_type_vec128): Ditto.
5054         (build_builtin_type_vec128i): Ditto.
5055
5056 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5057
5058         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5059         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5060         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5061         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5062         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5063         CALL_DUMMY_ADDRESS): Delete.
5064         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5065         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5066         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5067         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5068         push_return_address.
5069         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5070         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5071         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5072         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5073         mips_n32n64_push_arguments, mips_push_return_address,
5074         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5075         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5076
5077 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5078
5079         * mips-tdep.c (mips_frame_num_args): New function.
5080         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5081         frame_saved_pc, frame_args_address, frame_locals_address, 
5082         frame_num_args, and frame_args_skip.
5083         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5084         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5085         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5086         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5087
5088 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5089
5090         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5091         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5092         * mips-tdep.c (mips_store_struct_return): New function.
5093         (mips_extract_struct_value_address): New function.
5094         (mips_gdbarch_init): Set store_struct_return and
5095         extract_struct_value_address.
5096
5097 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5098
5099         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5100         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5101         (read_file_scope): Check that line_header is nonzero before
5102         decoding macro information.
5103
5104 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5105
5106         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5107         flag the general-purpose registers as floating-point on targets
5108         that don't support the floating-point registers.
5109
5110 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5111
5112         * rs6000-tdep.c (altivec_register_p): Delete.
5113         (rs6000_do_altivec_registers): Delete.
5114         (rs6000_altivec_registers_info): Delete.
5115         (rs6000_do_registers_info): Delete.
5116         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5117         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5118
5119 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5120
5121         * infcmd.c (do_registers_info): Print vector registers in hex
5122         format only.
5123         (print_vector_info): Check that printing registers
5124         makes sense.
5125         (print_float_info): Ditto.
5126
5127 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5128
5129         * mips-tdep.c (mips_gdbarch_init): Update.
5130         (mips_o32_extract_return_value): Rewrite.
5131         (mips_o32_store_return_value): Rewrite.
5132         (mips_o32_xfer_return_value): New function.
5133         (mips_xfer_register): Tweak debug print message.  Allow for
5134         buf_offset when dumping the value transfered.
5135
5136 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5137
5138         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5139         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5140         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5141         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5142         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5143
5144 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5145
5146         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5147
5148 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5149
5150         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5151         register.
5152         (P): New macro to define a register as a pseudo register.
5153         (R, R4, R8, R16, FR32, R64, R0): Updated.
5154         (struct variant): Add new fields for number of pseudo registers
5155         and number of total registers.
5156         (tot_num_registers): New macro replacing....
5157         (num_registers): ...deleted macro.
5158         (num_registers): New function.
5159         (num_pseudo_registers): New function.
5160         (variants): Update all variants to intialize new fields correctly.
5161         Postpone initialization of number of pseudo regs and real regs.
5162         (init_variants): New function.
5163         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5164         registers offsets.
5165
5166 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5167
5168         * valops.c (search_struct_field): Change error message to treat
5169         return value of 0 from value_static_field as meaning that field is
5170         optimized out.
5171         (value_struct_elt_for_reference): Ditto.
5172         * values.c (value_static_field): Treat an unresolved location the
5173         same as a nonexistent symbol.  Fix PR gdb/635.
5174         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5175         enclosed.  Fix PR gdb/574.
5176         * MAINTAINERS: Add self to Write After Approval list.
5177
5178 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5179
5180         * mips-tdep.c (mips_xfer_register): New function.
5181         (mips_n32n64_extract_return_value): Rewrite.
5182         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5183         instead of deprecated_extract_return_value.
5184
5185 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5186
5187         * rs6000-tdep.c (TDEP): Delete macro.
5188         (branch_dest): Replace use of TDEP macro with its body.
5189         (rs6000_pop_frame): Ditto.
5190         (rs6000_push_arguments): Ditto.
5191         (rs6000_skip_trampoline_code): Ditto.
5192         (rs6000_frame_saved_pc): Ditto.
5193         (rs6000_frame_chain): Ditto.
5194         (rs6000_register_name): Ditto.
5195         (rs6000_register_byte): Ditto.
5196         (rs6000_register_raw_size): Ditto.
5197         (rs6000_register_virtual_type): Ditto.
5198         (rs6000_register_convertible): Ditto.
5199         (rs6000_convert_from_func_ptr_addr): Ditto.
5200
5201 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5202
5203         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5204         conditionally.
5205         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5206         MIPS_LINUX_JB_ELEMENT_SIZE.
5207         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5208         for MAX_REGISTER_RAW_SIZE arrays.
5209         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5210         MIPS_LINUX_JB_ELEMENT_SIZE.
5211
5212 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5213
5214         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5215
5216 2002-08-19  Aidan Skinner <aidan@velvet.net>
5217
5218         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5219         ada-valprint.c ada-tasks.c.
5220         (YYFILES): Add ada-exp.y.
5221         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5222         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5223         (ada-exp.tab.o): New target.
5224                 
5225 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5226
5227         * regcache.c (regcache_xfer_part): New function.
5228         (regcache_raw_read_part): New function.
5229         (regcache_raw_write_part): New function.
5230         (regcache_cooked_read_part): New function.
5231         (regcache_cooked_write_part): New function.
5232         * regcache.h (regcache_raw_read_part): Declare.
5233         (regcache_raw_write_part): Declare.
5234         (regcache_cooked_read_part): Declare.
5235         (regcache_cooked_write_part): Declare.
5236
5237 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5238
5239         * remote.c (remote_open_1): Add async_p.
5240         (remote_async_open_1): Delete.
5241         (open_remote_target): Delete.
5242         (remote_open, extended_remote_open): Update calls to remote_open_1.
5243         (remote_async_open, extended_remote_async_open): Call
5244         remote_open_1 instead of remote_async_open_1.
5245
5246 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5247
5248         * blockframe.c: Fix a few coding standard violations.
5249
5250 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5251
5252         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5253         here from ...
5254         * config/i386/tm-i386sco5.h: ... here.  File removed.
5255         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5256
5257         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5258         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5259         (TM_FILE): Set to tm-i386.h.
5260         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5261         * config/i386/tm-i386v.h: Remove file.
5262         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5263         instead of "i386/tm-i386v.h".
5264         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5265         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5266         "i386/tm-i386v.h".
5267         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5268         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5269         "i386/tm-i386.h".
5270
5271 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5272
5273         * config/i386/nm-i386v.h: Add protection against
5274         multiple-inclusion.
5275         (i386_register_u_addr): Remove prototype.
5276         (register_u_addr): New prototype.
5277         (REGISTER_U_ADDR): Redefine accordingly.
5278         * i386v-nat.c: Improve several comments.
5279         (i386_register_u_addr): Change signature and rename to
5280         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5281         ubase variable.
5282
5283 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5284
5285         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5286         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5287         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5288         deprecated_extract_return_value.
5289         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5290         rename mips_o32o64_push_arguments.
5291         (mips_gdbarch_init): Update.
5292         (mips_extract_return_value): Delete.
5293         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5294         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5295         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5296         (mips_n32n64_extract_return_value): Clone
5297         mips_extract_return_value.
5298         (mips_store_return_value): Delete.
5299         (mips_o32_store_return_value): Clone mips_store_return_value.
5300         (mips_o64_store_return_value): Clone mips_store_return_value.
5301         (mips_eabi_store_return_value): Clone mips_store_return_value.
5302         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5303
5304 2002-08-18  Aidan Skinner <aidan@velvet.net>
5305
5306         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5307         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5308                 
5309 2002-08-18  Aidan Skinner <aidan@velvet.net>
5310
5311         * ada-lang.c: Run through gdb_indent.sh.
5312         * ada-lang.h: Run through gdb_indent.sh.
5313         * ada-tasks.c: Run through gdb_indent.sh.
5314         * ada-typeprint.c: Run through gdb_indent.sh.
5315         * ada-valprint.c: Run through gdb_indent.sh.
5316
5317 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5318
5319         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5320         ABI.
5321
5322 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5323
5324         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5325
5326         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5327         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5328
5329         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5330         write_register_gen instead of write_register_bytes.
5331
5332         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5333         i[3456]-*-osf1mk* configurations have been made obsolete.
5334         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5335         i[3456]86-*-osf1mk* hosts obsolete.
5336         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5337         targets obsolete.
5338         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5339         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5340         config/i386/i386m3.mt, config/i386/nm-m3.h,
5341         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5342         config/i386/i386mk.mh, config/i386/i386mk.mt,
5343         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5344         obsolete.
5345         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5346         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5347         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5348
5349 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5350
5351         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5352         (hppa_value_returned_from_stack): Declare.
5353         (hppa_extract_return_value): Declare.
5354         * config/pa/hppa.mt: New file.
5355         * configure.tgt: Recognize hppa*-*-*.
5356         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5357
5358 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5359
5360         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5361         comment.
5362
5363 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5364
5365         * top.c (gdb_rl_operate_and_get_next): Make sure
5366         operate-and-get-next functions correctly even when the history
5367         list is completely filled.
5368
5369 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5370
5371         * MAINTAINERS (Target Instruction Set Architectures): Rename
5372         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5373         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5374         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5375         already listed under Host/Native.
5376
5377         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5378         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5379         mips*-*-*.
5380
5381 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5382
5383         * config/ia64/ia64.mt: New file.
5384         * config/alpha/alpha.mt: New file.
5385         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5386         ia64-linux-gnu.  Mention that ia64-elf is broken.
5387         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5388
5389 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5390
5391         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5392         generic_func_frame_valid instead of func_frame_valid.
5393
5394 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5395
5396         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5397         procfs appears to be broken when debugging on multi-processor
5398         machines. So enable software single stepping in order to avoid
5399         using the procfs interface to do next/step operations, using
5400         internal breakpoints instead.
5401
5402         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5403         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5404         make this pc address equal to the value it would have if the
5405         system stepping capability was used. Also set a new flag used
5406         to ensure that we don't readjust the PC one more time later.
5407
5408         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5409         address by DECR_PC_AFTER_BREAK when software single step is
5410         in use for this architecture, as this has already been taken
5411         care of in handle_inferior_event().
5412
5413 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5414
5415         * infrun.c (handle_inferior_event): Minor reformatting, to make
5416         a rather long condition expression easier to read.
5417
5418 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5419
5420         * Makefile.in (gdbtk.o): Move to end of file.
5421         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5422         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5423         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5424         (gdbtk-wrapper.o, gdbres.o): Ditto.
5425
5426 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5427
5428         * Makefile.in (copying.o): Separate out compile rule.
5429         (hpux-thread.o, procfs.o, signals.o): Ditto.
5430         (v850ice.o, z8k-tdep.o): Ditto.
5431         (tui-file.o): Move to TUI section.
5432         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5433         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5434
5435 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5436
5437         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5438         skip_trampoline_code, for better namespace-proofing.   
5439
5440         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5441
5442 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5443
5444         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5445
5446 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5447
5448         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5449         signal, check whether we hit a breakpoint before checking for a
5450         single step breakpoint. Otherwise, GDB fails to notice that a
5451         breakpoint has been hit when stepping onto a breakpoint.
5452
5453 2002-08-16  Keith Seitz  <keiths@redhat.com>
5454
5455         * gdb-events.sh (clear_gdb_event_hooks): New function.
5456         * gdb-events.c: Regenerate.
5457         * gdb-events.h: Regenerate.
5458
5459 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5460
5461         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5462         not_a_sw_breakpoint.
5463         * breakpoint.h (bpstat_stop_status): Add parameter names.
5464
5465 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5466
5467         * remote.c (remote_insert_hw_breakpoint)
5468         (remote_remove_hw_breakpoint): Fix calculation of length field
5469         for Z-packet.
5470
5471 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5472
5473         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5474         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5475         (supply_fpregset): Ditto.
5476         
5477         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5478         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5479         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5480         (TARGET_READ_SP): Delete.
5481         (DO_REGISTERS_INFO): Delete.
5482         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5483         Delete.
5484         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5485         from macros to functions.
5486
5487         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5488         (mips_register_convertible, mips_register_convert_to_virtual,
5489         mips_register_convert_to_raw): Make static.
5490         (mips_read_sp): New function.
5491         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5492         (mips_do_registers_info): Make static.
5493         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5494         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5495         (mips_register_convert_from_type, mips_register_convert_to_type):
5496         New functions.
5497         (mips_gdbarch_init): Set up function_start_offset, 
5498         register_virtual_size, pc_in_sigtramp.
5499
5500 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5501
5502         * infcmd.c (vector_info): New function.
5503         (_initialize_infcmd): Add command "info vector".
5504         (print_vector_info): New function.
5505
5506         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5507         * gdbarch.h, gdbarch.c: Regenerate.
5508
5509 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5510
5511         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5512         ``print_all''.  Only print vector registers when ``print_all''.
5513
5514 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5515
5516         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5517         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5518
5519         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5520         Add `args' parameter.
5521         * gdbarch.h, gdbarch.c: Regenerate.
5522         
5523         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5524         
5525         * infcmd.c (float_info): Call print_float_info.
5526         (print_float_info): New function.  By default, print the
5527         floating-point registers.
5528
5529         * arch-utils.h (default_print_float_info): Delete declaration.
5530         * arch-utils.c (default_print_float_info): Delete function.
5531         
5532 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5533
5534         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5535         out define.
5536
5537         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5538         FRAME.
5539
5540         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5541         * configure.host: Make i[3456]86-*-aix host obsolete.
5542         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5543         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5544         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5545         config/i386/xm-i386aix.h: Make files obsolete.
5546         * i386aix-nat.c: Make file obsolete.
5547         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5548         (i386aix-nat.o): Make target obsolete.
5549
5550         * config/i386/nm-gnu.h: Removed.
5551         * config/i386/nm-i386gnu.h: New file.
5552         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5553         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5554         Moved here from ...
5555         * config/i386/tm-i386gnu.h: ... here.  Removed.
5556         * config/i386/xm-i386gnu.h: Removed.
5557         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5558         (NAT_FILE): Set to nm-i386gnu.h.
5559         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5560         * i386-tdep.c: New file.
5561         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5562         (i386gnu-tdep.o): Specify dependencies.
5563
5564 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5565
5566         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5567         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5568         Adjust a few comments to reflect reality a bit closer.
5569         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5570         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5571         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5572         target_insert_watchpoint, target_remove_watchpoint):
5573         Move defines to ...
5574         * config/i386/nm-i386sco5.h: ... here.
5575         (kernel_u_size): Add prototype.  Improve a few comments and add
5576         protection against multiple inclusion.
5577         
5578         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5579         out define.
5580
5581         * uw-thread.c (SP_ARG0): Define if not already defined.
5582         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5583
5584         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5585
5586         * config/i386/tm-i386.h: Don't include "regcache.h".
5587
5588         * i387-tdep.h (i387_print_float_info): New prototype.
5589         * i387-tdep.c (print_i387_value, print_i387_ext,
5590         print_i387_status_word, print_i387_control_word): Add `struct
5591         ui_file *' argument and use it for output.
5592         (i387_print_float_info): Renamed from i387_float_info.  Add
5593         `struct gdbarch *' and `struct ui_file *' arguments and use the
5594         latter for output.
5595         * i386-tdep.c: Include "i387-tdep.h".
5596         (i386_gdbarch_init): Set print_float_info.
5597         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5598         (FLOAT_INFO): Remove define.
5599
5600 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5601
5602         * mips-tdep.c (mips_push_arguments): Rename to
5603         mips_eabi_push_arguments, and tune for EABI.
5604         (MIPS_REGS_HAVE_HOME_P): Delete.
5605         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5606         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5607         Delete references to mips_regs_have_home_p.
5608
5609 2002-08-14  Keith Seitz  <keiths@redhat.com>
5610
5611         * Makefile.in (install-gdbtk): Create insight plugin directory.
5612         Install plugins.tcl file.
5613
5614 2002-08-14  Keith Seitz  <keiths@redhat.com>
5615
5616         * configure.in: Move SUBDIRS to near top of the file so that
5617         --enable options may add things to it.
5618         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5619         * configure: Regenerate.
5620
5621 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5622
5623         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5624         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5625         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5626
5627 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5628
5629         * vax-tdep.c (vax_get_saved_register): Delete function.
5630         (vax_gdbarch_init): Update.
5631         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5632         (ns32k_gdbarch_init): Update.
5633         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5634         (alpha_gdbarch_init): Update.
5635
5636 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5637
5638         * regcache.c (init_regcache_descr): Overallocate the
5639         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5640         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5641         nr_raw_registers.
5642         (set_register_cached): Add range checking assertions.  Use
5643         current_regcache.
5644
5645 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5646
5647         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5648         numbers for MMX registers.
5649
5650 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5651
5652         * i386-tdep.c (i386_gdbarch_init): Use
5653         generic_unwind_get_saved_register.
5654
5655 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5656
5657         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5658         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5659         target vector.
5660         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5661         Delete.  Add comment regarding this now-deleted target method.
5662
5663 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5664
5665         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5666         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5667         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5668         real PC and the page number (if it's within the memory bank window).
5669         (m68hc11_pseudo_register_write): Likewise when saving.
5670         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5671         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5672         (m68hc11_register_raw_size): And use 32-bit for it.
5673         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5674         16K memory bank is used by the prog; also use the virtual pc.
5675
5676 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5677
5678         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5679         (m68hc11_gdbarch_init): Install it in gdbarch.
5680         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5681         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5682         (MSYMBOL_SIZE): New for documentation.
5683         (insn_return_kind): Enum to specify how a function returns.
5684         (frame_extra_info): Cleanup and record the return mode.
5685         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5686         register in address computation.
5687         (m68hc11_get_return_insn): New to obtain the return instruction used
5688         by the function.
5689         (m68hc11_frame_init_saved_regs): Take into account the return
5690         instruction used by the function for far and interrupt functions.
5691         (m68hc11_init_extra_frame_info): Take into account page register.
5692         (m68hc11_frame_args_address): Adjust according to the return mode.
5693         (show_regs): Print page register only when it's used.
5694
5695 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5696
5697         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5698         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5699         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5700         registers.
5701         (m68hc11_register_raw_size): Likewise.
5702
5703 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5704
5705         * i386-tdep.c (i386_register_name): Handle mmx registers.
5706         (mmx_regnum_p): New function.
5707         (i386_mmx_names): New array.
5708         (mmx_num_regs): New variable.
5709         (i386_pseudo_register_read): New function.
5710         (i386_pseudo_register_write): New function.
5711         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5712
5713         * regcache.c (regcache_raw_read_unsigned): New function.
5714         (regcache_raw_read_signed): New function.
5715         * regcache.h (regcache_raw_read_unsigned): Declare.
5716         (regcache_raw_read_signed): Declare.
5717
5718 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5719
5720         * regcache.c (regcache_raw_read_as_address): Delete function.
5721         (regcache_cooked_read_signed): New function.
5722         (regcache_cooked_read_unsigned): New function.
5723         * regcache.h (regcache_cooked_read_signed): Declare.
5724         (regcache_cooked_read_unsigned): Declare.
5725         (regcache_raw_read_as_address): Delete declaration.
5726
5727         * blockframe.c (generic_read_register_dummy): Use
5728         regcache_cooked_read_unsigned.
5729         * i386-tdep.c (i386_extract_struct_value_address): Use
5730         regcache_cooked_read_unsigned.
5731
5732 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5733
5734         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5735         double sizes according to ELF ABI flags.
5736         (gdbarch_tdep): Record elf_flags.
5737
5738 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5739
5740         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5741         (m6812_prolog): They can appear in 68HC12 function prologue.
5742         (m68hc11_frame_chain): Cleanup.
5743
5744 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5745
5746         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5747         declarations.
5748         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5749         (i386_linux_register_raw_size): Delete function.
5750         (i386_linux_init_abi): Update.
5751         * i386-tdep.c (i386_register_raw_size): Delete function.
5752         (i386_register_byte): Delete function.
5753         (i386_gdbarch_init): Update.
5754         (i386_register_size): Delete array.
5755         (i386_register_offset): Delete array.
5756
5757         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5758         (REGISTER_RAW_SIZE): Delete macro.
5759         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5760         (REGISTER_BYTE): Delete macro.
5761
5762 2002-08-11  Aidan Skinner <aidan@velvet.net>
5763
5764         * ada-lang.c (ada_lookup_partial_symbol)
5765         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5766         prototype names so that grep ^func works properly.
5767
5768         * ada-lang.c (ada_array_element_type)
5769         (ada_lookup_partial_symbol): Fix typos in parameter list.
5770
5771         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5772         Fix prototype names so that grep ^func works properly.
5773         
5774 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5775             Elena Zannoni  <ezannoni@redhat.com>
5776             Martin M. Hunt  <hunt@redhat.com>
5777
5778         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5779         (build_builtin_type_vec128i): Set the vector bit.
5780         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5781         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5782         (build_builtin_type_vec64): New function.
5783         (build_builtin_type_vec64i): New function.
5784         (build_gdbtypes): Initialize builtin_type_vec64 and
5785         builtin_type_vec64i.
5786
5787 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5788
5789         * regcache.c (regcache_dump): Compare the register offset
5790         with REGISTER_BYTE.
5791         * arch-utils.c (generic_register_byte): New function.
5792         * arch-utils.h (generic_register_byte): Declare.
5793         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5794         * gdbarch.h, gdbarch.c: Regenerate.
5795
5796 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5797
5798         * regcache.c: Include "gdbcmd.h"
5799         (_initialize_regcache): Add commands "maintenance print
5800         registers", "maintenance print raw-registers" and "maintenance
5801         print cooked-registers".
5802         (enum regcache_dump_what): Define.
5803         (dump_endian_bytes): New function.
5804         (regcache_dump): New function.
5805         (regcache_print): New function.
5806         (maintenance_print_registers): New function.
5807         (maintenance_print_raw_registers): New function.
5808         (maintenance_print_cooked_registers): New function.
5809         * Makefile.in (regcache.o): Update dependencies.
5810
5811 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5812
5813         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5814         (mips_push_arguments): Correct some comments.  Use paddr_nz
5815         for printing addresses in debug output.  Replace static
5816         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5817         (mips_n32n64_push_arguments): New function, cloned from
5818         mips_push_arguments and tuned for the n32/n64 ABI.
5819         (mips_push_register): Buffer needs dynamic allocation.
5820         (mips_print_register): Ditto.
5821         (do_gp_register_row): Ditto.
5822         (mips_store_return_value): Ditto.
5823         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5824
5825 2002-08-09  Don Howard  <dhoward@redhat.com>
5826
5827         * memattr.c (mem_info_command): Print special case of upper bound
5828         as max CORE_ADDR + 1.
5829
5830 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5831
5832         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5833         returns structs by ref if they're too big to fit in two registers.
5834
5835 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5836
5837         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5838         saved regs value.
5839         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5840         mips_find_saved_regs().
5841         (mips_pop_frame): Likewise.
5842
5843 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5844
5845         * blockframe.c (frame_saved_regs_register_unwind): Revise
5846         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5847         frames are in use.
5848
5849 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5850         
5851         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5852         T-packets; the 'a' is not taken as a register number.
5853         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5854         (remote_stopped_data_address): New functions; add to target
5855         vector.
5856         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5857         prototypes to match other implementations of this
5858         function. replace integer argument with pointer -- the length
5859         field in the Z-packet is the length of what is pointed to or 1 if
5860         pointer is null. Add to target vector.
5861         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5862         target vector.
5863
5864         From Mark Salter:
5865         * remote.c (remote_wait): Add support to extract optional
5866         watchpoint information from T-packet. Ignore unrecognized
5867         optional info in T-packet.
5868         (remote_async_wait): Ditto.
5869
5870 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5871
5872         * cli/cli-dump.c: Change fopen modes to use binary open modes
5873         as defined in include/fopen-bin.h throughout.
5874
5875 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5876
5877         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5878
5879 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5880
5881         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5882         assertion failure by returning early after a warning.
5883
5884 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5885
5886         * mips-tdep.c (mips_find_saved_regs): Make static.
5887         (mips_frame_init_saved_regs): New function.
5888         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5889         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5890         (mips_find_saved_regs): Delete declaration.
5891
5892 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5893
5894         * remote.c (remote_wait, remote_async_wait): Change
5895         thread_num from int to ULONGEST.
5896         (unpack_varlen_hex): Change result parameter from
5897         int * to ULONGEST *.
5898
5899 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5900
5901         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5902         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5903         powerpc*-*-*.
5904         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5905
5906 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5907
5908         * gcore.c (override_derive_stack_segment): Delete variable.
5909         (preempt_derive_stack_segment): Delete function.
5910         (derive_stack_segment): Delete function.
5911         (default_derive_stack_segment): Renamed to derive_stack_segment.
5912         (override_derive_heap_segment): Delete variable.
5913         (preempt_derive_heap_segment): Delete function.
5914         (derive_heap_segment): Delete function.
5915         (default_derive_heap_segment): Rename to derive_heap_segment.
5916
5917 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5918
5919         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5920         * mips-tdep.c (mips_EABI_use_struct_convention, 
5921         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5922         New functions.  (mips_use_struct_convention): Delete.
5923         (mips_gdbarch_init): set use_gdbarch_convention.
5924
5925 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5926
5927         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5928         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5929         mips_o32_reg_struct_has_addr): New functions.
5930         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5931
5932 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5933
5934         * regcache.c (pseudo_register): Delete function.
5935         (fetch_register): Delete function.
5936         (store_register): Delete function.
5937         (regcache_raw_read, legacy_read_register_gen): Use
5938         target_fetch_registers instead of fetch_register.
5939         (legacy_write_register_gen, regcache_raw_write): Use
5940         target_store_register instead of store_register.
5941         (write_register_bytes): Ditto.
5942
5943         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5944         (STORE_PSEUDO_REGISTER): Delete.
5945         * gdbarch.h, gdbarch.c: Regenerate.
5946
5947 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5948
5949         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5950         write dump file binary.
5951
5952 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5953
5954         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5955         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5956         (mips_gdbarch_init): Set N32 target to be mips64.
5957
5958 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5959
5960         * frame.c (find_saved_register): Break out of loop once saved
5961         register address is found.  Don't mention sparc in loop comment
5962         anymore.
5963
5964 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5965
5966         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5967         mips_default_saved_regsize to 8.
5968
5969 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5970
5971         * gcore.c: Do not include <sys/procfs.h>.
5972         * Makefile.in (gcore.o): Update dependencies.
5973
5974 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5975
5976         * configure.tgt: Make arc-*-* obsolete.
5977         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5978         * MAINTAINERS: Make arc-elf obsolete.
5979         * arc-tdep.c: Make file obsolete.
5980         * config/arc/arc.mt: Ditto.
5981         * config/arc/tm-arc.h: Ditto.
5982
5983 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5984
5985         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5986
5987 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5988
5989         * mcore-tdep.c (mcore_gdbarch_init): Use
5990         generic_unwind_get_saved_register instead of
5991         generic_get_saved_register.
5992         * v850-tdep.c (v850_gdbarch_init): Ditto.
5993         * frv-tdep.c (frv_gdbarch_init): Ditto.
5994         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5995         * s390-tdep.c (s390_gdbarch_init): Ditto.
5996         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5997         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5998         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5999
6000 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6001
6002         * objfiles.h: Add missing #include "symfile.h"
6003
6004         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6005
6006 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6007
6008         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6009         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6010         of FIELD_BITSIZE.
6011
6012 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6013
6014         * NEWS: Cleanup and nitpick.
6015
6016 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6017
6018         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6019
6020 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6021
6022         * Makefile.in (gdbtk-bp.o): Update dependencies.
6023         (gdbtk-register.o): Ditto.
6024         (gdbtk-varobj.o): Ditto.
6025
6026 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6027
6028         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6029         m68hc11_fetch_pseudo_register.
6030         (m68hc11_pseudo_register_write): Replace
6031         m68hc11_store_pseudo_register.
6032         (m68hc11_gdbarch_init): Update.
6033
6034 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6035
6036         * gdbarch.sh: Include "gdb_string.h".
6037         * gdbarch.c: Regenerate.
6038
6039         * regcache.c: Include "gdb_string.h".
6040         * ax-general.c: Ditto.
6041         * varobj.c: Ditto.
6042         * std-regs.c: Ditto.
6043         * fbsd-proc.c: Ditto.
6044         * thread.c: Ditto.
6045
6046         * Makefile.in (regcache.o): Update dependencies.
6047         (thread.o, gdbarch.o): Ditto.
6048         (ax-general.o, gdbarch.o): Ditto.
6049         (varobj.o, std-regs.o): Ditto.
6050         (fbsd-proc.o): Specify dependencies.
6051
6052 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6053
6054         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6055         regnum.
6056         (regcache_cooked_write): Ditto.
6057
6058 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6059
6060         * regcache.c (regcache_cooked_read): New function.
6061         (regcache_cooked_write): New function.
6062         (read_register_gen): Rewrite using regcache_cooked_read.
6063         (write_register_gen): Rewrite using regcache_cooked_write.
6064
6065         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6066         Declare.
6067
6068 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6069
6070         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6071         Replace the architecture methods register_read and register_write.
6072         * gdbarch.h, gdbarch.c: Regenerate.
6073         * regcache.c (init_regcache_descr): Update.
6074         (read_register_gen): Update.
6075         (write_register_gen): Update.
6076         (supply_register): Update comment.
6077
6078         * sh-tdep.c (sh_gdbarch_init): Update.
6079         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6080         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6081         pointer.  Update code.
6082         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6083         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6084         void pointer.  Update code.
6085         (sh64_register_write): Delete.
6086         (sh4_register_read): Delete.
6087         (sh64_register_read): Delete.
6088         (sh4_register_write): Delete.
6089         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6090         void pointer, `to' parameter a void pointer.
6091         (sh_sh64_register_convert_to_raw): Ditto.
6092
6093 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6094
6095         * mips-tdep.c (mips_register_virtual_type): Use architecture
6096         invariant return values.
6097
6098 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6099
6100         * linux-proc.c: Include "gdb_string.h".
6101         * Makefile.in (linux-proc.o): Update dependency list.
6102
6103 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6104
6105         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6106         comment.
6107
6108 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6109
6110         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6111         to_insert_watchpoint, to_remove_watchpoint,
6112         to_stopped_by_watchpoint, to_stopped_data_address,
6113         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6114         target vecctor. Define their corresponding macros so they call
6115         them.
6116         
6117         * target.c: Add default and debug versions of for
6118         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6119         to_insert_watchpoint, to_remove_watchpoint,
6120         to_stopped_by_watchpoint, to_stopped_data_address,
6121         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6122
6123 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6124
6125         * mips-tdep.c (mips_register_virtual_type): New function.
6126         (mips_gdbarch_init): Register mips_register_virtual_type()
6127         with gdbarch machinery.
6128         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6129         this file instead of tm-bigmips.h.
6130         (MIPS_REGSIZE): Delete this macro.
6131         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6132         multiarch version in mips-tdep.c will be found.
6133
6134 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6135
6136         * NEWS: Menion that CHILL has been made obsolete.
6137
6138         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6139         * stabsread.c (read_range_type): Ditto.
6140         * gdbtypes.h: Ditto.
6141         * language.c (binop_type_check): Ditto.
6142         (binop_result_type): Ditto.
6143         (integral_type): Ditto.
6144         (character_type): Ditto.
6145         (string_type): Ditto.
6146         (boolean_type): Ditto.
6147         (structured_type): Ditto.
6148         (lang_bool_type): Ditto.
6149         (binop_type_check): Ditto.
6150         * language.h (_LANG_chill): Ditto.
6151         * dwarfread.c (set_cu_language): Ditto.
6152         * dwarfread.c (CHILL_PRODUCER): Ditto.
6153         * dwarfread.c (handle_producer): Ditto.
6154         * expression.h (enum exp_opcode): Ditto.
6155         * eval.c: Ditto for comments.
6156         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6157         * expprint.c (print_subexp): Ditto.
6158         (print_subexp): Ditto.
6159         * valops.c (value_cast): Ditto.
6160         (search_struct_field): Ditto.
6161         * value.h (COERCE_VARYING_ARRAY): Ditto.
6162         * symfile.c (init_filename_language_table): Ditto.
6163         (add_psymbol_with_dem_name_to_list): Ditto.
6164         * valarith.c (value_binop): Ditto.
6165         (value_neg): Ditto.
6166         * valops.c (value_slice): Ditto.
6167         * symtab.h (union language_specific): Ditto.
6168         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6169         (SYMBOL_DEMANGLED_NAME): Ditto.
6170         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6171         * defs.h (enum language): Ditto.
6172         * symtab.c (got_symtab): Ditto.
6173         * utils.c (fprintf_symbol_filtered): Ditto.
6174
6175         * ch-typeprint.c: Make file obsolete.
6176         * ch-valprint.c: Make file obsolete.
6177         * ch-lang.h: Make file obsolete.
6178         * ch-exp.c: Make file obsolete.
6179         * ch-lang.c: Make file obsolete.
6180
6181         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6182         CHILL_LIB.
6183         (TARGET_FLAGS_TO_PASS): Ditto.
6184         (CHILLFLAGS): Obsolete.
6185         (CHILL): Obsolete.
6186         (CHILL_FOR_TARGET): Obsolete.
6187         (CHILL_LIB): Obsolete.
6188         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6189         ch-valprint.c.
6190         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6191         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6192         ch-lang.o.
6193         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6194         targets.
6195
6196 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6197
6198         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6199         This does not change anything at the moment, but will be helpful
6200         later when full Ada support is integrated.
6201
6202 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6203
6204         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6205         help message.
6206
6207 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6208
6209         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6210         and save it in a local variable.  Use variable in later test.
6211
6212 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6213
6214         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6215         test.  (Thanks to Daniel Jacobowitz.)
6216         
6217 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6218
6219         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6220         (mips_abi_strings): Add "n64".
6221         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6222
6223 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6224
6225         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6226         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6227
6228 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6229
6230         * utils.c (host_pointer_to_address, address_to_host_pointer):
6231         Use gdb_assert() instead of explicit call to internal_error().
6232
6233 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6234
6235         * Makefile.in (rs6000-nat.o): Update dependencies.
6236
6237         From Nicholas Duffek:
6238         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6239         (aix-thread.o): New rule.
6240         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6241         * config/powerpc/aix432.mh: New file.
6242
6243 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6244
6245         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6246         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6247         (fetch_core_registers, ppc_linux_supply_gregset)
6248         (ppc_linux_supply_fpregset): New functions.
6249         (ppc_linux_regset_core_fns): New.
6250         (_initialize_ppc_linux_tdep): Call add_core_fns.
6251         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6252         and ppc_linux_supply_gregset.
6253         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6254         (supply_fpregset): Call ppc_linux_supply_fpregset.
6255         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6256         corelow.o.
6257         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6258
6259 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6260
6261         * symtab.c (lookup_symbol): Demangle before lowercasing.
6262
6263 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6264
6265         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6266         declaration.
6267         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6268         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6269         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6270         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6271         "gdb_string.h".
6272         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6273         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6274         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6275         (avr-tdep.o, mon960-rom.o): Ditto.
6276         (aout_stabs_gnu_h): Define.
6277         (symtab_h): Remove $(gdb_obstack_h).
6278
6279 2002-07-30  Jim Blandy  <jimb@redhat.com>
6280
6281         Patch from David Carlton <carlton@math.stanford.edu>:
6282         * gdbinit.in: Move the `dir' commands that add GDB's own source
6283         directory to the search path to the end, so that the `gdb' source
6284         directory will be searched first.
6285
6286 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6287
6288         * gdb_obstack.h: New file.
6289         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6290         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6291         * objfiles.h: Include "gdb_obstack.h".
6292         * Makefile.in (gdb_obstack_h): Define.
6293         (symtab_h): Add $(gdb_obstack_h).
6294         (objfiles_h): Add $(gdb_obstack_h).
6295         
6296         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6297         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6298         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6299         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6300         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6301         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6302         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6303         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6304
6305         * Makefile.in (bcache.o): Update dependencies.
6306         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6307         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6308         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6309         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6310         (stabsread.o, symfile.o, symmisc.o): Ditto.
6311         (symtab.o, typeprint.o, macroexp.o): Ditto.
6312         (macrotab.o, mdebugread.o): Ditto.
6313         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6314         (coff_ecoff_h, aout_aout64_h): Define.
6315         (aout_stabs_gnu_h, libaout_h): Define.
6316
6317 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6318
6319         * regcache.c (struct regcache_descr): Rename nr_registers to
6320         nr_cooked_registers.  Revise comments describing the structure
6321         member fields.
6322         (init_regcache_descr): Update.
6323         (init_legacy_regcache_descr): Update.
6324         (read_register_gen, write_register_gen): When a cooked register in
6325         the raw register range, directly access the value from the raw
6326         register cache.
6327
6328 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6329
6330         * z8k-tdep.c: Do not include "obstack.h".
6331         * h8300-tdep.c, h8500-tdep.c: Ditto.
6332         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6333         * valprint.c, v850-tdep.c: Ditto.
6334         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6335         * mn10200-tdep.c: Ditto.
6336
6337         * Makefile.in (z8k-tdep.o): Update dependencies.
6338         (m68hc11-tdep.o, valprint.o): Ditto.
6339         (v850-tdep.o, d10v-tdep.o): Ditto.
6340         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6341         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6342         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6343         (sh_opc_h, gdb_sim_sh_h): Define.
6344         (elf_sh_h, elf_bfd_h): Define.
6345         (opcode_m68hc11_h): Define.
6346         (OPCODES_SRC, OPCODES_DIR): define.
6347         (OPCODES): Use $(OPCODES_DIR).
6348         (gdb_sim_d10v_h): Rename sim_d10v_h.
6349         (gdb_sim_arm_h): Rename sim_arm_h.
6350
6351 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6352
6353         * utils.c (host_pointer_to_address, address_to_host_pointer):
6354         Change internal_error() message to indicate function responsible
6355         for the error.
6356
6357 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6358
6359         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6360         calls to local_hex_string_custom().
6361
6362 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6363
6364         * irix5-nat.c: Move IRIX shared library support from here...
6365         * solib-irix.c: ...to here.  Revised substantially to work with
6366         generic solib framework.
6367
6368         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6369         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6370         * mips-irix-tdep.c: New file.
6371
6372         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6373         (mips-irix-tdep.o, solib-irix.o): New rules.
6374         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6375         solib-irix.o.
6376         * config/mips/irix6.mt (TDEPFILES): Likewise.
6377         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6378
6379 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6380
6381         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6382         disabled (via ``#if 0'') includes.
6383
6384 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6385
6386         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6387         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6388         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6389         Add support for the fpscr register.
6390         * rs6000-nat.c (regmap, fetch_inferior_registers)
6391         (store_inferior_registers, fetch_core_registers): Likewise.
6392
6393 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6394
6395         * rs6000-nat.c (language.h): Include.
6396         (special_regs): Delete this array.
6397         (regmap): New function.
6398         (fetch_register, store_register):  Use regmap() to map gdb
6399         register numbers to ptrace register numbers.  Also, use
6400         outputs from regmap() to make decisions regarding type of
6401         ptrace() call to make.  In particular, don't compare against
6402         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6403         (fetch_inferior_registers, store_inferior_registers): Where
6404         possible, obtain register numbers from tdep struct.  Don't
6405         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6406         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6407         (LAST_UISA_SP_REGNUM): Delete.
6408         
6409 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6410
6411         * rs6000-nat.c (ppc-tdep.h): Include.
6412         (fetch_registers, store_register, fetch_core_registers): Don't
6413         access registers[] directly.  Instead, use supply_register() or
6414         regcache_collect() as appropriate.
6415         (find_toc_address): Format hex address with local_hex_string().
6416
6417 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6418
6419         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6420         bfd/elf32-frv.c.
6421
6422 2002-07-24  Tom Tromey  <tromey@redhat.com>
6423
6424         * jv-exp.y: Marked all strings with _().
6425         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6426         internal_error.
6427         (MethodInvocation, CastExpression, parse_number, yyerror,
6428         java_type_from_name, push_expression_name, yylex): Typo fixes.
6429
6430 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6431
6432         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6433         (tee_file_flush, tee_file_write, tee_file_fputs)
6434         (tee_file_isatty): New.
6435         * ui-file.h (tee_file_new): Add prototype.
6436
6437 2002-07-24  Aidan Skinner <aidan@velvet.net>
6438
6439         * ada-lang.c: Change k&r style function definitions to prototyped
6440         form.
6441         * ada-typeprint.c: Change k&r style function definitions to prototyped
6442         form.
6443         * ada-valprint.c: Change k&r style function definitions to prototyped
6444         form.
6445         
6446 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6447
6448         * README: Remove reference to remote-bug.
6449         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6450         remote-bug.c.
6451         (m88k-nat.o): Delete rule.
6452         (m88k-tdep.o): Delete rule.
6453         (remote-bug.o): Delete rule.
6454         * MAINTAINERS: Mark as obsolete.
6455         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6456         * m88k-tdep.c: Make file obsolete.
6457         * config/m88k/m88k.mh: Ditto.
6458         * config/m88k/delta88v4.mh: Ditto.
6459         * config/m88k/delta88v4.mt: Ditto.
6460         * config/m88k/delta88.mt: Ditto.
6461         * config/m88k/delta88.mh: Ditto.
6462         * remote-bug.c: Ditto.
6463         * config/m88k/tm-delta88.h: Ditto.
6464         * config/m88k/nm-delta88v4.h: Ditto.
6465         * config/m88k/xm-delta88.h: Ditto.
6466         * config/m88k/xm-dgux.h: Ditto.
6467         * config/m88k/tm-m88k.h: Ditto.
6468         * config/m88k/nm-m88k.h: Ditto.
6469         * config/m88k/tm-delta88v4.h: Ditto.
6470         * m88k-nat.c: Ditto.
6471         * cxux-nat.c: Ditto.
6472         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6473         and m88*-*-* obsolete.
6474         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6475         m88*-*-* obsolete.
6476
6477 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6478
6479         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6480         constant.  Same for local pointer variables.
6481         (extract_signed_integer): Ditto.
6482         * defs.h (extract_unsigned_integer): Update.
6483         (extract_signed_integer): Update.
6484
6485 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6486
6487         * regcache.c (regcache_raw_write): Change buf parameter to a
6488         constant void pointer.
6489         (regcache_raw_read): Change buf parameter to a void pointer.
6490         (legacy_write_register_gen): Change myaddr parameter a constant
6491         void pointer.
6492         (supply_register): Change val parameter to a const void pointer.
6493         * regcache.h (regcache_raw_write): Update declaration.
6494         (regcache_raw_read): Update declaration.
6495         (supply_register): Update declaration.
6496
6497 2002-07-24  Tom Tromey  <tromey@redhat.com>
6498
6499         * defs.h (gdb_readline_wrapper): Declare.
6500         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6501         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6502         * top.c (gdb_readline_wrapper): New function.
6503         (command_line_input): Use it.
6504
6505 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6506
6507         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6508         regcache_read and regcache_write.
6509         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6510         * regcache.c: Update.
6511         * sh-tdep.c (sh64_push_arguments): Update comment.
6512         (sh_pseudo_register_read): Update.
6513         (sh_pseudo_register_write): Update.
6514         (sh4_register_read): Update.
6515         (sh4_register_write): Update.
6516         (sh64_pseudo_register_read): Update.
6517         (sh64_pseudo_register_write): Update.
6518         (sh64_register_read): Update.
6519         (sh64_register_write): Update.
6520         * i386-tdep.c (i386_extract_return_value): Update.
6521         (i386_extract_struct_value_address): Update.
6522         (i386_extract_return_value): Update.
6523         * blockframe.c (generic_read_register_dummy): Update.
6524         (generic_call_dummy_register_unwind): Update
6525         * infrun.c (write_inferior_status_register): Update.
6526
6527 2002-07-23  Jim Blandy  <jimb@redhat.com>
6528
6529         * parser-defs.h (expression_context_pc): Make this extern.
6530         (Thanks to Michael Snyder.)
6531
6532 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6533
6534         GDB 5.2.1 released from 5.2 branch.
6535         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6536         * README: Update to mention 5.2.1.
6537
6538 2002-07-23  Mark Salter  <msalter@redhat.com>
6539
6540         * remote.c (remote_read_bytes): Fix check for error.
6541
6542 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6543
6544         * aix-thread.c (language.h): Include.
6545         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6546         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6547         Print newlines at end of debug messages.
6548         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6549         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6550
6551 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6552
6553         * aix-thread.c (ppc-tdep.h): Include.
6554         (special_register_p): New function.
6555         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6556         (store_regs_user_thread): Use register number information from
6557         gdbarch_tdep struct instead of hardcoded offsets relative to
6558         FIRST_UISA_SP_REGNUM.
6559         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6560         special_register_p() instead of using FPLAST_REGNUM and
6561         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6562         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6563         will be MQ's register number.
6564
6565 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6566
6567         * aix-thread.c (ops): Rename to aix_thread_ops.
6568         (base_ops): Rename to base_target.
6569         (ops_attach): Rename to aix_thread_attach.
6570         (ops_detach): Rename to aix_thread_detach.
6571         (ops_resume): Rename to aix_thread_detach.
6572         (ops_wait):   Rename to aix_thread_wait.
6573         (ops_kill):   Rename to aix_thread_kill.
6574         (init_ops):   Rename to init_aix_thread_ops.
6575         (ops_fetch_register): Rename to aix_thread_fetch_register.
6576         (ops_store_register): Rename to aix_thread_store_register.
6577         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6578         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6579         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6580         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6581         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6582         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6583         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6584         (store_regs_lib):  Rename to store_regs_user_thread.
6585         (store_regs_kern): Rename to store_regs_kernel_thread.
6586
6587 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6588
6589         * aix-thread.c (ops_prepare_to_store): Eliminate.
6590         (init_ops): Don't initialize ops.prepare_to_store.
6591         (store_regs_kern): Pre-fetch register buffers from child, 
6592         because some registers may not be in the cache.  Copy
6593         regs from register cache only if they are cached.
6594         (store_regs_lib): Copy regs from register cache only
6595         if they are cached.
6596         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6597         fill_gprs64): Ditto.
6598
6599 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6600
6601         * aix-thread.c (gdb_assert.h): Include.
6602         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6603         register sizes (from register cache) match size of buffer holding
6604         register data.
6605         (fill_sprs32): Change parameter types to match those in the ptrace()
6606         buffer.
6607         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6608         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6609
6610 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6611
6612         * aix-thread.c (supply_sprs64): Cosmetic change.
6613         (supply_sprs32): Cosmetic change.
6614         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6615         (fill_sprs64): Use regcache_collect instead of read_register.
6616         (store_regs_lib): Use regcache_collect instead of 
6617         read_register.  Use fill_sprs32 instead of fill_sprs64,
6618         if debugging a 32-bit architecture.
6619         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6620         out of the register cache, instead of passing a pointer into
6621         the register cache directly to ptrace.  Use regcache_collect
6622         insteaad of read_register.
6623         (ops_prepare_to_store): Use target_read_registers instead
6624         of read_register_bytes.
6625
6626 2002-07-20  Aidan Skinner <aidan@velvet.net>
6627
6628         * MAINTAINERS: Add self under write after approval. 
6629                 
6630 2002-07-20  Aidan Skinner <aidan@velvet.net>
6631
6632         * ada-tasks.c: Change k&r style function definitions to prototyped
6633         form.
6634                 
6635 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6636
6637         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6638         * x86-64-tdep.c: Include "objfiles.h".
6639         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6640         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6641
6642 2002-07-17  Michal Ludvig  <michal@suse.cz>
6643
6644         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6645         (update_context): Initialise cfa variable.
6646
6647 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6648
6649         * aix-thread.c: Shorten some long lines.  
6650         Bring comments into line with code spec.
6651
6652 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6653
6654         * infrun.c: Re-indent using gdb_indent.sh.
6655
6656 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6657
6658         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6659         Leave the indentation temporarily untouched, to minimize the diffs.
6660
6661 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6662
6663         * stabsread.c: Make os9k sections of the code obsolete,
6664         for real this time.
6665         * stabsread.h: Make os9k sections of the code obsolete.
6666
6667 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6668
6669         * linux-low.c (regsets_store_inferior_registers): Add free()
6670         at the end of a loop to prevent memory leak.
6671         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6672         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6673         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6674         line a comment.
6675         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6676
6677 2002-07-17  Jim Blandy  <jimb@redhat.com>
6678
6679         * macrocmd.c (info_macro_command): Remove newline from error
6680         message.
6681
6682 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6683
6684         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6685         (sh_gdbarch_init): Use it for sh-dsp.
6686
6687 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6688
6689         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6690         64-bit DWARF2 format.
6691
6692 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6693
6694         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6695         <sys/proc.h> when not available.
6696
6697 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6698
6699         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6700         * stabsread.c: Make os9k sections of the code obsolete.
6701         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6702         * config/i386/i386os9k.mt: Make file obsolete.
6703         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6704         (COMMON_OBS): Remove os9kread.o
6705         (SFILES): Remove os9kread.c.
6706         (os9kread.o, remote-os9k.o): Make target obsolete.
6707         * remote-os9k.c: Make file obsolete.
6708         * os9kread.c: Make file obsolete.
6709         * Makefile.in
6710
6711 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6712
6713         * NEWS: Mention that the FR30 has been made obsolete.
6714         * fr30-tdep.c: Make file obsolete.
6715         * config/fr30/tm-fr30.h: Ditto.
6716         * config/fr30/fr30.mt: Ditto.
6717         * configure.tgt: Make fr30-*-elf obsolete.
6718         * MAINTAINERS: Make fr30-elf obsolete.
6719
6720 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6721
6722         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6723         found is not inside a section.
6724
6725 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6726
6727         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6728         strerror().
6729         (pdc_realloc): Use xrealloc() instead of realloc().
6730
6731 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6732
6733         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6734         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6735         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6736         macros.
6737
6738 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6739
6740         * aix-thread.c (ptrace_check): Eliminate goto.
6741         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6742         problem.
6743
6744 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6745
6746         * aix-thread.c (gdbcmd.h): Include.
6747         (DEBUG, DBG, DBG2, dbg): Eliminate.
6748         (debug_aix_thread): New static global.
6749         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6750         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6751         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6752         invocations to DBG and DBG2 macros to test against
6753         ``debug_aix_thread'' and call fprintf_unfiltered().
6754         (_initialize_aix_thread): Add new command "set debug aix-thread".
6755
6756 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6757
6758         From Gerhard Tonn <TON@de.ibm.com>:
6759         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6760         instead of supply_register.
6761
6762 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6763
6764         * dwarf2cfi.c: Include "gdb_assert.h".
6765         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6766         non-NULL.
6767         (update_context): Do not use __func__.  Add missing ``break''.
6768         (update_context): Do not use __func__.
6769
6770 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6771
6772         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6773         and its setting.  Set gdbarch instruction printing functions
6774         directly.  For non-rs6000 case use new function
6775         gdb_print_insn_powerpc.
6776         (gdb_print_insn_powerpc): New function.
6777
6778 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6779
6780         * NEWS: Mention that the d30v has been marked obsolete.
6781         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6782         * configure.tgt: Mark d30v-*-* as obsolete.
6783         * d30v-tdep.c: Mark file as obsolete.
6784         * config/d30v/d30v.mt: Ditto.
6785         * config/d30v/tm-d30v.h: Ditto.
6786
6787 2002-07-13  Aidan Skinner <aidan@velvet.net>
6788
6789         * ada-tasks.c (add_task_entry): replace calls to
6790         malloc() with xmalloc
6791         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6792         
6793         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6794         ada_finish_decode_line_1, all_sals_for_line
6795         ada_breakpoint_rewrite): replace calls to free() with xfree()
6796                 
6797 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6798
6799         From Nicholas Duffek (with minor changes by Martin Hunt, 
6800         Louis Hamilton, and Kevin Buettner):
6801         * aix-thread.c: New file.
6802
6803 2002-07-12  Petr Sorfa <petrs@caldera.com>
6804
6805         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6806         complaint for invalid attribute class or form.
6807         (read_func_scope): DW_AT_frame_base
6808         better handling of DW_AT_block*.
6809         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6810         better handling of DW_AT_block*.
6811         (read_common_block): DW_AT_location
6812         better handling of DW_AT_block*.
6813         (read_partial_die): DW_AT_location better handling
6814         of DW_AT_block*.
6815         (new_symbol): DW_AT_external better handling of
6816         DW_AT_block*. Proper initialization of variable
6817         "addr".
6818         (attr_form_is_block): New function that returns true
6819         if the attribute's form is of DW_FORM_block*.
6820
6821 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6822
6823         * valops.c (find_method_list): Remove comment about
6824         removed STATIC_MEMFUNCP argument.
6825         (value_find_oload_method_list): Likewise.
6826
6827 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6828
6829         From Nicholas Duffek:
6830         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6831         target_new_objfile_hook.
6832
6833 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6834
6835         From Nicholas Duffek:
6836         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6837         csect.
6838
6839 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6840
6841         * MAINTAINERS: Mention --enable-sim-build-warnings.
6842         (m68hc11-elf): Disable sim build warnings.
6843         (m32r-elf): Mark as broken obsolete candidate.
6844         (x86_64-linux-gnu): Mark as buildable with -Werror.
6845         (arm-elf): Change -w to ``,'' which enables warnings but not
6846         -Werror.
6847
6848 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6849
6850         * bcache.h: Update copyright.
6851         (struct bstring, struct bcache): Move definition to "bcache.c".
6852         Replaced by opaque declaration.
6853         (bcache_xfree): Replace free_bcache.
6854         (bcache_xmalloc, bcache_memory_used): Declare.
6855         
6856         * bcache.c: Update copyright.
6857         (struct bstring, struct bcache): Moved to here from "bcache.h".
6858         Update comments.
6859         (bcache_xmalloc, bcache_memory_used): New functions.
6860         (bcache_xfree): Replace function free_bcache.
6861         
6862         * Makefile.in (objfiles.o): Add $(bcache_h).
6863         (objfiles_h): Remove $(bcache_h).
6864         (symfile.o): Add $(bcache_h).
6865
6866         * symmisc.c: Update copyright.
6867         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6868         (print_objfile_statistics): Use bcache_memory_used.
6869
6870         * symfile.c: Include "bcache.h".
6871         (reread_symbols): Use bcache_xfree.
6872         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6873         (add_psymbol_to_list): Pass psymbol_cache by value.
6874         (add_psymbol_with_dem_name_to_list): Ditto.
6875
6876         * objfiles.h: Update copyright.
6877         (struct bcache): Declare opaque.  Do not include "bcache.h".
6878         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6879         bcache'' pointers.
6880         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6881
6882         * objfiles.c: Include "bcache.h".  Update copyright.
6883         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6884         macro_cache.
6885         (free_objfile): Use bcache_xfree.
6886
6887 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6888
6889         * monitor.c (monitor_fetch_register): Make name a constant.
6890         (monitor_store_register): Same.
6891
6892 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6893
6894         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6895         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6896         (finish_block) For non-function blocks, hash the symbol table.  For
6897         function blocks, mark the symbol table as unhashed.
6898         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6899         (msymbol_hash_iw): Likewise.
6900         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6901         value.
6902         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6903         (lookup_minimal_symbol): Likewise for both.
6904         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6905         hashtable.
6906         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6907         (ALL_BLOCK_SYMBOLS): Update.
6908         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6909         (struct symbol): Add `hash_next' pointer.
6910         * symtab.c (lookup_block_symbol): Search using the hash table when
6911         possible.
6912         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6913         (search_symbols, find_addr_symbol): Likewise.
6914
6915         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6916         (read_dst_symtab): Likewise.
6917         * jv-lang.c (get_java_class_symtab): Likewise.
6918         * mdebugread.c: Include "gdb_assert.h".
6919         (shrink_block): Assert that the block being modified is not hashed.
6920         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6921         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6922         symbols.
6923         (dump_symtab): Recognize hashed blocks.
6924         * printcmd.c (print_frame_args):  Assert that function blocks do not
6925         have hashed symbol tables.
6926         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6927         (fill_in_ada_prototype, debug_print_block): Likewise.
6928         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6929
6930 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6931
6932         * stack.c (print_frame): Use result of frame_address_in_block()
6933         instead of fi->pc when evaluating symbols.
6934         (backtrace_command_1): Ditto.
6935
6936 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6937
6938         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6939         Make static.
6940
6941         * arm-tdep.c (arm_register_name): Make return type constant.
6942
6943 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6944
6945         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6946         prototype.
6947         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6948         * s390-tdep.c (s390_fp_regnum): Ditto.
6949         (s390_read_fp): Ditto.
6950         (s390_pop_frame): Ditto.
6951         (_initialize_s390_tdep): Ditto.
6952         * remote.c (get_remote_state): Ditto.
6953         * procfs.c (mappingflags): Ditto.
6954         * memattr.c (_initialize_mem): Ditto.
6955         * mcore-tdep.c (mcore_pop_frame): Ditto.
6956         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6957         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6958         * language.c (set_case_str): Ditto.
6959         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6960         * frv-tdep.c (new_variant): Ditto.
6961         (frv_stopped_data_address): Ditto.
6962         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6963         (context_alloc): Ditto.
6964         (frame_state_alloc): Ditto.
6965         (unwind_tmp_obstack_init): Ditto.
6966         (unwind_tmp_obstack_free): Ditto.
6967         (cfi_read_fp): Ditto.
6968         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6969         (cris_pop_frame): Ditto.
6970         * c-lang.c (scanning_macro_expansion): Ditto.
6971         (finished_macro_expansion): Ditto.
6972         (c_preprocess_and_parse): Ditto.
6973         * gdbarch.sh: Ditto.
6974         * gdbarch.h, gdbarch.c: Regenerate.
6975         * config/mn10200/tm-mn10200.h: Adjust indentation.
6976         * target.c: Adjust indentation.
6977         * symtab.h: Adjust indentation.
6978         * stabsread.h: Adjust indentation.
6979         * remote-es.c: Adjust indentation.
6980         * os9kread.c: Adjust indentation.
6981
6982 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6983         
6984         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6985         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6986
6987 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6988         
6989         * NEWS: Mention m68k, mcore multi-arching.  
6990         * MAINTAINERS: Change status of m68k, mcore to reflect
6991         multi-arching.
6992
6993 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6994
6995         * valops.c (find_overload_match): Free oload_syms.
6996
6997 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6998
6999         Define HAVE_SYS_PROC_H if sys/proc.h exists
7000         * configure.in: Add check for sys/proc.h
7001         * config.in: Regenerate.
7002         * configure: Regenerate.
7003
7004 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7005
7006         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7007         #if !GDB_MULTI_ARCH. 
7008
7009 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7010
7011         * config.in, configure: Regenerate.
7012
7013 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7014
7015         * dwarf2cfi.c: Include "gcore.h".
7016         (execute_stack_op): Fix implementation of the
7017         DW_OP_deref and DW_OP_deref_size operators by letting do their
7018         lookup in the target.
7019
7020 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7021
7022         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7023         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7024         tdep->sc_sp_offset.
7025
7026 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7027
7028         Fix PR gdb/595, gdb/602
7029         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7030         Don't call value_cast, just read the vtable pointer; update comments
7031         to match.
7032
7033 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7034
7035         * config/mcore/tm-mcore.h: Remove file.
7036         * config/mcore/mcore.mt: Remove definition of TM_FILE
7037         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7038
7039 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7040
7041         * i386bsd-tdep.c: Include "gdb_string.h".
7042
7043 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7044
7045         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7046         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7047         mcore-tdep.
7048         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7049         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7050         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7051         (RETVAL_REGNUM): Move macros from tm-mcore.h
7052         (mcore_reg_struct_has_addr): New function.
7053         (mcore_gdbarch_init): Added initializations for the macros removed
7054         from tm-mcore.h.
7055
7056 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7057
7058         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7059         traditonal string branding within the ELF header.
7060
7061 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7062
7063         * symtab.c (remove_params): New function.
7064         (make_symbol_overload_list): Use it instead of cplus_demangle.
7065         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7066
7067 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7068
7069         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7070
7071         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7072         New variables.
7073         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7074         and tdep->sigtramp_end.
7075         * i386obsd-nat.c: New file.
7076         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7077
7078         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7079         Don't call get_current_frame().
7080
7081 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7082
7083         * i386-nat.c (child_post_startup_inferior): New function
7084         calling i386_cleanup_dregs if
7085         I386_USE_GENERIC_WATCHPOINTS is defined.
7086         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7087         conditional to acknowledge that i386-nat.c has its
7088         own child_post_startup_inferior function.
7089
7090 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7091
7092         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7093         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7094         instead of MAX_REGISTER_RAW_SIZE.
7095         (i386_extract_return_value, i386_extract_struct_value_address):
7096         Convert to use regcache.
7097         (i386_gdbarch_init): Set max_register_raw_size and
7098         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7099         Set extract_return_value and extract_struct_value_address instead
7100         of their deprecated variants.
7101
7102         Convert i386 target to generic dummy frames.
7103         * i386-tdep.c: Include "symfile.h".
7104         (i386_frameless_signal_p): Consider a function to be frameless if
7105         the pc points at the first instruction of the function.
7106         (i386_frame_chain): Handle (generic) call dummies.
7107         (i386_frame_saved_pc): Likewise.
7108         (i386_frame_init_saved_regs): Remove code dealing with call
7109         dummies on the stack.
7110         (i386_push_dummy_frame): Removed.
7111         (i386_call_dummy_words): Removed.
7112         (i386_fix_call_dummy): Removed.
7113         (i386_push_return_address): New function.
7114         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7115         parameter, and don't call get_current_frame.
7116         (i386_pop_frame): New function.
7117         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7118         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7119         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7120         call_dummy_length to 0, set call_dummy_words to NULL, set
7121         sizeof_call_dummy_words to 0, set fix_call_dummy to
7122         generic_fix_call_dummy, set pc_in_call_dummy to
7123         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7124         generic_push_dummy_frame, set push_return_address to
7125         i386_push_return_address and set frame_chain_valid to
7126         generic_file_frame_chain_valid.
7127
7128 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7129
7130         * gdbarch.sh (struct regcache): Add opaque declaration.
7131         (EXTRACT_RETURN_VALUE): New architecture method.
7132         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7133         * gdbarch.h, gdbarch.c: Regenerate.
7134         * arch-utils.c (legacy_extract_return_value): New function.
7135         * arch-utils.h (legacy_extract_return_value): Declare.
7136         * values.c (value_being_returned): Re-enable code handling
7137         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7138         deprecated_grub_regcache_for_registers call to block handling
7139         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7140         (EXTRACT_RETURN_VALUE): Do not define.
7141
7142 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7143
7144         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7145         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7146         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7147         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7148         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7149         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7150         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7151         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7152         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7153         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7154         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7155         argument so the function fits the prototype in the architecture
7156         vector.
7157         (mcore_pop_frame): Remove argument so the function fits the
7158         prototype. Use get_current_frame instead of the argument.
7159         (mcore_push_arguments): Change type of struct_return so the
7160         function can be used in the architecture vector.
7161         (mcore_store_struct_return): Add.
7162         (mcore_frame_init_saved_regs): Add.
7163         (mcore_gdbarch_init): Add function calls to replace the macros
7164         removed from tm-mcore.h
7165
7166 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7167
7168         * infcmd.c (print_return_value): Remove compatibility code calling
7169         deprecated_grub_regcache_for_registers.
7170         
7171         * values.c: Include "regcache.h".
7172         (value_being_returned): Update.  Use
7173         deprecated_grub_regcache_for_registers to extract the register
7174         buffer address.  
7175         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7176         ``struct regcache''.
7177         * Makefile.in (values.o): Add dependency on $(regcache_h).
7178
7179         * inferior.h (run_stack_dummy): Change type of second parameter to
7180         a ``struct regcache''.
7181         * valops.c (hand_function_call): Change type of retbuf to ``struct
7182         regcache''.  Allocate using regcache_xmalloc, clean using
7183         make_cleanup_regcache_xfree.
7184         * infcmd.c (run_stack_dummy): Update.  Use
7185         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7186
7187         * regcache.c (do_regcache_xfree): New function.
7188         (make_cleanup_regcache_xfree): New function.
7189         * regcache.h (make_cleanup_regcache_xfree): Declare.
7190
7191 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7192
7193         * event-top.c (command_line_handler): Don't read past
7194         beginning of buffer.
7195
7196 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7197         
7198         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7199         struct frame_id. 
7200         (varobj_create): Store frame_id for root.
7201         (varobj_gen_name): Use xasprintf.
7202         (varobj_update): Save and restore frame using get_frame_id() and
7203         frame_find_by_id().
7204         (create_child): Use xasprintf.
7205         (new_root_variable): Initialize frame_id.
7206         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7207         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7208         to prevent memory leak.
7209
7210 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7211
7212         * valops.c (hand_function_call): Move declaration of retbuf to
7213         start of function, allocate using malloc, add a cleanup but before
7214         the inf_status cleanup, cleanup the buffer.  Rename local variable
7215         old_chain to inf_status_cleanup.
7216
7217 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7218
7219         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7220
7221         * cli/cli-decode.c (cmd_func_p): New function.
7222         (cmd_func): New function.
7223
7224         * command.h: Add cmd_func() and cmd_func_p().   
7225         
7226 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7227
7228         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7229         (REGISTER_SIZE): Remove.
7230         (MAX_REGISTER_RAW_SIZE): Remove.
7231         (REGISTER_VIRTUAL_TYPE): Remove.
7232         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7233         (REGISTER_NAME): Remove.
7234         (USE_GENERIC_DUMMY_FRAMES): Remove.
7235         (CALL_DUMMY): Remove.
7236         (CALL_DUMMY_START_OFFSET): Remove.
7237         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7238         (CALL_DUMMY_LOCATION): Remove.
7239         (FIX_CALL_DUMMY): Remove.
7240         (CALL_DUMMY_ADDRESS): Remove.
7241         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7242         (SAVE_DUMMY_FRAME_TOS): Remove.
7243         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7244         (mcore_register_virtual_type): New function.
7245         (mcore_register_byte): New function.
7246         (mcore_register_size): New function.
7247         (mcore_register_name): New function.
7248         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7249         macros removed from tm-mcore.h.
7250         (mcore_dump_tdep): Add.
7251         (_initialize_mcore_tdep): Add gdbarch_register call.
7252
7253 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7254
7255         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7256         frameless_look_for_prologue, such that we actually call this
7257         function.
7258
7259 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7260
7261         * frame.h (frame_address_in_block): New function.
7262
7263         * blockframe.c (frame_address_in_block): New function extracted
7264         from get_frame_block().
7265         (get_frame_block): Use frame_address_in_block().
7266         (block_innermost_frame): Use frame_address_in_block() to match
7267         the frame pc address against the block boundaries rather than
7268         the frame pc directly. This prevents a failure when a frame pc
7269         is actually a return-address pointing immediately after the end
7270         of the given block. 
7271
7272 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7273
7274         * MAINTAINERS: Add self under write after approval. 
7275
7276 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7277
7278         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7279         used in architecture vector. The default is
7280         m68k_local_breakpoint_from_pc.
7281         (m68k_local_breakpoint_from_pc): Add.
7282         (enum): Add register numbers from tm-m68k.h.
7283         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7284         vector.  
7285         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7286         GDB_MULTI_ARCH_PARTIAL.
7287         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7288         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7289         m68k-tdep.c.
7290         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7291         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7292         to enum in m68k-tdep.c
7293
7294 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7295
7296         * solib-osf.c (open_map): Compute the list of shared libraries
7297         loaded by the inferior, rather than the list of libraries loaded
7298         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7299         the wrong shared libraries...
7300
7301 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7302
7303         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7304         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7305         macros.
7306         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7307         Remove functions.
7308         (FRAMELESS_SIGNAL): Remove function.
7309         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7310         i386_linux_saved_pc_after_call): Removed.
7311         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7312         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7313         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7314
7315         * i386-tdep.c (i386_frameless_signal_p): New function.
7316         (i386_frame_chain): Deal with frameless signals.
7317         (i386_sigtramp_saved_sp): New function.
7318         (i386_frame_saved_pc): Deal with frameless signals.
7319         (i386_saved_pc_after_call): Make sure the correct value is
7320         returned just after entry into a sigtramp.
7321         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7322         i386fbsd4_sc_sp_offset): New variables.
7323         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7324         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7325         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7326         similiar to what we already did for sc_pc_offset.
7327         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7328         tdep->sc_sp_offset.
7329
7330         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7331
7332 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7333
7334         * config/i386/tm-x86-64linux.h: New.
7335         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7336         definitions.
7337         * config/i386/nm-x86-64.h: Rename to ...
7338         * config/i386/nm-x86-64linux.h: ... this one.
7339         * config/i386/x86-64linux.mh: Reflect the above change.
7340         
7341 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7342
7343         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7344         with sigcontext_addr.  Add sc_sp_offset.
7345         (i386bsd_sigtramp_saved_pc): Remove prototype.
7346         (i386bsd_sicontext_addr): Add prototype.
7347         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7348         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7349         (i386_svr4_sigtramp_saved_pc): Removed.
7350         (i386_svr4_sigcontext_addr): New function.
7351         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7352         Initialize tdep->sigcontext_addr instead.  Initialize
7353         tdep->sc_pc_offset and tdep->sc_sp_offset.
7354         (i386_gdbarch_init): Likewise.
7355         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7356         any more.
7357         (i386bsd_sigtramp_saved_pc): Remove function.
7358         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7359         Initialize tdep->sigcontext_addr instead.  Initialize
7360         tdep->sc_pc_offset.
7361         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7362         of tdep->sigtramp_saved_pc.
7363         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7364         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7365         instead.
7366
7367         * i386-tdep.c (i386_frameless_function_invocation,
7368         i386_frame_num_args, i386_frame_init_saved_regs,
7369         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7370         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7371         i386_extract_return_value, i386_store_return_value,
7372         i386_extract_struct_value_address, i386_register_virtual_type,
7373         i386_register_convertible, i386_register_convert_to_virtual,
7374         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7375         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7376         static.
7377
7378 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7379
7380         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7381
7382         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7383         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7384         this macro.  Include "value.h".
7385
7386 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7387
7388         * ada-exp.tab.c: remove as it's a generated file
7389         * ada-lex.c: remove as it's a generated file
7390                 
7391 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7392
7393         * config/i386/tm-i386.h (struct frame_info, struct
7394         frame_saved_regs, struct value, struct type): Remove forward
7395         declarations.
7396
7397         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7398         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7399         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7400         (FILL_FPXREGSET): Define.
7401
7402         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7403
7404         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7405         i[3456]86-*-netbsd* case.
7406         * config/i386/tm-obsd.h: Removed.
7407         * config/i386/obsd.mt: Removed.
7408         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7409         core-aout.o.
7410         (MH_CFLAGS): Add -DYYDEBUG=0.
7411
7412         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7413         i386nbsd_sc_pc_offset on OpenBSD too.
7414
7415         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7416         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7417         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7418         define.
7419         * i386bsd-tdep.c: Include "arch-utils.h".
7420         (i386bsd_aout_in_solib_call_trampoline): New function.
7421         (i386bsd_init_abi): Set in_solib_call_trampoline to
7422         i386bsd_aout_in_solib_call_trampoline.
7423         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7424         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7425
7426 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7427
7428         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7429         (struct obstack, struct bcache): Add opaque declarations.
7430         * Makefile.in (macrotab_h): Update
7431
7432 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7433
7434         * blockframe.c (generic_find_dummy_frame): Change return type to
7435         ``struct regcache''.
7436         (struct dummy_frame): Replace field ``registers'' with regcache, a
7437         struct regcache object.
7438         (generic_find_dummy_frame): Update.
7439         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7440         regcache_xmalloc and regcache_cpy.
7441         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7442         regcache_xfree.
7443         (deprecated_generic_find_dummy_frame): Update.
7444         (generic_read_register_dummy): Update.  Use
7445         regcache_read_as_address.
7446         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7447         (generic_get_saved_register): Update.  Use regcache_read.
7448
7449 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7450
7451         * Makefile.in (objfiles_h): Add $(bcache_h).
7452         * objfiles.h: Include "bcache.h".
7453
7454         * Makefile.in (symtab_h): Remove $(bcache_h).
7455         * symtab.h: Do not include "bcache.h".
7456
7457 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7458
7459         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7460         generic_func_frame_chain_valid.
7461
7462 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7463
7464         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7465         * config/i386/tm-fbsd.h: Likewise.
7466
7467 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7468
7469         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7470         generic_unwind_get_saved_register.
7471
7472 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7473
7474         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7475         * regcache.c (supply_register): Add missing argument to
7476         register_buffer call.
7477
7478 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7479
7480         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7481         Solaris /bin/grep does not not like it.  From Peter Schauer.
7482
7483 2002-06-26  Tom Tromey  <tromey@redhat.com>
7484
7485         * command.h (add_setshow_cmd): Declare.
7486         (add_setshow_cmd_full): Declare.
7487         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7488         returns void.  Use add_setshow_cmd_full.
7489         (add_setshow_cmd_full): New function.
7490         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7491         (add_setshow_boolean_cmd): Likewise.
7492
7493 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7494
7495         * config/vax/tm-vax.h: Protect from multiple inclusion.
7496         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7497         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7498         * config/vax/tm-vaxbsd.h: ...here.  New file.
7499         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7500
7501 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7502
7503         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7504         (BELIEVE_PCC_PROMOTION): Remove.
7505         (AP_REGNUM): Move to...
7506         * config/vax/nm-vax.h: ...here.
7507         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7508         (vax_breakpoint_from_pc): New function.
7509         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7510         and gdbarch_believe_pcc_promotion.
7511
7512 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7513
7514         * Makefile.in (vax_tdep_h): Define.  
7515         (vax-tdep.o): Use $(vax_tdep_h).
7516         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7517         (vax_dump_tdep): New function. 
7518         (_initialize_vax_tdep): Register vax_dump_tdep.
7519         * vax-tdep.h: Include osabi.h.     
7520         (struct gdbarch_tdep): New. 
7521
7522 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7523
7524         * frame.h (deprecated_generic_find_dummy_frame): Rename
7525         generic_find_dummy_frame.
7526         * blockframe.c (generic_find_dummy_frame): Make static.
7527         (deprecated_generic_find_dummy_frame): New function.
7528         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7529         generic_find_dummy_frame with deprecated_find_dummy_frame.
7530         (sh64_nofp_frame_init_saved_regs): Ditto.
7531         (sh_fp_frame_init_saved_regs): Ditto.
7532         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7533         (s390_frame_chain): Ditto.
7534         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7535
7536 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7537
7538         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7539         gdbarch vector are at the top.
7540         (NUM_REGS): Remove.
7541         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7542         (FRAME_ARGS_ADDRESS): Remove.
7543         (FRAME_LOCALS_ADDRESS): Remove.
7544         (FRAME_NUM_ARGS): Remove.
7545         (FRAME_ARGS_SKIP): Remove.  
7546         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7547         (m68k_gdbarch_init): Add gdbarch initializations for macros
7548         undefined in tm-m68k.h
7549
7550 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7551
7552         * monitor.h: Add the function regname to monitor_ops
7553         structure. This way NUM_REGS does not have to be a constant.
7554         * monitor.c (monitor_fetch_register): Added support for regname
7555         function. The function is called if the array regnames is NULL.
7556         (monitor_store_register): Same.
7557         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7558         regnames array.
7559         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7560         cpu32bug_cmds.regname to point to new function.
7561         * abug-rom.c (abug_regname): Same as above.
7562         (init_abug_cmds): Same.
7563         * dbug-rom.c (dbug_regname): Same as above.
7564         (init_dbug_cmds): Same.
7565         * remote-est.c (est_regname): Same. 
7566         (init_est_cmds): Same.
7567         * rom68k-rom.c (rom68k_regname): Same. 
7568         (init_rom68k_cmds): Same.
7569
7570 2002-06-25  Tom Tromey  <tromey@redhat.com>
7571
7572         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7573
7574 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7575
7576         * infrun.c (stop_registers): Change variable's type to ``struct
7577         regcache'''.
7578         (xmalloc_inferior_status): Delete function.
7579         (free_inferior_status): Delete function.
7580         (normal_stop): Use regcache_cpy.
7581         (struct inferior_status): Change type of fields ``stop_registers''
7582         and ``registers'' to ``struct regcache''.
7583         (write_inferior_status_register): Use regcache_write.
7584         (save_inferior_status): Instead of calling
7585         xmalloc_inferior_status, allocate the inf_status buffer directly.
7586         Use regcache_dup_no_passthrough and regcache_dup to save the
7587         buffers.
7588         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7589         Replace the stop_registers regcache instead of overriding it.  Use
7590         regcache_xfree.  Instead of calling free_inferior_status, xfree
7591         the buffer directly.
7592         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7593         free_inferior_status, xfree the buffer directly.
7594         (build_infrun): Use regcache_xmalloc.
7595         (_initialize_infrun): Delete redundant call to build_infrun.
7596
7597         * Makefile.in (infcmd.o): Add $(regcache_h).
7598
7599         * infcmd.c: Include "regcache.h".
7600         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7601         obtain the address of `stop_registers' register buffer.
7602         (print_return_value): Ditto.
7603
7604         * inferior.h (struct regcache): Add opaque declaration.
7605         (stop_registers): Change variable's declared type to ``struct
7606         regcache''.
7607
7608 2002-06-24  Tom Tromey  <tromey@redhat.com>
7609
7610         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7611         * target.c (initialize_targets): Fixed typo in
7612         trust-readonly-sections `show' documentation.
7613
7614         * main.c: Marked all strings with _().
7615
7616 2002-06-24  Don Howard  <dhoward@redhat.com>
7617
7618         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7619         that means max CORE_ADDR+1.
7620         (lookup_mem_region): Ditto.
7621         (mem_info_command): Ditto.
7622
7623 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7624
7625         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7626         (REGISTER_BYTES_OK): Remove.
7627         (REGISTER_BYTES): Remove.
7628         (STORE_STRUCT_RETURN): Remove.
7629         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7630         (STORE_RETURN_VALUE): Remove.
7631         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7632         (FRAME_CHAIN): Remove.
7633         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7634         (FRAME_SAVED_PC): Remove.  
7635         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7636         (m68k_store_struct_return): Add.
7637         (m68k_deprecated_extract_return_value): Add.
7638         (m68k_deprecated_extract_struct_value_address): Add.
7639         (m68k_store_return_value): Add.
7640         (m68k_frame_chain): Add.
7641         (m68k_frameless_function_invocation): Add.
7642         (m68k_frame_saved_pc): Add.
7643         (m68k_gdbarch_init): added set_gdbarch calls for new 
7644         functions and deleted macros.
7645
7646 2002-06-23  Tom Tromey  <tromey@redhat.com>
7647
7648         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7649         (ALLDEPFILES): Likewise.
7650         (udiheaders): Removed.
7651         (udip2soc.o): Likewise.
7652         (udi2go32.o): Likewise.
7653         (udr.o): Likewise.
7654         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7655
7656 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7657
7658         * infrun.c (_initialize_infrun): Delete unnecessary call to
7659         build_infrun.
7660
7661         * regcache.h: Update comments describing the regcache_cpy family
7662         of functions.
7663         (regcache_save, regcache_restore): Delete declaration.
7664         (regcache_save_no_passthrough): Delete declaration.
7665         (regcache_restore_no_passthrough): Delete declaration.
7666         * regcache.c (regcache_save): Delete function.
7667         (regcache_save_no_passthrough): Delete function.
7668         (regcache_restore): Delete function.
7669         (regcache_restore_no_passthrough): Delete function.
7670
7671 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7672
7673         * config/m68k/tm-m68k.h: Fix typo.
7674         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7675         (m68k_frame_init_saved_regs): Declare.
7676
7677 2002-06-21  Jim Blandy  <jimb@redhat.com>
7678
7679         Remove some vestiges of Harris 88k support.
7680         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7681         register numbering quirk.
7682         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7683         odd symbols occurring in Harris 88k ELF targets.
7684
7685 2002-06-21  Tom Tromey  <tromey@redhat.com>
7686
7687         * gdb_locale.h: New file.
7688         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7689         (defs_h): Added gdb_locale.h.
7690         * configure, config.in: Rebuilt.
7691         * configure.in (PACKAGE): Define.
7692         * defs.h: Include gdb_locale.h.
7693         * main.c (captured_main): Call setlocale, bindtextdomain,
7694         textdomain.
7695
7696 2002-06-21  Dave Brolley  <brolley@redhat.com>
7697
7698         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7699         * config/frv/frv.mt: New file.
7700         * config/frv/tm-frv.h: New file.
7701         * configure.tgt: Support frv-*-*.
7702         * Makefile.in (frv-tdep.o): New target.
7703         * frv-tdep.c: New file.
7704         * NEWS: Mention frv.
7705
7706 2002-06-21  Dave Brolley  <brolley@redhat.com>
7707
7708         * MAINTAINERS: Add self to "Write After Approval" list.
7709
7710 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7711
7712         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7713         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7714         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7715         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7716         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7717
7718         * m68k-tdep.c: Include arch-utils.h
7719         (m68k_register_raw_size): Add.
7720         (m68k_register_virtual_size): Add.
7721         (m68k_register_virtual_type): Add.
7722         (m68k_register_name): Add.
7723         (m68k_stack_align): Add.
7724         (m68k_register_byte): Add.
7725         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7726         tm-m68k.h.
7727
7728 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7729
7730         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7731         m68k_find_saved_regs.
7732         (m68k_pop_frame): Removed saved_regs structure, and replaced
7733         references to it with frame->saved_regs.
7734         (m68k_gdbarch_init): Added function calls to initialize the
7735         gdbarch structure.
7736         (m68k_fix_call_dummy): Add. 
7737         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7738         (CALL_DUMMY): Remove.
7739         (CALL_DUMMY_LENGTH): Remove.
7740         (CALL_DUMMY_START_OFFSET): Remove.
7741         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7742         (FIX_CALL_DUMMY): Remove.
7743         (PUSH_DUMMY_FRAME): Remove.
7744         (POP_FRAME): Remove.
7745
7746 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7747
7748         * parse.c (parse_fprintf): New function used to avoid calls to
7749         fprintf in bison parser generated debug code.
7750         * parser-defs.h: Declaration of new parse_fprintf function.
7751         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7752         Set YYDEBUG to 1 by default.
7753         Set YYFPRINTF as parse_fprintf.
7754
7755 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7756
7757         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7758         encoding anymore.
7759         (pointer_encoding, enum ptr_encoding): New.
7760         (execute_cfa_program): Take care about pointer encoding.        
7761         (dwarf2_build_frame_info): Only call parse_frame_info for 
7762         .debug_frame and .eh_frame.
7763         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7764         fixed augmentation handling, added relative addressing, 
7765         ignore duplicate FDEs. Added comments.
7766         * dwarf2cfi.c: Reindented.
7767         
7768 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7769
7770         * event-top.c (command_handler): Don't use space_at_cmd_start
7771         unless there is sbrk() on the host. Assign time and space data
7772         to union fields of the appropriate length.
7773
7774 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7775
7776         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7777         x86_64_register_name. Return type changed to 'const char *'.
7778         (x86_64_register_name2nr): Rename to x86_64_register_number.
7779         (x86_64_gdbarch_init): Update to reflect the change.
7780         * x86-64-tdep.h: Ditto.
7781         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7782         (supply_fpregset): Ditto.
7783
7784 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7785
7786         * regcache.h: Update copyright.
7787         (struct regcache, struct gdbarch): Add opaque declarations.
7788         (current_regcache): Declare global variable.
7789         (regcache_read, regcache_write): Add gdbarch parameter.
7790         (regcache_save, regcache_save_no_passthrough)
7791         (regcache_restore, regcache_restore_no_passthrough)
7792         (regcache_dup, regcache_dup_no_passthrough)
7793         (regcache_cpy, regcache_cpy_no_passthrough)
7794         (deprecated_grub_regcache_for_registers)
7795         (deprecated_grub_regcache_for_register_valid)
7796         (regcache_valid_p): Add function declarations.
7797         
7798         * regcache.c: Update copyright.
7799         (regcache_descr_handle): New global variable.
7800         (struct regcache_descr): Define.
7801         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7802         (regcache_descr, xfree_regcache_descr): New functions.
7803         (struct regcache): Define.
7804         (regcache_xmalloc, regcache_xfree): New functions.
7805         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7806         (regcache_dup, regcache_dup_no_passthrough): New functions.
7807         (regcache_valid_p, regcache_read_as_address): New functions.
7808         (deprecated_grub_regcache_for_registers): New function.
7809         (deprecated_grub_regcache_for_register_valid): New function.
7810         (current_regcache): New global variable.
7811         (register_buffer): Add regcache parameter.  Update calls.
7812         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7813         (read_register_gen, write_register_gen): Update register_buffer
7814         call.  Test for legacy_p instead of gdbarch_register_read_p or
7815         gdbarch_register_write_p.
7816         (regcache_collect): Update register_buffer call.
7817         (build_regcache): Rewrite.  Use deprecated grub functions.
7818         (regcache_save, regcache_save_no_passthrough): New functions.
7819         (regcache_restore, regcache_restore_no_passthrough): New
7820         functions.
7821         (_initialize_regcache): Create the regcache_data_handle. Swap
7822         current_regcache global variable.
7823         
7824         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7825         parameter to regcache_read and regcache_write calls.
7826         (sh4_register_read): Ditto.
7827         (sh64_pseudo_register_read): Ditto.
7828         (sh64_register_read): Ditto.
7829         (sh_pseudo_register_write): Ditto.
7830         (sh4_register_write): Ditto.
7831         (sh64_pseudo_register_write): Ditto.
7832         (sh64_register_write): Ditto.
7833
7834         * defs.h (XCALLOC): Define.
7835
7836 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7837
7838         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7839         * m68k-tdep.c (m68k_gdbarch_init): Added.
7840         (m68k_dump_tdep): Added.
7841
7842 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7843
7844         * ada-lang.c (fill_in_ada_prototype): Update comment.
7845
7846 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7847
7848         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7849         MIPS_ABI_LAST.
7850         (mips_abi_string, mips_abi_strings): New.
7851         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7852         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7853         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7854         O32 if no ABI is found.
7855         (mips_dump_tdep): Use mips_abi_strings.
7856         (mips_abi_update): New function.
7857         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7858         ``set mips abi'' and ``show mips abi''.  Check the size of
7859         mips_abi_strings.
7860
7861 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7862
7863         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7864         constant.
7865
7866 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7867
7868         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7869         current frame using only the first stack size adjustment. All
7870         subsequent size adjustments are not considered to be part of
7871         the "static" part of the current frame.
7872         Compute the address of the saved registers relative to the
7873         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7874         in use in this frame.
7875
7876 2002-06-18  Don Howard  <dhoward@redhat.com>
7877  
7878         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7879         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7880         suggesting this solution.
7881
7882 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7883
7884         * config/romp/xm-rtbsd.h: Delete file.
7885         * config/romp/rtbsd.mh: Delete file.
7886
7887 2002-06-18  Keith Seitz  <keiths@redhat.com>
7888
7889         * breakpoint.c (condition_command): Post breakpoint_modify
7890         when a condition is added to an existing breakpoint.
7891         (commands_command): Likewise for commands.
7892         (set_ignore_count): Likewise for ignore counts.
7893         If no tty, do not simply return, still need to send event
7894         notification.
7895         (ignore_command): Only print a newline if the command came
7896         from a tty.
7897         Don't call breakpoints_changed, since this is now properly
7898         handled by set_ignore_count.
7899
7900 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7901
7902         * MAINTAINERS: Note that cris-elf target can be compiled with
7903         -Werror.
7904         * cris-tdep.c (cris_register_name): Make return type constant.
7905         (cris_breakpoint_from_pc): Ditto.
7906
7907 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7908
7909         * frame.h (struct frame_info): Change type of context to 
7910         'struct context'.
7911
7912 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7913
7914         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7915         pointer.
7916         * gdbarch.h, gdbarch.c: Regenerate.
7917         * config/mips/tm-mips.h (mips_register_name): Update.
7918         * i386-tdep.h (i386_register_name): Update.
7919         * mips-tdep.c (mips_register_name): Update
7920         * alpha-tdep.c (alpha_register_name): Update.
7921         * arch-utils.c (legacy_register_name): Update.
7922         * arch-utils.h (legacy_register_name): Update.
7923         * avr-tdep.c (avr_register_name): Update.
7924         * ia64-tdep.c (ia64_register_name): Update.
7925         * i386-tdep.c (i386_register_name): Update.
7926         * sparc-tdep.c (sparc32_register_name): Update.
7927         (sparc64_register_name): Update.
7928         (sparclite_register_name): Update.
7929         (sparclet_register_name): Update.
7930         * sh-tdep.c (sh_generic_register_name): Update.
7931         (sh_sh_register_name): Update.
7932         (sh_sh3_register_name): Update.
7933         (sh_sh3e_register_name): Update.
7934         (sh_sh_dsp_register_name): Update.
7935         (sh_sh3_dsp_register_name): Update.
7936         (sh_sh4_register_name): Update.
7937         (sh_sh64_register_name): Update.
7938         * s390-tdep.c (s390_register_name): Update.
7939         * rs6000-tdep.c (rs6000_register_name): Update.
7940         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7941         (ns32k_register_name_32382): Update.
7942         * d10v-tdep.c (d10v_ts2_register_name): Update.
7943         (d10v_ts3_register_name): Update.
7944         * xstormy16-tdep.c (xstormy16_register_name): Update.
7945         * vax-tdep.c (vax_register_name): Update.
7946         * v850-tdep.c (v850_register_name): Update.
7947         * m68hc11-tdep.c (m68hc11_register_name): Update.
7948         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7949         (am33_register_name): Update.
7950
7951 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7952
7953         * m68k-tdep.c: Reindented.
7954
7955 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7956
7957         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7958         list of predefined types.
7959
7960 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7961
7962         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7963         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7964         REGISTER_CONVERT_TO_RAW): Remove defines.
7965         (i386_register_virtual_type, i386_register_convertible,
7966         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7967         Remove prototypes.
7968         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7969         macros mentioned above.
7970
7971         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7972         (i386lynx_saved_pc_after_call): Remove prototype.
7973         * i386ly-tdep.c: Include "i386-tdep.h".
7974         (i386lynx_saved_pc_after_call): Make static.  Use
7975         read_memory_nobpt instead of read_memory.  Use
7976         read_memory_unsigned_integer instead of read_memory_integer.
7977         (i386lynx_init_abi): New function.
7978         (i386lynx_coff_osabi_sniffer): New function.
7979         (_initialize_i386bsd_tdep): New function.
7980
7981         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7982         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7983         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7984         (i386_fix_call_dummy): Remove prototype.
7985         * i386-tdep.c (i386_call_dummy_words): New variable.
7986         (i386_gdbarch_init): Adjust for removal of the
7987         macros mentioned above.
7988
7989 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7990
7991         * command.h (add_setshow_auto_boolean_cmd): Replace
7992         add_set_auto_boolean_cmd.
7993         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7994         add_set_auto_boolean_cmd.
7995         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7996         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7997         mask-address'' command.
7998         (show_mask_address): Add cmd parameter.
7999         * remote.c (add_packet_config_cmd): Update.  Change type of
8000         set_func and show_func to cmd_sfunc_ftype.
8001         (_initialize_remote): Update `set remote Z-packet'
8002         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8003         (show_remote_protocol_e_packet_cmd): Ditto.
8004         (show_remote_protocol_E_packet_cmd): Ditto.
8005         (show_remote_protocol_P_packet_cmd): Ditto.
8006         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8007         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8008         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8009         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8010         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8011         (show_remote_protocol_Z_packet_cmd): Ditto.
8012         (show_remote_protocol_binary_download_cmd): Ditto.
8013         (show_remote_cmd): Pass NULL to all of above.
8014
8015 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8016
8017         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8018         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8019         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8020         POP_FRAME): Remove defines.
8021         (i386_push_arguments, i386_store_struct_return,
8022         i386_extract_return_value, i386_store_return_value,
8023         i386_extract_struct_value_address, i386_push_dummy_frame,
8024         i386_pop_frame): Renove prototypes.
8025         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8026         macros mentioned above.
8027
8028 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8029
8030         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8031         add_set_boolean_cmd.
8032         (add_setshow_cmd): New function.
8033         * command.h (add_setshow_boolean_cmd): Replace
8034         add_set_boolean_cmd.
8035         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8036         and ``set rdiromatzero''.
8037         * maint.c (_initialize_maint_cmds): Update commented out code.
8038         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8039         * target.c (initialize_targets): Update `set
8040         trust-readonly-sections'.
8041         * remote.c (_initialize_remote): Update `set remotebreak'.
8042
8043 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8044
8045         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8046         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8047         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8048         fit into multi-arch framework.
8049         (i386_breakpoint_from_pc): New function.
8050         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8051         above.
8052
8053         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8054         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8055         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8056         (i386_frameless_function_invocation, i386_frame_num_args,
8057         i386_frame_init_saved_regs): Remove prototypes.
8058         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8059         macros mentioned above.
8060
8061 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8062
8063         * cli/cli-decode.c (set_cmd_cfunc): Update.
8064         (set_cmd_sfunc): Update.
8065         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8066         (set_cmd_sfunc, set_cmd_cfunc): Update.
8067         * cli/cli-decode.h: Update.
8068
8069 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8070
8071         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8072         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8073
8074 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8075
8076         * defs.h (auto_boolean): Declare enum.
8077         * command.h (cmd_auto_boolean): Delete enum.
8078         * mips-tdep.c (mask_address_var): Update.
8079         (mips_mask_address_p): Update.
8080         (show_mask_address): Update.
8081         * remote.c (struct packet_config): Update.
8082         (update_packet_config): Update.
8083         (show_packet_config_cmd): Update.
8084         (packet_ok): Update.
8085         (add_packet_config_cmd): Update.
8086         (_initialize_remote): 
8087         * command.h: Update.
8088         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8089         (do_setshow_command): Update.
8090         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8091         * cli/cli-decode.h: Update.
8092
8093 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8094
8095         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8096         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8097         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8098         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8099         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8100         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8101
8102         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8103         list of DJGPP COFF targets.
8104
8105         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8106         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8107         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8108         (FP0_REGNUM): Remove define.
8109         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8110         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8111         (i386_register_virtual_size): Remove protoype.
8112         * i386-tdep.c (i386_register_virtual_size): Removed.
8113         (i386_extract_return_value, i386_store_return_value): Use
8114         FP0_REGNUM instead of NUM_FREGS to determine whether the
8115         floating-point registers are available.
8116         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8117         Adjust for removal of macros mentioned above.
8118
8119 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8120
8121         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8122         comments.
8123         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8124         Remove prototypes.
8125         (supply_gregset, fill_gregset): Remove use of register keyword and
8126         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8127         NUM_REGS and NUM_FREGS.
8128         (FPREGSET_FSAVE_OFFSET): Remove.
8129         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8130         NUM_FREGS to determine whether the floating-point registers are
8131         available.
8132
8133         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8134         gnu_store_registers): Replace usage of NUM_GREGS with
8135         I386_NUM_GREGS.
8136
8137         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8138         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8139         usage of NUM_GREGS with I386_NUM_GREGS.
8140
8141         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8142
8143         * i386bsd-nat.c: Include "i386-tdep.h".
8144         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8145         I386_NUM_GREGS.
8146
8147         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8148         and associated comment.  They no longer make any sense, since we
8149         don't use this file anymore on Linux.
8150
8151         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8152         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8153         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8154         elements in these arrays.
8155         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8156         MAX_NUM_REGS.
8157
8158 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8159
8160         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8161         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8162
8163 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8164
8165         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8166         EXTRACT_RETURN_VALUE.
8167         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8168         EXTRACT_STRUCT_VALUE_ADDRESS.
8169         * gdbarch.h, gdbarch.c: Regenerate.
8170         
8171         * values.c (value_being_returned): Handle
8172         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8173         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8174
8175         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8176         * arm-tdep.c (arm_gdbarch_init): Update.
8177         * avr-tdep.c (avr_gdbarch_init): Update.
8178         * cris-tdep.c (cris_gdbarch_init): Update.
8179         * d10v-tdep.c (d10v_gdbarch_init): Update.
8180         * ia64-tdep.c (ia64_gdbarch_init): Update.
8181         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8182         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8183         * s390-tdep.c (s390_gdbarch_init): Update.
8184         * sh-tdep.c (sh_gdbarch_init): Update.
8185         * s390-tdep.c (s390_gdbarch_init): Update.
8186         * sparc-tdep.c (sparc_gdbarch_init): Update.
8187         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8188         * v850-tdep.c (v850_gdbarch_init): Update.
8189         * vax-tdep.c (vax_gdbarch_init): Update.
8190         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8191         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8192
8193         * config/arc/tm-arc.h: Update.
8194         * config/d30v/tm-d30v.h: Update.
8195         * config/fr30/tm-fr30.h: Update.
8196         * config/h8300/tm-h8300.h: Update.
8197         * config/h8500/tm-h8500.h: Update.
8198         * config/i386/tm-i386.h: Update.
8199         * config/i386/tm-ptx.h: Update.
8200         * config/i386/tm-symmetry.h: Update.
8201         * config/i960/tm-i960.h: Update.
8202         * config/m32r/tm-m32r.h: Update.
8203         * config/m68k/tm-delta68.h: Update.
8204         * config/m68k/tm-linux.h: Update.
8205         * config/m68k/tm-m68k.h: Update.
8206         * config/m88k/tm-m88k.h: Update.
8207         * config/mcore/tm-mcore.h: Update.
8208         * config/mips/tm-mips.h: Update.
8209         * config/mn10200/tm-mn10200.h: Update.
8210         * config/pa/tm-hppa.h: Update.
8211         * config/pa/tm-hppa64.h: Update.
8212         * config/sparc/tm-sp64.h: Update.
8213         * config/sparc/tm-sparc.h: Update.
8214         * config/sparc/tm-sparclet.h: Update.
8215         * config/z8k/tm-z8k.h: Update.
8216
8217 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8218
8219         * Makefile.in (i386_linux_tdep_h): Define.
8220         (i386_tdep_h, i387_tdep_h): Define.
8221         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8222         $(i386_tdep_h) and $(i387_tdep_h).
8223         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8224
8225 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8226
8227         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8228         Already covered by the default.
8229
8230         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8231         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8232         (i386_gdbarch_init): Initialize long_double_format and long_double
8233         bit.
8234
8235         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8236         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8237         Move these to ...
8238         * config/i386/i386sol2.mh: ... here.
8239         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8240         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8241         (SIGCONTEXT_PC_OFFSET): Remove define.
8242         (IN_SIGTRAMP): Remove define.
8243         * i386-sol2-tdep.c: New file.
8244         
8245         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8246         * config/i386/tm-i386nw.h: Removed.
8247
8248         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8249         USE_STRUCT_CONVENTION): Remove defines.
8250         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8251         (get_longjmp_target): Remove prototype.
8252         (IN_SIGTRAMP): Remove define.
8253         (i386bsd_in_sigtramp): Remove prototype.
8254         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8255         function.  Update comment accordingly
8256         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8257         (FRAME_SAVED_PC): Remove define.
8258         (i386bsd_frame_saved_pc): Remove prototype.
8259         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8260         GET_LONGJMP_TARGET): Remove defines.
8261         (get_longjmp_target): Remove prototype.
8262         (IN_SIGTRAMP): Remove define.
8263         (i386bsd_in_sigtramp): Remove prototype.
8264         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8265         function.  Update comment accordingly
8266         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8267         (FRAME_SAVED_PC): Remove define.
8268         (i386bsd_frame_saved_pc): Remove prototype.
8269         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8270         Remove prototype.
8271         (USE_STRUCT_CONVENTION): Remove prototype.
8272         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8273         declaration.
8274         (_initialize_i386bsd_nat): Revise logic to determine some
8275         constants at compile time when compiling a native GDB.  Warn if
8276         things don't match up with what we expect.
8277         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8278         Remove variables.
8279         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8280         to use date stored in `struct gdbarch_tdep'.
8281         (i386bsd_sigcontext_offset): Remove varaible.
8282         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8283         stored in `struct gdbarch_tdep'.
8284         (i386bsd_frame_saved_pc): Make static.
8285         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8286         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8287         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8288         i386fbsd4_sc_pc_offset): New variables.
8289         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8290         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8291         functions.
8292         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8293         functions.
8294         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8295         Modify the value of i386fbsd_sigtramp_start and
8296         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8297         i386fbsd_sigtramp_end.
8298         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8299         function.
8300
8301         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8302         define to i386-linux-tdep.h.
8303         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8304         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8305         defines.
8306         (i386_linux_register_name, i386_linux_register_byte,
8307         i386_linux_register_raw_size): Remove prototypes.
8308         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8309         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8310         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8311         TARGET_WRITE_PC): Remove defines.
8312         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8313         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8314         i386_linux_write_pc): Remove prototypes.
8315         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8316         (get_longjmp_target): Remove prototype.
8317         * i386-linux-tdep.h: New file.
8318         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8319         * i386-linux-tdep.c: Include "i386-tdep.h" and
8320         "i386-linux-tdep.h".
8321         (i386_linux_register_name, i386_linux_register_byte,
8322         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8323         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8324         Make static.
8325         (i386_linux_init_abi): New function.
8326         (_initialize_i386_linux_tdep): New function.
8327
8328         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8329         (i386_saved_pc_after_call): Remove prototype.
8330         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8331         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8332         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8333         (i386_register_name, i386_stab_reg_to_regnum,
8334         i386_dwarf_reg_to_regnum): Remove prototypes.
8335         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8336         SIZEOF_SSE_REGS): Remove defines.
8337         (REGISTER_BYTES): Remove define.
8338         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8339         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8340         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8341         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8342         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8343         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8344         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8345         (get_longjmp_target): Remove prototype.
8346         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8347         (sigtramp_saved_pc): Remove define.
8348         (i386v4_sigtramp_saved_pc): Remove prototype.
8349         * config/i386/tm-go32.h (FRAME_CHAIN,
8350         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8351         (i386go32_frame_saved_pc): Remove prototype.
8352         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8353         (get_longjmp_target): Remove prototype.
8354         * i386-tdep.h: Include "osabi.h".
8355         (enum i386_abi): Removed.
8356         (enum struct_return): New enum.
8357         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8358         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8359         sc_pc_offset members.
8360         (i386_gdbarch_register_os_abi): Remove prototype.
8361         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8362         I386_SSE_NUM_REGS): New defines.
8363         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8364         I386_SSE_SIZEOF_REGS): New defines.
8365         (i386_register_name, i386_register_byte, i386_register_raw_size):
8366         New prototypes.
8367         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8368         (i386bsd_sigtramp_saved_pc): New prototype.
8369         * i386-tdep.c: Don't include "elf-bfd.h".
8370         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8371         i386_frame_chain, i386_saved_pc_after_call): Make static.
8372         (i386_frame_saved_pc): Rewrite to call architecture dependent
8373         function to deal with signal handlers.  Make static.
8374         (i386go32_frame_saved_pc): Removed.
8375         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8376         Removed.
8377         (i386_get_longjmp_target): New function.
8378         (default_struct_convention, pcc_struct_convention,
8379         reg_struct_convention, valid_conventions, struct_convention): New
8380         variables.
8381         (i386_use_struct_convention): New function.
8382         (i386v4_sigtramp_saved_pc): Renamed to
8383         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8384         (i386_pc_in_sigtramp): New function.
8385         (i386_abi_names): Removed.
8386         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8387         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8388         Removed.
8389         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8390         i386_gdbarch_register_os_abi): Removed.
8391         (struct i386_abi_handler): Removed.
8392         (i386_abi_handler_list): Removed.
8393         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8394         functions.
8395         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8396         i386_nw_init_abi): New functions.
8397         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8398         Use set_gdbarch_xxx() calls instead of relying on macros for a
8399         number of calls.
8400         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8401         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8402         Register the various architecture variants defined in this file.
8403
8404 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8405
8406         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8407         (struct main_type): Remove arg_types member.  Update comments for
8408         struct field.
8409         (TYPE_ARG_TYPES): Remove.
8410         (TYPE_FN_FIELD_ARGS): Update.
8411         (smash_to_method_type): Update prototype.
8412
8413         * c-typeprint.c (cp_type_print_method_args): Take method type
8414         instead of argument list.  Use new argument layout.  Simplify.
8415         (c_type_print_args): Use new argument layout.  Simplify.
8416         (c_type_print_base): Update call to cp_type_print_method_args.
8417         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8418         argument; use die->type instead.  Update call to
8419         smash_to_method_type.
8420         (read_structure_scope): Update call to dwarf2_add_member_fn.
8421         * gdbtypes.c (allocate_stub_method): Update comment.
8422         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8423         Use new argument layout.
8424         (check_stub_method): Use new argument layout.  Don't count
8425         void as an argument.
8426         (print_arg_types): Update comments.  Use new argument layout.
8427         (recursive_dump_type): Don't print arg_types member.
8428         * hpread.c (hpread_read_struct_type): Use new argument layout.
8429         (fixup_class_method_type): Likewise.
8430         (hpread_type_lookup): Likewise.
8431         * stabsread.c (read_type): Update calls to read_args and
8432         smash_to_method_type.
8433         (read_args): Use new argument layout.  Simplify.
8434         * valops.c (typecmp): Use new argument layout.  Update parameters
8435         and comments.  Simplify.
8436         (hand_function_call): Use new argument layout.
8437         (search_struct_method): Update call to typecmp.
8438         (find_overload_match): Use new argument layout.
8439
8440 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8441
8442         * NEWS: Mention multithreaded debug support for gdbserver.
8443
8444 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8445
8446         * MAINTAINERS: Mention NEWS.
8447
8448 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8449
8450         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8451         (struct mips_objfile_private, compare_pdr_entries): New.
8452         (non_heuristic_proc_desc): Read the ".pdr" section if it
8453         is present.
8454
8455 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8456
8457         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8458         (arm_debug): New static variable.
8459         (_initialize_arm_tdep): Add ``set debug arm'' command.
8460
8461 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8462
8463         * Makefile.in (sim_arm_h): Define.
8464         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8465         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8466         (arm_register_sim_regno): New function, map an internal REGNUM
8467         onto a simulator register number.
8468         (arm_gdbarch_init): Set register_sim_regno.
8469
8470 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8471
8472         * MAINTAINERS: Add self.
8473
8474 2002-06-11  Jim Blandy  <jimb@redhat.com>
8475
8476         * source.c (source_info): Mention whether the symtab has
8477         information about preprocessor macros.
8478
8479         Call the command `info macro', not `show macro'.
8480         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8481         Fix error message.
8482         (_initialize_macrocmd): Register `info_macro_command' in
8483         `infolist', not `showlist'.
8484
8485 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8486
8487         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8488         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8489         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8490         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8491         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8492         unconditionally.
8493         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8494         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8495         (_initialize_mips_tdep): Remove dead code.
8496         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8497         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8498         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8499         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8500         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8501         MIPS_LAST_FP_ARG_REGNUM): Remove.
8502
8503 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8504
8505         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8506         (unwind_tmp_obstack_free, parse_frame_info)
8507         (update_context, cfi_read_fp, cfi_write_fp)
8508         (cfi_frame_chain, cfi_init_extra_frame_info)
8509         (cfi_virtual_frame_pointer): Use the above function.
8510         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8511
8512 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8513
8514         * v850-tdep.c (v850_type_is_scalar): New function.
8515         (v850_use_struct_convention): Match current gcc implementation
8516         as close as possible.
8517         (v850_push_arguments): Fix stack_offset handling.  Don't write
8518         struct_addr into register.  This is done by v850_store_struct_return.
8519         (v850_extract_return_value): Care for structs.
8520         (v850_store_return_value): Ditto.
8521         (v850_store_struct_return): Actually write address.
8522
8523 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8524
8525         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8526         without debug information too.
8527
8528 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8529
8530         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8531         Make multi-arch pure.
8532         * gdbarch.h, gdbarch.c: Re-generate.
8533         * arm-tdep.c (arm_print_float_info): Update.
8534         * arch-utils.h (default_print_float_info): Update.
8535         * arch-utils.c (default_print_float_info): Update.
8536         * infcmd.c (float_info): Update call.
8537
8538 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8539
8540         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8541         the front of the initialize list.
8542
8543 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8544
8545         * infrun.c (struct inferior_status): Replace fields
8546         selected_frame_address and selected_level with field
8547         selected_frame_id.
8548         (save_inferior_status): Update.  Use get_frame_id.
8549         (struct restore_selected_frame_args): Delete.
8550         (restore_selected_frame): Update.  Use frame_find_by_id.
8551         (restore_inferior_status): Update.
8552
8553         * breakpoint.h (struct breakpoint): Change type of
8554         watchpoint_frame to frame_id.
8555         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8556         call to get_current_frame.
8557         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8558         get_current_frame.
8559         (watchpoint_check): Use frame_find_by_id.
8560
8561         * frame.h (record_selected_frame): Delete declaration.
8562         * stack.c (record_selected_frame): Delete function.
8563         
8564         * frame.h (struct frame_id): Define.
8565         (get_frame_id): Declare.
8566         (frame_find_by_id): Declare.
8567         * frame.c (frame_find_by_id): New function.
8568         (get_frame_id): New function.
8569
8570 2002-06-10  Andrey Volkov <avolkov@transas.com>
8571
8572         * ser-e7kpc.c: Fix duplicated define and call of 
8573         _initialize_ser_e7000pc
8574             
8575 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8576
8577         * signals/signals.c (target_signal_from_host): Fix #ifdef
8578         SIGRTMIN case.
8579         (do_target_signal_to_host): Likewise.
8580
8581 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8582
8583         * mips-tdep.c (mips_find_abi_section): New function.
8584         (mips_gdbarch_init): Call it.
8585
8586 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8587
8588         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8589         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8590         after Andrew's 2002-06-08 gdbarch change.
8591
8592 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8593
8594         * i386-linux-nat.c (suppy_gregset): Don't supply
8595         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8596         register cache.
8597         (fill_gregset): Don't fetch it under the same circumstances.
8598
8599 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8600
8601         * Makefile.in (callback_h): Define.
8602         (remote_sim_h): Update path to remote-sim.h.
8603         (remote-rdp.o): Add $(callback_h).
8604         (remote-sim.o): Use $(callback_h).
8605         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8606         * remote-rdp.c: Include "gdb/callback.h".
8607
8608 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8609
8610         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8611         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8612
8613 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8614
8615         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8616         * rdi-share/serpardr.c: Ditto.
8617         * rdi-share/unixcomm.c: Ditto.
8618         * rdi-share/serdrv.c: Ditto.
8619         * rdi-share/hostchan.h: Ditto.
8620         * rdi-share/hostchan.c: Ditto.
8621         * rdi-share/host.h: Ditto.
8622         * rdi-share/devsw.c: Ditto.
8623
8624         * objfiles.h: Change type of obj_private to void pointer.
8625         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8626         strcmp instead of STREQ, use LONGEST, do not use PTR
8627         * somsolib.c: Ditto.
8628
8629         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8630         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8631         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8632
8633 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8634
8635         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8636         (default_get_saved_register): Delete function.
8637         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8638         generic_unwind_get_saved_register.
8639         * gdbarch.h, gdbarch.c: Re-generate.
8640         
8641 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8642
8643         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8644         generic_func_frame_chain_valid.
8645         * gdbarch.h, gdbarch.c: Re-generate.
8646         * blockframe.c (generic_func_frame_chain_valid): Only check
8647         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8648         passing FP to PC_IN_CALL_DUMMY.
8649         Fix PR gdb/360.
8650
8651 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8652
8653         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8654         (register_gdbarch_data): Initialize init_p.
8655         (gdbarch_data): Initialize data pointer using the init function.
8656         (init_gdbarch_data): Delete function.
8657         (gdbarch_update_p): Update.
8658         (initialize_non_multiarch): Update.
8659         (struct gdbarch): Add field initialized_p.
8660         * gdbarch.h, gdbarch.c: Re-generate.
8661
8662 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8663
8664         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8665         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8666         better do the things actually here.
8667         * x86-64-tdep.c (x86_64_register_name2nr): New.
8668         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8669         (x86_64_gdbarch_init): Respect the above change.
8670         * x86-64-tdep.h (x86_64_register_name2nr)
8671         (x86_64_register_nr2name): Add prototypes.
8672         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8673
8674 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8675
8676         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8677         Delete extra braces and re-indent.
8678         (d10v_store_return_value): Char return values
8679         must be shifted over by one byte in R0.
8680         (d10v_extract_return_value): Delete extra braces, re-indent.
8681
8682 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8683
8684         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8685         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8686         (d10v_integer_to_address): Rewrite.
8687         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8688         the d10v specific functions which take care of converting to the
8689         correct space.
8690
8691 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8692
8693         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8694         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8695
8696 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8697
8698         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8699         includes.
8700         * config/tm-linux.h: Ditto.
8701         * config/alpha/tm-alphalinux.h: Ditto.
8702         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8703         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8704         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8705         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8706         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8707         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8708         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8709         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8710         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8711         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8712         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8713         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8714         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8715         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8716         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8717         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8718         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8719         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8720         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8721         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8722         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8723         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8724         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8725         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8726         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8727         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8728         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8729         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8730         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8731         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8732         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8733         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8734         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8735         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8736         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8737         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8738         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8739
8740 2002-05-04  Aidan Skinner <aidan@velvet.net>
8741
8742         * ada-exp.tab.c: New file
8743         * ada-exp.y: New file
8744         * ada-lang.c: New file
8745         * ada-lang.h: New file
8746         * ada-lex.c: New file
8747         * ada-lex.l: New file
8748         * ada-tasks.c: New file
8749         * ada-typeprint.c: New file
8750         * ada-valprint.c: New file
8751         
8752 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8753
8754         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8755         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8756
8757 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8758
8759         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8760         insetead of ppc-linux-tdep.o.
8761         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8762         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8763
8764 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8765
8766         2002-05-07 Christian Groessler <chris@groessler.org>
8767         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8768         bit register contents for little endian hosts.
8769
8770 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8771
8772         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8773         any maintainer.
8774
8775 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8776
8777         * gdbarch.h: Regenerate.
8778
8779 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8780
8781         * MAINTAINERS: Add everyone to write-after-approval list.
8782
8783 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8784
8785         * stack.c (frame_info): Use frame_register_unwind instead of
8786         saved_regs.  Mention when the SP is on the stack or in a register.
8787
8788         * frame.h (frame_register_unwind_ftype): Define.  Document.
8789         (struct frame_info): Add field register_unwind and
8790         register_unwind_cache.
8791         (frame_register_unwind): Declare.
8792         (generic_unwind_get_saved_register): Declare.
8793
8794         * frame.c (frame_register_unwind): New function.
8795         (generic_unwind_get_saved_register): New function.
8796
8797         * blockframe.c (generic_call_dummy_register_unwind): New function.
8798         (frame_saved_regs_register_unwind): New function.
8799         (set_unwind_by_pc): New function.
8800         (create_new_frame): New function.
8801         (get_prev_frame): New function.
8802
8803 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8804
8805         * a29k-share/: Delete directory.
8806         * remote-vx29k.c: Delete file.
8807
8808 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8809
8810         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8811         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8812
8813 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8814
8815         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8816         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8817         (sparc64nbsd-nat.o)
8818         (sparcnbsd-nat.o)
8819         (sparcnbsd-tdep.o): New dependency lists.
8820         * NEWS: Note new UltraSPARC NetBSD native configuration.
8821         * configure.host (sparc64-*-netbsd*): New host.
8822         * configure.tgt (sparc-*-netbsdelf*)
8823         (sparc-*-netbsd*): Set gdb_target to nbsd.
8824         (sparc64-*-netbsd*): New target.
8825         * sparc64nbsd-nat.c: New file.
8826         * sparcnbsd-nat.c: New file.
8827         * sparcnbsd-tdep.c: New file.
8828         * sparcnbsd-tdep.h: New file.
8829         * config/sparc/nbsd.mt: New file.
8830         * config/sparc/nbsd64.mh: New file.
8831         * config/sparc/nbsd64.mt: New file.
8832         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8833         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8834         (HOST_IPC): Remove.
8835         * config/sparc/nbsdaout.mt: Remove.
8836         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8837         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8838         (HOST_IPC): Remove.
8839         * config/sparc/nbsdelf.mt: Remove.
8840         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8841         sparc-nat.c compatiblity defines.
8842         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8843         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8844         * config/sparc/tm-nbsd64.h: New file.
8845         * config/sparc/tm-nbsdaout.h: Remove.
8846         * config/sparc/xm-nbsd.h: Remove.
8847
8848 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8849
8850         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8851         * sparc-tdep.c: Include osabi.h.
8852         (gdbarch_tdep): Add osabi member.
8853         (_initialize_sparc_tdep): Use gdbarch_register.
8854         (sparc_gdbarch_init): Use generic OS ABI framework.
8855         (sparc_dump_tdep): New function.
8856
8857 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8858
8859         * corefile.c (do_captured_read_memory_integer): Return non-zero
8860         result.
8861         (safe_read_memory_integer): Copy result of memory read when
8862         status is non-zero.  Also, add comments.
8863
8864 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8865
8866         * Makefile.in (ppc_tdep_h): Define.
8867         (ppc-linux-nat.o)
8868         (ppc-linux-tdep.o)
8869         (rs6000-tdep.o): Use $(ppc_tdep_h).
8870         (ppc-sysv-tdep.o)
8871         (ppcnbsd-nat.o)
8872         (ppcnbsd-tdep.o): New dependency lists.
8873         * ppc-tdep.h: Use generic OS ABI framework.
8874         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8875         (ppc_linux_init_abi): New functions.
8876         (ppc_sysv_abi_broken_use_struct_convention)
8877         (ppc_sysv_abi_use_struct_convention)
8878         (ppc_sysv_abi_push_arguments): Move to...
8879         * ppc-sysv-tdep.c: ...here.
8880         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8881         * rs6000-tdep.c (process_note_abi_tag_sections)
8882         (get_elfosabi): Remove.
8883         (rs6000_gdbarch_init): Use generic OS ABI framework.
8884         (rs6000_dump_tdep): New function.
8885         (_initialize_rs6000_tdep): Use gdbarch_register.
8886         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8887         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8888         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8889         of ppc-linux-tdep.o.
8890         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8891         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8892         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8893         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8894         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8895         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8896
8897 2002-05-29  Jim Blandy  <jimb@redhat.com>
8898
8899         * macroscope.c (default_macro_scope): Put `void' in empty argument
8900         list.
8901
8902 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8903
8904         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8905         * arch-utils.c: Include "sim-regno.h".
8906         * gdbarch.sh: Don't include "sim-regno.h".
8907         * gdbarch.h, gdbarch.c: Regenerate.
8908         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8909         here.
8910         * arch-utils.h (legacy_register_sim_regno): To here.
8911         * remote-sim.c (legacy_register_sim_regno): Move function from
8912         here.
8913         * arch-utils.c (legacy_register_sim_regno): To here.
8914
8915 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8916
8917         * sim-regno.h: New file.
8918         * Makefile.in (sim_regno_h): Define.
8919         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8920         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8921         (legacy_register_sim_regno): New function.
8922         (one2one_register_sim_regno): New function.
8923         (gdbsim_fetch_register): Rewrite.
8924         (gdbsim_store_register): Only store a register when
8925         REGISTER_SIM_REGNO is valid.
8926         * d10v-tdep.c: Include "sim-regno.h".
8927         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8928         (d10v_ts3_register_sim_regno): Ditto.
8929         * gdbarch.sh: Include "sim-regno.h".
8930         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8931         * gdbarch.h, gdbarch.c: Regenerate.
8932         * arch-utils.h (default_register_sim_regno): Delete declaration.
8933         * arch-utils.c (default_register_sim_regno): Delete function.
8934
8935 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8936
8937         * ppcnbsd-nat.c: Rewrite.
8938         * ppcnbsd-tdep.c: New file.
8939         * ppcnbsd-tdep.h: New file.
8940         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8941         solib.o, and solib-svr4.o.
8942         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8943         nbsd-tdep.o, and corelow.o.
8944
8945 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8946
8947         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8948         `tr' and `sed'.  Mention that `broken' targets are not expected to
8949         build.
8950
8951 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8952
8953         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8954         Let PC point right after the prologue before looking up symbols.
8955         
8956 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8957
8958         * i386-tdep.c (i386_register_virtual_type): Return 
8959         builtin_type_vec128i for SSE registers.
8960
8961         * gdbtypes.h (builtin_type_vec128i): Declare.
8962
8963         * gdbtypes.c (build_builtin_type_vec128i): New function.
8964         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8965         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8966         (build_gdbtypes): Initialize new builtin vector types.
8967         (_initialize_gdbtypes): Register new vector types with gdbarch.
8968
8969 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8970
8971         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8972         since it has been multi-arch'd.
8973         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8974         Move Alpha and VAX multi-arch news entries to same section
8975         as other multi-arch news.
8976
8977 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8978
8979         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8980         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8981         static.  Rename some register numbers to put them in ns32k-tdep
8982         private namespace.
8983         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8984         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8985         functions.
8986         (_initialize_ns32k_tdep): Use gdbarch_register.
8987         * ns32k-tdep.h: New file.
8988         * ns32knbsd-tdep.c: New file.
8989         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8990         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8991         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8992         REGISTER_BYTES, REGISTER_BYTE): Remove.
8993         * config/ns32k/tm-ns32k.h: New file.
8994         * config/ns32k/tm-umax.h: Remove.
8995
8996 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8997
8998         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8999         ns32k_store_struct_return, ns32k_extract_return_value,
9000         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9001         functions.
9002         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9003         ns32k_saved_pc_after_call.
9004         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9005         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9006         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9007         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9008         ns32k_extract_struct_value_address.
9009
9010 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9011
9012         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9013         ns32k_fix_call_dummy): New.
9014         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9015         ns32k_call_dummy_words.
9016         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9017         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9018         CALL_DUMMY_NARGS): Remove.
9019         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9020
9021 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9022
9023         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9024         ns32k_frame_saved_pc, ns32k_frame_args_address,
9025         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9026         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9027         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9028         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9029         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9030         (BREAKPOINT): Remove..
9031         (FRAME_CHAIN): Define as ns32k_frame_chain.
9032         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9033         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9034         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9035         (FRAME_FIND_SAVED_REGS): Remove.
9036         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9037         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9038         (POP_FRAME): Define as ns32k_pop_frame.
9039
9040 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9041
9042         * ns32k-tdep.c (ns32k_register_byte_32082,
9043         ns32k_register_byte_32382, ns32k_register_raw_size,
9044         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9045         functions.
9046         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9047         ns32k_register_byte_32382.
9048         * config/ns32k/tm-umax.h: Update copyright years.
9049         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9050         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9051         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9052         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9053         (ns32k_get_enter_addr): Fix prototype.
9054
9055 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9056
9057         * ns32k-tdep.c: Update copyright years.
9058         (ns32k_register_name_32082): New function.
9059         (ns32k_register_name_32382): Ditto.
9060         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9061         (REGISTER_NAME): Define as ns32k_register_name_32382.
9062         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9063         (REGISTER_NAME): Define as ns32k_register_name_32082.
9064
9065 2002-05-24  Jim Blandy  <jimb@redhat.com>
9066
9067         * dwarf2read.c (free_line_header): Use xfree, not free.
9068
9069 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9070
9071         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9072         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9073
9074 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9075
9076         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9077
9078 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9079
9080         From Ross Alexander at NEC Europe:
9081         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9082
9083 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9084
9085         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9086         for input, rather than parse_and_eval_address.  
9087
9088 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9089
9090         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9091         * Makefile.in (sim_d10v_h): Update definition.
9092
9093 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9094
9095         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9096         change `2002-05-22 Michael Snyder' below.
9097         (d10v_push_arguments): Ditto.
9098         (d10v_extract_return_value): Ditto.
9099
9100 2002-05-23  Jim Blandy  <jimb@redhat.com>
9101
9102         * macrotab.c (check_for_redefinition): Don't complain if the new
9103         definition is the same as the previous one.  Take more arguments
9104         to allow the comparison.
9105         (macro_define_object, macro_define_function): Pass more arguments
9106         to check_for_redefinition.
9107
9108 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9109
9110         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9111         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9112         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9113         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9114         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9115         Add a temp variable to save a call (and a memory read).
9116         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9117         if possible (so that PC_IN_CALL_DUMMY will work).
9118
9119 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9120
9121         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9122
9123 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9124
9125         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9126         fde->cie_ptr.
9127         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9128         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9129         so that frames of shared libraries are mapped correctly.
9130         (execute_stack_op): Change type of 'result' from ULONGEST to
9131         CORE_ADDR.
9132         
9133 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9134
9135         * config/alpha/tm-nbsd.h: Include solib.h.
9136
9137 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9138
9139         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9140         assumptions about the host's byte order.
9141
9142 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9143
9144         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9145         to dependency list.
9146         * alphanbsd-tdep.c: Include solib-svr4.h.
9147         * shnbsd-tdep.c: Ditto.
9148
9149 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9150
9151         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9152         nbsd-tdep.h to dependency list.
9153         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9154         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9155         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9156         nbsdaout.mh and nbsdelf.mh consistently.
9157         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9158         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9159         nbsdaout.mt and nbsdelf.mh consistently.
9160         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9161         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9162         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9163         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9164         a.out shared library stuff from here...
9165         * config/nm-nbsdaout.h: ...to here.
9166         * config/tm-nbsd.h: Remove.
9167         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9168         * config/arm/nbsd.mh: Remove.
9169         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9170         nbsd-tdep.o.
9171         * config/arm/nbsdaout.mh: New file. 
9172         * config/arm/nbsdelf.mh: New file.
9173         * config/arm/nm-nbsdaout.h: New file.
9174         * config/i386/nbsd.mh: Remove.
9175         * config/i386/nbsd.mt: Remove.
9176         * config/i386/nbsdaout.mh: New file.
9177         * config/i386/nbsdaout.mt: New file.
9178         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9179         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9180         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9181         i386_register_u_addr): Remove.
9182         * config/i386/nm-nbsdaout.h: New file.
9183         * config/i386/nm-nbsdelf.h: Remove.
9184         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9185         (USE_STRUCT_CONVENTION): Remove.
9186         * config/i386/tm-nbsdaout.h: New file.
9187         * config/i386/tm-nbsdelf.h: Remove.
9188         * config/m68k/nbsd.mh: Remove.
9189         * config/m68k/nbsd.mt: Remove.
9190         * config/m68k/nbsdaout.mh: New file.
9191         * config/m68k/nbsdaout.mt: New file. 
9192         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9193         * config/m68k/nm-nbsdaout.h: New file.
9194         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9195         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9196         * config/ns32k/nbsd.mh: Remove.
9197         * config/ns32k/nbsd.mt: Remove. 
9198         * config/ns32k/nbsdaout.mh: New file.
9199         * config/ns32k/nbsdaout.mt: New file.
9200         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9201         * config/ns32k/nm-nbsdaout.h: New file.
9202         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9203         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9204         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9205         (SVR4_SHARED_LIBS): Remove.
9206         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9207         * config/sparc/nbsd.mh: Remove.
9208         * config/sparc/nbsd.mt: Remove.
9209         * config/sparc/nbsdaout.mh: New file.
9210         * config/sparc/nbsdaout.mt: New file.
9211         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9212         * config/sparc/nbsdelf.mt: New file.
9213         * config/sparc/nm-nbsdaout.h: New file.   
9214         * config/sparc/nm-nbsdelf.h: Remove.
9215         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9216         * config/sparc/tm-nbsdaout.h: New file.
9217
9218 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9219
9220         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9221         mipsnbsd-tdep.c
9222         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9223
9224 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9225
9226         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9227         shnbsd-nat.c.
9228         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9229
9230 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9231
9232         * NEWS: Note new MIPS NetBSD native configuration. 
9233         * configure.host (mips*-*-netbsd*): New host. 
9234         * configure.tgt (mips*-*-netbsd*): New target. 
9235         * mipsnbsd-nat.c: New file.
9236         * mipsnbsd-tdep.c: New file.
9237         * mipsnbsd-tdep.h: New file.
9238         * config/mips/nbsd.mh: New file.
9239         * config/mips/nbsd.mt: New file.
9240         * config/mips/nm-nbsd.h: New file.
9241         * config/mips/tm-nbsd.h: New file.
9242
9243 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9244
9245         * Makefile.in (SFILES): Add osabi.c.
9246         (COMMON_OBS): Add osabi.o.
9247         (osabi.o): New dependency list.
9248         * osabi.c: New file.
9249         * osabi.h: New file.
9250         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9251
9252         * Makefile.in (alpha_tdep_h): Define and use instead of
9253         alpha-tdep.h.
9254         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9255         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9256         Remove.
9257         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9258         * alpha-tdep.h: Include osabi.h.
9259         (alpha_abi): Remove.
9260         (gdbarch_tdep): Use generic OS ABI framework.
9261         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9262         gdbarch_register_osabi.
9263         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9264         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9265         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9266
9267         * Makefile.in (sh_tdep_h): Add osabi.h.
9268         * sh-tdep.h (sh_osabi): Remove.
9269         (gdbarch_tdep): Use generic OS ABI framework.
9270         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9271         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9272         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9273         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9274
9275         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9276         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9277         gdbarch_register_osabi.
9278         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9279         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9280         (get_elfosabi): Rename to...
9281         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9282         ABI framework support routines.
9283         (arm_gdbarch_init): Use generic OS ABI framework.
9284         (arm_dump_tdep): Likewise.
9285         (_initialize_arm_tdep): Likewise.
9286         * arm-tdep.h: Include osabi.h.
9287         (arm_abi): Remove.
9288         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9289         osabi member.
9290         (arm_gdbarch_register_os_abi): Remove prototype.
9291         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9292         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9293
9294         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9295         * mips-tdep.c: Include osabi.h.
9296         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9297         OS ABI framework.
9298
9299 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9300
9301         * h8300-tdep.c: Fix formatting.
9302
9303 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9304
9305         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9306         printing vector registers.
9307
9308 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9309
9310         From Fernando Nasser:
9311         * remote.c (remote_async_open_1): Re-throw the exception when the
9312         connection fails.
9313         (remote_cisco_open): Ditto.
9314         (remote_open_1): Ditto.
9315
9316 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9317
9318         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9319         (remote_start_remote): Add uiout parameter.  Pass through to
9320         remote_start_remote_dummy.
9321         (remote_open_1): Use catch_exception instead of catch_errors.
9322         (remote_async_open_1): Ditto.
9323         (remote_cisco_open): Ditto.
9324
9325 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9326
9327         * remote.c (remote_start_remote): Replace PTR with void pointer.
9328         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9329         static.
9330
9331 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9332
9333         * gdb_indent.sh: Allow the script to be run in the sim directory.
9334
9335 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9336
9337         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9338         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9339
9340         * corelow.c (core_open): Only call set_gdbarch_from_file if
9341         exec_bfd is NULL.
9342
9343 2002-05-17  Andrey Volkov <avolkov@transas.com>
9344
9345         * h8300-tdep.c: Add support of EXR register
9346         * config/h8300/tm-h8300.h: Ditto. 
9347         
9348 2002-05-17  Andrey Volkov <avolkov@transas.com>
9349
9350         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9351         
9352 2002-05-17  Andrey Volkov <avolkov@transas.com>
9353
9354         * h8300-tdep.c: Change literal regnums to REGNO.
9355         
9356 2002-05-17  Jim Blandy  <jimb@redhat.com>
9357
9358         * NEWS: Note addition of macro support.
9359
9360         Expand preprocessor macros in C expressions.
9361         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9362         (scan_macro_expansion, scanning_macro_expansion,
9363         finished_macro_expansion): New function declarations.
9364         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9365         variable declarations.
9366         * parser-defs.h (expression_context_pc): New declaration.
9367         * parse.c (expression_context_pc): New variable.
9368         (parse_exp_1): Set expression_context_pc, as well as
9369         expression_context_block.
9370         * c-exp.y (yylex): If we're not already reading the result of a
9371         macro expansion, try to macro-expand the next token.  When we're
9372         done scanning a macro expansion, switch back to the mainline text.
9373         Commas and `if's in a macro's expansion don't terminate the input.
9374         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9375         (macro_original_text, macro_expanded_text,
9376         expression_macro_lookup_func, expression_macro_lookup_baton): New
9377         variables.
9378         (scan_macro_expansion, scanning_macro_expansion,
9379         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9380         c_preprocess_and_parse): New functions.
9381         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9382         c_preprocess_and_parse, instead of c_parse.
9383         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9384         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9385
9386 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9387
9388         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9389         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9390         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9391
9392 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9393
9394         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9395
9396 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9397
9398         * Makefile.in (sh_tdep_h): Define and use.
9399         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9400         register enum): Move to...
9401         * * sh-tdep.h: ...here.
9402         * sh-tdep.c: Include sh-tdep.h.
9403         * sh3-rom.c: Likewise.
9404         * shnbsd-tdep.c: Likewise.
9405
9406 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9407
9408         * arm-tdep.c: Spelling fix in comment.
9409
9410 2002-05-16  Jim Blandy  <jimb@redhat.com>
9411
9412         Add commands for manually expanding macros and showing their
9413         definitions.
9414         * macrocmd.c, macroscope.c, macroscope.h: New files.
9415         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9416         (macroscope_h): New variable.
9417         (HFILES_NO_SRCDIR): Add macroscope.h.
9418         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9419         (macroscope.o, macrocmd.o): New rules.
9420
9421         Teach the Dwarf 2 reader to read macro information.
9422         * dwarf2read.c: #include "macrotab.h".
9423         (dwarf_macinfo_buffer): New variable.
9424         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9425         dwarf_macinfo_size.
9426         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9427         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9428         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9429         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9430         dwarf2_macro_spaces_in_definition): New complaints.
9431         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9432         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9433         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9434         the partial symbol table.
9435         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9436         from what's recorded in the partial symbol table.
9437         (read_file_scope): If the compilation unit has a
9438         `DW_AT_macro_info' attribute, read its macro information.
9439         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9440
9441 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9442
9443         Fix PR gdb/546
9444         * ser-tcp.c: Don't include <netinet/udp.h>.
9445
9446 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9447
9448         * MAINTAINERS: Update my email address.
9449
9450 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9451
9452         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9453         include file of the same name.
9454
9455 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9456
9457         * configure.tgt: Mark v850 as multi-arched.
9458         * config/v850/tm-v850.h: Remove file.
9459         * config/v850/v850.mt: Eliminate TM_FILE.
9460
9461 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9462
9463         * v850-tdep.c: Full multi-arch.
9464         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9465         Define GDB_MULTI_ARCH to 2.
9466
9467 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9468
9469         * p-exp.y (current_type): New static variable.
9470         Carries the type of the expression at the position that is parsed.
9471         (push_current_type, pop_current_type): Two new functions. Used
9472         to store/restore current_type in expression on specific tokens.
9473         (search_field): New static variable. Set to one after parsing a point
9474         as at that point only a FIELDNAME token should be searched.
9475         (FIELDNAME): New token. After a point only a token belonging to 
9476         current_type type definition is allowed.
9477         (all over token rules): reset and change current_type according
9478         to rules.
9479         (exp '[' rule): insert implicit array index field if
9480         exp is a pascal string type.
9481
9482 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9483
9484         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9485         frame info.  Use frame_info's saved_regs instead of matching member
9486         in extra_frame_info throughout.
9487         (v850_frame_init_saved_regs): New function.
9488         (v850_init_extra_frame_info): Move most functionality into
9489         v850_frame_init_saved_regs().
9490         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9491         (v850_frame_find_saved_regs): Remove declaration.
9492         (FRAME_FIND_SAVED_REGS): Remove definition.
9493         (v850_frame_init_saved_regs): Add declaration.
9494         (FRAME_INIT_SAVED_REGS): Add definition.
9495
9496 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9497
9498         * v850-tdep.c: Begin multi-arch'ing v850.
9499         (v850_target_architecture_hook): Remove function.
9500         (v850_gdbarch_init): New function.  Add code previously in
9501         v850_target_architecture_hook().
9502         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9503         Call register_gdbarch_init() instead.
9504
9505 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9506
9507         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9508         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9509         (fixup_class_method_type): Likewise.
9510
9511 2002-05-15  Jim Blandy  <jimb@redhat.com>
9512
9513         Add macro structures to GDB's symbol tables.  Nobody puts anything
9514         in them yet.
9515         * symtab.h (struct symtab): New member: `macro_table'.
9516         * buildsym.h (pending_macros): New global variable.
9517         * buildsym.c: #include "macrotab.h".
9518         (buildsym_init): Initialize `pending_macros'.
9519         (end_symtab): If we found macro information while reading a CU's
9520         debugging info, do build a symtab structure for it.  Make the
9521         symtab point to the macro information, and clear the
9522         `pending_macros' pointer which held it while we were reading the
9523         debug info.
9524         (really_free_pendings): Free any pending macro table.
9525         * objfiles.h (struct objfile): New member: `macro_cache'.
9526         * objfiles.c (allocate_objfile): Set allocate and free functions
9527         for the macro cache's objstack.
9528         (free_objfile): Empty the macro cache's obstack.
9529         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9530         set new allocate and free functions for it.
9531         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9532         free functions for the macro cache's objstack.  (Why is this
9533         function building its own objfile?)
9534         * symmisc.c (print_objfile_statistics): Print statistics on the
9535         macro bcache.
9536         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9537
9538 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9539
9540         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9541         (REGISTER_U_ADDR): Delete definition.
9542         (arm_register_u_addr): Delete declaration.
9543
9544 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9545
9546         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9547         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9548
9549 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9550
9551         * regcache.c (register_valid): Revise comments refering to "Not
9552         available" and "unavailable".
9553         * frame.c (frame_register_read): Ditto.
9554         * findvar.c (value_of_register): Ditto.
9555
9556 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9557
9558         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9559         (remote-sim.o): Update dependencies.
9560         (d10v-tdep.o): Specify dependencies.
9561         (sim_d10v_h): Define.
9562
9563 2002-05-14  Jim Blandy  <jimb@redhat.com>
9564
9565         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9566         * macrotab.c (macro_lookup_inclusion, find_definition,
9567         new_macro_table): Same.
9568         
9569         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9570         not `! strcmp ()'.  This is a dubious improvement.
9571         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9572
9573         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9574         although it's not necessary, to avoid a warning.
9575
9576 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9577
9578         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9579         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9580         TYPE_INSTANCE_FLAGS.
9581         (struct main_type): New.
9582         (struct type): Move most members to struct main_type.  Change
9583         cv_type and as_type to new type_chain member.  Add instance_flags.
9584         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9585         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9586         (finish_cv_type): Remove prototype.
9587         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9588         Set TYPE_CHAIN.
9589         (alloc_type_instance): New function.
9590         (smash_type): New function.
9591         (make_pointer_type, make_reference_type, make_function_type)
9592         (smash_to_member_type, smash_to_method_type): Call smash_type.
9593         (make_qualified_type): New function.
9594         (make_type_with_address_space): Call make_qualified_type.
9595         (make_cv_type): Likewise.
9596         (finish_cv_type): Remove unnecessary function.
9597         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9598         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9599         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9600         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9601         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9602         * hpread.c (hpread_read_struct_type): Likewise.
9603         * stabsread.c (read_struct_type): Likewise.
9604
9605 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9606
9607         * configure.tgt: Add a catch all sh* target, for cases like
9608         sh[2,3,4]-elf and sh-hms.
9609
9610 2002-05-14  Keith Seitz  <keiths@redhat.com>
9611
9612         * event-loop.c (create_file_handler): Don't do anything but
9613         update data when we are given a fd which we are already
9614         monitoring.
9615
9616 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9617
9618         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9619         (update_context): Use __func__ in warnings.
9620         
9621 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9622
9623         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9624         and tcp_close to net_open and net_close.
9625         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9626         using UDP if requested.  Don't try to disable Nagle on UDP
9627         sockets.
9628         * remote.c (remote_serial_open): New function.  Warn about UDP.
9629         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9630
9631 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9632
9633         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9634
9635 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9636
9637         * configure.tgt: Remove sh-hms target.
9638         * MAINTAINERS: Don't list sh-hms as a separate target.
9639
9640 2002-05-13  Jim Blandy  <jimb@redhat.com>
9641
9642         Add first preprocessor macro-expansion files.
9643         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9644         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9645         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9646         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9647         (COMMON_OBS): Add macrotab.o, macroexp.o.
9648         (macroexp.o, macrotab.o): New rules.
9649
9650 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9651
9652         * config/m88k/tm-m88k.h: Update copyright.
9653         (m88k_target_write_pc): Declare
9654         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9655         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9656         (SHIFT_INST_REGS): Update definition.
9657         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9658         using old definition of TARGET_WRITE_PC.
9659         * regcache.c (generic_target_write_pc): Delete code handling
9660         NNPC_REGNUM.
9661         * gdbarch.sh (NNPC_REGNUM): Delete.
9662         * gdbarch.h, gdbarch.c: Regenerate.
9663
9664 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9665
9666         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9667         builtin reg number.
9668
9669 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9670
9671         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9672         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9673         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9674         access macros.
9675         * c-typeprint.c (cp_type_print_method_args): Likewise.
9676         (c_type_print_args): Likewise.
9677         * d10v-tdep.c (d10v_push_arguments): Likewise.
9678         (d10v_extract_return_value): Likewise.
9679         * expprint.c (print_subexp): Likewise.
9680         * gdbtypes.c (lookup_primitive_typename): Likewise.
9681         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9682         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9683         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9684         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9685         (TYPE_VECTOR): Likewise.
9686         * hpread.c (hpread_read_struct_type)
9687         (fix_static_member_physnames, fixup_class_method_type)
9688         (hpread_type_lookup): Likewise.
9689         * mdebugread.c (parse_symbol, parse_type): Likewise.
9690         * p-lang.c (is_pascal_string_type): Likewise.
9691         * valops.c (hand_function_call): Likewise.
9692         * x86-64-tdep.c (classify_argument): Likewise.
9693
9694         * hpread.c (hpread_read_function_type)
9695         (hpread_read_doc_function_type): Call replace_type.
9696         * dstread.c (create_new_type): Delete.
9697         (decode_dst_structure, process_dst_function): Call alloc_type.
9698         Use type access macros.
9699
9700 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9701
9702         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9703         the're not supported by the current architecture.
9704         (i387_fill_fxsave): Likewise.
9705
9706 2002-05-12  Fred Fish  <fnf@redhat.com>
9707
9708         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9709         sect_index_xxx members to index the first slot in section_offsets
9710         if all of the section_offsets are zero.
9711
9712 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9713
9714         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9715         checked in with last change.
9716
9717 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9718
9719         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9720         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9721         config.sub.
9722
9723 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9724
9725         * Makefile.in: Update dependencies.
9726
9727 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9728
9729         * language.c (local_hex_string_custom): Simplify.  Do not depend
9730         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9731
9732         * memattr.c (mem_info_command): Replace calls to
9733         longest_local_hex_string and longest_local_hex_string_custom.
9734         * buildsym.c (make_blockvector): Ditto.
9735         * solib.c (info_sharedlibrary_command): Ditto.
9736         * tracepoint.c (tracepoints_info): Ditto.
9737         * symtab.c (print_msymbol_info): Ditto.
9738
9739         * language.c (local_hex_string): Delete.
9740         (local_hex_string_custom): Delete.
9741         (longest_local_hex_string): Rename to local_hex_string.
9742         (longest_local_hex_string_custom): Rename to
9743         local_hex_string_custom.
9744         * language.h (local_hex_string): Change parameter type to LONGEST.
9745         (local_hex_string_custom): Ditto.
9746         (longest_local_hex_string): Delete declaration.
9747         (longest_local_hex_string_custom): Ditto.
9748
9749         * solib.c: Update copyright.
9750         * memattr.c: Update copyright.
9751         
9752 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9753
9754         * arch-utils.h (legacy_register_to_value): Declare.
9755         (legacy_value_to_register): Declare.
9756         (legacy_convert_register_p): Declare.
9757         * arch-utils.c (legacy_register_to_value): New function.
9758         (legacy_value_to_register): New function.
9759         (legacy_convert_register_p): New function.
9760
9761         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9762         (VALUE_TO_REGISTER): Define.
9763         (CONVERT_REGISTER_P): Define.
9764         * gdbarch.h, gdbarch.c: Regenerate.
9765
9766         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9767         VALUE_TO_REGISTER.
9768         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9769         CONVERT_REGISTER_P.
9770
9771 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9772             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9773
9774         * Makefile.in: Update dependencies for valops.c.
9775         * valops.c: Include "gdb_assert.h".
9776         (typecmp): Skip THIS parameter to methods.
9777         (find_method_list): Remove static_memfuncp argument,
9778         update callers.  Check for stub methods.
9779         (find_value_oload_method_list): Don't set *static_memfuncp.
9780         (find_overload_match): Don't check for stub methods.  Assert
9781         that methods are not stubbed.  Handle static methods.
9782         (value_find_oload_method_list): Remove static_memfuncp argument.
9783         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9784         to the argument list for static stub methods.
9785         * value.h (value_find_oload_method_list): Update prototype.
9786
9787 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9788
9789         * arch-utils.h (generic_register_size): Declare.
9790         (generic_register_raw_size, generic_register_virtual_size): Delete
9791         declarations.
9792         * arch-utils.c (generic_register_raw_size): Delete.
9793         (generic_register_size): New function.
9794         (generic_register_virtual_size): Delete.
9795
9796         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9797         default generic_register_size.
9798         * gdbarch.h, gdbarch.c: Re-generate.
9799         
9800         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9801         register_virtual_size.
9802         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9803         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9804
9805 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9806
9807         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9808         * gdbarch.h, gdbarch.c: Regenerate.
9809         * gnu-v3-abi.c: Update copyright.
9810         (vtable_address_point_offset): Update.
9811         (gnuv3_rtti_type): Update.
9812         (gnuv3_baseclass_offset): Update.
9813         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9814         (init_fetch_link_map_offsets): Update.
9815         * remote.c (get_remote_state): Update.
9816         
9817 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9818
9819         * TODO: Remove value_headof/value_from_vtable_info comment.
9820         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9821         * values.c (value_headof, value_from_vtable_info): Delete.
9822         * value.h (value_from_vtable_info): Delete prototype.
9823
9824 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9825
9826         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9827         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9828         $(gdb_regex_h).
9829         (gdb_assert_h): Define.
9830         (gdb_wait_h): Define.
9831         (gdb_regex_h): Define.
9832
9833 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9834
9835         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9836         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9837
9838 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9839
9840         * nbsd-tdep.c: Fix comment.
9841
9842 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9843
9844         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9845         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9846         (nbsd-tdep.o): New dependency list.
9847         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9848         nbsd-tdep.h.
9849         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9850         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9851         * nbsd-tdep.c: New file.
9852         * nbsd-tdep.h: New file.
9853         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9854         nbsd-tdep.h.
9855         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9856         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9857         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9858         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9859
9860 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9861
9862         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9863         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9864         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9865         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9866         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9867         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9868
9869 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9870
9871         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9872         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9873         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9874         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9875         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9876         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9877         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9878
9879 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9880
9881         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9882         fetch_elfcore_registers to...
9883         * i386nbsd-tdep.c: ...here.
9884         (i386nbsd_use_struct_convention): Rename to...
9885         (i386nbsd_aout_use_struct_convention): ...this.
9886         (i386nbsd_supply_reg): New function.
9887         (i386nbsd_fill_reg): New function.
9888         (fetch_core_registers): Use i386nbsd_supply_reg.
9889         (fetch_elfcore_registers): Likewise.
9890         (_initialize_i386nbsd_tdep): New function.
9891         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9892         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9893         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9894         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9895         (i386nbsd_aout_use_struct_convention): ...this.
9896
9897 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9898
9899         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9900         (store_inferior_registers): Use shnbsd_fill_reg.
9901         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9902         sh_nbsd_supply_register): Collapse into...
9903         (shnbsd_supply_reg): ...this.
9904         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9905         (shnbsd_fill_reg): ...this.
9906         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9907         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9908         (fetch_core_registers): Use shnbsd_supply_reg.
9909         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9910         (sh_nbsd_core_fns): Rename to...
9911         (shnbsd_core_fns): ...this.
9912         (sh_nbsd_elfcore_fns): Rename to...
9913         (shnbsd_elfcore_fns): ...this.
9914         (sh_nbsd_init_abi): Rename to...
9915         (shnbsd_init_abi): ...this.
9916         (_initialize_sh_nbsd_tdep): Rename to...
9917         (_initialize_shnbsd_tdep): ...this.
9918         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9919         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9920         sh_nbsd_fill_register): Remove prototypes.
9921         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9922
9923 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9924
9925         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9926         (i387-nat.o): Delete dependency list.
9927         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9928         (x86-64-linux-nat.o): Likewise.
9929         * i387-nat.c: Delete file, moving contents to...
9930         * i387-tdep.c: ...here.
9931         * i387-nat.h: Rename...
9932         * i387-tdep.h: ...to this.
9933         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9934         * i386-linux-nat.c: Likewise.
9935         * i386bsd-nat.c: Likewise.
9936         * i386gnu-nat.c: Likewise.
9937         * i386nbsd-nat.c: Likewise.
9938         * i386v4-nat.c: Likewise.
9939         * x86-64-linux-nat.c: Likewise.
9940         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9941         * config/i386/go32.mh (NATDEPFILES): Likewise.
9942         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9943         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9944         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9945         * config/i386/linux.mh (NATDEPFILES): Likewise.
9946         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9947         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9948         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9949         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9950
9951 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9952
9953         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9954         (alphanbsd-nat.o): Remove dependency list.
9955         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9956         * alphanbsd-nat.c: Delete.  Contents moved to...
9957         * alphanbsd-tdep.c: ...here.
9958         (_initialize_alphanbsd_tdep): Register core functions.
9959         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9960
9961 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9962
9963         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9964         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9965         (alphanbsd-nat.o): Likewise.
9966         (alphabsd-tdep.o): New dependency list.
9967         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9968         (fill_gregset): Use alphabsd_fill_reg.
9969         (supply_fpregset): Use alphabsd_supply_fpreg.
9970         (fill_fpregset): Use alphabsd_fill_fpreg.
9971         (fetch_inferior_registers): Use struct reg and struct fpreg
9972         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9973         and alphabsd_supply_fpreg.
9974         (store_inferior_registers): Use struct reg and struct fpreg
9975         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9976         and alphabsd_fill_fpreg.
9977         * alphabsd-tdep.c: New file.
9978         * alphabsd-tdep.h: New file.
9979         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9980         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9981         alphabsd_supply_fpreg.
9982         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9983         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9984
9985 2002-05-11  Eric Christopher  <echristo@redhat.com>
9986
9987         * mips-tdep.c (mips_double_register_type): Fix thinko.
9988         (mips_single_register_type): Ditto.
9989         * MAINTAINERS: Add self.
9990
9991 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9992
9993         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9994         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9995         right thing on architectures with different endianness and/or
9996         integer sizes.
9997
9998 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9999
10000         From Christian Limpach <chris@Pin.LU>
10001         * configure.in: Change sed expression which comments out
10002         NATDEPFILES to also comment out continuation lines.
10003         * configure: Regenerate.
10004
10005 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10006
10007         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10008         big patch.
10009
10010 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10011
10012         * sh-tdep.c: Include correct file.
10013
10014 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10015
10016         New support for sh64-elf (sh5) target.
10017
10018         * configure.tgt: For sh64-elf target, default to sh-elf.
10019
10020         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10021         (struct gdbarch_tdep): Add new fields for new registers and ABI
10022         info.
10023
10024         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10025         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10026         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10027         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10028         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10029         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10030         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10031         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10032         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10033         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10034         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10035         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10036         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10037         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10038         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10039         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10040         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10041         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10042         sign_extend, sh64_nofp_frame_init_saved_regs,
10043         sh64_init_extra_frame_info, sh64_get_saved_register,
10044         sh64_extract_struct_value_address, sh64_pop_frame,
10045         sh64_push_arguments, sh64_extract_return_value,
10046         sh64_store_return_value, sh64_show_media_regs,
10047         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10048         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10049         sh_sh64_register_virtual_type,
10050         sh_sh64_register_convert_to_virtual,
10051         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10052         sh64_register_read, sh64_pseudo_register_write,
10053         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10054         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10055         sh64_do_pseudo_register, sh_compact_do_registers_info,
10056         sh64_do_registers_info, sh_gdbarch_init): New functions.
10057
10058 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10059
10060         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10061
10062 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10063
10064         * linespec.c (decode_line_1): Check for a double quote after
10065         a filename correctly.
10066
10067 2002-05-10  Jim Blandy  <jimb@redhat.com>
10068
10069         Properly track the size of the current objfile's .debug_line section.
10070         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10071         (DWARF_LINE_SIZE): New macro.
10072         (dwarf2_build_psymtabs_hard): Record the line section's size in
10073         the partial symbol table.
10074         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10075         symbol table.
10076
10077 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10078
10079         * ia64-tdep.c: Handle breakpoints on L instruction type
10080         in MLX instruction bundle by moving the breakpoint to
10081         the third slot (X instruction type) as L holds only data.
10082
10083 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10084
10085         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10086         (process_one_symbol): Complain about discarding local symbols
10087         due to a misplaced N_LBRAC entry.
10088
10089 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10090
10091         From Daniel Berlin <dan@cgsoftware.com>
10092         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10093         decrease the depth we are at, in the case of templates.
10094
10095 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10096
10097         * mips-tdep.c (mips_float_register_type): New function.
10098         (mips_double_register_type): New function.
10099         (mips_print_register): Use them.
10100         (do_fp_register_row): Likewise.
10101
10102 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10103
10104         * signals/signals.c (signals): Remove conditional compilation around
10105         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10106         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10107
10108 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10109
10110         * remote-rdp.c (remote_rdp_can_run): Remove.
10111
10112 2002-05-09  Tom Tromey  <tromey@redhat.com>
10113
10114         * jv-valprint.c (java_val_print): Handle `char' as a special case
10115         of TYPE_CODE_INT.
10116
10117 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10118
10119         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10120         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10121         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10122         str r(0123),[sp,#nn].
10123         (arm_skip_prologue): Ditto.  Also make disassembly
10124         order-independent by placing it in a loop.
10125
10126 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10127
10128         * stabsread.c (read_type): Add recognition for new attribute:
10129         "@V;" means that an array type is actually a vector.
10130         This is analogous to the vector flag that's been added to dwarf2.
10131
10132 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10133
10134         * i386-tdep.h (i386_abi): New enum.
10135         (struct gdbarch_tdep): Replace os_ident member with abi.
10136         (i386_gdbarch_register_os_abi): New prototype.
10137         * i386-tdep.c (i386_abi_names): New array.
10138         (process_note_abi_tag_sections): Removed.
10139         (process_note_sections): New function.
10140         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10141         (struct i386_abi_handler): New struct.
10142         (i386_abi_handler_list): New variable.
10143         (i386_gdbarch_register_os_abi): New function.
10144         (i386_gdbarch_init): Adapt for the changes given above.
10145
10146 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10147
10148         * gregset.h: Say "GNU/Linux".
10149
10150 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10151
10152         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10153         (build_gdbtypes): Build builtin_type_v2_float.
10154         (_initialize_gdbtypes): Register new builtin type.
10155
10156 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10157
10158         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10159         (clear_gdbarch_swap): New function.
10160         (initialize_non_multiarch): Call.
10161         (gdbarch_update_p): Before calling init(), swap out and clear the
10162         existing architecture.
10163         * gdbarch.c: Regenerate.
10164
10165 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10166
10167         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10168         alphanbsd-tdep.c.
10169
10170 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10171
10172         * sh-nbsd-nat.c: Rename to...
10173         * shnbsd-nat.c: ...this.
10174         * sh-nbsd-tdep.c: Rename to...
10175         * shnbsd-tdep.c: ...this.
10176         * sh-nbsd-tdep.h: Rename to...
10177         * shnbsd-tdep.h: ...this.
10178         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10179         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10180
10181 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10182
10183         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10184         concatenation for command help messages.
10185
10186 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10187
10188         * NEWS: Note new sh*-*-netbsdelf* configuration.
10189         * configure.host: Set gdb_host_cpu to sh for all sh*.
10190         (sh*-*-netbsdelf*): New host.
10191         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10192         (sh*-*-netbsdelf*): New target.
10193         * sh-nbsd-nat.c: New file.
10194         * sh-nbsd-tdep.c: New file.
10195         * sh-nbsd-tdep.h: New file.
10196         * config/sh/nbsd.mh: New file.
10197         * config/sh/nbsd.mt: New file.
10198         * config/sh/nm-nbsd.h: New file.
10199         * config/sh/tm-nbsd.h: New file.
10200
10201 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10202
10203         * sh-tdep.c (sh_osabi_names): Declare.
10204         (process_note_abi_tag_sections): New function.
10205         (get_elfosabi): Ditto.
10206         (sh_gdbarch_register_os_abi): Ditto.
10207         (sh_dump_tdep): Ditto.
10208         _initialize_sh_tdep): Use gdbarch_register to register
10209         sh_gdbarch_init and sh_dump_tdep.
10210         * config/sh/tm-sh.h (sh_osabi): Declare.
10211         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10212
10213 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10214
10215         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10216         (thumb_scan_prologue): Ditto.
10217         (arm_find_callers_reg): Ditto.
10218         (arm_frame_chain): Ditto.
10219         (arm_init_extra_frame_info): Ditto.
10220         (arm_frame_saved_pc): Ditto.
10221         (arm_pop_frame): Ditto.
10222         (arm_push_return_address): New function.
10223         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10224         call_dummy_location, call_dummy_breakpoint_offset_p,
10225         call_dummy_breakpoint_offset, call_dummy_p,
10226         call_dummy_stack_adjust_p, call_dummy_words,
10227         sizeof_call_dummy_words, call_dummy_start_offset,
10228         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10229         call_dummy_address, push_return_address and push_dummy_frame for
10230         generic dummy frames.
10231
10232 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10233
10234         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10235         size computation for alloca.
10236         (sh_fp_frame_init_saved_regs): Likewise.
10237
10238 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10239
10240         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10241         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10242         * arm-tdep.c (arm_store_return_value): Use them.
10243         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10244         * remote-rdp.c (remote_rdp_fetch_register): Use
10245         ARM_MAX_REGISTER_RAW_SIZE.
10246         (remote_rdp_store_register): Likewise.
10247
10248 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10249
10250         * dwarf2cfi.c: Code cleanup, removed unused variables,
10251         added default labels to switch {} statements.
10252         * x86-64-tdep.c: Ditto.
10253         * x86-64-linux-nat.c: Ditto.
10254
10255 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10256
10257         * solib.h: Protect against multiple inclusion.
10258
10259 2002-05-06  Jim Blandy  <jimb@redhat.com>
10260
10261         Add first preprocessor macro-expansion files.
10262         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10263         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10264         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10265         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10266         (COMMON_OBS): Add macrotab.o, macroexp.o.
10267         (macroexp.o, macrotab.o): New rules.
10268
10269         Separate the job of reading the line number info statement program
10270         header (...expialidocious) out into its own function.
10271         * dwarf2read.c (struct line_head, struct filenames, struct
10272         directories): Replace with...
10273         (struct line_header): New structure, containing the full
10274         contents of the statement program header, including the
10275         include directory and file name tables.
10276         (read_file_scope): If we have line number info, instead of just
10277         calling dwarf_decode_lines to do all the work, call
10278         dwarf_decode_line_header first to get a `struct line_header'
10279         containing the data in the statement program header, and then
10280         pass that to dwarf_decode_lines, which will pick up where that
10281         left off.  Be sure to clean up the `struct line_header' object.
10282         (dwarf_decode_line_header, free_line_header, add_include_dir,
10283         add_file_name): New functions.
10284         (dwarf_decode_lines): Move all the code to read the statement
10285         program header into dwarf_decode_line_header.  Take the line
10286         header it built as the first argument, instead of the offset to
10287         the compilation unit's line number info.  Use the new `struct
10288         line_header' type instead of the old structures.  No need to do
10289         cleanups here now, since we don't allocate anything.
10290         (dwarf2_statement_list_fits_in_line_number_section,
10291         dwarf2_line_header_too_long): New complaints.
10292
10293 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10294
10295         * gdbtypes.c (init_vector_type): New function.
10296         (build_builtin_type_vec128): Simplify the representation of SIMD
10297         registers.
10298         (build_gdbtypes): Initialize new builtin vector types.
10299         (_initialize_gdbtypes): Register new vector types with gdbarch.
10300         (builtin_type_v4_float, builtin_type_v4_int32,
10301         builtin_type_v8_int16, builtin_type_v16_int8,
10302         builtin_type_v2_int32, builtin_type_v4_int16,
10303         builtin_type_v8_int8): New (renamed) SIMD types.
10304
10305 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10306
10307         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10308         (i387_fill_fxsave): Likewise.
10309
10310 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10311
10312         * alpha-tdep.c (alpha_extract_return_value): Don't use
10313         non-constant array size in prototype.
10314
10315 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10316
10317         From Brian Taylor <briant at model dot com>:
10318         * ui-out.c (ui_out_field_core_addr): Use the function
10319         longest_local_hex_string_custom'to format addresses > 32 bits
10320         wide.
10321
10322         * ui-out.c (ui_out_field_core_addr): Update comment.
10323
10324 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10325
10326         * stack.c (select_and_print_frame): Make static.  Delete the
10327         parameter `level'.
10328         (func_command): Update call.
10329         (select_frame_command): Delete code computing the frame level.
10330         * frame.h (select_and_print_frame): Delete declaration.
10331
10332 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10333
10334         * sparc-tdep.c (sparc_get_saved_register): Comment why
10335         get_prev_frame call is safe.
10336
10337 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10338
10339         * frame.h (select_frame): Delete level parameter.
10340         * stack.c (select_frame): Update.  Use frame_relative_level to
10341         obtain the frame's level.
10342         (select_and_print_frame): Update call.
10343         (select_frame_command): Ditto.
10344         (up_silently_base): Ditto.
10345         (down_silently_base): Ditto.
10346         * ocd.c (ocd_start_remote): Ditto.
10347         * remote-rdp.c (remote_rdp_open): Ditto.
10348         * remote-mips.c (mips_initialize): Ditto.
10349         (common_open): Ditto.
10350         * remote-e7000.c (e7000_start_remote): Ditto.
10351         * m3-nat.c (select_thread): Ditto.
10352         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10353         (child_get_current_exception_event): Ditto.
10354         * varobj.c (varobj_create): Ditto.
10355         (varobj_update): Ditto.
10356         (c_value_of_root): Ditto.
10357         * tracepoint.c (finish_tfind_command): Ditto.
10358         * corelow.c (core_open): Ditto.
10359         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10360         * thread.c (info_threads_command): Ditto.
10361         (switch_to_thread): Ditto.
10362         * infrun.c (normal_stop): Ditto.
10363         (restore_selected_frame): Ditto.
10364         (restore_inferior_status): Ditto.
10365         * breakpoint.c (insert_breakpoints): Ditto.
10366         (watchpoint_check): Ditto.
10367         (bpstat_stop_status): Ditto.
10368         (do_enable_breakpoint): Ditto.
10369         * blockframe.c (flush_cached_frames): Ditto.
10370         (reinit_frame_cache): Ditto.
10371
10372 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10373
10374         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10375         maintainer.
10376
10377 2002-05-04  Jim Blandy  <jimb@redhat.com>
10378
10379         * gdbtypes.c (replace_type): Doc fix.
10380
10381 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10382
10383         * valprint.c (strcat_longest): Delete commented out function.
10384         Update copyright.
10385
10386 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10387
10388         * MAINTAINERS: Mark a29k as deleted.
10389         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10390         Move new configurations to the top.
10391         * configure.tgt: Remove a29k.
10392         * config/a29k/tm-vx29k.h: Delete.
10393         * config/a29k/vx29k.mt: Delete.
10394         * config/a29k/tm-a29k.h: Delete.
10395         * config/a29k/a29k-udi.mt: Delete.
10396         * config/a29k/a29k.mt: Delete.
10397         * a29k-tdep.c: Delete.
10398         * remote-udi.c: Delete.
10399         * remote-mm.c: Delete.
10400         * remote-eb.c: Delete.
10401         * remote-adapt.c: Delete.
10402         * Makefile.in: Remove obsolete code.
10403         * config/s390/s390x.mt: Ditto.
10404         * config/s390/s390.mt: Ditto.
10405         * config/sparc/sparclynx.mh: Ditto.
10406         * config/sparc/linux.mh: Ditto.
10407         * config/pa/hppaosf.mh: Ditto.
10408         * config/pa/hppabsd.mh: Ditto.
10409         * config/ns32k/nbsd.mt: Ditto.
10410         * config/mips/vr5000.mt: Ditto.
10411         * config/m68k/sun3os4.mh: Ditto.
10412         * config/m68k/nbsd.mt: Ditto.
10413         * config/m68k/m68klynx.mh: Ditto.
10414         * config/m32r/m32r.mt: Ditto.
10415         * config/i386/x86-64linux.mt: Ditto.
10416         * config/i386/nbsdelf.mt: Ditto.
10417         * config/i386/nbsd.mt: Ditto.
10418         * config/i386/i386lynx.mh: Ditto.
10419
10420 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10421
10422         * target.c (debug_print_register): New function.  Handle oversize
10423         registers.
10424         (debug_to_fetch_registers): Call.
10425         (debug_to_store_registers): Call.
10426
10427 2002-05-03  Jim Blandy  <jimb@redhat.com>
10428
10429         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10430         (read_type): Doc fix.
10431         * gdbtypes.c (replace_type): Doc fix.
10432
10433         * stabsread.c (multiply_defined_struct): New complaint.
10434         (read_struct_type): If the type we were passed isn't empty, or
10435         incomplete, don't read the new struct type into it; complain,
10436         and return the original type unchanged.  Take a new `type_code'
10437         argument, which is the type code for the new type.
10438         (read_type): Rather than storing the type's type code here, pass
10439         it as an argument to read_struct_type, and let that take care of
10440         storing it.  That way, we don't overwrite the original type code,
10441         so read_struct_type can use it to decide whether we're overwriting
10442         something we shouldn't.
10443         (complain_about_struct_wipeout): New function.
10444
10445 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10446
10447         * gdbarch.sh: Assert that gdbarch is non-NULL.
10448         * gdbarch.c: Regenerate.
10449
10450 2002-05-03  Jason Merrill  <jason@redhat.com>
10451
10452         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10453         and return NULL.
10454
10455 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10456
10457         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10458         (x86_64_dwarf2gdb_regno_map_length),
10459         (x86_64_dwarf2_reg_to_regnum): Added.
10460         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10461         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10462         (_initialize_x86_64_tdep): Synced with the change above.
10463         (x86_64_skip_prologue): Reformulated message.
10464
10465 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10466
10467         * f-exp.y: Also use new prev_lexptr variable
10468         to improve error reporting. Based on Michael Snyder
10469         2002-04-24 dated patch to c-exp.y.
10470         * jv-exp.y: Likewise.
10471         * m2-exp.y: Likewise.
10472
10473 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10474
10475         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10476         we are dealing with vectors.
10477
10478 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10479
10480         * config/m68k/tm-nbsd.h: Obvious fix,
10481         correct machine name.
10482
10483 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10484
10485         * p-typeprint.c (pascal_type_print_base): Add support
10486         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10487
10488 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10489
10490         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10491         for fondamental pascal 'char' type.
10492
10493 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10494
10495         * p-lang.h (is_pascal_string_type): Declaration changed,
10496         new sixth argument of type char ** added.
10497         * p-lang.c (is_pascal_string_type): Implementation
10498         changed. Args length_pos, length_size, string_pos, char_size
10499         can now be NULL. New argument arrayname set to the field
10500         name of the char array. Return value set to char array
10501         field index plus one.
10502         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10503         is_pascal_string_type function.
10504
10505 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10506
10507         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10508         <cagney@redhat.com> change.
10509         * gdbarch.c: Regenerate.
10510
10511 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10512
10513         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10514         before probing for a new one.  Detect errorenous gdbarch_init
10515         functions.
10516         * gdbarch.c: Regenerate.
10517
10518 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10519
10520         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10521         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10522         * config/v850/tm-v850.h: Ditto.  Update copyright.
10523
10524 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10525
10526         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10527         current_gdbarch.
10528
10529 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10530
10531         * arm-tdep.c: Whitespace clean-ups.
10532         (arm_skip_prologue): Fix thinko; two lines
10533         should have been removed as part of 4/24 change.
10534
10535 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10536
10537         * rs6000-tdep.c: Added comment describing how fpscr register
10538         numbers were chosen.
10539
10540 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10541
10542         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10543
10544 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10545
10546         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10547         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10548         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10549
10550 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10551
10552         From Louis Hamilton <hamilton@redhat.com>:
10553         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10554         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10555         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10556         not bfd-private xcoff data, to determine wordsize.
10557         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10558
10559 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10560
10561         GDB 5.2 released from 5.2 branch.
10562
10563 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10564
10565         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10566         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10567         (x86_64_register_info_table): Added comments with register numbers.
10568
10569 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10570
10571         * rs6000-tdep.c (rs6000_extract_return_value,
10572         rs6000_store_return_value): Handle returning vectors.
10573         (rs6000_gdbarch_init): Use
10574         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10575         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10576         New function.
10577         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10578         vectors.
10579         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10580         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10581
10582 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10583
10584         * hpread.c (hpread_psymtab_to_symtab_1,
10585         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10586         with fprintf_unfiltered (gdb_stderr,...).
10587
10588 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10589
10590         * remote-array.c (printf_monitor, write_monitor,
10591         array_insert_breakpoint, array_remove_breakpoint ):
10592         Replace fprintf (stderr,...
10593         with fprintf_unfiltered (gdb_stderr,....
10594         * remote-es.c: Likewise.
10595         * remote-os9k.c: Likewise.
10596         * remote-st.c: Likewise.
10597
10598 2002-04-28  Andreas Schwab  <schwab@suse.de>
10599
10600         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10601         linux-proc.o and gcore.o.
10602
10603 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10604
10605         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10606         code without frame pointers.
10607
10608 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10609
10610         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10611         ON_STACK is needed.
10612
10613 2002-04-26  Ben Elliston  <bje@redhat.com>
10614
10615         * target.c (do_xfer_memory): Correct reference to the new option
10616         "trust-readonly-sections".
10617
10618 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10619
10620         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10621         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10622         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10623         vectors.
10624         (read_array_type): Record the fact that this array type is really a
10625         vector (i.e. are passed in by value).
10626
10627 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10628
10629         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10630         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10631         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10632         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10633         * alpha-linux-tdep.c: Include frame.h.
10634         (alpha_linux_sigcontext_addr): New function.
10635         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10636         alpha_linux_sigcontext_addr.
10637         * alpha-osf1-tdep.c: Include gdbcore.h.
10638         (alpha_osf1_sigcontext_addr): New function.
10639         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10640         alpha_osf1_sigcontext_addr.
10641         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10642         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10643
10644 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10645
10646         * stack.c (selected_frame_level):
10647         (select_frame): Do not set selected_frame_level.
10648         * frame.h (selected_frame_level): Delete declaration.
10649
10650 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10651
10652         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10653         convert_from_func_ptr-addr when AIX / PowerOpen.
10654
10655 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10656
10657         * valops.c (hand_function_call): Call
10658         generic_save_call_dummy_addr.
10659         * frame.h (generic_save_call_dummy_addr): Declare.
10660         * blockframe.c (struct dummy_frame): Add fields call_lo and
10661         call_hi.
10662         (generic_find_dummy_frame): Check for PC in range call_lo to
10663         call_hi instead of entry_point_address.
10664         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10665         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10666         (generic_save_call_dummy_addr): New function.
10667
10668 2002-04-24  David S. Miller  <davem@redhat.com>
10669
10670         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10671         sparc_skip_prologue.
10672         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10673         information to find prologue when possible.
10674         (sparc_prologue_frameless_p): Call examine_prologue directly.
10675         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10676         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10677         second argument.
10678         (SKIP_PROLOGUE): Likewise.
10679
10680 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10681
10682         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10683         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10684         indicate that the condition it was testing is always true.
10685         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10686         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10687         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10688
10689 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10690
10691         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10692         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10693         tdep->jb_pc and tdep->jb_elt_size.
10694         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10695         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10696         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10697         * alpha-nat.c (get_longjmp_target): Remove.
10698         (JB_ELEMENT_SIZE): Ditto.
10699         (JB_PC): Ditto.
10700         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10701         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10702         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10703         to alpha_get_longjmp_target.
10704         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10705         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10706         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10707
10708 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10709
10710         * README: Update to GDB 5.2.
10711
10712 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10713
10714         * gdbarch.sh (LC_ALL): Set to `c'.
10715
10716 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10717
10718         * avr-tdep.c: Ran through gdb_indent.sh.
10719
10720 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10721
10722         * MAINTAINERS: Add myself as AVR maintainer.
10723         * NEWS: Note new target avr.
10724
10725 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10726
10727         * Makefile.in: Add support for AVR target.
10728         * configure.tgt: Add support for AVR target.
10729         * avr-tdep.c: New file
10730         * config/avr/avr.mt: New file.
10731
10732 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10733
10734         * MAINTAINERS: Add myself to write-after-approval.
10735
10736 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10737
10738         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10739         with fprintf_unfiltered (gdb_stderr,....
10740
10741 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10742
10743         Fix PR gdb/508.
10744         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10745
10746 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10747
10748         * p-exp.y: Also use new prev_lexptr variable
10749         to improve error reporting. Based on Michael Snyder
10750         2002-04-24 dated patch to c-exp.y.
10751
10752 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10753
10754         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10755         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10756         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10757         to 0.
10758         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10759         and struct value.
10760         (FUNCTION_START_OFFSET): Remove.
10761         (BREAKPOINT): Ditto.
10762
10763 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10764
10765         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10766         * NEWS: Ditto.
10767
10768 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10769
10770         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10771         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10772         alpha_linux_pc_in_sigtramp.
10773         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10774         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10775         alpha_osf1_pc_in_sigtramp.
10776         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10777         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10778         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10779         alphafbsd_pc_in_sigtramp.
10780         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10781         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10782         alphanbsd_pc_in_sigtramp.
10783         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10784         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10785
10786 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10787
10788         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10789
10790 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10791
10792         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10793         alphanbsd-tdep.c.
10794         (alphanbsd-nat.o): New dependency list.
10795         (alphanbsd-tdep.o): Ditto.
10796         * NEWS: Note new native NetBSD/alpha configuration.
10797         * alphanbsd-nat.c: New file.
10798         * alphanbsd-tdep.c: Ditto.
10799         * configure.host (alpha*-*-netbsd*): New host.
10800         * configure.tgt (alpha*-*-netbsd*): New target.
10801         * config/alpha/nbsd.mh: New file.
10802         * config/alpha/nbsd.mt: Ditto.
10803         * config/alpha/nm-nbsd.h: Ditto.
10804         * config/alpha/tm-nbsd.h: Ditto.
10805
10806 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10807
10808         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10809         (alpha-osf1-tdep.o): New dependency list.
10810         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10811         and skip_sigtramp_frame members.
10812         * alpha-linux-tdep.c: Include gdbcore.h.
10813         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10814         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10815         * alpha-osf1-tdep.c: New file.
10816         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10817         alpha-osf1-dep.c.
10818         (alpha_frame_past_sigtramp_frame): New function.
10819         (alpha_dynamic_sigtramp_offset): Ditto.
10820         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10821         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10822         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10823         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10824         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10825         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10826         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10827         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10828         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10829         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10830         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10831         to find_solib_trampoline_target.
10832         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10833         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10834         (SKIP_TRAMPOLINE_CODE): Remove.
10835         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10836         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10837         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10838         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10839         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10840         (PROC_SIGTRAMP_MAGIC): Ditto.
10841         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10842         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10843         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10844         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10845         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10846
10847 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10848
10849         * NEWS: Note that Alpha targets are now multi-arch.
10850
10851 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10852
10853         * parser-defs.h (prev_lexptr): New external variable.
10854         * parse.c (parse_exp_1): Set prev_lexptr to null before
10855         calling the language-specific parser.
10856         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10857         (yyerror): Use prev_lexptr in error reporting.
10858
10859 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10860
10861         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10862         * gregset.h: If FILL_FPXREGSET is defined, provide
10863         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10864         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10865         is defined, call fill_fpxregset.
10866
10867 2002-04-24  Roland McGrath  <roland@frob.com>
10868
10869         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10870         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10871         (supply_gregset, supply_fpregset): New functions.
10872
10873         * gnu-nat.c (gnu_find_memory_regions): New function.
10874         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10875         (gnu_xfer_memory): Add a cast.
10876
10877 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10878
10879         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10880         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10881         of argument regs ("str r(0123), [r11, #-nn"]).
10882         (arm_skip_prologue): Better handling for frameless functions.
10883         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10884         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10885
10886 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10887
10888         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10889         NUM_PSEUDO_REGS can be used.
10890
10891 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10892
10893         * arch-utils.h: Update copyright.
10894
10895         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10896         * gdbarch.h, gdbarch.c: Re-generate.
10897
10898         * inferior.h (IN_SIGTRAMP): Delete definition.
10899         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10900         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10901
10902         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10903         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10904         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10905         (find_proc_framesize): Ditto.
10906         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10907         (alpha_init_extra_frame_info): Ditto.
10908         * infrun.c (handle_inferior_event): Ditto.
10909         (handle_inferior_event): Ditto.
10910         (check_sigtramp2): Ditto.
10911         * blockframe.c (create_new_frame): Ditto.
10912         (get_prev_frame): Ditto.
10913         * ppc-linux-tdep.c: Update comments.
10914         * i386-linux-tdep.c: Update comments.
10915         * breakpoint.c (bpstat_what): Update comment.
10916
10917 2002-04-24  David S. Miller  <davem@redhat.com>
10918
10919         * i960-tdep.c (register_in_window_p): New function.
10920         (i960_find_saved_register): Use it instead of
10921         REGISTER_IN_WINDOW_P.
10922         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10923
10924         * symtab.h (find_stab_function_addr): Kill extern.
10925         * minsyms.c (find_stab_function_addr): Remove from here...
10926         * dbxread.c: ... to here, and mark it static.
10927
10928 2002-04-20  David S. Miller  <davem@redhat.com>
10929
10930         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10931         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10932
10933 2002-04-21  David S. Miller  <davem@redhat.com>
10934
10935         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10936         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10937         (vx_write_register): Likewise.
10938
10939 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10940
10941         * source.c (is_regular_file): New function.
10942         (openp): Check wether file to open is a regular file
10943         to avoid opening directories.
10944
10945 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10946
10947         * findvar.c (extract_signed_integer): Cast printf argument
10948         to suppress format warning.
10949         (extract_unsigned_integer): Likewise.
10950         * infcmd.c (registers_info): Likewise.
10951         * top.c (get_prompt_1): Likewise.
10952         * valops.c (value_assign): Likewise.
10953         * valprint.c (print_decimal): Likewise.
10954
10955 2002-04-22  H.J. Lu  (hjl@gnu.org)
10956
10957         * c-exp.y (typebase): Support
10958
10959         [long|long long|short] [signed|unsigned] [int|]
10960
10961         and
10962
10963         signed [long|long long|short] int
10964
10965 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10966
10967         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10968         and vax-tdep.h.
10969         * vax-tdep.h: New file.
10970         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10971         Make several routines static.
10972         (vax_get_saved_register): New function.
10973         (vax_gdbarch_init): New function.
10974         (_initialize_vax_tdep): Register vax_gdbarch_init.
10975         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10976         Remove macros now under the control of gdbarch.
10977
10978 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10979
10980         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10981         Some whitespace and coding standards tweaks.
10982
10983 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10984
10985         * vax-tdep.c: Include regcache.h.
10986         (vax_call_dummy_words): New.
10987         (sizeof_vax_call_dummy_words): New.
10988         (vax_fix_call_dummy): New function.
10989         (vax_saved_pc_after_call): Ditto.
10990         * config/vax/tm-vax.h: Don't include regcache.h.
10991         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10992         (CALL_DUMMY): Remove.
10993         (CALL_DUMMY_WORDS): Define.
10994         (SIZEOF_CALL_DUMMY_WORDS): Define.
10995         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10996
10997 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10998
10999         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11000
11001 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11002
11003         * vax-tdep.c (vax_frame_chain): New function.
11004         (vax_push_dummy_frame): Ditto.
11005         (vax_pop_frame): Ditto.
11006         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11007         (FRAMELESS_FUNCTION_INVOCATION): Use
11008         generic_frameless_function_invocation_not.
11009         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11010         (POP_FRAME): Use vax_pop_frame.
11011
11012 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11013
11014         * vax-tdep.c (vax_store_struct_return): New function.
11015         (vax_extract_return_value): Ditto.
11016         (vax_store_return_value): Ditto.
11017         (vax_extract_struct_value_address): Ditto.
11018         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11019         vax_store_struct_return.
11020         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11021         (STORE_RETURN_VALUE): Use vax_store_return_value.
11022         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11023
11024 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11025
11026         * vax-tdep.c (vax_frame_saved_pc): New function.
11027         (vax_frame_args_address_correct): Ditto.
11028         (vax_frame_args_address): Ditto.
11029         (vax_frame_locals_address): Ditto.
11030         (vax_frame_num_args): Move code to be in proximity to
11031         other frame-related functions.
11032         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11033         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11034         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11035         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11036         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11037
11038 2002-04-22  H.J. Lu  (hjl@gnu.org)
11039
11040         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11041         includedir.
11042
11043 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11044
11045         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11046         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11047         (FRAME_INIT_SAVED_REGS): New macro.
11048
11049 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11050
11051         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11052
11053 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11054
11055         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11056         where needed.
11057         (fetch_osf_core_registers): Likewise.
11058         (supply_gregset): Likewise.
11059
11060 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11061
11062         * symfile.h (get_section_index): Define.
11063         * symfile.c (get_section_index): New function.
11064         * mdebugread.c (SC_IS_SBSS): New macro.
11065         (SC_IS_BSS): Return true for the scBss storage class only, as
11066         the scSBss storage class refers to the .sbss section.
11067         (parse_partial_symbols): Discard the symbols which associated
11068         section does not exist.
11069         Make sure to use the .sbss section index for symbols which
11070         storage class is scBss, rather than using the .bss section index.
11071
11072 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11073
11074         * vax-tdep.c: Update copyright years.
11075         (vax_register_name): New function.
11076         (vax_register_byte): Ditto.
11077         (vax_register_raw_size): Ditto.
11078         (vax_register_virtual_size): Ditto.
11079         (vax_register_virtual_type): Ditto.
11080         * config/vax/tm-vax.h: Update copyright years.
11081         (REGISTER_NAMES): Remove.
11082         (REGISTER_NAME): Define.
11083         (REGISTER_BYTE): Use vax_register_byte.
11084         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11085         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11086         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11087
11088 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11089
11090         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11091         declaration
11092         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11093
11094 2002-04-21  David S. Miller  <davem@redhat.com>
11095
11096         * arch-utils.c (generic_prologue_frameless_p): Kill
11097         SKIP_PROLOGUE_FRAMELESS_P code.
11098         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11099         references.
11100         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11101         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11102         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11103         references.
11104         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11105         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11106         (sparc_gdbarch_init): Pass it to
11107         set_gdbarch_prologue_frameless_p.
11108
11109 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11110
11111         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11112         (alphabsd-nat.o): New dependency list.
11113
11114 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11115
11116         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11117         alphafbsd-tdep.c.
11118         (alpha-linux-tdep.o): New dependency list.
11119         (alphafbsd-tdep.o): Likewise.
11120
11121 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11122
11123         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11124         to here...
11125         * alpha-tdep.c: ...from here.
11126         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11127
11128 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11129
11130         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11131         prototype from here...
11132         * alpha-tdep.h: ...to here.
11133
11134 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11135
11136         * frame.h (selected_frame_level): Document as deprecated.
11137         (frame_relative_level): Declare.
11138         * stack.c (frame_relative_level): New function.
11139         (selected_frame_level): Document as deprecated.
11140         (select_frame): Do not set the selected_frame_level.
11141
11142         * stack.c (frame_info, record_selected_frame): Update.
11143         (frame_command, current_frame_command): Update.
11144         (up_silently_base, up_command, down_silently_base): Update.
11145         (down_command): Update.
11146         * inflow.c (kill_command): Update.
11147         * tracepoint.c (finish_tfind_command): Update.
11148         * corelow.c (core_open): Update.
11149         * thread.c (info_threads_command): Update.
11150         (do_captured_thread_select): Update.
11151         * infcmd.c (finish_command): Update.
11152         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11153
11154 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11155
11156         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11157
11158 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11159
11160         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11161         type const.
11162
11163 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11164
11165         * alphafbsd-tdep.c: Update copyright years.  Include
11166         alpha-tdep.h.
11167         (alphafbsd_use_struct_convention): Make static.
11168         (alphafbsd_init_abi): New function.
11169         (_initialize_alphafbsd_tdep): New function.
11170         * config/alpha/tm-fbsd.h: Update copyright years.
11171         (USE_STRUCT_CONVENTION): Remove.
11172
11173 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11174
11175         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11176         an Alpha ABI variant.
11177         (alpha_abi_handler_list): Declare.
11178         (alpha_gdbarch_register_os_abi): New function.
11179         (alpha_gdbarch_init): Give registered ABI variant handlers a
11180         chance to tweak the gdbarch once we have set up defaults.
11181         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11182
11183 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11184
11185         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11186         to standard_coerce_float_to_double.
11187         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11188
11189 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11190
11191         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11192         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11193         from gdbarch_tdep rather than a constant.
11194         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11195         the default text address for all Alpha Unix ABIs.
11196         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11197         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11198
11199 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11200
11201         * alpha-tdep.h: New file.  Includes several Alpha target constants
11202         taken from...
11203         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11204         let gdbarch deal with.
11205         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11206         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11207         to dependency list.
11208         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11209         Alpha target register names.
11210         * alphabsd-nat.c: Likewise.
11211         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11212         Alpha target register names.  Make serveral routines static.
11213         (alpha_get_saved_register): New function.
11214         (alpha_abi_names): New.
11215         (process_note_abi_tag_sections): New function.
11216         (get_elfosabi): New function.
11217         (alpha_gdbarch_init): New function.
11218         (alpha_dump_tdep): New function.
11219         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11220
11221 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11222
11223         * frame.c (find_saved_register): Delete #ifdef
11224         HAVE_REGISTER_WINDOWS code.
11225         * config/sparc/tm-sparc.h: Update comments.
11226         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11227
11228 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11229
11230         * i960-tdep.c (i960_find_saved_register): New function.
11231         (i960_get_saved_register): New function.
11232         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11233         (i960_get_saved_register): Declare.
11234         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11235
11236 2002-04-20  David S. Miller  <davem@redhat.com>
11237
11238         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11239
11240 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11241
11242         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11243         instead of NUM_PSEUDO_REGS.
11244
11245 2002-04-20  David S. Miller  <davem@redhat.com>
11246
11247         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11248         GDB_MULTI_ARCH_PARTIAL
11249         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11250         define, let tm-sp64.h do it.
11251
11252 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11253
11254         * frame.c (find_saved_register): Avoid a NULL pointer
11255         dereference and actually walk the frame list.
11256
11257 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11258
11259         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11260         sorted in most most-recent-used order.  Document.
11261         * gdbarch.h, gdbarch.c: Regenerate.
11262
11263 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11264
11265         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11266         instead of ->prev.
11267         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11268         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11269         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11270         instead of ->prev.
11271
11272 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11273
11274         Fix PR gdb/471.
11275         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11276         (build_builtin_type_vec128): Ditto.
11277         (append_composite_type_field): Fix calculation of type length in
11278         union case.
11279
11280 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11281
11282         * config/djgpp/README: Update.
11283
11284         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11285         compiler warnings.
11286
11287 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11288
11289         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11290         (alpha_setup_arbitrary_frame): ...to this.
11291         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11292         for alpha_setup_arbitrary_frame.
11293
11294 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11295
11296         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11297         * gdbarch.h, gdbarch.c: Regenerate.
11298
11299         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11300         * target.h (memory_breakpoint_from_pc): Update declaration.
11301         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11302
11303         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11304         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11305         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11306         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11307         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11308         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11309         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11310         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11311         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11312         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11313         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11314         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11315
11316         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11317         const pointer.
11318         * monitor.c (monitor_insert_breakpoint): Ditto.
11319         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11320
11321         * config/mcore/tm-mcore.h: Update copyright.
11322         * mem-break.c: Ditto.
11323         * xstormy16-tdep.c: Ditto.
11324
11325 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11326
11327         * p-exp.y: Add precedence rule for '^' token.
11328         This removes the shift/reduce conflicts.
11329         Remove the comment concerning these shift/reduce conflicts.
11330
11331 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11332
11333         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11334         (registers_powerpc_nofp): New register set for processors
11335         without floating point unit.
11336
11337 2002-04-18  David S. Miller  <davem@redhat.com>
11338
11339         * MAINTAINERS: Add myself to write-after-approval.
11340
11341 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11342
11343         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11344
11345 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11346
11347         * rs6000-tdep.c (frame_initial_stack_address): Use
11348         frame_register_read to read the alloca_reg.
11349
11350 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11351
11352         * frame.c (find_saved_register): Find saved registers in the next
11353         not prev frame.
11354         Fix PR gdb/365.
11355
11356 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11357
11358         * gdbarch.sh (LANG): Set to ``c''.
11359
11360 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11361
11362         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11363
11364 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11365
11366         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11367         Update copyright.
11368
11369         * hpread.c (hpread_get_lntt): Add declaration.
11370         Also fix PR gdb/391.
11371
11372 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11373
11374         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11375         * aclocal.m4, configure: Re-generate.
11376         Fix PR gdb/391.
11377
11378 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11379
11380         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11381         instead of tm_print_insn.
11382
11383 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11384
11385         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11386
11387 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11388
11389         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11390         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11391         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11392
11393 2002-04-12  Don Howard  <dhoward@redhat.com>
11394
11395         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11396         max_user_call_depth.
11397         (init_cmd_lists): Initialize the new value;
11398         * cli/cli-script.c (execute_user_command): Limit the call depth of
11399         user defined commands.  This avoids a core-dump when user commands
11400         are infinitly recursive.
11401
11402 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11403
11404         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11405         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11406         from tdep struct instead of DEFAULT_LR_SAVE.
11407         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11408         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11409         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11410
11411 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11412
11413         * Remote.c: Spelling fix.
11414         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11415         If no symbol found for "sbrk", try "_sbrk".
11416         (make_output_phdrs): Use bfd_section_name.
11417         (gcore_copy_callback): Use bfd_section_name.
11418         * eval.c: Indentation fix-ups.
11419         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11420         in case it gets applied to an address that is already
11421         in the instruction space.
11422         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11423         * symfile.c: Fix indentation, long lines.
11424         * source.c: White space fix-up.
11425
11426 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11427
11428         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11429         * frame.c (frame_register_read): New function.  Return non-zero on
11430         success.
11431         (read_relative_register_raw_bytes_for_frame): Delete.
11432         (read_relative_register_raw_bytes): Delete.
11433         * frame.h (frame_register_read): Declare.
11434         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11435         * sh-tdep.c: Ditto.
11436         * infcmd.c (do_registers_info): Ditto.
11437         * hppa-tdep.c: Ditto.
11438         * rs6000-tdep.c: Ditto.
11439         * h8500-tdep.c: Ditto.
11440         * mips-tdep.c: Ditto.
11441         * h8300-tdep.c: Ditto.
11442         * z8k-tdep.c: Ditto.
11443
11444 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11445
11446         From Jimi X <jimix@watson.ibm.com>:
11447         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11448         64-bit SysV ABI.
11449
11450 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11451
11452         From Jimi X <jimix@watson.ibm.com>:
11453         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11454         bfd info.
11455
11456 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11457
11458         From Jimi X <jimix@watson.ibm.com>:
11459         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11460         register sets for these processor variants.
11461
11462 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11463
11464         * regformats/reg-ppc.dat: Support FPSCR.
11465
11466 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11467
11468         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11469         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11470         Add fpscr as an invalid/unfetchable register.
11471         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11472         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11473         (fill_fpregset): Add support for register fpscr.
11474         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11475         (fill_gregset): Account for the fact that register ``mq'' might
11476         not exist.
11477         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11478         (registers_power): Add fpscr to register set at slot 71.
11479         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11480         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11481
11482 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11483
11484         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11485         * configure: Regenerate.
11486         * config.in: Regenerate.
11487         * acconfig.h: Add define for _SYSCALL32.
11488         * core-sol2.c: Remove #define _SYSCALL32.
11489         * solib-legacy.c: Remove #define _SYSCALL32.
11490
11491 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11492
11493         * stack.c (select_frame): Cleanup internal error message, do not
11494         use %p.
11495
11496 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11497
11498         * stack.c (select_frame): Check that selected_frame and the
11499         specified level are as expected.
11500         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11501         Update copyright.
11502         * frame.h (struct frame_info): Add field `level'.  Update
11503         copyright.
11504         Work-in-progress PR gdb/464.
11505
11506 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11507
11508         * maint.c (maint_print_section_info): Rename print_section_info.
11509         (print_bfd_section_info, print_objfile_section_info): Update.
11510         * inferior.h (struct gdbarch): Add opaque declaration.
11511         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11512         * gdbarch.h: Regenerate.
11513
11514 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11515
11516         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11517         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11518         (kernel_u_size): Added.
11519         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11520         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11521
11522 2002-04-04  Jim Ingham  <jingham@apple.com>
11523
11524        * valarith.c (find_size_for_pointer_math): New function, either returns
11525        the size for a pointer's target, returns 1 for void *, or errors for
11526        incomplete types.
11527        (value_add, value_sub): use find_size_for_pointer_math.
11528
11529 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11530
11531         * linux-low.c (linux_look_up_symbols): New hook.
11532         (linux_target_ops): Add linux_look_up_symbols.
11533         * remote-utils.c (decode_address): New function.
11534         (look_up_one_symbol): New function.
11535         * server.c (handle_query): Call target look_up_symbols hook.
11536         * server.h (look_up_one_symbol): Add prototype.
11537         * target.h (struct target_ops): Add look_up_symbols hook.
11538
11539 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11540
11541         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11542         override FP_REGNUM with frame->fp.  Update copyright.
11543         * parse.c (num_std_regs, std_regs): Delete.
11544         (target_map_name_to_register): Do not search std_regs.  Update
11545         function description.
11546         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11547         declarations.  Update copyright.
11548         Fix PR gdb/251.
11549
11550 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11551
11552         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11553         after the last symbol in a block.
11554
11555 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11556
11557         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11558         is non zero as a found symbol.
11559
11560 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11561
11562         * findvar.c: Include "builtin-regs.h".
11563         (value_of_register): Call value_of_builtin_reg when applicable.
11564         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11565         (target_map_name_to_register): Call
11566         builtin_reg_map_name_to_regnum.
11567         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11568         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11569         (builtin_regs_h): Define.
11570         (builtin-regs.o): New target.
11571         (findvar.o): Add $(builtin_regs_h).
11572         * builtin-regs.c, builtin-regs.h: New files.
11573         * std-regs.c: New file.
11574         Partial fix for PR gdb/251.
11575
11576 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11577
11578         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11579         it's no longer required.
11580
11581 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11582
11583         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11584
11585 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11586
11587         From Jimi X <jimix@watson.ibm.com>:
11588         * rs6000-tdep.c (rs6000_software_single_step): Use
11589         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11590         and size.  Use target_insert_breakpoint() and
11591         target_remove_breakpoint() to insert and remove breakpoints
11592         instead of explicit memory reads and writes.
11593
11594 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11595
11596         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11597         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11598         ELF_OBJECT_FORMAT ifdef.
11599
11600 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11601
11602         From Jimi X <jimix@watson.ibm.com>:
11603         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11604
11605 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11606
11607         From Jimi X <jimix@watson.ibm.com>:
11608         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11609         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11610
11611 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11612
11613         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11614         s/asprintf/xasprintf/.
11615         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11616
11617 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11618
11619         I believe Jeff Law denies responsability for this one:
11620         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11621         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11622         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11623         Work-around for PR gdb/366.
11624
11625 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11626
11627         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11628         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11629         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11630
11631 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11632
11633         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11634         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11635         information.
11636
11637 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11638
11639         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11640         maintainer.
11641
11642 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11643
11644         * README (Reporting Bugs in GDB): Document the bug web page as the
11645         prefered way of submitting bugs.
11646         Fix PR gdb/402.
11647
11648 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11649
11650         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11651         -1.  Update comment.
11652         * gdbarch.h, gdbarch.c: Re-generate.
11653
11654 2002-04-07  Andreas Schwab  <schwab@suse.de>
11655
11656         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11657         buffer to regcache_collect.
11658
11659 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11660
11661         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11662         * gdbarch.c, gdbarch.h: Re-generate.
11663
11664 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11665
11666         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11667         declaration.  Fix -Werror.
11668
11669 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11670
11671         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11672         * gdbarch.c: Regenerate.
11673
11674 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11675
11676         * breakpoint.c (clear_command): Rewrite middle section to
11677         combine two loops with identical control conditions.
11678         Add a cleanup to eliminate a memory leak.
11679         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11680
11681 2002-04-05  H.J. Lu  (hjl@gnu.org)
11682
11683         * solib-svr4.c (bkpt_names): Add "__start".
11684
11685 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11686
11687         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11688         as test for 64 bit target.
11689
11690 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11691
11692         * h8500-tdep.c (h8500_write_fp): Delete function.
11693         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11694         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11695         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11696         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11697         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11698         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11699         (s390_write_fp):
11700         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11701         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11702         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11703         (d10v_write_fp): Delete function.
11704         * inferior.h (write_fp, generic_target_write_fp): Delete
11705         declarations.
11706         * regcache.c (generic_target_write_fp): Delete function.
11707         (write_fp): Delete function.
11708         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11709         * gdbarch.h, gdbarch.c: Regenerate.
11710         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11711         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11712         (sparc64_write_fp): Delete declaration.
11713         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11714         (h8500_write_fp): Delete declaration.
11715
11716 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11717
11718         * sparc-tdep.c (sparc64_write_fp): Delete.
11719         (sparc_push_dummy_frame): Replace write_fp call with code to store
11720         the FP directly.
11721         (sparc_gdbarch_init): Do not initialize write_fp.
11722
11723 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11724
11725         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11726         clause.
11727
11728 2002-03-29  Jim Blandy  <jimb@redhat.com>
11729
11730         * stack.c (get_selected_block): Add new argument `addr_in_block',
11731         used to return the exact code address we used to select the block,
11732         not just the block.
11733         * blockframe.c (get_frame_block, get_current_block): Same.
11734         * frame.h (get_frame_block, get_current_block,
11735         get_selected_block): Update declarations.
11736         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11737         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11738
11739 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11740
11741         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11742         warning message.
11743
11744 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11745
11746         * utils.c (xfullpath): New function.
11747         * defs.h (xfullpath): Add declaration.
11748         * source.c (openp): Use xfullpath in place of gdb_realpath to
11749         avoid resolving the basename part of filenames when the
11750         associated file is a symbolic link. This fixes a potential
11751         inconsistency between the filenames known to GDB and the
11752         filenames it prints in the annotations.
11753         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11754         to be able to match a filename with either the real filename, or
11755         the name of any symbolic link to this file.
11756         (lookup_partial_symtab): Ditto.
11757
11758 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11759
11760         * breakpoint.c: Add support for hardware breakpoints in overlays.
11761         (overlay_events_enabled): New state variable.
11762         (insert_breakpoints): Use overlay_events_enabled to decide
11763         whether to attempt to set a breakpoint at the overlay load addr.
11764         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11765         (remove_breakpoint): Use overlay_events_enabled to decide
11766         whether breakpoints need to be removed from overlay load addr.
11767         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11768         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11769         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11770         disable_overlay_breakpoints): Update overlay_events_enabled.
11771
11772 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11773
11774         * dwarf2read.c (struct function_range): New.
11775         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11776         (check_cu_functions): New.
11777         (read_file_scope): Initialize global function lists.
11778         Call dwarf_decode_line after processing children.
11779         (read_func_scope): Add to global function list.
11780         (dwarf_decode_lines): Call check_cu_functions everywhere
11781         record_line is called.  Call record_line with a linenumber
11782         of 0 to mark sequence ends.
11783
11784 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11785
11786         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11787         change sync with glibc.
11788
11789 2002-04-03  Jim Blandy  <jimb@redhat.com>
11790
11791         * configure.in: Call AC_C_INLINE.
11792         * configure: Regenerated.
11793
11794 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11795
11796         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11797         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11798
11799 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11800
11801         * NEWS: Mention gcore support on FreeBSD/i386.
11802
11803         * fbsd-proc.c: New file.
11804         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11805         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11806
11807         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11808         while statement.
11809
11810 2002-03-29  Jim Blandy  <jimb@redhat.com>
11811
11812         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11813         unescaped newlines in string literals, but newer ones don't.  So
11814         escape them.
11815
11816 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11817             Andrew Cagney <cagney@redhat.com>
11818
11819         * cli/cli-dump.c: New file.  Dump memory to file,
11820         restore file to memory.
11821         * cli/cli-dump.h: New file.
11822         * Makefile.in: Add rules, dependencies for cli-dump.o.
11823         * NEWS: Mention new commands.
11824
11825 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11826
11827         * symfile.c (symbol_file_add): Move test for null symbols to later.
11828
11829 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11830
11831         From veksler at il.ibm.com:
11832         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11833         the xstrduped original path.
11834         Fix PR gdb/417.
11835
11836 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11837
11838         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11839         * infcmd.c (_initialize_infcmd): Ditto.
11840         * language.c (_initialize_language): Ditto.
11841         * symfile.c (_initialize_symfile): Ditto.
11842         * top.c (_init_main): Ditto.
11843         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11844
11845 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11846
11847         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11848         vector registers handling.
11849         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11850         fields of frame data.
11851         (frame_get_saved_regs): Fill in information for AltiVec registers.
11852
11853 2002-03-27  Jim Blandy  <jimb@redhat.com>
11854
11855         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11856         a function; leave this macro here to invoke that function.
11857         (symbol_init_mangled_name): Declaration for that function.
11858         * symtab.c (symbol_init_mangled_name): New function.
11859
11860 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11861
11862         * valarith.c: Replace strerror with safe_strerror.
11863         * tracepoint.c: Ditto.
11864         * lin-lwp.c: Ditto.
11865         * go32-nat.c: Ditto.
11866         * inflow.c: Ditto.
11867         * gnu-nat.c: Ditto.
11868
11869 2002-03-27  Andreas Schwab  <schwab@suse.de>
11870
11871         * event-top.c (command_line_handler): Remove useless if.
11872
11873 2002-03-27  Andreas Jaeger  <aj@suse.de>
11874
11875         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11876         comment.
11877
11878 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11879
11880         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11881         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11882         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11883         (x86_64_linux_dr_get_status, supply_gregset),
11884         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11885         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11886         (x86_64_register_info_table): Add.
11887         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11888         (x86_64_register_raw_size, x86_64_register_virtual_type),
11889         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11890         general x86_64_register_info_table.
11891         (i386_gdbarch_init): gdbarch_register_bytes is now set
11892         dynamicaly during initialization.
11893         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11894         * gdbserver/linux-x86-64-low.c: Ditto.
11895
11896 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11897
11898         * gdbserver/server.c (main): Call target_signal_to_host_p
11899         and target_signal_to_host on signals received from the remote.
11900         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11901         target_signal_from_host on signals sent to the remote.
11902         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11903         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11904
11905 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11906
11907         * signals/signals.c: Include "server.h" in gdbserver build.
11908         (target_signal_from_name): Don't use STREQ.
11909         (_initialize_signals): Likewise.  Don't include function in
11910         gdbserver build.
11911
11912 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11913
11914         * signals.c: Moved to...
11915         * signals/signals.c: Here.
11916         * Makefile (signals.o): Update.
11917
11918 2002-03-26  Jeff Law (law@redhat.com)
11919
11920         * somread.c (som_symtab_read): Remove some commented out code and
11921         updated related comments.  Do not set the minimal symbol table to
11922         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11923         in a dynamic executable.
11924         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11925         where we are unable to find the minimal symbol for the given
11926         PC value.
11927
11928 2002-03-25  Jeff Law (law@redhat.com)
11929
11930         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11931
11932 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11933
11934         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11935
11936 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11937
11938         * command.h: Update copyright.
11939         (struct cmd_list_element): Replace definition with opaque
11940         declaration.
11941         (enum cmd_types): Document that it will eventually be moved to
11942         cli/cli-decode.h
11943         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11944         (MALLOCED_REPLACEMENT): Delete macro.
11945         * Makefile.in (cli_decode_h): Add $(command_h).
11946         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11947         * top.c: Include "cli/cli-decode.h".
11948         * completer.c: Include "cli/cli-decode.h".
11949         * maint.c: Include "cli/cli-decode.h".
11950         * cli/cli-decode.h: Include "command.h".
11951         (enum command_class): Delete.
11952         (enum cmd_types): Comment out.
11953         (enum cmd_auto_boolean): Delete.
11954         (enum var_types): Delete.
11955
11956 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11957
11958         * cli/cli-decode.c: Include "gdb_assert.h".
11959         (add_set_or_show_cmd): New static function.
11960         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11961         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11962         all fields, such as func, from the set command.
11963
11964 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11965
11966         * MAINTAINERS (sh-elf): Change warning flag to -w.
11967
11968 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11969
11970         * defs.h (error): Add printf format attribute.
11971         * thread-db.c (thread_from_lwp): Fix error format string.
11972         * stack.c (parse_frame_specification): Ditto.
11973         * cli/cli-decode.c (undef_cmd_error): Ditto.
11974         * scm-lang.c (scm_lookup_name): Ditto.
11975         * tracepoint.c (trace_error): Ditto.
11976         * remote-utils.c (usage): Ditto.
11977         * remote.c (compare_sections_command): Ditto.
11978         Fix PR gdb/328.
11979
11980 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11981
11982         * gdbtypes.c (append_composite_type_field): New function.
11983         (init_composite_type): New function.
11984         * gdbtypes.h (append_composite_type_field): Declare.
11985         (init_composite_type): Ditto.
11986
11987 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11988
11989         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11990         function.
11991         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11992         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11993         structure returning convention for SYSV ABI case, but not
11994         for GNU/Linux, FreeBSD, or NetBSD.
11995
11996 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11997
11998         * symtab.h (lookup_block_symbol): Add mangled_name argument
11999         to prototype.
12000
12001         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12002         with new mangled_name argument.
12003         * linespec.c (decode_line_1): Likewise.
12004         * valops (value_of_this): Likewise.
12005         * symtab.c (lookup_transparent_type): Likewise.
12006         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12007         (lookup_symbol): If we are given a mangled name, pass it down
12008         to lookup_symbol_aux.
12009         (lookup_block_symbol): If we are given a mangled name to check
12010         against, only return symbols which match it.
12011
12012 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12013
12014         * win32-nat.c (child_create_inferior): Check for proper shell to use
12015         here, in case the user changes it on the fly.
12016         (_initialize_inftarg): Remove shell path considerations.
12017
12018 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12019
12020         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12021         for gdbarch_max_register_raw_size and max_register_virtual_size.
12022         Adjust copyright year.
12023
12024 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12025
12026          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12027          in a function to cover the entire beginning of the function
12028          as well if it does not already.
12029
12030 2002-03-21  Tom Rix  <trix@redhat.com>
12031
12032         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12033         (rs6000_ptrace64): Renamed from ptrace64.
12034
12035 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12036
12037         * gdbserver/remote-utils.c (remote_open): Don't call
12038         getprotobyname, we're all using TCP here so just use
12039         IPPROTO_TCP.
12040         * gdbserver/gdbreplay.c (remote_open): Ditto.
12041
12042 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12043
12044         * regcache.c (_initialize_regcache): No need to call
12045         build_regcache() at this time; it gets called whenever
12046         the gdbarch changes.
12047
12048 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12049
12050         * sparc-nat.c:  Include sys/param.h where possible.
12051
12052 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12053
12054         Fix PR gdb/422.
12055         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12056         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12057         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12058         complex types.
12059         * stabsread.c (rs6000_builtin_type): Likewise.
12060         (read_sun_floating_type): Likewise.
12061
12062 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12063
12064         * stabsread.c (read_member_functions): Remove skip code for duplicate
12065         constructor/destructor methods.  Use standard parsing for these
12066         methods and just do not chain them to the list of methods after
12067         parsing.
12068
12069 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12070
12071         * coffread.c: Remove redundant static declarations.  Replace
12072         occurrences of `PTR' with `void *'.
12073         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12074         * top.h (quit_cover): Likewise.
12075         * defs.h (catch_errors): Likewise.
12076
12077 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12078
12079         * defs.h (XMALLOC): Define.
12080         * gdb-events.sh (XMALLOC): Delete macro.
12081         * gdb-events.c, gdb-events.h: Regenerate.
12082         * gdbarch.sh (XMALLOC): Delete macro.
12083         * gdbarch.c: Regenerate.
12084         * serial.c (XMALLOC): Delete macro.
12085         * ui-file.c (XMALLOC): Ditto.
12086         * ser-unix.h (XMALLOC): Ditto.
12087         * sh-tdep.c (XMALLOC): Ditto.
12088         * ui-out.c (XMALLOC): Ditto.
12089         * utils.c (XMALLOC): Ditto.
12090         * i386-tdep.c (XMALLOC): Ditto.
12091         * gdb-events.c (XMALLOC): Ditto.
12092         * d10v-tdep.c (XMALLOC): Ditto.
12093         * cli-out.c (XMALLOC): Ditto.
12094
12095         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12096         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12097         * ui-file.c, ui-out.c: Ditto.
12098
12099 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12100
12101         * command.h (struct cmd_list_element): Add field context.
12102         (set_cmd_context, get_cmd_context): Declare.
12103         * cli/cli-decode.h: Ditto.
12104         * cli/cli-decode.c (get_cmd_context): New function.
12105         (set_cmd_context): New function.
12106         (add_cmd): Initialize context.
12107         Part of fixing PR gdb/145 and PR gdb/146.
12108
12109 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12110
12111         * cli/cli-decode.c (cmd_type): New function.
12112         * command.h (cmd_type): Declare.
12113         * infrun.c (set_schedlock_func): Call function cmd_type.
12114         * kod.c (kod_set_os): Call cmd_type.
12115         * cris-tdep.c (cris_version_update): Use function cmd_type.
12116         (cris_mode_update, cris_abi_update): Ditto.
12117
12118         * command.h: (execute_cmd_post_hook): Declare.
12119         (execute_cmd_pre_hook): Declare.
12120         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12121         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12122         functions. Execute pre/post hook while ensuring that afterwords
12123         hook_in is cleared.
12124         * top.c (execute_command): Use execute_cmd_post_hook, and
12125         execute_cmd_pre_hook to execute pre/post commands.
12126         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12127         hook_stop_stub.
12128         (hook_stop_stub): Call execute_cmd_pre_hook.
12129
12130 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12131
12132         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12133         set'' and this leads to a core dump.  Move xstrdup of
12134         operating_system to after check that it is not NULL.
12135
12136 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12137
12138         * kod.c (kod_set_os): Remove unnecessary check that
12139         ``command->type'' is set_cmd.
12140
12141         * valprint.c (set_input_radix): Use input_radix.
12142         (set_output_radix): Use output_radix.
12143         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12144         isn't reverted.
12145
12146 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12147
12148         * value.h (struct value): Delete field ``substring_addr''.  Change
12149         aligner fields to force_doublest_align, force_longest_align,
12150         force_core_addr_align and force_pointer_aligh.
12151
12152         * value.h (struct value): Fix typo in above change.
12153
12154 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12155
12156         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12157         to fix internal_error from ``maintenance print architecture''.
12158
12159 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12160
12161         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12162         for gcc versions after gcc-2.8.1.
12163
12164 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12165
12166         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12167         for method resolution.  Restore adjustment of ``this'' pointer after
12168         calling value_struct_elt, which was accidentally removed during the
12169         HP merge.
12170
12171 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12172
12173         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12174         value_of_register.
12175         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12176         get_saved_register.
12177         * value.h (value_of_register): Update.
12178
12179 2002-03-14  Richard Henderson  <rth@redhat.com>
12180
12181         * configure.in: Detect declaration for canonicalize_file_name.
12182         * utils.c (canonicalize_file_name): Declare, if needed.
12183         (gdb_realpath): Prefer realpath if available and usable.
12184         * config.in, configure: Rebuild.
12185
12186 2002-03-14  Richard Henderson  <rth@redhat.com>
12187
12188         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12189         a constant array bound.
12190
12191         * MAINTAINERS: Add myself to write-after-approval.
12192
12193 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12194
12195         * symfile.c (syms_from_objfile): Return immediately if no syms.
12196         (symbol_file_add): Return immediately if no syms.
12197         (find_sym_fns): Return immediately if no syms.
12198
12199 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12200
12201         * gdbserver/remote-util.c (remote_open): Print remote-side's
12202         IP address when remote debugging over the network.
12203
12204 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12205
12206         * config/sparc/fbsd.mh: Fix copyright.
12207         * config/sparc/fbsd.mt: Likewise.
12208
12209 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12210
12211         * MAINTAINERS: Fix typo in name of gdb warnings option.
12212         (x86-64): Fix formating so that this can be parsed by awk.
12213
12214 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12215
12216         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12217         * defs.h: Include "gdb/signals.h".
12218         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12219
12220 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12221
12222         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12223         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12224         from x86-64-tdep.h
12225
12226 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12227             Don Howard <dhoward@redhat.com>
12228
12229         * mips-tdep.c (ST0_FR): Define.
12230         (mips2_fp_compat): New function, temporarily disabled.
12231         (mips_read_fp_register_single): New function.
12232         (mips_read_fp_register_double): New function.
12233         (mips_print_register): Use them.
12234         (do_fp_register_row): Likewise.
12235
12236 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12237
12238         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12239         approval''.
12240
12241 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12242
12243         * stabsread.c (read_member_functions): Fix is_stub test for
12244         static member functions, improve comment.
12245
12246 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12247
12248         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12249         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12250         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12251         commands that set boolean values.
12252         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12253         (arm_rdi_resume): Always initialize PC.
12254         (arm_rdi_open): Don't use rslt as a boolean.
12255         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12256         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12257         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12258         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12259
12260 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12261
12262         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12263         * configure: Rebuilt.
12264
12265 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12266
12267         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12268         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12269
12270 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12271
12272         * cli/cli-decode.c (set_cmd_completer): New function.
12273         * command.h (set_cmd_completer): Declare.
12274         * cli/cli-decode.h (set_cmd_completer): Ditto.
12275
12276         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12277         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12278         * win32-nat.c (_initialize_inftarg): Ditto.
12279         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12280         * proc-api.c (_initialize_proc_api): Ditto.
12281         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12282         * source.c (_initialize_source): Ditto.
12283         * exec.c (_initialize_exec): Ditto.
12284         * solib.c (_initialize_solib): Ditto.
12285         * top.c (init_main): Ditto.
12286         * tracepoint.c (_initialize_tracepoint): Ditto.
12287         * symfile.c (_initialize_symfile): Ditto.
12288         * printcmd.c (_initialize_printcmd): Ditto.
12289         * infcmd.c (_initialize_infcmd): Ditto.
12290         * corefile.c (_initialize_core): Ditto.
12291
12292 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12293
12294         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12295
12296 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12297
12298         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12299
12300 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12301
12302         * NEWS: Update headings, 5.2 has branched.
12303
12304 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12305
12306         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12307         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12308         (register_addr, REGISTER_RAW_SIZE): Likewise.
12309         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12310         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12311
12312 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12313
12314         * MAINTAINERS (x86-64): Add myself.
12315         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12316         changed value_ptr -> struct value *
12317
12318 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12319
12320         * configure.host (sparc64-*-freebsd): Add.
12321         * configure.tgt: Likewise.
12322         * config/sparc/fbsd.mh: New file.
12323         * config/sparc/fbsd.mt: Likewise.
12324         * config/sparc/nm-fbsd.h: Likewise.
12325         * config/sparc/tm-fbsd.h: Likewise.
12326
12327 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12328
12329         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12330         regformats/reg-s390x.dat.
12331
12332 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12333
12334         * utils.c: Add FIXME explaining true/false problem.
12335
12336 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12337
12338         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12339
12340 2002-02-28  Michael Chastain  <mec@shout.net>
12341
12342         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12343
12344 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12345
12346         * gdbserver/linux-s390-low.c: New file.
12347         * regformats/reg-s390.dat: New file.
12348         * regformats/reg-s390x.dat: New file.
12349         * gdbserver/configure.srv: Add S/390.
12350         * gdbserver/Makefile.in: Add S/390.
12351         * configure.tgt: Enable gdbserver for S/390.
12352
12353 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12354
12355         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12356         first line of the doc string for "info dos", except at the end of
12357         the sentence, since the short help stops at the first period.
12358
12359 2002-02-28  Jason Merrill  <jason@redhat.com>
12360
12361         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12362
12363 2002-02-27  Fred Fish  <fnf@redhat.com>
12364
12365         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12366         comment (dumy -> dummy).
12367
12368 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12369
12370         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12371
12372 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12373
12374       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12375
12376 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12377
12378         * gdbserver/acconfig.h: New file.
12379         * gdbserver/i387-fp.c: New file.
12380         * gdbserver/i387-fp.h: New file.
12381         * gdbserver/linux-x86-64.c: New file.
12382         * regformats/reg-x86-64.dat: New file.
12383         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12384         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12385         * gdbserver/configure.in: Add support for regsets.
12386         * gdbserver/config.in: Regenerate.
12387         * gdbserver/configure: Regenerate.
12388         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12389         * gdbserver/linux-low.h: New file.
12390         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12391         for regsets.
12392         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12393         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12394         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12395         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12396         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12397         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12398         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12399         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12400         * gdbserver/regcache.c (supply_register): New function.
12401         (supply_register_by_name): New function.
12402         (collect_register): New function.
12403         (collect_register_by_name): New function.
12404
12405 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12406
12407         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12408         (config.status): Add configure.srv dependency.
12409         (server_h): Add config.h dependency.
12410
12411 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12412
12413         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12414         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12415         * gdbserver/configure.srv: Change i386-*-linux* to use
12416         reg-i386-linux.o.
12417
12418 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12419
12420         * x86-64-tdep.c: Re-indent.  Update copyright date.
12421
12422 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12423
12424         From Michal Ludvig <mludvig@suse.cz>:
12425         * x86-64-tdep.c (value.h): Delete.
12426         (gdb_assert.h): Include.
12427         (x86_64_register_convert_to_virtual,
12428         x86_64_register_convert_to_raw ): Add check which lets only
12429         floating-point values to be converted.
12430         (value_push): Delete.
12431         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12432         (i386_gdbarch_init): Number of register_bytes fixed.
12433
12434 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12435
12436         * MAINTAINERS: Add x86-64 target.
12437
12438 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12439
12440         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12441         * osfsolib.c (solib_map_sections): Ditto.
12442         * irix5-nat.c (solib_map_sections): Ditto.
12443         * corelow.c (gdb_check_format): Ditto.
12444         * symfile.c (symfile_bfd_open): Ditto.
12445         * solib.c (solib_map_sections): Ditto.
12446         Fix PR gdb/354.
12447
12448 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12449
12450         * remote.c (_initialize_remote): By default, disable ``e'' and
12451         ``E'' step out-of-range packets.
12452
12453 2002-02-26  Andreas Schwab  <schwab@suse.de>
12454
12455         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12456         m68k_linux_frame_saved_pc.
12457         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12458         in_sigtramp.
12459         (SIGCONTEXT_PC_OFFSET): Remove.
12460         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12461         m68k_linux_sigtramp_saved_pc): New functions.
12462         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12463         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12464         (UCONTEXT_PC_OFFSET): Define.
12465         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12466         non-RT and RT signal trampolines.
12467
12468 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12469
12470         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12471         (TARGET_NBPG, STACK_END_ADDR): Delete
12472         (VARIABLES_INSIDE_BLOCK): Delete.
12473
12474 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12475
12476         * utils.c (perror_with_name): Make string parameter constant.
12477         (print_sys_errmsg): Ditto.
12478         (query): Ditto.
12479         * defs.h (perror_with_name): Update.
12480         (print_sys_errmsg): Update.
12481         (query): Update.
12482
12483 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12484
12485         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12486         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12487
12488 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12489
12490         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12491         if it already matches the current architecture from the exec file.
12492         Include arch-utils.h for gdbarch_info_init prototype.
12493         * Makefile.in (rs6000-nat.o): Update dependencies.
12494
12495 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12496
12497         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12498          list of exported variables.
12499
12500 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12501
12502         * gdbserver/configure.srv: New file.
12503         * gdbserver/configure.in: Use configure.srv instead
12504         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12505         from it.
12506         * gdbserver/configure: Regenerated.
12507         * gdbserver/terminal.h: New file.
12508         * gdbserver/Makefile.in: Update for configure changes.  Remove
12509         more unneeded include paths.
12510
12511 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12512
12513         From wiz at danbala:
12514         * config/sparc/tm-sp64.h: Fix grammar and typos.
12515         Fix PR gdb/287.
12516
12517 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12518
12519         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12520         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12521         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12522         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12523         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12524         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12525         * s390-tdep.c: Ditto.
12526         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12527         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12528         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12529         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12530         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12531         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12532         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12533         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12534         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12535         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12536         Fix PR gdb/378.
12537
12538 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * lin-thread.c: Delete file.
12541         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12542         to gdb_proc_service.h.
12543         * configure: Re-generate.
12544
12545         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12546         * serial.c (serial_open): Delete check for "ocd".
12547         Fix PR gdb/349.
12548
12549         * Makefile.in (linux-thread.o): Delete target.
12550         * linux-thread.c: Delete file.
12551
12552         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12553         renamed SH files to be consistent.
12554
12555         * symtab.c (sort_search_symbols): Use xfree.
12556
12557 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12558
12559         * arm-linux-tdep.c (arm_linux_init_abi): Register
12560         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12561         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12562         definition with undef, since we don't want the sysvr4 definition.
12563         (SKIP_TRAMPOLINE_CODE): Likewise.
12564
12565 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12566
12567         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12568
12569         * configure.in: (AC_CHECK_FUNCS) Added test for
12570         canonicalize_file_name Regenerated.
12571         * config.in, configure: Regenerated.
12572         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12573         defined use canonicalize_file_name.
12574
12575 2002-02-23  Michael Chastain  <mec@shout.net>
12576
12577         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12578
12579 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12580
12581         * README: Remove references to cygnus.com.
12582         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12583         dot com'' form.  Remove references to cygnus.com and sourceware.
12584
12585 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12586
12587         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12588         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12589         1003.1-2001 no longer allows "head -1".
12590         * gdb/Makefile.in (version.c): Likewise.
12591         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12592         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12593         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12594
12595 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12596
12597         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12598         * command.h (cmd_cfunc_eq): Declare.
12599         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12600
12601         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12602         ``struct cmd_list_element *''.
12603         * cli/cli-cmds.c (is_complete_command): Update.  Use
12604         cmd_cfunc_eq.
12605         * top.c (execute_command): Pass the command to
12606         is_complete_command.
12607         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12608
12609 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12610
12611         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12612         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12613         architecture defines.
12614         * s390-tdep.c (s390_gdbarch_init): Likewise.
12615
12616 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12617
12618         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12619         (arm_linux_push_arguments): Likewise.
12620         (arm_linux_init_abi): Register them.  Also register linux-specific
12621         call_dummy_words.
12622         (find_minsym_and_objfile): Use strcmp, not STREQ.
12623         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12624         (arm_linux_call_dummy_words): Delete declaration.
12625         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12626         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12627         declarations.
12628         (LOWEST_PC): Delete.
12629
12630 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12631
12632         * maint.c (print_section_info): Do not prepend `0x' to filepos
12633         output, it will be handled by local_hex_string_custom.
12634
12635 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12636
12637         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12638         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12639         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12640
12641 2002-02-22  Jim Blandy  <jimb@redhat.com>
12642
12643         Indicate that the bcache functions don't change the strings
12644         they're passed.
12645         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12646         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12647
12648 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12649
12650         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12651
12652 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12653
12654         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12655         find the complete path to a loaded DLL.
12656
12657 2002-02-21  Fred Fish  <fnf@redhat.com>
12658
12659         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12660         that marks the end of the range of a function, enter a line number
12661         entry that has a line number of zero and a PC offset that matches
12662         the end of the function.  This starts a range of PC's for which no
12663         line number information is known.
12664         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12665         PC's for which no line number info is found (line number is zero)
12666         then we didn't find any valid line information.
12667         * symtab.h: Document use of zero line number entry.
12668
12669 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12670
12671         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12672         (have_ptrace_getvrregs): Define for run time checks.
12673         (gdb_vrregset_t): New type for Altivec register handling.
12674         (fetch_register, store_register): Fetch/store altivec register
12675         when needed.
12676         (fetch_altivec_register, store_altivec_register): New functions.
12677         (supply_vrregset, fill_vrregset): New functions.
12678         (fetch_altivec_registers, store_altivec_registers): New functions.
12679         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12680         registers as well.
12681
12682 2002-02-21  Jiri Smid  <smid@suse.cz>
12683
12684         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12685
12686 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12687
12688         * Makefile.in (armnbsd-nat.o): Update dependencies.
12689         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12690         supply the integer register set.
12691         (supply_fparegset): New function.  Similar for FPA registers.
12692         (fetch_regs, fetch_fp_regs): Use them.
12693         (fetch_core_registers): Likewise.
12694         (fetch_elfcore_registers): New function.
12695         (arm_netbsd_elfcore_fns): New core-file type specification.
12696         (_initialize_arm_netbsd_nat): Register it.
12697
12698 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12699
12700         * armnbsd-nat.c: Include gdbcore.h.
12701         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12702         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12703         'void' to declaration, to shut up ARI.
12704         (fetch_core_registers): Make static.  Rewrite using supply_register.
12705         (arm_netbsd_core_fns): New core-file type specification.
12706         (_initialize_arm_netbsd_nat): New function.
12707
12708 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12709
12710         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12711         value.
12712
12713 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12714
12715         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12716         fails.
12717
12718 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12719
12720         * jv-exp.y (parse_number): Change type of implicit longs
12721         to builtin_type_uint64.
12722
12723 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12724
12725         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12726         to be an integer instead of a `union wait'.
12727
12728 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12729
12730         * mips-linux-nat.c: Call the operating system GNU/Linux.
12731         * mips-linux-tdep.c: Likewise.
12732         * mips-tdep.c: Likewise.
12733
12734 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12735
12736         Fix PR gdb/265.
12737         * jv-exp.y (parse_number): Handle 64-bit integers.
12738
12739 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12740
12741         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12742         AC_STDC_HEADERS to AC_HEADER_STDC.
12743         * gdbserver/configure: Regenerated.
12744
12745 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12746
12747         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12748         is defined.
12749         * sparc-tdep.c (get_longjmp_target): Likewise.
12750
12751 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12752
12753         * News: Add news about ARM and Multi-arch.  Mention the new target
12754         arm*-*-netbsd*.
12755
12756 2002-02-19  Jim Blandy  <jimb@redhat.com>
12757
12758         * stabsread.c (error_type_complaint): Improve error message.
12759
12760 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12761
12762         * gdbserver/README: Update documentation.
12763         * gdbserver/configure.in: Update configury to match documentation.
12764         * gdbserver/Makefile.in: Likewise.
12765         * gdbserver/configure: Regenerated.
12766         * gdbserver/aclocal.m4: New file, generated by aclocal.
12767         * gdbserver/config.in: New file, generated by autoheader.
12768
12769 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12770
12771         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12772         armnbsd-nat.c.
12773
12774 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12775
12776         * arm-tdep.h (enum arm_float_model): New enum.
12777         (struct gdbarch_tdep): Add fp_model.
12778         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12779         up floating-point conversions until we know the floating-point model
12780         in use by the inferior.  Don't complain about being unable to
12781         determine the ABI of the inferior when we don't have one.
12782         (arm_extract_return_value): Support different floating-point models.
12783         (arm_store_return_value): Likewise.
12784         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12785         ARM_FLOAT_SOFT.
12786         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12787
12788 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12789
12790         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12791         of ``current_gdbarch''.
12792
12793 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12794
12795         * armnbsd-nat.c : ANSIfy all function declarations.
12796         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12797         (fetch_inferior_registers): Re-implement in terms of above.
12798         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12799         (store_inferior_registers): Re-implement in terms of above.
12800
12801 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12802
12803         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12804         kernel.
12805         * arm-linux-tdep.c: Likewise.
12806         * config/arm/tm-linux.h: Likewise.
12807
12808 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12809
12810         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12811         * config/arm/nbsd.mt (TM_FILE): Delete.
12812         * config/arm/tm-nbsd.h: Delete.
12813
12814 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12815
12816         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12817         Initialize CALL_DUMMY_LENGTH.
12818
12819 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12820
12821         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12822         function.
12823         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12824         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12825         defines one thing and that is incorrect for this port.
12826         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12827
12828 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12829
12830         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12831
12832 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12833
12834         * win32-nat.c (display_selector): New function. Displays information
12835         about the information returned by GetThreadSelectorEntry API function.
12836         (display_selectors): New function. Displays the infomation of
12837         the selector given as argument, or of CS, DS ans FS selectors
12838         if no argument is given.
12839         ( _initialize_inftarg): Add "w32" as info prefix command.
12840         Add "info w32 selector" as command calling display_selectors.
12841
12842 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12843
12844         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12845         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12846         if not defined.
12847
12848 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12849
12850         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12851
12852 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12853
12854         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12855         (arm_fix_call_dummy): Call it.
12856         (arm_call_dummy_breakpoint_offset): Delete.
12857         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12858         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12859
12860 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12861
12862         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12863         Default to func_frame_chain_valid.
12864         * gdbarch.h, gdbarch.c: Re-generate.
12865         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12866
12867 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12868
12869         * ppc-linux-nat.c: Update copyright.
12870         (fetch_register, store_register): Add tid parameter, don't compute
12871         tid here.
12872         (fetch_ppc_registers, store_ppc_registers): Add tid
12873         parameter. Pass it along to callees.
12874         (fetch_inferior_registers, store_inferior_registers): Compute tid
12875         here, and pass it to calleed functions.
12876         (fill_gregset, supply_fpregset): Clean up formatting.
12877
12878 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12879
12880         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12881         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12882
12883 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12884
12885         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12886         * gdbarch.c gdbarch.h: Regenerate.
12887         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12888         function.
12889         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12890         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12891         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12892
12893         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12894         * arm-tdep.c (arm_get_longjmp_target): New function.
12895         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12896         this to a positive value register arm_get_longjmp_target as the
12897         longjmp handler.
12898         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12899         (arm_linux_init_abi): Set up longjmp description in tdep.
12900         * armnbsd-nat.c (get_longjmp_target): Delete.
12901         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12902         description in tdep.
12903         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12904         (get_longjmp_target): Delete declaration.
12905         (GET_LONGJMP_TARGET): Delete.
12906         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12907         (GET_LONGJMP_TARGET): Delete.
12908
12909 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12910
12911         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12912         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12913         of ``current_gdbarch''.
12914
12915 2002-02-17  Tom Tromey  <tromey@redhat.com>
12916
12917         * cli/cli-cmds.c (compare_strings): New function.
12918         (complete_command): Only print each unique item once.
12919         * completer.h (complete_line): Declare.
12920         * completer.c (complete_line): New function.
12921         (line_completion_function): Use it.
12922
12923 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12924
12925         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12926         * gdbarch.h, gdbarch.c: Re-generate.
12927
12928 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12929
12930         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12931
12932 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12933
12934         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12935         * valops.c (value_arg_coerce): Don't take the address of a reference
12936         to convert an argument to a reference.
12937
12938 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12939
12940         * win32-nat.c (get_image_name): New function.
12941         (handle_load_dll): Use get_image_name function.
12942         (get_child_debug_event): Avoid registering debug events until possibly
12943         execed process is started.
12944         (child_create_inferior): Allow invocation via shell so that command
12945         line redirection, etc.  works ok.
12946         (_initialize_inftarg): Add new command: "set shell" to control whether
12947         a shell is used to start a process.
12948
12949 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12950
12951         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12952         instead of find_register_by_number.
12953         (cannot_store_register): Likewise.
12954
12955 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12956
12957         * dwarf2read.c: Replace fprintf (stderr, ...) by
12958         fprintf_unfiltered (gdb_stderr, ...).
12959
12960 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12961
12962         * gdbserver/gdbserver.1: Document --attach.
12963
12964 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12965
12966         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12967         descriptions.
12968         * arm-tdep.c (arm_default_arm_le_breakpoint)
12969         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12970         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12971         traditional breakpoint defines.
12972         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12973         (arm_gdbarch_init): Initialize new breakpoint variables.
12974         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12975         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12976         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12977         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12978         code out to ...
12979         (arm_netbsd_init_abi_common): ... here; new function.
12980         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12981         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12982         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12983         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12984
12985 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12986
12987         * arm-tdep.h (enum arm_abi): New enum.
12988         (struct gdbarch_tdep): New structure.
12989         (LOWEST_PC): Provide a default.
12990         (arm_gdbarch_register_os_abi): Declare new function.
12991         * arm-tdep.c (arm_abi_names): New array.
12992         (process_note_abi_tag_sections): New function.
12993         (get_elfosabi): New function.
12994         (arm_gdbarch_register_os_abi): New function.
12995         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12996         support for that ABI has been built in, then call the appropriate
12997         configuration routine.  Use gdbarch_num_regs() to get the number
12998         of registers.
12999         (arm_dump_tdep): New function.
13000         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13001         place-holder functions.
13002         (_initialize_arm_tdep): Register them.
13003         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13004
13005         * armnbsd-tdep.c: New file.
13006         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13007         * config/arm/nbsd.mt (TDEPFILES): Add it.
13008         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13009
13010         * armnbsd-nat.c: Include regcache.h.
13011         * Makefile.in (armnbsd-nat.o): Update dependency list.
13012
13013         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13014
13015 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13016
13017         * gdbserver/Makefile.in: Fix typos in target rules.
13018
13019 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13020
13021         Fix part of PR gdb/267.
13022         * linespec.c (find_methods): Handle constructors specially for now.
13023
13024 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13025
13026         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13027         handling.
13028         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13029         standard_coerce_float_to_double().
13030
13031 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13032
13033         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13034         GDBINIT_FILENAME.
13035
13036 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13037
13038         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13039         find_variant_by_name, because it confuses the multiarch
13040         framework. Return NULL if there isn't an architecture with the
13041         user supplied name, instead of forcing a different one without
13042         recording the change with the multiarch machinery.
13043         (find_variant_by_name): Delete.
13044
13045 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13046
13047         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13048         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13049
13050 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13051
13052         * stack.c (print_frame_info_base): When calling
13053         print_frame_info_listing_hook, set current_source_symtab.
13054
13055 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13056
13057         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13058         and remove unused $(INCLUDE_DIR).
13059         Add regcache.c to OBS.
13060         Add generated register protocol files to clean target.
13061         Update dependencies for new objects, obsolete old target code.
13062
13063         * gdbserver/linux-low.c: Remove all platform-specific code to
13064         new files.  Remove various dead code.  Update to use regcache
13065         functionality.
13066         * gdbserver/remote-utils.c (fromhex): Add return statement
13067         to quiet warning.
13068         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13069         constant.
13070         (input_interrupt): Add integer parameter to match prototype
13071         of a signal handler.
13072         (outreg): Use register_data ().
13073         (prepare_resume_reply): Use gdbserver_expedite_regs.
13074         * gdbserver/server.c (main): Dynamically allocate own_buf because
13075         PBUFSIZ is no longer constant.  Use registers_to_string () and
13076         registers_from_string ().
13077         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13078         for error (), fatal (), and warning ().  Update definition of
13079         PBUFSIZ to use regcache functionality.  Add include guard.
13080         * gdbserver/utils.c (fatal): Add missing ``const''.
13081         (warning): New function.
13082
13083         * regformats/regdat.sh: Include "regcache.h" in generated files.
13084         Provide init_registers () function.
13085         * regformats/regdef.h: Add prototype for set_register_cache ().
13086         Add include guard.
13087
13088         * gdbserver/linux-arm-low.c: New file.
13089         * gdbserver/linux-i386-low.c: New file.
13090         * gdbserver/linux-ia64-low.c: New file.
13091         * gdbserver/linux-m68k-low.c: New file.
13092         * gdbserver/linux-mips-low.c: New file.
13093         * gdbserver/linux-ppc-low.c: New file.
13094         * gdbserver/linux-sh-low.c: New file.
13095
13096         * gdbserver/regcache.c: New file.
13097         * gdbserver/regcache.h: New file.
13098
13099         * gdbserver/low-linux.c: Removed obsolete file.
13100
13101 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13102
13103         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13104         * config/i386/linux.mt: Likewise.
13105         * config/ia64/linux.mt: Likewise.
13106         * config/m68k/linux.mh: Likewise.
13107         * config/powerpc/linux.mh: Likewise.
13108         * config/mips/linux.mt: Likewise.
13109
13110         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13111
13112         * config/i386/i386lynx.mh: Mark gdbserver variables
13113         as (currently) obsolete for this target.
13114         * config/i386/nbsd.mt: Likewise.
13115         * config/i386/nbsdelf.mt: Likewise.
13116         * config/m32r/m32r.mt: Likewise.
13117         * config/m68k/m68klynx.mh: Likewise.
13118         * config/m68k/nbsd.mt: Likewise.
13119         * config/m68k/sun3os4.mh: Likewise.
13120         * config/mips/vr5000.mt: Likewise.
13121         * config/ns32k/nbsd.mt: Likewise.
13122         * config/pa/hppabsd.mh: Likewise.
13123         * config/pa/hppaosf.mh: Likewise.
13124         * config/powerpc/nbsd.mt: Likewise.
13125         * config/rs6000/rs6000lynx.mh: Likewise.
13126         * config/s390/s390.mt: Likewise.
13127         * config/s390/s390x.mt: Likewise.
13128         * config/sparc/sparclynx.mh: Likewise.
13129         * config/sparc/sun4os4.mh: Likewise.
13130         * config/i386/x86-64linux.mt: Likewise.
13131         * config/sparc/linux.mh: Likewise.
13132
13133 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13134
13135         * configure.tgt: Configure gdbserver only for known working
13136         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13137         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13138         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13139         * configure: Regenerated.
13140
13141 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13142
13143         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13144
13145         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13146         (default_gcore_mach): Just return 0, work around a problem in bfd.
13147         (default_gcore_target): OK to return NULL if exec_bfd is null.
13148         (make_mem_sec): Use a cast, avoid a warning.
13149
13150         * procfs.c (find_memory_regions_callback): Use a cast instead of
13151         calling host_pointer_to_address (which complains if
13152         sizeof (host pointer) != sizeof (target pointer)).
13153         (procfs_make_note_section): Avoid overflow in psargs string.
13154
13155         * procfs.c (procfs_make_note_section): Make the default
13156         implementation return an error.
13157
13158 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13159
13160         * procfs.c (procfs_make_note_section): Provide a default definition
13161         (for alpha-dec-osf4.0f). Fix typos.
13162
13163 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13164
13165         * linux-proc.c: Add include of regcache.h.
13166         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13167
13168 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13169
13170         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13171         * memattr.c (create_mem_region): Disallow useless empty region.
13172         Regions are half-open intervals, so allow [A..B) [B..C) as
13173         non-overlapping.
13174
13175 2002-02-13  Michael Chastain <mec@shout.net>
13176
13177         * defs.h: Kill CONST_PTR.
13178         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13179         * c-lang.c (c_builtin_types): Likewise.
13180         * ch-lang.c (ch_builtin_types): Likewise.
13181         * f-lang.c (f_builtin_types): Likewise.
13182         * language.c (unknown_builtin_types): Likewise.
13183         * m2-lang.c (m2_builtin_types): Likewise.
13184         * p-lang.c (pascal_builtin_types): Likewise.
13185         * scm-lang.c (c_builtin_types): Likewise.
13186
13187 2002-02-13  Keith Seitz  <keiths@redhat.com>
13188
13189         * arm-tdep.h (arm_get_next_pc): Add declaration.
13190
13191 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13192
13193         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13194         with other related struct-returning functions.
13195         (arm_extract_struct_value_address): New function.
13196         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13197         initialize float_format, double_format and long_double_format as
13198         appropriate to the endianness of the target.
13199         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13200         (arm_use_struct_convention): Delete declaration.
13201         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13202
13203 2002-02-13  Keith Seitz  <keiths@redhat.com>
13204
13205         * defs.h (core_addr_to_string_nz): New function.
13206
13207 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13208
13209         Apply missing bits of 2002-01-15 patch.
13210         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13211         (fill_fpregset): Use i387_fill_fsave.
13212
13213 2002-02-12  Keith Seitz  <keiths@redhat.com>
13214
13215         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13216         (core_addr_to_string_nz): New function.
13217
13218 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13219
13220         * arm-linux-nat.c: Really include arm-tdep.h.
13221         * config/arm/tm-linux.h (struct type, struct value): Declare.
13222
13223 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13224
13225         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13226         (gcore section): Ifdef for Solaris and Unixware only.
13227         (procfs_do_thread_registers): Unixware needs one lwpstatus
13228         per thread (not one prstatus or pstatus).
13229         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13230         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13231         once before iterating over threads.
13232
13233 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13234
13235         * arm-tdep.h: New file.
13236         * arm-tdep.c: Include arm-tdep.h.
13237         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13238         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13239         (arm_print_float_info, arm_register_type, convert_to_extended)
13240         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13241         (arm_extract_return_value, arm_register_name): Make static.
13242         (arm_software_single_step): Similarly.  Fix types in declaration.
13243         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13244         (arm_store_return_value, arm_store_struct_return): New functions.
13245         (arm_gdbarch_init): Register the above functions.  Also register
13246         call_dummy_start_offset, sizeof_call_dummy_words,
13247         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13248         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13249         max_register_virtual_size, register_size.  Set up
13250         prologue_cache.saved_regs here, rather than ...
13251         (_initialize_arm_tdep): ... here.
13252         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13253         declarations.
13254         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13255         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13256         (arm_print_float_info, arm_register_type, convert_to_extended)
13257         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13258         (arm_extract_return_value, arm_register_name): Delete declarations.
13259         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13260         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13261         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13262         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13263         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13264         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13265         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13266         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13267         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13268         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13269         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13270         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13271         interface.
13272         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13273         * remote-rdi.c remote-rdp.c: Likewise.
13274         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13275         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13276         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13277         definition.
13278
13279         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13280         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13281         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13282         from non-ARM_ prefixed definitions.
13283         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13284         all uses of above.
13285         * remote-rdi.c remote-rdp.c: Likewise.
13286         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13287
13288 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13289
13290         * arm-tdep.c (arm_frameless_function_invocation)
13291         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13292         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13293         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13294         (arm_pop_frame, arm_get_next_pc): Make static.
13295         (arm_gdbarch_init): Register above in gdbarch structure.
13296         (arm_read_fp): Renamed from arm_target_read_fp.
13297         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13298         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13299         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13300         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13301         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13302         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13303         (arm_pc_is_thumb_dummy): Delete declarations.
13304         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13305         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13306         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13307         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13308
13309 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13310
13311         * symtab.c (compare_search_syms): New function.
13312         (sort_search_symbols): New function.
13313         (search_symbols): Sort symbols after searching rather than
13314         before.
13315
13316 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13317
13318         * NEWS: Linux -> GNU/Linux.
13319
13320 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13321
13322         * gdbarch.sh: For for level one methods, disallow a definition
13323         when partially multi-arched.  Add comments explaining rationale.
13324         * gdbarch.h: Re-generate.
13325
13326 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13327
13328         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13329         multi-arch partial.
13330
13331 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13332
13333         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13334         field.  Use diff -u.
13335         * gdbarch.c: Re-generate.
13336
13337 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13338
13339         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13340         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13341         partial.
13342
13343 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13344
13345         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13346         multi-arch partial.
13347         (PUSH_ARGUMENTS): Switch to using predefault.
13348         * gdbarch.c: Regenerate.
13349
13350 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13351
13352         * valops.c (PUSH_ARGUMENTS): Delete definition.
13353         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13354         partial.  Default to default_push_arguments.
13355         * gdbarch.h, gdbarch.c: Regenerate.
13356
13357 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13358
13359         * defs.h (throw_exception): Rename return_to_top_level.  Update
13360         comments.
13361         * utils.c (error_stream, internal_verror, quit): Ditto.
13362         * top.c (throw_exception, catcher): Ditto.
13363         * sparclet-rom.c (sparclet_load): Ditto.
13364         * remote.c (interrupt_query, minitelnet): Ditto.
13365         * remote-sds.c (interrupt_query): Ditto.
13366         * remote-mips.c (mips_error, mips_kill): Ditto.
13367         * ocd.c (interrupt_query): Ditto.
13368         * monitor.c (monitor_interrupt_query): Ditto.
13369         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13370         * target.h: Update comment.
13371
13372         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13373
13374 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13375
13376         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13377         default_double_format.
13378         * gdbarch.h, gdbarch.c: Re-generate.
13379         * findvar.c (floatformat_unknown): Delete variable definition.
13380         * doublest.h (floatformat_unknown): Delete variable declaration.
13381
13382 2002-02-09  Jim Blandy  <jimb@redhat.com>
13383
13384         * stabsread.c (read_type): Add code to parse Sun's syntax for
13385         prototyped function types.
13386
13387 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13388
13389         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13390         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13391
13392 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13393
13394         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13395         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13396         now _initialize_xcoffsolib gets called again and overrides the
13397         commands from solib.c in a native configuration.
13398
13399 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13400
13401         * doublest.c (store_typed_floating): Don't try to return a value.
13402         Fixes PR gdb/290.
13403
13404 2002-02-08  Jim Blandy  <jimb@redhat.com>
13405
13406         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13407         is prototyped and has no arguments, print its argument list as
13408         `(void)'.
13409
13410 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13411
13412         * MAINTAINERS (write-after-approval): Add myself.
13413         (paper-trail): I've escaped!
13414
13415 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13416
13417         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13418         changes.
13419         (_initialize_check_for_gdb_ini): Ditto.
13420
13421 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13422
13423         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13424         xaprintf -> xasprintf.
13425
13426 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13427
13428         * win32-nat.c: Remove use of printf and sprintf functions.
13429
13430 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13431
13432         * arm-tdep.c (arm_frame_chain_valid): Make static.
13433         (arm_push_arguments): Likewise.
13434         (arm_gdbarch_init): New function.
13435         (_initialize_arm_tdep): Call it.
13436         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13437         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13438         (FRAME_CHAIN_VALID): Delete.
13439         (arm_frame_chain_valid): Delete declaration.
13440         (PUSH_ARGUMENTS): Delete.
13441         (arm_push_arguments): Delete declaration.
13442         (CALL_DUMMY_P): Delete.
13443
13444 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13445             Corinna Vinschen  <vinschen@redhat.com>
13446
13447         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13448         on builtin float types.
13449
13450 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13451
13452         * utils.c: Include <curses.h> before "bfd.h".
13453         * tui/tui-hooks.c: Likewise.
13454         * tui/tui.c: Likewise.
13455         * tui/tuiCommand.c: Likewise.
13456         * tui/tuiData.c: Likewise.
13457         * tui/tuiDataWin.c: Likewise.
13458         * tui/tuiDisassem.c: Likewise.
13459         * tui/tuiGeneralWin.c: Likewise.
13460         * tui/tuiIO.c: Likewise.
13461         * tui/tuiLayout.c: Likewise.
13462         * tui/tuiRegs.c: Likewise.
13463         * tui/tuiSource.c: Likewise.
13464         * tui/tuiSourceWin.c: Likewise.
13465         * tui/tuiStack.c: Likewise.
13466         * tui/tuiWin.c: Likewise.
13467
13468 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13469
13470         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13471         to include space for pseudoregs as well. Update loops accordingly.
13472         (sh_fp_frame_init_saved_regs): Ditto.
13473         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13474
13475 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13476
13477         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13478         Add Richard Earnshaw to Arm maintainers.
13479
13480 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13481
13482         * defs.h (warning_begin): Delete declaration.
13483
13484         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13485         Delete macro.
13486
13487 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13488
13489         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13490         Logic bug, remove misplaced else.
13491
13492 2002-02-07  Klee Dienes  <klee@apple.com>
13493
13494         * fork-inferior.c (fork_inferior): Add '!' to the list of
13495         characters that need to be quoted when building a string for the
13496         shell.  Quote '!' specifically with a backslash, since CSH chokes
13497         when trying to evaluate "str!str".
13498
13499 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13500
13501         * rdi-share/host.h: Only provide a typedef for bool if it is not
13502         defined.
13503
13504 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13505
13506         * breakpoint.h (enum bptype): Add new overlay event bp type.
13507         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13508
13509         * breakpoint.c (create_internal_breakpoint): New function.
13510         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13511         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13512         (create_thread_event_breakpoint): Ditto.
13513         (create_solib_event_breakpoint): Ditto.
13514         (create_overlay_event_breakpoint): New function.
13515         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13516         (update_breakpoints_after_exec): Delete and re-initialize
13517         overlay event breakpoints after an exec.  Add FIXME comment
13518         about longjmp breakpoint.
13519         (print_it_typical): Ignore overlay event breakpoints.
13520         (print_one_breakpoint): Ditto.
13521         (mention): Ditto.
13522         (bpstat_what): Do not stop for overlay event breakpoints.
13523         (delete_breakpoint): Don't delete overlay event breakpoints.
13524         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13525         (breakpoint_re_set): Re-create overlay event breakpoint.
13526
13527         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13528         (overlay_manual_command): Disable overlay breakpoints.
13529         (overlay_off_command): Disable overlay breakpoints.
13530
13531 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13532
13533         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13534         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13535         to here from config/tm-arm.h.
13536         (coff_sym_is_thumb): Make static.
13537         (arm_elf_make_msymbol_special): New function.
13538         (arm_coff_make_msymbol_special): New function.
13539         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13540         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13541         (coff_sym_is_thumb): Delete declaration.
13542         (arm_elf_make_msymbol_special): Declare.
13543         (arm_coff_make_msymbol_special): Declare.
13544         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13545         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13546
13547 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13548
13549         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13550
13551 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13552
13553         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13554         * gdbarch.c gdbarch.h: Regenerate.
13555         * arch-utils.c (default_print_float_info): New function.
13556         * arch-utils.h (default_print_float_info): Prototype it.
13557         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13558         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13559         (PRINT_FLOAT_INFO): Document it.
13560
13561         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13562         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13563         (PRINT_FLOAT_INFO): Define.
13564
13565 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13566
13567         * win32-nat.c (_initialize_check_for_gdb_ini):
13568         Add typecast to sprintf argument to suppress a warning.
13569
13570 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13571
13572         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13573         to allow easier handling of pass state.
13574         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13575         that gives exception name and address.
13576         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13577         and set last_sig value to ourstatus->value.sig. Some missing
13578         exceptions added.
13579         (child_continue): Correctly report continue_status.
13580         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13581         TARGET_SIGNAL_0 (new default value).
13582         (child_resume): consider sig argument passed to decide if
13583         the exception should be passed to debuggee or not.
13584
13585 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13586
13587         * regcache.c (fetch_register): Call target_fetch_register
13588         only if we don't call FETCH_PSEUDO_REGISTER.
13589         (store_register): Call target_store_register only if we
13590         don't call STORE_PSEUDO_REGISTER.
13591
13592 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13593
13594         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13595         ELF_MAKE_MSYMBOL_SPECIAL.
13596         * gdbarch.c, gdbarch.h: Regenerate.
13597         * arch-utils.c (default_make_msymbol_special): New function.
13598         * arch-utils.h (default_make_msymbol_special): Export.
13599         * elfread.c (elf_symtab_read): Compile use of
13600         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13601         multiarched.
13602         * coffread.c (coff_symtab_read): Ditto, for
13603         COFF_MAKE_MSYMBOL_SPECIAL.
13604
13605 2002-02-05  Jim Blandy  <jimb@redhat.com>
13606
13607         * solib-svr4.c (svr4_truncate_ptr): New function.
13608         (svr4_relocate_section_addresses): Do the address arithmetic with
13609         the appropriate truncation for target addresses, even when
13610         CORE_ADDR is larger than a target address.
13611
13612 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13613
13614         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13615         to (int *).
13616
13617 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13618
13619         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13620         code.
13621
13622 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13623
13624         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13625
13626 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13627
13628         * gdbserver/linux-low.c: Remove unused include files.
13629
13630 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13631
13632         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13633         (read_inferior_memory): Use it.
13634         (write_inferior_memory): Likewise.
13635
13636 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13637
13638         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13639         grubbing through sys_errlist.
13640
13641 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13642
13643         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13644
13645 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13646         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13647
13648 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13649
13650         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13651         (do_sfunc, set_cmd_sfunc): New functions.
13652
13653         * command.h (struct cmd_list_element): Add field func.
13654         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13655         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13656         * cli/cli-decode.h: Ditto.
13657
13658         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13659         (help_all, help_cmd_list): Ditto.
13660         (find_cmd, complete_on_cmdlist): Ditto.
13661         * top.c (execute_command): Ditto.
13662
13663         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13664         function.sfunc.
13665
13666         * infcmd.c (notice_args_read): Fix function signature.
13667
13668         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13669         * cli/cli-decode.c (add_set_cmd): Ditto.
13670         * utils.c (initialize_utils): Ditto.
13671         * maint.c (_initialize_maint_cmds): Ditto.
13672         * infrun.c (_initialize_infrun): Ditto.
13673         * demangle.c (_initialize_demangler): Ditto.
13674         * remote.c (add_packet_config_cmd): Ditto.
13675         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13676         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13677         * proc-api.c (_initialize_proc_api): Ditto.
13678         * kod.c (_initialize_kod): Ditto.
13679         * valprint.c (_initialize_valprint): Ditto.
13680         * top.c (init_main): Ditto.
13681         * infcmd.c (_initialize_infcmd): Ditto.
13682         * corefile.c (_initialize_core): Ditto.
13683         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13684         * arch-utils.c (initialize_current_architecture): Ditto.
13685         (_initialize_gdbarch_utils): Ditto.
13686         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13687
13688         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13689         * wince.c (_initialize_inftarg): Ditto.
13690         * symfile.c (_initialize_symfile): Ditto.
13691         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13692         * language.c (_initialize_language): Ditto.
13693         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13694
13695 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13696
13697         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13698
13699 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13700
13701         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13702         Add rules for building the register data files.
13703
13704 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13705
13706         * regformats/regdat.sh: Add braces to the definition of
13707         expedite_regs_${arch}.
13708
13709 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13710
13711         * regformats/regdef.h (struct reg): Add comment describing the
13712         requirements for offset and size fields.
13713
13714 2002-02-04  Andreas Schwab  <schwab@suse.de>
13715
13716         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13717         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13718
13719 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13720
13721         * gdbarch.sh (copyright): Update years in generated header.
13722         (SMASH_TEXT_ADDRESS): Add rule.
13723         * gdbarch.h, gdbarch.c: Re-generate.
13724         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13725         * dbxread.c: Likewise.
13726         * dwarfread.c: Likewise.
13727         * elfread.c: Likewise.
13728         * somread.c: Likewise.
13729
13730         * arm-tdep.c (arm_smash_text_address): New function.
13731         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13732
13733 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13734
13735         Add support for hardware watchpoints on win32 native.
13736         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13737         CONTEXT_DEBUG_REGISTERS.
13738         (dr variable): New variable. Static array containing a local copy
13739         of debug registers.
13740         (debug_registers_changed): New variable.  Reflects when debug registers
13741         are changed and need to be written to inferior.
13742         (debug_registers_used): New variable. Reflects when any debug register
13743         was set, used when new threads are created.
13744         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13745         i386-nat code.
13746         (thread_rec): Set dr array if id is the thread of current_event .
13747         (child_continue, child_resume): Change the debug registers for all
13748         threads if debug_registers_changed.
13749         (child_add_thread): Change the debug registers if debug_registers_used.
13750         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13751         Link nm.h to new nm-cygwin.h file.
13752         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13753         of hardware registers.
13754
13755 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13756
13757         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13758         Restore behavour broken by 2002-01-20 Andrew Cagney
13759         <ac131313@redhat.com> IEEE_FLOAT removal.
13760
13761 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13762
13763         * c-valprint.c (c_val_print): Pass a proper valaddr to
13764         cp_print_class_method.
13765         * valops.c (search_struct_method): If there is only one method
13766         and args is NULL, return that method.
13767
13768 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13769
13770         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13771         accessing tag_name directly.
13772
13773 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13774
13775         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13776         of accessing tag_name directly.
13777
13778 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13779
13780         PR gdb/280
13781         * gdbtypes.c (replace_type): New function.
13782         * gdbtypes.h (replace_type): Add prototype.
13783         * stabsread.c (read_type): Use replace_type.
13784
13785 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13786
13787         * Makefile.in (memattr.o): Add missing dependencies rule.
13788
13789 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13790
13791         * breakpoint.c (break_at_finish_command): Really export.
13792         (break_at_finish_at_depth_command): Ditto.
13793         (tbreak_at_finish_command): Ditto.
13794         * hppa-tdep.c: Include completer.h.
13795         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13796         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13797
13798 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13799
13800         * utils.c (do_write): New function.
13801         (error_stream): Rewrite combining the code from error_begin and
13802         verror.
13803         (verror): Rewrite using error_stream.
13804         (error_begin): Delete function.
13805
13806 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13807
13808         * utils.c (error_begin): Make static.
13809         * defs.h (error_begin): Delete declaration.
13810
13811         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13812         (decode_line_1): Use cplusplus_error instead of error_begin,
13813         cplusplus_hint and return_to_top_level.
13814         * coffread.c (coff_symfile_read): Use error instead of error_begin
13815         and return_to_top_level.
13816         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13817
13818 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * language.h (type_error, range_error): Make string parameter
13821         constant.
13822         * language.c (warning_pre_print): Delete extern declaration.
13823         * dwarfread.c (warning_pre_print): Ditto.
13824         * language.c (type_error, range_error): Rewrite to use verror and
13825         vwarning instead of warning_begin.
13826
13827 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13828
13829         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13830         (set_ignore_count): Move misplaced comment back where it belongs.
13831
13832 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13833
13834         * command.h (NO_FUNCTION): Delete macro.
13835         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13836         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13837         * tracepoint.c (_initialize_tracepoint): Ditto.
13838         * cli/cli-decode.c (add_set_cmd): Ditto.
13839         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13840
13841 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13842
13843         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13844         Update ``this'' pointer when calling virtual functions.
13845
13846 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13847
13848         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13849         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13850
13851 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13852
13853         * regformats/reg-arm.dat: New file.
13854         * regformats/reg-i386.dat: New file.
13855         * regformats/reg-ia64.dat: New file.
13856         * regformats/reg-m68k.dat: New file.
13857         * regformats/reg-mips.dat: New file.
13858         * regformats/reg-ppc.dat: New file.
13859         * regformats/reg-sh.dat: New file.
13860         * regformats/regdef.h: New file.
13861         * regformats/regdat.sh: New file.
13862
13863 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13864
13865         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13866         (arm_frame_args_address, arm_frame_locals_address): New functions.
13867         (arm_frame_num_args): New function.
13868         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13869         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13870         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13871
13872 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13873
13874         * breakpoint.c (break_at_finish_command): Export.
13875         (break_at_finish_at_depth_command): Export.
13876         (tbreak_at_finish_command): Export.
13877         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13878         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13879         "txbreak" commands, which are HPPA specific.
13880
13881         * printcmd.c (disassemble_command): Remove an ancient
13882         artifact of an old merge.
13883
13884         * symfile.h (enum overlay_debugging_state):
13885         Define enum constant values for overlay mode.
13886         * symfile.c (overlay_debugging): Use enums instead of literals.
13887         (overlay_is_mapped, overlay_auto_command,
13888         overlay_manual_command): Ditto.
13889
13890         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13891         breakpoint_here_p, breakpoint_inserted_here_p,
13892         breakpoint_thread_match, bpstat_stop_status,
13893         describe_other_breakpoints, check_duplicates, clear_command):
13894         Coding standard fixes.
13895
13896         * target.c (target_xfer_memory): Add spaces, coding standard.
13897         (do_xfer_memory): Add missing line to trust-readonly
13898         code: check bfd SEC_READONLY flag for section.
13899
13900 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13901
13902         * PROBLEMS: Fix typo, 5.1->5.1.1.
13903
13904 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13905
13906         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13907         data symbols, since we search based on textlow and texthigh.
13908         (find_pc_sect_symtab): Likewise.
13909
13910 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13911
13912         * defs.h (vwarning): Declare.
13913         * utils.c (vwarning): New function.
13914         (warning): Call vwarning.
13915         (warning_begin): Delete function.
13916
13917         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13918         the warning message.
13919         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13920         warning_begin.
13921
13922 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13923
13924         * NEWS: Mention "set trust-readonly-sections" command.
13925         Mention generate-core-file command.
13926
13927 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13928
13929         * target.c: New command, "set trust-readonly-sections on".
13930         (do_xfer_memory): Honor the suggestion to trust readonly sections
13931         by reading them from the object file instead of from the target.
13932         (initialize_targets): Register command "set trust-readonly-sections".
13933
13934 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13935
13936         * parse.c (target_map_name_to_register): Simplify, search regs and
13937         pseudo-regs using a single loop.
13938
13939 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13940
13941         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13942
13943 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13944
13945         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13946         * config/i386/i386v42mp.mh: Add i387-nat.o .
13947         * i386v4-nat.c: Include i387-nat.h.
13948         (supply_fpregset): Use i387_supply_fsave.
13949         (fill_fpregset): Use i387_fill_fsave.
13950
13951 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13952
13953         * arm-tdep.c (arm_call_dummy_words): Define.
13954         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13955         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13956         (CALL_DUMMY_WORDS): Define.
13957         (arm_call_dummy_words): Declare.
13958         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13959         (arm_linux_call_dummy_words): Declare.
13960
13961 2002-01-30  Andreas Schwab  <schwab@suse.de>
13962
13963         * m68klinux-nat.c: Fix last change to use regcache_collect
13964         instead of referencing registers[] directly.
13965
13966 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13967
13968         * parse.c (target_map_name_to_register): Delete code wrapped in
13969         #ifdef REGISTER_NAME_ALIAS_HOOK.
13970
13971 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13972
13973         * regcache.c (legacy_read_register_gen): Need to be able to
13974         read pseudo-register as well as real register.
13975         (legacy_write_register_gen): Ditto.
13976
13977 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13978
13979         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13980         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13981         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13982         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13983         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13984         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13985         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13986         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13987         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13988         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13989         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13990         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13991         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13992         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13993         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13994         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13995         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13996         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13997         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13998         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13999
14000 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14001
14002         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14003         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14004         (initialize_current_architecture): Update target_byte_order using
14005         information from BFD.
14006         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14007         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14008
14009 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14010
14011         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14012         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14013
14014         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14015         #ifdef INVALID_FLOAT.
14016         * infcmd.c (do_registers_info): Ditto.
14017         * values.c (unpack_double): Ditto.  Add comment.
14018
14019         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14020         already commented out.
14021
14022 2002-01-26  Andreas Schwab  <schwab@suse.de>
14023
14024         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14025         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14026         registers and add support for PTRACE_GETREGS.
14027
14028 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14029
14030         GDB 5.1.1 released from 5.1 branch.
14031         * NEWS: Add 5.1.1 news.
14032         * README: Sync with 5.1 branch.
14033
14034 2002-01-23  Fred Fish  <fnf@redhat.com>
14035
14036         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14037         stabstring on initial malloc.  Reallocing will copy it for us,
14038         if necessary.
14039
14040 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14041
14042         * Makefile.in (hpread_h): Delete.
14043         (HFILES_NO_SRCDIR): Remove hpread.h.
14044         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14045         (hpread.o): Update dependencies.
14046         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14047
14048         * hp-psymtab-read.c: Remove file.
14049         * hp-symtab-read.c: Remove file.
14050         * hpread.h: Remove file.
14051
14052         * hpread.c: Merge all contents of hp-psymtab-read.c,
14053         hp-symtab-read.c and hpread.h into this file, as it was prior to
14054         January 1999.
14055
14056         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14057         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14058         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14059         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14060
14061 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14062
14063         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14064         fill_gregset): Call gdbarch_tdep() just once, assign result to
14065         variable and use that, instead of calling the function several
14066         times.
14067
14068 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14069
14070         * configure.host: Accept sparcv9 as alias for sparc64.
14071         * configure.tgt: Likewise.
14072
14073 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14074
14075         * solib-aix5.c (build_so_list_from_mapfile)
14076         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14077         arguments is not reversed.
14078         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14079         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14080
14081 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14082
14083         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14084         modified version of obsolete sh_fetch_pseudo_register.
14085         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14086         (sh4_register_read): New function.
14087         (sh_pseudo_register_write): New function. Renamed and modified
14088         version of obsolete sh_store_pseudo_register.
14089         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14090         (sh4_register_write): New function.
14091         (sh_gdbarch_init): Remove setting of gdbarch function
14092         fetch_pseudo_register and store_pseudo_register. Remove setting of
14093         register_convert_to_raw, register_convert_to_virtual,
14094         register_convertible.
14095         (sh_sh4_register_convertible): Delete. No longer needed. All is
14096         taken care by architecture specific functions
14097         register_read/register_write.
14098         (sh_sh4_register_convert_to_virtual): Make static.
14099         (sh_sh4_register_convert_to_raw): Ditto.
14100
14101 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14102
14103         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14104         (floatformat_is_nan, floatformat_mantissa): Ditto.
14105
14106         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14107         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14108         builtin_type_ieee_double_little,
14109         builtin_type_ieee_double_littlebyte_bigword,
14110         builtin_type_m68881_ext, builtin_type_i960_ext,
14111         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14112         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14113         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14114         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14115
14116 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14117
14118         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14119         parameter.  Set frameless flag if it exists and depended of
14120         whether the scanned function is frameless or not.
14121         (xstormy16_skip_prologue): If function is frameless, return
14122         result of xstormy16_scan_prologue().
14123         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14124         call.
14125
14126 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14127
14128         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14129         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14130         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14131         sh_sh4_register_byte, sh_sh4_register_raw_size,
14132         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14133         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14134         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14135         sh_store_pseudo_register, sh_do_pseudo_register): Call
14136         gdbarch_tdep() just once, assign result to variable and use that,
14137         instead of calling the function several times.
14138
14139 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14140
14141         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14142         macros instead of LAST_FPU_CTRL_REGNUM.
14143         (store_register): Likewise.
14144
14145 2002-01-21  Jim Blandy  <jimb@redhat.com>
14146
14147         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14148         is up-to-date before running the program, not just when a program
14149         exits.
14150
14151 2002-01-21  Fred Fish  <fnf@redhat.com>
14152
14153         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14154         when we have found all instructions we are looking for.
14155
14156 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14157
14158         * arm-tdep.c (arm_register_name): New function.
14159         (arm_registers_names): Make static.
14160         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14161         (arm_register_name): Declare.
14162         (REGISTER_NAME): Use it.
14163
14164 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14165             Kevin Buettner  <kevinb@redhat.com>
14166
14167         Convert arm targets to new FRAME interface.
14168         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14169         (arm_frame_find_save_regs): Delete.
14170         (arm_frame_init_saved_regs): New.
14171         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14172         Allocate extra_info as required.  Convert all uses of fsr.regs
14173         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14174         to use extra_info.
14175         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14176         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14177         (check_prologue_cache, save_prologue_cache): Likewise.
14178         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14179         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14180         (FRAME_FIND_SAVED_REGS): Delete.
14181         (arm_frame_find_saved_regs): Delete prototype.
14182         (arm_frame_init_saved_regs): New prototype.
14183         (FRAME_INIT_SAVED_REGS): Define.
14184
14185 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14186
14187         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14188
14189 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14190
14191         From Jeff Law <law@redhat.com>:
14192         * infttrace.c: Include <sys/pstat.h>.
14193         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14194         exec file if the ttrace equivalent fails.
14195
14196 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14197
14198         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14199         (closeLogFile): Ditto.
14200
14201 2002-01-20  Michael Chastain  <mec@shout.net>
14202
14203         * top.c (print_gdb_version): Bump copyright year to 2002.
14204
14205 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14206
14207         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14208         Zannoni and Eli Zaretskii.
14209
14210 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14211
14212         * buildsym.c: Update copyright years.
14213         * c-typeprint.c: Likewise.
14214         * dwarf2read.c: Likewise.
14215         * f-typeprint.c: Likewise.
14216         * gdbtypes.c: Likewise.
14217         * gdbtypes.h: Likewise.
14218         * hp-symtab-read.c: Likewise.
14219         * hpread.c: Likewise.
14220         * mdebugread.c: Likewise.
14221         * p-typeprint.c: Likewise.
14222
14223 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14224
14225         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14226         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14227         byte-order selectable.
14228         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14229         * arch-utils.c: Ditto.
14230         (set_endian): Ditto.
14231         (set_endian_from_file): Ditto.
14232         * gdbserver/low-sim.c (create_inferior): Ditto.
14233         * gdbarch.sh: Ditto.
14234         * gdbarch.h: Re-generate.
14235         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14236         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14237         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14238         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14239         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14240         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14241         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14242         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14243         macro definition.
14244         * config/mips/tm-wince.h: Remove #undef of macro
14245         TARGET_BYTE_ORDER_SELECTABLE.
14246         * config/sh/tm-wince.h: Ditto.
14247
14248 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14249
14250         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14251         member function fields.  Add accessor macro
14252         TYPE_FN_FIELD_ARTIFICIAL.
14253         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14254         * c-typeprint.c (c_type_print_base): Skip artificial member
14255         functions.
14256
14257 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14258
14259         * f-typeprint.c: Delete unused function f_type_print_args.
14260         * p-typeprint.c: Delete unused function pascal_type_print_args.
14261
14262 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14263
14264         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14265         comment.  Add ``artificial'' to ``union field_location''.
14266
14267         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14268
14269         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14270         * mdebugread.c (parse_symbol): Likewise.
14271         * stabsread.c (define_symbol): Likewise.
14272         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14273         initializing TYPE_FIELD_BITPOS to n (obsolete).
14274         (hpread_doc_function_type): Likewise.
14275         * hpread.c (hpread_function_type): Likewise.
14276
14277 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14278
14279         * configure.in (host_makefile_frag): Only require a host makefile
14280         fragment when a native build.
14281         * configure: Re-generate.
14282
14283 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14284
14285         * doublest.h (floatformat_from_type): Declare.
14286         * doublest.c (floatformat_from_type): New function.
14287         (convert_typed_floating): Use.
14288
14289         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14290         call to function floatformat_from_type.
14291
14292         * gdbarch.sh (IEEE_FLOAT): Delete.
14293         * gdbarch.h, gdbarch.c: Re-generate.
14294         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14295         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14296         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14297         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14298         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14299         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14300         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14301         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14302         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14303         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14304         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14305         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14306
14307         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14308         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14309         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14310         * sh-tdep.c (sh_gdbarch_init): Ditto.
14311         * mips-tdep.c (mips_gdbarch_init): Ditto.
14312         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14313         * cris-tdep.c (cris_gdbarch_init): Ditto.
14314
14315 2002-01-20  Jiri Smid  <smid@suse.cz>
14316
14317         * configure.host, configure.tgt: Support x86-64.
14318         * NEWS: Note new target x86-64.
14319
14320         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14321         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14322         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14323         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14324         x86-64-linux-nat.o): Fix dependencies.
14325
14326 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14327
14328         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14329         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14330         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14331         * config/sparc/xm-sun4os4.h: Delete file.
14332         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14333
14334 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14335
14336         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14337         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14338         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14339         * config/i386/i386lynx.mh (XM_FILE): Delete.
14340         * config/rs6000/xm-rs6000ly.h: Delete file.
14341         * config/sparc/xm-sparclynx.h: Delete file.
14342         * config/m68k/xm-m68klynx.h: Delete file.
14343         * config/i386/xm-i386lynx.h: Delete file.
14344         * config/xm-lynx.h: Delete file.
14345         * config/djgpp/fnchange.lst: Update.
14346
14347 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14348
14349         * alpha-tdep.c (alpha_register_byte): New function.
14350         (alpha_register_raw_size): Ditto.
14351         (alpha_register_virtual_size): Ditto.
14352         (alpha_skip_prologue_internal): Renamed from
14353         alpha_skip_prologue.
14354         (alpha_skip_prologue): New version that calls
14355         alpha_skip_prologue_internal.
14356         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14357         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14358         second argument from alpha_skip_prologue.
14359         (REGISTER_BYTE): Use alpha_register_byte.
14360         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14361         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14362         (FRAMELESS_FUNCTION_INVOCATION): Use
14363         generic_frameless_function_invocation_not.
14364         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14365         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14366
14367 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14368
14369         * config/mips/xm-news-mips.h: Delete file.
14370         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14371
14372         * config/m88k/xm-m88k.h: Delete file.
14373         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14374         * config/m88k/xm-delta88v4.h: Ditto.
14375         * config/m88k/xm-delta88.h: Ditto.
14376
14377         * config/alpha/xm-fbsd.h: Delete file.
14378         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14379
14380         * config/sparc/xm-sparc.h: Delete file.
14381         * Makefile.in (xm-sun4os4.h): Delete dependency.
14382         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14383         * config/sparc/xm-sun4os4.h: Ditto.
14384         * config/sparc/xm-linux.h: Ditto.
14385
14386         * config/i386/xm-windows.h: Delete file.
14387
14388 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14389
14390         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14391         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14392
14393 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14394
14395         * alpha-tdep.c (alpha_call_dummy_words): New.
14396         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14397         (CALL_DUMMY_P): Define.
14398         (CALL_DUMMY_WORDS): Define.
14399         (SIZEOF_CALL_DUMMY_WORDS): Define.
14400
14401 2002-01-19  Per Bothner  <per@bothner.com>
14402
14403         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14404         isn't NULL, which can happen with some gcj-3.x-produced code.
14405
14406 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14407
14408         * alpha-tdep.c (alpha_register_virtual_type): New function.
14409         (alpha_init_frame_pc_first): Ditto.
14410         (alpha_fix_call_dummy): Ditto.
14411         (alpha_store_struct_return): Ditto.
14412         (alpha_extract_struct_value_address): Ditto.
14413         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14414         alpha_register_virtual_type.
14415         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14416         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14417         alpha_extract_struct_value_address.
14418         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14419         (INIT_FRAME_PC): Use init_frame_pc_noop.
14420         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14421
14422 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14423
14424         * i386gnu-nat.c: Include "i386-tdep.h".
14425         (fetch_fpregs): Simplify code dealing with uninitialized floating
14426         point states such that it doesn't require FP7_REGNUM.
14427
14428 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14429
14430         * alpha-tdep.c (frame_extra_info): New.
14431         (alpha_find_saved_regs): Make static.  Use
14432         frame->extra_info.
14433         (alpha_frame_init_saved_regs): New function.
14434         (alpha_frame_saved_pc): Use frame->extra_info.
14435         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14436         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14437         (init_extra_frame_info): Rename to...
14438         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14439         (alpha_print_extra_frame_info): New function.
14440         (alpha_frame_locals_address): Ditto.
14441         (alpha_frame_args_address): Ditto.
14442         (alpha_pop_frame): Use frame->extra_info.
14443         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14444         alpha_frame_args_address.
14445         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14446         (alpha_find_saved_regs): Remove prototype.
14447         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14448         (EXTRA_FRAME_INFO): Remove.
14449         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14450         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14451
14452 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14453
14454         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14455         (alpha_cannot_fetch_register): Ditto.
14456         (alpha_cannot_store_register): Ditto.
14457         (alpha_register_convertible): Ditto.
14458         (alpha_use_struct_convention): Ditto.
14459         * config/alpha/tm-alpha.h: Update copyright years.
14460         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14461         (INNER_THAN): Use core_addr_lessthan.
14462         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14463         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14464         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14465         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14466         (FRAME_CHAIN): Remove unnecessary cast.
14467
14468 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14469
14470         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14471         obsolete.
14472
14473 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14474
14475         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14476         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14477         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14478         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14479         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14480         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14481         * x86-64-linux-nat.c: Ditto.
14482
14483 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14484
14485         * alpha-tdep.c (alpha_register_name): New function.
14486         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14487         (REGISTER_NAME): Define.
14488
14489 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14490
14491         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14492
14493 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14494
14495         * alpha-tdep.c: Update copyright years.
14496         (alpha_next_pc): New function.
14497         (alpha_software_single_step): Ditto.
14498         * config/alpha/tm-alpha.h: Add prototype for
14499         alpha_software_single_step.
14500
14501 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14502
14503         * alphabsd-nat.c: Update copyright years.
14504         (fill_gregset): Use regcache_collect.
14505         (fill_fpregset): Likewise.
14506         (fetch_inferior_registers): Only fetch integer registers
14507         if requested to do so.
14508         (store_inferior_registers): Only store integer registers
14509         if requested to do so.
14510
14511 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14512
14513         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14514         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14515         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14516         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14517         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14518         * config/arm/linux.mh (XDEPFILES): Delete.
14519         * config/arm/nbsd.mh (XDEPFILES): Delete.
14520         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14521         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14522         * config/i386/i386m3.mh (XDEPFILES): Delete.
14523         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14524         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14525         * config/i386/fbsd.mh (XDEPFILES): Delete.
14526         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14527         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14528         * config/i386/i386v4.mh (XDEPFILES): Delete.
14529         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14530         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14531         * config/i386/i386aix.mh (XDEPFILES): Delete.
14532         * config/i386/go32.mh (XDEPFILES): Delete.
14533         * config/i386/cygwin.mh (XDEPFILES): Delete.
14534         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14535         * config/i386/i386mach.mh (XDEPFILES): Delete.
14536         * config/i386/i386v32.mh (XDEPFILES): Delete.
14537         * config/i386/linux.mh (XDEPFILES): Delete.
14538         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14539         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14540         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14541         * config/i386/i386sco.mh (XDEPFILES): Delete.
14542         * config/i386/i386v.mh (XDEPFILES): Delete.
14543         * config/i386/nbsd.mh (XDEPFILES): Delete.
14544         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14545         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14546         * config/i386/symmetry.mh (XDEPFILES): Delete.
14547         * config/i386/obsd.mh (XDEPFILES): Delete.
14548         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14549         * config/ia64/linux.mh (XDEPFILES): Delete.
14550         * config/ia64/aix.mh (XDEPFILES): Delete.
14551         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14552         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14553         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14554         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14555         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14556         * config/m68k/linux.mh (XDEPFILES): Delete.
14557         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14558         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14559         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14560         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14561         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14562         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14563         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14564         * config/m88k/delta88.mh (XDEPFILES): Delete.
14565         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14566         * config/m88k/m88k.mh (XDEPFILES): Delete.
14567         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14568         * config/mips/linux.mh (XDEPFILES): Delete.
14569         * config/mips/irix6.mh (XDEPFILES): Delete.
14570         * config/mips/irix5.mh (XDEPFILES): Delete.
14571         * config/mips/irix4.mh (XDEPFILES): Delete.
14572         * config/mips/irix3.mh (XDEPFILES): Delete.
14573         * config/mips/decstation.mh (XDEPFILES): Delete.
14574         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14575         (NATDEPFILES): Move core-aout.o to here.
14576         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14577         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14578         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14579         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14580         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14581         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14582         * config/pa/hpux11.mh (XDEPFILES): Delete.
14583         * config/powerpc/aix.mh (XDEPFILES): Delete.
14584         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14585         * config/powerpc/linux.mh (XDEPFILES): Delete.
14586         * config/romp/rtbsd.mh: Rename XDEPFILES.
14587         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14588         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14589         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14590         * config/s390/s390.mh (XDEPFILES): Delete.
14591         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14592         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14593         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14594         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14595         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14596         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14597         * config/sparc/linux.mh (XDEPFILES): Delete.
14598         * config/vax/vaxult.mh (XDEPFILES): Delete.
14599         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14600         * Makefile.in (DEPFILES): Remove XDEPFILES.
14601
14602 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14603
14604         * utils.c (internal_verror): Fix comments, default is yes not no.
14605         Update queries to match.  Default to quit and dump core.
14606
14607 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14608
14609         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14610         copyright.
14611         * defs.h, event-top.c, gdbcmd.h: Ditto.
14612         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14613         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14614         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14615         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14616         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14617         * mi/mi-main.c:Ditto.
14618
14619         * stack.c, symfile.c: Update copyright.
14620
14621 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14622
14623         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14624         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14625         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14626         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14627
14628 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14629
14630         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14631         * gdbserver/low-lynx.c (myattach): Likewise.
14632         * gdbserver/low-nbsd.c (myattach): Likewise.
14633         * gdbserver/low-sim.c (myattach): Likewise.
14634         * gdbserver/low-sparc.c (myattach): Likewise.
14635         * gdbserver/low-sun3.c (myattach): Likewise.
14636
14637         * gdbserver/low-linux.c (myattach): New function.
14638
14639         * gdbserver/server.c (attach_inferior): New function.
14640         (main): Handle "--attach".
14641
14642 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14643
14644         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14645         maintainer.
14646
14647 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14648
14649         * c-typeprint.c (is_type_conversion_operator): Add additional
14650         check for non-conversion operators.
14651
14652 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14653
14654         * linux-proc.c: Add "info proc" command, a la procfs.c.
14655         (read_mapping): New function, abstract and re-use code.
14656         (linux_find_memory_regions): Use new func read_mapping.
14657         (linux_info_proc_cmd): New function, implement "info proc".
14658         (_initialize_linux_proc): Add new command "info proc".
14659
14660 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14661
14662         * symfile.c (generic_load): Use bfd_map_over_sections method
14663         instead of manipulating bfd structure members directly.
14664         (add_section_size_callback): New function, bfd sections callback
14665         used by generic_load.
14666         (load_sections_callback): New function, bfd sections callback
14667         used by generic_load.
14668
14669 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14670
14671         [Based on work by Jim Blandy]
14672         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14673         (builtin_type_vec128): Export.
14674         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14675         types.
14676         (builtin_type_vec128): New builtin type for 128 bit vector
14677         registers.
14678         (build_gdbtypes): Initialize builtin_type_v16qi and
14679         builtin_type_v8hi. Create the vec128 register builtin type
14680         structure.
14681         (build_builtin_type_vec128): New function.
14682         (_initialize_gdbtypes): Register builtin_type_v16qi and
14683         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14684         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14685         AltiVec register to new builtin type.
14686
14687 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14688
14689         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14690         to make_cv_type.
14691
14692 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14693
14694         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14695         CLEAN_UP_REGISTER_VALUE.
14696         * regcache.c (supply_register): Update only call.
14697
14698 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14699
14700         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14701         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14702         a29k-*-vxworks* targets as obsolete.
14703
14704 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14705
14706         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14707         until we can resolve portability issues.
14708         * gregset.h: Remove references to fpxregs.
14709         * gcore.c (gcore_command): Initialize note_sec to NULL.
14710
14711 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14712
14713         * signals.c (target_signal_to_name): Rewrite.  Only use
14714         signals[].name when in bounds and non-NULL.
14715
14716 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14717
14718         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14719         * signals.c (target_signal_to_name): Verify that SIG is within the
14720         bounds of the signals array.
14721
14722 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14723
14724         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14725
14726 2002-01-13  Keith Seitz  <keiths@redhat.com>
14727
14728         * stack.c (print_frame_info_base): Print the frame's pc
14729         only if when print_frame_info_listing_hook is not defined.
14730
14731 2002-01-13  Keith Seitz  <keiths@redhat.com>
14732
14733         * varobj.c (varobj_set_value): Make sure that there were no
14734         errors evaluating the object before attempting to set its
14735         value.
14736         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14737         so this offset adjustment is no longer necessary.
14738         (create_child): Don't set the error flag if the child is
14739         a CPLUS_FAKE_CHILD.
14740         (value_of_child): If value_fetch_lazy fails, return NULL
14741         so that callers will be notified that an error occurred.
14742         (c_value_of_variable): Delay check of variable's validity
14743         until later. We actually want all structs and unions to have
14744         the value "{...}".
14745         Do not return "???" for variables which could not be evaluated.
14746         This error condition must be returned to the caller so that it
14747         can get the error condition from gdb.
14748         (cplus_name_of_child): Adjust index for vptr before figuring
14749         out the name of the child.
14750         (cplus_value_of_child): If a child's (real) parent is not valid,
14751         don't even bother trying to give a value for it. Just return
14752         an error. Change all instances in this function.
14753         (cplus_type_of_child): If our parent is one of the "fake"
14754         parents, we need to get at the type of the real parent, and
14755         derive the child's true type using this information.
14756
14757 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14758
14759         From 2002-01-09 John Marshall <johnm@falch.net>:
14760         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14761         sources.redhat.com, and tweak some related URLs which had
14762         suffered from linkrot.
14763
14764 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14765
14766         From Jeff law:
14767         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14768         structures passed in registers.
14769
14770 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14771
14772         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14773         white space which prevented compilation.  Reported by DSK
14774         <dsk@student.unsw.edu.au>.
14775
14776 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14777
14778         * symfile.c (build_section_addr_info_from_section_tab):
14779         Use bfd access method instead of manipulating bfd directly.
14780         (syms_from_objfile): Ditto.
14781         (simple_overlay_update_1): Ditto.
14782         (simple_overlay_update): Ditto.
14783         (generic_load): Ditto.
14784         (overlay_unmapped_address): FIXME comment, bfd access methods.
14785         (sections_overlap): FIXME comment, bfd access methods.
14786         (pc_in_mapped_range): FIXME comment, bfd access methods.
14787         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14788         (section_is_mapped): FIXME comment, bfd access methods.
14789         (section_is_overlay): FIXME comment, bfd access methods.
14790
14791         * symfile.c (generic_load): Whitespace and long line cleanups.
14792         Remove duplicate variable, change several local variables to
14793         more appropriate data types.
14794         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14795
14796 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14797
14798         From Peter Schauer:
14799         * language.c (longest_local_hex_string_custom): Use phex_nz to
14800         convert NUM to a hex string.
14801
14802 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14803
14804         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14805         the function.
14806         Update Copyright year.
14807
14808 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14809
14810         * language.c (longest_raw_hex_string): Delete unused function.
14811
14812 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14813
14814         * MAINTAINERS (write-after-approval): Add myself.
14815         * dwarf2read.c (read_tag_string_type): Handling of
14816         DW_AT_byte_size.
14817         (read_tag_string_type): FORTRAN fix to prevent propagation of
14818         first string size.
14819         (set_cu_language): Handling of DW_LANG_Fortran95
14820
14821 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14822
14823         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14824         GETPID(inferior_ptid).
14825         (store_inferior_registers): Likewise.
14826
14827 2002-01-10  Jason Merrill  <jason@redhat.com>
14828
14829         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14830         Fix DW_OP_minus.
14831
14832 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14833
14834         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14835         and bfd/elf32-sh-nbsd.c.
14836
14837 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14838
14839         * NEWS: Mention --pid and corefile/proc-id behavior change.
14840
14841         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14842         * gcore.c: Include cli/cli-decode.h instead of command.h.
14843
14844         * main.c (captured_main): Add new command line option "--pid".
14845         If the second command line argument (following the symbol-file)
14846         begins with a digit, try to attach to it before trying to open
14847         it as a corefile.
14848         (print_gdb_help): Document the "--pid" argument.
14849
14850 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14851
14852         * completer.c (command_completer): New function.
14853
14854         * completer.h <command_completer>: Add prototype.
14855
14856         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14857         completer for the "help" command.
14858
14859 2002-01-09  Jason Merrill  <jason@redhat.com>
14860
14861         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14862
14863 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14864
14865         * i386-linux-nat.c (fill_fpxregset): Make global.
14866         (store_fpxregset): Ditto.
14867
14868         * gregset.h (gdb_fpxregset_t): Define.
14869         (supply_fpxregset): Prototype.
14870         (fill_fpxregset): Prototype.
14871
14872         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14873
14874 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14875
14876         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14877         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14878         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14879
14880 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14881
14882         * MAINTAINERS: Update target maintainer rules so that any
14883         Maintainer can approve a tested patch for a maintenance-only
14884         target.
14885
14886 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14887
14888         * MAINTAINERS (write-after-approval): Add myself.
14889
14890         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14891         IN_SIGTRAMP.
14892
14893 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14894
14895         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14896         real name of the executable, rather than the /proc name.
14897
14898 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14899
14900         Implement a "generate-core-file" command in gdb, save target state.
14901         * gcore.c: New file.  Implement new command 'generate-core-file'.
14902         Save a corefile image of the current state of the inferior.
14903         * linux-proc.c: Add linux-specific code for saving corefiles.
14904         * target.h (struct target_ops): Add new target vectors for saving
14905         corefiles; to_find_memory_regions and to_make_corefile_notes.
14906         (target_find_memory_regions): New macro.
14907         (target_make_corefile_notes): New macro.
14908         * target.c (update_current_target): Inherit new target methods.
14909         (dummy_find_memory_regions): New place-holder method.
14910         (dummy_make_corefile_notes): New place-holder method.
14911         (init_dummy_target): Initialize new dummy target vectors.
14912         * exec.c (exec_set_find_memory_regions): New function.
14913         Allow the exec_ops vector for memory regions to be taken over.
14914         (exec_make_note_section): New function, target vector method.
14915         * defs.h (exec_set_find_memory_regions): Export prototype.
14916         * procfs.c (proc_find_memory_regions): New function, corefile method.
14917         (procfs_make_note_section): New function, corefile method.
14918         (init_procfs_ops): Set new target vector pointers.
14919         (find_memory_regions_callback): New function.
14920         (procfs_do_thread_registers): New function.
14921         (procfs_corefile_thread_callback): New function.
14922         * sol-thread.c (sol_find_memory_regions): New function.
14923         (sol_make_note_section): New function.
14924         (init_sol_thread_ops): Initialize new target vectors.
14925         * inftarg.c (inftarg_set_find_memory_regions): New function.
14926         Allow to_find_memory_regions vector to be taken over.
14927         (inftarg_set_make_corefile_notes): New function.
14928         Allow to_make_corefile_notes vector to be taken over.
14929         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14930         interface layer if not target_has_execution (may be a corefile).
14931         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14932         * config/sparc/sun4sol2.mh: Ditto.
14933         * config/alpha/alpha-linux.mh: Ditto.
14934         * config/arm/linux.mh: Ditto.
14935         * config/i386/x86-64linux.mh: Ditto.
14936         * config/ia64/linux.mh: Ditto.
14937         * config/m68k/linux.mh: Ditto.
14938         * config/mips/linux.mh: Ditto.
14939         * config/powerpc/linux.mh: Ditto.
14940         * config/sparc/linux.mh: Ditto.
14941
14942 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14943
14944         * arm-linux-nat.c: Remove references to regcache.c internal data
14945         (registers[] and register_valid[]).
14946
14947 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14948
14949         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14950         so that attaching to a pid will automatically read the process's
14951         symbol file and shlibs.
14952         * Makefile.in: Add rule for linux-proc.o.
14953         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14954         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14955         * config/arm/linux.mh: Ditto.
14956         * config/i386/linux.mh: Ditto.
14957         * config/i386/x86-64linux.mh: Ditto.
14958         * config/ia64/linux.mh: Ditto.
14959         * config/m68k/linux.mh: Ditto.
14960         * config/mips/linux.mh: Ditto.
14961         * config/powerpc/linux.mh: Ditto.
14962         * config/sparc/linux.mh: Ditto.
14963
14964 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14965
14966         * win32-nat.c: Add i386-tdep.h dependency.
14967
14968 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14969
14970         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14971         instead of bfd_get_arch_size.  Don't bail out just because
14972         there's no exec_bfd.
14973
14974         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14975         * p-valprint.c (pascal_object_print_value): Ditto.
14976         * somread.c (som_symtab_read): Ditto.
14977         * symfile.c (simple_free_overlay_region_table): Ditto.
14978         * valops.c (value_assign): Ditto.
14979
14980         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14981         use tilde_expand and strerror for opening save-tracepoints file.
14982
14983         * thread-db.c (thread_db_new_objfile): Indendation fix.
14984
14985         * infptrace.c (GDB_MAX_ALLOCA): New define.
14986         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14987         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14988         can be overridden with whatever value is appropriate to the host).
14989         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14990         alloca to allocate potentially large buffer.
14991         * rs6000-nat.c (child_xfer_memory): Ditto.
14992         * symm-nat.c (child_xfer_memory): Ditto.
14993         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14994
14995 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14996
14997         From Nick Clifton  <nickc@redhat.com>
14998         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14999
15000 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15001
15002         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15003         Don't use exec_bfd if it's NULL.
15004
15005 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15006
15007         * valops.c (value_arg_coerce): Fix formatting.
15008
15009 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15010
15011         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15012         * gnu-nat.c: Ditto.
15013
15014 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15015
15016         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15017         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15018         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15019         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15020         z8k-coff have not been multi-arched.  Update z8k-coff build
15021         status.
15022
15023 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15024
15025         * MAINTAINERS: Mark a29k target as obsolete.
15026         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15027         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15028         comments.
15029         * NEWS: Note that a29k targets are obsolete.
15030         * a29k-tdep.c: Mark as obsolete.
15031         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15032         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15033         a29k-*-vxworks* targets as obsolete.
15034         * remote-adapt.c: Obsolete.
15035         * remote-eb.c: Obsolete.
15036         * remote-mm.c: Obsolete.
15037         * remote-udi.c: Obsolete.
15038         * config/a29k/a29k-udi.mt: Obsolete.
15039         * config/a29k/a29k.mt: Obsolete.
15040         * config/a29k/tm-a29k.h: Obsolete.
15041         * config/a29k/tm-vx29k.h: Obsolete.
15042         * config/a29k/vx29k.mt: Obsolete.
15043
15044 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15045
15046         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15047         with BFD_ENDIAN_BIG.
15048
15049 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15050
15051         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15052         * configure, config.in: Re-generate.
15053         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15054         * defs.h: Do not include <endian.h>.
15055
15056 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15057
15058         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15059         * config.in: Regenerate.
15060         * configure.in: Update copyright years.
15061         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15062         * configure: Regenerate.
15063         * i386bsd-nat.c: Update copyright years.
15064         (fill_gregset): Use regcache_collect.
15065         (fetch_inferior_registers): Only fetch integer registers
15066         if requested to do so.  Add support for XMM registers
15067         using PT_GETXMMREGS.
15068         (store_inferior_registers): Only store integer registers
15069         if requested to do so.  Add support for XMM registers
15070         using PT_SETXMMREGS.
15071         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15072         (store_inferior_registers): Remove.
15073         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15074         (fetch_elfcore_registers): New function.
15075         (i386nbsd_elfcore_fns): New.
15076         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15077         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15078         i386bsd-nat.o.
15079         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15080         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15081         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15082         * config/i386/tm-nbsd.h: Update copyright years.
15083         (HAVE_SSE_REGS): Define.
15084         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15085         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15086         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15087         (SIGCONTEXT_PC_OFFSET): Remove.
15088         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15089
15090 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15091
15092         * configure.tgt: Remove powerpc-*-macos* target.
15093         * config/m68k/xm-mpw.h: Delete file.
15094         * config/xm-mpw.h: Delete file.
15095         * ser-mac.c: Delete file.
15096         * mpw-make.sed: Delete file.
15097         * mpw-config.in: Delete file.
15098         * mac-xdep.c: Delete file.
15099         * mac-gdb.r: Delete file.
15100         * mac-defs.h: Delete file.
15101         * mac-nat.c: Delete file.
15102         * config/powerpc/macos.mh: Delete file.
15103         * config/powerpc/macos.mt: Delete file.
15104         * config/powerpc/nm-macos.h: Delete file.
15105         * config/powerpc/tm-macos.h: Delete file.
15106         * source.c (openp, open_source_file): Remove obsolete code.
15107         * top.c (gdb_readline): Ditto.
15108         * utils.c (query): Ditto.
15109         * event-top.c (display_gdb_prompt): Ditto.
15110         * Makefile.in (ser-mac.o): Delete obsolete target.
15111         * NEWS: Update.
15112
15113 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15114
15115         * defs.h (BIG_ENDIAN): Delete macro definition.
15116         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15117         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15118         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15119         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15120         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15121         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15122         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15123         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15124         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15125         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15126         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15127         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15128         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15129         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15130         * gdbarch.c: Re-generate.
15131
15132 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15133
15134         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15135         for core files.
15136
15137 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15138
15139         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15140
15141 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15142
15143         * value.h (value_ptr): Delete typedef.
15144
15145 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15146
15147         * i386nbsd-nat.c: Update copyright years.
15148         Include i386-tdep.h.
15149
15150 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15151
15152         * stabsread.c: Update copyright years.
15153
15154         From Debashis Mahata <debashis.mahata@wipro.com>:
15155         (read_struct_fields): Deal with Sun C compiler erroneous stab
15156         output for structs and unions.
15157         Fix PR gdb/269.
15158
15159 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15160
15161         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15162         prototype.
15163
15164 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15165
15166         * cp-abi.c: Fix whitespace.
15167         (baseclass_offset): New wrapper function.
15168         * cp-abi.h (baseclass_offset): Add prototype.
15169         (struct cp_abi_ops): Add baseclass_offset pointer.
15170
15171         * valops.c (vb_match): Move to...
15172         * gnu-v2-abi.c (vb_match): here.
15173         * valops.c (baseclass_offset): Move to...
15174         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15175
15176         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15177
15178         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15179         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15180         * hpacc-abi.c (init_hpacc_ops): Likewise.
15181
15182 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15183
15184         * valops.c (find_overload_match): Accept obj as a
15185         reference parameter.  Update it before returning.
15186         * value.h (find_overload_match): Update prototype.
15187         * eval.c (evaluate_subexp_standard): Pass object to
15188         find_overload_match by reference.
15189
15190 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15191
15192         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15193         register attribute from value declarations.
15194         * valops.c: Ditto.
15195         * value.h: Ditto.
15196         * scm-lang.c (scm_lookup_name): Ditto.
15197
15198 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15199
15200         Abstract the functionality of iterating over mapped memory
15201         regions into a general purpose iterator function.
15202         * procfs.c (iterate_over_mappings): New function, general purpose
15203         iterator for memory sections.
15204         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15205         (solib_mappings_callback): New function, callback for above.
15206         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15207         (info_mappings_callback): New function, callback for above.
15208
15209         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15210
15211 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15212
15213         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15214         * i386-tdep.c: Include "elf-bfd.h".
15215         (process_note_abi_tag_sections): New function.
15216         (i386_gdbarch_init): Add code to recognize various OS/ABI
15217         combinations.
15218
15219         * maint.c (_initialize_maint_cmds): Add missing \ in
15220         string-literal.
15221
15222 For older changes see ChangeLog-2001
15223 \f
15224 Local Variables:
15225 mode: change-log
15226 left-margin: 8
15227 fill-column: 74
15228 version-control: never
15229 End: