2003-01-03 Andrew Cagney <ac131313@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
2
3         * alpha-tdep.c: Use get_frame_saved_regs.
4         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
7         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
8         * vax-tdep.c, xstormy16-tdep.c: Ditto.
9
10 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11
12         * configure.in: Remove all use of the SUBDIRS variable; add
13         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14         code providing the --enable-multi-ice option, and move it right in
15         front of the code that checks whether gdbserver is supported.
16         Polish that too.
17         * configure: Regenerated.
18         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
19         @SUBDIRS@.
20
21 2003-01-03  Andrew Cagney  <cagney@redhat.com>
22
23         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
24         * avr-tdep.c, cris-tdep.c: Ditto.
25         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
26         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
27         
28 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
29
30         * configure.in: Remove --enable-netrom option.
31         * configure: Regenerated.
32
33 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
34
35         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
36         declaration for `struct re_pattern_buffer' instead.
37         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
38
39 2003-01-03  J. Brobecker  <brobecker@gnat.com>
40
41         * mdebugread.c (parse_symbol): Count until the stEnd matching
42         the structure name.
43
44 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
45
46         * configure.in: Remove --with-cpu option.
47         subscripts.  Remove evil changequotes here.
48         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
49         * config.in, configure: Regenerated.
50         
51         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
52         * configure.in: Cleanup section that sources GDB and BFD configure
53         subscripts.  Remove evil changequotes here.
54         * config.in, configure: Regenerated.
55
56 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
57
58         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
59         frame accessor methods.
60         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
61         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
62         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
63         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
64         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
65         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
66         * z8k-tdep.c: Ditto.
67         
68 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
69
70         * configure.in: Remove UI_OUT configuration code.
71         * ada-lang.c: Update assuming UI_OUT is always true.
72         * Makefile.in (UIOUT_CFLAGS): Remove.
73         * configure: Regenerated.
74         * TODO: Remove blurb about elimination of -DUI_OUT.
75
76         * configure.in: Move code that provides the --enable-gdbcli,
77         --enable-gdbmi options right before the code that handles the
78         --enable-tui option.  Polish a bit.
79         * configure: Regenerated.
80
81         * configure.in: Rewrite check for GNU regex and the
82         --without-included regex option, and move it into the "Checks for
83         library functions" section.  This makes us use the system regex
84         again by default on systems with version 2 of the GNU C library.
85         This was apparently broken.
86         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
87         * acconfig.h (USE_INCLUDED_REGEX): Remove.
88         * config.in, configure: Regenerated.
89
90         * configure.in: Move code that provides the --enable-tui option
91         before the "Checks for libraries" section.  Polish the code
92         somewhat and set need_curses to yes if we build the TUI.  Rewrite
93         code that looks for a library providing termcap functionality to
94         match more closely what's done in the Readline library, and move
95         it into to the "Checks for libraries" section.
96         * configure: Regenerated.
97         * Makefile.in (TERMCAP): Remove variable.
98         * config/i386/go32.mh (TERMCAP): Remove variable.
99
100 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
101
102         * MAINTAINERS: Mention gdb_mbuild.sh.
103         * gdb_mbuild.sh: Rewrite.
104
105 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
106
107         * configure.in: Fix typo in last change.
108         * config.in, configure: Regenerated.
109
110 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
111
112         * valarith.c (value_binop): Delete obsolete code and comments.
113         * configure.host: Ditto.
114         * buildsym.h (make_blockvector): Ditto.
115         * buildsym.c (make_blockvector): Ditto.
116         * defs.h (enum language): Ditto.
117         (chill_demangle): Ditto.
118         * elfread.c (elf_symtab_read): Ditto.
119         * dwarfread.c (CHILL_PRODUCER): Ditto.
120         (set_cu_language): Ditto.
121         (handle_producer): Ditto.
122         * expprint.c (print_subexp): Ditto.
123         * gdbtypes.c (chill_varying_type): Ditto.
124         * gdbtypes.h (builtin_type_chill_bool): Ditto.
125         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
126         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
127         (chill_varying_type): Ditto.
128         * language.h (_LANG_chill): Ditto.
129         * language.c (binop_result_type, integral_type): Ditto.
130         (character_type, string_type, structured_type): Ditto.
131         (lang_bool_type, binop_type_check): Ditto.
132         * stabsread.h (os9k_stabs): Ditto.
133         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
134         (define_symbol, read_type, read_struct_fields): Ditto.
135         (read_array_type, read_enum_type, read_huge_number): Ditto.
136         (read_range_type, start_stabs): Ditto.
137         * symfile.c (init_filename_language_table): Ditto.
138         (add_psymbol_with_dem_name_to_list): Ditto.
139         * symtab.c (symbol_init_language_specific): Ditto.
140         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
141         * symtab.h (struct general_symbol_info): Ditto.
142         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
143         * typeprint.c (typedef_print): Ditto.
144         * utils.c (fprintf_symbol_filtered): Ditto.
145         * valops.c (value_cast, search_struct_field, value_slice): Delete
146         obsolete code.
147         (varying_to_slice): Delete function.
148         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
149         (varying_to_slice): Delete declaration.
150         * MAINTAINERS: Update.
151
152 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
153
154         * configure.in: Reorganize "Checks for library functions section"
155         a bit.  Remove check for `btowc' and `isascii' functions.
156         * configure: Regenerated.
157
158         * acconfig.h (_MSE_INT_H): Remove.
159         * configure.in: Create "Checks for header files" section, and move
160         appropriate tests there.  Don't check for objlist.h, wchar.h,
161         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
162         misdetection fix.  Also add "Checks for types", "Checks for
163         compiler characteristics" and "Checks for library functions"
164         sections.
165         * config.in, configure: Regenerated.
166
167         * configure.in: Create "Checks for programs" section, and move
168         appropriate tests there.
169
170 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
171
172         * configure.in: Create "Checks for libraries" section, and move
173         appropriate tests there.  Cleanup check for wctype in libw.  Use
174         AC_SEARCH_LIBS to see whether we need libsocket.
175         * configure: Regenerated.
176
177 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
178
179         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
180         * config.in, configure: Regenerated.
181
182 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
183
184         * gdb_dirent.h: Cleanup and update code to match the example in
185         the Autoconf manual.
186         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
187         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
188         * configure: Regenerated.
189
190 2002-12-30  Adam Fedor  <fedor@gnu.org>
191
192         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
193         (yylex): Initialize c to avoid uninitialized warning.
194
195 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
196
197         * doc/fdl.texi: Revert the last change.
198
199 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
200
201         * tracepoint.c (ISATTY): Removed.
202
203 2002-12-26  J. Brobecker  <brobecker@gnat.com>
204
205         Continuing work to convert the hppa targets to multiarch partil.
206
207         * hppa-tdep.c: Add some missing forward declarations.
208         (frameless_function_invocation): Prefix the function name
209         by "hppa_" to avoid polluting the namespace.  Update all calls
210         to use the new function name.
211         (saved_pc_after_call): Ditto.
212         (init_extra_frame_info): Ditto.
213         (frame_chain): Ditto.
214         (push_dummy_frame): Ditto.
215         (target_read_pc): Ditto.
216         (target_write_pc): Ditto.
217         (in_solib_call_trampoline): Ditto.
218         (in_solib_return_trampoline): Ditto.
219         (skip_trampoline_code): Ditto.
220         (hppa_read_fp): New function, renamed from target_read_fp.
221         (hppa_target_read_fp): New function, using hppa_read_fp.
222         This function conforms to the function profile for the
223         READ_FP gdbarch method.
224         (hppa_extract_struct_value_address): New function, extracted
225         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
226         macro.
227         (hppa_frame_num_args): New function.
228         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
229
230         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
231         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
232         for the switch to multiarch partial.
233         Update some of the macros definitions to match some changes
234         described above in the name of the function they are calling.
235         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
236         not be straightforward to convert. Do now wrap it inside
237         "#if !... #endif" to remember that this macro has still not
238         been taken care of.
239         (FIX_CALL_DUMMY): Likewise.
240
241 2002-12-26  J. Brobecker  <brobecker@gnat.com>
242
243         Continuing work to convert the hppa targets to multiarch partial.
244
245         * hppa-tdep.c (hppa_register_raw_size): New function replacing
246         the body of macro REGISTER_RAW_SIZE.
247         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
248         config/pa/tm-hppah.h. These functions will be used to initialize
249         the gdbarch structure.
250         (hppa_hpux_pc_in_sigtramp): New function.
251         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
252         (hppa_hpux_frame_base_before_sigtramp): New function.
253         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
254         Add gdbcore.h #include.
255         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
256         of this gdbarch-eligible macro to a call to the new associated
257         function.
258         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
259         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
260         into a call to the new associated function.
261         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
262         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
263         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
264
265 2002-12-24  David Carlton  <carlton@math.stanford.edu>
266
267         * config/sparc/tm-sparc.h: Delete duplicate definition of
268         DEPRECATED_PC_IN_CALL_DUMMY.
269
270 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
271
272         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
273         $(gdb_assert_h).
274         * configure.tgt: Recognize mips64*-*-linux*.
275         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
276         (supply_32_bit_reg): New function.
277         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
278         (fill_gregset): Use regcache_collect() instead of
279         deprecated_registers[].
280         (register_addr): Change name to mips_linux_register_addr().
281         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
282         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
283         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
284         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
285         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
286         (MIPS64_LINUX_JB_PC): New defines.
287         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
288         (mips64_elf_fpregset_t): New typedefs.
289         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
290         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
291         (mips64_linux_register_addr, set_mips_linux_register_addr)
292         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
293         (init_register_addr_data)
294         New functions.
295         (fetch_core_registers): Add support for core file formats with 64-bit
296         registers.
297         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
298         (register_addr_data): New static global variable.
299         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
300         gdbarch_register_osabi() for each MIPS machine.
301         * config/mips/linux64.mt: New file.
302         * config/mips/tm-linux64.h: New file.
303
304 2002-12-23  Adam Fedor  <fedor@gnu.org>
305
306         * maint.c (maintenance_demangle): Add switch to demangle
307         ObjC language symbols as well.
308
309 2002-12-23  Adam Fedor  <fedor@gnu.org>
310
311         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
312         last argument from complaint function call.
313
314 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
315
316         * exec.c (print_section_info): Add FIXME comments regarding format
317         string choices.
318
319 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
320
321         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
322         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
323
324 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
325
326         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
327
328 2002-12-23  David Carlton  <carlton@math.stanford.edu>
329
330         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
331         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
332         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
333         information associated to a minsym, not lookup_symbol.
334
335 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
336
337         * x86-64-tdep.h (x86_64_init_abi): New prototype.
338         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
339         (x86_64_init_abi): Make non-static.  Set number of pseudo
340         registers to 0.
341         (x86_64_gdbarch_init): Remove function.
342         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
343         Remove code dealing with dissambly.
344         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
345         (_initialize_x86_64_linux_tdep): New function.
346         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
347         i386-tdep.o.
348
349 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
350
351         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
352         (struct gdb_osabi_handler): Remove member `arch'.  Add member
353         `arch_info'.
354         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
355         construct a `struct bfd_arch_info' and store it in the `struct
356         gdb_osabi_handler' that is created.
357         (gdbarch_init_osabi): Check for compatibility based on machine
358         type and architecture.
359         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
360         comment.
361         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
362         second argument in call to gdbarch_register_osabi.
363         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
364         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
365         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
366         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
367         * arm-tdep.c (_initialize_arm_tdep): Likewise.
368         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
369         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
370         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
371         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
372         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
373         * i386-tdep.c (_initialize_i386_tdep): Likewise.
374         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
375         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
376         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
377         _initialize_i386bsd_tdep and updated likewise.
378         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
379         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
380         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
381         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
382         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
383         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
384         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
385         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
386         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
387         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
388
389 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
390
391         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
392         DT_MIPS_RLD_MAP case for 64-bit targets.
393
394 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
395
396         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
397         ``temp_saved_regs'', not the pointer or other storage contiguous
398         to this pointer.
399
400 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
401
402         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
403         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
404         (mips_linux_get_longjmp_target): Delete declarations.
405         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
406         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
407         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
408         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
409         (mips_linux_get_longjmp_target)
410         (mips_linux_svr4_fetch_link_map_offsets): Make static.
411         (mips_linux_init_abi): New function.
412         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
413
414 2002-12-19  Keith Seitz  <keiths@redhat.com>
415
416         patch committed by Elena Zannoni  <ezannoni@redhat.com>
417         * thread.c (do_captured_list_thread_ids): Call prune_threads and
418         target_find_new_threads. Fix for PR mi/669.
419
420 2002-12-19  David Carlton  <carlton@math.stanford.edu>
421
422         * linespec.c (decode_line_1): Move code into decode_all_digits.
423         (decode_all_digits): New function.
424
425 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
426
427         * exec.c (print_section_info): Select a format string to use with
428         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
429
430 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
431
432         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
433         deprecated_update_current_frame_pc_hack.
434         (deprecated_update_frame_base_hack): New function.
435         * frame.h (deprecated_update_frame_pc_hack): Replace
436         (deprecated_update_frame_base_hack): Declare.
437         * infrun.c (normal_stop): Update.
438
439 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
440
441         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
442         frame_extra_info_zalloc.
443         (rs6000_frame_args_address): Use get_frame_extra_info.
444         (frame_get_saved_regs): Use get_frame_saved_regs.
445         (frame_initial_stack_address): Use get_frame_saved_regs and
446         get_frame_extra_info.
447         (frame_initial_stack_address): Use get_frame_extra_info.
448
449 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
450
451         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
452         array size.
453         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
454         checks for r3900_regnames[].
455
456 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
457
458         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
459         All uses changed
460         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
461
462 2002-12-17  David Carlton  <carlton@math.stanford.edu>
463
464         * symtab.c (lookup_partial_symbol): Don't search past the end of
465         the partial symbols.
466
467 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
468
469         * stack.c (frame_info): Use get_frame_saved_regs.
470         * breakpoint.c (until_break_command): Use get_frame_pc.
471
472 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
473
474         * buildsym.c (block_end_complaint, anon_block_end_complaint)
475         (innerblock_complaint, innerblock_anon_complaint)
476         (blockvector_complaint): Delete deprecated complaint structs.
477         (finish_block, make_blockvector, end_symtab): Replace calls
478         to complain() with calls to complaint().
479         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
480         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
481         (unexpected_type_complaint, bad_sclass_complaint)
482         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
483         Delete deprecated complaint structs.
484         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
485         Replace calls to complain() with calls to complaint().
486         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
487         (unknown_symtype_complaint, unknown_symchar_complaint)
488         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
489         (lbrac_mismatch_complaint, repeated_header_complaint)
490         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
491         Delete deprecated complaint structs.
492         (unknown_symtype_complaint, lbrac_mismatch_complaint)
493         (repeated_header_complaint)
494         (function_outside_compiliation_unit_complaint): New functions.
495         (add_old_header_file, find_corresponding_bincl_psymtab)
496         (set_namestring, find_stab_function_addr, read_dbx_symtab)
497         (process_one_symbol): Replace calls to complain() with, possibly
498         indirect, calls to complaint().
499         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
500         (unknown_attribute_form, unknown_attribute_length)
501         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
502         (const_ignored, botched_modified_type, op_deref2, op_deref4)
503         (basereg_not_handled, dup_user_type_allocation)
504         (dup_user_type_definition, missing_tag, bad_array_element_type)
505         (subscript_data_items, unhandled_array_subscript_format)
506         (unknown_array_subscript_format, not_row_major)
507         (missing_at_name): Delete deprecated complaint structs.
508         (bad_die_ref_complaint, unknown_attribute_form_complaint)
509         (dup_user_type_definition_complaint)
510         (bad_array_element_type_complaint): New functions.
511         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
512         (decode_subscript_data_item, dwarf_read_array_type)
513         (read_tag_string_type, read_subroutine_type, read_func_scope)
514         (locval, scan_partial_symbols, decode_modified_type)
515         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
516         (attribute_size): Replace calls to complain() with, possibly
517         indirect, calls to complaint().
518         * elfread.c (section_info_complaint, section_info_dup_complaint)
519         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
520         Delete deprecated complaint structs.
521         (elf_symtab_read, elfstab_offset_sections): Replace calls to
522         complain() with calls to complaint().
523         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
524         struct.
525         (stub_noname_complaint): New function.
526         (check_typedef, add_mangled_type): Replace calls to complain()
527         with calls to complaint().
528         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
529         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
530         (hpread_unhandled_type_complaint, hpread_struct_complaint)
531         (hpread_array_complaint, hpread_type_lookup_complaint)
532         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
533         (hpread_unhandled_common_complaint)
534         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
535         struct definitions and declarations.
536         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
537         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
538         Replace calls to complain() with, possibly indirect, calls to
539         complaint().
540         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
541         Likewise.
542         * mdebugread.c (bad_file_number_complaint, index_complaint)
543         (aux_index_complaint, block_index_complaint)
544         (unknown_ext_complaint, unknown_sym_complaint)
545         (unknown_st_complaint, block_overflow_complaint)
546         (basic_type_complaint, unknown_type_qual_complaint)
547         (array_index_type_complaint, bad_tag_guess_complaint)
548         (block_member_complaint, stEnd_complaint)
549         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
550         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
551         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
552         (bad_continued_complaint, bad_rfd_entry_complaint)
553         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
554         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
555         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
556         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
557         complaint structs.
558         (index_complaint, unknown_ext_complaint, basic_type_complaint)
559         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
560         (unexpected_type_code_complaint)
561         (function_outside_compilation_unit_complaint): New functions.
562         (parse_symbol, parse_type, upgrade_type, parse_procedure)
563         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
564         Replace calls to complain() with, possibly indirect calls to
565         complaint().
566         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
567         Delete deprecated complaint structs.
568         (lookup__objc_class, lookup_child_selector): Replace complain()
569         with complaint().
570         * remote-vx.c (cant_contact_target): Delete deprecated complaint
571         struct.
572         (vx_lookup_symbol): Replace complain() with complaint().
573         * stabsread.c (invalid_cpp_abbrev_complaint)
574         (invalid_cpp_type_complaint, member_fn_complaint)
575         (const_vol_complaint, error_type_complaint)
576         (invalid_member_complaint, range_type_base_complaint)
577         (reg_value_complaint, vtbl_notfound_complaint)
578         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
579         (unresolved_sym_chain_complaint, stabs_general_complaint)
580         (lrs_general_complaint, multiply_defined_struct): Delete
581         deprecated complaint structs.
582         (invalid_cpp_abbrev_complaint, ref_value_complaint)
583         (stabs_general_complaint, lrs_general_complaint)
584         (msg_unknown_complaint): New functions.
585         (dbx_lookup_type, read_cfront_baseclasses)
586         (read_cfront_member_functions, resolve_symbol_reference)
587         (define_symbol, resolve_live_range, add_live_range, read_type)
588         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
589         (read_one_struct_field, read_baseclasses, read_tilde_fields)
590         (read_cfront_static_fields, attach_fields_to_type)
591         (complain_about_struct_wipeout, read_range_type)
592         (common_block_start, common_block_end, cleanup_undefined_types)
593         (scan_file_globals): Replace complain() with complaint().
594         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
595         Delete deprecated complaint struct declarations.
596         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
597         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
598         (bf_not_found_complaint, ef_complaint, eb_complaint)
599         (function_outside_compilation_unit_complaint): New functions.
600         (record_include_begin, record_include_end, enter_line_range)
601         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
602         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
603         complain() with complaint().
604
605 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
606
607         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
608         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
609         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
610         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
611         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
612         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
613         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
614         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
615         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
616         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
617         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
618         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
619         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
620         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
621         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
622         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
623         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
624         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
625         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
626         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
627         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
628         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
629         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
630         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
631         * config/m88k/xm-dgux.h: Delete.
632         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
633         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
634         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
635         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
636         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
637         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
638         * ch-valprint.c: Delete.
639         
640 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
641
642         * infrun.c (handle_inferior_event): Rearrange code to resume if
643         no catchpoint triggers for an event.
644
645 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
646
647         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
648         and TARGET_WAITKIND_VFORKED cases.
649
650 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
651
652         * infrun.c (handle_inferior_event): Assume that catchpoints
653         are not affected by DECR_PC_AFTER_BREAK.
654
655 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
656
657         * target.c (update_current_target): Don't inherit DONT_USE.
658         * target.h (struct target_ops): Remove DONT_USE.
659         (target_next): Remove macro.
660
661 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
662
663         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
664
665 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
666
667         * arm-tdep.c (convert_from_extended): New argument to hold the
668         type of floating point result we want to convert to.  Make input 
669         argument const.  Fix all callers.
670         (convert_to_extended): Similarly.
671         (arm_extract_return_value): Now takes a regcache argument.  Change
672         code to use regcache accessor functions.  Correctly extract 
673         smaller-than-word results on big-endian machines.
674         (arm_store_return_value): Now takes a regcache argument.  Change
675         code to use regcache accessor functions.  Correctly zero/sign extend
676         smaller than word results before storing into r0.
677         (arm_gdbarch_init): Register new-style extract_return_value and
678         store_return_value functions.
679
680 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
681
682         * thread-db.c (thread_from_lwp): Uniquify error msg.
683         (lwp_from_thread): Ditto.
684         (check_event): Ditto.
685         (find_new_threads_callback): Ditto.
686         (thread_db_pid_to_str): Ditto.
687
688 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
689
690         * frame.h (get_frame_saved_regs): Declare.
691         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
692         pointer.
693         * frame.c (get_frame_saved_regs): New function.
694         (frame_saved_regs_zalloc): Return the allocated saved_regs.
695
696 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
697
698         * frame.c (deprecated_update_current_frame_pc_hack): New
699         function.
700         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
701         * infrun.c (normal_stop): Use said function instead of directly
702         modifying the frame's PC.
703         
704 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
705
706         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
707
708 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
709
710         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
711         config/mips/tm-irix6.h (NUM_REGS): Delete.
712         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
713         (temp_saved_regs): Declare as a pointer rather than an array.
714         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
715         that ``temp_saved_regs'' has storage allocated to it and that
716         it's the correct size.
717
718 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
719
720         * defs.h (init_last_source_visited): New prototype.
721         (add_path): Ditto.
722         * source.c (add_path): New function that adds to a specified path.
723         (mod_path): Change to call add_path.
724         (init_last_source_visited): New function to allow interfaces to
725         initialize static variable: last_source_visited.  Part of fix
726         for PR gdb/741.
727         * Makefile.in: Add support for mi/mi-cmd-env.c.
728
729 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
730
731         * frame.h (frame_id_unwind): Declare.
732         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
733         id_unwind_cache.
734         (frame_id_unwind_ftype): Declare.
735         * frame.c (frame_id_unwind): New function.
736         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
737         (create_new_frame, get_prev_frame): Pass id_unwind to
738         set_unwind_by_pc.
739         (frame_saved_regs_id_unwind): New function.
740         (frame_saved_regs_id_unwind): New function.
741         * dummy-frame.c (dummy_frame_id_unwind): New function.
742         (struct dummy_frame): Add field id.
743         (generic_push_dummy_frame): Initialize `id'.
744         * dummy-frame.h (dummy_frame_id_unwind): Declare.
745
746 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
747
748         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
749         pass that to set_momentary_breakpoint.  Move comments to where they
750         belong.
751         * frame.h (set_current_frame): Delete declaration.
752         * frame.c (set_current_frame): Delete function.
753
754 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
755
756         * frame.c (frame_extra_info_zalloc): New function.
757         * frame.h (frame_extra_info_zalloc): Declare.
758
759 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
760
761         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
762         in the previous prototype change to set_momentary_breakpoint.
763
764 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
765
766         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
767         and saw_child_exec.
768         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
769         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
770         (stop_stepping): Remove outdated check for child vfork events.
771
772 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
773
774         * GDB 5.3 released from gdb_5_3-branch.
775
776 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
777
778         * corelow.c (init_core_ops): Delete references to to_require_attach
779         and to_require_detach.
780         * exec.c (init_exec_ops): Likewise.
781         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
782         hppa_require_detach directly.
783         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
784         * inftarg.c (child_detach): Remove.
785         (child_detach_from_process): Rename to child_detach, remove
786         after_fork argument.
787         (child_attach): Remove.
788         (child_attach_to_process): Rename to child_attach, remove after_fork
789         argument.
790         (init_child_ops): Delete references to to_require_attach
791         and to_require_detach.
792         * infttrace.c (hppa_require_attach): Update comment.
793         * target.c (cleanup_target, update_current_target)
794         (init_dummy_target, setup_target_debug): Delete references to
795         to_require_attach and to_require_detach.
796         (find_default_require_detach, find_default_require_attach)
797         (debug_to_require_attach, debug_to_require_detach): Remove
798         functions.
799         * target.h (struct target_ops): Remove to_require_attach
800         and to_require_detach.
801         (target_require_attach, target_require_detach): Delete macros.
802         (find_default_require_detach, find_default_require_attach): Delete
803         prototypes.
804         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
805
806 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
807
808         * frame.c (get_frame_extra_info): New function.
809         * frame.h (get_frame_extra_info): Declare.
810
811 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
812
813         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
814         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
815         with `struct frame_id'.
816         (set_longjmp_resume_breakpoint): Ditto.
817         * infrun.c (handle_inferior_event): Update.
818         * breakpoint.c (watch_command_1, until_break_command): Update.
819         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
820         (handle_inferior_event, step_over_function): Update.
821         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
822         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
823         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
824         * infcmd.c (finish_command, run_stack_dummy): Update.
825
826 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
827
828         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
829         (dwarf2_non_const_array_bound_ignored)
830         (dwarf2_missing_line_number_section)
831         (dwarf2_statement_list_fits_in_line_number_section)
832         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
833         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
834         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
835         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
836         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
837         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
838         (dwarf2_missing_member_fn_type_complaint)
839         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
840         (dwarf2_const_value_length_mismatch)
841         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
842         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
843         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
844         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
845         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
846         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
847         complaints using deprecated struct..
848         (dwarf2_non_const_array_bound_ignored_complaint)
849         (dwarf2_complex_location_expr_complaint)
850         (dwarf2_unsupported_at_frame_base_complaint)
851         (dwarf2_const_value_length_mismatch_complaint)
852         (dwarf2_macros_too_long_complaint)
853         (dwarf2_macro_malformed_definition_complaint)
854         (dwarf2_invalid_attrib_class_complaint): New functions.
855         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
856         (read_structure_scope, read_array_type, read_common_block)
857         (read_tag_pointer_type, read_base_type, read_partial_die)
858         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
859         (new_symbol, dwarf2_const_value, read_type_die)
860         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
861         (parse_macro_definition, dwarf_decode_macros): Replace calls to
862         complain() with, possibly indirect, calls to complaint().
863
864 2002-12-11  Andrew Cagney  <cagney@redhat.com>
865
866         * frame.c (deprecated_get_frame_saved_regs): Rename
867         get_frame_saved_regs.
868         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
869         * sparc-tdep.c: Update.
870         * hppa-tdep.c: Update.
871         * h8500-tdep.c: Update.
872
873 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
874
875         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
876         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
877         ``char *'' for return and parameter types.
878         * gdbarch.h, gdbarch.c: Regenerate.
879         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
880         return type from ``char *'' to ``const char *''.
881         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
882         const.
883
884 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
885
886         * i386-tdep.c: Include "dummy-frame.h".
887         (i386_frame_chain, i386_frame_saved_pc): Replace
888         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
889         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
890
891 2002-12-10  Andrew Cagney  <cagney@redhat.com>
892
893         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
894         Change to a function with predicate.
895         * gdbarch.h, gdbarch.c: Re-generate.
896         * frame.c (get_prev_frame): Update.  Test
897         DEPRECATED_INIT_FRAME_PC_P.
898         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
899         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
900         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
901         * alpha-tdep.c (alpha_gdbarch_init): Update.
902         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
903         * mips-tdep.c (mips_gdbarch_init): Update.
904         * i386-interix-tdep.c (i386_interix_init_abi): Update.
905         * arm-tdep.c: Update comments.
906         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
907         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
908         * frv-tdep.c (frv_gdbarch_init): Ditto.
909         * x86-64-tdep.c (x86_64_init_abi): Ditto.
910         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
911         * s390-tdep.c (s390_gdbarch_init): Ditto.
912         * v850-tdep.c (v850_gdbarch_init): Ditto.
913         * vax-tdep.c (vax_gdbarch_init): Ditto.
914         * sh-tdep.c (sh_gdbarch_init): Ditto.
915         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
916         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
917         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
918         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
919         * i386-tdep.c (i386_gdbarch_init): Ditto.
920         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
921         * cris-tdep.c (cris_gdbarch_init): Ditto.
922         * avr-tdep.c (avr_gdbarch_init): Ditto.
923         * arm-tdep.c (arm_gdbarch_init): Ditto.
924         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
925         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
926
927 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
928
929         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
930         CHILD_FOLLOW_FORK.
931         * hppah-nat.c (saved_vfork_pid): Add.
932         (child_post_follow_vfork): Remove.
933         (child_follow_fork): New function.
934         (child_wait): Call detach_breakpoints after receiving the child vfork.
935         Call child_resume directly instead of going through resume ().
936         Make sure we have the exec before reporting the vfork.
937         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
938         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
939         (follow_fork): New function.  Call target_follow_fork.
940         (follow_inferior_reset_breakpoints): New function broken out from
941         old follow_inferior_fork.
942         (resume): Remove hack to follow exec after vfork.
943         * inftarg.c (child_post_follow_vfork): Remove.
944         (child_follow_fork): New function.
945         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
946         * target.c (cleanup_target): Replace to_post_follow_vfork with
947         to_follow_fork.
948         (update_current_target): Likewise.
949         (setup_target_debug): Likewise.
950         (debug_to_post_follow_vfork): Remove.
951         (debug_to_follow_fork): New function.
952         * target.h (struct target_ops): Replace to_post_folow_vfork with
953         to_follow_fork.
954         (child_post_follow_vfork): Remove prototype.
955         (child_follow_fork): Add prototype.
956         (target_post_follow_vfork): Remove macro.
957         (target_follow_fork): Add macro.
958
959 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
960
961         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
962         (child_post_follow_vfork): Cancel pending exec event if we follow
963         the parent.
964         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
965         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
966         event at the following wait call if necessary.
967         * infrun.c (follow_vfork): Don't follow_exec here.
968         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
969         case about HP/UX 10.20.  Remove code pushed down to
970         hppah-nat.c:child_wait.
971         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
972         vfork_in_flight is set.
973
974 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
975
976         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
977         for the parent's fork event.
978         * infrun.c (handle_inferior_event): Only expect one fork event.
979         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
980         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
981
982 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
983
984         * PROBLEMS: Delete reference to PR gdb/725.
985         
986         * MAINTAINERS (gdb.c++): Add David Carlton.
987
988 2002-12-09  David Carlton  <carlton@math.stanford.edu>
989
990         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
991         * cli/cli-cmds.c: Ditto.
992
993 2002-12-09  Andrew Cagney  <cagney@redhat.com>
994
995         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
996         function address in <>.
997         * gdbarch.c: Re-generate.
998
999 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1000
1001         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1002
1003 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1004
1005         * linespec.c (symtab_from_filename): New function.
1006         (decode_line_1): Move code into symtab_from_filename.
1007
1008 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1009
1010         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1011
1012 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1013
1014         * f-valprint.c (info_common_command): Use get_frame_pc.
1015         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1016         * ax-gdb.c (agent_command): Ditto.
1017         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1018         (rs6000_pop_frame): Ditto.
1019         (rs6000_frameless_function_invocation): Ditto.
1020         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1021         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1022         * macroscope.c (default_macro_scope): Ditto.
1023         * stack.c (print_frame_info_base): Ditto.
1024         (print_frame, frame_info, print_frame_label_vars): Ditto.
1025         (return_command, func_command, get_frame_language): Ditto.
1026         * infcmd.c (finish_command): Ditto.
1027         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1028         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1029         (break_at_finish_at_depth_command_1): Ditto.
1030         (break_at_finish_command_1): Ditto.
1031         (until_break_command, get_catch_sals): Ditto.
1032         * blockframe.c (func_frame_chain_valid): Ditto.
1033         (frameless_look_for_prologue): Ditto.
1034         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1035
1036 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1037
1038         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1039         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1040
1041 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1042
1043         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1044         to pure functions.
1045         * gdbarch.h, gdbarch.c: Re-generate.
1046         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1047         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1048
1049         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1050         declaration to a function returning a CORE_ADDR.
1051         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1052         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1053         (init_frame_pc_default): Ditto.
1054         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1055         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1056         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1057         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1058         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1059         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1060
1061         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1062         to init_frame_pc_noop.
1063         (i386_interix_init_frame_pc): Delete function.
1064         * z8k-tdep.c (init_frame_pc): Delete function.
1065         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1066         (INIT_FRAME_PC_FIRST): Ditto.
1067         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1068         (INIT_FRAME_PC_FIRST): Ditto.
1069         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1070         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1071         init_frame_pc_noop.
1072         (INIT_FRAME_PC_FIRST): Convert to an expression.
1073         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1074
1075 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1076
1077         * blockframe.c: Use get_frame_base instead of directly accessing
1078         the `struct frame_info' member frame.
1079         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1080         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1081
1082 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1083
1084         * Makefile.in (readline_h): Define.
1085         (completer.o): Depend on readline_h.
1086         (corelow.o): Ditto.
1087         (event-top.o): Ditto.
1088         (exec.o): Ditto.
1089         (solib.o): Ditto.
1090         (source.o): Ditto. 
1091         (symfile.o): Ditto. 
1092         (symmisc.o): Ditto. 
1093         (top.o): Ditto.
1094         (tracepoint.o): Ditto. 
1095         (utils.o): Ditto.
1096         (cli-dump.o): Ditto.
1097         (tui-hooks.o): Ditto. 
1098         (tuiWin.o): Ditto. 
1099
1100 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1101
1102         More cleanup from import of readline 4.3.
1103         * completer.h (complete_line, readline_line_completion_function):
1104         Update prototypes.
1105         (line_completion_function): Removed, not used outside of completer.c.
1106         * completer.c (readline_line_completion_function,
1107         complete_function, line_completion_function): Use const for first
1108         parameter.
1109         (line_completion_function): Make static.
1110         (filename_completer): filename_completion_function is now called
1111         rl_filename_completion_function
1112         * corelow.c: Include <readline/readline.h>.
1113         * exec.c: Ditto.
1114         * solib.c: Ditto.
1115         * source.c: Ditto.
1116         * symfile.c: Ditto.
1117         * symmisc.c: Ditto.
1118         * top.c (init_main): No need to coerce
1119         readline_line_completion_function anymore.
1120         * cli/cli-dump.c: Include <readline/readline.h>.
1121
1122 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1123
1124         * stack.c (frame_info): Use get_prev_frame.
1125         * blockframe.c (frame_address_in_block): Ditto.
1126         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1127         (rs6000_frameless_function_invocation): Ditto.
1128         (rs6000_frame_saved_pc): Ditto.
1129         (rs6000_frame_chain): Ditto.
1130         * arch-utils.c (init_frame_pc_default): Ditto.
1131
1132 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1133
1134         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1135         Delete redundant definition.
1136
1137 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1138
1139         Import of readline 4.3:
1140         * cli/cli-cmds.c: Include readline/tilde.h.
1141         * cli/cli-setshow.c: Ditto.
1142         * defs.h: Don't declare tilde_expand anymore, since readline
1143         exports it.
1144
1145 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1146
1147         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1148         -Werror on this file.
1149
1150 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1151
1152         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1153         the format name.
1154         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1155         * gdbarch.c: Regenerate.
1156         
1157 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1158
1159         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1160         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1161         provide a default value.
1162         * gdbarch.h, gdbarch.c: Regenerate.
1163         * frame.c (get_prev_frame): Update.  Check
1164         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1165         * s390-tdep.c (s390_gdbarch_init): Update.
1166         * mips-tdep.c (mips_gdbarch_init): Update.
1167         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1168         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1169         * alpha-tdep.c (alpha_gdbarch_init): Update.
1170         
1171 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1172
1173         * ia64-linux-nat.c: Include gdb_string.h.
1174         * alpha-nat.c: Ditto.
1175         * ppc-linux-nat.c: Ditto.
1176         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1177         Update dependencies.
1178
1179 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1180
1181         * gdbthread.h: Include "frame.h".
1182         (struct thread_info): Replace step_frame_address with
1183         step_frame_id.
1184         * inferior.h: Include "frame.h".
1185         (step_frame_id): Replace external variable step_frame_address.
1186         * gdbthread.h (save_infrun_state): Replace step_frame_address
1187         parameter with step_frame_id parameter.
1188         (load_infrun_state): Ditto.
1189         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1190         * infcmd.c (step_frame_id, step_1, step_once): Update.
1191         * thread.c (load_infrun_state, save_infrun_state): Update.
1192         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1193         (handle_inferior_event, step_over_function): Update.
1194         (normal_stop, context_switch, restore_inferior_status): Update.
1195         (struct inferior_status): Replace step_frame_address with
1196         step_frame_id.
1197
1198 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1199
1200         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1201         DW_TAG_member as well as a declaration as being a C++ static data
1202         member.
1203         (read_structure_scope): Combine tests for DW_TAG_member and
1204         DW_TAG_variable.
1205
1206 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1207
1208         * linespec.c (decode_compound): New function.
1209         (decode_line_1): Move code into decode_compound.
1210
1211 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1212
1213         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1214         argument.
1215         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1216         the static block.  See PR gdb/804.
1217
1218 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1219
1220         * symtab.c (lookup_symbol_aux_block): New function.
1221         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1222
1223 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1224
1225         * gdbarch.sh: Dump the predicate function and macro values.
1226         (read): Print error on standard error.
1227         * gdbarch.c: Regenerate.
1228         
1229 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1230
1231         * Makefile.in (mips_tdep_h): Define.
1232         (mips-tdep.o): Add mips_tdep_h to dependency list.
1233         * mips-tdep.h: New file.
1234         * mips-tdep.c (mips-tdep.h): Include.
1235         (enum mips_abi): Move to mips-tdep.h.
1236         (mips_abi): New function.
1237
1238 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1239
1240         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1241
1242 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1243
1244         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1245         function.
1246         (lookup_symbol_aux_minsyms): New function.
1247
1248 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1249
1250         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1251
1252 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1253
1254         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1255         which is an obsolete macro name.
1256
1257 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1258
1259         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1260         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1261
1262 2002-12-03  H.J. Lu  (hjl@gnu.org)
1263
1264         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1265         (create_breakpoints): Make sure the addr_string field is not
1266         NULL.
1267
1268 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1269
1270         * sparc-nat.c (fetch_inferior_registers)
1271         (store_inferior_registers): Add comment on problem of LWP vs
1272         threads.
1273         
1274         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1275         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1276         (lin_lwp_store_registers): Remove.
1277         (init_lin_lwp_ops): Use fetch_inferior_registers
1278         and store_inferior_registers directly.
1279         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1280         (store_inferior_registers): Likewise.
1281         Fix PR gdb/725.
1282
1283 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1284
1285         * frame.h (get_frame_id): Convert to a function.
1286         (null_frame_id, frame_id_p): Declare.
1287         (frame_id_eq, frame_id_inner): Declare.
1288         (frame_id_build): New function.
1289         * frame.c (get_frame_id): Update.  Use null_frame_id.
1290         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1291         frame_id_inner.
1292         (null_frame_id, frame_id_p): Define.
1293         (frame_id_eq, frame_id_inner): Define.
1294         (frame_id_build): New function.
1295         * varobj.c (varobj_create): Update.
1296         (varobj_update): Update.
1297         * valops.c (value_assign): Update.
1298         (new_root_variable): Update.
1299         * infrun.c (save_inferior_status): Update.
1300         * breakpoint.c (watch_command_1): Update.
1301
1302 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1303
1304         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1305         (SNAP2): Likewise.
1306
1307 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1308
1309         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1310         patch.
1311
1312         * PROBLEMS: Mention PR gdb/725.
1313
1314 2002-12-03  Andreas Schwab  <schwab@suse.de>
1315
1316         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1317
1318 2002-12-02  Adam Fedor  <fedor@gnu.org>
1319             Klee Dienes  <kdienes@apple.com>
1320
1321         * objc-lang.c (objc_printstr): Add width arg to match
1322         printstr prototype.
1323         (compare_selectors): Add 'const' to arg types.
1324         (compare_classes): Likewise.
1325         (find_imps): Cast msym pointer to avoid compiler warning.
1326         (print_object_command): Validate the address before
1327         passing it to the print routine.
1328         (find_objc_msgcall_submethod): Change function argument to
1329         return an int.
1330         * objc-lang.h: Add 'extern' to all function declarations.
1331         (value_nsstring): Add declaration.
1332
1333 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1334
1335         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1336         Fixes a build failure on HP/UX.
1337
1338         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1339         failure on HP/UX. 
1340         (hpread_has_name): Advance declaration to avoid a compilation warning.
1341         (pst_syms_count): Add missing variable type. By change, the compiler
1342         was defaulting to int, which seems a good choice. Fixes a compilation
1343         warning.
1344         (pst_syms_size): Likewise.
1345  
1346 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1347
1348         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1349         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1350         later to set the proper gdbarch methods depending on the osabi.
1351         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1352
1353 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1354
1355         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1356         * osabi.c (gdb_osabi_name): Add strings images for the two new
1357         enum values.
1358         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1359
1360 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1361
1362         * MAINTAINERS (Java): Global maintainers are responible for Java.
1363         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1364         part Java maintainers.
1365
1366 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1367
1368         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1369         Fixes a compilation failure on AiX.
1370
1371 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1372
1373         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1374         why aix-thread.o is not listed.
1375
1376 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1377
1378         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1379         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1380         * gdbarch.h, gdbarch.c: Re-generate.
1381         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1382         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1383         * config/pa/tm-hppa.h, frame.h: Update.
1384         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1385         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1386         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1387         * cris-tdep.c, alpha-tdep.c: Update.
1388         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1389         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1390         (get_prev_frame): Ditto.
1391
1392 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1393
1394         * exec.c (xfer_memory): Replace boolean with int.
1395         * p-exp.y: Use 0 instead of false.
1396         * corelow.c (gdb_check_format): Change return type to int from
1397         boolean.
1398         * utils.c: Don't include <curses.h> or <term.h> first.
1399
1400 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1401
1402         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1403         (m68hc11_register_byte): Remove.
1404         (m68hc11_gdbarch_init): Don't set the above.
1405
1406 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1407
1408         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1409         by calling get_selected_frame.
1410         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1411         set_current_frame, create_new_frame, select_frame and
1412         get_current_frame.
1413         * remote-e7000.c (e7000_start_remote): Ditto.
1414         * remote-mips.c (common_open): Ditto
1415         * remote-rdp.c (remote_rdp_open): Ditto.
1416
1417 2002-11-29  Andreas Schwab  <schwab@suse.de>
1418
1419         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1420         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1421         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1422         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1423         read_memory_unsigned_integer instead of read_memory_integer when
1424         dealing with addresses and instruction opcodes.
1425         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1426         (m68k_linux_frame_saved_pc): Likewise.
1427
1428 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1429
1430         * stack.c (selected_frame, select_frame): Move from here ...
1431         * frame.c (selected_frame, select_frame): ... to here.  Include
1432         "language.h".
1433         * Makefile.in (frame.o): Update dependencies.
1434         * frame.c (get_selected_frame): New function.
1435         * frame.h (get_selected_frame): Declare.
1436         (deprecated_selected_frame): Rename selected_frame.
1437         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1438         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1439         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1440         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1441         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1442         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1443         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1444         * z8k-tdep.c, cli/cli-cmds.c: Update.
1445         
1446 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1447
1448         * frame.h (get_selected_block): Add comments.
1449
1450 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1451
1452         * frame.c (pc_notcurrent): New function.
1453         (find_frame_sal): New function.
1454         * frame.h (find_frame_sal): Declare.
1455         (struct symtab_and_line): Add opaque declaration.
1456         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1457         find_pc_line.
1458         (frame_info): Ditto.
1459         * ada-lang.c (find_printable_frame): Ditto.
1460
1461 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1462
1463         * configure.in: Check that the pthdebug library is recent enough
1464         before enabling thread support on native AiX.
1465         * configure: Regenerate.
1466
1467         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1468         from the list of object files as it is now appended by configure
1469         if thread support is enabled.
1470         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1471         if thread support is enabled.
1472
1473 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1474
1475         * stack.c (get_selected_block): In-line get_current_block.
1476         * frame.h (get_current_block): Delete declaration.
1477         * blockframe.c (get_current_block): Delete function.
1478
1479 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1480
1481         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1482         USE_GENERIC_DUMMY_FRAMES.
1483         * gdbarch.h, gdbarch.c: Regenerate.
1484         * valops.c, frame.c: Update.
1485         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1486         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1487         * config/pa/tm-hppa.h, blockframe.c: Update.
1488         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1489         * m68k-tdep.c, alpha-tdep.c: Ditto.
1490
1491         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1492         * mips-tdep.c: Ditto.
1493
1494 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1495
1496         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1497         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1498         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1499         * gdbarch.c, gdbarch.h: Re-generate.
1500         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1501         (CALL_DUMMY_LOCATION): Delete macro definition.
1502         (PC_IN_CALL_DUMMY): Delete macro definitions.
1503         
1504         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1505         default is already generic_pc_in_call_dummy.
1506         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1507         * v850-tdep.c (v850_gdbarch_init): Ditto.
1508         * sh-tdep.c (sh_gdbarch_init): Ditto.
1509         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1510         * mips-tdep.c (mips_gdbarch_init): Ditto.
1511         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1512         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1513         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1514         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1515         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1516         * avr-tdep.c (avr_gdbarch_init): Ditto.
1517         
1518         * arm-tdep.c (arm_gdbarch_init): Do not set
1519         use_generic_dummy_frames, default is already 1.
1520         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1521         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1522         * v850-tdep.c (v850_gdbarch_init): Ditto.
1523         * sh-tdep.c (sh_gdbarch_init): Ditto.
1524         * s390-tdep.c (s390_gdbarch_init): Ditto.
1525         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1526         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1527         * mips-tdep.c (mips_gdbarch_init): Ditto.
1528         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1529         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1530         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1531         * i386-tdep.c (i386_gdbarch_init): Ditto.
1532         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1533         * frv-tdep.c (frv_gdbarch_init): Ditto.
1534         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1535         * cris-tdep.c (cris_gdbarch_init): Ditto.
1536         * avr-tdep.c (avr_gdbarch_init): Ditto.
1537
1538         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1539         call_dummy_location, default is already AT_ENTRY_POINT.
1540         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1541         * v850-tdep.c (v850_gdbarch_init): Ditto.
1542         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1543         * sh-tdep.c (sh_gdbarch_init): Ditto.
1544         * s390-tdep.c (s390_gdbarch_init): Ditto.
1545         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1546         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1547         * mips-tdep.c (mips_gdbarch_init): Ditto.
1548         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1549         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1550         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1551         * i386-tdep.c (i386_gdbarch_init): Ditto.
1552         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1553         * frv-tdep.c (frv_gdbarch_init): Ditto.
1554         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1555         * cris-tdep.c (cris_gdbarch_init): Ditto.
1556         * avr-tdep.c (avr_gdbarch_init): Ditto.
1557         * arm-tdep.c (arm_gdbarch_init): Ditto.
1558         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1559
1560 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1561
1562         * frame.h: Update comments on set_current_frame, create_new_frame,
1563         flush_cached_frames, reinit_frame_cache, select_frame and
1564         selected_frame.
1565         
1566 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1567
1568         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1569         deprecated pc_in_call_dummy function.
1570         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1571         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1572         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1573         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1574         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1575
1576 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1577
1578         * Makefile.in: Remove Tix dependencies.
1579         * acinclude.m4: Ditto.
1580         * aclocal.m4: Ditto.
1581         * configure.in: Ditto.
1582         * configure: Regenerated.
1583         
1584 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1585
1586         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1587         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1588         * gdbarch.c: Re-generate.
1589         
1590 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1591
1592         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1593         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1594         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1595         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1596         pc_in_call_dummy_at_entry_point.
1597         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1598         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1599         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1600         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1601         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1602         pc_in_call_dummy_on_stack.
1603         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1604         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1605         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1606         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1607         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1608         
1609 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1610
1611         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1612         pc_in_call_dummy_before_text_end
1613         (deprecated_pc_in_call_dummy_after_text_end): Rename
1614         pc_in_call_dummy_after_text_end.
1615         (deprecated_pc_in_call_dummy_on_stack): Rename
1616         pc_in_call_dummy_on_stack.
1617         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1618         pc_in_call_dummy_at_entry_point.
1619         * m68k-tdep.c (m68k_gdbarch_init): Update.
1620         * s390-tdep.c (s390_gdbarch_init): Update.
1621         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1622         * vax-tdep.c (vax_gdbarch_init): Update.
1623         * sparc-tdep.c (sparc_gdbarch_init): Update.
1624         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1625         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1626         * i386-tdep.c (i386_gdbarch_init): Update.
1627         * frv-tdep.c (frv_gdbarch_init): Update.
1628         * cris-tdep.c (cris_gdbarch_init): Update.
1629         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1630         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1631         (deprecated_pc_in_call_dummy_after_text_end)
1632         (deprecated_pc_in_call_dummy_on_stack)
1633         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1634         * alpha-tdep.c (alpha_gdbarch_init): Update.
1635
1636 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1637
1638         * acconfig.h (HAVE_PREAD64): Add.
1639         * configure.in: Check for pread64.
1640         * config.in: Regenerated.
1641         * configure: Regenerated.
1642         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1643         * linux-proc.c (linux_proc_xfer_memory): New function.
1644         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1645
1646 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1647
1648         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1649         pdi's with no name.
1650
1651 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1652
1653         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1654         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1655
1656 2002-11-25  Jim Blandy  <jimb@redhat.com>
1657
1658         * symfile.c (init_objfile_sect_indices): New function.
1659         (default_symfile_offsets): Move the section-index-initializing
1660         stuff into init_objfile_sect_indices, and call that.
1661
1662         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1663         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1664
1665         * symfile.c (syms_from_objfile): Adjust indentation.
1666
1667         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1668         || info_verbose isn't true.
1669
1670 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1671
1672         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1673         default to get_frame_base.
1674         * gdbarch.h, gdbarch.c: Regenerate.
1675         * arch-utils.c (default_frame_address): Delete function.
1676         * arch-utils.h (default_frame_address): Delete declaration
1677
1678 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1679
1680         * varobj.c (find_frame_addr_in_frame_chain):
1681         Use get_frame_base instead of FRAME_FP,
1682         obvious fix.
1683
1684 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1685
1686         * frame.h (FRAME_FP): Delete macro.
1687         (get_frame_base): New function declaration.
1688         * frame.c (get_frame_base): New function.
1689         (get_frame_id): Use ->frame.
1690         (frame_find_by_id): Rewrite to use get_frame_id.
1691         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1692         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1693         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1694         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1695         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1696         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1697         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1698
1699 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1700
1701         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1702
1703 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1704
1705         * frame.c (set_unwind_by_pc): Revert change below, use
1706         PC_IN_CALL_DUMMY.
1707         (get_prev_frame): Ditto.
1708
1709 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1710
1711         * dummy-frame.c (pc_in_dummy_frame): New function.
1712         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1713         (find_dummy_frame): Update comment.
1714         (generic_pop_current_frame): Use get_frame_type.
1715         * dummy-frame.h (pc_in_dummy_frame): Declare.
1716         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1717         (create_new_frame): Use pc_in_dummy_frame.
1718         (get_prev_frame): Use pc_in_dummy_frame.
1719         (frame_saved_regs_register_unwind): Use get_prev_frame.
1720         (deprecated_generic_get_saved_register): Use get_prev_frame.
1721
1722 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1723
1724         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1725         from here ...
1726         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1727         (varobj_create): Note that frame ID should be used.
1728         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1729
1730 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1731
1732         * breakpoint.c: Include "gdb_assert.h".
1733         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1734         not being used.
1735         * Makefile.in (breakpoint.o): Update dependencies.
1736         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1737         deprecated_frame_in_dummy.
1738         * stack.c (print_frame_info_base): Ditto.
1739         (frame_info): Ditto.
1740         (print_frame_info_base): Ditto.  Delete dead code.
1741         
1742 2002-11-23  Andreas Schwab  <schwab@suse.de>
1743
1744         * Makefile.in (m68k_tdep_h): Define.
1745         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1746         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1747         * m68k-tdep.c: Move register number enum ...
1748         * m68k-tdep.h: ... to this new file and rename the constants from
1749         E_* to M68K_*.  All uses changed.
1750         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1751         * abug-rom.c: Include "m68k-tdep.h".  Use
1752         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1753         * cpu32bug-rom.c: Likewise.
1754         * dbug-rom.c: Likewise.
1755         * m68k-tdep.c: Likewise.
1756         * m68klinux-nat.c: Likewise.
1757         * remote-est.c: Likewise.
1758         * rom68k-rom.c: Likewise.
1759         * config/m68k/tm-linux.h: Likewise.
1760
1761 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1762
1763         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1764         dummy frame initialization code.
1765         * mips-tdep.c (mips_gdbarch_init): Ditto.
1766
1767 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1768
1769         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1770         attach will hang.
1771
1772 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1773
1774         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1775         to default_frame_address.
1776         * gdbarch.h, gdbarch.c: Re-generate.
1777
1778         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1779         or frame_locals_address to default_frame_address.
1780         * m68k-tdep.c (m68k_gdbarch_init): Update.
1781         * i386-tdep.c (i386_gdbarch_init): Update.
1782         * frv-tdep.c (frv_gdbarch_init): Update.
1783         * sh-tdep.c (sh_gdbarch_init): Update.
1784         * v850-tdep.c (v850_gdbarch_init): Update.
1785         * sparc-tdep.c (sparc_gdbarch_init): Update.
1786         * mips-tdep.c (mips_gdbarch_init): Update.
1787         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1788         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1789         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1790
1791         * cris-tdep.c (cris_frame_args_address): Delete function.
1792         (cris_frame_locals_address): Delete function.
1793         (cris_gdbarch_init): Do not set frame_args_address or
1794         frame_locals_address.
1795
1796 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1797
1798         * thread-db.c (thread_db_load): Tell the user what's going on
1799         if dlopen fails on libthread_db.
1800
1801 2002-11-23  Andreas Schwab  <schwab@suse.de>
1802
1803         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1804         invariant return values.
1805
1806 2002-11-22  Andreas Schwab  <schwab@suse.de>
1807
1808         * valops.c (value_slice): Move declaration of `offset' to avoid
1809         warning.
1810
1811 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1812
1813         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1814         (struct so_stuff): Add end_addr field.
1815         (register_loaded_dll): Calculate and store end address of loaded dll.
1816         (solib_address): New function.
1817         (child_solib_loaded_library_pathname): Pass carefully constructed
1818         section info to safe_symbol_file_add rather than ignoring it.
1819         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1820         DLL is loaded.
1821         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1822         (child_create_inferior): Fix a compiler warning.
1823         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1824         (solib_address): Declare new function.
1825
1826 2002-11-22  Andreas Schwab  <schwab@suse.de>
1827
1828         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1829         and FPS registers.
1830
1831 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1832
1833         * maint.c (_initialize_maint_cmds): Fix typo.  From
1834         Francesco Potorti` <pot@gnu.org>.
1835
1836 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1837
1838         * mips-tdep.c (mips_dump_tdep): Delete references to
1839         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1840         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1841         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1842         * printcmd.c (build_address_symbolic): Delete calls to
1843         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1844         (address_info): Ditto.
1845         Fix PR gdb/773.
1846         
1847 2002-11-19  Klee Dienes  <kdienes@apple.com>
1848             Adam Fedor  <fedor@gnu.org>
1849
1850         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1851         the ability to explicitly specify the quote characters and word
1852         break characters; if NULL is specified for either, use the old
1853         behavior of using the characters used by the completer.
1854         (skip_chars): New function.  Convenience wrapper around
1855         skip_quoted_chars to provide the original skip_chars behavior.
1856         * completer.h (skip_quoted_chars): Add prototype.
1857
1858 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1859
1860         Problems reported by Paul Eggert.
1861         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1862
1863 2002-11-19  Andreas Schwab  <schwab@suse.de>
1864
1865         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1866         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1867         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1868         (m68k_linux_frame_saved_pc): Move to ...
1869         * m68klinux-tdep.c: ... here.  New file.
1870         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1871         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1872
1873 2002-11-19  Adam Fedor  <fedor@gnu.org>
1874
1875         * objc-exp.y: Revert to old skip_quoted usage.
1876
1877 2002-11-19  Adam Fedor  <fedor@gnu.org>
1878
1879         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1880         (objc_lang_h): Define.
1881         (YYFILES): Add objc-exp.tab.c.
1882         (local-maintainer-clean): Remove objc-exp.tab.c.
1883         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1884         
1885 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1886
1887         * p-exp.y (typecast rule): Add automatic dereference of
1888         pascal classes if needed.
1889         (THIS): Set current_type.
1890         Automatically dereference pascal classes. 
1891         (typebase rule): Add ^typebase recognition.
1892
1893 2002-11-18  Adam Fedor  <fedor@gnu.org>
1894
1895         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1896         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1897         (op_name): Handle OP_OBJC_SELF.
1898         * Makefile.in (expprint.o): Add additional depends.
1899
1900 2002-11-18  Adam Fedor  <fedor@gnu.org>
1901
1902         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1903         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1904         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1905         * objc-exp.y: Likewise. 
1906
1907 2002-11-18  Adam Fedor  <fedor@gnu.org>
1908
1909         * gdb/parser-defs.h: (struct objc_class_str): New structure
1910         for parsing ObjC classes.
1911
1912 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1913
1914         * stack.c (frame_relative_level): Copy function from here ...
1915         * frame.c (frame_relative_level): ...to here.
1916
1917 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1918
1919         * frame.h (enum frame_type): Define.
1920         (get_frame_type): Declare.
1921         (struct frame_info): Add field `type'.  Delete field
1922         signal_handler_caller.
1923         (deprecated_set_frame_signal_handler_caller): Declare.
1924         * frame.c (get_frame_type): New function.
1925         (deprecated_set_frame_type): New function.
1926         (create_new_frame): Set the frame's type.
1927         (get_prev_frame): Similar.
1928         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1929         * s390-tdep.c: Ditto.
1930         * m68klinux-nat.c: Ditto.
1931         * ns32k-tdep.c: Ditto.
1932         * x86-64-linux-tdep.c: Ditto.
1933         * vax-tdep.c: Ditto.
1934         * rs6000-tdep.c: Ditto.
1935         * ppc-linux-tdep.c: Ditto.
1936         * i386-interix-tdep.c: Ditto.
1937         * mips-tdep.c: Ditto.
1938         * m68k-tdep.c: Ditto.
1939         * hppa-tdep.c: Ditto.
1940         * ia64-tdep.c: Ditto.
1941         * cris-tdep.c: Ditto.
1942         * arm-tdep.c: Ditto.
1943         * alpha-tdep.c: Ditto.
1944         * i386-tdep.c: Ditto.
1945         * stack.c: Ditto.
1946         * ada-lang.c: Ditto.
1947         * blockframe.c: Update.
1948         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1949         deprecated_set_frame_type instead of signal_handler_caller.
1950         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1951         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1952         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1953
1954 2002-11-18   Klee Dienes  <kdienes@apple.com>
1955
1956         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1957
1958 2002-11-18  Klee Dienes  <kdienes@apple.com>
1959
1960         * buildsym.c (pop_context): Add comment.
1961         
1962 2002-11-18  Klee Dienes  <kdienes@apple.com>
1963
1964         * buildsym.h (pop_context): Convert to function, defined in
1965         buildsym.c.
1966         * buildsym.c: Include gdb_assert.h.
1967         (pop_context): Implement as C function.  Add check for stack
1968         underflow.
1969         * dbxread.c (process_one_symbol): Complain and stop processing
1970         that symbol if we are already at the top of the context stack for
1971         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1972         when processing N_RBRAC.
1973
1974 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1975
1976         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1977         define.
1978         (struct target_waitstatus): Add opaque definition.
1979         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1980         * exec.c (init_exec_ops): Likewise.
1981         * fork-child.c (clone_and_follow_inferior): Remove.
1982         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1983         * inferior.h (clone_and_follow_inferior): Remove prototype.
1984         * infrun.c (follow_fork_mode_both): Remove.
1985         (follow_fork_mode_kind_names): Remove commented out "both".
1986         (follow_inferior_fork): Remove follow_fork_mode_both support.
1987         * inftarg.c (child_clone_and_follow_inferior): Remove.
1988         (child_post_follow_inferior_by_clone): Remove.
1989         (init_child_ops): Don't set to_clone_and_follow_inferior
1990         or to_post_follow_inferior_by_clone.
1991         * target.c (default_clone_and_follow_inferior): Remove.
1992         (cleanup_target): Don't set to_clone_and_follow_inferior
1993         or to_post_follow_inferior_by_clone.
1994         (find_default_clone_and_follow_inferior): Remove.
1995         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1996         (debug_to_clone_and_follow_inferior): Remove.
1997         (debug_to_post_follow_inferior_by_clone): Remove.
1998         (setup_target_debug): Don't set to_clone_and_follow_inferior
1999         or to_post_follow_inferior_by_clone.
2000         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2001         and to_post_follow_inferior_by_clone.
2002         (child_clone_and_follow_inferior): Remove prototype.
2003         (child_post_follow_inferior_by_clone): Remove prototype.
2004         (target_clone_and_follow_inferior): Remove macro.
2005         (target_post_follow_inferior_by_clone): Remove macro.
2006         (find_default_clone_and_follow_inferior): Remove prototype.
2007
2008 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2009
2010         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2011         inferior_has_vforked, and inferior_has_execd instead of
2012         target_has_forked, target_has_vforked, and target_has_execd.
2013         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2014         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2015         (CHILD_WAIT): Define.
2016         (child_wait): Add prototype.
2017         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2018         Add prototype.
2019         (hpux_has_vforked): Likewise, from child_has_vforked.
2020         (hpux_has_execd): Likewise, from child_has_execd.
2021         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2022         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2023         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2024         and hpux_has_syscall_event instead of the target hooks.
2025         * infrun.c (inferior_has_forked, inferior_has_vforked)
2026         (inferior_has_execd): New functions.
2027         * inftarg.c (not_same_real_pid): Remove.
2028         (child_wait): Remove references to not_same_real_pid,
2029         target_has_forked, target_has_vforked, target_has_execd,
2030         and target_has_syscall_event.
2031         (child_has_forked, child_has_vforked, child_has_execd)
2032         (child_has_syscall_event): Remove.
2033         (init_child_ops): Remove references to child_has_forked,
2034         child_has_vforked, child_has_execd, and child_has_syscall_event.
2035         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2036         (hpux_has_vforked): Likewise, from child_has_vforked.
2037         (hpux_has_execd): Likewise, from child_has_execd.
2038         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2039         * target.c (cleanup_target): Remove references to
2040         to_has_forked, to_has_vforked, to_has_execd, and
2041         to_has_syscall_event.
2042         (update_current_target): Likewise.
2043         (setup_target_debug): Likewise.
2044         (debug_to_has_forked): Remove.
2045         (debug_to_has_vforked): Remove.
2046         (debug_to_has_execd): Remove.
2047         (debug_to_has_syscall_event): Remove.
2048         * target.h (struct target_ops): Remove to_has_forked.
2049         to_has_vforked, to_has_execd, and to_has_syscall_event.
2050         (child_has_forked, child_has_vforked, child_has_execd)
2051         (child_has_syscall_event): Remove prototypes.
2052         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2053         prototypes.
2054         (target_has_forked, target_has_vforked, target_has_execd)
2055         (target_has_syscall_event): Remove macros.
2056
2057 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2058
2059         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2060         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2061         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2062         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2063         * target.c (cleanup_target): Remove reference to
2064         to_can_follow_vfork_prior_to_exec.
2065         (update_current_target): Likewise.
2066         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2067         (setup_target_debug): Remove reference to
2068         to_can_follow_vfork_prior_to_exec.
2069         * target.h (struct target_ops): Remove
2070         to_can_follow_vfork_prior_to_exec.
2071         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2072         (target_can_follow_vfork_prior_to_exec): Remove definition.
2073         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2074         define.
2075         * infrun.c (follow_vfork_when_exec): Remove.
2076         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2077         (follow_exec): Likewise.
2078         (handle_inferior_event): Likewise.
2079         (keep_going): Likewise.
2080
2081 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2082
2083         * frame.c (generic_unwind_get_saved_register): Make static.
2084         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2085         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2086         defaults to generic_unwind_get_saved_register.
2087         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2088         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2089         * frv-tdep.c (frv_gdbarch_init): Ditto.
2090         * i386-tdep.c (i386_gdbarch_init): Ditto.
2091         * s390-tdep.c (s390_gdbarch_init): Ditto.
2092         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2093         * v850-tdep.c (v850_gdbarch_init): Ditto.
2094         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2095         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2096         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2097
2098 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2099
2100         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2101         i386-tdep.c.
2102
2103 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2104
2105         * frame.h (sigtramp_saved_pc): Delete declaration.
2106         * blockframe.c (sigtramp_saved_pc): Delete function.
2107         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2108         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2109         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2110         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2111
2112 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2113
2114         * frame.c (frame_pc_unwind): New function.
2115         (frame_saved_regs_pc_unwind): New function.
2116         (frame_register_unwind): Pass unwind_cache instead of
2117         register_unwind_cache.
2118         (set_unwind_by_pc): Add unwind_pc parameter, set.
2119         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2120         (get_prev_frame): Ditto.
2121         * frame.h (frame_pc_unwind_ftype): Declare.
2122         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2123         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2124         (frame_pc_unwind): Declare.
2125         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2126         (struct dummy_frame): Add comment mentioning that values are for
2127         previous frame.
2128         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2129         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2130         (generic_file_frame_chain_valid): Ditto.
2131         * stack.c (frame_info): Ditto.
2132
2133 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2134
2135         * linespec.c (locate_first_half): New function.
2136         (decode_line_1): Move code into locate_first_half.
2137
2138 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2139
2140         * complaints.h: Add comment explaining how to eliminate a
2141         deprecated_complain call.
2142         * complaints.h: Fix spelling errors.
2143
2144 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2145
2146         * printcmd.c: Remove #include "disasm.h".
2147
2148 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2149
2150         * frame.h: Move the most relevant interface functions to the start
2151         of the file.
2152
2153 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2154
2155         * regcache.h (deprecated_registers): Rename registers.
2156         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2157         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2158         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2159         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2160         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2161         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2162         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2163         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2164         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2165         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2166         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2167         * v850ice.c: Update.
2168
2169 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2170
2171         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2172         NULL buffer.
2173
2174 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2175
2176         * regcache.h (deprecated_read_register_bytes): Rename
2177         read_register_bytes.
2178         (deprecated_write_register_bytes): Rename write_register_bytes.
2179         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2180         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2181         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2182         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2183         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2184         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2185         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2186         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2187         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2188         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2189         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2190         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2191         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2192         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2193
2194 2002-11-13  Jim Blandy  <jimb@redhat.com>
2195
2196         * findvar.c (read_var_value): Doc fix.
2197
2198 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2199
2200         * regcache.c (struct regcache): Replace passthough_p with
2201         readonly_p.
2202         (regcache_xmalloc): Initialize readonly_p.
2203         (build_regcache): Initialize readonly_p.
2204         (regcache_save): New function.
2205         (regcache_restore): New function.
2206         (regcache_cpy): Re-implement using regcache_save and
2207         regcache_restore.
2208         (regcache_raw_read): Update.
2209         (regcache_cooked_read): When a read-only cache, checked for cached
2210         pseudo register values.
2211         (regcache_raw_write): Assert that the cache is not read-only.
2212         Remove code handling a non-passthrough cache.
2213         * regcache.h (regcache_save): Declare.
2214         (regcache_restore): Declare.
2215
2216 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2217
2218         * regcache.c (struct regcache_descr): Add fields
2219         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2220         (init_legacy_regcache_descr): Compute the size of a cooked
2221         register cache and then assign that to sizeof_raw_registers.  Set
2222         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2223         (init_legacy_regcache_descr): Ditto.
2224
2225 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2226
2227         * regcache.c (register_buffer): Move to near start of file, update
2228         description.
2229         (regcache_raw_read): Use.
2230         (regcache_raw_write): Use.
2231         (struct regcache): Rename raw_registers to registers and
2232         raw_register_valid_p to register_valid_p.
2233         (regcache_xmalloc): Update.
2234         (regcache_xfree): Update.
2235         (register_buffer): Update.
2236         (regcache_cpy): Update.
2237         (regcache_cpy_no_passthrough): Update.
2238         (regcache_valid_p): Update.
2239         (deprecated_grub_regcache_for_registers): Update.
2240         (deprecated_grub_regcache_for_register_valid): Update.
2241         (set_register_cached): Update.
2242         (regcache_raw_write): Update.
2243
2244 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2245
2246         * p-exp.y (name_not_typename): Use copy_name to
2247         set current_type variable for fields of THIS.
2248
2249 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2250
2251         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2252         * monitor.c (init_base_monitor_ops): Likewise.
2253         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2254         * remote-array.c (init_array_ops): Likewise.
2255         * remote-e7000.c (init_e7000_ops): Likewise.
2256         * remote-es.c (init_es1800_ops): Likewise.
2257         (init_es1800_child_ops): Likewise.
2258         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2259         * remote-sim.c (init_gdbsim_ops): Likewise.
2260         * remote-st.c (init_st2000_ops): Likewise.
2261         * sol-thread.c (init_sol_core_ops): Likewise.
2262         (init_sol_thread_ops): Likewise.
2263         * v850ice.c (init_850ice_ops): Likewise.
2264         * win32-nat.c (init_child_ops): Likewise.
2265         * wince.c (init_child_ops): Likewise.
2266
2267 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2268
2269         * utils.c (gdb_realpath): Make rp a constant pointer.
2270
2271 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2272
2273         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2274         a constant buffer; cannonicalize_file_name(); realpath() with a
2275         pathconf() defined buffer, xstrdup().
2276
2277 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2278
2279         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2280         to hang2.C; hang3.c to hang3.C.
2281
2282 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2283
2284         * findvar.c (read_var_value): Reenable TLS code.
2285
2286 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2287             Jim Blandy  <jimb@redhat.com>
2288         
2289         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2290         * target.c (update_current_target): Add
2291         to_get_thread_local_address.
2292         * target.h (to_get_thread_local_address): Export.
2293         (target_get_thread_local_address): Define.
2294         (target_get_thread_local_address_p): Define.
2295         * thread-db.c: Include solib-svr4.h.
2296         (td_thr_tls_get_addr_p): Define.
2297         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2298         (thread_db_get_thread_local_address): New function.
2299         (init_thread_db_ops): Initialize to_get_thread_local_address.
2300         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2301         * configure: Regenerate.
2302         * config.in: Regenerate.
2303
2304 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2305
2306         * linespec.c (set_flags): New function.
2307         (decode_line_1): Move code into set_flags.
2308
2309 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2310
2311         * linespec.c (decode_line_1): Move chunks of code to separate
2312         functions.
2313         (initialize_defaults): New function.
2314         (decode_indirect): New function.
2315
2316 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2317
2318         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2319         instead of void_code_ptr.
2320         (sigtramp_saved_pc): Ditto.
2321
2322         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2323         i386_fp_regnum_p.
2324
2325 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2326
2327         * gdbtypes.h (struct main_type): Move artificial flag out of
2328         loc.  New member of ``struct field'' named static_kind.  Reduce
2329         overloaded meaning of bitsize.
2330         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2331         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2332         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2333
2334         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2335         new fields.
2336         (template_to_fixed_record_type, template_to_static_fixed_type)
2337         (to_record_with_fixed_variant_part): Likewise.
2338         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2339         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2340         * dwarfread.c (struct_type, enum_type): Likewise.
2341         * hpread.c (hpread_read_enum_type)
2342         (hpread_read_function_type, hpread_read_doc_function_type)
2343         (hpread_read_struct_type): Likewise.
2344         * mdebugread.c (parse_symbol): Likewise.
2345
2346 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2347
2348         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2349         * stack.c (print_frame_info_base): Update.
2350         (print_frame_info_base, frame_info): Update.
2351         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2352         (sparc_frame_saved_pc): Update.
2353         * ada-lang.c (find_printable_frame): Update.
2354         * breakpoint.c (deprecated_frame_in_dummy): Update.
2355         
2356 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2357
2358         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2359         defined.
2360         (regmap): Extend to cover all registers.
2361         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2362         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2363         definitions.
2364         (fetch_register, sore_register): Simplify.
2365         (old_fetch_inferior_registers, old_store_inferior_registers):
2366         Remove functions.
2367         (cannot_fetch_register, cannot_store_register): Change
2368         implementation to use regmap array to decide which registers
2369         cannot be fetched/stored.  This removes $orig_eax from the
2370         registers that cannot be fetched/stored.
2371         (fetch_inferior_registers): Call fetch_register directly instead
2372         of calling old_fetch_inferior_registers.
2373         (store_inferior_registers): Call store_register directly instead
2374         of calling old_store_inferior_registers.
2375         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2376         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2377         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2378
2379 2002-11-09  Klee Dienes  <kdienes@apple.com>
2380
2381         * i387-tdep.c (i387_supply_register): When called with NULL as a
2382         buffer, mark the register as not provided (to mirror the behavior
2383         of supply_register).
2384         (i387_supply_fxsave): Ditto.
2385         (i387_supply_fsave): Ditto (inherits the behavior from
2386         i387_supply_register).
2387
2388 2002-11-09  Klee Dienes  <kdienes@apple.com>
2389
2390         * blockframe.c (sigtramp_saved_pc): Use
2391         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2392         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2393         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2394         
2395 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2396
2397         * frame.c (get_prev_frame): Test prev_p to identify a previously
2398         unwound frame.  Initialize prev_p.
2399         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2400         comment.
2401
2402 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2403
2404         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2405         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2406         more comments.  Zap dead code.
2407
2408 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2409
2410         * infcmd.c (print_vector_info, print_float_info): Move code that
2411         checks whether the target has any registers and whether there is a
2412         selected frame up, such that it is also used if a target provides
2413         multi-arch definitions of these functions.
2414
2415 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2416
2417         * Makefile.in (DESTDIR): Define.
2418         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2419         prefix.
2420
2421         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2422         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2423
2424 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2425
2426         * i386-linux-tdep.c: Include "reggroups.h".
2427         (i386_linux_register_reggroup_p): New function.
2428         (i386_linux_init_abi): Set register_reggroup_p to
2429         i386_linux_register_reggroup_p.
2430         * i386-tdep.h (i386_register_reggroup_p): Declare.
2431         * i386-tdep.c: Include "reggroups.h".
2432         (i386_init_reggroups): New function.
2433         (i386_add_reggroups): New function.
2434         (i386_register_reggroup_p): New function.
2435         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2436         (_initialize_i386_tdep): Call i386_init_reggroups.
2437         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2438         specific reggroups.
2439
2440 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2441
2442         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2443         request that's available in *BSD.
2444
2445         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2446
2447         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2448         FDOFF_REGNUM.
2449
2450 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2451
2452         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2453         * dummy-frame.c (find_dummy_frame): Rename
2454         generic_find_dummy_frame, make static.  Return the dummy frame
2455         instead of the regcache.
2456         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2457         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2458         (dummy_frame_register_unwind): Rename
2459         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2460         * dummy-frame.h (dummy_frame_register_unwind): Rename
2461         generic_call_dummy_register_unwind.
2462
2463 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2464
2465         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2466         except the inclusion of "i386/tm-i386.h", to...
2467         * config/i386/nm-i386v42mp.h: ...here.
2468         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2469
2470 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2471
2472         * Makefile.in (frame.o): Update dependencies.
2473         * blockframe.c (current_frame, frame_obstack_alloc)
2474         (frame_saved_regs_zalloc, get_current_frame)
2475         (set_current_frame, create_new_frame)
2476         (set_unwind_by_pc, get_next_frame)
2477         (flush_cached_frames, reinit_frame_cache)
2478         (frame_saved_regs_register_unwind)
2479         (deprecated_generic_get_saved_register)
2480         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2481         (_initialize_blockframe): Move frame code from here...
2482         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2483         "annotate.h" and "dummy-frame.h".
2484         (_initialize_frame): New function.
2485
2486 2002-11-08  Jim Blandy  <jimb@redhat.com>
2487
2488         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2489         when we finish a function a context.
2490         * buildsym.h (outermost_context_p): New macro.
2491         (Bug analyzed by David Edelsohn.)
2492
2493 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2494
2495         * blockframe.c: Include "dummy-frame.h".
2496         (struct dummy_frame, dummy_frame_stack)
2497         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2498         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2499         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2500         (generic_save_call_dummy_addr, generic_pop_current_frame)
2501         (generic_pop_dummy_frame, generic_fix_call_dummy)
2502         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2503         dummy frame code from here...
2504         * dummy-frame.c: ...to here.  New file.
2505         * dummy-frame.h: New file.
2506         (generic_call_dummy_register_unwind): Declare.
2507         (generic_find_dummy_frame): Declare.
2508         * Makefile.in (SFILES): Add dummy-frame.c.
2509         (dummy-frame.o): Specify dependencies.
2510         (dummy_frame_h): Define.
2511         (COMMON_OBS): Add dummy-frame.o.
2512         (blockframe.o): Update dependencies.
2513
2514 2002-11-08  Jim Blandy  <jimb@redhat.com>
2515
2516         * dwarf2read.c (read_func_scope): Restore local_symbols and
2517         param_symbols after we finish the function context.  (Based on a
2518         patch from David Edelsohn.)
2519
2520 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2521
2522         * linespec.c (symbol_found): New function.
2523         (minsym_found): New function.
2524         (decode_line_1): Separate out some code into separate functions.
2525
2526 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2527
2528         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2529         the benefit of the interix target.
2530         * i386-tdep.h (i386_frameless_signal_p): Declare.
2531
2532 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2533
2534         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2535         declaration that snuck in from change below.
2536
2537 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2538
2539         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2540         all callers.
2541         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2542         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2543         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2544         (i386_mxcsr_regnum_p): new function.  Use instead of
2545         MXCSR_REGNUM_P.
2546         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2547         (i386_sse_regnum_p): Declare.
2548         (i386_mxcsr_regnum_p): Declare.
2549         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2550         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2551         (IS_FP_REGNUM): Update definition.
2552         (IS_FPU_CTRL_REGNUM): Update definition..
2553         (IS_SSE_REGNUM): Update definition..
2554         * i386v-nat.c (register_u_addr): Update.
2555         * go32-nat.c (fetch_register): Update.
2556         (store_register): Update.
2557
2558 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2559
2560         Preparation work to convert the hppa targets to multiarch partial.
2561
2562         * hppa-tdep.c: Add new functions replacing macro bodies from
2563         config/pa/tm-hppa.h. These function will be used to initialize
2564         the gdbarch structure. Import some comments from tm-hppa.h,
2565         and place them where appropriate, to avoid loosing them when
2566         we cleanup this file.
2567         (hppa_reg_struct_has_addr): New function.
2568         (hppa_inner_than): New function.
2569         (hppa_stack_align): New function.
2570         (hppa_pc_requires_run_before_use): New function.
2571         (hppa_instruction_nullified): New function.
2572         (hppa_register_byte): New function.
2573         (hppa_register_virtual_type): New function.
2574         (hppa_store_struct_return): New function.
2575         (hppa_cannot_store_register): New function.
2576         (hppa_frame_args_address): New function.
2577         (hppa_frame_locals_address): New function.
2578         (hppa_smash_text_address): New function.
2579         (hppa_coerce_float_to_double): New function. Requires the inclusion
2580         of "language.h".
2581
2582         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2583
2584         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2585         gdbarch-eligible macro to a call to the new associated function
2586         created in hppa-tdep.c.
2587         (INNER_THAN): Likewise.
2588         (STACK_ALIGN): Likewise.
2589         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2590         (INSTRUCTION_NULLIFIED): Likewise.
2591         (REGISTER_BYTE): Likewise.
2592         (REGISTER_VIRTUAL_TYPE): Likewise.
2593         (STORE_STRUCT_RETURN): Likewise.
2594         (CANNOT_STORE_REGISTER): Likewise.
2595         (FRAME_ARGS_ADDRESS): Likewise.
2596         (FRAME_LOCALS_ADDRESS): Likewise.
2597         (SMASH_TEXT_ADDRESS): Likewise.
2598         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2599         (ABOUT_TO_RETURN): Delete, as no longer used.
2600
2601 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2602
2603         * printcmd.c (disassemble_command): Remove obsolete function.
2604         (_initialize_printcmd): Do not create disassemble command here.
2605         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2606         disassemble command.
2607         (init_cli_cmds): Create disassemble command here instead.
2608
2609 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2610
2611         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2612
2613 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2614
2615         * regcache.h (regcache_cooked_read_using_offset_hack)
2616         (regcache_cooked_write_using_offset_hack): Delete declarations.
2617         (register_changed): Delete declaration.
2618         * regcache.c (regcache_cooked_read_using_offset_hack)
2619         (regcache_cooked_write_using_offset_hack): Delete functions.
2620         (cooked_xfer_using_offset_hack): Delete function.
2621         (register_changed): Delete function.
2622
2623 2002-11-07  Jim Blandy  <jimb@redhat.com>
2624
2625         * macroscope.c: #include "complaints.h".
2626         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2627         but not in the macro table.
2628         * Makefile.in (macroscope.o): Record dependency.
2629
2630 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2631
2632         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2633
2634 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2635
2636         * regcache.c (deprecated_registers_fetched): Update.
2637         * regcache.h (deprecated_registers_fetched): Rename
2638         registers_fetched.
2639         * remote-vxsparc.c (vx_read_register): Update.
2640         * remote-vxmips.c (vx_read_register): Update.
2641         * remote-vx68.c (vx_read_register): Update.
2642         * irix5-nat.c (fetch_core_registers): Update.
2643         * mipsm3-nat.c (fetch_inferior_registers): Update.
2644         * sun3-nat.c (fetch_inferior_registers): Update.
2645         * symm-nat.c (fetch_inferior_registers): Update.
2646         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2647         (fetch_core_registers): Update.
2648         (fetch_kcore_registers): Update.
2649         * mips-nat.c (fetch_inferior_registers): Update.
2650         * corelow.c (get_core_registers): Update.
2651         * a68v-nat.c (fetch_inferior_registers): Update.
2652
2653 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2654
2655         Put in place the framework necessary for multiarching the hppa targets.
2656         * hppa-tdep.c (hppa_gdbarch_init): New function.
2657         (hppa_dump_tdep): New function.
2658         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2659         tdep structure dumper.
2660         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2661         until the multi-arching conversion has partially been completed.
2662
2663 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2664
2665         * valops.c (value_assign): Merge lval_register case into
2666         lval_reg_frame_relative.  Use frame_register and
2667         regcache_cooked_write instead of get_saved_register and
2668         write_register_bytes.  After flushing the register cache, try to
2669         re-select the selected frame.
2670
2671 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2672
2673         * regcache.h (deprecated_register_valid): Rename register_valid.
2674         * regcache.c: Update.
2675         * ia64-aix-nat.c: Update.
2676         * i386gnu-nat.c: Update.
2677         * alpha-nat.c: Update.
2678         * sparc-nat.c: Update.
2679         * lynx-nat.c: Update.
2680         * remote-mips.c: Update.
2681
2682 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2683
2684         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2685         to end of file, to be more consistent with the pratice followed
2686         by other targets.
2687
2688 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2689
2690         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2691         (print_float_info): Print registers in float_reggroup.
2692         (print_vector_info): Print registers in vector_reggroup.
2693         (default_print_registers_info): When all, print registers in
2694         all_reggroup.  Otherwize, print registers in general_reggroup.
2695         (registers_info): Rewrite.  Add support for register groups.
2696         Eliminate a goto.
2697
2698 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2699
2700         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2701         ages.
2702         (symtab_symbol_info): Remove eons old ifdeffed out code.
2703         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2704         command.
2705
2706 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2707
2708         * c-exp.y: Add missing semi-colons.
2709         * f-exp.y: Add missing semi-colons.
2710         * m2-exp.y: Add missing semi-colons.
2711         * p-exp.y: Add missing semi-colons.
2712         Add empty action to start rule to avoid a type clash error when
2713         building with bison >= 1.50.
2714
2715 2002-11-06  Jim Blandy  <jimb@redhat.com>
2716
2717         * macrotab.h (struct macro_source_file): Doc fix.
2718
2719 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2720
2721         * varobj.c (child_exists, cplus_number_of_children): Change
2722         STREQ macro references to strcmp.
2723         (cplus_name_of_child): Change code to handle the fact that
2724         fields are not necessarily contiguous with regards to their 
2725         access control. This is a fix for PR gdb/792.
2726
2727 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2728
2729         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2730         * gdbarch.h, gdbarch.c: Regnerate.
2731         * frame.h (frame_register): Declare.
2732         * frame.c (frame_register): New function.
2733         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2734         GET_SAVED_REGISTER, otherwize call
2735         generic_unwind_get_saved_register.
2736         (frame_register_read): Use frame_register instead of
2737         get_saved_register.
2738
2739 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2740         
2741         From Jim Ingham  <jingham@apple.com>:
2742         * event-top.c (gdb_disable_readline): New function.
2743         (_initialize_event_loop): Move comment.
2744
2745 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2746
2747         * event-loop.c (start_event_loop): Add comment.
2748         Update copyright.
2749
2750 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2751
2752         * infcmd.c (default_print_registers_info): Do not call
2753         PRINT_REGISTER_HOOK.
2754
2755 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2756
2757         * sparc-tdep.c (sparc_print_register_hook): Make static.
2758         (sparc_print_registers_info): New function.
2759         (sparc_do_registers_info): New function.
2760         (sparclet_print_registers_info): New function.
2761         (sparclet_do_registers_info): New function.
2762         (do_sparc_print_registers_info): New function.
2763         (sparc_print_registers): New static function, clone of infcmd.c's
2764         default_print_registers_info.
2765         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2766         (sparclet_do_registers_info): Declare.
2767         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2768         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2769         Re-define.
2770         (sparc_do_registers_info): Declare.
2771         (PRINT_REGISTER_HOOK): Delete macro.
2772         (sparc_print_register_hook): Delete declaration.
2773
2774 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2775
2776         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2777         functions.
2778         (lookup_symbol_aux_local): New function.
2779         (lookup_symbol_aux_symtabs): New function.
2780         (lookup_symbol_aux_psymtabs): New function.
2781
2782 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2783
2784         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2785         previous values of 'objfile' and 'block'.
2786
2787 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2788
2789         * values.c (value_change_enclosing_type): Set 
2790         enclosing_type field correctly also for the case where 
2791         more memory needs to be allocated.
2792
2793 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2794
2795         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2796         of puts_filtered.
2797
2798         * i387-tdep.c (i387_print_float_info): Replace calls to
2799         register_read and deprecated_read_register_gen with calls to
2800         frame_register_read, and make the necessary adjustments to the
2801         surrounding code.
2802
2803 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2804
2805         * gdbarch.sh (register_reggroup_p): Allow default value.
2806         * gdbarch.h, gdbarch.c: Regenerate.
2807
2808 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2809
2810         * regcache.h: Add coment indicating replacements for deprecated
2811         functions.
2812
2813 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2814
2815         * reggroups.h, reggroups.c: New files.
2816         * regcache.c: Include "reggroups.h".
2817         (enum regcache_dump_what): Add `regcache_dump_groups'.
2818         (regcache_dump): Contract size of the "Type" column.  When
2819         specified, dump the register's groups.
2820         (maintenance_print_register_groups): New function.
2821         (_initialize_regcache): Add command `maint print register-groups'.
2822         * Makefile.in (COMMON_OBS): Add reggroups.o
2823         (SFILES): Add reggroups.c.
2824         (reggroups_h): Define.
2825         (regcache.o, gdbarch.o): Update dependencies.
2826         (reggroups.o): Specify dependencies.
2827         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2828         Add opaque declaration for `struct reggroup' in generated .h file.
2829         Include "reggroups.h" in generated .c file.
2830         gdbarch.h, gdbarch.c: Re-generate.
2831
2832 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2833
2834         * regcache.h (deprecated_read_register_gen): Rename
2835         read_register_gen.
2836         (deprecated_write_register_gen): Rename write_register_gen.
2837         * i387-tdep.c: Update.
2838         * x86-64-linux-nat.c: Update
2839         * wince.c: Update.
2840         * thread-db.c: Update.
2841         * win32-nat.c: Update.
2842         * mips-tdep.c: Update.
2843         * d10v-tdep.c: Update.
2844         * cris-tdep.c: Update.
2845         * remote-sim.c: Update.
2846         * remote-rdi.c: Update.
2847         * remote-rdp.c: Update.
2848         * frame.c: Update.
2849         * target.c: Update.
2850         * blockframe.c: Update.
2851         * x86-64-tdep.c: Update.
2852         * xstormy16-tdep.c: Update.
2853         * sh-tdep.c: Update.
2854         * s390-tdep.c: Update.
2855         * rs6000-tdep.c: Update.
2856         * sparc-tdep.c: Update.
2857         * i386-tdep.c: Update.
2858         * dwarf2cfi.c: Update.
2859         * regcache.c: Update.
2860
2861 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2862
2863         New interix-specific files:
2864         * config/i386/nm-interix.h: New file.
2865         * config/i386/interix.mh: New file.
2866         * config/i386/interix.mt: New file.
2867         * i386-interix-nat.c: New file.
2868         * i386-interix-tdep.c: New file.
2869
2870 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2871
2872         * frame.h (deprecated_generic_get_saved_register): Rename
2873         generic_get_saved_register.
2874         * blockframe.c (deprecated_generic_get_saved_register): Update.
2875         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2876         (xstormy16_frame_saved_register): Update.
2877         * sh-tdep.c (sh_gdbarch_init): Update.
2878         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2879         * ia64-tdep.c (ia64_get_saved_register): Update.
2880         * cris-tdep.c (cris_gdbarch_init): Update.
2881         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2882         * arm-tdep.c (arm_gdbarch_init): Update.
2883
2884 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2885
2886         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2887
2888 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2889
2890         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2891         trampolines in sigaction.
2892
2893 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2894
2895         * h8300-tdep.c: Include "gdb_assert.h".
2896         (h8300_print_register): Add gdbarch, file and frame parameters.
2897         Use frame_read_unsigned_register to read the register's value.
2898         Use fprintf_filtered to display output.
2899         (h8300_print_registers_info): Replace h8300_do_registers_info.
2900         (h8300_gdbarch_init): Set print_registers_info.
2901
2902 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2903
2904         * frame.c (frame_read_unsigned_register): New function.
2905         (frame_read_signed_register): New function.
2906         * frame.h (frame_read_unsigned_register): Declare.
2907         (frame_read_signed_register): Declare.
2908
2909 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2910
2911         * h8500-tdep.c (h8500_print_registers_info): New static function,
2912         clone of infcmd.c's default_print_registers_info.
2913         (h8500_do_registers_info): New funtion.
2914         (h8500_print_register_hook): Rename print_register_hook, make
2915         static.
2916
2917         * config/h8500/tm-h8500.h: Update copyright.
2918         (DEPRECATED_DO_REGISTERS_INFO): Define.
2919         (h8500_do_registers_info: Declare.
2920         (PRINT_REGISTER_HOOK): Delete macro.
2921         (print_register_hook): Delete function.
2922
2923 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2924
2925         * z8k-tdep.c (z8k_print_register_hook): Make static.
2926         (z8k_print_registers_info): New static function, clone of
2927         infcmd.c's default_print_registers_info.
2928         (z8k_do_registers_info): New function.  Wrap
2929         z8k_print_registers_info.
2930         * config/z8k/tm-z8k.h: Update copyright.
2931         (PRINT_REGISTER_HOOK): Delete macro.
2932         (z8k_print_register_hook): Delete declaration.
2933         (DEPRECATED_DO_REGISTERS_INFO): Define.
2934         (z8k_do_registers_info): Declare.
2935
2936 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2937
2938         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2939         as this is already provided by value.h, and was actually causing
2940         a compilation error because of a conflict in parameter type
2941         declaration due to a missing const keyword.
2942         (low_text_segment_addres): Fix a compilation warning.
2943
2944 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2945
2946         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2947         registers without a name.
2948         (mips_linux_cannot_store_register): Don't store registers without
2949         a name.
2950
2951 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2952
2953         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2954         out.)
2955         * symtab.h: Delete prototype for find_addr_symbol.
2956
2957 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2958
2959         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2960         DO_REGISTERS_INFO.
2961         gdbarch.h, gdbarch.c: Re-generate.
2962         * infcmd.c (default_print_registers_info): Update reference.
2963         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2964         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2965         * sh-tdep.c (sh_gdbarch_init): Ditto.
2966         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2967         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2968
2969 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2970
2971         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2972         cfi_init_extra_frame_info.
2973         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2974         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2975
2976         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2977         target where necessary.  Add more comments and remove the ones
2978         that don't provide any useful information.
2979
2980         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2981         deprecated_read_register_dummy with
2982         frame_unwind_unsigned_register.
2983
2984         * i386-tdep.c (i386_extract_struct_value_address): Use
2985         regcache_raw_read_unsigned instead of
2986         regcache_cooked_read_unsigned since we know that the register
2987         we're reading isn't a pseudo register.  Rename variable 'val' into
2988         the more descriptive 'addr'.
2989
2990         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2991         (x86_64_push_return_address): Add comment.
2992         (x86_64_pop_frame): Make static.
2993         (examine_argument): Clarify comment.
2994         (x86_64_skip_prologue): Make prolog_expact variable static.
2995
2996         * dwarf2cfi.c: Fix some formatting problems.
2997         (context_cpy, read_encoded_pointer): Clarify comments.
2998
2999         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3000         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3001         i386 target back into x86_64_gdbarch_init.  Add some comments and
3002         remove meaningless ones.
3003
3004 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3005
3006         * complaints.h (struct deprecated_complaint): Rename `struct
3007         complaint'.
3008         * complaints.c (complain): Update.
3009         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3010         incorrect comment indicating that "symfile.h" was being included
3011         for the `struct complaint' definition.
3012         * remote-vx.c: Update.
3013         * objc-lang.c: Update.
3014         * xcoffread.c: Update.
3015         * hpread.c: Update.
3016         * mdebugread.c: Update.
3017         * stabsread.c: Update.
3018         * dwarf2read.c: Update.
3019         * dwarfread.c: Update.
3020         * elfread.c: Update.
3021         * coffread.c: Update.
3022         * stabsread.h: Update.
3023         * dbxread.c: Update.
3024         * buildsym.c: Update.
3025         * gdbtypes.c: Update.
3026         * macrotab.c: Update.
3027
3028 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3029
3030         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3031         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3032         (x86_64_init_abi): ...new function.
3033
3034         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3035         * i386v-nat.c: Include "i386-tdep.h".
3036
3037 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3038
3039         * gdbtypes.c (address_space_name_to_int): Update.
3040         (address_space_int_to_name): Update.
3041         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3042         multi-arch predicate.
3043         (address_class_name_to_type_flags): Ditto.
3044         * gdbarch.h, gdbarch.c: Re-generate.
3045         
3046         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3047
3048 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3049
3050         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3051
3052 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3053
3054         * symtab.h (INIT_SAL): Delete macro.
3055         (init_sal): Export.
3056         * symtab.c (init_sal): New function.
3057
3058         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3059         to init_sal function call.
3060         (find_sal_from_funcs_and_line): Ditto.
3061         (all_sals_for_line): Ditto. 
3062         * breakpoint.c (create_internal_breakpoint): Ditto. 
3063         (create_fork_vfork_event_catchpoint): Ditto. 
3064         (create_exec_event_catchpoint): Ditto. 
3065         (parse_breakpoint_sals): Ditto. 
3066         (watch_command_1): Ditto. 
3067         (handle_gnu_4_16_catch_command): Ditto.
3068         (clear_command): Ditto. 
3069         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3070         * infcmd.c (run_stack_dummy): Ditto. 
3071         * infrun.c (process_event_stop_test): Ditto.
3072         (check_sigtramp2): Ditto.
3073         (step_over_function): Ditto. 
3074         * linespec.c (decode_line_2): Ditto. 
3075         (decode_line_1): Ditto. 
3076         * source.c (line_info): Ditto. 
3077         * symtab.c (find_pc_sect_line): Ditto.
3078
3079 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3080
3081         * dwarf2cfi.c (struct context)
3082         (struct context_reg): Moved to dwarf2cfi.h
3083         (context_alloc, frame_state_alloc, context_cpy):
3084         Made extern instead of static, removed prototypes.
3085         * dwarf2cfi.h (struct context)
3086         (struct context_reg): New, moved from dwarf2cfi.c
3087         (context_alloc, frame_state_alloc, context_cpy):
3088         New prototypes.
3089         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3090         Changed from static to extern.
3091         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3092         (LINUX_SIGCONTEXT_FP_OFFSET)
3093         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3094         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3095         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3096         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3097         set_gdbarch_*() calls now use x86-64 specific functions 
3098         instead of DWARF2 CFI ones.
3099         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3100         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3101         (x86_64_init_extra_frame_info): New prototypes.
3102         
3103 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3104
3105         * linespec.c: #include "parser-defs.h".
3106         Delete prototype for find_template_name_end.
3107         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3108
3109 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3110
3111         * NEWS: add recent mi fixes.
3112         * varobj.c (struct varobj): Add new "updated" flag.
3113         (new_variable): Default "updated" flag to 0.
3114         (varobj_set_value): Set "updated" flag to 1 if value
3115         changes.
3116         (varobj_update): Check varobj "updated" flag before
3117         comparing old and refreshed values.  Fix for
3118         PR gdb/702.
3119
3120 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3121
3122         * parse.c (parse_exp_1): Use BLOCK_START.
3123         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3124         SYMBOL_BLOCK_VALUE.
3125         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3126
3127 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3128
3129         * symtab.c: Delete cplusplus_hint.
3130         Delete prototype for find_template_name_end.
3131
3132 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3133
3134         * symtab.h: Update comment.
3135
3136 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3137
3138         * printcmd.c (address_info): Restore quotes in output.
3139         * valops.c (value_of_local): Restore quotes in error message.
3140
3141 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3142
3143         * symtab.c (symbol_demangled_name): New function.
3144         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3145         turning most of it into a function.
3146         (symbol_demangled_name): Export.
3147
3148 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3149
3150         * valops.c (value_of_local): Restore quotes in error message.
3151
3152 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3153
3154         * symtab.c (symbol_init_language_specific): New function.
3155         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3156         turning most of it into a function.
3157         (symbol_init_language_specific): Export.
3158
3159 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3160
3161         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3162         (dwarf_attr_name): Ditto.
3163         (dwarf_type_encoding_name): Ditto.
3164         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3165         (process_die): Handle DW_TAG_namespace,
3166         DW_TAG_imported_declaration, DW_TAG_imported_module.
3167         (read_namespace): New function.
3168
3169 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3170
3171         * configure.in: Define NEW_PROC_API on Interix too.
3172         * configure: Regenerate.
3173
3174 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3175
3176         * configure: Regenerate using the proper version of autoconf.
3177
3178 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3179
3180         * findvar.c (read_var_value): Temporarily disable TLS code, until
3181         complete TLS support is added.
3182
3183 2002-10-21  Jim Blandy  <jimb@redhat.com>
3184             Elena Zannoni  <ezannoni@redhat.com>
3185
3186         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3187         for thread local storage locations.
3188         (struct symbol): Add objfile field.
3189         (SYMBOL_OBJFILE): Define.
3190         * dwarf2read.c (is_thread_local): New static variable.
3191         (new_symbol): If variable is in thread local fill in address class
3192         and objfile appropriately.
3193         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3194         stack operation.
3195         * printcmd.c (address_info): Print the information for thread
3196         local storage variable.
3197         * findvar.c (read_var_value): In case of thread local variable,
3198         defer to the target vector code to compute address.
3199
3200 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3201
3202         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3203         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3204
3205 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3206
3207         * symtab.h (address_class):  Rename
3208         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3209         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3210         * printcmd.c (address_info): Ditto.
3211         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3212
3213 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3214
3215         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3216         DBREG_DRX macro to acces debug registers.
3217
3218         * Makefile.in (i386obsd-tdep.o): New target.
3219
3220         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3221         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3222
3223         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3224         * config/i386/obsd.mt: New file.
3225         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3226         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3227         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3228         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3229         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3230         * i386obsd-tdep.c: New file.
3231
3232 2002-10-19  Adam Fedor  <fedor@gnu.org>
3233
3234         * objc-exp.y (name_not_typename): Fix invalid comment.  
3235
3236 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3237
3238         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3239         to allocate partial syms and macro byte caches.
3240
3241 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3242
3243         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3244
3245 2002-10-18  Adam Fedor  <fedor@gnu.org>
3246
3247         * stabsread.c (find_name_end): New function.
3248         (define_symbol): Use it.
3249
3250 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3251
3252         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3253         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3254         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3255         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3256
3257 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3258
3259         * symfile.h: Add opaque declaration for struct obstack.
3260         Declare obsavestring to take a const char *.
3261         * symfile.c (obsavestring): Make first argument a const char *.
3262
3263 2002-10-16  Adam Fedor  <fedor@gnu.org>
3264
3265         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3266         names when matching breakpoints in current file.
3267
3268 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3269
3270         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3271         (read_tag_pointer_type): Add address class support.
3272         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3273         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3274         New methods.
3275         * gdbarch.h, gdbarch.c: Regenerate.
3276         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3277         (make_type_with_address_space, recursive_type_dump): Add address
3278         class support.
3279         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3280         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3281         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3282
3283 2002-10-16  Klee Dienes  <kdienes@apple.com>
3284
3285         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3286         to get the last character of a char[] buffer, not
3287         name[sizeof(vptr_name)-1].
3288
3289 2002-10-14  Adam Fedor  <fedor@gnu.org>
3290
3291         * symtab.h: New objc_specific struct.
3292         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3293         (SYMBOL_DEMANGLED_NAME): Likewise.
3294
3295 2002-10-14  Adam Fedor  <fedor@gnu.org>
3296
3297         * symfile.c (init_filename_language_table): Add ObjC file extension.
3298
3299 2002-10-14  Adam Fedor  <fedor@gnu.org>
3300
3301         * utils.c (puts_filtered_tabular): New function.
3302         (fprintf_symbol_filtered): Get ObjC demangled name.
3303         * defs.h (puts_filtered_tabular): Declared.
3304
3305 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3306
3307         * c-lang.h (c_type_print_varspec_prefix): Delete.
3308         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3309         ``need_post_space'' parameter.  Adjust all callers.
3310
3311 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3312  
3313         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3314         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3315         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3316         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3317
3318 2002-10-13  Adam Fedor  <fedor@gnu.org>
3319
3320         * source.c (print_source_lines): Update comments.
3321
3322 2002-10-13  Adam Fedor  <fedor@gnu.org>
3323
3324         * valops.c (value_of_local): New function.
3325         (value_of_this): Use it.
3326         * value.h (value_of_local): Declared.
3327
3328 2002-10-13  Adam Fedor  <fedor@gnu.org>
3329
3330         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3331         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3332
3333 2002-10-12  Adam Fedor  <fedor@gnu.org>
3334
3335         * language.c (binop_result_type): Add language_objc to case.
3336         (integral_type): Likewise.
3337         (character_type): Likewise.
3338         (string_type): Likewise.
3339         (boolean_type): Likewise.
3340         (structured_type): Likewise.
3341         (binop_type_check): Likewise.
3342
3343 2002-10-11  Adam Fedor  <fedor@gnu.org>
3344
3345         * printcmd.c (address_info): Print 'self' for ObjC.
3346
3347 2002-10-11  Adam Fedor  <fedor@gnu.org>
3348
3349         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3350         OP_SELF.
3351
3352 2002-10-11  Adam Fedor  <fedor@gnu.org>
3353
3354         * language.h (CAST_IS_CONVERSION): Add language_objc.
3355
3356 2002-10-11  Adam Fedor  <fedor@gnu.org>
3357
3358         * defs.h (enum language): Add language_objc.
3359
3360 2002-10-11  Klee Dienes  <kdienes@apple.com>
3361
3362         * corefile.c (read_memory_typed_address): New function.
3363         * gdbcore.h (read_memory_typed_address): Add prototype.
3364         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3365         to read a value destined for a CORE_ADDR, not read_memory_integer.
3366         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3367         (f77_get_dynamic_lowerbound): Ditto.
3368
3369 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3370
3371         * utils.c (string_to_core_addr): After turning string into
3372         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3373         which will do necessary sign-extension, etc.
3374
3375 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3376
3377         * c-exp.y (THIS): Delete token and grammar rule.
3378         (yylex): Don't return THIS.
3379         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3380         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3381         * demangle.c (cplus_markers): Update comment.  Put '$'
3382         first.  Remove CPLUS_MARKER.
3383         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3384         * jv-exp.y (THIS): Delete token and grammar rule.
3385         (yylex): Don't return THIS.
3386         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3387         * objc-exp.y (THIS): Delete token and grammar rule.
3388         (yylex): Don't return THIS.
3389         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3390         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3391         (read_member_functions): Likewise for opname.
3392         (read_tilde_fields): Use is_cplus_marker.
3393
3394         * defs.h (CPLUS_MARKER): Don't define.
3395         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3396         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3397         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3398         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3399         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3400
3401         * config/i386/tm-i386v4.h: Delete file.
3402         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3403         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3404         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3405         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3406         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3407         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3408         * config/i386/i386v4.mt (TM_FILE): Likewise.
3409         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3410
3411 2002-10-10  Marko Mlinar  <markom@opencores.org>
3412
3413         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3414         accidentially not commited 2002-10-09
3415         * gdbarch.h, gdbarch.c: Re-generate.
3416
3417 2002-10-09  Marko Mlinar  <markom@opencores.org>
3418
3419         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3420         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3421         * gdbarch.h, gdbarch.c: Re-generate.
3422
3423 2002-10-08  Petr Sorfa <petrs@caldera.com>
3424
3425         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3426
3427         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3428         so we can work on more than one compilation unit at a time.  This
3429         helps prepare GDB to handle inter-CU die references.
3430         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3431         the code to be defined before struct comp_unit_head.
3432         (comp_unit_head): Added new members - offset, cu_head,
3433         begin_die, next and dwarf2_abbrevs.
3434         (dwarf2_abbrevs): Removed single static var; now member of
3435         struct comp_unit_head.
3436         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3437         members.
3438         (psymtab_to_symtab_1): Changed to work with the new
3439         struct comp_unit_head.
3440         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3441         constructs the dwarf2_abbrevs[] inside the cu_header.
3442         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3443         dwarf2_abbrev table to clean up.
3444         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3445         handling of dwarf2_abbrevs inside the cu_header.
3446         (read_partial_die): Now supports the call to the new
3447         dwarf2_lookup_abbrev.
3448         (read_full_die): Now supports the call to the new
3449         dwarf2_lookup_abbrev.
3450
3451 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3452
3453         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3454         insure that shell variables, such as "transformed_name" are propagated
3455         to later shell statements in rule.
3456
3457 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3458
3459         * config/i386/nm-i386sco.h: Add protection against
3460         multiple-inclusion.  Include "i386/nm-i386v.h".
3461         (REGISTER_U_ADDR): Remove define.
3462         (i386_register_u_addr): Remove prototype.
3463
3464 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3465
3466         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3467         before treating it as a single-step event.
3468
3469 2002-10-03  Adam Fedor  <fedor@gnu.org>
3470
3471         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3472         (objc_demangle): Remove assignment in if statements, Replace
3473         free with xfree.
3474         (add_msglist): Likewise.
3475         (end_msglist): Likewise.
3476         (complare_selectors): Likewise.
3477         (selectors_info): Likewise.
3478         (compare_classes): Likewise.
3479         (classes_info): Likewise.
3480         (print_object_command): Likewise.
3481         (find_objc_msgcall_submethod): Replace PTR with void *.
3482         * objc-lang.h: Remove check for __STDC__.
3483
3484 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3485
3486         * ui-out.h (ui_out_field_fmt_int): New prototype.
3487         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3488         of field width and alignment.
3489         * stack.c (print_frame_info_base): When printing frame level, use
3490         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3491         PR gdb/192
3492
3493 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3494
3495         * MAINTAINERS: Add self to Write After Approval list.
3496
3497 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3498
3499         * infcmd.c (interrupt_target_command_wrapper): Delete.
3500         (interrupt_target_command): Make non static.
3501         (nofp_registers_info): Make static.
3502         * stack.c (return_command_wrapper): Delete.
3503         (return_command): Make non static.
3504
3505 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3506
3507         * event-top.c (gdb_setup_readline): New function. Code moved from
3508         _initialize_event_loop().
3509         (_initialize_event_loop): Call gdb_setup_readline().
3510
3511 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3512
3513         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3514         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3515         * gdbarch.h, gdbarch.c: Re-generate.
3516
3517 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3518
3519         Fix PR gdb/778
3520         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3521         before recursing.
3522         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3523         of fill_in_vptr_fieldno.
3524
3525 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3526
3527         * inferior.h (registers_info, stepi_command, nexti_command,
3528         continue_command, interrupt_target_command): Export from infcmd.c.
3529         * frame.h (args_info, selected_frame_level_changed_hook,
3530         return_command): Export from stack.c.
3531         * v850ice.c (stepi_command, nexti_command, continue_command): use
3532         prototypes from inferior.h.
3533         * tracepoint.c (registers_info, args_info, locals_info): Use
3534         prototypes from frame.h and inferior.h.
3535         * Makefile.in (mi-main.o): Add dependency on frame.h.
3536
3537 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3538
3539         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3540         value in register 3 adjusted by ppc_gp0_regnum.
3541
3542         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3543
3544 2002-10-02  Marko Mlinar <markom@opencores.org>
3545
3546         * MAINTAINERS: Add myself to the Write After Approval list.
3547
3548 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3549
3550         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3551         of the section for the N64 ABI, fixed.
3552
3553         * config/mips/tm-irix6.h: Include solib.h.
3554
3555 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3556
3557         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3558         GNU operators.
3559
3560 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3561
3562         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3563         and that "mi0" syntax has been removed.
3564
3565 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3566
3567         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3568         * ppc-sysv-tdep.c: #include "gdb_string.h".
3569         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3570         pacify GCC.
3571
3572 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3573
3574         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3575         "vrsave"'s register number.
3576
3577 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3578
3579         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3580         use frame_unwind_signed_register to obtain the PC.
3581         (mips_frame_chain): Handle a generic dummy frame.
3582         (mips_init_extra_frame_info): When a generic dummy frame, don't
3583         re-compute the frame base.
3584         (mips_pop_frame): Handle generic dummy frames.
3585         (mips_gdbarch_init): When generic dummy frames, set
3586         use_generic_dummy_frames, push_dummy_frame to
3587         generic_push_dummy_frame, pc_in_call_dummy to
3588         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3589         generic_save_dummy_frame_tos.
3590
3591 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3592
3593         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3594         against TOP when TOP was explictly set.
3595         (generic_push_dummy_frame): Set TOP to zero.
3596
3597 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3598
3599         * event-loop.c (start_event_loop): Rename variable 'result' to
3600         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3601
3602 2002-09-30  Keith Seitz  <keiths@redhat.com>
3603
3604         * gdb-events.sh (selected_thread_changed): New event.
3605         * gdb-events.c: Regenerated.
3606         * gdb-events.h: Regenerated.
3607
3608 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3609
3610         * MAINTAINERS: Add self to Write After Approval list.
3611
3612 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3613
3614         * disasm.c: New file.  
3615         * disasm.h: New file.  
3616         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3617         (compare_lines): Ditto.
3618         (dump_insns): Ditto.
3619         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3620         argument.
3621         (do_assembly_only): Ditto.
3622         (do_disassembly): Renamed to gdb_disassembly and moved to
3623         disasm.c.  Sdded uiout argument.
3624         * Makefile.in: Add new files.  Reorder SFILES list. Update
3625         dependencies.  Include libgdb.a later in the insight executable.
3626
3627 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3628
3629         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3630         bfd/elf64-alpha-fbsd.c.
3631
3632 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3633
3634         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3635         i386gnu-tdep.c.
3636
3637 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3638
3639         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3640         __FUNCTION__.
3641         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3642         function name.
3643         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3644         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3645         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3646         (S_msg_sig_post_reply): Ditto.
3647         
3648 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3649
3650         * sh-tdep.c (sh_use_struct_convention): Use definition according
3651         to ABI.
3652         (sh_push_arguments): Store in register with correct endianess.
3653         (sh_default_store_return_value): Ditto.
3654         (sh_gdbarch_init): Set sizeof long double to 8.
3655
3656 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3657
3658         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3659         Fix some whitespace problems.
3660
3661 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3662
3663         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3664         (mcore-tdep.o): Ditto.
3665         (ns32k-tdep.o): Ditto.
3666         (ns32knbsd-tdep.o): Ditto.
3667         (sh3-rom.o): Ditto.
3668         (vax-tdep.o): Ditto.
3669         * cris-tdep.c: #include "gdb_string.h"
3670         * mcore-tdep.c: Ditto.
3671         * ns32k-tdep.c: Ditto.
3672         * ns32knbsd-tdep.c: Ditto.
3673         * sh3-rom.c: Ditto.
3674         * vax-tdep.c: Ditto.
3675
3676 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3677
3678         * config/djgpp/fnchange.lst: Add entries for
3679         gdb/testsuite/gdb.c++/m-static files.
3680
3681 2002-09-27  Jim Wilson  <wilson@redhat.com>
3682
3683         * MAINTAINERS: Add myself to the Write After Approval list.
3684
3685 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3686
3687         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3688
3689
3690 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3691
3692         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3693         frame.
3694
3695 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3696
3697         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3698         (rs6000_struct_return_address): Delete variable.
3699         (rs6000_store_struct_return): Update.
3700         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3701         deprecated_extract_struct_value_address.
3702         (rs6000_frame_align): New function.
3703         (rs6000_gdbarch_init): Set frame_align.
3704
3705 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3706
3707         From Grace Sainsbury <graces@redhat.com>:
3708         * Makefile.in (gdbtk-main.o): New target.
3709         (gdb.o): New target.
3710         (main_h): Define.
3711         (main.o): Update dependencies.
3712         (gdb$(EXEEXT)): Add gdb.o.
3713         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3714         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3715         (SUBDIR_GDBTK_CLEAN): Set.
3716         (install-gdbtk): Install the insight binary.
3717         (uninstall-gdbtk): New target.
3718         (all-gdbtk, clean-gdbtk): New rule.
3719         * top.c (use_windows): Default to zero.
3720         * main.c: Include "main.h".
3721         (main): Delete.
3722         (struct captured_main_args): Delete.
3723         (gdb_main): New function.
3724         * main.h: New file.
3725         * gdb.c: New File.
3726
3727 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3728
3729         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3730         (frame_map_regnum_to_name): New function.
3731         (frame_map_name_to_regnum): New function.
3732         * frame.h (frame_map_name_to_regnum): Declare.
3733         (frame_map_regnum_to_name): Declare.
3734         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3735         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3736         * parse.c: Do not include "builtin-regs.h".
3737         (target_map_name_to_register): Delete function.
3738         (write_dollar_variable): Use frame_map_name_to_regnum.
3739         * parser-defs.h (target_map_name_to_register): Delete declaration.
3740         * expprint.c: Include "frame.h".
3741         (print_subexp): Use frame_map_regnum_to_name.
3742         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3743         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3744
3745 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3746
3747         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3748         wasn't saved, and the next innermost frame is a dummy, return the
3749         dummy frame's link register.
3750
3751 2002-09-24  Jim Blandy  <jimb@redhat.com>
3752
3753         Fix from Paul Breed:
3754         * main.c (captured_main): Add a `break' after the case for 'b'.
3755
3756 2002-09-24  Keith Seitz  <keiths@redhat.com>
3757
3758         * varobj.c (c_type_of_child): Use get_target_type instead
3759         of TYPE_TARGET_TYPE.
3760
3761 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3762
3763         * source.c (get_current_or_default_source_symtab_and_line): Remove
3764         function.
3765         (set_default_source_symtab_and_line): New function. Attempts to
3766         determine a source file to list lines from if one is not currently
3767         defined.
3768         (get_current_source_symtab_and_line): Initialize sal.pc and
3769         sal.end fields.
3770         (set_current_source_symtab_and_line): Mark argument as const.
3771         * source.h: Update declarations and comments.
3772         * linespec.c (decode_line_1): Replace call to removed routine above.
3773         * stack.c (print_frame_info_base): Ditto.
3774         * cli/cli-cmds.c (edit_command): Ditto.
3775         (list_command): Ditto.
3776
3777 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3778
3779         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3780         sal.pc and sal.end fields.
3781         (get_current_or_default_source_symtab_and_line): Ditto.
3782         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3783         so we do not cause a new source symtab to be searched for (reverting an
3784         unintentional change from the 2002-09-20 patch).
3785         * scm-lang.c (scm_unpac): Ditto.
3786
3787 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3788
3789         * complaints.c (symfile_explanations): Remove new-line from
3790         ``isolated_message''.
3791         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3792         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3793
3794 2002-09-20  Nick Clifton  <nickc@redhat.com>
3795         
3796         * NEWS: Announce that V850EA ISA is no longer supported.
3797         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3798
3799 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3800
3801         * Makefile.in (c-lang.o): Correct dependencies.
3802         (utils.o): Gather dependencies.
3803         (charset.o): Move.
3804         * c-lang.c: #include "gdb_string.h"
3805
3806 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3807
3808         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3809         * cli/cli-cmds.c (list_command): New function.  Implements the new
3810         cli edit command.
3811         (_init_cli_cmds): Add new command definition.
3812         * gdb.1: Document edit command.
3813         * doc/gdb.texinfo: Document edit command.
3814
3815 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3816
3817         * source.c: Make global variables current_source_symtab and
3818         current_source_line static.
3819         (list_command): Moved to cli/cli-cmds.c.
3820         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3821         (get_first_line_listed): New accessor function.
3822         (get_lines_to_list): New accessor function.
3823         (get_current_source_symtab_and_line): New function. Retrieves the
3824         position in the source code that we consider current.
3825         (get_current_or_default_source_symtab_and_line): New function.
3826         Like the above but attempts to determine a default position if one
3827         is not currently defined.
3828         (set_current_source_symtab_and_line): New function. Sets the source
3829         code position considered current and returns the previously set one.
3830         (clear_current_source_symtab_and_line): Reset stored information about
3831         a current source line.
3832         (_initialize_source): Remove registration for the "list" command and
3833         its alias.
3834         * source.h: Add declarations for the new functions above.
3835         * symtab.h: Remove declarations for the global variables mentioned
3836         above.
3837         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3838         obtain current source line.
3839         * linespec.c (decode_line_1): Ditto.
3840         * macroscope.c (default_macro_scope): Ditto.
3841         * scm-lang.c (scm_unpac): Ditto.
3842         * stack.c (print_frame_info_base): Ditto.
3843         * symfile.c (clear_symtab_users): Ditto.
3844         * symtab.c (decode_line_spec): Ditto.
3845         * cli/cli-cmds.c (list_command): Moved here from source.c.
3846         (ambiguous_line_spec): Moved here from source.c.
3847         (_init_cli_cmds): Add definition for "list" and its alias.
3848         * Makefile.in: Update dependencies.
3849
3850 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3851
3852         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3853         with what gcc thinks is correct.
3854
3855 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3856
3857         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3858         multiple register push instruction.
3859
3860 2002-09-19  Jim Blandy  <jimb@redhat.com>
3861
3862         Add support for distinct host and target character sets.
3863         * charset.c, charset.h: New files.
3864         * c-exp.y: #include "charset.h".
3865         (yylex): Convert character and string literals to the target
3866         character set, before returning them as the semantic value of the
3867         token.
3868         * c-lang.c: #include "charset.h".
3869         (c_emit_char): Use charset-specific methods to recognize
3870         characters with backslash escape forms, to decide which characters
3871         to print literally and which to print using numeric escape
3872         sequences, and to convert target characters to host characters
3873         before printing.
3874         * utils.c: #include "charset.h".
3875         (no_control_char_error): New function.
3876         (parse_escape): Use charset-specific methods to recognize
3877         backslash escapes, parse `control character' notation, and convert
3878         characters from the host character set to the target character set.
3879         * configure.in: Set the default host character set.
3880         Check where to find iconv, and what its argument types might be.
3881         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3882         * Makefile.in (SFILES): List charset.c.
3883         (COMMON_OBS): List charset.o.   
3884         (charset.o): New rule.
3885         (charset_h): New header dependency variable.
3886         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3887         (LIBICONV): New variable, set by configure.
3888         (CLIBS): Include $(LIBICONV) here.
3889         * aclocal.m4, config.in, configure: Regenerated.
3890
3891 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3892
3893         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3894         bison 1.35 warning.
3895
3896 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3897
3898         * gdb_mbuild.sh: New file.
3899
3900 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3901
3902         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3903
3904 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3905
3906         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3907         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3908         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3909         valops.c, value.h: Revert previous change.
3910         
3911 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3912
3913         Preliminary support for Objective-C:
3914         * defs.h (language_objc): New enum value.
3915         (puts_filtered_tabular): Declaration only, exported from utils.c.
3916         (skip_quoted): Delete, declared in completer.h.
3917         * c-exp.y: Include completer.h.
3918         * p-exp.y: Ditto.
3919         * jv-exp.y: Ditto.
3920         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3921         New operator enum values.
3922         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3923         * language.c (binop_result_type): Handle language_objc case.
3924         (integral_type, character_type, string_type, boolean_type,
3925         structured_type, binop_type_check): Ditto.
3926         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3927         (struct objc_specific): Add to general_symbol_info.
3928         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3929         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3930         * parser-defs.h (struct objc_class_str): New struct type.
3931         (start_msglist, end_msglist, add_msglist): Declaration only,
3932         exported from objc-lang.c.
3933         * value.h (value_of_local, value_nsstring, 
3934         call_function_by_hand_expecting_type): Exported from valops.c.
3935         * valops.c (find_function_addr): Export.
3936         (call_function_by_hand_expecting_type): New function.
3937         (value_of_local): New function.
3938         * symfile.c (init_filename_language_table): Add ".m" extension
3939         for Objective-C.
3940         * utils.c (puts_filtered_tabular): New function.
3941         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3942         (set/show demangle): Extend help-string to refer to ObjC.
3943         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3944         * stabsread.c (symbol_reference_defined): Objective-C symbols
3945         may contain colons: make allowances when scanning stabs strings
3946         for colons.
3947         (objc_find_colon): New function.
3948         * printcmd.c (address_info): If language == objc then print
3949         "self" instead of "this".
3950         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3951         OP_NSSTRING, and OP_SELF.
3952         (prefixify_subexp): Ditto.
3953         * source.c (print_source_lines): Mention objc in comment.
3954         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3955         method names.
3956
3957 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3958
3959         * complaints.h: Update copyright.
3960         (struct complaints): Declare.
3961         (struct complaint): Make `message' constant.
3962         (internal_complaint): Declare.
3963         (complaint): Declare.
3964         (complaint_root): Delete declaration.
3965         (symfile_complaints): Delete declaration.
3966         (struct complaints): Add opaque declaration.
3967         (clear_complaints): Add a complaints parameter.
3968         * complaints.c: Update copyright.
3969         (enum complaint_series): Define.
3970         (complaint_root): Delete.
3971         (struct complaints): Define.
3972         (complaint_sentinel, symfile_complaint_book): New variables.
3973         (symfile_explanations, symfile_complaints): New variables.
3974         New variables.
3975         (get_complaints): New function.
3976         (vcomplaint): New function.
3977         (complaint): New function.
3978         (internal_complaint): New function.
3979         (complain): Call vcomplain with symfile_complaint.
3980         (clear_complaints): Rewrite.
3981         (_initialize_complaints): Use add_setshow_command.
3982         * Makefile.in (complaints.o): Update dependencies.
3983         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3984         to call to clear_complaints.
3985         (new_symfile_objfile, reread_symbols): Ditto.
3986         (oldsyms_complaint): Delete.
3987         (empty_symtab_complaint, unknown_option_complaint): Delete.
3988         (free_named_symtabs): Use complaint instead of complain.
3989
3990 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3991
3992         Contributed by Apple Computer, Inc.  Merged with current sources
3993         by Adam Fedor <fedor@doc.com> [cagney].
3994         
3995         * objc-lang.c: First clean-up round: comments, indentation.
3996         * objc-lang.h: Ditto.
3997         * objc-lang.y: Ditto.
3998
3999 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4000
4001         * maint.c (maintenance_internal_error): Print the parameter as the
4002         error message.
4003         (maintenance_internal_warning): New function.
4004         (_initialize_maint_cmds): Add command `maint internal-warning'.
4005
4006         * defs.h (internal_warning, internal_vwarning): Declare.
4007         * utils.c (struct internal_problem): Define.
4008         (internal_vproblem): New function.
4009         (internal_warning): New function.
4010         (internal_vwarning): New function.
4011         (internal_warning_problem, internal_error_problem): New variables.
4012         (internal_verror): Just call internal_vproblem.
4013
4014 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4015
4016         * objc-lang.c: New file, support for Objective-C.
4017         Preliminary check-in, not yet integrated into gdb.
4018         * objc-lang.h: New file.
4019         * objc-exp.y:  New file.
4020
4021 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4022
4023         * infrun.c (signal_stop_update): Convert definition to ISO C.
4024         (signal_print_update): Ditto.
4025         (signal_pass_update): Ditto.
4026         * inflow.c (terminal_save_ours): Ditto.
4027
4028         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4029         comments.
4030         
4031         * config/djgpp/fnchange.lst: Handle name clashes between
4032         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4033         bfd/coff-tic80.c.
4034
4035         * i386-linux-tdep.h: Fix tipo.
4036
4037 2002-09-18  Adam Fedor  <fedor@gnu.org>
4038
4039         * MAINTAINERS: Add myself to the Write After Approval list.
4040
4041 2002-09-18  Jim Blandy  <jimb@redhat.com>
4042
4043         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4044         texthigh and textlow to reader-specific structs caused
4045         objfile_relocate to miss them.  This is fixable, but the work that
4046         the change was supposed to prepare GDB for never got done anyway.
4047
4048 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4049
4050         * MAINTAINERS: Alphabetize Write After Approval list.
4051
4052 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4053
4054         Fix PR gdb/709
4055         * values.c (value_static_field): Call read_var_value.
4056
4057 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4058
4059         * valops.c (hand_function_call): Align the initial stack pointer
4060         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4061         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4062         return value.
4063         * mips-tdep.c (mips_frame_align): New function.
4064         (mips_gdbarch_init): Set frame_align.
4065         * gdbarch.sh (FRAME_ALIGN): New method.
4066         * gdbarch.h, gdbarch.c: Re-generate.
4067
4068 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4069
4070         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4071         registers.
4072
4073 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4074
4075         * NEWS: Mention that MIPS $fp behavior changed.
4076         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4077         reference to FP_REGNUM.
4078         (mipsnbsd_cannot_store_register): Ditto.
4079         * mips-linux-nat.c: Update copyright.
4080         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4081         (mips_linux_cannot_store_register): Ditto.
4082         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4083         * config/mips/tm-mips.h: Update copyright.
4084         (FP_REGNUM): Delete macro.
4085         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4086         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4087         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4088         (mips_r3041_reg_names, mips_r3051_reg_names)
4089         (mips_r3081_reg_names): Replace "fp" with "".
4090         Fix PR gdb/480.
4091
4092 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4093
4094         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4095         generic_read_register_dummy() (PR gdb/703).
4096         (avr_push_return_address): #if 0 out unused vars.
4097         (avr_gdbarch_init): Enable use of avr_push_return_address().
4098
4099 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4100
4101         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4102         RTE will take care of it.
4103
4104 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4105
4106         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4107         invalid, return SP_REGNUM.
4108
4109 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4110
4111         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4112         point registers without sign extension.
4113
4114 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4115
4116         * blockframe.c (deprecated_read_register_dummy): Rename
4117         generic_read_register_dummy.
4118         * frame.c (frame_unwind_signed_register): New function.
4119         (frame_unwind_unsigned_register): New function.
4120         * frame.h (frame_unwind_signed_register): Declare.
4121         (frame_unwind_unsigned_register): Declare.
4122         (deprecated_read_register_dummy): Rename
4123         generic_read_register_dummy.
4124
4125         * h8300-tdep.c (h8300_frame_chain): Update.
4126         (h8300_frame_saved_pc): Update.
4127         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4128         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4129         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4130         (s390_frame_chain): Update.
4131         * v850-tdep.c (v850_find_callers_reg): Update.
4132         (v850_frame_saved_pc): Update.
4133         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4134         (m32r_find_callers_reg): Update.
4135         (m32r_frame_saved_pc): Update.
4136         * sh-tdep.c (sh_find_callers_reg): Update.
4137         (sh64_get_saved_pr): Update.
4138         (sh_init_extra_frame_info): Update.
4139         (sh_init_extra_frame_info): Update.
4140         (sh64_init_extra_frame_info): Update.
4141         (sh64_init_extra_frame_info): Update.
4142         * mcore-tdep.c (mcore_find_callers_reg): Update.
4143         (mcore_frame_saved_pc): Update.
4144         (mcore_init_extra_frame_info): Update.
4145         * i386-tdep.c (i386_frame_saved_pc): Update.
4146         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4147         (ia64_init_extra_frame_info): Update.
4148         (ia64_init_extra_frame_info): Update.
4149         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4150         * cris-tdep.c (cris_init_extra_frame_info): Update.
4151         * avr-tdep.c (avr_frame_chain): Update.
4152         (avr_init_extra_frame_info): Update.
4153         (avr_frame_saved_pc): Update.
4154         * arm-tdep.c (arm_find_callers_reg): Update.
4155         (arm_init_extra_frame_info): Update.
4156         (arm_frame_saved_pc): Update.
4157
4158 2002-09-17  Tom Tromey  <tromey@redhat.com>
4159
4160         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4161         is "'".
4162
4163 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4164
4165         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4166         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4167         NEXT_PROLOGUE_INSN.
4168         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4169         NEXT_PROLOGUE_INSN.
4170
4171 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4172
4173         * osfsolib.c: Remove file, replaced by solib-osf.c.
4174         * Makefile.in: Remove compilation rules for osfsolib.c.
4175
4176 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4177
4178         * cp-valprint.c (cp_print_class_method): Correct args to
4179         check_stub_method_group.
4180
4181 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4182
4183         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4184         `set architecture'.  Unify naming convention of functions.
4185         (h8300_skip_prologue): Improve prologue analysis.
4186         (h8300_push_arguments): Rewritten to more closely match GCC's
4187         bizarre argument-passing behavior, along with the comment describing
4188         said behavior.
4189         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4190         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4191         sim, remote-e7000.c, remote-hms.c and remote.c
4192
4193 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4194
4195         * i386-tdep.c (gdb_print_insn_i386): Removed.
4196         (i386_print_insn): New function.
4197         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4198         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4199         tm_print_insn_info.
4200
4201 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4202
4203         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4204         zero.
4205
4206 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4207
4208         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4209         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4210         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4211
4212 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4213
4214         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4215
4216 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4217
4218         * gdbtypes.c (check_stub_method): Make static.
4219         (check_stub_method_group): New function.
4220         * gdbtypes.h: Update prototypes.
4221         * cp-support.c: New file.
4222         * cp-support.h: New file.
4223
4224         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4225         (update_method_name_from_physname): New function.
4226         (read_member_functions): Correct method names for operators
4227         and v3 constructors/destructors.  Separate v2 constructors and
4228         destructors.
4229         * Makefile.in (stabsread.o): Update dependencies.
4230         (SFILES): Add cp-support.c.
4231         (COMMON_OBS): Add cp-support.o.
4232         (cp_support_h, cp-support.o): Add.
4233
4234         * cp-valprint.c (cp_print_class_method): Call
4235         check_stub_method_group instead of check_stub_method.  Remove
4236         extraneous QUITs.
4237         * p-valprint.c (pascal_object_print_class_method): Likewise.
4238         * valops.c (search_struct_method): Likewise.
4239         (find_method_list, value_struct_elt_for_reference): Likewise.
4240
4241 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4242
4243         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4244         * gdbarch.h, gdbarch.c: Regenerate.
4245
4246 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4247
4248         * frame.c (find_saved_register): Delete function.
4249         * frame.h (find_saved_register): Delete declaration.
4250         Fix PR gdb/631.
4251
4252 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4253
4254         * mips-tdep.c (read_next_frame_reg): Re-hack using
4255         frame_register_unwind.
4256
4257 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4258
4259         * mips-tdep.c (mips_get_saved_register): Re-hack using
4260         frame_register_unwind.
4261
4262 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4263
4264         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4265         vector. Will be useful for Interix.  
4266         * gdbarch.h, gdbarch.c: Regenerate.
4267
4268         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4269         name of the malloc function by NAME_OF_MALLOC.
4270
4271 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4272
4273         * value.h (find_function_in_inferior): Add const keyword to
4274         one of the parameters. Allows us to invoke this function with
4275         a const char *.
4276         * valops.c (find_function_in_inferior): Likewise.
4277
4278 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4279
4280         * exec.c (xfer_memory): Fix compilation warning with old versions
4281         of GCC.
4282         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4283
4284 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4285
4286         * symtab.h: Run through gdb_indent.h.
4287         Add 2002 to Copyright year list.
4288
4289 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4290
4291         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4292         mach constants.
4293         * MAINTAINERS: Add myself to write after approval list.
4294
4295 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4296
4297         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4298
4299 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4300
4301         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4302         Interix.
4303
4304 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4305
4306         * procfs.c (do_detach): Clear current signal, not just fault.
4307         Corrects problem with breakpoint trap signal leaking to detached
4308         process on Tru64.
4309
4310 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4311
4312         * buildsym.c (finish_block): Protect against null pointer.
4313
4314 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4315
4316         * infcmd.c (default_print_registers_info): Send all output to
4317         ``file'' instead of ``gdb_stdout''.
4318
4319 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4320
4321         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4322         LONGEST, and use signed register read (addresses are sign-
4323         extended for mips).
4324
4325 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4326
4327         * event-loop.c (gdb_do_one_event): Make public.
4328         * event-loop.h (gdb_do_one_event): Declare.
4329
4330 2002-09-10  Jeff Law  <law@redhat.com>
4331
4332         * infttrace.c (child_resume): Simplify and rework to avoid
4333         TT_PROC_CONTINUE.
4334
4335 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4336
4337         * printcmd.c (print_scalar_formatted): "len" is the number of
4338         target bytes, NOT the number of target bits.
4339
4340 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4341
4342         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4343         * top.c (init_main): Set rl_terminal_name.
4344
4345 2002-09-08  Aidan Skinner <aidan@velvet.net>
4346
4347         * ada-lang.c (ada_array_bound, ada_type_match,
4348         _initialize_ada_language): Fix K&R definitions.
4349         * ada-tasks.c (get_current_task): Fix K&R definitions.
4350         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4351                         
4352 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4353
4354         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4355         Add XP.
4356
4357 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4358
4359         * i386-tdep.c (i386_register_virtual_type,
4360         i386_register_convertible, i386_register_convert_to_virtual,
4361         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4362         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4363         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4364         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4365         Don't set push_arguments twice.
4366
4367         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4368         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4369         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4370         sigtramp_end to NULL.
4371         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4372         defines.
4373         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4374
4375         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4376         whitespace.
4377
4378         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4379         * gdbarch.h, gdbarch.c: Re-generate.
4380         * blockframe.c (find_pc_sect_partial_function): Convert to use
4381         SIGTRAMP_START_P predicate.
4382
4383 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4384
4385         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4386         generic_dummy_frame method and old method.  Also distinguish
4387         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4388         (arm_extract_return_value): Use new regcache method.
4389
4390         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4391         adjustment that doesn't conform to the ABI.
4392         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4393         saved regcache, not from current regcache.
4394
4395 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4396
4397         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4398         * README: Update.
4399
4400 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4401
4402         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4403         if arm_apcs_32 is false.
4404
4405 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4406
4407         GDB 5.3 branch created.
4408
4409 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4410
4411         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4412         generic_unwind_get_saved_register.
4413
4414 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4415
4416         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4417         argument (PR gdb/653).  Update call to smash_to_method_type.
4418         (read_structure_scope): Update call to dwarf2_add_member_fn.
4419
4420 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4421
4422         * x86-64-linux-tdep.c: Include gdb_string.h
4423         * x86-64-linux-nat.c: Ditto.
4424
4425 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4426
4427         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4428         when YYDEBUG is set to 1.  
4429         * c-exp.y: Likewise.
4430         * f-exp.y: Likewise.
4431         * jv-exp.y: Likewise.
4432         * m2-exp.y: Likewise.
4433         * p-exp.y: Likewise.
4434
4435 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4436
4437         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4438         dependency list.
4439         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4440         solib_svr4_fetch_link_map_offsets to
4441         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4442         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4443         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4444         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4445         solib-svr4.o, and solib-legacy.o.
4446         * config/i386/tm-nbsd.h: Include solib.h.
4447
4448 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4449
4450         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4451         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4452         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4453         comment noting that this needs its own target configuration.
4454         * config/i386/nbsd.mt: New file.
4455         * config/i386/nbsdaout.mt: Remove.
4456         * config/i386/nbsdelf.mt: Ditto.
4457         * config/i386/tm-nbsdaout.h: Ditto. 
4458
4459 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4460
4461         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4462         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4463         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4464         tdep->sigtramp_end.
4465         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4466         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4467         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4468
4469 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4470
4471         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4472         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4473         * i386-tdep.h (i386bsd_init_abi): New prototype.
4474         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4475         function declaration.
4476         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4477         for NetBSD-a.out or NetBSD-ELF.
4478         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4479         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4480         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4481         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4482         and nbsd-tdep.h.
4483         (i386nbsd_pc_in_sigtramp): New function.
4484         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4485         i386nbsd_pc_in_sigtramp.
4486         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4487         and i386nbsdelf_init_abi OS ABI handlers.
4488         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4489         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4490
4491 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4492
4493         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4494         registers if the target really has them.
4495
4496 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4497
4498         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4499         than nbsd-tdep.h.
4500
4501 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4502
4503         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4504         list.
4505         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4506         (alphanbsd_skip_sigtramp_frame): New functions. 
4507         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4508         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4509         to alphanbsd_sigcontext_addr. 
4510
4511 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4512
4513         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4514         list.
4515         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4516         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4517         nbsd_pc_in_sigtramp. 
4518         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4519         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4520         * nbsd-tdep.c: Include gdb_string.h.
4521         (nbsd_pc_in_sigtramp): New function. 
4522         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4523         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4524         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4525         ppcnbsd_pc_in_sigtramp. 
4526         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4527         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4528         shnbsd_pc_in_sigtramp. 
4529         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4530         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4531         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4532
4533 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4534
4535         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4536         watchpoints to NULL.
4537         (insert_breakpoints): set val field of watchpoints if NULL.
4538
4539
4540 2002-08-29  Jim Blandy  <jimb@redhat.com>
4541
4542         * symtab.c (lookup_symbol_aux): In the cases where we find a
4543         minimal symbol of an appropriate name and use its address to
4544         select a symtab to read and search, use `name' (as passed to us)
4545         as the demangled name when searching the symtab's global and
4546         static blocks, not the minsym's name.
4547
4548 2002-08-29  Keith Seitz  <keiths@redhat.com>
4549
4550         * stack.c (print_frame_info_base): Always set current_source_symtab
4551         and current_source_line.
4552
4553 2002-08-29  Donn Terry  <donnte@microsoft.com>
4554
4555         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4556
4557 2002-08-28  Keith Seitz  <keiths@redhat.com>
4558
4559         * stack.c (select_frame): Add FIXME concerning selected-frame
4560         events.
4561         (select_frame_command): Send selected-frame-level-changed
4562         event notification, but only if the level actually changed.
4563         (up_silently_base): Add selected-frame-level-changed event
4564         notification.
4565         (down_silently_base): Likewise.
4566
4567 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4568
4569         * Makefile.in: Update dependencies for all gdb/*.c files.
4570
4571 2002-08-27  Tom Tromey  <tromey@redhat.com>
4572
4573         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4574         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4575         Update dependencies.
4576         * i387-tdep.c: Include gdb_string.h.
4577         * osabi.c: Likewise.
4578         * i386-linux-nat.c: Likewise.
4579         * lin-lwp.c: Likewise.
4580         * ax-gdb.c: Likewise.
4581         * signals/signals.c: Likewise.
4582         * jv-valprint.c: Likewise.
4583         * p-lang.c: Likewise.
4584         * c-valprint.c: Likewise.
4585         * cp-abi.c: Likewise.
4586
4587 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4588
4589         * cli/cli-script.h (copy_command_lines): Export.
4590         * breakpoint.c: Include cli/cli-script.h.
4591         * Makefile.in (breakpoint.o): Update dependencies.
4592
4593 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4594
4595         * breakpoint.c (insert_breakpoints): Protect all references
4596         to 'process_warning'.  Shorten long lines.
4597
4598 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4599
4600         * cli/cli-script.c (copy_command_lines): New function.
4601         * defs.h (copy_command_lines): Export.
4602         * testsuite/gdb.base/commands.exp: New tests for commands
4603         attached to a temporary breakpoint, and for commands that
4604         delete the breakpoint they are attached to.
4605         
4606 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4607
4608         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4609         pointer to the breakpoint commands struct, make a new copy
4610         of the struct and point to that.
4611         (bpstat_clear): Free the commands struct.
4612         (bpstat_clear_actions): Free the commands struct.
4613         (bpstat_do_actions): Free the command actions.  Also execute
4614         the local cleanups, instead of deleting them.
4615         (delete_breakpoint): Leave the commands field of the bpstat
4616         chain alone -- it will be freed later.
4617
4618 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4619
4620         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4621         deleted in 2002-08-20 commit.  This function is still used by
4622         ppc-linux-nat.c.
4623
4624 2002-08-26  Keith Seitz  <keiths@redhat.com>
4625
4626         * gdb-events.sh: Add selected-frame-level-changed event.
4627         * gdb-events.c: Regenerated.
4628         * gdb-events.h: Regenerated.
4629         
4630 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4631
4632         Fix PR gdb/393:
4633         * inflow.c (terminal_save_ours): New function to save terminal
4634         settings.
4635         * inferior.h (terminal_save_ours): Declare.
4636         * target.c (debug_to_terminal_save_ours): New function.
4637         (cleanup_target): Defaults to_terminal_save_ours.
4638         (update_current_target): Inherit to_terminal_save_ours.
4639         (setup_target_debug): Set to_terminal_save_ours.
4640         * target.h (target_terminal_save_ours): New to save terminal settings.
4641         (target_ops): New member to_terminal_save_ours.
4642         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4643         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4644         * inftarg.c (init_child_ops): Likewise.
4645         * m3-nat.c (init_m3_ops): Likewise.
4646         * procfs.c (init_procfs_ops): Likewise.
4647         * wince.c (init_child_ops): Likewise.
4648         * win32-nat.c (init_child_ops): Likewise.
4649         * sol-thread.c (init_sol_thread_ops): Likewise.
4650
4651 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4652
4653         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4654         use regcache_* functions.
4655         (i386_gdbarch_init): Set store_return_value instead of
4656         deprecated_store_return_value.
4657
4658         * regcache.c (regcache_raw_write_signed,
4659         regcache_raw_write_unsigned): New functions.
4660         * regcache.h (regcache_raw_write_signed,
4661         regcache_raw_write_unsigned): New prototypes.
4662
4663 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4664
4665         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4666         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4667         source file dependencies.  Cleanup corresponding generator rules.
4668
4669 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4670
4671         * regcache.h (register_offset_hack): Declare.
4672         (regcache_cooked_read_using_offset_hack): Declare.
4673         (regcache_cooked_write_using_offset_hack): Declare.
4674
4675         * regcache.c (register_offset_hack): New function.
4676         (regcache_cooked_read_using_offset_hack): New function.
4677         (regcache_cooked_write_using_offset_hack): New function.
4678         (regcache_dump): Check that the registers, according to their
4679         offset, are packed hard against each other.
4680         (cooked_xfer_using_offset_hack): New function.
4681
4682 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4683
4684         * regcache.c (struct regcache_descr): Add field register_type.
4685         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4686         in as a parameter
4687         (init_regcache_descr): Initialize register_type.  Pass the descr
4688         to init_legacy_regcache_descr.  Use register_type instead of
4689         REGISTER_VIRTUAL_TYPE.
4690         (register_type): New function.
4691         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4692         * regcache.h (register_type): Declare.
4693
4694 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4695
4696         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4697         instead of deprecated_store_return_value.  Fix fallout from
4698         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4699
4700 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4701
4702         * regcache.c (max_register_size): New function.
4703         (init_legacy_regcache_descr): Ensure that max_register_size is
4704         large enough for REGISTER_VIRTUAL_SIZE.
4705         * regcache.h (max_register_size): Declare.
4706
4707 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4708
4709         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4710         store_return_value.
4711         (e500_extract_return_value): Change type of valbuf pointer to
4712         void.
4713
4714 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4715
4716         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4717         workaround.
4718
4719         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4720         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4721         long long) to prevent compiler warning on 64-bit systems.
4722
4723 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4724
4725         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4726         (DEPRECATED_STORE_RETURN_VALUE): New method.
4727         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4728         * gdbarch.h, gdbarch.c: Re-generate.
4729
4730         * values.c (set_return_value): Pass current_regcache to
4731         STORE_RETURN_VALUE.
4732         * arch-utils.h (legacy_store_return_value): Declare.
4733         * arch-utils.c (legacy_store_return_value): New function.
4734         (legacy_extract_return_value): Update parameters.
4735
4736         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4737         STORE_RETURN_VALUE.
4738         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4739         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4740         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4741         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4742         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4743         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4744         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4745         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4746         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4747         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4748
4749         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4750         * i386-tdep.c (i386_extract_return_value): Update.
4751         * arch-utils.c (legacy_extract_return_value): Update.
4752         * frv-tdep.c (frv_gdbarch_init): Update.
4753         * cris-tdep.c (cris_gdbarch_init): Update.
4754         * d10v-tdep.c (d10v_gdbarch_init): Update.
4755         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4756         * m68k-tdep.c (m68k_gdbarch_init): Update.
4757         * mcore-tdep.c (mcore_gdbarch_init): Update.
4758         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4759         * s390-tdep.c (s390_gdbarch_init): Update.
4760         * sparc-tdep.c (sparc_gdbarch_init): Update.
4761         * sh-tdep.c (sh_gdbarch_init): Update.
4762         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4763         * v850-tdep.c (v850_gdbarch_init): Update.
4764         * avr-tdep.c (avr_gdbarch_init): Update.
4765         * ia64-tdep.c (ia64_gdbarch_init): Update.
4766         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4767         * vax-tdep.c (vax_gdbarch_init): Update.
4768         * alpha-tdep.c (alpha_gdbarch_init): Update.
4769         * arm-tdep.c (arm_gdbarch_init): Update.
4770         * mips-tdep.c (mips_gdbarch_init): Update.
4771         * i386-tdep.c (i386_gdbarch_init): Update.
4772
4773 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4774
4775         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4776         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4777
4778 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4779
4780         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4781         problems.
4782
4783 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4784
4785         * infrun.c (handle_inferior_event): Move a comment outside of a
4786         function call, in order to avoid indent reformatting this part
4787         of the code in an unreadable way.
4788
4789 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4790
4791         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4792         when breakpoints fail. Move general breakpoint error messages to
4793         insert_breakpoints.  
4794         * breakpoint.c (insert_breakpoints): Change warnings when
4795         breakpoints are nto inserted to specify the type. Remove call to
4796         memory_error when hardware breakpoints can't be inserted. Remove
4797         multiple calls to warning so all messages are sent to the user at
4798         once.
4799         (delete_breakpoints): Make insert error messsages more explicit.
4800
4801 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4802
4803         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4804         gdbserver/ChangeLog.
4805
4806 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4807
4808         * i386-tdep.c: Include "objfiles.h".
4809         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4810         skip_trampoline_code.
4811         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4812         (CPLUS_MARKER): Define to '.'.
4813
4814         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4815         member.
4816         (linux_corefile_thread_callback): Increase args->num_notes.
4817         (linux_make_note_section): Initialize thread_args.num_notes, and
4818         use it to determine whether notes for any threads were created.
4819
4820 2002-08-23  Donn Terry  <donnte@microsoft.com>
4821
4822         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4823         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4824         and PCUNKILL.
4825         (write_with_trace): Conditionalize out the switch branch handling
4826         PCSHOLD if the corresponding macro is not defined. Likewise for
4827         PRSABORT and PRSTOP.
4828         This change will be needed by the Interix port.
4829
4830 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4831
4832         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4833         write_register wherever possible instead of manipulating the
4834         register bytes directly.
4835         Assign VALUE_CONTENTS to a variable and use that.
4836         The GPR numbers are now dependent on the architecture.
4837         
4838 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4839
4840         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4841         ev_offset fields.
4842         (skip_prologue): Add support for BookE/e500 instructions.
4843         (e500_extract_return_value): New function.
4844         (frame_get_saved_regs): Add support for saving ev registers and
4845         pseudo gpr's.
4846         (e500_store_return_value): New function.
4847         (rs6000_gdbarch_init): Move up default intializations of
4848         deprecated_extract_return_value and store_return_value.  Overwrite
4849         init of store_return_value with e500 specific version.
4850         Set extract_return_value for e500.
4851         
4852 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4853
4854         * blockframe.c (generic_call_dummy_register_unwind): Use
4855         regcache_cooked_read to catch cases in which the variable is
4856         stored in a pseudo register.
4857
4858 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4859
4860         * NEWS: Mention that the i960 has been made obsolete.
4861         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4862         i960-tdep.c
4863         (remote-nrom.o): Obsolete target.
4864         (remote-nindy.o, i960-tdep.o): Ditto.
4865         * remote-nrom.c: Make file obsolete.
4866         * remote-nindy.c, remote-vx960.c: Ditto.
4867         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4868         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4869         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4870         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4871         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4872         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4873         i960-*-vxworks* obsolete.
4874         * MAINTAINERS: Note that the i960 is obsolete.
4875
4876 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4877
4878         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4879         detach to allow reinitialization.
4880
4881 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4882
4883         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4884         attempt).
4885
4886 2002-08-22  Jim Blandy  <jimb@redhat.com>
4887
4888         * coffread.c (coff_symfile_read): Don't try to read the line
4889         number table from disk if the image file doesn't have a symbol
4890         table; we'll never actually look at the info anyway, and Windows
4891         ships DLL's with bogus file offsets for the line number data.
4892
4893 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4894
4895         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4896         an e500 executable.
4897
4898 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4899
4900         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4901         (MSYMBOL_SIZE): Replace macro with function.
4902         (DEFAULT_MIPS_TYPE): Delete unused macro.
4903         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4904         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4905
4906 2002-08-21  Jim Blandy  <jimb@redhat.com>
4907
4908         * valops.c (value_cast): Simplify and correct logic for doing a
4909         static cast from a pointer to a base class to a pointer to a
4910         derived class.
4911
4912 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4913
4914         * infcmd.c (default_print_registers_info): Replace
4915         do_registers_info.
4916         (registers_info): Use gdbarch_print_registers_info instead of
4917         DO_REGISTERS_INFO.
4918         * inferior.h (default_print_registers_info): Replace
4919         do_registers_info.
4920         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4921         (DO_REGISTERS_INFO): Change to a predicate function.
4922         * gdbarch.h, gdbarch.c: Regenerate.
4923         
4924 2002-08-21  Keith Seitz  <keiths@redhat.com>
4925
4926         * gdb-events.sh: Add target-changed event.
4927         * gdb-events.c: Regenerated.
4928         * gdb-events.c: Regenerated.
4929         * valops.c (value_assign): Add target-changed event notification
4930         to inlval_register, lval_memory, and lval_reg_frame_relative.
4931
4932 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4933
4934         * NEWS: Add an entry regarding the improvement of the next/step
4935         operation on Alpha Tru64 multi-processor machines.
4936
4937 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4938
4939         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4940         directores.
4941         * Makefile.in: Update all _h macro definitions.
4942         * Makefile.in (install-gdbtk): Move to install section.
4943         (rdi-share/libangsd.a): Move to end of file.
4944
4945 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4946
4947         * frame.c (frame_register_unwind): When a register, set addrp to
4948         the register's byte.
4949
4950 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4951
4952         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4953         used locally, so move them from the target machine header to here.
4954         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4955         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4956         Make static.
4957         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4958
4959 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4960
4961         * NEWS: Mention that the Apollo line was made obsolete.
4962         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4963         m68*-hp-hpux* obsolete.
4964         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4965         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4966         * buildsym.c (make_blockvector): Make static.
4967         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4968         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4969         (ALLDEPFILES): Remove dstread.c.
4970         (dstread.o): Obsolete make rule.
4971         * dstread.c: Makefile obsolete.
4972         * dst.h: Ditto.
4973         * config/m68k/hp300hpux.mt: Ditto.
4974         * config/m68k/hp300hpux.mh: Ditto.
4975         * config/m68k/hp300bsd.mt: Ditto.
4976         * config/m68k/hp300bsd.mh: Ditto.
4977         * config/m68k/apollo68b.mt: Ditto.
4978         * config/m68k/apollo68v.mh: Ditto.
4979         * config/m68k/apollo68b.mh: Ditto.
4980
4981 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4982
4983         * mips-tdep.c (mips_in_return_stub): Make static.
4984         (mips_gdbarch_init): Set in_solib_return_trampoline.
4985         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4986
4987 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4988
4989         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4990         * gdbarch.c, gdbarch.h: Regenerate.
4991         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4992         Add.
4993         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4994
4995 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4996
4997         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4998         (mips_gdbarch_init): Set skip_trampoline_code, 
4999         in_solib_call_trampoline.
5000         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5001         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5002
5003 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5004
5005         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5006
5007         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5008         vector type for ev registers.
5009         (e500_pseudo_register_read): New function.
5010         (e500_pseudo_register_write): New function.
5011         (e500_dwarf2_reg_to_regnum): New function.
5012         (PPC_UISA_NOFP_SPRS): New macro.
5013         (PPC_EV_REGS): New macro.
5014         (PPC_GPRS_PSEUDO_REGS): New macro.
5015         (registers_e500): New register set for e500.
5016         (variants): Add e500 variant.
5017         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5018         before setting architectural dependent variations.  Initialize ev
5019         registers numbers.  Add case for e500 architecture.  Set the
5020         number of pseudo registers.
5021
5022 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5023
5024         * rs6000-tdep.c: Clean up comments.
5025
5026 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5027
5028         * h8300-tdep.c: Re-indent file.
5029
5030 2002-08-20  Jim Blandy  <jimb@redhat.com>
5031
5032         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5033         default for this.
5034
5035 2002-08-20  Keith Seitz  <keiths@redhat.com>
5036
5037         * breakpoints.c (watch_command_1): Use internal breakpoint
5038         when setting a watchpoint_scope breakpoint.
5039
5040 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5041
5042         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5043         (build_builtin_type_vec64i): Ditto.
5044         (build_builtin_type_vec128): Ditto.
5045         (build_builtin_type_vec128i): Ditto.
5046
5047 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5048
5049         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5050         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5051         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5052         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5053         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5054         CALL_DUMMY_ADDRESS): Delete.
5055         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5056         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5057         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5058         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5059         push_return_address.
5060         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5061         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5062         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5063         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5064         mips_n32n64_push_arguments, mips_push_return_address,
5065         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5066         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5067
5068 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5069
5070         * mips-tdep.c (mips_frame_num_args): New function.
5071         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5072         frame_saved_pc, frame_args_address, frame_locals_address, 
5073         frame_num_args, and frame_args_skip.
5074         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5075         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5076         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5077         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5078
5079 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5080
5081         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5082         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5083         * mips-tdep.c (mips_store_struct_return): New function.
5084         (mips_extract_struct_value_address): New function.
5085         (mips_gdbarch_init): Set store_struct_return and
5086         extract_struct_value_address.
5087
5088 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5089
5090         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5091         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5092         (read_file_scope): Check that line_header is nonzero before
5093         decoding macro information.
5094
5095 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5096
5097         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5098         flag the general-purpose registers as floating-point on targets
5099         that don't support the floating-point registers.
5100
5101 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5102
5103         * rs6000-tdep.c (altivec_register_p): Delete.
5104         (rs6000_do_altivec_registers): Delete.
5105         (rs6000_altivec_registers_info): Delete.
5106         (rs6000_do_registers_info): Delete.
5107         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5108         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5109
5110 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5111
5112         * infcmd.c (do_registers_info): Print vector registers in hex
5113         format only.
5114         (print_vector_info): Check that printing registers
5115         makes sense.
5116         (print_float_info): Ditto.
5117
5118 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5119
5120         * mips-tdep.c (mips_gdbarch_init): Update.
5121         (mips_o32_extract_return_value): Rewrite.
5122         (mips_o32_store_return_value): Rewrite.
5123         (mips_o32_xfer_return_value): New function.
5124         (mips_xfer_register): Tweak debug print message.  Allow for
5125         buf_offset when dumping the value transfered.
5126
5127 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5128
5129         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5130         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5131         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5132         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5133         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5134
5135 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5136
5137         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5138
5139 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5140
5141         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5142         register.
5143         (P): New macro to define a register as a pseudo register.
5144         (R, R4, R8, R16, FR32, R64, R0): Updated.
5145         (struct variant): Add new fields for number of pseudo registers
5146         and number of total registers.
5147         (tot_num_registers): New macro replacing....
5148         (num_registers): ...deleted macro.
5149         (num_registers): New function.
5150         (num_pseudo_registers): New function.
5151         (variants): Update all variants to intialize new fields correctly.
5152         Postpone initialization of number of pseudo regs and real regs.
5153         (init_variants): New function.
5154         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5155         registers offsets.
5156
5157 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5158
5159         * valops.c (search_struct_field): Change error message to treat
5160         return value of 0 from value_static_field as meaning that field is
5161         optimized out.
5162         (value_struct_elt_for_reference): Ditto.
5163         * values.c (value_static_field): Treat an unresolved location the
5164         same as a nonexistent symbol.  Fix PR gdb/635.
5165         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5166         enclosed.  Fix PR gdb/574.
5167         * MAINTAINERS: Add self to Write After Approval list.
5168
5169 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5170
5171         * mips-tdep.c (mips_xfer_register): New function.
5172         (mips_n32n64_extract_return_value): Rewrite.
5173         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5174         instead of deprecated_extract_return_value.
5175
5176 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5177
5178         * rs6000-tdep.c (TDEP): Delete macro.
5179         (branch_dest): Replace use of TDEP macro with its body.
5180         (rs6000_pop_frame): Ditto.
5181         (rs6000_push_arguments): Ditto.
5182         (rs6000_skip_trampoline_code): Ditto.
5183         (rs6000_frame_saved_pc): Ditto.
5184         (rs6000_frame_chain): Ditto.
5185         (rs6000_register_name): Ditto.
5186         (rs6000_register_byte): Ditto.
5187         (rs6000_register_raw_size): Ditto.
5188         (rs6000_register_virtual_type): Ditto.
5189         (rs6000_register_convertible): Ditto.
5190         (rs6000_convert_from_func_ptr_addr): Ditto.
5191
5192 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5193
5194         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5195         conditionally.
5196         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5197         MIPS_LINUX_JB_ELEMENT_SIZE.
5198         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5199         for MAX_REGISTER_RAW_SIZE arrays.
5200         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5201         MIPS_LINUX_JB_ELEMENT_SIZE.
5202
5203 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5204
5205         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5206
5207 2002-08-19  Aidan Skinner <aidan@velvet.net>
5208
5209         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5210         ada-valprint.c ada-tasks.c.
5211         (YYFILES): Add ada-exp.y.
5212         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5213         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5214         (ada-exp.tab.o): New target.
5215                 
5216 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5217
5218         * regcache.c (regcache_xfer_part): New function.
5219         (regcache_raw_read_part): New function.
5220         (regcache_raw_write_part): New function.
5221         (regcache_cooked_read_part): New function.
5222         (regcache_cooked_write_part): New function.
5223         * regcache.h (regcache_raw_read_part): Declare.
5224         (regcache_raw_write_part): Declare.
5225         (regcache_cooked_read_part): Declare.
5226         (regcache_cooked_write_part): Declare.
5227
5228 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5229
5230         * remote.c (remote_open_1): Add async_p.
5231         (remote_async_open_1): Delete.
5232         (open_remote_target): Delete.
5233         (remote_open, extended_remote_open): Update calls to remote_open_1.
5234         (remote_async_open, extended_remote_async_open): Call
5235         remote_open_1 instead of remote_async_open_1.
5236
5237 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5238
5239         * blockframe.c: Fix a few coding standard violations.
5240
5241 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5242
5243         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5244         here from ...
5245         * config/i386/tm-i386sco5.h: ... here.  File removed.
5246         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5247
5248         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5249         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5250         (TM_FILE): Set to tm-i386.h.
5251         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5252         * config/i386/tm-i386v.h: Remove file.
5253         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5254         instead of "i386/tm-i386v.h".
5255         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5256         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5257         "i386/tm-i386v.h".
5258         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5259         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5260         "i386/tm-i386.h".
5261
5262 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5263
5264         * config/i386/nm-i386v.h: Add protection against
5265         multiple-inclusion.
5266         (i386_register_u_addr): Remove prototype.
5267         (register_u_addr): New prototype.
5268         (REGISTER_U_ADDR): Redefine accordingly.
5269         * i386v-nat.c: Improve several comments.
5270         (i386_register_u_addr): Change signature and rename to
5271         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5272         ubase variable.
5273
5274 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5275
5276         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5277         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5278         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5279         deprecated_extract_return_value.
5280         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5281         rename mips_o32o64_push_arguments.
5282         (mips_gdbarch_init): Update.
5283         (mips_extract_return_value): Delete.
5284         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5285         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5286         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5287         (mips_n32n64_extract_return_value): Clone
5288         mips_extract_return_value.
5289         (mips_store_return_value): Delete.
5290         (mips_o32_store_return_value): Clone mips_store_return_value.
5291         (mips_o64_store_return_value): Clone mips_store_return_value.
5292         (mips_eabi_store_return_value): Clone mips_store_return_value.
5293         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5294
5295 2002-08-18  Aidan Skinner <aidan@velvet.net>
5296
5297         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5298         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5299                 
5300 2002-08-18  Aidan Skinner <aidan@velvet.net>
5301
5302         * ada-lang.c: Run through gdb_indent.sh.
5303         * ada-lang.h: Run through gdb_indent.sh.
5304         * ada-tasks.c: Run through gdb_indent.sh.
5305         * ada-typeprint.c: Run through gdb_indent.sh.
5306         * ada-valprint.c: Run through gdb_indent.sh.
5307
5308 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5309
5310         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5311         ABI.
5312
5313 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5314
5315         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5316
5317         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5318         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5319
5320         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5321         write_register_gen instead of write_register_bytes.
5322
5323         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5324         i[3456]-*-osf1mk* configurations have been made obsolete.
5325         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5326         i[3456]86-*-osf1mk* hosts obsolete.
5327         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5328         targets obsolete.
5329         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5330         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5331         config/i386/i386m3.mt, config/i386/nm-m3.h,
5332         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5333         config/i386/i386mk.mh, config/i386/i386mk.mt,
5334         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5335         obsolete.
5336         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5337         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5338         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5339
5340 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5341
5342         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5343         (hppa_value_returned_from_stack): Declare.
5344         (hppa_extract_return_value): Declare.
5345         * config/pa/hppa.mt: New file.
5346         * configure.tgt: Recognize hppa*-*-*.
5347         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5348
5349 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5350
5351         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5352         comment.
5353
5354 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5355
5356         * top.c (gdb_rl_operate_and_get_next): Make sure
5357         operate-and-get-next functions correctly even when the history
5358         list is completely filled.
5359
5360 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5361
5362         * MAINTAINERS (Target Instruction Set Architectures): Rename
5363         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5364         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5365         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5366         already listed under Host/Native.
5367
5368         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5369         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5370         mips*-*-*.
5371
5372 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5373
5374         * config/ia64/ia64.mt: New file.
5375         * config/alpha/alpha.mt: New file.
5376         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5377         ia64-linux-gnu.  Mention that ia64-elf is broken.
5378         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5379
5380 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5381
5382         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5383         generic_func_frame_valid instead of func_frame_valid.
5384
5385 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5386
5387         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5388         procfs appears to be broken when debugging on multi-processor
5389         machines. So enable software single stepping in order to avoid
5390         using the procfs interface to do next/step operations, using
5391         internal breakpoints instead.
5392
5393         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5394         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5395         make this pc address equal to the value it would have if the
5396         system stepping capability was used. Also set a new flag used
5397         to ensure that we don't readjust the PC one more time later.
5398
5399         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5400         address by DECR_PC_AFTER_BREAK when software single step is
5401         in use for this architecture, as this has already been taken
5402         care of in handle_inferior_event().
5403
5404 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5405
5406         * infrun.c (handle_inferior_event): Minor reformatting, to make
5407         a rather long condition expression easier to read.
5408
5409 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5410
5411         * Makefile.in (gdbtk.o): Move to end of file.
5412         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5413         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5414         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5415         (gdbtk-wrapper.o, gdbres.o): Ditto.
5416
5417 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5418
5419         * Makefile.in (copying.o): Separate out compile rule.
5420         (hpux-thread.o, procfs.o, signals.o): Ditto.
5421         (v850ice.o, z8k-tdep.o): Ditto.
5422         (tui-file.o): Move to TUI section.
5423         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5424         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5425
5426 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5427
5428         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5429         skip_trampoline_code, for better namespace-proofing.   
5430
5431         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5432
5433 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5434
5435         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5436
5437 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5438
5439         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5440         signal, check whether we hit a breakpoint before checking for a
5441         single step breakpoint. Otherwise, GDB fails to notice that a
5442         breakpoint has been hit when stepping onto a breakpoint.
5443
5444 2002-08-16  Keith Seitz  <keiths@redhat.com>
5445
5446         * gdb-events.sh (clear_gdb_event_hooks): New function.
5447         * gdb-events.c: Regenerate.
5448         * gdb-events.h: Regenerate.
5449
5450 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5451
5452         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5453         not_a_sw_breakpoint.
5454         * breakpoint.h (bpstat_stop_status): Add parameter names.
5455
5456 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5457
5458         * remote.c (remote_insert_hw_breakpoint)
5459         (remote_remove_hw_breakpoint): Fix calculation of length field
5460         for Z-packet.
5461
5462 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5463
5464         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5465         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5466         (supply_fpregset): Ditto.
5467         
5468         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5469         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5470         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5471         (TARGET_READ_SP): Delete.
5472         (DO_REGISTERS_INFO): Delete.
5473         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5474         Delete.
5475         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5476         from macros to functions.
5477
5478         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5479         (mips_register_convertible, mips_register_convert_to_virtual,
5480         mips_register_convert_to_raw): Make static.
5481         (mips_read_sp): New function.
5482         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5483         (mips_do_registers_info): Make static.
5484         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5485         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5486         (mips_register_convert_from_type, mips_register_convert_to_type):
5487         New functions.
5488         (mips_gdbarch_init): Set up function_start_offset, 
5489         register_virtual_size, pc_in_sigtramp.
5490
5491 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5492
5493         * infcmd.c (vector_info): New function.
5494         (_initialize_infcmd): Add command "info vector".
5495         (print_vector_info): New function.
5496
5497         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5498         * gdbarch.h, gdbarch.c: Regenerate.
5499
5500 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5501
5502         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5503         ``print_all''.  Only print vector registers when ``print_all''.
5504
5505 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5506
5507         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5508         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5509
5510         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5511         Add `args' parameter.
5512         * gdbarch.h, gdbarch.c: Regenerate.
5513         
5514         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5515         
5516         * infcmd.c (float_info): Call print_float_info.
5517         (print_float_info): New function.  By default, print the
5518         floating-point registers.
5519
5520         * arch-utils.h (default_print_float_info): Delete declaration.
5521         * arch-utils.c (default_print_float_info): Delete function.
5522         
5523 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5524
5525         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5526         out define.
5527
5528         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5529         FRAME.
5530
5531         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5532         * configure.host: Make i[3456]86-*-aix host obsolete.
5533         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5534         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5535         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5536         config/i386/xm-i386aix.h: Make files obsolete.
5537         * i386aix-nat.c: Make file obsolete.
5538         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5539         (i386aix-nat.o): Make target obsolete.
5540
5541         * config/i386/nm-gnu.h: Removed.
5542         * config/i386/nm-i386gnu.h: New file.
5543         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5544         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5545         Moved here from ...
5546         * config/i386/tm-i386gnu.h: ... here.  Removed.
5547         * config/i386/xm-i386gnu.h: Removed.
5548         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5549         (NAT_FILE): Set to nm-i386gnu.h.
5550         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5551         * i386-tdep.c: New file.
5552         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5553         (i386gnu-tdep.o): Specify dependencies.
5554
5555 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5556
5557         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5558         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5559         Adjust a few comments to reflect reality a bit closer.
5560         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5561         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5562         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5563         target_insert_watchpoint, target_remove_watchpoint):
5564         Move defines to ...
5565         * config/i386/nm-i386sco5.h: ... here.
5566         (kernel_u_size): Add prototype.  Improve a few comments and add
5567         protection against multiple inclusion.
5568         
5569         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5570         out define.
5571
5572         * uw-thread.c (SP_ARG0): Define if not already defined.
5573         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5574
5575         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5576
5577         * config/i386/tm-i386.h: Don't include "regcache.h".
5578
5579         * i387-tdep.h (i387_print_float_info): New prototype.
5580         * i387-tdep.c (print_i387_value, print_i387_ext,
5581         print_i387_status_word, print_i387_control_word): Add `struct
5582         ui_file *' argument and use it for output.
5583         (i387_print_float_info): Renamed from i387_float_info.  Add
5584         `struct gdbarch *' and `struct ui_file *' arguments and use the
5585         latter for output.
5586         * i386-tdep.c: Include "i387-tdep.h".
5587         (i386_gdbarch_init): Set print_float_info.
5588         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5589         (FLOAT_INFO): Remove define.
5590
5591 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5592
5593         * mips-tdep.c (mips_push_arguments): Rename to
5594         mips_eabi_push_arguments, and tune for EABI.
5595         (MIPS_REGS_HAVE_HOME_P): Delete.
5596         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5597         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5598         Delete references to mips_regs_have_home_p.
5599
5600 2002-08-14  Keith Seitz  <keiths@redhat.com>
5601
5602         * Makefile.in (install-gdbtk): Create insight plugin directory.
5603         Install plugins.tcl file.
5604
5605 2002-08-14  Keith Seitz  <keiths@redhat.com>
5606
5607         * configure.in: Move SUBDIRS to near top of the file so that
5608         --enable options may add things to it.
5609         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5610         * configure: Regenerate.
5611
5612 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5613
5614         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5615         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5616         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5617
5618 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5619
5620         * vax-tdep.c (vax_get_saved_register): Delete function.
5621         (vax_gdbarch_init): Update.
5622         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5623         (ns32k_gdbarch_init): Update.
5624         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5625         (alpha_gdbarch_init): Update.
5626
5627 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5628
5629         * regcache.c (init_regcache_descr): Overallocate the
5630         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5631         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5632         nr_raw_registers.
5633         (set_register_cached): Add range checking assertions.  Use
5634         current_regcache.
5635
5636 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5637
5638         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5639         numbers for MMX registers.
5640
5641 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5642
5643         * i386-tdep.c (i386_gdbarch_init): Use
5644         generic_unwind_get_saved_register.
5645
5646 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5647
5648         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5649         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5650         target vector.
5651         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5652         Delete.  Add comment regarding this now-deleted target method.
5653
5654 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5655
5656         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5657         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5658         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5659         real PC and the page number (if it's within the memory bank window).
5660         (m68hc11_pseudo_register_write): Likewise when saving.
5661         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5662         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5663         (m68hc11_register_raw_size): And use 32-bit for it.
5664         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5665         16K memory bank is used by the prog; also use the virtual pc.
5666
5667 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5668
5669         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5670         (m68hc11_gdbarch_init): Install it in gdbarch.
5671         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5672         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5673         (MSYMBOL_SIZE): New for documentation.
5674         (insn_return_kind): Enum to specify how a function returns.
5675         (frame_extra_info): Cleanup and record the return mode.
5676         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5677         register in address computation.
5678         (m68hc11_get_return_insn): New to obtain the return instruction used
5679         by the function.
5680         (m68hc11_frame_init_saved_regs): Take into account the return
5681         instruction used by the function for far and interrupt functions.
5682         (m68hc11_init_extra_frame_info): Take into account page register.
5683         (m68hc11_frame_args_address): Adjust according to the return mode.
5684         (show_regs): Print page register only when it's used.
5685
5686 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5687
5688         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5689         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5690         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5691         registers.
5692         (m68hc11_register_raw_size): Likewise.
5693
5694 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5695
5696         * i386-tdep.c (i386_register_name): Handle mmx registers.
5697         (mmx_regnum_p): New function.
5698         (i386_mmx_names): New array.
5699         (mmx_num_regs): New variable.
5700         (i386_pseudo_register_read): New function.
5701         (i386_pseudo_register_write): New function.
5702         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5703
5704         * regcache.c (regcache_raw_read_unsigned): New function.
5705         (regcache_raw_read_signed): New function.
5706         * regcache.h (regcache_raw_read_unsigned): Declare.
5707         (regcache_raw_read_signed): Declare.
5708
5709 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5710
5711         * regcache.c (regcache_raw_read_as_address): Delete function.
5712         (regcache_cooked_read_signed): New function.
5713         (regcache_cooked_read_unsigned): New function.
5714         * regcache.h (regcache_cooked_read_signed): Declare.
5715         (regcache_cooked_read_unsigned): Declare.
5716         (regcache_raw_read_as_address): Delete declaration.
5717
5718         * blockframe.c (generic_read_register_dummy): Use
5719         regcache_cooked_read_unsigned.
5720         * i386-tdep.c (i386_extract_struct_value_address): Use
5721         regcache_cooked_read_unsigned.
5722
5723 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5724
5725         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5726         double sizes according to ELF ABI flags.
5727         (gdbarch_tdep): Record elf_flags.
5728
5729 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5730
5731         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5732         (m6812_prolog): They can appear in 68HC12 function prologue.
5733         (m68hc11_frame_chain): Cleanup.
5734
5735 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5736
5737         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5738         declarations.
5739         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5740         (i386_linux_register_raw_size): Delete function.
5741         (i386_linux_init_abi): Update.
5742         * i386-tdep.c (i386_register_raw_size): Delete function.
5743         (i386_register_byte): Delete function.
5744         (i386_gdbarch_init): Update.
5745         (i386_register_size): Delete array.
5746         (i386_register_offset): Delete array.
5747
5748         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5749         (REGISTER_RAW_SIZE): Delete macro.
5750         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5751         (REGISTER_BYTE): Delete macro.
5752
5753 2002-08-11  Aidan Skinner <aidan@velvet.net>
5754
5755         * ada-lang.c (ada_lookup_partial_symbol)
5756         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5757         prototype names so that grep ^func works properly.
5758
5759         * ada-lang.c (ada_array_element_type)
5760         (ada_lookup_partial_symbol): Fix typos in parameter list.
5761
5762         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5763         Fix prototype names so that grep ^func works properly.
5764         
5765 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5766             Elena Zannoni  <ezannoni@redhat.com>
5767             Martin M. Hunt  <hunt@redhat.com>
5768
5769         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5770         (build_builtin_type_vec128i): Set the vector bit.
5771         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5772         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5773         (build_builtin_type_vec64): New function.
5774         (build_builtin_type_vec64i): New function.
5775         (build_gdbtypes): Initialize builtin_type_vec64 and
5776         builtin_type_vec64i.
5777
5778 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5779
5780         * regcache.c (regcache_dump): Compare the register offset
5781         with REGISTER_BYTE.
5782         * arch-utils.c (generic_register_byte): New function.
5783         * arch-utils.h (generic_register_byte): Declare.
5784         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5785         * gdbarch.h, gdbarch.c: Regenerate.
5786
5787 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5788
5789         * regcache.c: Include "gdbcmd.h"
5790         (_initialize_regcache): Add commands "maintenance print
5791         registers", "maintenance print raw-registers" and "maintenance
5792         print cooked-registers".
5793         (enum regcache_dump_what): Define.
5794         (dump_endian_bytes): New function.
5795         (regcache_dump): New function.
5796         (regcache_print): New function.
5797         (maintenance_print_registers): New function.
5798         (maintenance_print_raw_registers): New function.
5799         (maintenance_print_cooked_registers): New function.
5800         * Makefile.in (regcache.o): Update dependencies.
5801
5802 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5803
5804         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5805         (mips_push_arguments): Correct some comments.  Use paddr_nz
5806         for printing addresses in debug output.  Replace static
5807         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5808         (mips_n32n64_push_arguments): New function, cloned from
5809         mips_push_arguments and tuned for the n32/n64 ABI.
5810         (mips_push_register): Buffer needs dynamic allocation.
5811         (mips_print_register): Ditto.
5812         (do_gp_register_row): Ditto.
5813         (mips_store_return_value): Ditto.
5814         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5815
5816 2002-08-09  Don Howard  <dhoward@redhat.com>
5817
5818         * memattr.c (mem_info_command): Print special case of upper bound
5819         as max CORE_ADDR + 1.
5820
5821 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5822
5823         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5824         returns structs by ref if they're too big to fit in two registers.
5825
5826 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5827
5828         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5829         saved regs value.
5830         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5831         mips_find_saved_regs().
5832         (mips_pop_frame): Likewise.
5833
5834 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5835
5836         * blockframe.c (frame_saved_regs_register_unwind): Revise
5837         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5838         frames are in use.
5839
5840 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5841         
5842         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5843         T-packets; the 'a' is not taken as a register number.
5844         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5845         (remote_stopped_data_address): New functions; add to target
5846         vector.
5847         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5848         prototypes to match other implementations of this
5849         function. replace integer argument with pointer -- the length
5850         field in the Z-packet is the length of what is pointed to or 1 if
5851         pointer is null. Add to target vector.
5852         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5853         target vector.
5854
5855         From Mark Salter:
5856         * remote.c (remote_wait): Add support to extract optional
5857         watchpoint information from T-packet. Ignore unrecognized
5858         optional info in T-packet.
5859         (remote_async_wait): Ditto.
5860
5861 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5862
5863         * cli/cli-dump.c: Change fopen modes to use binary open modes
5864         as defined in include/fopen-bin.h throughout.
5865
5866 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5867
5868         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5869
5870 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5871
5872         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5873         assertion failure by returning early after a warning.
5874
5875 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5876
5877         * mips-tdep.c (mips_find_saved_regs): Make static.
5878         (mips_frame_init_saved_regs): New function.
5879         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5880         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5881         (mips_find_saved_regs): Delete declaration.
5882
5883 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5884
5885         * remote.c (remote_wait, remote_async_wait): Change
5886         thread_num from int to ULONGEST.
5887         (unpack_varlen_hex): Change result parameter from
5888         int * to ULONGEST *.
5889
5890 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5891
5892         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5893         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5894         powerpc*-*-*.
5895         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5896
5897 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5898
5899         * gcore.c (override_derive_stack_segment): Delete variable.
5900         (preempt_derive_stack_segment): Delete function.
5901         (derive_stack_segment): Delete function.
5902         (default_derive_stack_segment): Renamed to derive_stack_segment.
5903         (override_derive_heap_segment): Delete variable.
5904         (preempt_derive_heap_segment): Delete function.
5905         (derive_heap_segment): Delete function.
5906         (default_derive_heap_segment): Rename to derive_heap_segment.
5907
5908 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5909
5910         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5911         * mips-tdep.c (mips_EABI_use_struct_convention, 
5912         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5913         New functions.  (mips_use_struct_convention): Delete.
5914         (mips_gdbarch_init): set use_gdbarch_convention.
5915
5916 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5917
5918         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5919         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5920         mips_o32_reg_struct_has_addr): New functions.
5921         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5922
5923 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5924
5925         * regcache.c (pseudo_register): Delete function.
5926         (fetch_register): Delete function.
5927         (store_register): Delete function.
5928         (regcache_raw_read, legacy_read_register_gen): Use
5929         target_fetch_registers instead of fetch_register.
5930         (legacy_write_register_gen, regcache_raw_write): Use
5931         target_store_register instead of store_register.
5932         (write_register_bytes): Ditto.
5933
5934         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5935         (STORE_PSEUDO_REGISTER): Delete.
5936         * gdbarch.h, gdbarch.c: Regenerate.
5937
5938 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5939
5940         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5941         write dump file binary.
5942
5943 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5944
5945         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5946         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5947         (mips_gdbarch_init): Set N32 target to be mips64.
5948
5949 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5950
5951         * frame.c (find_saved_register): Break out of loop once saved
5952         register address is found.  Don't mention sparc in loop comment
5953         anymore.
5954
5955 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5956
5957         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5958         mips_default_saved_regsize to 8.
5959
5960 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5961
5962         * gcore.c: Do not include <sys/procfs.h>.
5963         * Makefile.in (gcore.o): Update dependencies.
5964
5965 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5966
5967         * configure.tgt: Make arc-*-* obsolete.
5968         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5969         * MAINTAINERS: Make arc-elf obsolete.
5970         * arc-tdep.c: Make file obsolete.
5971         * config/arc/arc.mt: Ditto.
5972         * config/arc/tm-arc.h: Ditto.
5973
5974 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5975
5976         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5977
5978 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5979
5980         * mcore-tdep.c (mcore_gdbarch_init): Use
5981         generic_unwind_get_saved_register instead of
5982         generic_get_saved_register.
5983         * v850-tdep.c (v850_gdbarch_init): Ditto.
5984         * frv-tdep.c (frv_gdbarch_init): Ditto.
5985         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5986         * s390-tdep.c (s390_gdbarch_init): Ditto.
5987         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5988         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5989         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5990
5991 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5992
5993         * objfiles.h: Add missing #include "symfile.h"
5994
5995         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5996
5997 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5998
5999         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6000         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6001         of FIELD_BITSIZE.
6002
6003 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6004
6005         * NEWS: Cleanup and nitpick.
6006
6007 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6008
6009         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6010
6011 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6012
6013         * Makefile.in (gdbtk-bp.o): Update dependencies.
6014         (gdbtk-register.o): Ditto.
6015         (gdbtk-varobj.o): Ditto.
6016
6017 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6018
6019         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6020         m68hc11_fetch_pseudo_register.
6021         (m68hc11_pseudo_register_write): Replace
6022         m68hc11_store_pseudo_register.
6023         (m68hc11_gdbarch_init): Update.
6024
6025 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6026
6027         * gdbarch.sh: Include "gdb_string.h".
6028         * gdbarch.c: Regenerate.
6029
6030         * regcache.c: Include "gdb_string.h".
6031         * ax-general.c: Ditto.
6032         * varobj.c: Ditto.
6033         * std-regs.c: Ditto.
6034         * fbsd-proc.c: Ditto.
6035         * thread.c: Ditto.
6036
6037         * Makefile.in (regcache.o): Update dependencies.
6038         (thread.o, gdbarch.o): Ditto.
6039         (ax-general.o, gdbarch.o): Ditto.
6040         (varobj.o, std-regs.o): Ditto.
6041         (fbsd-proc.o): Specify dependencies.
6042
6043 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6044
6045         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6046         regnum.
6047         (regcache_cooked_write): Ditto.
6048
6049 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6050
6051         * regcache.c (regcache_cooked_read): New function.
6052         (regcache_cooked_write): New function.
6053         (read_register_gen): Rewrite using regcache_cooked_read.
6054         (write_register_gen): Rewrite using regcache_cooked_write.
6055
6056         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6057         Declare.
6058
6059 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6060
6061         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6062         Replace the architecture methods register_read and register_write.
6063         * gdbarch.h, gdbarch.c: Regenerate.
6064         * regcache.c (init_regcache_descr): Update.
6065         (read_register_gen): Update.
6066         (write_register_gen): Update.
6067         (supply_register): Update comment.
6068
6069         * sh-tdep.c (sh_gdbarch_init): Update.
6070         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6071         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6072         pointer.  Update code.
6073         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6074         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6075         void pointer.  Update code.
6076         (sh64_register_write): Delete.
6077         (sh4_register_read): Delete.
6078         (sh64_register_read): Delete.
6079         (sh4_register_write): Delete.
6080         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6081         void pointer, `to' parameter a void pointer.
6082         (sh_sh64_register_convert_to_raw): Ditto.
6083
6084 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6085
6086         * mips-tdep.c (mips_register_virtual_type): Use architecture
6087         invariant return values.
6088
6089 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6090
6091         * linux-proc.c: Include "gdb_string.h".
6092         * Makefile.in (linux-proc.o): Update dependency list.
6093
6094 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6095
6096         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6097         comment.
6098
6099 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6100
6101         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6102         to_insert_watchpoint, to_remove_watchpoint,
6103         to_stopped_by_watchpoint, to_stopped_data_address,
6104         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6105         target vecctor. Define their corresponding macros so they call
6106         them.
6107         
6108         * target.c: Add default and debug versions of for
6109         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6110         to_insert_watchpoint, to_remove_watchpoint,
6111         to_stopped_by_watchpoint, to_stopped_data_address,
6112         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6113
6114 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6115
6116         * mips-tdep.c (mips_register_virtual_type): New function.
6117         (mips_gdbarch_init): Register mips_register_virtual_type()
6118         with gdbarch machinery.
6119         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6120         this file instead of tm-bigmips.h.
6121         (MIPS_REGSIZE): Delete this macro.
6122         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6123         multiarch version in mips-tdep.c will be found.
6124
6125 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6126
6127         * NEWS: Menion that CHILL has been made obsolete.
6128
6129         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6130         * stabsread.c (read_range_type): Ditto.
6131         * gdbtypes.h: Ditto.
6132         * language.c (binop_type_check): Ditto.
6133         (binop_result_type): Ditto.
6134         (integral_type): Ditto.
6135         (character_type): Ditto.
6136         (string_type): Ditto.
6137         (boolean_type): Ditto.
6138         (structured_type): Ditto.
6139         (lang_bool_type): Ditto.
6140         (binop_type_check): Ditto.
6141         * language.h (_LANG_chill): Ditto.
6142         * dwarfread.c (set_cu_language): Ditto.
6143         * dwarfread.c (CHILL_PRODUCER): Ditto.
6144         * dwarfread.c (handle_producer): Ditto.
6145         * expression.h (enum exp_opcode): Ditto.
6146         * eval.c: Ditto for comments.
6147         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6148         * expprint.c (print_subexp): Ditto.
6149         (print_subexp): Ditto.
6150         * valops.c (value_cast): Ditto.
6151         (search_struct_field): Ditto.
6152         * value.h (COERCE_VARYING_ARRAY): Ditto.
6153         * symfile.c (init_filename_language_table): Ditto.
6154         (add_psymbol_with_dem_name_to_list): Ditto.
6155         * valarith.c (value_binop): Ditto.
6156         (value_neg): Ditto.
6157         * valops.c (value_slice): Ditto.
6158         * symtab.h (union language_specific): Ditto.
6159         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6160         (SYMBOL_DEMANGLED_NAME): Ditto.
6161         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6162         * defs.h (enum language): Ditto.
6163         * symtab.c (got_symtab): Ditto.
6164         * utils.c (fprintf_symbol_filtered): Ditto.
6165
6166         * ch-typeprint.c: Make file obsolete.
6167         * ch-valprint.c: Make file obsolete.
6168         * ch-lang.h: Make file obsolete.
6169         * ch-exp.c: Make file obsolete.
6170         * ch-lang.c: Make file obsolete.
6171
6172         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6173         CHILL_LIB.
6174         (TARGET_FLAGS_TO_PASS): Ditto.
6175         (CHILLFLAGS): Obsolete.
6176         (CHILL): Obsolete.
6177         (CHILL_FOR_TARGET): Obsolete.
6178         (CHILL_LIB): Obsolete.
6179         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6180         ch-valprint.c.
6181         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6182         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6183         ch-lang.o.
6184         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6185         targets.
6186
6187 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6188
6189         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6190         This does not change anything at the moment, but will be helpful
6191         later when full Ada support is integrated.
6192
6193 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6194
6195         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6196         help message.
6197
6198 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6199
6200         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6201         and save it in a local variable.  Use variable in later test.
6202
6203 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6204
6205         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6206         test.  (Thanks to Daniel Jacobowitz.)
6207         
6208 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6209
6210         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6211         (mips_abi_strings): Add "n64".
6212         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6213
6214 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6215
6216         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6217         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6218
6219 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6220
6221         * utils.c (host_pointer_to_address, address_to_host_pointer):
6222         Use gdb_assert() instead of explicit call to internal_error().
6223
6224 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6225
6226         * Makefile.in (rs6000-nat.o): Update dependencies.
6227
6228         From Nicholas Duffek:
6229         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6230         (aix-thread.o): New rule.
6231         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6232         * config/powerpc/aix432.mh: New file.
6233
6234 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6235
6236         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6237         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6238         (fetch_core_registers, ppc_linux_supply_gregset)
6239         (ppc_linux_supply_fpregset): New functions.
6240         (ppc_linux_regset_core_fns): New.
6241         (_initialize_ppc_linux_tdep): Call add_core_fns.
6242         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6243         and ppc_linux_supply_gregset.
6244         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6245         (supply_fpregset): Call ppc_linux_supply_fpregset.
6246         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6247         corelow.o.
6248         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6249
6250 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6251
6252         * symtab.c (lookup_symbol): Demangle before lowercasing.
6253
6254 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6255
6256         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6257         declaration.
6258         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6259         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6260         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6261         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6262         "gdb_string.h".
6263         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6264         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6265         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6266         (avr-tdep.o, mon960-rom.o): Ditto.
6267         (aout_stabs_gnu_h): Define.
6268         (symtab_h): Remove $(gdb_obstack_h).
6269
6270 2002-07-30  Jim Blandy  <jimb@redhat.com>
6271
6272         Patch from David Carlton <carlton@math.stanford.edu>:
6273         * gdbinit.in: Move the `dir' commands that add GDB's own source
6274         directory to the search path to the end, so that the `gdb' source
6275         directory will be searched first.
6276
6277 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6278
6279         * gdb_obstack.h: New file.
6280         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6281         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6282         * objfiles.h: Include "gdb_obstack.h".
6283         * Makefile.in (gdb_obstack_h): Define.
6284         (symtab_h): Add $(gdb_obstack_h).
6285         (objfiles_h): Add $(gdb_obstack_h).
6286         
6287         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6288         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6289         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6290         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6291         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6292         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6293         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6294         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6295
6296         * Makefile.in (bcache.o): Update dependencies.
6297         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6298         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6299         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6300         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6301         (stabsread.o, symfile.o, symmisc.o): Ditto.
6302         (symtab.o, typeprint.o, macroexp.o): Ditto.
6303         (macrotab.o, mdebugread.o): Ditto.
6304         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6305         (coff_ecoff_h, aout_aout64_h): Define.
6306         (aout_stabs_gnu_h, libaout_h): Define.
6307
6308 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6309
6310         * regcache.c (struct regcache_descr): Rename nr_registers to
6311         nr_cooked_registers.  Revise comments describing the structure
6312         member fields.
6313         (init_regcache_descr): Update.
6314         (init_legacy_regcache_descr): Update.
6315         (read_register_gen, write_register_gen): When a cooked register in
6316         the raw register range, directly access the value from the raw
6317         register cache.
6318
6319 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6320
6321         * z8k-tdep.c: Do not include "obstack.h".
6322         * h8300-tdep.c, h8500-tdep.c: Ditto.
6323         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6324         * valprint.c, v850-tdep.c: Ditto.
6325         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6326         * mn10200-tdep.c: Ditto.
6327
6328         * Makefile.in (z8k-tdep.o): Update dependencies.
6329         (m68hc11-tdep.o, valprint.o): Ditto.
6330         (v850-tdep.o, d10v-tdep.o): Ditto.
6331         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6332         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6333         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6334         (sh_opc_h, gdb_sim_sh_h): Define.
6335         (elf_sh_h, elf_bfd_h): Define.
6336         (opcode_m68hc11_h): Define.
6337         (OPCODES_SRC, OPCODES_DIR): define.
6338         (OPCODES): Use $(OPCODES_DIR).
6339         (gdb_sim_d10v_h): Rename sim_d10v_h.
6340         (gdb_sim_arm_h): Rename sim_arm_h.
6341
6342 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6343
6344         * utils.c (host_pointer_to_address, address_to_host_pointer):
6345         Change internal_error() message to indicate function responsible
6346         for the error.
6347
6348 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6349
6350         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6351         calls to local_hex_string_custom().
6352
6353 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6354
6355         * irix5-nat.c: Move IRIX shared library support from here...
6356         * solib-irix.c: ...to here.  Revised substantially to work with
6357         generic solib framework.
6358
6359         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6360         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6361         * mips-irix-tdep.c: New file.
6362
6363         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6364         (mips-irix-tdep.o, solib-irix.o): New rules.
6365         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6366         solib-irix.o.
6367         * config/mips/irix6.mt (TDEPFILES): Likewise.
6368         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6369
6370 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6371
6372         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6373         disabled (via ``#if 0'') includes.
6374
6375 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6376
6377         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6378         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6379         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6380         Add support for the fpscr register.
6381         * rs6000-nat.c (regmap, fetch_inferior_registers)
6382         (store_inferior_registers, fetch_core_registers): Likewise.
6383
6384 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6385
6386         * rs6000-nat.c (language.h): Include.
6387         (special_regs): Delete this array.
6388         (regmap): New function.
6389         (fetch_register, store_register):  Use regmap() to map gdb
6390         register numbers to ptrace register numbers.  Also, use
6391         outputs from regmap() to make decisions regarding type of
6392         ptrace() call to make.  In particular, don't compare against
6393         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6394         (fetch_inferior_registers, store_inferior_registers): Where
6395         possible, obtain register numbers from tdep struct.  Don't
6396         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6397         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6398         (LAST_UISA_SP_REGNUM): Delete.
6399         
6400 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6401
6402         * rs6000-nat.c (ppc-tdep.h): Include.
6403         (fetch_registers, store_register, fetch_core_registers): Don't
6404         access registers[] directly.  Instead, use supply_register() or
6405         regcache_collect() as appropriate.
6406         (find_toc_address): Format hex address with local_hex_string().
6407
6408 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6409
6410         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6411         bfd/elf32-frv.c.
6412
6413 2002-07-24  Tom Tromey  <tromey@redhat.com>
6414
6415         * jv-exp.y: Marked all strings with _().
6416         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6417         internal_error.
6418         (MethodInvocation, CastExpression, parse_number, yyerror,
6419         java_type_from_name, push_expression_name, yylex): Typo fixes.
6420
6421 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6422
6423         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6424         (tee_file_flush, tee_file_write, tee_file_fputs)
6425         (tee_file_isatty): New.
6426         * ui-file.h (tee_file_new): Add prototype.
6427
6428 2002-07-24  Aidan Skinner <aidan@velvet.net>
6429
6430         * ada-lang.c: Change k&r style function definitions to prototyped
6431         form.
6432         * ada-typeprint.c: Change k&r style function definitions to prototyped
6433         form.
6434         * ada-valprint.c: Change k&r style function definitions to prototyped
6435         form.
6436         
6437 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6438
6439         * README: Remove reference to remote-bug.
6440         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6441         remote-bug.c.
6442         (m88k-nat.o): Delete rule.
6443         (m88k-tdep.o): Delete rule.
6444         (remote-bug.o): Delete rule.
6445         * MAINTAINERS: Mark as obsolete.
6446         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6447         * m88k-tdep.c: Make file obsolete.
6448         * config/m88k/m88k.mh: Ditto.
6449         * config/m88k/delta88v4.mh: Ditto.
6450         * config/m88k/delta88v4.mt: Ditto.
6451         * config/m88k/delta88.mt: Ditto.
6452         * config/m88k/delta88.mh: Ditto.
6453         * remote-bug.c: Ditto.
6454         * config/m88k/tm-delta88.h: Ditto.
6455         * config/m88k/nm-delta88v4.h: Ditto.
6456         * config/m88k/xm-delta88.h: Ditto.
6457         * config/m88k/xm-dgux.h: Ditto.
6458         * config/m88k/tm-m88k.h: Ditto.
6459         * config/m88k/nm-m88k.h: Ditto.
6460         * config/m88k/tm-delta88v4.h: Ditto.
6461         * m88k-nat.c: Ditto.
6462         * cxux-nat.c: Ditto.
6463         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6464         and m88*-*-* obsolete.
6465         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6466         m88*-*-* obsolete.
6467
6468 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6469
6470         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6471         constant.  Same for local pointer variables.
6472         (extract_signed_integer): Ditto.
6473         * defs.h (extract_unsigned_integer): Update.
6474         (extract_signed_integer): Update.
6475
6476 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6477
6478         * regcache.c (regcache_raw_write): Change buf parameter to a
6479         constant void pointer.
6480         (regcache_raw_read): Change buf parameter to a void pointer.
6481         (legacy_write_register_gen): Change myaddr parameter a constant
6482         void pointer.
6483         (supply_register): Change val parameter to a const void pointer.
6484         * regcache.h (regcache_raw_write): Update declaration.
6485         (regcache_raw_read): Update declaration.
6486         (supply_register): Update declaration.
6487
6488 2002-07-24  Tom Tromey  <tromey@redhat.com>
6489
6490         * defs.h (gdb_readline_wrapper): Declare.
6491         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6492         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6493         * top.c (gdb_readline_wrapper): New function.
6494         (command_line_input): Use it.
6495
6496 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6497
6498         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6499         regcache_read and regcache_write.
6500         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6501         * regcache.c: Update.
6502         * sh-tdep.c (sh64_push_arguments): Update comment.
6503         (sh_pseudo_register_read): Update.
6504         (sh_pseudo_register_write): Update.
6505         (sh4_register_read): Update.
6506         (sh4_register_write): Update.
6507         (sh64_pseudo_register_read): Update.
6508         (sh64_pseudo_register_write): Update.
6509         (sh64_register_read): Update.
6510         (sh64_register_write): Update.
6511         * i386-tdep.c (i386_extract_return_value): Update.
6512         (i386_extract_struct_value_address): Update.
6513         (i386_extract_return_value): Update.
6514         * blockframe.c (generic_read_register_dummy): Update.
6515         (generic_call_dummy_register_unwind): Update
6516         * infrun.c (write_inferior_status_register): Update.
6517
6518 2002-07-23  Jim Blandy  <jimb@redhat.com>
6519
6520         * parser-defs.h (expression_context_pc): Make this extern.
6521         (Thanks to Michael Snyder.)
6522
6523 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6524
6525         GDB 5.2.1 released from 5.2 branch.
6526         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6527         * README: Update to mention 5.2.1.
6528
6529 2002-07-23  Mark Salter  <msalter@redhat.com>
6530
6531         * remote.c (remote_read_bytes): Fix check for error.
6532
6533 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6534
6535         * aix-thread.c (language.h): Include.
6536         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6537         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6538         Print newlines at end of debug messages.
6539         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6540         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6541
6542 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6543
6544         * aix-thread.c (ppc-tdep.h): Include.
6545         (special_register_p): New function.
6546         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6547         (store_regs_user_thread): Use register number information from
6548         gdbarch_tdep struct instead of hardcoded offsets relative to
6549         FIRST_UISA_SP_REGNUM.
6550         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6551         special_register_p() instead of using FPLAST_REGNUM and
6552         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6553         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6554         will be MQ's register number.
6555
6556 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6557
6558         * aix-thread.c (ops): Rename to aix_thread_ops.
6559         (base_ops): Rename to base_target.
6560         (ops_attach): Rename to aix_thread_attach.
6561         (ops_detach): Rename to aix_thread_detach.
6562         (ops_resume): Rename to aix_thread_detach.
6563         (ops_wait):   Rename to aix_thread_wait.
6564         (ops_kill):   Rename to aix_thread_kill.
6565         (init_ops):   Rename to init_aix_thread_ops.
6566         (ops_fetch_register): Rename to aix_thread_fetch_register.
6567         (ops_store_register): Rename to aix_thread_store_register.
6568         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6569         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6570         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6571         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6572         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6573         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6574         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6575         (store_regs_lib):  Rename to store_regs_user_thread.
6576         (store_regs_kern): Rename to store_regs_kernel_thread.
6577
6578 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6579
6580         * aix-thread.c (ops_prepare_to_store): Eliminate.
6581         (init_ops): Don't initialize ops.prepare_to_store.
6582         (store_regs_kern): Pre-fetch register buffers from child, 
6583         because some registers may not be in the cache.  Copy
6584         regs from register cache only if they are cached.
6585         (store_regs_lib): Copy regs from register cache only
6586         if they are cached.
6587         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6588         fill_gprs64): Ditto.
6589
6590 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6591
6592         * aix-thread.c (gdb_assert.h): Include.
6593         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6594         register sizes (from register cache) match size of buffer holding
6595         register data.
6596         (fill_sprs32): Change parameter types to match those in the ptrace()
6597         buffer.
6598         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6599         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6600
6601 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6602
6603         * aix-thread.c (supply_sprs64): Cosmetic change.
6604         (supply_sprs32): Cosmetic change.
6605         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6606         (fill_sprs64): Use regcache_collect instead of read_register.
6607         (store_regs_lib): Use regcache_collect instead of 
6608         read_register.  Use fill_sprs32 instead of fill_sprs64,
6609         if debugging a 32-bit architecture.
6610         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6611         out of the register cache, instead of passing a pointer into
6612         the register cache directly to ptrace.  Use regcache_collect
6613         insteaad of read_register.
6614         (ops_prepare_to_store): Use target_read_registers instead
6615         of read_register_bytes.
6616
6617 2002-07-20  Aidan Skinner <aidan@velvet.net>
6618
6619         * MAINTAINERS: Add self under write after approval. 
6620                 
6621 2002-07-20  Aidan Skinner <aidan@velvet.net>
6622
6623         * ada-tasks.c: Change k&r style function definitions to prototyped
6624         form.
6625                 
6626 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6627
6628         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6629         * x86-64-tdep.c: Include "objfiles.h".
6630         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6631         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6632
6633 2002-07-17  Michal Ludvig  <michal@suse.cz>
6634
6635         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6636         (update_context): Initialise cfa variable.
6637
6638 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6639
6640         * aix-thread.c: Shorten some long lines.  
6641         Bring comments into line with code spec.
6642
6643 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6644
6645         * infrun.c: Re-indent using gdb_indent.sh.
6646
6647 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6648
6649         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6650         Leave the indentation temporarily untouched, to minimize the diffs.
6651
6652 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6653
6654         * stabsread.c: Make os9k sections of the code obsolete,
6655         for real this time.
6656         * stabsread.h: Make os9k sections of the code obsolete.
6657
6658 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6659
6660         * linux-low.c (regsets_store_inferior_registers): Add free()
6661         at the end of a loop to prevent memory leak.
6662         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6663         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6664         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6665         line a comment.
6666         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6667
6668 2002-07-17  Jim Blandy  <jimb@redhat.com>
6669
6670         * macrocmd.c (info_macro_command): Remove newline from error
6671         message.
6672
6673 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6674
6675         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6676         (sh_gdbarch_init): Use it for sh-dsp.
6677
6678 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6679
6680         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6681         64-bit DWARF2 format.
6682
6683 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6684
6685         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6686         <sys/proc.h> when not available.
6687
6688 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6689
6690         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6691         * stabsread.c: Make os9k sections of the code obsolete.
6692         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6693         * config/i386/i386os9k.mt: Make file obsolete.
6694         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6695         (COMMON_OBS): Remove os9kread.o
6696         (SFILES): Remove os9kread.c.
6697         (os9kread.o, remote-os9k.o): Make target obsolete.
6698         * remote-os9k.c: Make file obsolete.
6699         * os9kread.c: Make file obsolete.
6700         * Makefile.in
6701
6702 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6703
6704         * NEWS: Mention that the FR30 has been made obsolete.
6705         * fr30-tdep.c: Make file obsolete.
6706         * config/fr30/tm-fr30.h: Ditto.
6707         * config/fr30/fr30.mt: Ditto.
6708         * configure.tgt: Make fr30-*-elf obsolete.
6709         * MAINTAINERS: Make fr30-elf obsolete.
6710
6711 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6712
6713         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6714         found is not inside a section.
6715
6716 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6717
6718         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6719         strerror().
6720         (pdc_realloc): Use xrealloc() instead of realloc().
6721
6722 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6723
6724         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6725         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6726         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6727         macros.
6728
6729 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6730
6731         * aix-thread.c (ptrace_check): Eliminate goto.
6732         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6733         problem.
6734
6735 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6736
6737         * aix-thread.c (gdbcmd.h): Include.
6738         (DEBUG, DBG, DBG2, dbg): Eliminate.
6739         (debug_aix_thread): New static global.
6740         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6741         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6742         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6743         invocations to DBG and DBG2 macros to test against
6744         ``debug_aix_thread'' and call fprintf_unfiltered().
6745         (_initialize_aix_thread): Add new command "set debug aix-thread".
6746
6747 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6748
6749         From Gerhard Tonn <TON@de.ibm.com>:
6750         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6751         instead of supply_register.
6752
6753 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6754
6755         * dwarf2cfi.c: Include "gdb_assert.h".
6756         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6757         non-NULL.
6758         (update_context): Do not use __func__.  Add missing ``break''.
6759         (update_context): Do not use __func__.
6760
6761 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6762
6763         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6764         and its setting.  Set gdbarch instruction printing functions
6765         directly.  For non-rs6000 case use new function
6766         gdb_print_insn_powerpc.
6767         (gdb_print_insn_powerpc): New function.
6768
6769 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6770
6771         * NEWS: Mention that the d30v has been marked obsolete.
6772         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6773         * configure.tgt: Mark d30v-*-* as obsolete.
6774         * d30v-tdep.c: Mark file as obsolete.
6775         * config/d30v/d30v.mt: Ditto.
6776         * config/d30v/tm-d30v.h: Ditto.
6777
6778 2002-07-13  Aidan Skinner <aidan@velvet.net>
6779
6780         * ada-tasks.c (add_task_entry): replace calls to
6781         malloc() with xmalloc
6782         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6783         
6784         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6785         ada_finish_decode_line_1, all_sals_for_line
6786         ada_breakpoint_rewrite): replace calls to free() with xfree()
6787                 
6788 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6789
6790         From Nicholas Duffek (with minor changes by Martin Hunt, 
6791         Louis Hamilton, and Kevin Buettner):
6792         * aix-thread.c: New file.
6793
6794 2002-07-12  Petr Sorfa <petrs@caldera.com>
6795
6796         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6797         complaint for invalid attribute class or form.
6798         (read_func_scope): DW_AT_frame_base
6799         better handling of DW_AT_block*.
6800         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6801         better handling of DW_AT_block*.
6802         (read_common_block): DW_AT_location
6803         better handling of DW_AT_block*.
6804         (read_partial_die): DW_AT_location better handling
6805         of DW_AT_block*.
6806         (new_symbol): DW_AT_external better handling of
6807         DW_AT_block*. Proper initialization of variable
6808         "addr".
6809         (attr_form_is_block): New function that returns true
6810         if the attribute's form is of DW_FORM_block*.
6811
6812 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6813
6814         * valops.c (find_method_list): Remove comment about
6815         removed STATIC_MEMFUNCP argument.
6816         (value_find_oload_method_list): Likewise.
6817
6818 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6819
6820         From Nicholas Duffek:
6821         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6822         target_new_objfile_hook.
6823
6824 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6825
6826         From Nicholas Duffek:
6827         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6828         csect.
6829
6830 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6831
6832         * MAINTAINERS: Mention --enable-sim-build-warnings.
6833         (m68hc11-elf): Disable sim build warnings.
6834         (m32r-elf): Mark as broken obsolete candidate.
6835         (x86_64-linux-gnu): Mark as buildable with -Werror.
6836         (arm-elf): Change -w to ``,'' which enables warnings but not
6837         -Werror.
6838
6839 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6840
6841         * bcache.h: Update copyright.
6842         (struct bstring, struct bcache): Move definition to "bcache.c".
6843         Replaced by opaque declaration.
6844         (bcache_xfree): Replace free_bcache.
6845         (bcache_xmalloc, bcache_memory_used): Declare.
6846         
6847         * bcache.c: Update copyright.
6848         (struct bstring, struct bcache): Moved to here from "bcache.h".
6849         Update comments.
6850         (bcache_xmalloc, bcache_memory_used): New functions.
6851         (bcache_xfree): Replace function free_bcache.
6852         
6853         * Makefile.in (objfiles.o): Add $(bcache_h).
6854         (objfiles_h): Remove $(bcache_h).
6855         (symfile.o): Add $(bcache_h).
6856
6857         * symmisc.c: Update copyright.
6858         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6859         (print_objfile_statistics): Use bcache_memory_used.
6860
6861         * symfile.c: Include "bcache.h".
6862         (reread_symbols): Use bcache_xfree.
6863         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6864         (add_psymbol_to_list): Pass psymbol_cache by value.
6865         (add_psymbol_with_dem_name_to_list): Ditto.
6866
6867         * objfiles.h: Update copyright.
6868         (struct bcache): Declare opaque.  Do not include "bcache.h".
6869         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6870         bcache'' pointers.
6871         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6872
6873         * objfiles.c: Include "bcache.h".  Update copyright.
6874         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6875         macro_cache.
6876         (free_objfile): Use bcache_xfree.
6877
6878 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6879
6880         * monitor.c (monitor_fetch_register): Make name a constant.
6881         (monitor_store_register): Same.
6882
6883 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6884
6885         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6886         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6887         (finish_block) For non-function blocks, hash the symbol table.  For
6888         function blocks, mark the symbol table as unhashed.
6889         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6890         (msymbol_hash_iw): Likewise.
6891         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6892         value.
6893         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6894         (lookup_minimal_symbol): Likewise for both.
6895         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6896         hashtable.
6897         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6898         (ALL_BLOCK_SYMBOLS): Update.
6899         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6900         (struct symbol): Add `hash_next' pointer.
6901         * symtab.c (lookup_block_symbol): Search using the hash table when
6902         possible.
6903         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6904         (search_symbols, find_addr_symbol): Likewise.
6905
6906         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6907         (read_dst_symtab): Likewise.
6908         * jv-lang.c (get_java_class_symtab): Likewise.
6909         * mdebugread.c: Include "gdb_assert.h".
6910         (shrink_block): Assert that the block being modified is not hashed.
6911         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6912         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6913         symbols.
6914         (dump_symtab): Recognize hashed blocks.
6915         * printcmd.c (print_frame_args):  Assert that function blocks do not
6916         have hashed symbol tables.
6917         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6918         (fill_in_ada_prototype, debug_print_block): Likewise.
6919         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6920
6921 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6922
6923         * stack.c (print_frame): Use result of frame_address_in_block()
6924         instead of fi->pc when evaluating symbols.
6925         (backtrace_command_1): Ditto.
6926
6927 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6928
6929         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6930         Make static.
6931
6932         * arm-tdep.c (arm_register_name): Make return type constant.
6933
6934 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6935
6936         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6937         prototype.
6938         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6939         * s390-tdep.c (s390_fp_regnum): Ditto.
6940         (s390_read_fp): Ditto.
6941         (s390_pop_frame): Ditto.
6942         (_initialize_s390_tdep): Ditto.
6943         * remote.c (get_remote_state): Ditto.
6944         * procfs.c (mappingflags): Ditto.
6945         * memattr.c (_initialize_mem): Ditto.
6946         * mcore-tdep.c (mcore_pop_frame): Ditto.
6947         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6948         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6949         * language.c (set_case_str): Ditto.
6950         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6951         * frv-tdep.c (new_variant): Ditto.
6952         (frv_stopped_data_address): Ditto.
6953         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6954         (context_alloc): Ditto.
6955         (frame_state_alloc): Ditto.
6956         (unwind_tmp_obstack_init): Ditto.
6957         (unwind_tmp_obstack_free): Ditto.
6958         (cfi_read_fp): Ditto.
6959         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6960         (cris_pop_frame): Ditto.
6961         * c-lang.c (scanning_macro_expansion): Ditto.
6962         (finished_macro_expansion): Ditto.
6963         (c_preprocess_and_parse): Ditto.
6964         * gdbarch.sh: Ditto.
6965         * gdbarch.h, gdbarch.c: Regenerate.
6966         * config/mn10200/tm-mn10200.h: Adjust indentation.
6967         * target.c: Adjust indentation.
6968         * symtab.h: Adjust indentation.
6969         * stabsread.h: Adjust indentation.
6970         * remote-es.c: Adjust indentation.
6971         * os9kread.c: Adjust indentation.
6972
6973 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6974         
6975         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6976         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6977
6978 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6979         
6980         * NEWS: Mention m68k, mcore multi-arching.  
6981         * MAINTAINERS: Change status of m68k, mcore to reflect
6982         multi-arching.
6983
6984 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6985
6986         * valops.c (find_overload_match): Free oload_syms.
6987
6988 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6989
6990         Define HAVE_SYS_PROC_H if sys/proc.h exists
6991         * configure.in: Add check for sys/proc.h
6992         * config.in: Regenerate.
6993         * configure: Regenerate.
6994
6995 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6996
6997         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6998         #if !GDB_MULTI_ARCH. 
6999
7000 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7001
7002         * config.in, configure: Regenerate.
7003
7004 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7005
7006         * dwarf2cfi.c: Include "gcore.h".
7007         (execute_stack_op): Fix implementation of the
7008         DW_OP_deref and DW_OP_deref_size operators by letting do their
7009         lookup in the target.
7010
7011 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7012
7013         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7014         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7015         tdep->sc_sp_offset.
7016
7017 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7018
7019         Fix PR gdb/595, gdb/602
7020         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7021         Don't call value_cast, just read the vtable pointer; update comments
7022         to match.
7023
7024 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7025
7026         * config/mcore/tm-mcore.h: Remove file.
7027         * config/mcore/mcore.mt: Remove definition of TM_FILE
7028         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7029
7030 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7031
7032         * i386bsd-tdep.c: Include "gdb_string.h".
7033
7034 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7035
7036         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7037         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7038         mcore-tdep.
7039         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7040         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7041         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7042         (RETVAL_REGNUM): Move macros from tm-mcore.h
7043         (mcore_reg_struct_has_addr): New function.
7044         (mcore_gdbarch_init): Added initializations for the macros removed
7045         from tm-mcore.h.
7046
7047 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7048
7049         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7050         traditonal string branding within the ELF header.
7051
7052 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7053
7054         * symtab.c (remove_params): New function.
7055         (make_symbol_overload_list): Use it instead of cplus_demangle.
7056         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7057
7058 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7059
7060         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7061
7062         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7063         New variables.
7064         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7065         and tdep->sigtramp_end.
7066         * i386obsd-nat.c: New file.
7067         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7068
7069         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7070         Don't call get_current_frame().
7071
7072 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7073
7074         * i386-nat.c (child_post_startup_inferior): New function
7075         calling i386_cleanup_dregs if
7076         I386_USE_GENERIC_WATCHPOINTS is defined.
7077         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7078         conditional to acknowledge that i386-nat.c has its
7079         own child_post_startup_inferior function.
7080
7081 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7082
7083         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7084         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7085         instead of MAX_REGISTER_RAW_SIZE.
7086         (i386_extract_return_value, i386_extract_struct_value_address):
7087         Convert to use regcache.
7088         (i386_gdbarch_init): Set max_register_raw_size and
7089         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7090         Set extract_return_value and extract_struct_value_address instead
7091         of their deprecated variants.
7092
7093         Convert i386 target to generic dummy frames.
7094         * i386-tdep.c: Include "symfile.h".
7095         (i386_frameless_signal_p): Consider a function to be frameless if
7096         the pc points at the first instruction of the function.
7097         (i386_frame_chain): Handle (generic) call dummies.
7098         (i386_frame_saved_pc): Likewise.
7099         (i386_frame_init_saved_regs): Remove code dealing with call
7100         dummies on the stack.
7101         (i386_push_dummy_frame): Removed.
7102         (i386_call_dummy_words): Removed.
7103         (i386_fix_call_dummy): Removed.
7104         (i386_push_return_address): New function.
7105         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7106         parameter, and don't call get_current_frame.
7107         (i386_pop_frame): New function.
7108         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7109         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7110         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7111         call_dummy_length to 0, set call_dummy_words to NULL, set
7112         sizeof_call_dummy_words to 0, set fix_call_dummy to
7113         generic_fix_call_dummy, set pc_in_call_dummy to
7114         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7115         generic_push_dummy_frame, set push_return_address to
7116         i386_push_return_address and set frame_chain_valid to
7117         generic_file_frame_chain_valid.
7118
7119 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7120
7121         * gdbarch.sh (struct regcache): Add opaque declaration.
7122         (EXTRACT_RETURN_VALUE): New architecture method.
7123         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7124         * gdbarch.h, gdbarch.c: Regenerate.
7125         * arch-utils.c (legacy_extract_return_value): New function.
7126         * arch-utils.h (legacy_extract_return_value): Declare.
7127         * values.c (value_being_returned): Re-enable code handling
7128         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7129         deprecated_grub_regcache_for_registers call to block handling
7130         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7131         (EXTRACT_RETURN_VALUE): Do not define.
7132
7133 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7134
7135         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7136         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7137         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7138         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7139         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7140         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7141         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7142         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7143         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7144         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7145         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7146         argument so the function fits the prototype in the architecture
7147         vector.
7148         (mcore_pop_frame): Remove argument so the function fits the
7149         prototype. Use get_current_frame instead of the argument.
7150         (mcore_push_arguments): Change type of struct_return so the
7151         function can be used in the architecture vector.
7152         (mcore_store_struct_return): Add.
7153         (mcore_frame_init_saved_regs): Add.
7154         (mcore_gdbarch_init): Add function calls to replace the macros
7155         removed from tm-mcore.h
7156
7157 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7158
7159         * infcmd.c (print_return_value): Remove compatibility code calling
7160         deprecated_grub_regcache_for_registers.
7161         
7162         * values.c: Include "regcache.h".
7163         (value_being_returned): Update.  Use
7164         deprecated_grub_regcache_for_registers to extract the register
7165         buffer address.  
7166         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7167         ``struct regcache''.
7168         * Makefile.in (values.o): Add dependency on $(regcache_h).
7169
7170         * inferior.h (run_stack_dummy): Change type of second parameter to
7171         a ``struct regcache''.
7172         * valops.c (hand_function_call): Change type of retbuf to ``struct
7173         regcache''.  Allocate using regcache_xmalloc, clean using
7174         make_cleanup_regcache_xfree.
7175         * infcmd.c (run_stack_dummy): Update.  Use
7176         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7177
7178         * regcache.c (do_regcache_xfree): New function.
7179         (make_cleanup_regcache_xfree): New function.
7180         * regcache.h (make_cleanup_regcache_xfree): Declare.
7181
7182 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7183
7184         * event-top.c (command_line_handler): Don't read past
7185         beginning of buffer.
7186
7187 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7188         
7189         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7190         struct frame_id. 
7191         (varobj_create): Store frame_id for root.
7192         (varobj_gen_name): Use xasprintf.
7193         (varobj_update): Save and restore frame using get_frame_id() and
7194         frame_find_by_id().
7195         (create_child): Use xasprintf.
7196         (new_root_variable): Initialize frame_id.
7197         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7198         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7199         to prevent memory leak.
7200
7201 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7202
7203         * valops.c (hand_function_call): Move declaration of retbuf to
7204         start of function, allocate using malloc, add a cleanup but before
7205         the inf_status cleanup, cleanup the buffer.  Rename local variable
7206         old_chain to inf_status_cleanup.
7207
7208 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7209
7210         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7211
7212         * cli/cli-decode.c (cmd_func_p): New function.
7213         (cmd_func): New function.
7214
7215         * command.h: Add cmd_func() and cmd_func_p().   
7216         
7217 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7218
7219         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7220         (REGISTER_SIZE): Remove.
7221         (MAX_REGISTER_RAW_SIZE): Remove.
7222         (REGISTER_VIRTUAL_TYPE): Remove.
7223         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7224         (REGISTER_NAME): Remove.
7225         (USE_GENERIC_DUMMY_FRAMES): Remove.
7226         (CALL_DUMMY): Remove.
7227         (CALL_DUMMY_START_OFFSET): Remove.
7228         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7229         (CALL_DUMMY_LOCATION): Remove.
7230         (FIX_CALL_DUMMY): Remove.
7231         (CALL_DUMMY_ADDRESS): Remove.
7232         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7233         (SAVE_DUMMY_FRAME_TOS): Remove.
7234         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7235         (mcore_register_virtual_type): New function.
7236         (mcore_register_byte): New function.
7237         (mcore_register_size): New function.
7238         (mcore_register_name): New function.
7239         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7240         macros removed from tm-mcore.h.
7241         (mcore_dump_tdep): Add.
7242         (_initialize_mcore_tdep): Add gdbarch_register call.
7243
7244 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7245
7246         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7247         frameless_look_for_prologue, such that we actually call this
7248         function.
7249
7250 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7251
7252         * frame.h (frame_address_in_block): New function.
7253
7254         * blockframe.c (frame_address_in_block): New function extracted
7255         from get_frame_block().
7256         (get_frame_block): Use frame_address_in_block().
7257         (block_innermost_frame): Use frame_address_in_block() to match
7258         the frame pc address against the block boundaries rather than
7259         the frame pc directly. This prevents a failure when a frame pc
7260         is actually a return-address pointing immediately after the end
7261         of the given block. 
7262
7263 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7264
7265         * MAINTAINERS: Add self under write after approval. 
7266
7267 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7268
7269         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7270         used in architecture vector. The default is
7271         m68k_local_breakpoint_from_pc.
7272         (m68k_local_breakpoint_from_pc): Add.
7273         (enum): Add register numbers from tm-m68k.h.
7274         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7275         vector.  
7276         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7277         GDB_MULTI_ARCH_PARTIAL.
7278         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7279         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7280         m68k-tdep.c.
7281         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7282         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7283         to enum in m68k-tdep.c
7284
7285 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7286
7287         * solib-osf.c (open_map): Compute the list of shared libraries
7288         loaded by the inferior, rather than the list of libraries loaded
7289         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7290         the wrong shared libraries...
7291
7292 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7293
7294         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7295         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7296         macros.
7297         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7298         Remove functions.
7299         (FRAMELESS_SIGNAL): Remove function.
7300         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7301         i386_linux_saved_pc_after_call): Removed.
7302         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7303         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7304         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7305
7306         * i386-tdep.c (i386_frameless_signal_p): New function.
7307         (i386_frame_chain): Deal with frameless signals.
7308         (i386_sigtramp_saved_sp): New function.
7309         (i386_frame_saved_pc): Deal with frameless signals.
7310         (i386_saved_pc_after_call): Make sure the correct value is
7311         returned just after entry into a sigtramp.
7312         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7313         i386fbsd4_sc_sp_offset): New variables.
7314         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7315         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7316         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7317         similiar to what we already did for sc_pc_offset.
7318         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7319         tdep->sc_sp_offset.
7320
7321         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7322
7323 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7324
7325         * config/i386/tm-x86-64linux.h: New.
7326         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7327         definitions.
7328         * config/i386/nm-x86-64.h: Rename to ...
7329         * config/i386/nm-x86-64linux.h: ... this one.
7330         * config/i386/x86-64linux.mh: Reflect the above change.
7331         
7332 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7333
7334         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7335         with sigcontext_addr.  Add sc_sp_offset.
7336         (i386bsd_sigtramp_saved_pc): Remove prototype.
7337         (i386bsd_sicontext_addr): Add prototype.
7338         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7339         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7340         (i386_svr4_sigtramp_saved_pc): Removed.
7341         (i386_svr4_sigcontext_addr): New function.
7342         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7343         Initialize tdep->sigcontext_addr instead.  Initialize
7344         tdep->sc_pc_offset and tdep->sc_sp_offset.
7345         (i386_gdbarch_init): Likewise.
7346         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7347         any more.
7348         (i386bsd_sigtramp_saved_pc): Remove function.
7349         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7350         Initialize tdep->sigcontext_addr instead.  Initialize
7351         tdep->sc_pc_offset.
7352         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7353         of tdep->sigtramp_saved_pc.
7354         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7355         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7356         instead.
7357
7358         * i386-tdep.c (i386_frameless_function_invocation,
7359         i386_frame_num_args, i386_frame_init_saved_regs,
7360         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7361         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7362         i386_extract_return_value, i386_store_return_value,
7363         i386_extract_struct_value_address, i386_register_virtual_type,
7364         i386_register_convertible, i386_register_convert_to_virtual,
7365         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7366         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7367         static.
7368
7369 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7370
7371         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7372
7373         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7374         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7375         this macro.  Include "value.h".
7376
7377 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7378
7379         * ada-exp.tab.c: remove as it's a generated file
7380         * ada-lex.c: remove as it's a generated file
7381                 
7382 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7383
7384         * config/i386/tm-i386.h (struct frame_info, struct
7385         frame_saved_regs, struct value, struct type): Remove forward
7386         declarations.
7387
7388         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7389         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7390         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7391         (FILL_FPXREGSET): Define.
7392
7393         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7394
7395         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7396         i[3456]86-*-netbsd* case.
7397         * config/i386/tm-obsd.h: Removed.
7398         * config/i386/obsd.mt: Removed.
7399         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7400         core-aout.o.
7401         (MH_CFLAGS): Add -DYYDEBUG=0.
7402
7403         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7404         i386nbsd_sc_pc_offset on OpenBSD too.
7405
7406         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7407         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7408         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7409         define.
7410         * i386bsd-tdep.c: Include "arch-utils.h".
7411         (i386bsd_aout_in_solib_call_trampoline): New function.
7412         (i386bsd_init_abi): Set in_solib_call_trampoline to
7413         i386bsd_aout_in_solib_call_trampoline.
7414         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7415         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7416
7417 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7418
7419         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7420         (struct obstack, struct bcache): Add opaque declarations.
7421         * Makefile.in (macrotab_h): Update
7422
7423 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7424
7425         * blockframe.c (generic_find_dummy_frame): Change return type to
7426         ``struct regcache''.
7427         (struct dummy_frame): Replace field ``registers'' with regcache, a
7428         struct regcache object.
7429         (generic_find_dummy_frame): Update.
7430         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7431         regcache_xmalloc and regcache_cpy.
7432         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7433         regcache_xfree.
7434         (deprecated_generic_find_dummy_frame): Update.
7435         (generic_read_register_dummy): Update.  Use
7436         regcache_read_as_address.
7437         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7438         (generic_get_saved_register): Update.  Use regcache_read.
7439
7440 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7441
7442         * Makefile.in (objfiles_h): Add $(bcache_h).
7443         * objfiles.h: Include "bcache.h".
7444
7445         * Makefile.in (symtab_h): Remove $(bcache_h).
7446         * symtab.h: Do not include "bcache.h".
7447
7448 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7449
7450         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7451         generic_func_frame_chain_valid.
7452
7453 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7454
7455         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7456         * config/i386/tm-fbsd.h: Likewise.
7457
7458 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7459
7460         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7461         generic_unwind_get_saved_register.
7462
7463 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7464
7465         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7466         * regcache.c (supply_register): Add missing argument to
7467         register_buffer call.
7468
7469 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7470
7471         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7472         Solaris /bin/grep does not not like it.  From Peter Schauer.
7473
7474 2002-06-26  Tom Tromey  <tromey@redhat.com>
7475
7476         * command.h (add_setshow_cmd): Declare.
7477         (add_setshow_cmd_full): Declare.
7478         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7479         returns void.  Use add_setshow_cmd_full.
7480         (add_setshow_cmd_full): New function.
7481         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7482         (add_setshow_boolean_cmd): Likewise.
7483
7484 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7485
7486         * config/vax/tm-vax.h: Protect from multiple inclusion.
7487         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7488         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7489         * config/vax/tm-vaxbsd.h: ...here.  New file.
7490         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7491
7492 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7493
7494         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7495         (BELIEVE_PCC_PROMOTION): Remove.
7496         (AP_REGNUM): Move to...
7497         * config/vax/nm-vax.h: ...here.
7498         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7499         (vax_breakpoint_from_pc): New function.
7500         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7501         and gdbarch_believe_pcc_promotion.
7502
7503 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7504
7505         * Makefile.in (vax_tdep_h): Define.  
7506         (vax-tdep.o): Use $(vax_tdep_h).
7507         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7508         (vax_dump_tdep): New function. 
7509         (_initialize_vax_tdep): Register vax_dump_tdep.
7510         * vax-tdep.h: Include osabi.h.     
7511         (struct gdbarch_tdep): New. 
7512
7513 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7514
7515         * frame.h (deprecated_generic_find_dummy_frame): Rename
7516         generic_find_dummy_frame.
7517         * blockframe.c (generic_find_dummy_frame): Make static.
7518         (deprecated_generic_find_dummy_frame): New function.
7519         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7520         generic_find_dummy_frame with deprecated_find_dummy_frame.
7521         (sh64_nofp_frame_init_saved_regs): Ditto.
7522         (sh_fp_frame_init_saved_regs): Ditto.
7523         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7524         (s390_frame_chain): Ditto.
7525         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7526
7527 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7528
7529         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7530         gdbarch vector are at the top.
7531         (NUM_REGS): Remove.
7532         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7533         (FRAME_ARGS_ADDRESS): Remove.
7534         (FRAME_LOCALS_ADDRESS): Remove.
7535         (FRAME_NUM_ARGS): Remove.
7536         (FRAME_ARGS_SKIP): Remove.  
7537         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7538         (m68k_gdbarch_init): Add gdbarch initializations for macros
7539         undefined in tm-m68k.h
7540
7541 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7542
7543         * monitor.h: Add the function regname to monitor_ops
7544         structure. This way NUM_REGS does not have to be a constant.
7545         * monitor.c (monitor_fetch_register): Added support for regname
7546         function. The function is called if the array regnames is NULL.
7547         (monitor_store_register): Same.
7548         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7549         regnames array.
7550         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7551         cpu32bug_cmds.regname to point to new function.
7552         * abug-rom.c (abug_regname): Same as above.
7553         (init_abug_cmds): Same.
7554         * dbug-rom.c (dbug_regname): Same as above.
7555         (init_dbug_cmds): Same.
7556         * remote-est.c (est_regname): Same. 
7557         (init_est_cmds): Same.
7558         * rom68k-rom.c (rom68k_regname): Same. 
7559         (init_rom68k_cmds): Same.
7560
7561 2002-06-25  Tom Tromey  <tromey@redhat.com>
7562
7563         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7564
7565 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7566
7567         * infrun.c (stop_registers): Change variable's type to ``struct
7568         regcache'''.
7569         (xmalloc_inferior_status): Delete function.
7570         (free_inferior_status): Delete function.
7571         (normal_stop): Use regcache_cpy.
7572         (struct inferior_status): Change type of fields ``stop_registers''
7573         and ``registers'' to ``struct regcache''.
7574         (write_inferior_status_register): Use regcache_write.
7575         (save_inferior_status): Instead of calling
7576         xmalloc_inferior_status, allocate the inf_status buffer directly.
7577         Use regcache_dup_no_passthrough and regcache_dup to save the
7578         buffers.
7579         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7580         Replace the stop_registers regcache instead of overriding it.  Use
7581         regcache_xfree.  Instead of calling free_inferior_status, xfree
7582         the buffer directly.
7583         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7584         free_inferior_status, xfree the buffer directly.
7585         (build_infrun): Use regcache_xmalloc.
7586         (_initialize_infrun): Delete redundant call to build_infrun.
7587
7588         * Makefile.in (infcmd.o): Add $(regcache_h).
7589
7590         * infcmd.c: Include "regcache.h".
7591         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7592         obtain the address of `stop_registers' register buffer.
7593         (print_return_value): Ditto.
7594
7595         * inferior.h (struct regcache): Add opaque declaration.
7596         (stop_registers): Change variable's declared type to ``struct
7597         regcache''.
7598
7599 2002-06-24  Tom Tromey  <tromey@redhat.com>
7600
7601         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7602         * target.c (initialize_targets): Fixed typo in
7603         trust-readonly-sections `show' documentation.
7604
7605         * main.c: Marked all strings with _().
7606
7607 2002-06-24  Don Howard  <dhoward@redhat.com>
7608
7609         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7610         that means max CORE_ADDR+1.
7611         (lookup_mem_region): Ditto.
7612         (mem_info_command): Ditto.
7613
7614 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7615
7616         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7617         (REGISTER_BYTES_OK): Remove.
7618         (REGISTER_BYTES): Remove.
7619         (STORE_STRUCT_RETURN): Remove.
7620         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7621         (STORE_RETURN_VALUE): Remove.
7622         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7623         (FRAME_CHAIN): Remove.
7624         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7625         (FRAME_SAVED_PC): Remove.  
7626         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7627         (m68k_store_struct_return): Add.
7628         (m68k_deprecated_extract_return_value): Add.
7629         (m68k_deprecated_extract_struct_value_address): Add.
7630         (m68k_store_return_value): Add.
7631         (m68k_frame_chain): Add.
7632         (m68k_frameless_function_invocation): Add.
7633         (m68k_frame_saved_pc): Add.
7634         (m68k_gdbarch_init): added set_gdbarch calls for new 
7635         functions and deleted macros.
7636
7637 2002-06-23  Tom Tromey  <tromey@redhat.com>
7638
7639         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7640         (ALLDEPFILES): Likewise.
7641         (udiheaders): Removed.
7642         (udip2soc.o): Likewise.
7643         (udi2go32.o): Likewise.
7644         (udr.o): Likewise.
7645         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7646
7647 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7648
7649         * infrun.c (_initialize_infrun): Delete unnecessary call to
7650         build_infrun.
7651
7652         * regcache.h: Update comments describing the regcache_cpy family
7653         of functions.
7654         (regcache_save, regcache_restore): Delete declaration.
7655         (regcache_save_no_passthrough): Delete declaration.
7656         (regcache_restore_no_passthrough): Delete declaration.
7657         * regcache.c (regcache_save): Delete function.
7658         (regcache_save_no_passthrough): Delete function.
7659         (regcache_restore): Delete function.
7660         (regcache_restore_no_passthrough): Delete function.
7661
7662 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7663
7664         * config/m68k/tm-m68k.h: Fix typo.
7665         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7666         (m68k_frame_init_saved_regs): Declare.
7667
7668 2002-06-21  Jim Blandy  <jimb@redhat.com>
7669
7670         Remove some vestiges of Harris 88k support.
7671         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7672         register numbering quirk.
7673         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7674         odd symbols occurring in Harris 88k ELF targets.
7675
7676 2002-06-21  Tom Tromey  <tromey@redhat.com>
7677
7678         * gdb_locale.h: New file.
7679         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7680         (defs_h): Added gdb_locale.h.
7681         * configure, config.in: Rebuilt.
7682         * configure.in (PACKAGE): Define.
7683         * defs.h: Include gdb_locale.h.
7684         * main.c (captured_main): Call setlocale, bindtextdomain,
7685         textdomain.
7686
7687 2002-06-21  Dave Brolley  <brolley@redhat.com>
7688
7689         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7690         * config/frv/frv.mt: New file.
7691         * config/frv/tm-frv.h: New file.
7692         * configure.tgt: Support frv-*-*.
7693         * Makefile.in (frv-tdep.o): New target.
7694         * frv-tdep.c: New file.
7695         * NEWS: Mention frv.
7696
7697 2002-06-21  Dave Brolley  <brolley@redhat.com>
7698
7699         * MAINTAINERS: Add self to "Write After Approval" list.
7700
7701 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7702
7703         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7704         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7705         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7706         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7707         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7708
7709         * m68k-tdep.c: Include arch-utils.h
7710         (m68k_register_raw_size): Add.
7711         (m68k_register_virtual_size): Add.
7712         (m68k_register_virtual_type): Add.
7713         (m68k_register_name): Add.
7714         (m68k_stack_align): Add.
7715         (m68k_register_byte): Add.
7716         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7717         tm-m68k.h.
7718
7719 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7720
7721         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7722         m68k_find_saved_regs.
7723         (m68k_pop_frame): Removed saved_regs structure, and replaced
7724         references to it with frame->saved_regs.
7725         (m68k_gdbarch_init): Added function calls to initialize the
7726         gdbarch structure.
7727         (m68k_fix_call_dummy): Add. 
7728         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7729         (CALL_DUMMY): Remove.
7730         (CALL_DUMMY_LENGTH): Remove.
7731         (CALL_DUMMY_START_OFFSET): Remove.
7732         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7733         (FIX_CALL_DUMMY): Remove.
7734         (PUSH_DUMMY_FRAME): Remove.
7735         (POP_FRAME): Remove.
7736
7737 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7738
7739         * parse.c (parse_fprintf): New function used to avoid calls to
7740         fprintf in bison parser generated debug code.
7741         * parser-defs.h: Declaration of new parse_fprintf function.
7742         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7743         Set YYDEBUG to 1 by default.
7744         Set YYFPRINTF as parse_fprintf.
7745
7746 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7747
7748         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7749         encoding anymore.
7750         (pointer_encoding, enum ptr_encoding): New.
7751         (execute_cfa_program): Take care about pointer encoding.        
7752         (dwarf2_build_frame_info): Only call parse_frame_info for 
7753         .debug_frame and .eh_frame.
7754         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7755         fixed augmentation handling, added relative addressing, 
7756         ignore duplicate FDEs. Added comments.
7757         * dwarf2cfi.c: Reindented.
7758         
7759 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7760
7761         * event-top.c (command_handler): Don't use space_at_cmd_start
7762         unless there is sbrk() on the host. Assign time and space data
7763         to union fields of the appropriate length.
7764
7765 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7766
7767         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7768         x86_64_register_name. Return type changed to 'const char *'.
7769         (x86_64_register_name2nr): Rename to x86_64_register_number.
7770         (x86_64_gdbarch_init): Update to reflect the change.
7771         * x86-64-tdep.h: Ditto.
7772         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7773         (supply_fpregset): Ditto.
7774
7775 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7776
7777         * regcache.h: Update copyright.
7778         (struct regcache, struct gdbarch): Add opaque declarations.
7779         (current_regcache): Declare global variable.
7780         (regcache_read, regcache_write): Add gdbarch parameter.
7781         (regcache_save, regcache_save_no_passthrough)
7782         (regcache_restore, regcache_restore_no_passthrough)
7783         (regcache_dup, regcache_dup_no_passthrough)
7784         (regcache_cpy, regcache_cpy_no_passthrough)
7785         (deprecated_grub_regcache_for_registers)
7786         (deprecated_grub_regcache_for_register_valid)
7787         (regcache_valid_p): Add function declarations.
7788         
7789         * regcache.c: Update copyright.
7790         (regcache_descr_handle): New global variable.
7791         (struct regcache_descr): Define.
7792         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7793         (regcache_descr, xfree_regcache_descr): New functions.
7794         (struct regcache): Define.
7795         (regcache_xmalloc, regcache_xfree): New functions.
7796         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7797         (regcache_dup, regcache_dup_no_passthrough): New functions.
7798         (regcache_valid_p, regcache_read_as_address): New functions.
7799         (deprecated_grub_regcache_for_registers): New function.
7800         (deprecated_grub_regcache_for_register_valid): New function.
7801         (current_regcache): New global variable.
7802         (register_buffer): Add regcache parameter.  Update calls.
7803         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7804         (read_register_gen, write_register_gen): Update register_buffer
7805         call.  Test for legacy_p instead of gdbarch_register_read_p or
7806         gdbarch_register_write_p.
7807         (regcache_collect): Update register_buffer call.
7808         (build_regcache): Rewrite.  Use deprecated grub functions.
7809         (regcache_save, regcache_save_no_passthrough): New functions.
7810         (regcache_restore, regcache_restore_no_passthrough): New
7811         functions.
7812         (_initialize_regcache): Create the regcache_data_handle. Swap
7813         current_regcache global variable.
7814         
7815         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7816         parameter to regcache_read and regcache_write calls.
7817         (sh4_register_read): Ditto.
7818         (sh64_pseudo_register_read): Ditto.
7819         (sh64_register_read): Ditto.
7820         (sh_pseudo_register_write): Ditto.
7821         (sh4_register_write): Ditto.
7822         (sh64_pseudo_register_write): Ditto.
7823         (sh64_register_write): Ditto.
7824
7825         * defs.h (XCALLOC): Define.
7826
7827 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7828
7829         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7830         * m68k-tdep.c (m68k_gdbarch_init): Added.
7831         (m68k_dump_tdep): Added.
7832
7833 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7834
7835         * ada-lang.c (fill_in_ada_prototype): Update comment.
7836
7837 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7838
7839         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7840         MIPS_ABI_LAST.
7841         (mips_abi_string, mips_abi_strings): New.
7842         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7843         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7844         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7845         O32 if no ABI is found.
7846         (mips_dump_tdep): Use mips_abi_strings.
7847         (mips_abi_update): New function.
7848         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7849         ``set mips abi'' and ``show mips abi''.  Check the size of
7850         mips_abi_strings.
7851
7852 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7853
7854         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7855         constant.
7856
7857 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7858
7859         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7860         current frame using only the first stack size adjustment. All
7861         subsequent size adjustments are not considered to be part of
7862         the "static" part of the current frame.
7863         Compute the address of the saved registers relative to the
7864         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7865         in use in this frame.
7866
7867 2002-06-18  Don Howard  <dhoward@redhat.com>
7868  
7869         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7870         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7871         suggesting this solution.
7872
7873 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7874
7875         * config/romp/xm-rtbsd.h: Delete file.
7876         * config/romp/rtbsd.mh: Delete file.
7877
7878 2002-06-18  Keith Seitz  <keiths@redhat.com>
7879
7880         * breakpoint.c (condition_command): Post breakpoint_modify
7881         when a condition is added to an existing breakpoint.
7882         (commands_command): Likewise for commands.
7883         (set_ignore_count): Likewise for ignore counts.
7884         If no tty, do not simply return, still need to send event
7885         notification.
7886         (ignore_command): Only print a newline if the command came
7887         from a tty.
7888         Don't call breakpoints_changed, since this is now properly
7889         handled by set_ignore_count.
7890
7891 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7892
7893         * MAINTAINERS: Note that cris-elf target can be compiled with
7894         -Werror.
7895         * cris-tdep.c (cris_register_name): Make return type constant.
7896         (cris_breakpoint_from_pc): Ditto.
7897
7898 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7899
7900         * frame.h (struct frame_info): Change type of context to 
7901         'struct context'.
7902
7903 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7904
7905         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7906         pointer.
7907         * gdbarch.h, gdbarch.c: Regenerate.
7908         * config/mips/tm-mips.h (mips_register_name): Update.
7909         * i386-tdep.h (i386_register_name): Update.
7910         * mips-tdep.c (mips_register_name): Update
7911         * alpha-tdep.c (alpha_register_name): Update.
7912         * arch-utils.c (legacy_register_name): Update.
7913         * arch-utils.h (legacy_register_name): Update.
7914         * avr-tdep.c (avr_register_name): Update.
7915         * ia64-tdep.c (ia64_register_name): Update.
7916         * i386-tdep.c (i386_register_name): Update.
7917         * sparc-tdep.c (sparc32_register_name): Update.
7918         (sparc64_register_name): Update.
7919         (sparclite_register_name): Update.
7920         (sparclet_register_name): Update.
7921         * sh-tdep.c (sh_generic_register_name): Update.
7922         (sh_sh_register_name): Update.
7923         (sh_sh3_register_name): Update.
7924         (sh_sh3e_register_name): Update.
7925         (sh_sh_dsp_register_name): Update.
7926         (sh_sh3_dsp_register_name): Update.
7927         (sh_sh4_register_name): Update.
7928         (sh_sh64_register_name): Update.
7929         * s390-tdep.c (s390_register_name): Update.
7930         * rs6000-tdep.c (rs6000_register_name): Update.
7931         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7932         (ns32k_register_name_32382): Update.
7933         * d10v-tdep.c (d10v_ts2_register_name): Update.
7934         (d10v_ts3_register_name): Update.
7935         * xstormy16-tdep.c (xstormy16_register_name): Update.
7936         * vax-tdep.c (vax_register_name): Update.
7937         * v850-tdep.c (v850_register_name): Update.
7938         * m68hc11-tdep.c (m68hc11_register_name): Update.
7939         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7940         (am33_register_name): Update.
7941
7942 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7943
7944         * m68k-tdep.c: Reindented.
7945
7946 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7947
7948         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7949         list of predefined types.
7950
7951 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7952
7953         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7954         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7955         REGISTER_CONVERT_TO_RAW): Remove defines.
7956         (i386_register_virtual_type, i386_register_convertible,
7957         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7958         Remove prototypes.
7959         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7960         macros mentioned above.
7961
7962         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7963         (i386lynx_saved_pc_after_call): Remove prototype.
7964         * i386ly-tdep.c: Include "i386-tdep.h".
7965         (i386lynx_saved_pc_after_call): Make static.  Use
7966         read_memory_nobpt instead of read_memory.  Use
7967         read_memory_unsigned_integer instead of read_memory_integer.
7968         (i386lynx_init_abi): New function.
7969         (i386lynx_coff_osabi_sniffer): New function.
7970         (_initialize_i386bsd_tdep): New function.
7971
7972         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7973         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7974         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7975         (i386_fix_call_dummy): Remove prototype.
7976         * i386-tdep.c (i386_call_dummy_words): New variable.
7977         (i386_gdbarch_init): Adjust for removal of the
7978         macros mentioned above.
7979
7980 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7981
7982         * command.h (add_setshow_auto_boolean_cmd): Replace
7983         add_set_auto_boolean_cmd.
7984         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7985         add_set_auto_boolean_cmd.
7986         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7987         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7988         mask-address'' command.
7989         (show_mask_address): Add cmd parameter.
7990         * remote.c (add_packet_config_cmd): Update.  Change type of
7991         set_func and show_func to cmd_sfunc_ftype.
7992         (_initialize_remote): Update `set remote Z-packet'
7993         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7994         (show_remote_protocol_e_packet_cmd): Ditto.
7995         (show_remote_protocol_E_packet_cmd): Ditto.
7996         (show_remote_protocol_P_packet_cmd): Ditto.
7997         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7998         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7999         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8000         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8001         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8002         (show_remote_protocol_Z_packet_cmd): Ditto.
8003         (show_remote_protocol_binary_download_cmd): Ditto.
8004         (show_remote_cmd): Pass NULL to all of above.
8005
8006 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8007
8008         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8009         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8010         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8011         POP_FRAME): Remove defines.
8012         (i386_push_arguments, i386_store_struct_return,
8013         i386_extract_return_value, i386_store_return_value,
8014         i386_extract_struct_value_address, i386_push_dummy_frame,
8015         i386_pop_frame): Renove prototypes.
8016         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8017         macros mentioned above.
8018
8019 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8020
8021         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8022         add_set_boolean_cmd.
8023         (add_setshow_cmd): New function.
8024         * command.h (add_setshow_boolean_cmd): Replace
8025         add_set_boolean_cmd.
8026         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8027         and ``set rdiromatzero''.
8028         * maint.c (_initialize_maint_cmds): Update commented out code.
8029         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8030         * target.c (initialize_targets): Update `set
8031         trust-readonly-sections'.
8032         * remote.c (_initialize_remote): Update `set remotebreak'.
8033
8034 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8035
8036         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8037         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8038         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8039         fit into multi-arch framework.
8040         (i386_breakpoint_from_pc): New function.
8041         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8042         above.
8043
8044         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8045         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8046         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8047         (i386_frameless_function_invocation, i386_frame_num_args,
8048         i386_frame_init_saved_regs): Remove prototypes.
8049         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8050         macros mentioned above.
8051
8052 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8053
8054         * cli/cli-decode.c (set_cmd_cfunc): Update.
8055         (set_cmd_sfunc): Update.
8056         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8057         (set_cmd_sfunc, set_cmd_cfunc): Update.
8058         * cli/cli-decode.h: Update.
8059
8060 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8061
8062         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8063         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8064
8065 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8066
8067         * defs.h (auto_boolean): Declare enum.
8068         * command.h (cmd_auto_boolean): Delete enum.
8069         * mips-tdep.c (mask_address_var): Update.
8070         (mips_mask_address_p): Update.
8071         (show_mask_address): Update.
8072         * remote.c (struct packet_config): Update.
8073         (update_packet_config): Update.
8074         (show_packet_config_cmd): Update.
8075         (packet_ok): Update.
8076         (add_packet_config_cmd): Update.
8077         (_initialize_remote): 
8078         * command.h: Update.
8079         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8080         (do_setshow_command): Update.
8081         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8082         * cli/cli-decode.h: Update.
8083
8084 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8085
8086         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8087         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8088         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8089         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8090         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8091         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8092
8093         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8094         list of DJGPP COFF targets.
8095
8096         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8097         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8098         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8099         (FP0_REGNUM): Remove define.
8100         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8101         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8102         (i386_register_virtual_size): Remove protoype.
8103         * i386-tdep.c (i386_register_virtual_size): Removed.
8104         (i386_extract_return_value, i386_store_return_value): Use
8105         FP0_REGNUM instead of NUM_FREGS to determine whether the
8106         floating-point registers are available.
8107         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8108         Adjust for removal of macros mentioned above.
8109
8110 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8111
8112         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8113         comments.
8114         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8115         Remove prototypes.
8116         (supply_gregset, fill_gregset): Remove use of register keyword and
8117         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8118         NUM_REGS and NUM_FREGS.
8119         (FPREGSET_FSAVE_OFFSET): Remove.
8120         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8121         NUM_FREGS to determine whether the floating-point registers are
8122         available.
8123
8124         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8125         gnu_store_registers): Replace usage of NUM_GREGS with
8126         I386_NUM_GREGS.
8127
8128         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8129         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8130         usage of NUM_GREGS with I386_NUM_GREGS.
8131
8132         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8133
8134         * i386bsd-nat.c: Include "i386-tdep.h".
8135         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8136         I386_NUM_GREGS.
8137
8138         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8139         and associated comment.  They no longer make any sense, since we
8140         don't use this file anymore on Linux.
8141
8142         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8143         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8144         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8145         elements in these arrays.
8146         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8147         MAX_NUM_REGS.
8148
8149 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8150
8151         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8152         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8153
8154 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8155
8156         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8157         EXTRACT_RETURN_VALUE.
8158         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8159         EXTRACT_STRUCT_VALUE_ADDRESS.
8160         * gdbarch.h, gdbarch.c: Regenerate.
8161         
8162         * values.c (value_being_returned): Handle
8163         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8164         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8165
8166         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8167         * arm-tdep.c (arm_gdbarch_init): Update.
8168         * avr-tdep.c (avr_gdbarch_init): Update.
8169         * cris-tdep.c (cris_gdbarch_init): Update.
8170         * d10v-tdep.c (d10v_gdbarch_init): Update.
8171         * ia64-tdep.c (ia64_gdbarch_init): Update.
8172         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8173         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8174         * s390-tdep.c (s390_gdbarch_init): Update.
8175         * sh-tdep.c (sh_gdbarch_init): Update.
8176         * s390-tdep.c (s390_gdbarch_init): Update.
8177         * sparc-tdep.c (sparc_gdbarch_init): Update.
8178         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8179         * v850-tdep.c (v850_gdbarch_init): Update.
8180         * vax-tdep.c (vax_gdbarch_init): Update.
8181         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8182         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8183
8184         * config/arc/tm-arc.h: Update.
8185         * config/d30v/tm-d30v.h: Update.
8186         * config/fr30/tm-fr30.h: Update.
8187         * config/h8300/tm-h8300.h: Update.
8188         * config/h8500/tm-h8500.h: Update.
8189         * config/i386/tm-i386.h: Update.
8190         * config/i386/tm-ptx.h: Update.
8191         * config/i386/tm-symmetry.h: Update.
8192         * config/i960/tm-i960.h: Update.
8193         * config/m32r/tm-m32r.h: Update.
8194         * config/m68k/tm-delta68.h: Update.
8195         * config/m68k/tm-linux.h: Update.
8196         * config/m68k/tm-m68k.h: Update.
8197         * config/m88k/tm-m88k.h: Update.
8198         * config/mcore/tm-mcore.h: Update.
8199         * config/mips/tm-mips.h: Update.
8200         * config/mn10200/tm-mn10200.h: Update.
8201         * config/pa/tm-hppa.h: Update.
8202         * config/pa/tm-hppa64.h: Update.
8203         * config/sparc/tm-sp64.h: Update.
8204         * config/sparc/tm-sparc.h: Update.
8205         * config/sparc/tm-sparclet.h: Update.
8206         * config/z8k/tm-z8k.h: Update.
8207
8208 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8209
8210         * Makefile.in (i386_linux_tdep_h): Define.
8211         (i386_tdep_h, i387_tdep_h): Define.
8212         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8213         $(i386_tdep_h) and $(i387_tdep_h).
8214         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8215
8216 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8217
8218         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8219         Already covered by the default.
8220
8221         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8222         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8223         (i386_gdbarch_init): Initialize long_double_format and long_double
8224         bit.
8225
8226         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8227         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8228         Move these to ...
8229         * config/i386/i386sol2.mh: ... here.
8230         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8231         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8232         (SIGCONTEXT_PC_OFFSET): Remove define.
8233         (IN_SIGTRAMP): Remove define.
8234         * i386-sol2-tdep.c: New file.
8235         
8236         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8237         * config/i386/tm-i386nw.h: Removed.
8238
8239         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8240         USE_STRUCT_CONVENTION): Remove defines.
8241         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8242         (get_longjmp_target): Remove prototype.
8243         (IN_SIGTRAMP): Remove define.
8244         (i386bsd_in_sigtramp): Remove prototype.
8245         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8246         function.  Update comment accordingly
8247         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8248         (FRAME_SAVED_PC): Remove define.
8249         (i386bsd_frame_saved_pc): Remove prototype.
8250         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8251         GET_LONGJMP_TARGET): Remove defines.
8252         (get_longjmp_target): Remove prototype.
8253         (IN_SIGTRAMP): Remove define.
8254         (i386bsd_in_sigtramp): Remove prototype.
8255         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8256         function.  Update comment accordingly
8257         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8258         (FRAME_SAVED_PC): Remove define.
8259         (i386bsd_frame_saved_pc): Remove prototype.
8260         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8261         Remove prototype.
8262         (USE_STRUCT_CONVENTION): Remove prototype.
8263         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8264         declaration.
8265         (_initialize_i386bsd_nat): Revise logic to determine some
8266         constants at compile time when compiling a native GDB.  Warn if
8267         things don't match up with what we expect.
8268         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8269         Remove variables.
8270         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8271         to use date stored in `struct gdbarch_tdep'.
8272         (i386bsd_sigcontext_offset): Remove varaible.
8273         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8274         stored in `struct gdbarch_tdep'.
8275         (i386bsd_frame_saved_pc): Make static.
8276         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8277         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8278         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8279         i386fbsd4_sc_pc_offset): New variables.
8280         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8281         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8282         functions.
8283         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8284         functions.
8285         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8286         Modify the value of i386fbsd_sigtramp_start and
8287         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8288         i386fbsd_sigtramp_end.
8289         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8290         function.
8291
8292         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8293         define to i386-linux-tdep.h.
8294         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8295         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8296         defines.
8297         (i386_linux_register_name, i386_linux_register_byte,
8298         i386_linux_register_raw_size): Remove prototypes.
8299         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8300         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8301         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8302         TARGET_WRITE_PC): Remove defines.
8303         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8304         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8305         i386_linux_write_pc): Remove prototypes.
8306         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8307         (get_longjmp_target): Remove prototype.
8308         * i386-linux-tdep.h: New file.
8309         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8310         * i386-linux-tdep.c: Include "i386-tdep.h" and
8311         "i386-linux-tdep.h".
8312         (i386_linux_register_name, i386_linux_register_byte,
8313         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8314         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8315         Make static.
8316         (i386_linux_init_abi): New function.
8317         (_initialize_i386_linux_tdep): New function.
8318
8319         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8320         (i386_saved_pc_after_call): Remove prototype.
8321         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8322         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8323         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8324         (i386_register_name, i386_stab_reg_to_regnum,
8325         i386_dwarf_reg_to_regnum): Remove prototypes.
8326         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8327         SIZEOF_SSE_REGS): Remove defines.
8328         (REGISTER_BYTES): Remove define.
8329         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8330         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8331         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8332         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8333         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8334         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8335         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8336         (get_longjmp_target): Remove prototype.
8337         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8338         (sigtramp_saved_pc): Remove define.
8339         (i386v4_sigtramp_saved_pc): Remove prototype.
8340         * config/i386/tm-go32.h (FRAME_CHAIN,
8341         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8342         (i386go32_frame_saved_pc): Remove prototype.
8343         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8344         (get_longjmp_target): Remove prototype.
8345         * i386-tdep.h: Include "osabi.h".
8346         (enum i386_abi): Removed.
8347         (enum struct_return): New enum.
8348         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8349         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8350         sc_pc_offset members.
8351         (i386_gdbarch_register_os_abi): Remove prototype.
8352         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8353         I386_SSE_NUM_REGS): New defines.
8354         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8355         I386_SSE_SIZEOF_REGS): New defines.
8356         (i386_register_name, i386_register_byte, i386_register_raw_size):
8357         New prototypes.
8358         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8359         (i386bsd_sigtramp_saved_pc): New prototype.
8360         * i386-tdep.c: Don't include "elf-bfd.h".
8361         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8362         i386_frame_chain, i386_saved_pc_after_call): Make static.
8363         (i386_frame_saved_pc): Rewrite to call architecture dependent
8364         function to deal with signal handlers.  Make static.
8365         (i386go32_frame_saved_pc): Removed.
8366         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8367         Removed.
8368         (i386_get_longjmp_target): New function.
8369         (default_struct_convention, pcc_struct_convention,
8370         reg_struct_convention, valid_conventions, struct_convention): New
8371         variables.
8372         (i386_use_struct_convention): New function.
8373         (i386v4_sigtramp_saved_pc): Renamed to
8374         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8375         (i386_pc_in_sigtramp): New function.
8376         (i386_abi_names): Removed.
8377         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8378         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8379         Removed.
8380         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8381         i386_gdbarch_register_os_abi): Removed.
8382         (struct i386_abi_handler): Removed.
8383         (i386_abi_handler_list): Removed.
8384         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8385         functions.
8386         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8387         i386_nw_init_abi): New functions.
8388         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8389         Use set_gdbarch_xxx() calls instead of relying on macros for a
8390         number of calls.
8391         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8392         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8393         Register the various architecture variants defined in this file.
8394
8395 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8396
8397         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8398         (struct main_type): Remove arg_types member.  Update comments for
8399         struct field.
8400         (TYPE_ARG_TYPES): Remove.
8401         (TYPE_FN_FIELD_ARGS): Update.
8402         (smash_to_method_type): Update prototype.
8403
8404         * c-typeprint.c (cp_type_print_method_args): Take method type
8405         instead of argument list.  Use new argument layout.  Simplify.
8406         (c_type_print_args): Use new argument layout.  Simplify.
8407         (c_type_print_base): Update call to cp_type_print_method_args.
8408         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8409         argument; use die->type instead.  Update call to
8410         smash_to_method_type.
8411         (read_structure_scope): Update call to dwarf2_add_member_fn.
8412         * gdbtypes.c (allocate_stub_method): Update comment.
8413         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8414         Use new argument layout.
8415         (check_stub_method): Use new argument layout.  Don't count
8416         void as an argument.
8417         (print_arg_types): Update comments.  Use new argument layout.
8418         (recursive_dump_type): Don't print arg_types member.
8419         * hpread.c (hpread_read_struct_type): Use new argument layout.
8420         (fixup_class_method_type): Likewise.
8421         (hpread_type_lookup): Likewise.
8422         * stabsread.c (read_type): Update calls to read_args and
8423         smash_to_method_type.
8424         (read_args): Use new argument layout.  Simplify.
8425         * valops.c (typecmp): Use new argument layout.  Update parameters
8426         and comments.  Simplify.
8427         (hand_function_call): Use new argument layout.
8428         (search_struct_method): Update call to typecmp.
8429         (find_overload_match): Use new argument layout.
8430
8431 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8432
8433         * NEWS: Mention multithreaded debug support for gdbserver.
8434
8435 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8436
8437         * MAINTAINERS: Mention NEWS.
8438
8439 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8440
8441         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8442         (struct mips_objfile_private, compare_pdr_entries): New.
8443         (non_heuristic_proc_desc): Read the ".pdr" section if it
8444         is present.
8445
8446 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8447
8448         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8449         (arm_debug): New static variable.
8450         (_initialize_arm_tdep): Add ``set debug arm'' command.
8451
8452 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8453
8454         * Makefile.in (sim_arm_h): Define.
8455         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8456         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8457         (arm_register_sim_regno): New function, map an internal REGNUM
8458         onto a simulator register number.
8459         (arm_gdbarch_init): Set register_sim_regno.
8460
8461 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8462
8463         * MAINTAINERS: Add self.
8464
8465 2002-06-11  Jim Blandy  <jimb@redhat.com>
8466
8467         * source.c (source_info): Mention whether the symtab has
8468         information about preprocessor macros.
8469
8470         Call the command `info macro', not `show macro'.
8471         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8472         Fix error message.
8473         (_initialize_macrocmd): Register `info_macro_command' in
8474         `infolist', not `showlist'.
8475
8476 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8477
8478         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8479         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8480         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8481         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8482         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8483         unconditionally.
8484         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8485         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8486         (_initialize_mips_tdep): Remove dead code.
8487         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8488         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8489         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8490         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8491         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8492         MIPS_LAST_FP_ARG_REGNUM): Remove.
8493
8494 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8495
8496         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8497         (unwind_tmp_obstack_free, parse_frame_info)
8498         (update_context, cfi_read_fp, cfi_write_fp)
8499         (cfi_frame_chain, cfi_init_extra_frame_info)
8500         (cfi_virtual_frame_pointer): Use the above function.
8501         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8502
8503 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8504
8505         * v850-tdep.c (v850_type_is_scalar): New function.
8506         (v850_use_struct_convention): Match current gcc implementation
8507         as close as possible.
8508         (v850_push_arguments): Fix stack_offset handling.  Don't write
8509         struct_addr into register.  This is done by v850_store_struct_return.
8510         (v850_extract_return_value): Care for structs.
8511         (v850_store_return_value): Ditto.
8512         (v850_store_struct_return): Actually write address.
8513
8514 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8515
8516         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8517         without debug information too.
8518
8519 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8520
8521         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8522         Make multi-arch pure.
8523         * gdbarch.h, gdbarch.c: Re-generate.
8524         * arm-tdep.c (arm_print_float_info): Update.
8525         * arch-utils.h (default_print_float_info): Update.
8526         * arch-utils.c (default_print_float_info): Update.
8527         * infcmd.c (float_info): Update call.
8528
8529 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8530
8531         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8532         the front of the initialize list.
8533
8534 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8535
8536         * infrun.c (struct inferior_status): Replace fields
8537         selected_frame_address and selected_level with field
8538         selected_frame_id.
8539         (save_inferior_status): Update.  Use get_frame_id.
8540         (struct restore_selected_frame_args): Delete.
8541         (restore_selected_frame): Update.  Use frame_find_by_id.
8542         (restore_inferior_status): Update.
8543
8544         * breakpoint.h (struct breakpoint): Change type of
8545         watchpoint_frame to frame_id.
8546         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8547         call to get_current_frame.
8548         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8549         get_current_frame.
8550         (watchpoint_check): Use frame_find_by_id.
8551
8552         * frame.h (record_selected_frame): Delete declaration.
8553         * stack.c (record_selected_frame): Delete function.
8554         
8555         * frame.h (struct frame_id): Define.
8556         (get_frame_id): Declare.
8557         (frame_find_by_id): Declare.
8558         * frame.c (frame_find_by_id): New function.
8559         (get_frame_id): New function.
8560
8561 2002-06-10  Andrey Volkov <avolkov@transas.com>
8562
8563         * ser-e7kpc.c: Fix duplicated define and call of 
8564         _initialize_ser_e7000pc
8565             
8566 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8567
8568         * signals/signals.c (target_signal_from_host): Fix #ifdef
8569         SIGRTMIN case.
8570         (do_target_signal_to_host): Likewise.
8571
8572 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8573
8574         * mips-tdep.c (mips_find_abi_section): New function.
8575         (mips_gdbarch_init): Call it.
8576
8577 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8578
8579         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8580         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8581         after Andrew's 2002-06-08 gdbarch change.
8582
8583 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8584
8585         * i386-linux-nat.c (suppy_gregset): Don't supply
8586         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8587         register cache.
8588         (fill_gregset): Don't fetch it under the same circumstances.
8589
8590 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8591
8592         * Makefile.in (callback_h): Define.
8593         (remote_sim_h): Update path to remote-sim.h.
8594         (remote-rdp.o): Add $(callback_h).
8595         (remote-sim.o): Use $(callback_h).
8596         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8597         * remote-rdp.c: Include "gdb/callback.h".
8598
8599 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8600
8601         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8602         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8603
8604 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8605
8606         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8607         * rdi-share/serpardr.c: Ditto.
8608         * rdi-share/unixcomm.c: Ditto.
8609         * rdi-share/serdrv.c: Ditto.
8610         * rdi-share/hostchan.h: Ditto.
8611         * rdi-share/hostchan.c: Ditto.
8612         * rdi-share/host.h: Ditto.
8613         * rdi-share/devsw.c: Ditto.
8614
8615         * objfiles.h: Change type of obj_private to void pointer.
8616         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8617         strcmp instead of STREQ, use LONGEST, do not use PTR
8618         * somsolib.c: Ditto.
8619
8620         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8621         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8622         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8623
8624 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8625
8626         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8627         (default_get_saved_register): Delete function.
8628         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8629         generic_unwind_get_saved_register.
8630         * gdbarch.h, gdbarch.c: Re-generate.
8631         
8632 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8633
8634         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8635         generic_func_frame_chain_valid.
8636         * gdbarch.h, gdbarch.c: Re-generate.
8637         * blockframe.c (generic_func_frame_chain_valid): Only check
8638         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8639         passing FP to PC_IN_CALL_DUMMY.
8640         Fix PR gdb/360.
8641
8642 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8643
8644         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8645         (register_gdbarch_data): Initialize init_p.
8646         (gdbarch_data): Initialize data pointer using the init function.
8647         (init_gdbarch_data): Delete function.
8648         (gdbarch_update_p): Update.
8649         (initialize_non_multiarch): Update.
8650         (struct gdbarch): Add field initialized_p.
8651         * gdbarch.h, gdbarch.c: Re-generate.
8652
8653 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8654
8655         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8656         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8657         better do the things actually here.
8658         * x86-64-tdep.c (x86_64_register_name2nr): New.
8659         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8660         (x86_64_gdbarch_init): Respect the above change.
8661         * x86-64-tdep.h (x86_64_register_name2nr)
8662         (x86_64_register_nr2name): Add prototypes.
8663         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8664
8665 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8666
8667         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8668         Delete extra braces and re-indent.
8669         (d10v_store_return_value): Char return values
8670         must be shifted over by one byte in R0.
8671         (d10v_extract_return_value): Delete extra braces, re-indent.
8672
8673 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8674
8675         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8676         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8677         (d10v_integer_to_address): Rewrite.
8678         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8679         the d10v specific functions which take care of converting to the
8680         correct space.
8681
8682 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8683
8684         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8685         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8686
8687 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8688
8689         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8690         includes.
8691         * config/tm-linux.h: Ditto.
8692         * config/alpha/tm-alphalinux.h: Ditto.
8693         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8694         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8695         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8696         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8697         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8698         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8699         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8700         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8701         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8702         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8703         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8704         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8705         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8706         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8707         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8708         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8709         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8710         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8711         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8712         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8713         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8714         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8715         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8716         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8717         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8718         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8719         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8720         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8721         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8722         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8723         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8724         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8725         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8726         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8727         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8728         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8729         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8730
8731 2002-05-04  Aidan Skinner <aidan@velvet.net>
8732
8733         * ada-exp.tab.c: New file
8734         * ada-exp.y: New file
8735         * ada-lang.c: New file
8736         * ada-lang.h: New file
8737         * ada-lex.c: New file
8738         * ada-lex.l: New file
8739         * ada-tasks.c: New file
8740         * ada-typeprint.c: New file
8741         * ada-valprint.c: New file
8742         
8743 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8744
8745         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8746         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8747
8748 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8749
8750         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8751         insetead of ppc-linux-tdep.o.
8752         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8753         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8754
8755 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8756
8757         2002-05-07 Christian Groessler <chris@groessler.org>
8758         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8759         bit register contents for little endian hosts.
8760
8761 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8762
8763         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8764         any maintainer.
8765
8766 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8767
8768         * gdbarch.h: Regenerate.
8769
8770 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8771
8772         * MAINTAINERS: Add everyone to write-after-approval list.
8773
8774 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8775
8776         * stack.c (frame_info): Use frame_register_unwind instead of
8777         saved_regs.  Mention when the SP is on the stack or in a register.
8778
8779         * frame.h (frame_register_unwind_ftype): Define.  Document.
8780         (struct frame_info): Add field register_unwind and
8781         register_unwind_cache.
8782         (frame_register_unwind): Declare.
8783         (generic_unwind_get_saved_register): Declare.
8784
8785         * frame.c (frame_register_unwind): New function.
8786         (generic_unwind_get_saved_register): New function.
8787
8788         * blockframe.c (generic_call_dummy_register_unwind): New function.
8789         (frame_saved_regs_register_unwind): New function.
8790         (set_unwind_by_pc): New function.
8791         (create_new_frame): New function.
8792         (get_prev_frame): New function.
8793
8794 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8795
8796         * a29k-share/: Delete directory.
8797         * remote-vx29k.c: Delete file.
8798
8799 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8800
8801         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8802         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8803
8804 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8805
8806         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8807         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8808         (sparc64nbsd-nat.o)
8809         (sparcnbsd-nat.o)
8810         (sparcnbsd-tdep.o): New dependency lists.
8811         * NEWS: Note new UltraSPARC NetBSD native configuration.
8812         * configure.host (sparc64-*-netbsd*): New host.
8813         * configure.tgt (sparc-*-netbsdelf*)
8814         (sparc-*-netbsd*): Set gdb_target to nbsd.
8815         (sparc64-*-netbsd*): New target.
8816         * sparc64nbsd-nat.c: New file.
8817         * sparcnbsd-nat.c: New file.
8818         * sparcnbsd-tdep.c: New file.
8819         * sparcnbsd-tdep.h: New file.
8820         * config/sparc/nbsd.mt: New file.
8821         * config/sparc/nbsd64.mh: New file.
8822         * config/sparc/nbsd64.mt: New file.
8823         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8824         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8825         (HOST_IPC): Remove.
8826         * config/sparc/nbsdaout.mt: Remove.
8827         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8828         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8829         (HOST_IPC): Remove.
8830         * config/sparc/nbsdelf.mt: Remove.
8831         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8832         sparc-nat.c compatiblity defines.
8833         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8834         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8835         * config/sparc/tm-nbsd64.h: New file.
8836         * config/sparc/tm-nbsdaout.h: Remove.
8837         * config/sparc/xm-nbsd.h: Remove.
8838
8839 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8840
8841         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8842         * sparc-tdep.c: Include osabi.h.
8843         (gdbarch_tdep): Add osabi member.
8844         (_initialize_sparc_tdep): Use gdbarch_register.
8845         (sparc_gdbarch_init): Use generic OS ABI framework.
8846         (sparc_dump_tdep): New function.
8847
8848 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8849
8850         * corefile.c (do_captured_read_memory_integer): Return non-zero
8851         result.
8852         (safe_read_memory_integer): Copy result of memory read when
8853         status is non-zero.  Also, add comments.
8854
8855 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8856
8857         * Makefile.in (ppc_tdep_h): Define.
8858         (ppc-linux-nat.o)
8859         (ppc-linux-tdep.o)
8860         (rs6000-tdep.o): Use $(ppc_tdep_h).
8861         (ppc-sysv-tdep.o)
8862         (ppcnbsd-nat.o)
8863         (ppcnbsd-tdep.o): New dependency lists.
8864         * ppc-tdep.h: Use generic OS ABI framework.
8865         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8866         (ppc_linux_init_abi): New functions.
8867         (ppc_sysv_abi_broken_use_struct_convention)
8868         (ppc_sysv_abi_use_struct_convention)
8869         (ppc_sysv_abi_push_arguments): Move to...
8870         * ppc-sysv-tdep.c: ...here.
8871         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8872         * rs6000-tdep.c (process_note_abi_tag_sections)
8873         (get_elfosabi): Remove.
8874         (rs6000_gdbarch_init): Use generic OS ABI framework.
8875         (rs6000_dump_tdep): New function.
8876         (_initialize_rs6000_tdep): Use gdbarch_register.
8877         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8878         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8879         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8880         of ppc-linux-tdep.o.
8881         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8882         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8883         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8884         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8885         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8886         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8887
8888 2002-05-29  Jim Blandy  <jimb@redhat.com>
8889
8890         * macroscope.c (default_macro_scope): Put `void' in empty argument
8891         list.
8892
8893 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8894
8895         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8896         * arch-utils.c: Include "sim-regno.h".
8897         * gdbarch.sh: Don't include "sim-regno.h".
8898         * gdbarch.h, gdbarch.c: Regenerate.
8899         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8900         here.
8901         * arch-utils.h (legacy_register_sim_regno): To here.
8902         * remote-sim.c (legacy_register_sim_regno): Move function from
8903         here.
8904         * arch-utils.c (legacy_register_sim_regno): To here.
8905
8906 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8907
8908         * sim-regno.h: New file.
8909         * Makefile.in (sim_regno_h): Define.
8910         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8911         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8912         (legacy_register_sim_regno): New function.
8913         (one2one_register_sim_regno): New function.
8914         (gdbsim_fetch_register): Rewrite.
8915         (gdbsim_store_register): Only store a register when
8916         REGISTER_SIM_REGNO is valid.
8917         * d10v-tdep.c: Include "sim-regno.h".
8918         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8919         (d10v_ts3_register_sim_regno): Ditto.
8920         * gdbarch.sh: Include "sim-regno.h".
8921         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8922         * gdbarch.h, gdbarch.c: Regenerate.
8923         * arch-utils.h (default_register_sim_regno): Delete declaration.
8924         * arch-utils.c (default_register_sim_regno): Delete function.
8925
8926 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8927
8928         * ppcnbsd-nat.c: Rewrite.
8929         * ppcnbsd-tdep.c: New file.
8930         * ppcnbsd-tdep.h: New file.
8931         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8932         solib.o, and solib-svr4.o.
8933         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8934         nbsd-tdep.o, and corelow.o.
8935
8936 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8937
8938         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8939         `tr' and `sed'.  Mention that `broken' targets are not expected to
8940         build.
8941
8942 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8943
8944         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8945         Let PC point right after the prologue before looking up symbols.
8946         
8947 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8948
8949         * i386-tdep.c (i386_register_virtual_type): Return 
8950         builtin_type_vec128i for SSE registers.
8951
8952         * gdbtypes.h (builtin_type_vec128i): Declare.
8953
8954         * gdbtypes.c (build_builtin_type_vec128i): New function.
8955         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8956         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8957         (build_gdbtypes): Initialize new builtin vector types.
8958         (_initialize_gdbtypes): Register new vector types with gdbarch.
8959
8960 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8961
8962         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8963         since it has been multi-arch'd.
8964         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8965         Move Alpha and VAX multi-arch news entries to same section
8966         as other multi-arch news.
8967
8968 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8969
8970         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8971         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8972         static.  Rename some register numbers to put them in ns32k-tdep
8973         private namespace.
8974         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8975         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8976         functions.
8977         (_initialize_ns32k_tdep): Use gdbarch_register.
8978         * ns32k-tdep.h: New file.
8979         * ns32knbsd-tdep.c: New file.
8980         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8981         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8982         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8983         REGISTER_BYTES, REGISTER_BYTE): Remove.
8984         * config/ns32k/tm-ns32k.h: New file.
8985         * config/ns32k/tm-umax.h: Remove.
8986
8987 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8988
8989         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8990         ns32k_store_struct_return, ns32k_extract_return_value,
8991         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8992         functions.
8993         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8994         ns32k_saved_pc_after_call.
8995         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8996         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8997         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8998         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8999         ns32k_extract_struct_value_address.
9000
9001 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9002
9003         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9004         ns32k_fix_call_dummy): New.
9005         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9006         ns32k_call_dummy_words.
9007         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9008         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9009         CALL_DUMMY_NARGS): Remove.
9010         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9011
9012 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9013
9014         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9015         ns32k_frame_saved_pc, ns32k_frame_args_address,
9016         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9017         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9018         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9019         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9020         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9021         (BREAKPOINT): Remove..
9022         (FRAME_CHAIN): Define as ns32k_frame_chain.
9023         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9024         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9025         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9026         (FRAME_FIND_SAVED_REGS): Remove.
9027         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9028         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9029         (POP_FRAME): Define as ns32k_pop_frame.
9030
9031 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9032
9033         * ns32k-tdep.c (ns32k_register_byte_32082,
9034         ns32k_register_byte_32382, ns32k_register_raw_size,
9035         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9036         functions.
9037         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9038         ns32k_register_byte_32382.
9039         * config/ns32k/tm-umax.h: Update copyright years.
9040         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9041         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9042         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9043         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9044         (ns32k_get_enter_addr): Fix prototype.
9045
9046 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9047
9048         * ns32k-tdep.c: Update copyright years.
9049         (ns32k_register_name_32082): New function.
9050         (ns32k_register_name_32382): Ditto.
9051         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9052         (REGISTER_NAME): Define as ns32k_register_name_32382.
9053         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9054         (REGISTER_NAME): Define as ns32k_register_name_32082.
9055
9056 2002-05-24  Jim Blandy  <jimb@redhat.com>
9057
9058         * dwarf2read.c (free_line_header): Use xfree, not free.
9059
9060 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9061
9062         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9063         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9064
9065 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9066
9067         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9068
9069 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9070
9071         From Ross Alexander at NEC Europe:
9072         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9073
9074 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9075
9076         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9077         for input, rather than parse_and_eval_address.  
9078
9079 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9080
9081         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9082         * Makefile.in (sim_d10v_h): Update definition.
9083
9084 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9085
9086         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9087         change `2002-05-22 Michael Snyder' below.
9088         (d10v_push_arguments): Ditto.
9089         (d10v_extract_return_value): Ditto.
9090
9091 2002-05-23  Jim Blandy  <jimb@redhat.com>
9092
9093         * macrotab.c (check_for_redefinition): Don't complain if the new
9094         definition is the same as the previous one.  Take more arguments
9095         to allow the comparison.
9096         (macro_define_object, macro_define_function): Pass more arguments
9097         to check_for_redefinition.
9098
9099 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9100
9101         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9102         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9103         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9104         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9105         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9106         Add a temp variable to save a call (and a memory read).
9107         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9108         if possible (so that PC_IN_CALL_DUMMY will work).
9109
9110 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9111
9112         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9113
9114 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9115
9116         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9117         fde->cie_ptr.
9118         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9119         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9120         so that frames of shared libraries are mapped correctly.
9121         (execute_stack_op): Change type of 'result' from ULONGEST to
9122         CORE_ADDR.
9123         
9124 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9125
9126         * config/alpha/tm-nbsd.h: Include solib.h.
9127
9128 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9129
9130         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9131         assumptions about the host's byte order.
9132
9133 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9134
9135         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9136         to dependency list.
9137         * alphanbsd-tdep.c: Include solib-svr4.h.
9138         * shnbsd-tdep.c: Ditto.
9139
9140 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9141
9142         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9143         nbsd-tdep.h to dependency list.
9144         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9145         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9146         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9147         nbsdaout.mh and nbsdelf.mh consistently.
9148         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9149         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9150         nbsdaout.mt and nbsdelf.mh consistently.
9151         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9152         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9153         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9154         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9155         a.out shared library stuff from here...
9156         * config/nm-nbsdaout.h: ...to here.
9157         * config/tm-nbsd.h: Remove.
9158         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9159         * config/arm/nbsd.mh: Remove.
9160         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9161         nbsd-tdep.o.
9162         * config/arm/nbsdaout.mh: New file. 
9163         * config/arm/nbsdelf.mh: New file.
9164         * config/arm/nm-nbsdaout.h: New file.
9165         * config/i386/nbsd.mh: Remove.
9166         * config/i386/nbsd.mt: Remove.
9167         * config/i386/nbsdaout.mh: New file.
9168         * config/i386/nbsdaout.mt: New file.
9169         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9170         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9171         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9172         i386_register_u_addr): Remove.
9173         * config/i386/nm-nbsdaout.h: New file.
9174         * config/i386/nm-nbsdelf.h: Remove.
9175         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9176         (USE_STRUCT_CONVENTION): Remove.
9177         * config/i386/tm-nbsdaout.h: New file.
9178         * config/i386/tm-nbsdelf.h: Remove.
9179         * config/m68k/nbsd.mh: Remove.
9180         * config/m68k/nbsd.mt: Remove.
9181         * config/m68k/nbsdaout.mh: New file.
9182         * config/m68k/nbsdaout.mt: New file. 
9183         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9184         * config/m68k/nm-nbsdaout.h: New file.
9185         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9186         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9187         * config/ns32k/nbsd.mh: Remove.
9188         * config/ns32k/nbsd.mt: Remove. 
9189         * config/ns32k/nbsdaout.mh: New file.
9190         * config/ns32k/nbsdaout.mt: New file.
9191         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9192         * config/ns32k/nm-nbsdaout.h: New file.
9193         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9194         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9195         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9196         (SVR4_SHARED_LIBS): Remove.
9197         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9198         * config/sparc/nbsd.mh: Remove.
9199         * config/sparc/nbsd.mt: Remove.
9200         * config/sparc/nbsdaout.mh: New file.
9201         * config/sparc/nbsdaout.mt: New file.
9202         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9203         * config/sparc/nbsdelf.mt: New file.
9204         * config/sparc/nm-nbsdaout.h: New file.   
9205         * config/sparc/nm-nbsdelf.h: Remove.
9206         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9207         * config/sparc/tm-nbsdaout.h: New file.
9208
9209 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9210
9211         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9212         mipsnbsd-tdep.c
9213         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9214
9215 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9216
9217         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9218         shnbsd-nat.c.
9219         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9220
9221 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9222
9223         * NEWS: Note new MIPS NetBSD native configuration. 
9224         * configure.host (mips*-*-netbsd*): New host. 
9225         * configure.tgt (mips*-*-netbsd*): New target. 
9226         * mipsnbsd-nat.c: New file.
9227         * mipsnbsd-tdep.c: New file.
9228         * mipsnbsd-tdep.h: New file.
9229         * config/mips/nbsd.mh: New file.
9230         * config/mips/nbsd.mt: New file.
9231         * config/mips/nm-nbsd.h: New file.
9232         * config/mips/tm-nbsd.h: New file.
9233
9234 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9235
9236         * Makefile.in (SFILES): Add osabi.c.
9237         (COMMON_OBS): Add osabi.o.
9238         (osabi.o): New dependency list.
9239         * osabi.c: New file.
9240         * osabi.h: New file.
9241         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9242
9243         * Makefile.in (alpha_tdep_h): Define and use instead of
9244         alpha-tdep.h.
9245         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9246         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9247         Remove.
9248         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9249         * alpha-tdep.h: Include osabi.h.
9250         (alpha_abi): Remove.
9251         (gdbarch_tdep): Use generic OS ABI framework.
9252         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9253         gdbarch_register_osabi.
9254         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9255         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9256         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9257
9258         * Makefile.in (sh_tdep_h): Add osabi.h.
9259         * sh-tdep.h (sh_osabi): Remove.
9260         (gdbarch_tdep): Use generic OS ABI framework.
9261         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9262         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9263         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9264         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9265
9266         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9267         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9268         gdbarch_register_osabi.
9269         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9270         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9271         (get_elfosabi): Rename to...
9272         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9273         ABI framework support routines.
9274         (arm_gdbarch_init): Use generic OS ABI framework.
9275         (arm_dump_tdep): Likewise.
9276         (_initialize_arm_tdep): Likewise.
9277         * arm-tdep.h: Include osabi.h.
9278         (arm_abi): Remove.
9279         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9280         osabi member.
9281         (arm_gdbarch_register_os_abi): Remove prototype.
9282         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9283         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9284
9285         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9286         * mips-tdep.c: Include osabi.h.
9287         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9288         OS ABI framework.
9289
9290 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9291
9292         * h8300-tdep.c: Fix formatting.
9293
9294 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9295
9296         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9297         printing vector registers.
9298
9299 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9300
9301         From Fernando Nasser:
9302         * remote.c (remote_async_open_1): Re-throw the exception when the
9303         connection fails.
9304         (remote_cisco_open): Ditto.
9305         (remote_open_1): Ditto.
9306
9307 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9308
9309         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9310         (remote_start_remote): Add uiout parameter.  Pass through to
9311         remote_start_remote_dummy.
9312         (remote_open_1): Use catch_exception instead of catch_errors.
9313         (remote_async_open_1): Ditto.
9314         (remote_cisco_open): Ditto.
9315
9316 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9317
9318         * remote.c (remote_start_remote): Replace PTR with void pointer.
9319         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9320         static.
9321
9322 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9323
9324         * gdb_indent.sh: Allow the script to be run in the sim directory.
9325
9326 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9327
9328         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9329         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9330
9331         * corelow.c (core_open): Only call set_gdbarch_from_file if
9332         exec_bfd is NULL.
9333
9334 2002-05-17  Andrey Volkov <avolkov@transas.com>
9335
9336         * h8300-tdep.c: Add support of EXR register
9337         * config/h8300/tm-h8300.h: Ditto. 
9338         
9339 2002-05-17  Andrey Volkov <avolkov@transas.com>
9340
9341         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9342         
9343 2002-05-17  Andrey Volkov <avolkov@transas.com>
9344
9345         * h8300-tdep.c: Change literal regnums to REGNO.
9346         
9347 2002-05-17  Jim Blandy  <jimb@redhat.com>
9348
9349         * NEWS: Note addition of macro support.
9350
9351         Expand preprocessor macros in C expressions.
9352         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9353         (scan_macro_expansion, scanning_macro_expansion,
9354         finished_macro_expansion): New function declarations.
9355         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9356         variable declarations.
9357         * parser-defs.h (expression_context_pc): New declaration.
9358         * parse.c (expression_context_pc): New variable.
9359         (parse_exp_1): Set expression_context_pc, as well as
9360         expression_context_block.
9361         * c-exp.y (yylex): If we're not already reading the result of a
9362         macro expansion, try to macro-expand the next token.  When we're
9363         done scanning a macro expansion, switch back to the mainline text.
9364         Commas and `if's in a macro's expansion don't terminate the input.
9365         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9366         (macro_original_text, macro_expanded_text,
9367         expression_macro_lookup_func, expression_macro_lookup_baton): New
9368         variables.
9369         (scan_macro_expansion, scanning_macro_expansion,
9370         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9371         c_preprocess_and_parse): New functions.
9372         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9373         c_preprocess_and_parse, instead of c_parse.
9374         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9375         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9376
9377 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9378
9379         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9380         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9381         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9382
9383 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9384
9385         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9386
9387 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9388
9389         * Makefile.in (sh_tdep_h): Define and use.
9390         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9391         register enum): Move to...
9392         * * sh-tdep.h: ...here.
9393         * sh-tdep.c: Include sh-tdep.h.
9394         * sh3-rom.c: Likewise.
9395         * shnbsd-tdep.c: Likewise.
9396
9397 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9398
9399         * arm-tdep.c: Spelling fix in comment.
9400
9401 2002-05-16  Jim Blandy  <jimb@redhat.com>
9402
9403         Add commands for manually expanding macros and showing their
9404         definitions.
9405         * macrocmd.c, macroscope.c, macroscope.h: New files.
9406         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9407         (macroscope_h): New variable.
9408         (HFILES_NO_SRCDIR): Add macroscope.h.
9409         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9410         (macroscope.o, macrocmd.o): New rules.
9411
9412         Teach the Dwarf 2 reader to read macro information.
9413         * dwarf2read.c: #include "macrotab.h".
9414         (dwarf_macinfo_buffer): New variable.
9415         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9416         dwarf_macinfo_size.
9417         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9418         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9419         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9420         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9421         dwarf2_macro_spaces_in_definition): New complaints.
9422         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9423         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9424         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9425         the partial symbol table.
9426         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9427         from what's recorded in the partial symbol table.
9428         (read_file_scope): If the compilation unit has a
9429         `DW_AT_macro_info' attribute, read its macro information.
9430         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9431
9432 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9433
9434         Fix PR gdb/546
9435         * ser-tcp.c: Don't include <netinet/udp.h>.
9436
9437 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9438
9439         * MAINTAINERS: Update my email address.
9440
9441 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9442
9443         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9444         include file of the same name.
9445
9446 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9447
9448         * configure.tgt: Mark v850 as multi-arched.
9449         * config/v850/tm-v850.h: Remove file.
9450         * config/v850/v850.mt: Eliminate TM_FILE.
9451
9452 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9453
9454         * v850-tdep.c: Full multi-arch.
9455         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9456         Define GDB_MULTI_ARCH to 2.
9457
9458 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9459
9460         * p-exp.y (current_type): New static variable.
9461         Carries the type of the expression at the position that is parsed.
9462         (push_current_type, pop_current_type): Two new functions. Used
9463         to store/restore current_type in expression on specific tokens.
9464         (search_field): New static variable. Set to one after parsing a point
9465         as at that point only a FIELDNAME token should be searched.
9466         (FIELDNAME): New token. After a point only a token belonging to 
9467         current_type type definition is allowed.
9468         (all over token rules): reset and change current_type according
9469         to rules.
9470         (exp '[' rule): insert implicit array index field if
9471         exp is a pascal string type.
9472
9473 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9474
9475         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9476         frame info.  Use frame_info's saved_regs instead of matching member
9477         in extra_frame_info throughout.
9478         (v850_frame_init_saved_regs): New function.
9479         (v850_init_extra_frame_info): Move most functionality into
9480         v850_frame_init_saved_regs().
9481         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9482         (v850_frame_find_saved_regs): Remove declaration.
9483         (FRAME_FIND_SAVED_REGS): Remove definition.
9484         (v850_frame_init_saved_regs): Add declaration.
9485         (FRAME_INIT_SAVED_REGS): Add definition.
9486
9487 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9488
9489         * v850-tdep.c: Begin multi-arch'ing v850.
9490         (v850_target_architecture_hook): Remove function.
9491         (v850_gdbarch_init): New function.  Add code previously in
9492         v850_target_architecture_hook().
9493         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9494         Call register_gdbarch_init() instead.
9495
9496 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9497
9498         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9499         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9500         (fixup_class_method_type): Likewise.
9501
9502 2002-05-15  Jim Blandy  <jimb@redhat.com>
9503
9504         Add macro structures to GDB's symbol tables.  Nobody puts anything
9505         in them yet.
9506         * symtab.h (struct symtab): New member: `macro_table'.
9507         * buildsym.h (pending_macros): New global variable.
9508         * buildsym.c: #include "macrotab.h".
9509         (buildsym_init): Initialize `pending_macros'.
9510         (end_symtab): If we found macro information while reading a CU's
9511         debugging info, do build a symtab structure for it.  Make the
9512         symtab point to the macro information, and clear the
9513         `pending_macros' pointer which held it while we were reading the
9514         debug info.
9515         (really_free_pendings): Free any pending macro table.
9516         * objfiles.h (struct objfile): New member: `macro_cache'.
9517         * objfiles.c (allocate_objfile): Set allocate and free functions
9518         for the macro cache's objstack.
9519         (free_objfile): Empty the macro cache's obstack.
9520         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9521         set new allocate and free functions for it.
9522         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9523         free functions for the macro cache's objstack.  (Why is this
9524         function building its own objfile?)
9525         * symmisc.c (print_objfile_statistics): Print statistics on the
9526         macro bcache.
9527         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9528
9529 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9530
9531         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9532         (REGISTER_U_ADDR): Delete definition.
9533         (arm_register_u_addr): Delete declaration.
9534
9535 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9536
9537         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9538         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9539
9540 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9541
9542         * regcache.c (register_valid): Revise comments refering to "Not
9543         available" and "unavailable".
9544         * frame.c (frame_register_read): Ditto.
9545         * findvar.c (value_of_register): Ditto.
9546
9547 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9548
9549         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9550         (remote-sim.o): Update dependencies.
9551         (d10v-tdep.o): Specify dependencies.
9552         (sim_d10v_h): Define.
9553
9554 2002-05-14  Jim Blandy  <jimb@redhat.com>
9555
9556         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9557         * macrotab.c (macro_lookup_inclusion, find_definition,
9558         new_macro_table): Same.
9559         
9560         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9561         not `! strcmp ()'.  This is a dubious improvement.
9562         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9563
9564         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9565         although it's not necessary, to avoid a warning.
9566
9567 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9568
9569         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9570         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9571         TYPE_INSTANCE_FLAGS.
9572         (struct main_type): New.
9573         (struct type): Move most members to struct main_type.  Change
9574         cv_type and as_type to new type_chain member.  Add instance_flags.
9575         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9576         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9577         (finish_cv_type): Remove prototype.
9578         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9579         Set TYPE_CHAIN.
9580         (alloc_type_instance): New function.
9581         (smash_type): New function.
9582         (make_pointer_type, make_reference_type, make_function_type)
9583         (smash_to_member_type, smash_to_method_type): Call smash_type.
9584         (make_qualified_type): New function.
9585         (make_type_with_address_space): Call make_qualified_type.
9586         (make_cv_type): Likewise.
9587         (finish_cv_type): Remove unnecessary function.
9588         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9589         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9590         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9591         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9592         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9593         * hpread.c (hpread_read_struct_type): Likewise.
9594         * stabsread.c (read_struct_type): Likewise.
9595
9596 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9597
9598         * configure.tgt: Add a catch all sh* target, for cases like
9599         sh[2,3,4]-elf and sh-hms.
9600
9601 2002-05-14  Keith Seitz  <keiths@redhat.com>
9602
9603         * event-loop.c (create_file_handler): Don't do anything but
9604         update data when we are given a fd which we are already
9605         monitoring.
9606
9607 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9608
9609         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9610         (update_context): Use __func__ in warnings.
9611         
9612 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9613
9614         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9615         and tcp_close to net_open and net_close.
9616         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9617         using UDP if requested.  Don't try to disable Nagle on UDP
9618         sockets.
9619         * remote.c (remote_serial_open): New function.  Warn about UDP.
9620         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9621
9622 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9623
9624         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9625
9626 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9627
9628         * configure.tgt: Remove sh-hms target.
9629         * MAINTAINERS: Don't list sh-hms as a separate target.
9630
9631 2002-05-13  Jim Blandy  <jimb@redhat.com>
9632
9633         Add first preprocessor macro-expansion files.
9634         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9635         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9636         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9637         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9638         (COMMON_OBS): Add macrotab.o, macroexp.o.
9639         (macroexp.o, macrotab.o): New rules.
9640
9641 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9642
9643         * config/m88k/tm-m88k.h: Update copyright.
9644         (m88k_target_write_pc): Declare
9645         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9646         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9647         (SHIFT_INST_REGS): Update definition.
9648         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9649         using old definition of TARGET_WRITE_PC.
9650         * regcache.c (generic_target_write_pc): Delete code handling
9651         NNPC_REGNUM.
9652         * gdbarch.sh (NNPC_REGNUM): Delete.
9653         * gdbarch.h, gdbarch.c: Regenerate.
9654
9655 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9656
9657         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9658         builtin reg number.
9659
9660 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9661
9662         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9663         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9664         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9665         access macros.
9666         * c-typeprint.c (cp_type_print_method_args): Likewise.
9667         (c_type_print_args): Likewise.
9668         * d10v-tdep.c (d10v_push_arguments): Likewise.
9669         (d10v_extract_return_value): Likewise.
9670         * expprint.c (print_subexp): Likewise.
9671         * gdbtypes.c (lookup_primitive_typename): Likewise.
9672         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9673         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9674         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9675         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9676         (TYPE_VECTOR): Likewise.
9677         * hpread.c (hpread_read_struct_type)
9678         (fix_static_member_physnames, fixup_class_method_type)
9679         (hpread_type_lookup): Likewise.
9680         * mdebugread.c (parse_symbol, parse_type): Likewise.
9681         * p-lang.c (is_pascal_string_type): Likewise.
9682         * valops.c (hand_function_call): Likewise.
9683         * x86-64-tdep.c (classify_argument): Likewise.
9684
9685         * hpread.c (hpread_read_function_type)
9686         (hpread_read_doc_function_type): Call replace_type.
9687         * dstread.c (create_new_type): Delete.
9688         (decode_dst_structure, process_dst_function): Call alloc_type.
9689         Use type access macros.
9690
9691 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9692
9693         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9694         the're not supported by the current architecture.
9695         (i387_fill_fxsave): Likewise.
9696
9697 2002-05-12  Fred Fish  <fnf@redhat.com>
9698
9699         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9700         sect_index_xxx members to index the first slot in section_offsets
9701         if all of the section_offsets are zero.
9702
9703 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9704
9705         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9706         checked in with last change.
9707
9708 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9709
9710         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9711         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9712         config.sub.
9713
9714 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9715
9716         * Makefile.in: Update dependencies.
9717
9718 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9719
9720         * language.c (local_hex_string_custom): Simplify.  Do not depend
9721         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9722
9723         * memattr.c (mem_info_command): Replace calls to
9724         longest_local_hex_string and longest_local_hex_string_custom.
9725         * buildsym.c (make_blockvector): Ditto.
9726         * solib.c (info_sharedlibrary_command): Ditto.
9727         * tracepoint.c (tracepoints_info): Ditto.
9728         * symtab.c (print_msymbol_info): Ditto.
9729
9730         * language.c (local_hex_string): Delete.
9731         (local_hex_string_custom): Delete.
9732         (longest_local_hex_string): Rename to local_hex_string.
9733         (longest_local_hex_string_custom): Rename to
9734         local_hex_string_custom.
9735         * language.h (local_hex_string): Change parameter type to LONGEST.
9736         (local_hex_string_custom): Ditto.
9737         (longest_local_hex_string): Delete declaration.
9738         (longest_local_hex_string_custom): Ditto.
9739
9740         * solib.c: Update copyright.
9741         * memattr.c: Update copyright.
9742         
9743 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9744
9745         * arch-utils.h (legacy_register_to_value): Declare.
9746         (legacy_value_to_register): Declare.
9747         (legacy_convert_register_p): Declare.
9748         * arch-utils.c (legacy_register_to_value): New function.
9749         (legacy_value_to_register): New function.
9750         (legacy_convert_register_p): New function.
9751
9752         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9753         (VALUE_TO_REGISTER): Define.
9754         (CONVERT_REGISTER_P): Define.
9755         * gdbarch.h, gdbarch.c: Regenerate.
9756
9757         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9758         VALUE_TO_REGISTER.
9759         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9760         CONVERT_REGISTER_P.
9761
9762 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9763             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9764
9765         * Makefile.in: Update dependencies for valops.c.
9766         * valops.c: Include "gdb_assert.h".
9767         (typecmp): Skip THIS parameter to methods.
9768         (find_method_list): Remove static_memfuncp argument,
9769         update callers.  Check for stub methods.
9770         (find_value_oload_method_list): Don't set *static_memfuncp.
9771         (find_overload_match): Don't check for stub methods.  Assert
9772         that methods are not stubbed.  Handle static methods.
9773         (value_find_oload_method_list): Remove static_memfuncp argument.
9774         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9775         to the argument list for static stub methods.
9776         * value.h (value_find_oload_method_list): Update prototype.
9777
9778 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9779
9780         * arch-utils.h (generic_register_size): Declare.
9781         (generic_register_raw_size, generic_register_virtual_size): Delete
9782         declarations.
9783         * arch-utils.c (generic_register_raw_size): Delete.
9784         (generic_register_size): New function.
9785         (generic_register_virtual_size): Delete.
9786
9787         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9788         default generic_register_size.
9789         * gdbarch.h, gdbarch.c: Re-generate.
9790         
9791         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9792         register_virtual_size.
9793         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9794         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9795
9796 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9797
9798         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9799         * gdbarch.h, gdbarch.c: Regenerate.
9800         * gnu-v3-abi.c: Update copyright.
9801         (vtable_address_point_offset): Update.
9802         (gnuv3_rtti_type): Update.
9803         (gnuv3_baseclass_offset): Update.
9804         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9805         (init_fetch_link_map_offsets): Update.
9806         * remote.c (get_remote_state): Update.
9807         
9808 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9809
9810         * TODO: Remove value_headof/value_from_vtable_info comment.
9811         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9812         * values.c (value_headof, value_from_vtable_info): Delete.
9813         * value.h (value_from_vtable_info): Delete prototype.
9814
9815 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9816
9817         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9818         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9819         $(gdb_regex_h).
9820         (gdb_assert_h): Define.
9821         (gdb_wait_h): Define.
9822         (gdb_regex_h): Define.
9823
9824 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9825
9826         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9827         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9828
9829 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9830
9831         * nbsd-tdep.c: Fix comment.
9832
9833 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9834
9835         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9836         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9837         (nbsd-tdep.o): New dependency list.
9838         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9839         nbsd-tdep.h.
9840         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9841         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9842         * nbsd-tdep.c: New file.
9843         * nbsd-tdep.h: New file.
9844         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9845         nbsd-tdep.h.
9846         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9847         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9848         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9849         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9850
9851 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9852
9853         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9854         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9855         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9856         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9857         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9858         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9859
9860 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9861
9862         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9863         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9864         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9865         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9866         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9867         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9868         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9869
9870 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9871
9872         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9873         fetch_elfcore_registers to...
9874         * i386nbsd-tdep.c: ...here.
9875         (i386nbsd_use_struct_convention): Rename to...
9876         (i386nbsd_aout_use_struct_convention): ...this.
9877         (i386nbsd_supply_reg): New function.
9878         (i386nbsd_fill_reg): New function.
9879         (fetch_core_registers): Use i386nbsd_supply_reg.
9880         (fetch_elfcore_registers): Likewise.
9881         (_initialize_i386nbsd_tdep): New function.
9882         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9883         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9884         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9885         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9886         (i386nbsd_aout_use_struct_convention): ...this.
9887
9888 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9889
9890         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9891         (store_inferior_registers): Use shnbsd_fill_reg.
9892         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9893         sh_nbsd_supply_register): Collapse into...
9894         (shnbsd_supply_reg): ...this.
9895         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9896         (shnbsd_fill_reg): ...this.
9897         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9898         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9899         (fetch_core_registers): Use shnbsd_supply_reg.
9900         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9901         (sh_nbsd_core_fns): Rename to...
9902         (shnbsd_core_fns): ...this.
9903         (sh_nbsd_elfcore_fns): Rename to...
9904         (shnbsd_elfcore_fns): ...this.
9905         (sh_nbsd_init_abi): Rename to...
9906         (shnbsd_init_abi): ...this.
9907         (_initialize_sh_nbsd_tdep): Rename to...
9908         (_initialize_shnbsd_tdep): ...this.
9909         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9910         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9911         sh_nbsd_fill_register): Remove prototypes.
9912         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9913
9914 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9915
9916         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9917         (i387-nat.o): Delete dependency list.
9918         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9919         (x86-64-linux-nat.o): Likewise.
9920         * i387-nat.c: Delete file, moving contents to...
9921         * i387-tdep.c: ...here.
9922         * i387-nat.h: Rename...
9923         * i387-tdep.h: ...to this.
9924         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9925         * i386-linux-nat.c: Likewise.
9926         * i386bsd-nat.c: Likewise.
9927         * i386gnu-nat.c: Likewise.
9928         * i386nbsd-nat.c: Likewise.
9929         * i386v4-nat.c: Likewise.
9930         * x86-64-linux-nat.c: Likewise.
9931         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9932         * config/i386/go32.mh (NATDEPFILES): Likewise.
9933         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9934         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9935         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9936         * config/i386/linux.mh (NATDEPFILES): Likewise.
9937         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9938         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9939         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9940         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9941
9942 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9943
9944         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9945         (alphanbsd-nat.o): Remove dependency list.
9946         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9947         * alphanbsd-nat.c: Delete.  Contents moved to...
9948         * alphanbsd-tdep.c: ...here.
9949         (_initialize_alphanbsd_tdep): Register core functions.
9950         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9951
9952 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9953
9954         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9955         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9956         (alphanbsd-nat.o): Likewise.
9957         (alphabsd-tdep.o): New dependency list.
9958         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9959         (fill_gregset): Use alphabsd_fill_reg.
9960         (supply_fpregset): Use alphabsd_supply_fpreg.
9961         (fill_fpregset): Use alphabsd_fill_fpreg.
9962         (fetch_inferior_registers): Use struct reg and struct fpreg
9963         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9964         and alphabsd_supply_fpreg.
9965         (store_inferior_registers): Use struct reg and struct fpreg
9966         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9967         and alphabsd_fill_fpreg.
9968         * alphabsd-tdep.c: New file.
9969         * alphabsd-tdep.h: New file.
9970         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9971         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9972         alphabsd_supply_fpreg.
9973         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9974         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9975
9976 2002-05-11  Eric Christopher  <echristo@redhat.com>
9977
9978         * mips-tdep.c (mips_double_register_type): Fix thinko.
9979         (mips_single_register_type): Ditto.
9980         * MAINTAINERS: Add self.
9981
9982 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9983
9984         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9985         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9986         right thing on architectures with different endianness and/or
9987         integer sizes.
9988
9989 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9990
9991         From Christian Limpach <chris@Pin.LU>
9992         * configure.in: Change sed expression which comments out
9993         NATDEPFILES to also comment out continuation lines.
9994         * configure: Regenerate.
9995
9996 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9997
9998         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9999         big patch.
10000
10001 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10002
10003         * sh-tdep.c: Include correct file.
10004
10005 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10006
10007         New support for sh64-elf (sh5) target.
10008
10009         * configure.tgt: For sh64-elf target, default to sh-elf.
10010
10011         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10012         (struct gdbarch_tdep): Add new fields for new registers and ABI
10013         info.
10014
10015         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10016         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10017         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10018         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10019         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10020         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10021         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10022         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10023         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10024         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10025         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10026         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10027         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10028         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10029         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10030         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10031         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10032         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10033         sign_extend, sh64_nofp_frame_init_saved_regs,
10034         sh64_init_extra_frame_info, sh64_get_saved_register,
10035         sh64_extract_struct_value_address, sh64_pop_frame,
10036         sh64_push_arguments, sh64_extract_return_value,
10037         sh64_store_return_value, sh64_show_media_regs,
10038         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10039         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10040         sh_sh64_register_virtual_type,
10041         sh_sh64_register_convert_to_virtual,
10042         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10043         sh64_register_read, sh64_pseudo_register_write,
10044         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10045         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10046         sh64_do_pseudo_register, sh_compact_do_registers_info,
10047         sh64_do_registers_info, sh_gdbarch_init): New functions.
10048
10049 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10050
10051         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10052
10053 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10054
10055         * linespec.c (decode_line_1): Check for a double quote after
10056         a filename correctly.
10057
10058 2002-05-10  Jim Blandy  <jimb@redhat.com>
10059
10060         Properly track the size of the current objfile's .debug_line section.
10061         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10062         (DWARF_LINE_SIZE): New macro.
10063         (dwarf2_build_psymtabs_hard): Record the line section's size in
10064         the partial symbol table.
10065         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10066         symbol table.
10067
10068 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10069
10070         * ia64-tdep.c: Handle breakpoints on L instruction type
10071         in MLX instruction bundle by moving the breakpoint to
10072         the third slot (X instruction type) as L holds only data.
10073
10074 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10075
10076         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10077         (process_one_symbol): Complain about discarding local symbols
10078         due to a misplaced N_LBRAC entry.
10079
10080 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10081
10082         From Daniel Berlin <dan@cgsoftware.com>
10083         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10084         decrease the depth we are at, in the case of templates.
10085
10086 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10087
10088         * mips-tdep.c (mips_float_register_type): New function.
10089         (mips_double_register_type): New function.
10090         (mips_print_register): Use them.
10091         (do_fp_register_row): Likewise.
10092
10093 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10094
10095         * signals/signals.c (signals): Remove conditional compilation around
10096         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10097         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10098
10099 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10100
10101         * remote-rdp.c (remote_rdp_can_run): Remove.
10102
10103 2002-05-09  Tom Tromey  <tromey@redhat.com>
10104
10105         * jv-valprint.c (java_val_print): Handle `char' as a special case
10106         of TYPE_CODE_INT.
10107
10108 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10109
10110         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10111         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10112         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10113         str r(0123),[sp,#nn].
10114         (arm_skip_prologue): Ditto.  Also make disassembly
10115         order-independent by placing it in a loop.
10116
10117 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10118
10119         * stabsread.c (read_type): Add recognition for new attribute:
10120         "@V;" means that an array type is actually a vector.
10121         This is analogous to the vector flag that's been added to dwarf2.
10122
10123 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10124
10125         * i386-tdep.h (i386_abi): New enum.
10126         (struct gdbarch_tdep): Replace os_ident member with abi.
10127         (i386_gdbarch_register_os_abi): New prototype.
10128         * i386-tdep.c (i386_abi_names): New array.
10129         (process_note_abi_tag_sections): Removed.
10130         (process_note_sections): New function.
10131         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10132         (struct i386_abi_handler): New struct.
10133         (i386_abi_handler_list): New variable.
10134         (i386_gdbarch_register_os_abi): New function.
10135         (i386_gdbarch_init): Adapt for the changes given above.
10136
10137 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10138
10139         * gregset.h: Say "GNU/Linux".
10140
10141 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10142
10143         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10144         (build_gdbtypes): Build builtin_type_v2_float.
10145         (_initialize_gdbtypes): Register new builtin type.
10146
10147 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10148
10149         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10150         (clear_gdbarch_swap): New function.
10151         (initialize_non_multiarch): Call.
10152         (gdbarch_update_p): Before calling init(), swap out and clear the
10153         existing architecture.
10154         * gdbarch.c: Regenerate.
10155
10156 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10157
10158         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10159         alphanbsd-tdep.c.
10160
10161 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10162
10163         * sh-nbsd-nat.c: Rename to...
10164         * shnbsd-nat.c: ...this.
10165         * sh-nbsd-tdep.c: Rename to...
10166         * shnbsd-tdep.c: ...this.
10167         * sh-nbsd-tdep.h: Rename to...
10168         * shnbsd-tdep.h: ...this.
10169         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10170         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10171
10172 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10173
10174         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10175         concatenation for command help messages.
10176
10177 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10178
10179         * NEWS: Note new sh*-*-netbsdelf* configuration.
10180         * configure.host: Set gdb_host_cpu to sh for all sh*.
10181         (sh*-*-netbsdelf*): New host.
10182         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10183         (sh*-*-netbsdelf*): New target.
10184         * sh-nbsd-nat.c: New file.
10185         * sh-nbsd-tdep.c: New file.
10186         * sh-nbsd-tdep.h: New file.
10187         * config/sh/nbsd.mh: New file.
10188         * config/sh/nbsd.mt: New file.
10189         * config/sh/nm-nbsd.h: New file.
10190         * config/sh/tm-nbsd.h: New file.
10191
10192 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10193
10194         * sh-tdep.c (sh_osabi_names): Declare.
10195         (process_note_abi_tag_sections): New function.
10196         (get_elfosabi): Ditto.
10197         (sh_gdbarch_register_os_abi): Ditto.
10198         (sh_dump_tdep): Ditto.
10199         _initialize_sh_tdep): Use gdbarch_register to register
10200         sh_gdbarch_init and sh_dump_tdep.
10201         * config/sh/tm-sh.h (sh_osabi): Declare.
10202         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10203
10204 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10205
10206         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10207         (thumb_scan_prologue): Ditto.
10208         (arm_find_callers_reg): Ditto.
10209         (arm_frame_chain): Ditto.
10210         (arm_init_extra_frame_info): Ditto.
10211         (arm_frame_saved_pc): Ditto.
10212         (arm_pop_frame): Ditto.
10213         (arm_push_return_address): New function.
10214         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10215         call_dummy_location, call_dummy_breakpoint_offset_p,
10216         call_dummy_breakpoint_offset, call_dummy_p,
10217         call_dummy_stack_adjust_p, call_dummy_words,
10218         sizeof_call_dummy_words, call_dummy_start_offset,
10219         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10220         call_dummy_address, push_return_address and push_dummy_frame for
10221         generic dummy frames.
10222
10223 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10224
10225         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10226         size computation for alloca.
10227         (sh_fp_frame_init_saved_regs): Likewise.
10228
10229 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10230
10231         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10232         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10233         * arm-tdep.c (arm_store_return_value): Use them.
10234         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10235         * remote-rdp.c (remote_rdp_fetch_register): Use
10236         ARM_MAX_REGISTER_RAW_SIZE.
10237         (remote_rdp_store_register): Likewise.
10238
10239 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10240
10241         * dwarf2cfi.c: Code cleanup, removed unused variables,
10242         added default labels to switch {} statements.
10243         * x86-64-tdep.c: Ditto.
10244         * x86-64-linux-nat.c: Ditto.
10245
10246 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10247
10248         * solib.h: Protect against multiple inclusion.
10249
10250 2002-05-06  Jim Blandy  <jimb@redhat.com>
10251
10252         Add first preprocessor macro-expansion files.
10253         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10254         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10255         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10256         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10257         (COMMON_OBS): Add macrotab.o, macroexp.o.
10258         (macroexp.o, macrotab.o): New rules.
10259
10260         Separate the job of reading the line number info statement program
10261         header (...expialidocious) out into its own function.
10262         * dwarf2read.c (struct line_head, struct filenames, struct
10263         directories): Replace with...
10264         (struct line_header): New structure, containing the full
10265         contents of the statement program header, including the
10266         include directory and file name tables.
10267         (read_file_scope): If we have line number info, instead of just
10268         calling dwarf_decode_lines to do all the work, call
10269         dwarf_decode_line_header first to get a `struct line_header'
10270         containing the data in the statement program header, and then
10271         pass that to dwarf_decode_lines, which will pick up where that
10272         left off.  Be sure to clean up the `struct line_header' object.
10273         (dwarf_decode_line_header, free_line_header, add_include_dir,
10274         add_file_name): New functions.
10275         (dwarf_decode_lines): Move all the code to read the statement
10276         program header into dwarf_decode_line_header.  Take the line
10277         header it built as the first argument, instead of the offset to
10278         the compilation unit's line number info.  Use the new `struct
10279         line_header' type instead of the old structures.  No need to do
10280         cleanups here now, since we don't allocate anything.
10281         (dwarf2_statement_list_fits_in_line_number_section,
10282         dwarf2_line_header_too_long): New complaints.
10283
10284 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10285
10286         * gdbtypes.c (init_vector_type): New function.
10287         (build_builtin_type_vec128): Simplify the representation of SIMD
10288         registers.
10289         (build_gdbtypes): Initialize new builtin vector types.
10290         (_initialize_gdbtypes): Register new vector types with gdbarch.
10291         (builtin_type_v4_float, builtin_type_v4_int32,
10292         builtin_type_v8_int16, builtin_type_v16_int8,
10293         builtin_type_v2_int32, builtin_type_v4_int16,
10294         builtin_type_v8_int8): New (renamed) SIMD types.
10295
10296 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10297
10298         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10299         (i387_fill_fxsave): Likewise.
10300
10301 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10302
10303         * alpha-tdep.c (alpha_extract_return_value): Don't use
10304         non-constant array size in prototype.
10305
10306 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10307
10308         From Brian Taylor <briant at model dot com>:
10309         * ui-out.c (ui_out_field_core_addr): Use the function
10310         longest_local_hex_string_custom'to format addresses > 32 bits
10311         wide.
10312
10313         * ui-out.c (ui_out_field_core_addr): Update comment.
10314
10315 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10316
10317         * stack.c (select_and_print_frame): Make static.  Delete the
10318         parameter `level'.
10319         (func_command): Update call.
10320         (select_frame_command): Delete code computing the frame level.
10321         * frame.h (select_and_print_frame): Delete declaration.
10322
10323 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10324
10325         * sparc-tdep.c (sparc_get_saved_register): Comment why
10326         get_prev_frame call is safe.
10327
10328 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10329
10330         * frame.h (select_frame): Delete level parameter.
10331         * stack.c (select_frame): Update.  Use frame_relative_level to
10332         obtain the frame's level.
10333         (select_and_print_frame): Update call.
10334         (select_frame_command): Ditto.
10335         (up_silently_base): Ditto.
10336         (down_silently_base): Ditto.
10337         * ocd.c (ocd_start_remote): Ditto.
10338         * remote-rdp.c (remote_rdp_open): Ditto.
10339         * remote-mips.c (mips_initialize): Ditto.
10340         (common_open): Ditto.
10341         * remote-e7000.c (e7000_start_remote): Ditto.
10342         * m3-nat.c (select_thread): Ditto.
10343         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10344         (child_get_current_exception_event): Ditto.
10345         * varobj.c (varobj_create): Ditto.
10346         (varobj_update): Ditto.
10347         (c_value_of_root): Ditto.
10348         * tracepoint.c (finish_tfind_command): Ditto.
10349         * corelow.c (core_open): Ditto.
10350         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10351         * thread.c (info_threads_command): Ditto.
10352         (switch_to_thread): Ditto.
10353         * infrun.c (normal_stop): Ditto.
10354         (restore_selected_frame): Ditto.
10355         (restore_inferior_status): Ditto.
10356         * breakpoint.c (insert_breakpoints): Ditto.
10357         (watchpoint_check): Ditto.
10358         (bpstat_stop_status): Ditto.
10359         (do_enable_breakpoint): Ditto.
10360         * blockframe.c (flush_cached_frames): Ditto.
10361         (reinit_frame_cache): Ditto.
10362
10363 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10364
10365         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10366         maintainer.
10367
10368 2002-05-04  Jim Blandy  <jimb@redhat.com>
10369
10370         * gdbtypes.c (replace_type): Doc fix.
10371
10372 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10373
10374         * valprint.c (strcat_longest): Delete commented out function.
10375         Update copyright.
10376
10377 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10378
10379         * MAINTAINERS: Mark a29k as deleted.
10380         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10381         Move new configurations to the top.
10382         * configure.tgt: Remove a29k.
10383         * config/a29k/tm-vx29k.h: Delete.
10384         * config/a29k/vx29k.mt: Delete.
10385         * config/a29k/tm-a29k.h: Delete.
10386         * config/a29k/a29k-udi.mt: Delete.
10387         * config/a29k/a29k.mt: Delete.
10388         * a29k-tdep.c: Delete.
10389         * remote-udi.c: Delete.
10390         * remote-mm.c: Delete.
10391         * remote-eb.c: Delete.
10392         * remote-adapt.c: Delete.
10393         * Makefile.in: Remove obsolete code.
10394         * config/s390/s390x.mt: Ditto.
10395         * config/s390/s390.mt: Ditto.
10396         * config/sparc/sparclynx.mh: Ditto.
10397         * config/sparc/linux.mh: Ditto.
10398         * config/pa/hppaosf.mh: Ditto.
10399         * config/pa/hppabsd.mh: Ditto.
10400         * config/ns32k/nbsd.mt: Ditto.
10401         * config/mips/vr5000.mt: Ditto.
10402         * config/m68k/sun3os4.mh: Ditto.
10403         * config/m68k/nbsd.mt: Ditto.
10404         * config/m68k/m68klynx.mh: Ditto.
10405         * config/m32r/m32r.mt: Ditto.
10406         * config/i386/x86-64linux.mt: Ditto.
10407         * config/i386/nbsdelf.mt: Ditto.
10408         * config/i386/nbsd.mt: Ditto.
10409         * config/i386/i386lynx.mh: Ditto.
10410
10411 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10412
10413         * target.c (debug_print_register): New function.  Handle oversize
10414         registers.
10415         (debug_to_fetch_registers): Call.
10416         (debug_to_store_registers): Call.
10417
10418 2002-05-03  Jim Blandy  <jimb@redhat.com>
10419
10420         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10421         (read_type): Doc fix.
10422         * gdbtypes.c (replace_type): Doc fix.
10423
10424         * stabsread.c (multiply_defined_struct): New complaint.
10425         (read_struct_type): If the type we were passed isn't empty, or
10426         incomplete, don't read the new struct type into it; complain,
10427         and return the original type unchanged.  Take a new `type_code'
10428         argument, which is the type code for the new type.
10429         (read_type): Rather than storing the type's type code here, pass
10430         it as an argument to read_struct_type, and let that take care of
10431         storing it.  That way, we don't overwrite the original type code,
10432         so read_struct_type can use it to decide whether we're overwriting
10433         something we shouldn't.
10434         (complain_about_struct_wipeout): New function.
10435
10436 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10437
10438         * gdbarch.sh: Assert that gdbarch is non-NULL.
10439         * gdbarch.c: Regenerate.
10440
10441 2002-05-03  Jason Merrill  <jason@redhat.com>
10442
10443         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10444         and return NULL.
10445
10446 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10447
10448         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10449         (x86_64_dwarf2gdb_regno_map_length),
10450         (x86_64_dwarf2_reg_to_regnum): Added.
10451         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10452         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10453         (_initialize_x86_64_tdep): Synced with the change above.
10454         (x86_64_skip_prologue): Reformulated message.
10455
10456 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10457
10458         * f-exp.y: Also use new prev_lexptr variable
10459         to improve error reporting. Based on Michael Snyder
10460         2002-04-24 dated patch to c-exp.y.
10461         * jv-exp.y: Likewise.
10462         * m2-exp.y: Likewise.
10463
10464 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10465
10466         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10467         we are dealing with vectors.
10468
10469 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10470
10471         * config/m68k/tm-nbsd.h: Obvious fix,
10472         correct machine name.
10473
10474 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10475
10476         * p-typeprint.c (pascal_type_print_base): Add support
10477         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10478
10479 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10480
10481         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10482         for fondamental pascal 'char' type.
10483
10484 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10485
10486         * p-lang.h (is_pascal_string_type): Declaration changed,
10487         new sixth argument of type char ** added.
10488         * p-lang.c (is_pascal_string_type): Implementation
10489         changed. Args length_pos, length_size, string_pos, char_size
10490         can now be NULL. New argument arrayname set to the field
10491         name of the char array. Return value set to char array
10492         field index plus one.
10493         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10494         is_pascal_string_type function.
10495
10496 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10497
10498         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10499         <cagney@redhat.com> change.
10500         * gdbarch.c: Regenerate.
10501
10502 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10503
10504         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10505         before probing for a new one.  Detect errorenous gdbarch_init
10506         functions.
10507         * gdbarch.c: Regenerate.
10508
10509 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10510
10511         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10512         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10513         * config/v850/tm-v850.h: Ditto.  Update copyright.
10514
10515 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10516
10517         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10518         current_gdbarch.
10519
10520 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10521
10522         * arm-tdep.c: Whitespace clean-ups.
10523         (arm_skip_prologue): Fix thinko; two lines
10524         should have been removed as part of 4/24 change.
10525
10526 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10527
10528         * rs6000-tdep.c: Added comment describing how fpscr register
10529         numbers were chosen.
10530
10531 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10532
10533         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10534
10535 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10536
10537         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10538         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10539         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10540
10541 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10542
10543         From Louis Hamilton <hamilton@redhat.com>:
10544         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10545         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10546         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10547         not bfd-private xcoff data, to determine wordsize.
10548         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10549
10550 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10551
10552         GDB 5.2 released from 5.2 branch.
10553
10554 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10555
10556         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10557         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10558         (x86_64_register_info_table): Added comments with register numbers.
10559
10560 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10561
10562         * rs6000-tdep.c (rs6000_extract_return_value,
10563         rs6000_store_return_value): Handle returning vectors.
10564         (rs6000_gdbarch_init): Use
10565         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10566         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10567         New function.
10568         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10569         vectors.
10570         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10571         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10572
10573 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10574
10575         * hpread.c (hpread_psymtab_to_symtab_1,
10576         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10577         with fprintf_unfiltered (gdb_stderr,...).
10578
10579 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10580
10581         * remote-array.c (printf_monitor, write_monitor,
10582         array_insert_breakpoint, array_remove_breakpoint ):
10583         Replace fprintf (stderr,...
10584         with fprintf_unfiltered (gdb_stderr,....
10585         * remote-es.c: Likewise.
10586         * remote-os9k.c: Likewise.
10587         * remote-st.c: Likewise.
10588
10589 2002-04-28  Andreas Schwab  <schwab@suse.de>
10590
10591         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10592         linux-proc.o and gcore.o.
10593
10594 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10595
10596         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10597         code without frame pointers.
10598
10599 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10600
10601         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10602         ON_STACK is needed.
10603
10604 2002-04-26  Ben Elliston  <bje@redhat.com>
10605
10606         * target.c (do_xfer_memory): Correct reference to the new option
10607         "trust-readonly-sections".
10608
10609 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10610
10611         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10612         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10613         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10614         vectors.
10615         (read_array_type): Record the fact that this array type is really a
10616         vector (i.e. are passed in by value).
10617
10618 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10619
10620         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10621         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10622         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10623         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10624         * alpha-linux-tdep.c: Include frame.h.
10625         (alpha_linux_sigcontext_addr): New function.
10626         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10627         alpha_linux_sigcontext_addr.
10628         * alpha-osf1-tdep.c: Include gdbcore.h.
10629         (alpha_osf1_sigcontext_addr): New function.
10630         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10631         alpha_osf1_sigcontext_addr.
10632         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10633         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10634
10635 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10636
10637         * stack.c (selected_frame_level):
10638         (select_frame): Do not set selected_frame_level.
10639         * frame.h (selected_frame_level): Delete declaration.
10640
10641 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10642
10643         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10644         convert_from_func_ptr-addr when AIX / PowerOpen.
10645
10646 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10647
10648         * valops.c (hand_function_call): Call
10649         generic_save_call_dummy_addr.
10650         * frame.h (generic_save_call_dummy_addr): Declare.
10651         * blockframe.c (struct dummy_frame): Add fields call_lo and
10652         call_hi.
10653         (generic_find_dummy_frame): Check for PC in range call_lo to
10654         call_hi instead of entry_point_address.
10655         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10656         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10657         (generic_save_call_dummy_addr): New function.
10658
10659 2002-04-24  David S. Miller  <davem@redhat.com>
10660
10661         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10662         sparc_skip_prologue.
10663         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10664         information to find prologue when possible.
10665         (sparc_prologue_frameless_p): Call examine_prologue directly.
10666         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10667         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10668         second argument.
10669         (SKIP_PROLOGUE): Likewise.
10670
10671 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10672
10673         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10674         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10675         indicate that the condition it was testing is always true.
10676         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10677         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10678         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10679
10680 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10681
10682         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10683         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10684         tdep->jb_pc and tdep->jb_elt_size.
10685         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10686         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10687         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10688         * alpha-nat.c (get_longjmp_target): Remove.
10689         (JB_ELEMENT_SIZE): Ditto.
10690         (JB_PC): Ditto.
10691         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10692         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10693         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10694         to alpha_get_longjmp_target.
10695         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10696         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10697         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10698
10699 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10700
10701         * README: Update to GDB 5.2.
10702
10703 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10704
10705         * gdbarch.sh (LC_ALL): Set to `c'.
10706
10707 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10708
10709         * avr-tdep.c: Ran through gdb_indent.sh.
10710
10711 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10712
10713         * MAINTAINERS: Add myself as AVR maintainer.
10714         * NEWS: Note new target avr.
10715
10716 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10717
10718         * Makefile.in: Add support for AVR target.
10719         * configure.tgt: Add support for AVR target.
10720         * avr-tdep.c: New file
10721         * config/avr/avr.mt: New file.
10722
10723 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10724
10725         * MAINTAINERS: Add myself to write-after-approval.
10726
10727 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10728
10729         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10730         with fprintf_unfiltered (gdb_stderr,....
10731
10732 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10733
10734         Fix PR gdb/508.
10735         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10736
10737 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10738
10739         * p-exp.y: Also use new prev_lexptr variable
10740         to improve error reporting. Based on Michael Snyder
10741         2002-04-24 dated patch to c-exp.y.
10742
10743 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10744
10745         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10746         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10747         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10748         to 0.
10749         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10750         and struct value.
10751         (FUNCTION_START_OFFSET): Remove.
10752         (BREAKPOINT): Ditto.
10753
10754 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10755
10756         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10757         * NEWS: Ditto.
10758
10759 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10760
10761         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10762         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10763         alpha_linux_pc_in_sigtramp.
10764         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10765         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10766         alpha_osf1_pc_in_sigtramp.
10767         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10768         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10769         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10770         alphafbsd_pc_in_sigtramp.
10771         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10772         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10773         alphanbsd_pc_in_sigtramp.
10774         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10775         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10776
10777 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10778
10779         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10780
10781 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10782
10783         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10784         alphanbsd-tdep.c.
10785         (alphanbsd-nat.o): New dependency list.
10786         (alphanbsd-tdep.o): Ditto.
10787         * NEWS: Note new native NetBSD/alpha configuration.
10788         * alphanbsd-nat.c: New file.
10789         * alphanbsd-tdep.c: Ditto.
10790         * configure.host (alpha*-*-netbsd*): New host.
10791         * configure.tgt (alpha*-*-netbsd*): New target.
10792         * config/alpha/nbsd.mh: New file.
10793         * config/alpha/nbsd.mt: Ditto.
10794         * config/alpha/nm-nbsd.h: Ditto.
10795         * config/alpha/tm-nbsd.h: Ditto.
10796
10797 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10798
10799         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10800         (alpha-osf1-tdep.o): New dependency list.
10801         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10802         and skip_sigtramp_frame members.
10803         * alpha-linux-tdep.c: Include gdbcore.h.
10804         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10805         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10806         * alpha-osf1-tdep.c: New file.
10807         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10808         alpha-osf1-dep.c.
10809         (alpha_frame_past_sigtramp_frame): New function.
10810         (alpha_dynamic_sigtramp_offset): Ditto.
10811         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10812         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10813         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10814         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10815         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10816         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10817         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10818         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10819         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10820         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10821         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10822         to find_solib_trampoline_target.
10823         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10824         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10825         (SKIP_TRAMPOLINE_CODE): Remove.
10826         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10827         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10828         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10829         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10830         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10831         (PROC_SIGTRAMP_MAGIC): Ditto.
10832         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10833         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10834         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10835         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10836         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10837
10838 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10839
10840         * NEWS: Note that Alpha targets are now multi-arch.
10841
10842 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10843
10844         * parser-defs.h (prev_lexptr): New external variable.
10845         * parse.c (parse_exp_1): Set prev_lexptr to null before
10846         calling the language-specific parser.
10847         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10848         (yyerror): Use prev_lexptr in error reporting.
10849
10850 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10851
10852         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10853         * gregset.h: If FILL_FPXREGSET is defined, provide
10854         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10855         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10856         is defined, call fill_fpxregset.
10857
10858 2002-04-24  Roland McGrath  <roland@frob.com>
10859
10860         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10861         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10862         (supply_gregset, supply_fpregset): New functions.
10863
10864         * gnu-nat.c (gnu_find_memory_regions): New function.
10865         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10866         (gnu_xfer_memory): Add a cast.
10867
10868 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10869
10870         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10871         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10872         of argument regs ("str r(0123), [r11, #-nn"]).
10873         (arm_skip_prologue): Better handling for frameless functions.
10874         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10875         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10876
10877 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10878
10879         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10880         NUM_PSEUDO_REGS can be used.
10881
10882 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10883
10884         * arch-utils.h: Update copyright.
10885
10886         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10887         * gdbarch.h, gdbarch.c: Re-generate.
10888
10889         * inferior.h (IN_SIGTRAMP): Delete definition.
10890         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10891         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10892
10893         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10894         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10895         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10896         (find_proc_framesize): Ditto.
10897         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10898         (alpha_init_extra_frame_info): Ditto.
10899         * infrun.c (handle_inferior_event): Ditto.
10900         (handle_inferior_event): Ditto.
10901         (check_sigtramp2): Ditto.
10902         * blockframe.c (create_new_frame): Ditto.
10903         (get_prev_frame): Ditto.
10904         * ppc-linux-tdep.c: Update comments.
10905         * i386-linux-tdep.c: Update comments.
10906         * breakpoint.c (bpstat_what): Update comment.
10907
10908 2002-04-24  David S. Miller  <davem@redhat.com>
10909
10910         * i960-tdep.c (register_in_window_p): New function.
10911         (i960_find_saved_register): Use it instead of
10912         REGISTER_IN_WINDOW_P.
10913         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10914
10915         * symtab.h (find_stab_function_addr): Kill extern.
10916         * minsyms.c (find_stab_function_addr): Remove from here...
10917         * dbxread.c: ... to here, and mark it static.
10918
10919 2002-04-20  David S. Miller  <davem@redhat.com>
10920
10921         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10922         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10923
10924 2002-04-21  David S. Miller  <davem@redhat.com>
10925
10926         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10927         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10928         (vx_write_register): Likewise.
10929
10930 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10931
10932         * source.c (is_regular_file): New function.
10933         (openp): Check wether file to open is a regular file
10934         to avoid opening directories.
10935
10936 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10937
10938         * findvar.c (extract_signed_integer): Cast printf argument
10939         to suppress format warning.
10940         (extract_unsigned_integer): Likewise.
10941         * infcmd.c (registers_info): Likewise.
10942         * top.c (get_prompt_1): Likewise.
10943         * valops.c (value_assign): Likewise.
10944         * valprint.c (print_decimal): Likewise.
10945
10946 2002-04-22  H.J. Lu  (hjl@gnu.org)
10947
10948         * c-exp.y (typebase): Support
10949
10950         [long|long long|short] [signed|unsigned] [int|]
10951
10952         and
10953
10954         signed [long|long long|short] int
10955
10956 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10957
10958         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10959         and vax-tdep.h.
10960         * vax-tdep.h: New file.
10961         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10962         Make several routines static.
10963         (vax_get_saved_register): New function.
10964         (vax_gdbarch_init): New function.
10965         (_initialize_vax_tdep): Register vax_gdbarch_init.
10966         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10967         Remove macros now under the control of gdbarch.
10968
10969 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10970
10971         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10972         Some whitespace and coding standards tweaks.
10973
10974 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10975
10976         * vax-tdep.c: Include regcache.h.
10977         (vax_call_dummy_words): New.
10978         (sizeof_vax_call_dummy_words): New.
10979         (vax_fix_call_dummy): New function.
10980         (vax_saved_pc_after_call): Ditto.
10981         * config/vax/tm-vax.h: Don't include regcache.h.
10982         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10983         (CALL_DUMMY): Remove.
10984         (CALL_DUMMY_WORDS): Define.
10985         (SIZEOF_CALL_DUMMY_WORDS): Define.
10986         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10987
10988 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10989
10990         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10991
10992 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10993
10994         * vax-tdep.c (vax_frame_chain): New function.
10995         (vax_push_dummy_frame): Ditto.
10996         (vax_pop_frame): Ditto.
10997         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10998         (FRAMELESS_FUNCTION_INVOCATION): Use
10999         generic_frameless_function_invocation_not.
11000         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11001         (POP_FRAME): Use vax_pop_frame.
11002
11003 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11004
11005         * vax-tdep.c (vax_store_struct_return): New function.
11006         (vax_extract_return_value): Ditto.
11007         (vax_store_return_value): Ditto.
11008         (vax_extract_struct_value_address): Ditto.
11009         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11010         vax_store_struct_return.
11011         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11012         (STORE_RETURN_VALUE): Use vax_store_return_value.
11013         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11014
11015 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11016
11017         * vax-tdep.c (vax_frame_saved_pc): New function.
11018         (vax_frame_args_address_correct): Ditto.
11019         (vax_frame_args_address): Ditto.
11020         (vax_frame_locals_address): Ditto.
11021         (vax_frame_num_args): Move code to be in proximity to
11022         other frame-related functions.
11023         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11024         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11025         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11026         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11027         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11028
11029 2002-04-22  H.J. Lu  (hjl@gnu.org)
11030
11031         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11032         includedir.
11033
11034 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11035
11036         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11037         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11038         (FRAME_INIT_SAVED_REGS): New macro.
11039
11040 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11041
11042         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11043
11044 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11045
11046         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11047         where needed.
11048         (fetch_osf_core_registers): Likewise.
11049         (supply_gregset): Likewise.
11050
11051 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11052
11053         * symfile.h (get_section_index): Define.
11054         * symfile.c (get_section_index): New function.
11055         * mdebugread.c (SC_IS_SBSS): New macro.
11056         (SC_IS_BSS): Return true for the scBss storage class only, as
11057         the scSBss storage class refers to the .sbss section.
11058         (parse_partial_symbols): Discard the symbols which associated
11059         section does not exist.
11060         Make sure to use the .sbss section index for symbols which
11061         storage class is scBss, rather than using the .bss section index.
11062
11063 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11064
11065         * vax-tdep.c: Update copyright years.
11066         (vax_register_name): New function.
11067         (vax_register_byte): Ditto.
11068         (vax_register_raw_size): Ditto.
11069         (vax_register_virtual_size): Ditto.
11070         (vax_register_virtual_type): Ditto.
11071         * config/vax/tm-vax.h: Update copyright years.
11072         (REGISTER_NAMES): Remove.
11073         (REGISTER_NAME): Define.
11074         (REGISTER_BYTE): Use vax_register_byte.
11075         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11076         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11077         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11078
11079 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11080
11081         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11082         declaration
11083         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11084
11085 2002-04-21  David S. Miller  <davem@redhat.com>
11086
11087         * arch-utils.c (generic_prologue_frameless_p): Kill
11088         SKIP_PROLOGUE_FRAMELESS_P code.
11089         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11090         references.
11091         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11092         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11093         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11094         references.
11095         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11096         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11097         (sparc_gdbarch_init): Pass it to
11098         set_gdbarch_prologue_frameless_p.
11099
11100 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11101
11102         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11103         (alphabsd-nat.o): New dependency list.
11104
11105 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11106
11107         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11108         alphafbsd-tdep.c.
11109         (alpha-linux-tdep.o): New dependency list.
11110         (alphafbsd-tdep.o): Likewise.
11111
11112 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11113
11114         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11115         to here...
11116         * alpha-tdep.c: ...from here.
11117         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11118
11119 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11120
11121         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11122         prototype from here...
11123         * alpha-tdep.h: ...to here.
11124
11125 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11126
11127         * frame.h (selected_frame_level): Document as deprecated.
11128         (frame_relative_level): Declare.
11129         * stack.c (frame_relative_level): New function.
11130         (selected_frame_level): Document as deprecated.
11131         (select_frame): Do not set the selected_frame_level.
11132
11133         * stack.c (frame_info, record_selected_frame): Update.
11134         (frame_command, current_frame_command): Update.
11135         (up_silently_base, up_command, down_silently_base): Update.
11136         (down_command): Update.
11137         * inflow.c (kill_command): Update.
11138         * tracepoint.c (finish_tfind_command): Update.
11139         * corelow.c (core_open): Update.
11140         * thread.c (info_threads_command): Update.
11141         (do_captured_thread_select): Update.
11142         * infcmd.c (finish_command): Update.
11143         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11144
11145 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11146
11147         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11148
11149 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11150
11151         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11152         type const.
11153
11154 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11155
11156         * alphafbsd-tdep.c: Update copyright years.  Include
11157         alpha-tdep.h.
11158         (alphafbsd_use_struct_convention): Make static.
11159         (alphafbsd_init_abi): New function.
11160         (_initialize_alphafbsd_tdep): New function.
11161         * config/alpha/tm-fbsd.h: Update copyright years.
11162         (USE_STRUCT_CONVENTION): Remove.
11163
11164 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11165
11166         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11167         an Alpha ABI variant.
11168         (alpha_abi_handler_list): Declare.
11169         (alpha_gdbarch_register_os_abi): New function.
11170         (alpha_gdbarch_init): Give registered ABI variant handlers a
11171         chance to tweak the gdbarch once we have set up defaults.
11172         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11173
11174 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11175
11176         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11177         to standard_coerce_float_to_double.
11178         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11179
11180 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11181
11182         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11183         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11184         from gdbarch_tdep rather than a constant.
11185         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11186         the default text address for all Alpha Unix ABIs.
11187         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11188         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11189
11190 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11191
11192         * alpha-tdep.h: New file.  Includes several Alpha target constants
11193         taken from...
11194         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11195         let gdbarch deal with.
11196         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11197         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11198         to dependency list.
11199         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11200         Alpha target register names.
11201         * alphabsd-nat.c: Likewise.
11202         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11203         Alpha target register names.  Make serveral routines static.
11204         (alpha_get_saved_register): New function.
11205         (alpha_abi_names): New.
11206         (process_note_abi_tag_sections): New function.
11207         (get_elfosabi): New function.
11208         (alpha_gdbarch_init): New function.
11209         (alpha_dump_tdep): New function.
11210         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11211
11212 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11213
11214         * frame.c (find_saved_register): Delete #ifdef
11215         HAVE_REGISTER_WINDOWS code.
11216         * config/sparc/tm-sparc.h: Update comments.
11217         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11218
11219 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11220
11221         * i960-tdep.c (i960_find_saved_register): New function.
11222         (i960_get_saved_register): New function.
11223         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11224         (i960_get_saved_register): Declare.
11225         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11226
11227 2002-04-20  David S. Miller  <davem@redhat.com>
11228
11229         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11230
11231 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11232
11233         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11234         instead of NUM_PSEUDO_REGS.
11235
11236 2002-04-20  David S. Miller  <davem@redhat.com>
11237
11238         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11239         GDB_MULTI_ARCH_PARTIAL
11240         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11241         define, let tm-sp64.h do it.
11242
11243 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11244
11245         * frame.c (find_saved_register): Avoid a NULL pointer
11246         dereference and actually walk the frame list.
11247
11248 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11249
11250         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11251         sorted in most most-recent-used order.  Document.
11252         * gdbarch.h, gdbarch.c: Regenerate.
11253
11254 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11255
11256         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11257         instead of ->prev.
11258         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11259         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11260         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11261         instead of ->prev.
11262
11263 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11264
11265         Fix PR gdb/471.
11266         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11267         (build_builtin_type_vec128): Ditto.
11268         (append_composite_type_field): Fix calculation of type length in
11269         union case.
11270
11271 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11272
11273         * config/djgpp/README: Update.
11274
11275         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11276         compiler warnings.
11277
11278 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11279
11280         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11281         (alpha_setup_arbitrary_frame): ...to this.
11282         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11283         for alpha_setup_arbitrary_frame.
11284
11285 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11286
11287         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11288         * gdbarch.h, gdbarch.c: Regenerate.
11289
11290         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11291         * target.h (memory_breakpoint_from_pc): Update declaration.
11292         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11293
11294         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11295         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11296         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11297         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11298         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11299         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11300         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11301         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11302         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11303         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11304         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11305         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11306
11307         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11308         const pointer.
11309         * monitor.c (monitor_insert_breakpoint): Ditto.
11310         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11311
11312         * config/mcore/tm-mcore.h: Update copyright.
11313         * mem-break.c: Ditto.
11314         * xstormy16-tdep.c: Ditto.
11315
11316 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11317
11318         * p-exp.y: Add precedence rule for '^' token.
11319         This removes the shift/reduce conflicts.
11320         Remove the comment concerning these shift/reduce conflicts.
11321
11322 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11323
11324         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11325         (registers_powerpc_nofp): New register set for processors
11326         without floating point unit.
11327
11328 2002-04-18  David S. Miller  <davem@redhat.com>
11329
11330         * MAINTAINERS: Add myself to write-after-approval.
11331
11332 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11333
11334         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11335
11336 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11337
11338         * rs6000-tdep.c (frame_initial_stack_address): Use
11339         frame_register_read to read the alloca_reg.
11340
11341 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11342
11343         * frame.c (find_saved_register): Find saved registers in the next
11344         not prev frame.
11345         Fix PR gdb/365.
11346
11347 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11348
11349         * gdbarch.sh (LANG): Set to ``c''.
11350
11351 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11352
11353         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11354
11355 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11356
11357         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11358         Update copyright.
11359
11360         * hpread.c (hpread_get_lntt): Add declaration.
11361         Also fix PR gdb/391.
11362
11363 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11364
11365         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11366         * aclocal.m4, configure: Re-generate.
11367         Fix PR gdb/391.
11368
11369 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11370
11371         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11372         instead of tm_print_insn.
11373
11374 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11375
11376         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11377
11378 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11379
11380         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11381         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11382         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11383
11384 2002-04-12  Don Howard  <dhoward@redhat.com>
11385
11386         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11387         max_user_call_depth.
11388         (init_cmd_lists): Initialize the new value;
11389         * cli/cli-script.c (execute_user_command): Limit the call depth of
11390         user defined commands.  This avoids a core-dump when user commands
11391         are infinitly recursive.
11392
11393 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11394
11395         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11396         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11397         from tdep struct instead of DEFAULT_LR_SAVE.
11398         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11399         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11400         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11401
11402 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11403
11404         * Remote.c: Spelling fix.
11405         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11406         If no symbol found for "sbrk", try "_sbrk".
11407         (make_output_phdrs): Use bfd_section_name.
11408         (gcore_copy_callback): Use bfd_section_name.
11409         * eval.c: Indentation fix-ups.
11410         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11411         in case it gets applied to an address that is already
11412         in the instruction space.
11413         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11414         * symfile.c: Fix indentation, long lines.
11415         * source.c: White space fix-up.
11416
11417 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11418
11419         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11420         * frame.c (frame_register_read): New function.  Return non-zero on
11421         success.
11422         (read_relative_register_raw_bytes_for_frame): Delete.
11423         (read_relative_register_raw_bytes): Delete.
11424         * frame.h (frame_register_read): Declare.
11425         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11426         * sh-tdep.c: Ditto.
11427         * infcmd.c (do_registers_info): Ditto.
11428         * hppa-tdep.c: Ditto.
11429         * rs6000-tdep.c: Ditto.
11430         * h8500-tdep.c: Ditto.
11431         * mips-tdep.c: Ditto.
11432         * h8300-tdep.c: Ditto.
11433         * z8k-tdep.c: Ditto.
11434
11435 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11436
11437         From Jimi X <jimix@watson.ibm.com>:
11438         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11439         64-bit SysV ABI.
11440
11441 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11442
11443         From Jimi X <jimix@watson.ibm.com>:
11444         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11445         bfd info.
11446
11447 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11448
11449         From Jimi X <jimix@watson.ibm.com>:
11450         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11451         register sets for these processor variants.
11452
11453 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11454
11455         * regformats/reg-ppc.dat: Support FPSCR.
11456
11457 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11458
11459         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11460         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11461         Add fpscr as an invalid/unfetchable register.
11462         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11463         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11464         (fill_fpregset): Add support for register fpscr.
11465         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11466         (fill_gregset): Account for the fact that register ``mq'' might
11467         not exist.
11468         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11469         (registers_power): Add fpscr to register set at slot 71.
11470         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11471         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11472
11473 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11474
11475         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11476         * configure: Regenerate.
11477         * config.in: Regenerate.
11478         * acconfig.h: Add define for _SYSCALL32.
11479         * core-sol2.c: Remove #define _SYSCALL32.
11480         * solib-legacy.c: Remove #define _SYSCALL32.
11481
11482 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11483
11484         * stack.c (select_frame): Cleanup internal error message, do not
11485         use %p.
11486
11487 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11488
11489         * stack.c (select_frame): Check that selected_frame and the
11490         specified level are as expected.
11491         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11492         Update copyright.
11493         * frame.h (struct frame_info): Add field `level'.  Update
11494         copyright.
11495         Work-in-progress PR gdb/464.
11496
11497 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11498
11499         * maint.c (maint_print_section_info): Rename print_section_info.
11500         (print_bfd_section_info, print_objfile_section_info): Update.
11501         * inferior.h (struct gdbarch): Add opaque declaration.
11502         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11503         * gdbarch.h: Regenerate.
11504
11505 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11506
11507         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11508         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11509         (kernel_u_size): Added.
11510         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11511         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11512
11513 2002-04-04  Jim Ingham  <jingham@apple.com>
11514
11515        * valarith.c (find_size_for_pointer_math): New function, either returns
11516        the size for a pointer's target, returns 1 for void *, or errors for
11517        incomplete types.
11518        (value_add, value_sub): use find_size_for_pointer_math.
11519
11520 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11521
11522         * linux-low.c (linux_look_up_symbols): New hook.
11523         (linux_target_ops): Add linux_look_up_symbols.
11524         * remote-utils.c (decode_address): New function.
11525         (look_up_one_symbol): New function.
11526         * server.c (handle_query): Call target look_up_symbols hook.
11527         * server.h (look_up_one_symbol): Add prototype.
11528         * target.h (struct target_ops): Add look_up_symbols hook.
11529
11530 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11531
11532         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11533         override FP_REGNUM with frame->fp.  Update copyright.
11534         * parse.c (num_std_regs, std_regs): Delete.
11535         (target_map_name_to_register): Do not search std_regs.  Update
11536         function description.
11537         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11538         declarations.  Update copyright.
11539         Fix PR gdb/251.
11540
11541 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11542
11543         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11544         after the last symbol in a block.
11545
11546 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11547
11548         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11549         is non zero as a found symbol.
11550
11551 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11552
11553         * findvar.c: Include "builtin-regs.h".
11554         (value_of_register): Call value_of_builtin_reg when applicable.
11555         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11556         (target_map_name_to_register): Call
11557         builtin_reg_map_name_to_regnum.
11558         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11559         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11560         (builtin_regs_h): Define.
11561         (builtin-regs.o): New target.
11562         (findvar.o): Add $(builtin_regs_h).
11563         * builtin-regs.c, builtin-regs.h: New files.
11564         * std-regs.c: New file.
11565         Partial fix for PR gdb/251.
11566
11567 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11568
11569         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11570         it's no longer required.
11571
11572 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11573
11574         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11575
11576 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11577
11578         From Jimi X <jimix@watson.ibm.com>:
11579         * rs6000-tdep.c (rs6000_software_single_step): Use
11580         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11581         and size.  Use target_insert_breakpoint() and
11582         target_remove_breakpoint() to insert and remove breakpoints
11583         instead of explicit memory reads and writes.
11584
11585 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11586
11587         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11588         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11589         ELF_OBJECT_FORMAT ifdef.
11590
11591 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11592
11593         From Jimi X <jimix@watson.ibm.com>:
11594         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11595
11596 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11597
11598         From Jimi X <jimix@watson.ibm.com>:
11599         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11600         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11601
11602 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11603
11604         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11605         s/asprintf/xasprintf/.
11606         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11607
11608 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11609
11610         I believe Jeff Law denies responsability for this one:
11611         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11612         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11613         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11614         Work-around for PR gdb/366.
11615
11616 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11617
11618         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11619         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11620         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11621
11622 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11623
11624         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11625         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11626         information.
11627
11628 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11629
11630         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11631         maintainer.
11632
11633 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11634
11635         * README (Reporting Bugs in GDB): Document the bug web page as the
11636         prefered way of submitting bugs.
11637         Fix PR gdb/402.
11638
11639 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11640
11641         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11642         -1.  Update comment.
11643         * gdbarch.h, gdbarch.c: Re-generate.
11644
11645 2002-04-07  Andreas Schwab  <schwab@suse.de>
11646
11647         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11648         buffer to regcache_collect.
11649
11650 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11651
11652         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11653         * gdbarch.c, gdbarch.h: Re-generate.
11654
11655 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11656
11657         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11658         declaration.  Fix -Werror.
11659
11660 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11661
11662         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11663         * gdbarch.c: Regenerate.
11664
11665 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11666
11667         * breakpoint.c (clear_command): Rewrite middle section to
11668         combine two loops with identical control conditions.
11669         Add a cleanup to eliminate a memory leak.
11670         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11671
11672 2002-04-05  H.J. Lu  (hjl@gnu.org)
11673
11674         * solib-svr4.c (bkpt_names): Add "__start".
11675
11676 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11677
11678         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11679         as test for 64 bit target.
11680
11681 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11682
11683         * h8500-tdep.c (h8500_write_fp): Delete function.
11684         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11685         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11686         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11687         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11688         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11689         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11690         (s390_write_fp):
11691         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11692         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11693         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11694         (d10v_write_fp): Delete function.
11695         * inferior.h (write_fp, generic_target_write_fp): Delete
11696         declarations.
11697         * regcache.c (generic_target_write_fp): Delete function.
11698         (write_fp): Delete function.
11699         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11700         * gdbarch.h, gdbarch.c: Regenerate.
11701         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11702         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11703         (sparc64_write_fp): Delete declaration.
11704         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11705         (h8500_write_fp): Delete declaration.
11706
11707 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11708
11709         * sparc-tdep.c (sparc64_write_fp): Delete.
11710         (sparc_push_dummy_frame): Replace write_fp call with code to store
11711         the FP directly.
11712         (sparc_gdbarch_init): Do not initialize write_fp.
11713
11714 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11715
11716         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11717         clause.
11718
11719 2002-03-29  Jim Blandy  <jimb@redhat.com>
11720
11721         * stack.c (get_selected_block): Add new argument `addr_in_block',
11722         used to return the exact code address we used to select the block,
11723         not just the block.
11724         * blockframe.c (get_frame_block, get_current_block): Same.
11725         * frame.h (get_frame_block, get_current_block,
11726         get_selected_block): Update declarations.
11727         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11728         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11729
11730 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11731
11732         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11733         warning message.
11734
11735 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11736
11737         * utils.c (xfullpath): New function.
11738         * defs.h (xfullpath): Add declaration.
11739         * source.c (openp): Use xfullpath in place of gdb_realpath to
11740         avoid resolving the basename part of filenames when the
11741         associated file is a symbolic link. This fixes a potential
11742         inconsistency between the filenames known to GDB and the
11743         filenames it prints in the annotations.
11744         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11745         to be able to match a filename with either the real filename, or
11746         the name of any symbolic link to this file.
11747         (lookup_partial_symtab): Ditto.
11748
11749 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11750
11751         * breakpoint.c: Add support for hardware breakpoints in overlays.
11752         (overlay_events_enabled): New state variable.
11753         (insert_breakpoints): Use overlay_events_enabled to decide
11754         whether to attempt to set a breakpoint at the overlay load addr.
11755         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11756         (remove_breakpoint): Use overlay_events_enabled to decide
11757         whether breakpoints need to be removed from overlay load addr.
11758         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11759         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11760         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11761         disable_overlay_breakpoints): Update overlay_events_enabled.
11762
11763 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11764
11765         * dwarf2read.c (struct function_range): New.
11766         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11767         (check_cu_functions): New.
11768         (read_file_scope): Initialize global function lists.
11769         Call dwarf_decode_line after processing children.
11770         (read_func_scope): Add to global function list.
11771         (dwarf_decode_lines): Call check_cu_functions everywhere
11772         record_line is called.  Call record_line with a linenumber
11773         of 0 to mark sequence ends.
11774
11775 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11776
11777         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11778         change sync with glibc.
11779
11780 2002-04-03  Jim Blandy  <jimb@redhat.com>
11781
11782         * configure.in: Call AC_C_INLINE.
11783         * configure: Regenerated.
11784
11785 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11786
11787         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11788         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11789
11790 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11791
11792         * NEWS: Mention gcore support on FreeBSD/i386.
11793
11794         * fbsd-proc.c: New file.
11795         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11796         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11797
11798         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11799         while statement.
11800
11801 2002-03-29  Jim Blandy  <jimb@redhat.com>
11802
11803         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11804         unescaped newlines in string literals, but newer ones don't.  So
11805         escape them.
11806
11807 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11808             Andrew Cagney <cagney@redhat.com>
11809
11810         * cli/cli-dump.c: New file.  Dump memory to file,
11811         restore file to memory.
11812         * cli/cli-dump.h: New file.
11813         * Makefile.in: Add rules, dependencies for cli-dump.o.
11814         * NEWS: Mention new commands.
11815
11816 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11817
11818         * symfile.c (symbol_file_add): Move test for null symbols to later.
11819
11820 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11821
11822         From veksler at il.ibm.com:
11823         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11824         the xstrduped original path.
11825         Fix PR gdb/417.
11826
11827 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11828
11829         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11830         * infcmd.c (_initialize_infcmd): Ditto.
11831         * language.c (_initialize_language): Ditto.
11832         * symfile.c (_initialize_symfile): Ditto.
11833         * top.c (_init_main): Ditto.
11834         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11835
11836 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11837
11838         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11839         vector registers handling.
11840         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11841         fields of frame data.
11842         (frame_get_saved_regs): Fill in information for AltiVec registers.
11843
11844 2002-03-27  Jim Blandy  <jimb@redhat.com>
11845
11846         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11847         a function; leave this macro here to invoke that function.
11848         (symbol_init_mangled_name): Declaration for that function.
11849         * symtab.c (symbol_init_mangled_name): New function.
11850
11851 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11852
11853         * valarith.c: Replace strerror with safe_strerror.
11854         * tracepoint.c: Ditto.
11855         * lin-lwp.c: Ditto.
11856         * go32-nat.c: Ditto.
11857         * inflow.c: Ditto.
11858         * gnu-nat.c: Ditto.
11859
11860 2002-03-27  Andreas Schwab  <schwab@suse.de>
11861
11862         * event-top.c (command_line_handler): Remove useless if.
11863
11864 2002-03-27  Andreas Jaeger  <aj@suse.de>
11865
11866         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11867         comment.
11868
11869 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11870
11871         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11872         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11873         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11874         (x86_64_linux_dr_get_status, supply_gregset),
11875         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11876         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11877         (x86_64_register_info_table): Add.
11878         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11879         (x86_64_register_raw_size, x86_64_register_virtual_type),
11880         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11881         general x86_64_register_info_table.
11882         (i386_gdbarch_init): gdbarch_register_bytes is now set
11883         dynamicaly during initialization.
11884         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11885         * gdbserver/linux-x86-64-low.c: Ditto.
11886
11887 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11888
11889         * gdbserver/server.c (main): Call target_signal_to_host_p
11890         and target_signal_to_host on signals received from the remote.
11891         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11892         target_signal_from_host on signals sent to the remote.
11893         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11894         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11895
11896 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11897
11898         * signals/signals.c: Include "server.h" in gdbserver build.
11899         (target_signal_from_name): Don't use STREQ.
11900         (_initialize_signals): Likewise.  Don't include function in
11901         gdbserver build.
11902
11903 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11904
11905         * signals.c: Moved to...
11906         * signals/signals.c: Here.
11907         * Makefile (signals.o): Update.
11908
11909 2002-03-26  Jeff Law (law@redhat.com)
11910
11911         * somread.c (som_symtab_read): Remove some commented out code and
11912         updated related comments.  Do not set the minimal symbol table to
11913         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11914         in a dynamic executable.
11915         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11916         where we are unable to find the minimal symbol for the given
11917         PC value.
11918
11919 2002-03-25  Jeff Law (law@redhat.com)
11920
11921         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11922
11923 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11924
11925         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11926
11927 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11928
11929         * command.h: Update copyright.
11930         (struct cmd_list_element): Replace definition with opaque
11931         declaration.
11932         (enum cmd_types): Document that it will eventually be moved to
11933         cli/cli-decode.h
11934         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11935         (MALLOCED_REPLACEMENT): Delete macro.
11936         * Makefile.in (cli_decode_h): Add $(command_h).
11937         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11938         * top.c: Include "cli/cli-decode.h".
11939         * completer.c: Include "cli/cli-decode.h".
11940         * maint.c: Include "cli/cli-decode.h".
11941         * cli/cli-decode.h: Include "command.h".
11942         (enum command_class): Delete.
11943         (enum cmd_types): Comment out.
11944         (enum cmd_auto_boolean): Delete.
11945         (enum var_types): Delete.
11946
11947 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11948
11949         * cli/cli-decode.c: Include "gdb_assert.h".
11950         (add_set_or_show_cmd): New static function.
11951         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11952         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11953         all fields, such as func, from the set command.
11954
11955 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11956
11957         * MAINTAINERS (sh-elf): Change warning flag to -w.
11958
11959 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11960
11961         * defs.h (error): Add printf format attribute.
11962         * thread-db.c (thread_from_lwp): Fix error format string.
11963         * stack.c (parse_frame_specification): Ditto.
11964         * cli/cli-decode.c (undef_cmd_error): Ditto.
11965         * scm-lang.c (scm_lookup_name): Ditto.
11966         * tracepoint.c (trace_error): Ditto.
11967         * remote-utils.c (usage): Ditto.
11968         * remote.c (compare_sections_command): Ditto.
11969         Fix PR gdb/328.
11970
11971 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11972
11973         * gdbtypes.c (append_composite_type_field): New function.
11974         (init_composite_type): New function.
11975         * gdbtypes.h (append_composite_type_field): Declare.
11976         (init_composite_type): Ditto.
11977
11978 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11979
11980         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11981         function.
11982         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11983         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11984         structure returning convention for SYSV ABI case, but not
11985         for GNU/Linux, FreeBSD, or NetBSD.
11986
11987 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11988
11989         * symtab.h (lookup_block_symbol): Add mangled_name argument
11990         to prototype.
11991
11992         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11993         with new mangled_name argument.
11994         * linespec.c (decode_line_1): Likewise.
11995         * valops (value_of_this): Likewise.
11996         * symtab.c (lookup_transparent_type): Likewise.
11997         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11998         (lookup_symbol): If we are given a mangled name, pass it down
11999         to lookup_symbol_aux.
12000         (lookup_block_symbol): If we are given a mangled name to check
12001         against, only return symbols which match it.
12002
12003 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12004
12005         * win32-nat.c (child_create_inferior): Check for proper shell to use
12006         here, in case the user changes it on the fly.
12007         (_initialize_inftarg): Remove shell path considerations.
12008
12009 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12010
12011         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12012         for gdbarch_max_register_raw_size and max_register_virtual_size.
12013         Adjust copyright year.
12014
12015 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12016
12017          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12018          in a function to cover the entire beginning of the function
12019          as well if it does not already.
12020
12021 2002-03-21  Tom Rix  <trix@redhat.com>
12022
12023         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12024         (rs6000_ptrace64): Renamed from ptrace64.
12025
12026 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12027
12028         * gdbserver/remote-utils.c (remote_open): Don't call
12029         getprotobyname, we're all using TCP here so just use
12030         IPPROTO_TCP.
12031         * gdbserver/gdbreplay.c (remote_open): Ditto.
12032
12033 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12034
12035         * regcache.c (_initialize_regcache): No need to call
12036         build_regcache() at this time; it gets called whenever
12037         the gdbarch changes.
12038
12039 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12040
12041         * sparc-nat.c:  Include sys/param.h where possible.
12042
12043 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12044
12045         Fix PR gdb/422.
12046         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12047         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12048         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12049         complex types.
12050         * stabsread.c (rs6000_builtin_type): Likewise.
12051         (read_sun_floating_type): Likewise.
12052
12053 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12054
12055         * stabsread.c (read_member_functions): Remove skip code for duplicate
12056         constructor/destructor methods.  Use standard parsing for these
12057         methods and just do not chain them to the list of methods after
12058         parsing.
12059
12060 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12061
12062         * coffread.c: Remove redundant static declarations.  Replace
12063         occurrences of `PTR' with `void *'.
12064         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12065         * top.h (quit_cover): Likewise.
12066         * defs.h (catch_errors): Likewise.
12067
12068 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12069
12070         * defs.h (XMALLOC): Define.
12071         * gdb-events.sh (XMALLOC): Delete macro.
12072         * gdb-events.c, gdb-events.h: Regenerate.
12073         * gdbarch.sh (XMALLOC): Delete macro.
12074         * gdbarch.c: Regenerate.
12075         * serial.c (XMALLOC): Delete macro.
12076         * ui-file.c (XMALLOC): Ditto.
12077         * ser-unix.h (XMALLOC): Ditto.
12078         * sh-tdep.c (XMALLOC): Ditto.
12079         * ui-out.c (XMALLOC): Ditto.
12080         * utils.c (XMALLOC): Ditto.
12081         * i386-tdep.c (XMALLOC): Ditto.
12082         * gdb-events.c (XMALLOC): Ditto.
12083         * d10v-tdep.c (XMALLOC): Ditto.
12084         * cli-out.c (XMALLOC): Ditto.
12085
12086         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12087         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12088         * ui-file.c, ui-out.c: Ditto.
12089
12090 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12091
12092         * command.h (struct cmd_list_element): Add field context.
12093         (set_cmd_context, get_cmd_context): Declare.
12094         * cli/cli-decode.h: Ditto.
12095         * cli/cli-decode.c (get_cmd_context): New function.
12096         (set_cmd_context): New function.
12097         (add_cmd): Initialize context.
12098         Part of fixing PR gdb/145 and PR gdb/146.
12099
12100 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12101
12102         * cli/cli-decode.c (cmd_type): New function.
12103         * command.h (cmd_type): Declare.
12104         * infrun.c (set_schedlock_func): Call function cmd_type.
12105         * kod.c (kod_set_os): Call cmd_type.
12106         * cris-tdep.c (cris_version_update): Use function cmd_type.
12107         (cris_mode_update, cris_abi_update): Ditto.
12108
12109         * command.h: (execute_cmd_post_hook): Declare.
12110         (execute_cmd_pre_hook): Declare.
12111         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12112         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12113         functions. Execute pre/post hook while ensuring that afterwords
12114         hook_in is cleared.
12115         * top.c (execute_command): Use execute_cmd_post_hook, and
12116         execute_cmd_pre_hook to execute pre/post commands.
12117         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12118         hook_stop_stub.
12119         (hook_stop_stub): Call execute_cmd_pre_hook.
12120
12121 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12122
12123         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12124         set'' and this leads to a core dump.  Move xstrdup of
12125         operating_system to after check that it is not NULL.
12126
12127 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12128
12129         * kod.c (kod_set_os): Remove unnecessary check that
12130         ``command->type'' is set_cmd.
12131
12132         * valprint.c (set_input_radix): Use input_radix.
12133         (set_output_radix): Use output_radix.
12134         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12135         isn't reverted.
12136
12137 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12138
12139         * value.h (struct value): Delete field ``substring_addr''.  Change
12140         aligner fields to force_doublest_align, force_longest_align,
12141         force_core_addr_align and force_pointer_aligh.
12142
12143         * value.h (struct value): Fix typo in above change.
12144
12145 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12146
12147         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12148         to fix internal_error from ``maintenance print architecture''.
12149
12150 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12151
12152         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12153         for gcc versions after gcc-2.8.1.
12154
12155 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12156
12157         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12158         for method resolution.  Restore adjustment of ``this'' pointer after
12159         calling value_struct_elt, which was accidentally removed during the
12160         HP merge.
12161
12162 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12163
12164         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12165         value_of_register.
12166         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12167         get_saved_register.
12168         * value.h (value_of_register): Update.
12169
12170 2002-03-14  Richard Henderson  <rth@redhat.com>
12171
12172         * configure.in: Detect declaration for canonicalize_file_name.
12173         * utils.c (canonicalize_file_name): Declare, if needed.
12174         (gdb_realpath): Prefer realpath if available and usable.
12175         * config.in, configure: Rebuild.
12176
12177 2002-03-14  Richard Henderson  <rth@redhat.com>
12178
12179         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12180         a constant array bound.
12181
12182         * MAINTAINERS: Add myself to write-after-approval.
12183
12184 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12185
12186         * symfile.c (syms_from_objfile): Return immediately if no syms.
12187         (symbol_file_add): Return immediately if no syms.
12188         (find_sym_fns): Return immediately if no syms.
12189
12190 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12191
12192         * gdbserver/remote-util.c (remote_open): Print remote-side's
12193         IP address when remote debugging over the network.
12194
12195 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12196
12197         * config/sparc/fbsd.mh: Fix copyright.
12198         * config/sparc/fbsd.mt: Likewise.
12199
12200 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12201
12202         * MAINTAINERS: Fix typo in name of gdb warnings option.
12203         (x86-64): Fix formating so that this can be parsed by awk.
12204
12205 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12206
12207         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12208         * defs.h: Include "gdb/signals.h".
12209         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12210
12211 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12212
12213         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12214         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12215         from x86-64-tdep.h
12216
12217 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12218             Don Howard <dhoward@redhat.com>
12219
12220         * mips-tdep.c (ST0_FR): Define.
12221         (mips2_fp_compat): New function, temporarily disabled.
12222         (mips_read_fp_register_single): New function.
12223         (mips_read_fp_register_double): New function.
12224         (mips_print_register): Use them.
12225         (do_fp_register_row): Likewise.
12226
12227 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12228
12229         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12230         approval''.
12231
12232 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12233
12234         * stabsread.c (read_member_functions): Fix is_stub test for
12235         static member functions, improve comment.
12236
12237 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12238
12239         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12240         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12241         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12242         commands that set boolean values.
12243         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12244         (arm_rdi_resume): Always initialize PC.
12245         (arm_rdi_open): Don't use rslt as a boolean.
12246         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12247         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12248         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12249         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12250
12251 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12252
12253         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12254         * configure: Rebuilt.
12255
12256 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12257
12258         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12259         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12260
12261 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12262
12263         * cli/cli-decode.c (set_cmd_completer): New function.
12264         * command.h (set_cmd_completer): Declare.
12265         * cli/cli-decode.h (set_cmd_completer): Ditto.
12266
12267         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12268         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12269         * win32-nat.c (_initialize_inftarg): Ditto.
12270         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12271         * proc-api.c (_initialize_proc_api): Ditto.
12272         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12273         * source.c (_initialize_source): Ditto.
12274         * exec.c (_initialize_exec): Ditto.
12275         * solib.c (_initialize_solib): Ditto.
12276         * top.c (init_main): Ditto.
12277         * tracepoint.c (_initialize_tracepoint): Ditto.
12278         * symfile.c (_initialize_symfile): Ditto.
12279         * printcmd.c (_initialize_printcmd): Ditto.
12280         * infcmd.c (_initialize_infcmd): Ditto.
12281         * corefile.c (_initialize_core): Ditto.
12282
12283 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12284
12285         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12286
12287 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12288
12289         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12290
12291 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12292
12293         * NEWS: Update headings, 5.2 has branched.
12294
12295 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12296
12297         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12298         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12299         (register_addr, REGISTER_RAW_SIZE): Likewise.
12300         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12301         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12302
12303 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12304
12305         * MAINTAINERS (x86-64): Add myself.
12306         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12307         changed value_ptr -> struct value *
12308
12309 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12310
12311         * configure.host (sparc64-*-freebsd): Add.
12312         * configure.tgt: Likewise.
12313         * config/sparc/fbsd.mh: New file.
12314         * config/sparc/fbsd.mt: Likewise.
12315         * config/sparc/nm-fbsd.h: Likewise.
12316         * config/sparc/tm-fbsd.h: Likewise.
12317
12318 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12319
12320         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12321         regformats/reg-s390x.dat.
12322
12323 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12324
12325         * utils.c: Add FIXME explaining true/false problem.
12326
12327 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12328
12329         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12330
12331 2002-02-28  Michael Chastain  <mec@shout.net>
12332
12333         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12334
12335 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12336
12337         * gdbserver/linux-s390-low.c: New file.
12338         * regformats/reg-s390.dat: New file.
12339         * regformats/reg-s390x.dat: New file.
12340         * gdbserver/configure.srv: Add S/390.
12341         * gdbserver/Makefile.in: Add S/390.
12342         * configure.tgt: Enable gdbserver for S/390.
12343
12344 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12345
12346         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12347         first line of the doc string for "info dos", except at the end of
12348         the sentence, since the short help stops at the first period.
12349
12350 2002-02-28  Jason Merrill  <jason@redhat.com>
12351
12352         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12353
12354 2002-02-27  Fred Fish  <fnf@redhat.com>
12355
12356         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12357         comment (dumy -> dummy).
12358
12359 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12360
12361         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12362
12363 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12364
12365       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12366
12367 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12368
12369         * gdbserver/acconfig.h: New file.
12370         * gdbserver/i387-fp.c: New file.
12371         * gdbserver/i387-fp.h: New file.
12372         * gdbserver/linux-x86-64.c: New file.
12373         * regformats/reg-x86-64.dat: New file.
12374         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12375         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12376         * gdbserver/configure.in: Add support for regsets.
12377         * gdbserver/config.in: Regenerate.
12378         * gdbserver/configure: Regenerate.
12379         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12380         * gdbserver/linux-low.h: New file.
12381         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12382         for regsets.
12383         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12384         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12385         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12386         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12387         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12388         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12389         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12390         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12391         * gdbserver/regcache.c (supply_register): New function.
12392         (supply_register_by_name): New function.
12393         (collect_register): New function.
12394         (collect_register_by_name): New function.
12395
12396 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12397
12398         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12399         (config.status): Add configure.srv dependency.
12400         (server_h): Add config.h dependency.
12401
12402 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12403
12404         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12405         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12406         * gdbserver/configure.srv: Change i386-*-linux* to use
12407         reg-i386-linux.o.
12408
12409 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12410
12411         * x86-64-tdep.c: Re-indent.  Update copyright date.
12412
12413 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12414
12415         From Michal Ludvig <mludvig@suse.cz>:
12416         * x86-64-tdep.c (value.h): Delete.
12417         (gdb_assert.h): Include.
12418         (x86_64_register_convert_to_virtual,
12419         x86_64_register_convert_to_raw ): Add check which lets only
12420         floating-point values to be converted.
12421         (value_push): Delete.
12422         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12423         (i386_gdbarch_init): Number of register_bytes fixed.
12424
12425 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12426
12427         * MAINTAINERS: Add x86-64 target.
12428
12429 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12430
12431         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12432         * osfsolib.c (solib_map_sections): Ditto.
12433         * irix5-nat.c (solib_map_sections): Ditto.
12434         * corelow.c (gdb_check_format): Ditto.
12435         * symfile.c (symfile_bfd_open): Ditto.
12436         * solib.c (solib_map_sections): Ditto.
12437         Fix PR gdb/354.
12438
12439 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12440
12441         * remote.c (_initialize_remote): By default, disable ``e'' and
12442         ``E'' step out-of-range packets.
12443
12444 2002-02-26  Andreas Schwab  <schwab@suse.de>
12445
12446         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12447         m68k_linux_frame_saved_pc.
12448         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12449         in_sigtramp.
12450         (SIGCONTEXT_PC_OFFSET): Remove.
12451         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12452         m68k_linux_sigtramp_saved_pc): New functions.
12453         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12454         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12455         (UCONTEXT_PC_OFFSET): Define.
12456         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12457         non-RT and RT signal trampolines.
12458
12459 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12460
12461         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12462         (TARGET_NBPG, STACK_END_ADDR): Delete
12463         (VARIABLES_INSIDE_BLOCK): Delete.
12464
12465 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12466
12467         * utils.c (perror_with_name): Make string parameter constant.
12468         (print_sys_errmsg): Ditto.
12469         (query): Ditto.
12470         * defs.h (perror_with_name): Update.
12471         (print_sys_errmsg): Update.
12472         (query): Update.
12473
12474 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12475
12476         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12477         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12478
12479 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12480
12481         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12482         if it already matches the current architecture from the exec file.
12483         Include arch-utils.h for gdbarch_info_init prototype.
12484         * Makefile.in (rs6000-nat.o): Update dependencies.
12485
12486 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12487
12488         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12489          list of exported variables.
12490
12491 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12492
12493         * gdbserver/configure.srv: New file.
12494         * gdbserver/configure.in: Use configure.srv instead
12495         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12496         from it.
12497         * gdbserver/configure: Regenerated.
12498         * gdbserver/terminal.h: New file.
12499         * gdbserver/Makefile.in: Update for configure changes.  Remove
12500         more unneeded include paths.
12501
12502 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12503
12504         From wiz at danbala:
12505         * config/sparc/tm-sp64.h: Fix grammar and typos.
12506         Fix PR gdb/287.
12507
12508 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12509
12510         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12511         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12512         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12513         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12514         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12515         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12516         * s390-tdep.c: Ditto.
12517         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12518         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12519         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12520         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12521         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12522         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12523         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12524         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12525         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12526         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12527         Fix PR gdb/378.
12528
12529 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12530
12531         * lin-thread.c: Delete file.
12532         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12533         to gdb_proc_service.h.
12534         * configure: Re-generate.
12535
12536         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12537         * serial.c (serial_open): Delete check for "ocd".
12538         Fix PR gdb/349.
12539
12540         * Makefile.in (linux-thread.o): Delete target.
12541         * linux-thread.c: Delete file.
12542
12543         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12544         renamed SH files to be consistent.
12545
12546         * symtab.c (sort_search_symbols): Use xfree.
12547
12548 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12549
12550         * arm-linux-tdep.c (arm_linux_init_abi): Register
12551         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12552         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12553         definition with undef, since we don't want the sysvr4 definition.
12554         (SKIP_TRAMPOLINE_CODE): Likewise.
12555
12556 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12557
12558         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12559
12560         * configure.in: (AC_CHECK_FUNCS) Added test for
12561         canonicalize_file_name Regenerated.
12562         * config.in, configure: Regenerated.
12563         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12564         defined use canonicalize_file_name.
12565
12566 2002-02-23  Michael Chastain  <mec@shout.net>
12567
12568         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12569
12570 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12571
12572         * README: Remove references to cygnus.com.
12573         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12574         dot com'' form.  Remove references to cygnus.com and sourceware.
12575
12576 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12577
12578         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12579         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12580         1003.1-2001 no longer allows "head -1".
12581         * gdb/Makefile.in (version.c): Likewise.
12582         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12583         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12584         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12585
12586 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12587
12588         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12589         * command.h (cmd_cfunc_eq): Declare.
12590         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12591
12592         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12593         ``struct cmd_list_element *''.
12594         * cli/cli-cmds.c (is_complete_command): Update.  Use
12595         cmd_cfunc_eq.
12596         * top.c (execute_command): Pass the command to
12597         is_complete_command.
12598         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12599
12600 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12601
12602         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12603         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12604         architecture defines.
12605         * s390-tdep.c (s390_gdbarch_init): Likewise.
12606
12607 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12608
12609         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12610         (arm_linux_push_arguments): Likewise.
12611         (arm_linux_init_abi): Register them.  Also register linux-specific
12612         call_dummy_words.
12613         (find_minsym_and_objfile): Use strcmp, not STREQ.
12614         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12615         (arm_linux_call_dummy_words): Delete declaration.
12616         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12617         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12618         declarations.
12619         (LOWEST_PC): Delete.
12620
12621 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12622
12623         * maint.c (print_section_info): Do not prepend `0x' to filepos
12624         output, it will be handled by local_hex_string_custom.
12625
12626 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12627
12628         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12629         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12630         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12631
12632 2002-02-22  Jim Blandy  <jimb@redhat.com>
12633
12634         Indicate that the bcache functions don't change the strings
12635         they're passed.
12636         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12637         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12638
12639 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12640
12641         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12642
12643 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12644
12645         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12646         find the complete path to a loaded DLL.
12647
12648 2002-02-21  Fred Fish  <fnf@redhat.com>
12649
12650         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12651         that marks the end of the range of a function, enter a line number
12652         entry that has a line number of zero and a PC offset that matches
12653         the end of the function.  This starts a range of PC's for which no
12654         line number information is known.
12655         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12656         PC's for which no line number info is found (line number is zero)
12657         then we didn't find any valid line information.
12658         * symtab.h: Document use of zero line number entry.
12659
12660 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12661
12662         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12663         (have_ptrace_getvrregs): Define for run time checks.
12664         (gdb_vrregset_t): New type for Altivec register handling.
12665         (fetch_register, store_register): Fetch/store altivec register
12666         when needed.
12667         (fetch_altivec_register, store_altivec_register): New functions.
12668         (supply_vrregset, fill_vrregset): New functions.
12669         (fetch_altivec_registers, store_altivec_registers): New functions.
12670         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12671         registers as well.
12672
12673 2002-02-21  Jiri Smid  <smid@suse.cz>
12674
12675         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12676
12677 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12678
12679         * Makefile.in (armnbsd-nat.o): Update dependencies.
12680         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12681         supply the integer register set.
12682         (supply_fparegset): New function.  Similar for FPA registers.
12683         (fetch_regs, fetch_fp_regs): Use them.
12684         (fetch_core_registers): Likewise.
12685         (fetch_elfcore_registers): New function.
12686         (arm_netbsd_elfcore_fns): New core-file type specification.
12687         (_initialize_arm_netbsd_nat): Register it.
12688
12689 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12690
12691         * armnbsd-nat.c: Include gdbcore.h.
12692         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12693         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12694         'void' to declaration, to shut up ARI.
12695         (fetch_core_registers): Make static.  Rewrite using supply_register.
12696         (arm_netbsd_core_fns): New core-file type specification.
12697         (_initialize_arm_netbsd_nat): New function.
12698
12699 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12700
12701         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12702         value.
12703
12704 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12705
12706         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12707         fails.
12708
12709 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12710
12711         * jv-exp.y (parse_number): Change type of implicit longs
12712         to builtin_type_uint64.
12713
12714 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12715
12716         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12717         to be an integer instead of a `union wait'.
12718
12719 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12720
12721         * mips-linux-nat.c: Call the operating system GNU/Linux.
12722         * mips-linux-tdep.c: Likewise.
12723         * mips-tdep.c: Likewise.
12724
12725 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12726
12727         Fix PR gdb/265.
12728         * jv-exp.y (parse_number): Handle 64-bit integers.
12729
12730 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12731
12732         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12733         AC_STDC_HEADERS to AC_HEADER_STDC.
12734         * gdbserver/configure: Regenerated.
12735
12736 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12737
12738         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12739         is defined.
12740         * sparc-tdep.c (get_longjmp_target): Likewise.
12741
12742 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12743
12744         * News: Add news about ARM and Multi-arch.  Mention the new target
12745         arm*-*-netbsd*.
12746
12747 2002-02-19  Jim Blandy  <jimb@redhat.com>
12748
12749         * stabsread.c (error_type_complaint): Improve error message.
12750
12751 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12752
12753         * gdbserver/README: Update documentation.
12754         * gdbserver/configure.in: Update configury to match documentation.
12755         * gdbserver/Makefile.in: Likewise.
12756         * gdbserver/configure: Regenerated.
12757         * gdbserver/aclocal.m4: New file, generated by aclocal.
12758         * gdbserver/config.in: New file, generated by autoheader.
12759
12760 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12761
12762         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12763         armnbsd-nat.c.
12764
12765 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12766
12767         * arm-tdep.h (enum arm_float_model): New enum.
12768         (struct gdbarch_tdep): Add fp_model.
12769         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12770         up floating-point conversions until we know the floating-point model
12771         in use by the inferior.  Don't complain about being unable to
12772         determine the ABI of the inferior when we don't have one.
12773         (arm_extract_return_value): Support different floating-point models.
12774         (arm_store_return_value): Likewise.
12775         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12776         ARM_FLOAT_SOFT.
12777         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12778
12779 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12780
12781         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12782         of ``current_gdbarch''.
12783
12784 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12785
12786         * armnbsd-nat.c : ANSIfy all function declarations.
12787         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12788         (fetch_inferior_registers): Re-implement in terms of above.
12789         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12790         (store_inferior_registers): Re-implement in terms of above.
12791
12792 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12793
12794         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12795         kernel.
12796         * arm-linux-tdep.c: Likewise.
12797         * config/arm/tm-linux.h: Likewise.
12798
12799 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12800
12801         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12802         * config/arm/nbsd.mt (TM_FILE): Delete.
12803         * config/arm/tm-nbsd.h: Delete.
12804
12805 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12806
12807         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12808         Initialize CALL_DUMMY_LENGTH.
12809
12810 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12811
12812         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12813         function.
12814         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12815         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12816         defines one thing and that is incorrect for this port.
12817         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12818
12819 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12820
12821         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12822
12823 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12824
12825         * win32-nat.c (display_selector): New function. Displays information
12826         about the information returned by GetThreadSelectorEntry API function.
12827         (display_selectors): New function. Displays the infomation of
12828         the selector given as argument, or of CS, DS ans FS selectors
12829         if no argument is given.
12830         ( _initialize_inftarg): Add "w32" as info prefix command.
12831         Add "info w32 selector" as command calling display_selectors.
12832
12833 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12834
12835         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12836         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12837         if not defined.
12838
12839 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12840
12841         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12842
12843 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12844
12845         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12846         (arm_fix_call_dummy): Call it.
12847         (arm_call_dummy_breakpoint_offset): Delete.
12848         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12849         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12850
12851 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12852
12853         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12854         Default to func_frame_chain_valid.
12855         * gdbarch.h, gdbarch.c: Re-generate.
12856         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12857
12858 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12859
12860         * ppc-linux-nat.c: Update copyright.
12861         (fetch_register, store_register): Add tid parameter, don't compute
12862         tid here.
12863         (fetch_ppc_registers, store_ppc_registers): Add tid
12864         parameter. Pass it along to callees.
12865         (fetch_inferior_registers, store_inferior_registers): Compute tid
12866         here, and pass it to calleed functions.
12867         (fill_gregset, supply_fpregset): Clean up formatting.
12868
12869 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12870
12871         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12872         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12873
12874 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12875
12876         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12877         * gdbarch.c gdbarch.h: Regenerate.
12878         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12879         function.
12880         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12881         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12882         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12883
12884         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12885         * arm-tdep.c (arm_get_longjmp_target): New function.
12886         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12887         this to a positive value register arm_get_longjmp_target as the
12888         longjmp handler.
12889         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12890         (arm_linux_init_abi): Set up longjmp description in tdep.
12891         * armnbsd-nat.c (get_longjmp_target): Delete.
12892         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12893         description in tdep.
12894         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12895         (get_longjmp_target): Delete declaration.
12896         (GET_LONGJMP_TARGET): Delete.
12897         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12898         (GET_LONGJMP_TARGET): Delete.
12899
12900 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12901
12902         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12903         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12904         of ``current_gdbarch''.
12905
12906 2002-02-17  Tom Tromey  <tromey@redhat.com>
12907
12908         * cli/cli-cmds.c (compare_strings): New function.
12909         (complete_command): Only print each unique item once.
12910         * completer.h (complete_line): Declare.
12911         * completer.c (complete_line): New function.
12912         (line_completion_function): Use it.
12913
12914 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12915
12916         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12917         * gdbarch.h, gdbarch.c: Re-generate.
12918
12919 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12920
12921         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12922
12923 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12924
12925         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12926         * valops.c (value_arg_coerce): Don't take the address of a reference
12927         to convert an argument to a reference.
12928
12929 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12930
12931         * win32-nat.c (get_image_name): New function.
12932         (handle_load_dll): Use get_image_name function.
12933         (get_child_debug_event): Avoid registering debug events until possibly
12934         execed process is started.
12935         (child_create_inferior): Allow invocation via shell so that command
12936         line redirection, etc.  works ok.
12937         (_initialize_inftarg): Add new command: "set shell" to control whether
12938         a shell is used to start a process.
12939
12940 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12941
12942         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12943         instead of find_register_by_number.
12944         (cannot_store_register): Likewise.
12945
12946 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12947
12948         * dwarf2read.c: Replace fprintf (stderr, ...) by
12949         fprintf_unfiltered (gdb_stderr, ...).
12950
12951 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12952
12953         * gdbserver/gdbserver.1: Document --attach.
12954
12955 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12956
12957         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12958         descriptions.
12959         * arm-tdep.c (arm_default_arm_le_breakpoint)
12960         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12961         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12962         traditional breakpoint defines.
12963         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12964         (arm_gdbarch_init): Initialize new breakpoint variables.
12965         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12966         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12967         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12968         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12969         code out to ...
12970         (arm_netbsd_init_abi_common): ... here; new function.
12971         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12972         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12973         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12974         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12975
12976 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12977
12978         * arm-tdep.h (enum arm_abi): New enum.
12979         (struct gdbarch_tdep): New structure.
12980         (LOWEST_PC): Provide a default.
12981         (arm_gdbarch_register_os_abi): Declare new function.
12982         * arm-tdep.c (arm_abi_names): New array.
12983         (process_note_abi_tag_sections): New function.
12984         (get_elfosabi): New function.
12985         (arm_gdbarch_register_os_abi): New function.
12986         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12987         support for that ABI has been built in, then call the appropriate
12988         configuration routine.  Use gdbarch_num_regs() to get the number
12989         of registers.
12990         (arm_dump_tdep): New function.
12991         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12992         place-holder functions.
12993         (_initialize_arm_tdep): Register them.
12994         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12995
12996         * armnbsd-tdep.c: New file.
12997         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12998         * config/arm/nbsd.mt (TDEPFILES): Add it.
12999         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13000
13001         * armnbsd-nat.c: Include regcache.h.
13002         * Makefile.in (armnbsd-nat.o): Update dependency list.
13003
13004         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13005
13006 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13007
13008         * gdbserver/Makefile.in: Fix typos in target rules.
13009
13010 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13011
13012         Fix part of PR gdb/267.
13013         * linespec.c (find_methods): Handle constructors specially for now.
13014
13015 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13016
13017         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13018         handling.
13019         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13020         standard_coerce_float_to_double().
13021
13022 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13023
13024         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13025         GDBINIT_FILENAME.
13026
13027 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13028
13029         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13030         find_variant_by_name, because it confuses the multiarch
13031         framework. Return NULL if there isn't an architecture with the
13032         user supplied name, instead of forcing a different one without
13033         recording the change with the multiarch machinery.
13034         (find_variant_by_name): Delete.
13035
13036 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13037
13038         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13039         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13040
13041 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13042
13043         * stack.c (print_frame_info_base): When calling
13044         print_frame_info_listing_hook, set current_source_symtab.
13045
13046 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13047
13048         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13049         and remove unused $(INCLUDE_DIR).
13050         Add regcache.c to OBS.
13051         Add generated register protocol files to clean target.
13052         Update dependencies for new objects, obsolete old target code.
13053
13054         * gdbserver/linux-low.c: Remove all platform-specific code to
13055         new files.  Remove various dead code.  Update to use regcache
13056         functionality.
13057         * gdbserver/remote-utils.c (fromhex): Add return statement
13058         to quiet warning.
13059         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13060         constant.
13061         (input_interrupt): Add integer parameter to match prototype
13062         of a signal handler.
13063         (outreg): Use register_data ().
13064         (prepare_resume_reply): Use gdbserver_expedite_regs.
13065         * gdbserver/server.c (main): Dynamically allocate own_buf because
13066         PBUFSIZ is no longer constant.  Use registers_to_string () and
13067         registers_from_string ().
13068         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13069         for error (), fatal (), and warning ().  Update definition of
13070         PBUFSIZ to use regcache functionality.  Add include guard.
13071         * gdbserver/utils.c (fatal): Add missing ``const''.
13072         (warning): New function.
13073
13074         * regformats/regdat.sh: Include "regcache.h" in generated files.
13075         Provide init_registers () function.
13076         * regformats/regdef.h: Add prototype for set_register_cache ().
13077         Add include guard.
13078
13079         * gdbserver/linux-arm-low.c: New file.
13080         * gdbserver/linux-i386-low.c: New file.
13081         * gdbserver/linux-ia64-low.c: New file.
13082         * gdbserver/linux-m68k-low.c: New file.
13083         * gdbserver/linux-mips-low.c: New file.
13084         * gdbserver/linux-ppc-low.c: New file.
13085         * gdbserver/linux-sh-low.c: New file.
13086
13087         * gdbserver/regcache.c: New file.
13088         * gdbserver/regcache.h: New file.
13089
13090         * gdbserver/low-linux.c: Removed obsolete file.
13091
13092 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13093
13094         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13095         * config/i386/linux.mt: Likewise.
13096         * config/ia64/linux.mt: Likewise.
13097         * config/m68k/linux.mh: Likewise.
13098         * config/powerpc/linux.mh: Likewise.
13099         * config/mips/linux.mt: Likewise.
13100
13101         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13102
13103         * config/i386/i386lynx.mh: Mark gdbserver variables
13104         as (currently) obsolete for this target.
13105         * config/i386/nbsd.mt: Likewise.
13106         * config/i386/nbsdelf.mt: Likewise.
13107         * config/m32r/m32r.mt: Likewise.
13108         * config/m68k/m68klynx.mh: Likewise.
13109         * config/m68k/nbsd.mt: Likewise.
13110         * config/m68k/sun3os4.mh: Likewise.
13111         * config/mips/vr5000.mt: Likewise.
13112         * config/ns32k/nbsd.mt: Likewise.
13113         * config/pa/hppabsd.mh: Likewise.
13114         * config/pa/hppaosf.mh: Likewise.
13115         * config/powerpc/nbsd.mt: Likewise.
13116         * config/rs6000/rs6000lynx.mh: Likewise.
13117         * config/s390/s390.mt: Likewise.
13118         * config/s390/s390x.mt: Likewise.
13119         * config/sparc/sparclynx.mh: Likewise.
13120         * config/sparc/sun4os4.mh: Likewise.
13121         * config/i386/x86-64linux.mt: Likewise.
13122         * config/sparc/linux.mh: Likewise.
13123
13124 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13125
13126         * configure.tgt: Configure gdbserver only for known working
13127         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13128         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13129         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13130         * configure: Regenerated.
13131
13132 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13133
13134         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13135
13136         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13137         (default_gcore_mach): Just return 0, work around a problem in bfd.
13138         (default_gcore_target): OK to return NULL if exec_bfd is null.
13139         (make_mem_sec): Use a cast, avoid a warning.
13140
13141         * procfs.c (find_memory_regions_callback): Use a cast instead of
13142         calling host_pointer_to_address (which complains if
13143         sizeof (host pointer) != sizeof (target pointer)).
13144         (procfs_make_note_section): Avoid overflow in psargs string.
13145
13146         * procfs.c (procfs_make_note_section): Make the default
13147         implementation return an error.
13148
13149 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13150
13151         * procfs.c (procfs_make_note_section): Provide a default definition
13152         (for alpha-dec-osf4.0f). Fix typos.
13153
13154 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13155
13156         * linux-proc.c: Add include of regcache.h.
13157         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13158
13159 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13160
13161         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13162         * memattr.c (create_mem_region): Disallow useless empty region.
13163         Regions are half-open intervals, so allow [A..B) [B..C) as
13164         non-overlapping.
13165
13166 2002-02-13  Michael Chastain <mec@shout.net>
13167
13168         * defs.h: Kill CONST_PTR.
13169         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13170         * c-lang.c (c_builtin_types): Likewise.
13171         * ch-lang.c (ch_builtin_types): Likewise.
13172         * f-lang.c (f_builtin_types): Likewise.
13173         * language.c (unknown_builtin_types): Likewise.
13174         * m2-lang.c (m2_builtin_types): Likewise.
13175         * p-lang.c (pascal_builtin_types): Likewise.
13176         * scm-lang.c (c_builtin_types): Likewise.
13177
13178 2002-02-13  Keith Seitz  <keiths@redhat.com>
13179
13180         * arm-tdep.h (arm_get_next_pc): Add declaration.
13181
13182 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13183
13184         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13185         with other related struct-returning functions.
13186         (arm_extract_struct_value_address): New function.
13187         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13188         initialize float_format, double_format and long_double_format as
13189         appropriate to the endianness of the target.
13190         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13191         (arm_use_struct_convention): Delete declaration.
13192         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13193
13194 2002-02-13  Keith Seitz  <keiths@redhat.com>
13195
13196         * defs.h (core_addr_to_string_nz): New function.
13197
13198 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13199
13200         Apply missing bits of 2002-01-15 patch.
13201         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13202         (fill_fpregset): Use i387_fill_fsave.
13203
13204 2002-02-12  Keith Seitz  <keiths@redhat.com>
13205
13206         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13207         (core_addr_to_string_nz): New function.
13208
13209 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13210
13211         * arm-linux-nat.c: Really include arm-tdep.h.
13212         * config/arm/tm-linux.h (struct type, struct value): Declare.
13213
13214 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13215
13216         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13217         (gcore section): Ifdef for Solaris and Unixware only.
13218         (procfs_do_thread_registers): Unixware needs one lwpstatus
13219         per thread (not one prstatus or pstatus).
13220         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13221         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13222         once before iterating over threads.
13223
13224 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13225
13226         * arm-tdep.h: New file.
13227         * arm-tdep.c: Include arm-tdep.h.
13228         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13229         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13230         (arm_print_float_info, arm_register_type, convert_to_extended)
13231         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13232         (arm_extract_return_value, arm_register_name): Make static.
13233         (arm_software_single_step): Similarly.  Fix types in declaration.
13234         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13235         (arm_store_return_value, arm_store_struct_return): New functions.
13236         (arm_gdbarch_init): Register the above functions.  Also register
13237         call_dummy_start_offset, sizeof_call_dummy_words,
13238         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13239         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13240         max_register_virtual_size, register_size.  Set up
13241         prologue_cache.saved_regs here, rather than ...
13242         (_initialize_arm_tdep): ... here.
13243         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13244         declarations.
13245         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13246         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13247         (arm_print_float_info, arm_register_type, convert_to_extended)
13248         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13249         (arm_extract_return_value, arm_register_name): Delete declarations.
13250         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13251         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13252         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13253         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13254         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13255         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13256         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13257         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13258         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13259         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13260         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13261         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13262         interface.
13263         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13264         * remote-rdi.c remote-rdp.c: Likewise.
13265         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13266         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13267         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13268         definition.
13269
13270         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13271         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13272         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13273         from non-ARM_ prefixed definitions.
13274         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13275         all uses of above.
13276         * remote-rdi.c remote-rdp.c: Likewise.
13277         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13278
13279 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13280
13281         * arm-tdep.c (arm_frameless_function_invocation)
13282         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13283         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13284         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13285         (arm_pop_frame, arm_get_next_pc): Make static.
13286         (arm_gdbarch_init): Register above in gdbarch structure.
13287         (arm_read_fp): Renamed from arm_target_read_fp.
13288         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13289         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13290         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13291         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13292         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13293         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13294         (arm_pc_is_thumb_dummy): Delete declarations.
13295         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13296         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13297         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13298         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13299
13300 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13301
13302         * symtab.c (compare_search_syms): New function.
13303         (sort_search_symbols): New function.
13304         (search_symbols): Sort symbols after searching rather than
13305         before.
13306
13307 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13308
13309         * NEWS: Linux -> GNU/Linux.
13310
13311 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13312
13313         * gdbarch.sh: For for level one methods, disallow a definition
13314         when partially multi-arched.  Add comments explaining rationale.
13315         * gdbarch.h: Re-generate.
13316
13317 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13318
13319         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13320         multi-arch partial.
13321
13322 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13323
13324         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13325         field.  Use diff -u.
13326         * gdbarch.c: Re-generate.
13327
13328 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13329
13330         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13331         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13332         partial.
13333
13334 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13335
13336         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13337         multi-arch partial.
13338         (PUSH_ARGUMENTS): Switch to using predefault.
13339         * gdbarch.c: Regenerate.
13340
13341 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13342
13343         * valops.c (PUSH_ARGUMENTS): Delete definition.
13344         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13345         partial.  Default to default_push_arguments.
13346         * gdbarch.h, gdbarch.c: Regenerate.
13347
13348 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13349
13350         * defs.h (throw_exception): Rename return_to_top_level.  Update
13351         comments.
13352         * utils.c (error_stream, internal_verror, quit): Ditto.
13353         * top.c (throw_exception, catcher): Ditto.
13354         * sparclet-rom.c (sparclet_load): Ditto.
13355         * remote.c (interrupt_query, minitelnet): Ditto.
13356         * remote-sds.c (interrupt_query): Ditto.
13357         * remote-mips.c (mips_error, mips_kill): Ditto.
13358         * ocd.c (interrupt_query): Ditto.
13359         * monitor.c (monitor_interrupt_query): Ditto.
13360         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13361         * target.h: Update comment.
13362
13363         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13364
13365 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13366
13367         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13368         default_double_format.
13369         * gdbarch.h, gdbarch.c: Re-generate.
13370         * findvar.c (floatformat_unknown): Delete variable definition.
13371         * doublest.h (floatformat_unknown): Delete variable declaration.
13372
13373 2002-02-09  Jim Blandy  <jimb@redhat.com>
13374
13375         * stabsread.c (read_type): Add code to parse Sun's syntax for
13376         prototyped function types.
13377
13378 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13379
13380         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13381         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13382
13383 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13384
13385         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13386         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13387         now _initialize_xcoffsolib gets called again and overrides the
13388         commands from solib.c in a native configuration.
13389
13390 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13391
13392         * doublest.c (store_typed_floating): Don't try to return a value.
13393         Fixes PR gdb/290.
13394
13395 2002-02-08  Jim Blandy  <jimb@redhat.com>
13396
13397         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13398         is prototyped and has no arguments, print its argument list as
13399         `(void)'.
13400
13401 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13402
13403         * MAINTAINERS (write-after-approval): Add myself.
13404         (paper-trail): I've escaped!
13405
13406 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13407
13408         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13409         changes.
13410         (_initialize_check_for_gdb_ini): Ditto.
13411
13412 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13413
13414         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13415         xaprintf -> xasprintf.
13416
13417 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13418
13419         * win32-nat.c: Remove use of printf and sprintf functions.
13420
13421 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13422
13423         * arm-tdep.c (arm_frame_chain_valid): Make static.
13424         (arm_push_arguments): Likewise.
13425         (arm_gdbarch_init): New function.
13426         (_initialize_arm_tdep): Call it.
13427         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13428         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13429         (FRAME_CHAIN_VALID): Delete.
13430         (arm_frame_chain_valid): Delete declaration.
13431         (PUSH_ARGUMENTS): Delete.
13432         (arm_push_arguments): Delete declaration.
13433         (CALL_DUMMY_P): Delete.
13434
13435 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13436             Corinna Vinschen  <vinschen@redhat.com>
13437
13438         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13439         on builtin float types.
13440
13441 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13442
13443         * utils.c: Include <curses.h> before "bfd.h".
13444         * tui/tui-hooks.c: Likewise.
13445         * tui/tui.c: Likewise.
13446         * tui/tuiCommand.c: Likewise.
13447         * tui/tuiData.c: Likewise.
13448         * tui/tuiDataWin.c: Likewise.
13449         * tui/tuiDisassem.c: Likewise.
13450         * tui/tuiGeneralWin.c: Likewise.
13451         * tui/tuiIO.c: Likewise.
13452         * tui/tuiLayout.c: Likewise.
13453         * tui/tuiRegs.c: Likewise.
13454         * tui/tuiSource.c: Likewise.
13455         * tui/tuiSourceWin.c: Likewise.
13456         * tui/tuiStack.c: Likewise.
13457         * tui/tuiWin.c: Likewise.
13458
13459 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13460
13461         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13462         to include space for pseudoregs as well. Update loops accordingly.
13463         (sh_fp_frame_init_saved_regs): Ditto.
13464         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13465
13466 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13467
13468         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13469         Add Richard Earnshaw to Arm maintainers.
13470
13471 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13472
13473         * defs.h (warning_begin): Delete declaration.
13474
13475         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13476         Delete macro.
13477
13478 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13479
13480         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13481         Logic bug, remove misplaced else.
13482
13483 2002-02-07  Klee Dienes  <klee@apple.com>
13484
13485         * fork-inferior.c (fork_inferior): Add '!' to the list of
13486         characters that need to be quoted when building a string for the
13487         shell.  Quote '!' specifically with a backslash, since CSH chokes
13488         when trying to evaluate "str!str".
13489
13490 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13491
13492         * rdi-share/host.h: Only provide a typedef for bool if it is not
13493         defined.
13494
13495 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13496
13497         * breakpoint.h (enum bptype): Add new overlay event bp type.
13498         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13499
13500         * breakpoint.c (create_internal_breakpoint): New function.
13501         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13502         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13503         (create_thread_event_breakpoint): Ditto.
13504         (create_solib_event_breakpoint): Ditto.
13505         (create_overlay_event_breakpoint): New function.
13506         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13507         (update_breakpoints_after_exec): Delete and re-initialize
13508         overlay event breakpoints after an exec.  Add FIXME comment
13509         about longjmp breakpoint.
13510         (print_it_typical): Ignore overlay event breakpoints.
13511         (print_one_breakpoint): Ditto.
13512         (mention): Ditto.
13513         (bpstat_what): Do not stop for overlay event breakpoints.
13514         (delete_breakpoint): Don't delete overlay event breakpoints.
13515         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13516         (breakpoint_re_set): Re-create overlay event breakpoint.
13517
13518         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13519         (overlay_manual_command): Disable overlay breakpoints.
13520         (overlay_off_command): Disable overlay breakpoints.
13521
13522 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13523
13524         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13525         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13526         to here from config/tm-arm.h.
13527         (coff_sym_is_thumb): Make static.
13528         (arm_elf_make_msymbol_special): New function.
13529         (arm_coff_make_msymbol_special): New function.
13530         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13531         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13532         (coff_sym_is_thumb): Delete declaration.
13533         (arm_elf_make_msymbol_special): Declare.
13534         (arm_coff_make_msymbol_special): Declare.
13535         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13536         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13537
13538 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13539
13540         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13541
13542 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13543
13544         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13545         * gdbarch.c gdbarch.h: Regenerate.
13546         * arch-utils.c (default_print_float_info): New function.
13547         * arch-utils.h (default_print_float_info): Prototype it.
13548         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13549         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13550         (PRINT_FLOAT_INFO): Document it.
13551
13552         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13553         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13554         (PRINT_FLOAT_INFO): Define.
13555
13556 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13557
13558         * win32-nat.c (_initialize_check_for_gdb_ini):
13559         Add typecast to sprintf argument to suppress a warning.
13560
13561 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13562
13563         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13564         to allow easier handling of pass state.
13565         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13566         that gives exception name and address.
13567         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13568         and set last_sig value to ourstatus->value.sig. Some missing
13569         exceptions added.
13570         (child_continue): Correctly report continue_status.
13571         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13572         TARGET_SIGNAL_0 (new default value).
13573         (child_resume): consider sig argument passed to decide if
13574         the exception should be passed to debuggee or not.
13575
13576 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13577
13578         * regcache.c (fetch_register): Call target_fetch_register
13579         only if we don't call FETCH_PSEUDO_REGISTER.
13580         (store_register): Call target_store_register only if we
13581         don't call STORE_PSEUDO_REGISTER.
13582
13583 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13584
13585         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13586         ELF_MAKE_MSYMBOL_SPECIAL.
13587         * gdbarch.c, gdbarch.h: Regenerate.
13588         * arch-utils.c (default_make_msymbol_special): New function.
13589         * arch-utils.h (default_make_msymbol_special): Export.
13590         * elfread.c (elf_symtab_read): Compile use of
13591         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13592         multiarched.
13593         * coffread.c (coff_symtab_read): Ditto, for
13594         COFF_MAKE_MSYMBOL_SPECIAL.
13595
13596 2002-02-05  Jim Blandy  <jimb@redhat.com>
13597
13598         * solib-svr4.c (svr4_truncate_ptr): New function.
13599         (svr4_relocate_section_addresses): Do the address arithmetic with
13600         the appropriate truncation for target addresses, even when
13601         CORE_ADDR is larger than a target address.
13602
13603 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13604
13605         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13606         to (int *).
13607
13608 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13609
13610         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13611         code.
13612
13613 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13614
13615         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13616
13617 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13618
13619         * gdbserver/linux-low.c: Remove unused include files.
13620
13621 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13622
13623         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13624         (read_inferior_memory): Use it.
13625         (write_inferior_memory): Likewise.
13626
13627 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13628
13629         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13630         grubbing through sys_errlist.
13631
13632 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13633
13634         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13635
13636 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13637         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13638
13639 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13640
13641         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13642         (do_sfunc, set_cmd_sfunc): New functions.
13643
13644         * command.h (struct cmd_list_element): Add field func.
13645         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13646         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13647         * cli/cli-decode.h: Ditto.
13648
13649         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13650         (help_all, help_cmd_list): Ditto.
13651         (find_cmd, complete_on_cmdlist): Ditto.
13652         * top.c (execute_command): Ditto.
13653
13654         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13655         function.sfunc.
13656
13657         * infcmd.c (notice_args_read): Fix function signature.
13658
13659         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13660         * cli/cli-decode.c (add_set_cmd): Ditto.
13661         * utils.c (initialize_utils): Ditto.
13662         * maint.c (_initialize_maint_cmds): Ditto.
13663         * infrun.c (_initialize_infrun): Ditto.
13664         * demangle.c (_initialize_demangler): Ditto.
13665         * remote.c (add_packet_config_cmd): Ditto.
13666         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13667         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13668         * proc-api.c (_initialize_proc_api): Ditto.
13669         * kod.c (_initialize_kod): Ditto.
13670         * valprint.c (_initialize_valprint): Ditto.
13671         * top.c (init_main): Ditto.
13672         * infcmd.c (_initialize_infcmd): Ditto.
13673         * corefile.c (_initialize_core): Ditto.
13674         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13675         * arch-utils.c (initialize_current_architecture): Ditto.
13676         (_initialize_gdbarch_utils): Ditto.
13677         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13678
13679         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13680         * wince.c (_initialize_inftarg): Ditto.
13681         * symfile.c (_initialize_symfile): Ditto.
13682         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13683         * language.c (_initialize_language): Ditto.
13684         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13685
13686 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13687
13688         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13689
13690 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13691
13692         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13693         Add rules for building the register data files.
13694
13695 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13696
13697         * regformats/regdat.sh: Add braces to the definition of
13698         expedite_regs_${arch}.
13699
13700 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13701
13702         * regformats/regdef.h (struct reg): Add comment describing the
13703         requirements for offset and size fields.
13704
13705 2002-02-04  Andreas Schwab  <schwab@suse.de>
13706
13707         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13708         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13709
13710 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13711
13712         * gdbarch.sh (copyright): Update years in generated header.
13713         (SMASH_TEXT_ADDRESS): Add rule.
13714         * gdbarch.h, gdbarch.c: Re-generate.
13715         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13716         * dbxread.c: Likewise.
13717         * dwarfread.c: Likewise.
13718         * elfread.c: Likewise.
13719         * somread.c: Likewise.
13720
13721         * arm-tdep.c (arm_smash_text_address): New function.
13722         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13723
13724 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13725
13726         Add support for hardware watchpoints on win32 native.
13727         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13728         CONTEXT_DEBUG_REGISTERS.
13729         (dr variable): New variable. Static array containing a local copy
13730         of debug registers.
13731         (debug_registers_changed): New variable.  Reflects when debug registers
13732         are changed and need to be written to inferior.
13733         (debug_registers_used): New variable. Reflects when any debug register
13734         was set, used when new threads are created.
13735         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13736         i386-nat code.
13737         (thread_rec): Set dr array if id is the thread of current_event .
13738         (child_continue, child_resume): Change the debug registers for all
13739         threads if debug_registers_changed.
13740         (child_add_thread): Change the debug registers if debug_registers_used.
13741         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13742         Link nm.h to new nm-cygwin.h file.
13743         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13744         of hardware registers.
13745
13746 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13747
13748         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13749         Restore behavour broken by 2002-01-20 Andrew Cagney
13750         <ac131313@redhat.com> IEEE_FLOAT removal.
13751
13752 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13753
13754         * c-valprint.c (c_val_print): Pass a proper valaddr to
13755         cp_print_class_method.
13756         * valops.c (search_struct_method): If there is only one method
13757         and args is NULL, return that method.
13758
13759 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13760
13761         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13762         accessing tag_name directly.
13763
13764 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13765
13766         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13767         of accessing tag_name directly.
13768
13769 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13770
13771         PR gdb/280
13772         * gdbtypes.c (replace_type): New function.
13773         * gdbtypes.h (replace_type): Add prototype.
13774         * stabsread.c (read_type): Use replace_type.
13775
13776 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13777
13778         * Makefile.in (memattr.o): Add missing dependencies rule.
13779
13780 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13781
13782         * breakpoint.c (break_at_finish_command): Really export.
13783         (break_at_finish_at_depth_command): Ditto.
13784         (tbreak_at_finish_command): Ditto.
13785         * hppa-tdep.c: Include completer.h.
13786         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13787         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13788
13789 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13790
13791         * utils.c (do_write): New function.
13792         (error_stream): Rewrite combining the code from error_begin and
13793         verror.
13794         (verror): Rewrite using error_stream.
13795         (error_begin): Delete function.
13796
13797 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13798
13799         * utils.c (error_begin): Make static.
13800         * defs.h (error_begin): Delete declaration.
13801
13802         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13803         (decode_line_1): Use cplusplus_error instead of error_begin,
13804         cplusplus_hint and return_to_top_level.
13805         * coffread.c (coff_symfile_read): Use error instead of error_begin
13806         and return_to_top_level.
13807         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13808
13809 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13810
13811         * language.h (type_error, range_error): Make string parameter
13812         constant.
13813         * language.c (warning_pre_print): Delete extern declaration.
13814         * dwarfread.c (warning_pre_print): Ditto.
13815         * language.c (type_error, range_error): Rewrite to use verror and
13816         vwarning instead of warning_begin.
13817
13818 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13819
13820         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13821         (set_ignore_count): Move misplaced comment back where it belongs.
13822
13823 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13824
13825         * command.h (NO_FUNCTION): Delete macro.
13826         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13827         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13828         * tracepoint.c (_initialize_tracepoint): Ditto.
13829         * cli/cli-decode.c (add_set_cmd): Ditto.
13830         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13831
13832 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13833
13834         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13835         Update ``this'' pointer when calling virtual functions.
13836
13837 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13838
13839         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13840         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13841
13842 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13843
13844         * regformats/reg-arm.dat: New file.
13845         * regformats/reg-i386.dat: New file.
13846         * regformats/reg-ia64.dat: New file.
13847         * regformats/reg-m68k.dat: New file.
13848         * regformats/reg-mips.dat: New file.
13849         * regformats/reg-ppc.dat: New file.
13850         * regformats/reg-sh.dat: New file.
13851         * regformats/regdef.h: New file.
13852         * regformats/regdat.sh: New file.
13853
13854 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13855
13856         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13857         (arm_frame_args_address, arm_frame_locals_address): New functions.
13858         (arm_frame_num_args): New function.
13859         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13860         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13861         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13862
13863 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13864
13865         * breakpoint.c (break_at_finish_command): Export.
13866         (break_at_finish_at_depth_command): Export.
13867         (tbreak_at_finish_command): Export.
13868         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13869         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13870         "txbreak" commands, which are HPPA specific.
13871
13872         * printcmd.c (disassemble_command): Remove an ancient
13873         artifact of an old merge.
13874
13875         * symfile.h (enum overlay_debugging_state):
13876         Define enum constant values for overlay mode.
13877         * symfile.c (overlay_debugging): Use enums instead of literals.
13878         (overlay_is_mapped, overlay_auto_command,
13879         overlay_manual_command): Ditto.
13880
13881         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13882         breakpoint_here_p, breakpoint_inserted_here_p,
13883         breakpoint_thread_match, bpstat_stop_status,
13884         describe_other_breakpoints, check_duplicates, clear_command):
13885         Coding standard fixes.
13886
13887         * target.c (target_xfer_memory): Add spaces, coding standard.
13888         (do_xfer_memory): Add missing line to trust-readonly
13889         code: check bfd SEC_READONLY flag for section.
13890
13891 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13892
13893         * PROBLEMS: Fix typo, 5.1->5.1.1.
13894
13895 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13896
13897         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13898         data symbols, since we search based on textlow and texthigh.
13899         (find_pc_sect_symtab): Likewise.
13900
13901 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13902
13903         * defs.h (vwarning): Declare.
13904         * utils.c (vwarning): New function.
13905         (warning): Call vwarning.
13906         (warning_begin): Delete function.
13907
13908         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13909         the warning message.
13910         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13911         warning_begin.
13912
13913 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13914
13915         * NEWS: Mention "set trust-readonly-sections" command.
13916         Mention generate-core-file command.
13917
13918 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13919
13920         * target.c: New command, "set trust-readonly-sections on".
13921         (do_xfer_memory): Honor the suggestion to trust readonly sections
13922         by reading them from the object file instead of from the target.
13923         (initialize_targets): Register command "set trust-readonly-sections".
13924
13925 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13926
13927         * parse.c (target_map_name_to_register): Simplify, search regs and
13928         pseudo-regs using a single loop.
13929
13930 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13931
13932         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13933
13934 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13935
13936         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13937         * config/i386/i386v42mp.mh: Add i387-nat.o .
13938         * i386v4-nat.c: Include i387-nat.h.
13939         (supply_fpregset): Use i387_supply_fsave.
13940         (fill_fpregset): Use i387_fill_fsave.
13941
13942 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13943
13944         * arm-tdep.c (arm_call_dummy_words): Define.
13945         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13946         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13947         (CALL_DUMMY_WORDS): Define.
13948         (arm_call_dummy_words): Declare.
13949         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13950         (arm_linux_call_dummy_words): Declare.
13951
13952 2002-01-30  Andreas Schwab  <schwab@suse.de>
13953
13954         * m68klinux-nat.c: Fix last change to use regcache_collect
13955         instead of referencing registers[] directly.
13956
13957 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13958
13959         * parse.c (target_map_name_to_register): Delete code wrapped in
13960         #ifdef REGISTER_NAME_ALIAS_HOOK.
13961
13962 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13963
13964         * regcache.c (legacy_read_register_gen): Need to be able to
13965         read pseudo-register as well as real register.
13966         (legacy_write_register_gen): Ditto.
13967
13968 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13969
13970         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13971         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13972         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13973         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13974         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13975         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13976         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13977         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13978         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13979         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13980         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13981         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13982         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13983         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13984         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13985         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13986         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13987         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13988         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13989         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13990
13991 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13992
13993         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13994         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13995         (initialize_current_architecture): Update target_byte_order using
13996         information from BFD.
13997         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13998         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13999
14000 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14001
14002         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14003         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14004
14005         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14006         #ifdef INVALID_FLOAT.
14007         * infcmd.c (do_registers_info): Ditto.
14008         * values.c (unpack_double): Ditto.  Add comment.
14009
14010         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14011         already commented out.
14012
14013 2002-01-26  Andreas Schwab  <schwab@suse.de>
14014
14015         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14016         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14017         registers and add support for PTRACE_GETREGS.
14018
14019 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14020
14021         GDB 5.1.1 released from 5.1 branch.
14022         * NEWS: Add 5.1.1 news.
14023         * README: Sync with 5.1 branch.
14024
14025 2002-01-23  Fred Fish  <fnf@redhat.com>
14026
14027         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14028         stabstring on initial malloc.  Reallocing will copy it for us,
14029         if necessary.
14030
14031 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14032
14033         * Makefile.in (hpread_h): Delete.
14034         (HFILES_NO_SRCDIR): Remove hpread.h.
14035         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14036         (hpread.o): Update dependencies.
14037         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14038
14039         * hp-psymtab-read.c: Remove file.
14040         * hp-symtab-read.c: Remove file.
14041         * hpread.h: Remove file.
14042
14043         * hpread.c: Merge all contents of hp-psymtab-read.c,
14044         hp-symtab-read.c and hpread.h into this file, as it was prior to
14045         January 1999.
14046
14047         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14048         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14049         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14050         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14051
14052 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14053
14054         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14055         fill_gregset): Call gdbarch_tdep() just once, assign result to
14056         variable and use that, instead of calling the function several
14057         times.
14058
14059 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14060
14061         * configure.host: Accept sparcv9 as alias for sparc64.
14062         * configure.tgt: Likewise.
14063
14064 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14065
14066         * solib-aix5.c (build_so_list_from_mapfile)
14067         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14068         arguments is not reversed.
14069         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14070         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14071
14072 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14073
14074         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14075         modified version of obsolete sh_fetch_pseudo_register.
14076         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14077         (sh4_register_read): New function.
14078         (sh_pseudo_register_write): New function. Renamed and modified
14079         version of obsolete sh_store_pseudo_register.
14080         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14081         (sh4_register_write): New function.
14082         (sh_gdbarch_init): Remove setting of gdbarch function
14083         fetch_pseudo_register and store_pseudo_register. Remove setting of
14084         register_convert_to_raw, register_convert_to_virtual,
14085         register_convertible.
14086         (sh_sh4_register_convertible): Delete. No longer needed. All is
14087         taken care by architecture specific functions
14088         register_read/register_write.
14089         (sh_sh4_register_convert_to_virtual): Make static.
14090         (sh_sh4_register_convert_to_raw): Ditto.
14091
14092 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14093
14094         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14095         (floatformat_is_nan, floatformat_mantissa): Ditto.
14096
14097         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14098         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14099         builtin_type_ieee_double_little,
14100         builtin_type_ieee_double_littlebyte_bigword,
14101         builtin_type_m68881_ext, builtin_type_i960_ext,
14102         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14103         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14104         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14105         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14106
14107 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14108
14109         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14110         parameter.  Set frameless flag if it exists and depended of
14111         whether the scanned function is frameless or not.
14112         (xstormy16_skip_prologue): If function is frameless, return
14113         result of xstormy16_scan_prologue().
14114         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14115         call.
14116
14117 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14118
14119         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14120         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14121         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14122         sh_sh4_register_byte, sh_sh4_register_raw_size,
14123         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14124         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14125         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14126         sh_store_pseudo_register, sh_do_pseudo_register): Call
14127         gdbarch_tdep() just once, assign result to variable and use that,
14128         instead of calling the function several times.
14129
14130 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14131
14132         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14133         macros instead of LAST_FPU_CTRL_REGNUM.
14134         (store_register): Likewise.
14135
14136 2002-01-21  Jim Blandy  <jimb@redhat.com>
14137
14138         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14139         is up-to-date before running the program, not just when a program
14140         exits.
14141
14142 2002-01-21  Fred Fish  <fnf@redhat.com>
14143
14144         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14145         when we have found all instructions we are looking for.
14146
14147 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14148
14149         * arm-tdep.c (arm_register_name): New function.
14150         (arm_registers_names): Make static.
14151         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14152         (arm_register_name): Declare.
14153         (REGISTER_NAME): Use it.
14154
14155 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14156             Kevin Buettner  <kevinb@redhat.com>
14157
14158         Convert arm targets to new FRAME interface.
14159         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14160         (arm_frame_find_save_regs): Delete.
14161         (arm_frame_init_saved_regs): New.
14162         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14163         Allocate extra_info as required.  Convert all uses of fsr.regs
14164         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14165         to use extra_info.
14166         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14167         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14168         (check_prologue_cache, save_prologue_cache): Likewise.
14169         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14170         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14171         (FRAME_FIND_SAVED_REGS): Delete.
14172         (arm_frame_find_saved_regs): Delete prototype.
14173         (arm_frame_init_saved_regs): New prototype.
14174         (FRAME_INIT_SAVED_REGS): Define.
14175
14176 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14177
14178         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14179
14180 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14181
14182         From Jeff Law <law@redhat.com>:
14183         * infttrace.c: Include <sys/pstat.h>.
14184         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14185         exec file if the ttrace equivalent fails.
14186
14187 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14188
14189         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14190         (closeLogFile): Ditto.
14191
14192 2002-01-20  Michael Chastain  <mec@shout.net>
14193
14194         * top.c (print_gdb_version): Bump copyright year to 2002.
14195
14196 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14197
14198         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14199         Zannoni and Eli Zaretskii.
14200
14201 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14202
14203         * buildsym.c: Update copyright years.
14204         * c-typeprint.c: Likewise.
14205         * dwarf2read.c: Likewise.
14206         * f-typeprint.c: Likewise.
14207         * gdbtypes.c: Likewise.
14208         * gdbtypes.h: Likewise.
14209         * hp-symtab-read.c: Likewise.
14210         * hpread.c: Likewise.
14211         * mdebugread.c: Likewise.
14212         * p-typeprint.c: Likewise.
14213
14214 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14215
14216         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14217         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14218         byte-order selectable.
14219         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14220         * arch-utils.c: Ditto.
14221         (set_endian): Ditto.
14222         (set_endian_from_file): Ditto.
14223         * gdbserver/low-sim.c (create_inferior): Ditto.
14224         * gdbarch.sh: Ditto.
14225         * gdbarch.h: Re-generate.
14226         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14227         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14228         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14229         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14230         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14231         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14232         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14233         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14234         macro definition.
14235         * config/mips/tm-wince.h: Remove #undef of macro
14236         TARGET_BYTE_ORDER_SELECTABLE.
14237         * config/sh/tm-wince.h: Ditto.
14238
14239 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14240
14241         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14242         member function fields.  Add accessor macro
14243         TYPE_FN_FIELD_ARTIFICIAL.
14244         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14245         * c-typeprint.c (c_type_print_base): Skip artificial member
14246         functions.
14247
14248 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14249
14250         * f-typeprint.c: Delete unused function f_type_print_args.
14251         * p-typeprint.c: Delete unused function pascal_type_print_args.
14252
14253 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14254
14255         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14256         comment.  Add ``artificial'' to ``union field_location''.
14257
14258         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14259
14260         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14261         * mdebugread.c (parse_symbol): Likewise.
14262         * stabsread.c (define_symbol): Likewise.
14263         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14264         initializing TYPE_FIELD_BITPOS to n (obsolete).
14265         (hpread_doc_function_type): Likewise.
14266         * hpread.c (hpread_function_type): Likewise.
14267
14268 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14269
14270         * configure.in (host_makefile_frag): Only require a host makefile
14271         fragment when a native build.
14272         * configure: Re-generate.
14273
14274 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14275
14276         * doublest.h (floatformat_from_type): Declare.
14277         * doublest.c (floatformat_from_type): New function.
14278         (convert_typed_floating): Use.
14279
14280         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14281         call to function floatformat_from_type.
14282
14283         * gdbarch.sh (IEEE_FLOAT): Delete.
14284         * gdbarch.h, gdbarch.c: Re-generate.
14285         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14286         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14287         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14288         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14289         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14290         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14291         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14292         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14293         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14294         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14295         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14296         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14297
14298         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14299         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14300         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14301         * sh-tdep.c (sh_gdbarch_init): Ditto.
14302         * mips-tdep.c (mips_gdbarch_init): Ditto.
14303         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14304         * cris-tdep.c (cris_gdbarch_init): Ditto.
14305
14306 2002-01-20  Jiri Smid  <smid@suse.cz>
14307
14308         * configure.host, configure.tgt: Support x86-64.
14309         * NEWS: Note new target x86-64.
14310
14311         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14312         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14313         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14314         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14315         x86-64-linux-nat.o): Fix dependencies.
14316
14317 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14318
14319         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14320         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14321         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14322         * config/sparc/xm-sun4os4.h: Delete file.
14323         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14324
14325 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14326
14327         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14328         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14329         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14330         * config/i386/i386lynx.mh (XM_FILE): Delete.
14331         * config/rs6000/xm-rs6000ly.h: Delete file.
14332         * config/sparc/xm-sparclynx.h: Delete file.
14333         * config/m68k/xm-m68klynx.h: Delete file.
14334         * config/i386/xm-i386lynx.h: Delete file.
14335         * config/xm-lynx.h: Delete file.
14336         * config/djgpp/fnchange.lst: Update.
14337
14338 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14339
14340         * alpha-tdep.c (alpha_register_byte): New function.
14341         (alpha_register_raw_size): Ditto.
14342         (alpha_register_virtual_size): Ditto.
14343         (alpha_skip_prologue_internal): Renamed from
14344         alpha_skip_prologue.
14345         (alpha_skip_prologue): New version that calls
14346         alpha_skip_prologue_internal.
14347         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14348         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14349         second argument from alpha_skip_prologue.
14350         (REGISTER_BYTE): Use alpha_register_byte.
14351         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14352         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14353         (FRAMELESS_FUNCTION_INVOCATION): Use
14354         generic_frameless_function_invocation_not.
14355         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14356         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14357
14358 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14359
14360         * config/mips/xm-news-mips.h: Delete file.
14361         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14362
14363         * config/m88k/xm-m88k.h: Delete file.
14364         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14365         * config/m88k/xm-delta88v4.h: Ditto.
14366         * config/m88k/xm-delta88.h: Ditto.
14367
14368         * config/alpha/xm-fbsd.h: Delete file.
14369         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14370
14371         * config/sparc/xm-sparc.h: Delete file.
14372         * Makefile.in (xm-sun4os4.h): Delete dependency.
14373         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14374         * config/sparc/xm-sun4os4.h: Ditto.
14375         * config/sparc/xm-linux.h: Ditto.
14376
14377         * config/i386/xm-windows.h: Delete file.
14378
14379 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14380
14381         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14382         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14383
14384 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14385
14386         * alpha-tdep.c (alpha_call_dummy_words): New.
14387         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14388         (CALL_DUMMY_P): Define.
14389         (CALL_DUMMY_WORDS): Define.
14390         (SIZEOF_CALL_DUMMY_WORDS): Define.
14391
14392 2002-01-19  Per Bothner  <per@bothner.com>
14393
14394         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14395         isn't NULL, which can happen with some gcj-3.x-produced code.
14396
14397 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14398
14399         * alpha-tdep.c (alpha_register_virtual_type): New function.
14400         (alpha_init_frame_pc_first): Ditto.
14401         (alpha_fix_call_dummy): Ditto.
14402         (alpha_store_struct_return): Ditto.
14403         (alpha_extract_struct_value_address): Ditto.
14404         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14405         alpha_register_virtual_type.
14406         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14407         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14408         alpha_extract_struct_value_address.
14409         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14410         (INIT_FRAME_PC): Use init_frame_pc_noop.
14411         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14412
14413 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14414
14415         * i386gnu-nat.c: Include "i386-tdep.h".
14416         (fetch_fpregs): Simplify code dealing with uninitialized floating
14417         point states such that it doesn't require FP7_REGNUM.
14418
14419 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14420
14421         * alpha-tdep.c (frame_extra_info): New.
14422         (alpha_find_saved_regs): Make static.  Use
14423         frame->extra_info.
14424         (alpha_frame_init_saved_regs): New function.
14425         (alpha_frame_saved_pc): Use frame->extra_info.
14426         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14427         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14428         (init_extra_frame_info): Rename to...
14429         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14430         (alpha_print_extra_frame_info): New function.
14431         (alpha_frame_locals_address): Ditto.
14432         (alpha_frame_args_address): Ditto.
14433         (alpha_pop_frame): Use frame->extra_info.
14434         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14435         alpha_frame_args_address.
14436         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14437         (alpha_find_saved_regs): Remove prototype.
14438         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14439         (EXTRA_FRAME_INFO): Remove.
14440         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14441         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14442
14443 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14444
14445         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14446         (alpha_cannot_fetch_register): Ditto.
14447         (alpha_cannot_store_register): Ditto.
14448         (alpha_register_convertible): Ditto.
14449         (alpha_use_struct_convention): Ditto.
14450         * config/alpha/tm-alpha.h: Update copyright years.
14451         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14452         (INNER_THAN): Use core_addr_lessthan.
14453         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14454         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14455         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14456         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14457         (FRAME_CHAIN): Remove unnecessary cast.
14458
14459 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14460
14461         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14462         obsolete.
14463
14464 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14465
14466         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14467         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14468         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14469         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14470         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14471         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14472         * x86-64-linux-nat.c: Ditto.
14473
14474 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14475
14476         * alpha-tdep.c (alpha_register_name): New function.
14477         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14478         (REGISTER_NAME): Define.
14479
14480 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14481
14482         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14483
14484 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14485
14486         * alpha-tdep.c: Update copyright years.
14487         (alpha_next_pc): New function.
14488         (alpha_software_single_step): Ditto.
14489         * config/alpha/tm-alpha.h: Add prototype for
14490         alpha_software_single_step.
14491
14492 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14493
14494         * alphabsd-nat.c: Update copyright years.
14495         (fill_gregset): Use regcache_collect.
14496         (fill_fpregset): Likewise.
14497         (fetch_inferior_registers): Only fetch integer registers
14498         if requested to do so.
14499         (store_inferior_registers): Only store integer registers
14500         if requested to do so.
14501
14502 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14503
14504         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14505         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14506         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14507         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14508         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14509         * config/arm/linux.mh (XDEPFILES): Delete.
14510         * config/arm/nbsd.mh (XDEPFILES): Delete.
14511         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14512         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14513         * config/i386/i386m3.mh (XDEPFILES): Delete.
14514         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14515         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14516         * config/i386/fbsd.mh (XDEPFILES): Delete.
14517         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14518         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14519         * config/i386/i386v4.mh (XDEPFILES): Delete.
14520         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14521         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14522         * config/i386/i386aix.mh (XDEPFILES): Delete.
14523         * config/i386/go32.mh (XDEPFILES): Delete.
14524         * config/i386/cygwin.mh (XDEPFILES): Delete.
14525         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14526         * config/i386/i386mach.mh (XDEPFILES): Delete.
14527         * config/i386/i386v32.mh (XDEPFILES): Delete.
14528         * config/i386/linux.mh (XDEPFILES): Delete.
14529         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14530         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14531         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14532         * config/i386/i386sco.mh (XDEPFILES): Delete.
14533         * config/i386/i386v.mh (XDEPFILES): Delete.
14534         * config/i386/nbsd.mh (XDEPFILES): Delete.
14535         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14536         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14537         * config/i386/symmetry.mh (XDEPFILES): Delete.
14538         * config/i386/obsd.mh (XDEPFILES): Delete.
14539         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14540         * config/ia64/linux.mh (XDEPFILES): Delete.
14541         * config/ia64/aix.mh (XDEPFILES): Delete.
14542         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14543         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14544         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14545         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14546         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14547         * config/m68k/linux.mh (XDEPFILES): Delete.
14548         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14549         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14550         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14551         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14552         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14553         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14554         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14555         * config/m88k/delta88.mh (XDEPFILES): Delete.
14556         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14557         * config/m88k/m88k.mh (XDEPFILES): Delete.
14558         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14559         * config/mips/linux.mh (XDEPFILES): Delete.
14560         * config/mips/irix6.mh (XDEPFILES): Delete.
14561         * config/mips/irix5.mh (XDEPFILES): Delete.
14562         * config/mips/irix4.mh (XDEPFILES): Delete.
14563         * config/mips/irix3.mh (XDEPFILES): Delete.
14564         * config/mips/decstation.mh (XDEPFILES): Delete.
14565         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14566         (NATDEPFILES): Move core-aout.o to here.
14567         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14568         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14569         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14570         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14571         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14572         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14573         * config/pa/hpux11.mh (XDEPFILES): Delete.
14574         * config/powerpc/aix.mh (XDEPFILES): Delete.
14575         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14576         * config/powerpc/linux.mh (XDEPFILES): Delete.
14577         * config/romp/rtbsd.mh: Rename XDEPFILES.
14578         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14579         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14580         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14581         * config/s390/s390.mh (XDEPFILES): Delete.
14582         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14583         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14584         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14585         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14586         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14587         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14588         * config/sparc/linux.mh (XDEPFILES): Delete.
14589         * config/vax/vaxult.mh (XDEPFILES): Delete.
14590         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14591         * Makefile.in (DEPFILES): Remove XDEPFILES.
14592
14593 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14594
14595         * utils.c (internal_verror): Fix comments, default is yes not no.
14596         Update queries to match.  Default to quit and dump core.
14597
14598 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14599
14600         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14601         copyright.
14602         * defs.h, event-top.c, gdbcmd.h: Ditto.
14603         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14604         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14605         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14606         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14607         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14608         * mi/mi-main.c:Ditto.
14609
14610         * stack.c, symfile.c: Update copyright.
14611
14612 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14613
14614         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14615         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14616         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14617         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14618
14619 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14620
14621         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14622         * gdbserver/low-lynx.c (myattach): Likewise.
14623         * gdbserver/low-nbsd.c (myattach): Likewise.
14624         * gdbserver/low-sim.c (myattach): Likewise.
14625         * gdbserver/low-sparc.c (myattach): Likewise.
14626         * gdbserver/low-sun3.c (myattach): Likewise.
14627
14628         * gdbserver/low-linux.c (myattach): New function.
14629
14630         * gdbserver/server.c (attach_inferior): New function.
14631         (main): Handle "--attach".
14632
14633 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14634
14635         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14636         maintainer.
14637
14638 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14639
14640         * c-typeprint.c (is_type_conversion_operator): Add additional
14641         check for non-conversion operators.
14642
14643 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14644
14645         * linux-proc.c: Add "info proc" command, a la procfs.c.
14646         (read_mapping): New function, abstract and re-use code.
14647         (linux_find_memory_regions): Use new func read_mapping.
14648         (linux_info_proc_cmd): New function, implement "info proc".
14649         (_initialize_linux_proc): Add new command "info proc".
14650
14651 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14652
14653         * symfile.c (generic_load): Use bfd_map_over_sections method
14654         instead of manipulating bfd structure members directly.
14655         (add_section_size_callback): New function, bfd sections callback
14656         used by generic_load.
14657         (load_sections_callback): New function, bfd sections callback
14658         used by generic_load.
14659
14660 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14661
14662         [Based on work by Jim Blandy]
14663         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14664         (builtin_type_vec128): Export.
14665         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14666         types.
14667         (builtin_type_vec128): New builtin type for 128 bit vector
14668         registers.
14669         (build_gdbtypes): Initialize builtin_type_v16qi and
14670         builtin_type_v8hi. Create the vec128 register builtin type
14671         structure.
14672         (build_builtin_type_vec128): New function.
14673         (_initialize_gdbtypes): Register builtin_type_v16qi and
14674         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14675         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14676         AltiVec register to new builtin type.
14677
14678 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14679
14680         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14681         to make_cv_type.
14682
14683 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14684
14685         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14686         CLEAN_UP_REGISTER_VALUE.
14687         * regcache.c (supply_register): Update only call.
14688
14689 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14690
14691         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14692         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14693         a29k-*-vxworks* targets as obsolete.
14694
14695 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14696
14697         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14698         until we can resolve portability issues.
14699         * gregset.h: Remove references to fpxregs.
14700         * gcore.c (gcore_command): Initialize note_sec to NULL.
14701
14702 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14703
14704         * signals.c (target_signal_to_name): Rewrite.  Only use
14705         signals[].name when in bounds and non-NULL.
14706
14707 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14708
14709         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14710         * signals.c (target_signal_to_name): Verify that SIG is within the
14711         bounds of the signals array.
14712
14713 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14714
14715         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14716
14717 2002-01-13  Keith Seitz  <keiths@redhat.com>
14718
14719         * stack.c (print_frame_info_base): Print the frame's pc
14720         only if when print_frame_info_listing_hook is not defined.
14721
14722 2002-01-13  Keith Seitz  <keiths@redhat.com>
14723
14724         * varobj.c (varobj_set_value): Make sure that there were no
14725         errors evaluating the object before attempting to set its
14726         value.
14727         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14728         so this offset adjustment is no longer necessary.
14729         (create_child): Don't set the error flag if the child is
14730         a CPLUS_FAKE_CHILD.
14731         (value_of_child): If value_fetch_lazy fails, return NULL
14732         so that callers will be notified that an error occurred.
14733         (c_value_of_variable): Delay check of variable's validity
14734         until later. We actually want all structs and unions to have
14735         the value "{...}".
14736         Do not return "???" for variables which could not be evaluated.
14737         This error condition must be returned to the caller so that it
14738         can get the error condition from gdb.
14739         (cplus_name_of_child): Adjust index for vptr before figuring
14740         out the name of the child.
14741         (cplus_value_of_child): If a child's (real) parent is not valid,
14742         don't even bother trying to give a value for it. Just return
14743         an error. Change all instances in this function.
14744         (cplus_type_of_child): If our parent is one of the "fake"
14745         parents, we need to get at the type of the real parent, and
14746         derive the child's true type using this information.
14747
14748 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14749
14750         From 2002-01-09 John Marshall <johnm@falch.net>:
14751         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14752         sources.redhat.com, and tweak some related URLs which had
14753         suffered from linkrot.
14754
14755 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14756
14757         From Jeff law:
14758         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14759         structures passed in registers.
14760
14761 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14762
14763         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14764         white space which prevented compilation.  Reported by DSK
14765         <dsk@student.unsw.edu.au>.
14766
14767 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14768
14769         * symfile.c (build_section_addr_info_from_section_tab):
14770         Use bfd access method instead of manipulating bfd directly.
14771         (syms_from_objfile): Ditto.
14772         (simple_overlay_update_1): Ditto.
14773         (simple_overlay_update): Ditto.
14774         (generic_load): Ditto.
14775         (overlay_unmapped_address): FIXME comment, bfd access methods.
14776         (sections_overlap): FIXME comment, bfd access methods.
14777         (pc_in_mapped_range): FIXME comment, bfd access methods.
14778         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14779         (section_is_mapped): FIXME comment, bfd access methods.
14780         (section_is_overlay): FIXME comment, bfd access methods.
14781
14782         * symfile.c (generic_load): Whitespace and long line cleanups.
14783         Remove duplicate variable, change several local variables to
14784         more appropriate data types.
14785         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14786
14787 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14788
14789         From Peter Schauer:
14790         * language.c (longest_local_hex_string_custom): Use phex_nz to
14791         convert NUM to a hex string.
14792
14793 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14794
14795         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14796         the function.
14797         Update Copyright year.
14798
14799 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14800
14801         * language.c (longest_raw_hex_string): Delete unused function.
14802
14803 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14804
14805         * MAINTAINERS (write-after-approval): Add myself.
14806         * dwarf2read.c (read_tag_string_type): Handling of
14807         DW_AT_byte_size.
14808         (read_tag_string_type): FORTRAN fix to prevent propagation of
14809         first string size.
14810         (set_cu_language): Handling of DW_LANG_Fortran95
14811
14812 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14813
14814         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14815         GETPID(inferior_ptid).
14816         (store_inferior_registers): Likewise.
14817
14818 2002-01-10  Jason Merrill  <jason@redhat.com>
14819
14820         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14821         Fix DW_OP_minus.
14822
14823 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14824
14825         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14826         and bfd/elf32-sh-nbsd.c.
14827
14828 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14829
14830         * NEWS: Mention --pid and corefile/proc-id behavior change.
14831
14832         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14833         * gcore.c: Include cli/cli-decode.h instead of command.h.
14834
14835         * main.c (captured_main): Add new command line option "--pid".
14836         If the second command line argument (following the symbol-file)
14837         begins with a digit, try to attach to it before trying to open
14838         it as a corefile.
14839         (print_gdb_help): Document the "--pid" argument.
14840
14841 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14842
14843         * completer.c (command_completer): New function.
14844
14845         * completer.h <command_completer>: Add prototype.
14846
14847         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14848         completer for the "help" command.
14849
14850 2002-01-09  Jason Merrill  <jason@redhat.com>
14851
14852         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14853
14854 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14855
14856         * i386-linux-nat.c (fill_fpxregset): Make global.
14857         (store_fpxregset): Ditto.
14858
14859         * gregset.h (gdb_fpxregset_t): Define.
14860         (supply_fpxregset): Prototype.
14861         (fill_fpxregset): Prototype.
14862
14863         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14864
14865 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14866
14867         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14868         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14869         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14870
14871 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14872
14873         * MAINTAINERS: Update target maintainer rules so that any
14874         Maintainer can approve a tested patch for a maintenance-only
14875         target.
14876
14877 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14878
14879         * MAINTAINERS (write-after-approval): Add myself.
14880
14881         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14882         IN_SIGTRAMP.
14883
14884 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14885
14886         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14887         real name of the executable, rather than the /proc name.
14888
14889 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14890
14891         Implement a "generate-core-file" command in gdb, save target state.
14892         * gcore.c: New file.  Implement new command 'generate-core-file'.
14893         Save a corefile image of the current state of the inferior.
14894         * linux-proc.c: Add linux-specific code for saving corefiles.
14895         * target.h (struct target_ops): Add new target vectors for saving
14896         corefiles; to_find_memory_regions and to_make_corefile_notes.
14897         (target_find_memory_regions): New macro.
14898         (target_make_corefile_notes): New macro.
14899         * target.c (update_current_target): Inherit new target methods.
14900         (dummy_find_memory_regions): New place-holder method.
14901         (dummy_make_corefile_notes): New place-holder method.
14902         (init_dummy_target): Initialize new dummy target vectors.
14903         * exec.c (exec_set_find_memory_regions): New function.
14904         Allow the exec_ops vector for memory regions to be taken over.
14905         (exec_make_note_section): New function, target vector method.
14906         * defs.h (exec_set_find_memory_regions): Export prototype.
14907         * procfs.c (proc_find_memory_regions): New function, corefile method.
14908         (procfs_make_note_section): New function, corefile method.
14909         (init_procfs_ops): Set new target vector pointers.
14910         (find_memory_regions_callback): New function.
14911         (procfs_do_thread_registers): New function.
14912         (procfs_corefile_thread_callback): New function.
14913         * sol-thread.c (sol_find_memory_regions): New function.
14914         (sol_make_note_section): New function.
14915         (init_sol_thread_ops): Initialize new target vectors.
14916         * inftarg.c (inftarg_set_find_memory_regions): New function.
14917         Allow to_find_memory_regions vector to be taken over.
14918         (inftarg_set_make_corefile_notes): New function.
14919         Allow to_make_corefile_notes vector to be taken over.
14920         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14921         interface layer if not target_has_execution (may be a corefile).
14922         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14923         * config/sparc/sun4sol2.mh: Ditto.
14924         * config/alpha/alpha-linux.mh: Ditto.
14925         * config/arm/linux.mh: Ditto.
14926         * config/i386/x86-64linux.mh: Ditto.
14927         * config/ia64/linux.mh: Ditto.
14928         * config/m68k/linux.mh: Ditto.
14929         * config/mips/linux.mh: Ditto.
14930         * config/powerpc/linux.mh: Ditto.
14931         * config/sparc/linux.mh: Ditto.
14932
14933 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14934
14935         * arm-linux-nat.c: Remove references to regcache.c internal data
14936         (registers[] and register_valid[]).
14937
14938 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14939
14940         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14941         so that attaching to a pid will automatically read the process's
14942         symbol file and shlibs.
14943         * Makefile.in: Add rule for linux-proc.o.
14944         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14945         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14946         * config/arm/linux.mh: Ditto.
14947         * config/i386/linux.mh: Ditto.
14948         * config/i386/x86-64linux.mh: Ditto.
14949         * config/ia64/linux.mh: Ditto.
14950         * config/m68k/linux.mh: Ditto.
14951         * config/mips/linux.mh: Ditto.
14952         * config/powerpc/linux.mh: Ditto.
14953         * config/sparc/linux.mh: Ditto.
14954
14955 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14956
14957         * win32-nat.c: Add i386-tdep.h dependency.
14958
14959 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14960
14961         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14962         instead of bfd_get_arch_size.  Don't bail out just because
14963         there's no exec_bfd.
14964
14965         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14966         * p-valprint.c (pascal_object_print_value): Ditto.
14967         * somread.c (som_symtab_read): Ditto.
14968         * symfile.c (simple_free_overlay_region_table): Ditto.
14969         * valops.c (value_assign): Ditto.
14970
14971         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14972         use tilde_expand and strerror for opening save-tracepoints file.
14973
14974         * thread-db.c (thread_db_new_objfile): Indendation fix.
14975
14976         * infptrace.c (GDB_MAX_ALLOCA): New define.
14977         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14978         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14979         can be overridden with whatever value is appropriate to the host).
14980         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14981         alloca to allocate potentially large buffer.
14982         * rs6000-nat.c (child_xfer_memory): Ditto.
14983         * symm-nat.c (child_xfer_memory): Ditto.
14984         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14985
14986 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14987
14988         From Nick Clifton  <nickc@redhat.com>
14989         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14990
14991 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14992
14993         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14994         Don't use exec_bfd if it's NULL.
14995
14996 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14997
14998         * valops.c (value_arg_coerce): Fix formatting.
14999
15000 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15001
15002         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15003         * gnu-nat.c: Ditto.
15004
15005 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15006
15007         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15008         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15009         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15010         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15011         z8k-coff have not been multi-arched.  Update z8k-coff build
15012         status.
15013
15014 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15015
15016         * MAINTAINERS: Mark a29k target as obsolete.
15017         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15018         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15019         comments.
15020         * NEWS: Note that a29k targets are obsolete.
15021         * a29k-tdep.c: Mark as obsolete.
15022         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15023         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15024         a29k-*-vxworks* targets as obsolete.
15025         * remote-adapt.c: Obsolete.
15026         * remote-eb.c: Obsolete.
15027         * remote-mm.c: Obsolete.
15028         * remote-udi.c: Obsolete.
15029         * config/a29k/a29k-udi.mt: Obsolete.
15030         * config/a29k/a29k.mt: Obsolete.
15031         * config/a29k/tm-a29k.h: Obsolete.
15032         * config/a29k/tm-vx29k.h: Obsolete.
15033         * config/a29k/vx29k.mt: Obsolete.
15034
15035 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15036
15037         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15038         with BFD_ENDIAN_BIG.
15039
15040 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15041
15042         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15043         * configure, config.in: Re-generate.
15044         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15045         * defs.h: Do not include <endian.h>.
15046
15047 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15048
15049         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15050         * config.in: Regenerate.
15051         * configure.in: Update copyright years.
15052         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15053         * configure: Regenerate.
15054         * i386bsd-nat.c: Update copyright years.
15055         (fill_gregset): Use regcache_collect.
15056         (fetch_inferior_registers): Only fetch integer registers
15057         if requested to do so.  Add support for XMM registers
15058         using PT_GETXMMREGS.
15059         (store_inferior_registers): Only store integer registers
15060         if requested to do so.  Add support for XMM registers
15061         using PT_SETXMMREGS.
15062         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15063         (store_inferior_registers): Remove.
15064         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15065         (fetch_elfcore_registers): New function.
15066         (i386nbsd_elfcore_fns): New.
15067         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15068         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15069         i386bsd-nat.o.
15070         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15071         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15072         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15073         * config/i386/tm-nbsd.h: Update copyright years.
15074         (HAVE_SSE_REGS): Define.
15075         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15076         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15077         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15078         (SIGCONTEXT_PC_OFFSET): Remove.
15079         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15080
15081 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15082
15083         * configure.tgt: Remove powerpc-*-macos* target.
15084         * config/m68k/xm-mpw.h: Delete file.
15085         * config/xm-mpw.h: Delete file.
15086         * ser-mac.c: Delete file.
15087         * mpw-make.sed: Delete file.
15088         * mpw-config.in: Delete file.
15089         * mac-xdep.c: Delete file.
15090         * mac-gdb.r: Delete file.
15091         * mac-defs.h: Delete file.
15092         * mac-nat.c: Delete file.
15093         * config/powerpc/macos.mh: Delete file.
15094         * config/powerpc/macos.mt: Delete file.
15095         * config/powerpc/nm-macos.h: Delete file.
15096         * config/powerpc/tm-macos.h: Delete file.
15097         * source.c (openp, open_source_file): Remove obsolete code.
15098         * top.c (gdb_readline): Ditto.
15099         * utils.c (query): Ditto.
15100         * event-top.c (display_gdb_prompt): Ditto.
15101         * Makefile.in (ser-mac.o): Delete obsolete target.
15102         * NEWS: Update.
15103
15104 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15105
15106         * defs.h (BIG_ENDIAN): Delete macro definition.
15107         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15108         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15109         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15110         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15111         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15112         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15113         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15114         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15115         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15116         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15117         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15118         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15119         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15120         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15121         * gdbarch.c: Re-generate.
15122
15123 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15124
15125         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15126         for core files.
15127
15128 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15129
15130         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15131
15132 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15133
15134         * value.h (value_ptr): Delete typedef.
15135
15136 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15137
15138         * i386nbsd-nat.c: Update copyright years.
15139         Include i386-tdep.h.
15140
15141 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15142
15143         * stabsread.c: Update copyright years.
15144
15145         From Debashis Mahata <debashis.mahata@wipro.com>:
15146         (read_struct_fields): Deal with Sun C compiler erroneous stab
15147         output for structs and unions.
15148         Fix PR gdb/269.
15149
15150 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15151
15152         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15153         prototype.
15154
15155 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15156
15157         * cp-abi.c: Fix whitespace.
15158         (baseclass_offset): New wrapper function.
15159         * cp-abi.h (baseclass_offset): Add prototype.
15160         (struct cp_abi_ops): Add baseclass_offset pointer.
15161
15162         * valops.c (vb_match): Move to...
15163         * gnu-v2-abi.c (vb_match): here.
15164         * valops.c (baseclass_offset): Move to...
15165         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15166
15167         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15168
15169         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15170         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15171         * hpacc-abi.c (init_hpacc_ops): Likewise.
15172
15173 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15174
15175         * valops.c (find_overload_match): Accept obj as a
15176         reference parameter.  Update it before returning.
15177         * value.h (find_overload_match): Update prototype.
15178         * eval.c (evaluate_subexp_standard): Pass object to
15179         find_overload_match by reference.
15180
15181 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15182
15183         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15184         register attribute from value declarations.
15185         * valops.c: Ditto.
15186         * value.h: Ditto.
15187         * scm-lang.c (scm_lookup_name): Ditto.
15188
15189 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15190
15191         Abstract the functionality of iterating over mapped memory
15192         regions into a general purpose iterator function.
15193         * procfs.c (iterate_over_mappings): New function, general purpose
15194         iterator for memory sections.
15195         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15196         (solib_mappings_callback): New function, callback for above.
15197         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15198         (info_mappings_callback): New function, callback for above.
15199
15200         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15201
15202 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15203
15204         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15205         * i386-tdep.c: Include "elf-bfd.h".
15206         (process_note_abi_tag_sections): New function.
15207         (i386_gdbarch_init): Add code to recognize various OS/ABI
15208         combinations.
15209
15210         * maint.c (_initialize_maint_cmds): Add missing \ in
15211         string-literal.
15212
15213 For older changes see ChangeLog-2001
15214 \f
15215 Local Variables:
15216 mode: change-log
15217 left-margin: 8
15218 fill-column: 74
15219 version-control: never
15220 End: