* acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
2
3         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4         * configure.in: Cleanup section that sources GDB and BFD configure
5         subscripts.  Remove evil changequotes here.
6         * config.in, configure: Regenerated.
7
8 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
9
10         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11         frame accessor methods.
12         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
16         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
17         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
18         * z8k-tdep.c: Ditto.
19         
20 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
21
22         * configure.in: Remove UI_OUT configuration code.
23         * ada-lang.c: Update assuming UI_OUT is always true.
24         * Makefile.in (UIOUT_CFLAGS): Remove.
25         * configure: Regenerated.
26         * TODO: Remove blurb about elimination of -DUI_OUT.
27
28         * configure.in: Move code that provides the --enable-gdbcli,
29         --enable-gdbmi options right before the code that handles the
30         --enable-tui option.  Polish a bit.
31         * configure: Regenerated.
32
33         * configure.in: Rewrite check for GNU regex and the
34         --without-included regex option, and move it into the "Checks for
35         library functions" section.  This makes us use the system regex
36         again by default on systems with version 2 of the GNU C library.
37         This was apparently broken.
38         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
39         * acconfig.h (USE_INCLUDED_REGEX): Remove.
40         * config.in, configure: Regenerated.
41
42         * configure.in: Move code that provides the --enable-tui option
43         before the "Checks for libraries" section.  Polish the code
44         somewhat and set need_curses to yes if we build the TUI.  Rewrite
45         code that looks for a library providing termcap functionality to
46         match more closely what's done in the Readline library, and move
47         it into to the "Checks for libraries" section.
48         * configure: Regenerated.
49         * Makefile.in (TERMCAP): Remove variable.
50         * config/i386/go32.mh (TERMCAP): Remove variable.
51
52 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
53
54         * MAINTAINERS: Mention gdb_mbuild.sh.
55         * gdb_mbuild.sh: Rewrite.
56
57 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
58
59         * configure.in: Fix typo in last change.
60         * config.in, configure: Regenerated.
61
62 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
63
64         * valarith.c (value_binop): Delete obsolete code and comments.
65         * configure.host: Ditto.
66         * buildsym.h (make_blockvector): Ditto.
67         * buildsym.c (make_blockvector): Ditto.
68         * defs.h (enum language): Ditto.
69         (chill_demangle): Ditto.
70         * elfread.c (elf_symtab_read): Ditto.
71         * dwarfread.c (CHILL_PRODUCER): Ditto.
72         (set_cu_language): Ditto.
73         (handle_producer): Ditto.
74         * expprint.c (print_subexp): Ditto.
75         * gdbtypes.c (chill_varying_type): Ditto.
76         * gdbtypes.h (builtin_type_chill_bool): Ditto.
77         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
78         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
79         (chill_varying_type): Ditto.
80         * language.h (_LANG_chill): Ditto.
81         * language.c (binop_result_type, integral_type): Ditto.
82         (character_type, string_type, structured_type): Ditto.
83         (lang_bool_type, binop_type_check): Ditto.
84         * stabsread.h (os9k_stabs): Ditto.
85         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
86         (define_symbol, read_type, read_struct_fields): Ditto.
87         (read_array_type, read_enum_type, read_huge_number): Ditto.
88         (read_range_type, start_stabs): Ditto.
89         * symfile.c (init_filename_language_table): Ditto.
90         (add_psymbol_with_dem_name_to_list): Ditto.
91         * symtab.c (symbol_init_language_specific): Ditto.
92         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
93         * symtab.h (struct general_symbol_info): Ditto.
94         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
95         * typeprint.c (typedef_print): Ditto.
96         * utils.c (fprintf_symbol_filtered): Ditto.
97         * valops.c (value_cast, search_struct_field, value_slice): Delete
98         obsolete code.
99         (varying_to_slice): Delete function.
100         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
101         (varying_to_slice): Delete declaration.
102         * MAINTAINERS: Update.
103
104 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
105
106         * configure.in: Reorganize "Checks for library functions section"
107         a bit.  Remove check for `btowc' and `isascii' functions.
108         * configure: Regenerated.
109
110         * acconfig.h (_MSE_INT_H): Remove.
111         * configure.in: Create "Checks for header files" section, and move
112         appropriate tests there.  Don't check for objlist.h, wchar.h,
113         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
114         misdetection fix.  Also add "Checks for types", "Checks for
115         compiler characteristics" and "Checks for library functions"
116         sections.
117         * config.in, configure: Regenerated.
118
119         * configure.in: Create "Checks for programs" section, and move
120         appropriate tests there.
121
122 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
123
124         * configure.in: Create "Checks for libraries" section, and move
125         appropriate tests there.  Cleanup check for wctype in libw.  Use
126         AC_SEARCH_LIBS to see whether we need libsocket.
127         * configure: Regenerated.
128
129 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
130
131         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
132         * config.in, configure: Regenerated.
133
134 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
135
136         * gdb_dirent.h: Cleanup and update code to match the example in
137         the Autoconf manual.
138         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
139         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
140         * configure: Regenerated.
141
142 2002-12-30  Adam Fedor  <fedor@gnu.org>
143
144         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
145         (yylex): Initialize c to avoid uninitialized warning.
146
147 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
148
149         * doc/fdl.texi: Revert the last change.
150
151 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
152
153         * tracepoint.c (ISATTY): Removed.
154
155 2002-12-26  J. Brobecker  <brobecker@gnat.com>
156
157         Continuing work to convert the hppa targets to multiarch partil.
158
159         * hppa-tdep.c: Add some missing forward declarations.
160         (frameless_function_invocation): Prefix the function name
161         by "hppa_" to avoid polluting the namespace.  Update all calls
162         to use the new function name.
163         (saved_pc_after_call): Ditto.
164         (init_extra_frame_info): Ditto.
165         (frame_chain): Ditto.
166         (push_dummy_frame): Ditto.
167         (target_read_pc): Ditto.
168         (target_write_pc): Ditto.
169         (in_solib_call_trampoline): Ditto.
170         (in_solib_return_trampoline): Ditto.
171         (skip_trampoline_code): Ditto.
172         (hppa_read_fp): New function, renamed from target_read_fp.
173         (hppa_target_read_fp): New function, using hppa_read_fp.
174         This function conforms to the function profile for the
175         READ_FP gdbarch method.
176         (hppa_extract_struct_value_address): New function, extracted
177         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
178         macro.
179         (hppa_frame_num_args): New function.
180         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
181
182         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
183         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
184         for the switch to multiarch partial.
185         Update some of the macros definitions to match some changes
186         described above in the name of the function they are calling.
187         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
188         not be straightforward to convert. Do now wrap it inside
189         "#if !... #endif" to remember that this macro has still not
190         been taken care of.
191         (FIX_CALL_DUMMY): Likewise.
192
193 2002-12-26  J. Brobecker  <brobecker@gnat.com>
194
195         Continuing work to convert the hppa targets to multiarch partial.
196
197         * hppa-tdep.c (hppa_register_raw_size): New function replacing
198         the body of macro REGISTER_RAW_SIZE.
199         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
200         config/pa/tm-hppah.h. These functions will be used to initialize
201         the gdbarch structure.
202         (hppa_hpux_pc_in_sigtramp): New function.
203         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
204         (hppa_hpux_frame_base_before_sigtramp): New function.
205         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
206         Add gdbcore.h #include.
207         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
208         of this gdbarch-eligible macro to a call to the new associated
209         function.
210         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
211         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
212         into a call to the new associated function.
213         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
214         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
215         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
216
217 2002-12-24  David Carlton  <carlton@math.stanford.edu>
218
219         * config/sparc/tm-sparc.h: Delete duplicate definition of
220         DEPRECATED_PC_IN_CALL_DUMMY.
221
222 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
223
224         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
225         $(gdb_assert_h).
226         * configure.tgt: Recognize mips64*-*-linux*.
227         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
228         (supply_32_bit_reg): New function.
229         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
230         (fill_gregset): Use regcache_collect() instead of
231         deprecated_registers[].
232         (register_addr): Change name to mips_linux_register_addr().
233         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
234         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
235         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
236         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
237         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
238         (MIPS64_LINUX_JB_PC): New defines.
239         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
240         (mips64_elf_fpregset_t): New typedefs.
241         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
242         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
243         (mips64_linux_register_addr, set_mips_linux_register_addr)
244         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
245         (init_register_addr_data)
246         New functions.
247         (fetch_core_registers): Add support for core file formats with 64-bit
248         registers.
249         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
250         (register_addr_data): New static global variable.
251         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
252         gdbarch_register_osabi() for each MIPS machine.
253         * config/mips/linux64.mt: New file.
254         * config/mips/tm-linux64.h: New file.
255
256 2002-12-23  Adam Fedor  <fedor@gnu.org>
257
258         * maint.c (maintenance_demangle): Add switch to demangle
259         ObjC language symbols as well.
260
261 2002-12-23  Adam Fedor  <fedor@gnu.org>
262
263         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
264         last argument from complaint function call.
265
266 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
267
268         * exec.c (print_section_info): Add FIXME comments regarding format
269         string choices.
270
271 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
272
273         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
274         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
275
276 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
277
278         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
279
280 2002-12-23  David Carlton  <carlton@math.stanford.edu>
281
282         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
283         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
284         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
285         information associated to a minsym, not lookup_symbol.
286
287 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
288
289         * x86-64-tdep.h (x86_64_init_abi): New prototype.
290         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
291         (x86_64_init_abi): Make non-static.  Set number of pseudo
292         registers to 0.
293         (x86_64_gdbarch_init): Remove function.
294         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
295         Remove code dealing with dissambly.
296         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
297         (_initialize_x86_64_linux_tdep): New function.
298         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
299         i386-tdep.o.
300
301 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
302
303         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
304         (struct gdb_osabi_handler): Remove member `arch'.  Add member
305         `arch_info'.
306         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
307         construct a `struct bfd_arch_info' and store it in the `struct
308         gdb_osabi_handler' that is created.
309         (gdbarch_init_osabi): Check for compatibility based on machine
310         type and architecture.
311         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
312         comment.
313         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
314         second argument in call to gdbarch_register_osabi.
315         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
316         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
317         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
318         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
319         * arm-tdep.c (_initialize_arm_tdep): Likewise.
320         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
321         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
322         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
323         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
324         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
325         * i386-tdep.c (_initialize_i386_tdep): Likewise.
326         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
327         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
328         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
329         _initialize_i386bsd_tdep and updated likewise.
330         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
331         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
332         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
333         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
334         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
335         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
336         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
337         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
338         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
339         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
340
341 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
342
343         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
344         DT_MIPS_RLD_MAP case for 64-bit targets.
345
346 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
347
348         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
349         ``temp_saved_regs'', not the pointer or other storage contiguous
350         to this pointer.
351
352 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
353
354         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
355         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
356         (mips_linux_get_longjmp_target): Delete declarations.
357         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
358         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
359         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
360         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
361         (mips_linux_get_longjmp_target)
362         (mips_linux_svr4_fetch_link_map_offsets): Make static.
363         (mips_linux_init_abi): New function.
364         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
365
366 2002-12-19  Keith Seitz  <keiths@redhat.com>
367
368         patch committed by Elena Zannoni  <ezannoni@redhat.com>
369         * thread.c (do_captured_list_thread_ids): Call prune_threads and
370         target_find_new_threads. Fix for PR mi/669.
371
372 2002-12-19  David Carlton  <carlton@math.stanford.edu>
373
374         * linespec.c (decode_line_1): Move code into decode_all_digits.
375         (decode_all_digits): New function.
376
377 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
378
379         * exec.c (print_section_info): Select a format string to use with
380         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
381
382 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
383
384         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
385         deprecated_update_current_frame_pc_hack.
386         (deprecated_update_frame_base_hack): New function.
387         * frame.h (deprecated_update_frame_pc_hack): Replace
388         (deprecated_update_frame_base_hack): Declare.
389         * infrun.c (normal_stop): Update.
390
391 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
392
393         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
394         frame_extra_info_zalloc.
395         (rs6000_frame_args_address): Use get_frame_extra_info.
396         (frame_get_saved_regs): Use get_frame_saved_regs.
397         (frame_initial_stack_address): Use get_frame_saved_regs and
398         get_frame_extra_info.
399         (frame_initial_stack_address): Use get_frame_extra_info.
400
401 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
402
403         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
404         array size.
405         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
406         checks for r3900_regnames[].
407
408 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
409
410         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
411         All uses changed
412         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
413
414 2002-12-17  David Carlton  <carlton@math.stanford.edu>
415
416         * symtab.c (lookup_partial_symbol): Don't search past the end of
417         the partial symbols.
418
419 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
420
421         * stack.c (frame_info): Use get_frame_saved_regs.
422         * breakpoint.c (until_break_command): Use get_frame_pc.
423
424 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
425
426         * buildsym.c (block_end_complaint, anon_block_end_complaint)
427         (innerblock_complaint, innerblock_anon_complaint)
428         (blockvector_complaint): Delete deprecated complaint structs.
429         (finish_block, make_blockvector, end_symtab): Replace calls
430         to complain() with calls to complaint().
431         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
432         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
433         (unexpected_type_complaint, bad_sclass_complaint)
434         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
435         Delete deprecated complaint structs.
436         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
437         Replace calls to complain() with calls to complaint().
438         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
439         (unknown_symtype_complaint, unknown_symchar_complaint)
440         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
441         (lbrac_mismatch_complaint, repeated_header_complaint)
442         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
443         Delete deprecated complaint structs.
444         (unknown_symtype_complaint, lbrac_mismatch_complaint)
445         (repeated_header_complaint)
446         (function_outside_compiliation_unit_complaint): New functions.
447         (add_old_header_file, find_corresponding_bincl_psymtab)
448         (set_namestring, find_stab_function_addr, read_dbx_symtab)
449         (process_one_symbol): Replace calls to complain() with, possibly
450         indirect, calls to complaint().
451         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
452         (unknown_attribute_form, unknown_attribute_length)
453         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
454         (const_ignored, botched_modified_type, op_deref2, op_deref4)
455         (basereg_not_handled, dup_user_type_allocation)
456         (dup_user_type_definition, missing_tag, bad_array_element_type)
457         (subscript_data_items, unhandled_array_subscript_format)
458         (unknown_array_subscript_format, not_row_major)
459         (missing_at_name): Delete deprecated complaint structs.
460         (bad_die_ref_complaint, unknown_attribute_form_complaint)
461         (dup_user_type_definition_complaint)
462         (bad_array_element_type_complaint): New functions.
463         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
464         (decode_subscript_data_item, dwarf_read_array_type)
465         (read_tag_string_type, read_subroutine_type, read_func_scope)
466         (locval, scan_partial_symbols, decode_modified_type)
467         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
468         (attribute_size): Replace calls to complain() with, possibly
469         indirect, calls to complaint().
470         * elfread.c (section_info_complaint, section_info_dup_complaint)
471         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
472         Delete deprecated complaint structs.
473         (elf_symtab_read, elfstab_offset_sections): Replace calls to
474         complain() with calls to complaint().
475         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
476         struct.
477         (stub_noname_complaint): New function.
478         (check_typedef, add_mangled_type): Replace calls to complain()
479         with calls to complaint().
480         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
481         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
482         (hpread_unhandled_type_complaint, hpread_struct_complaint)
483         (hpread_array_complaint, hpread_type_lookup_complaint)
484         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
485         (hpread_unhandled_common_complaint)
486         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
487         struct definitions and declarations.
488         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
489         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
490         Replace calls to complain() with, possibly indirect, calls to
491         complaint().
492         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
493         Likewise.
494         * mdebugread.c (bad_file_number_complaint, index_complaint)
495         (aux_index_complaint, block_index_complaint)
496         (unknown_ext_complaint, unknown_sym_complaint)
497         (unknown_st_complaint, block_overflow_complaint)
498         (basic_type_complaint, unknown_type_qual_complaint)
499         (array_index_type_complaint, bad_tag_guess_complaint)
500         (block_member_complaint, stEnd_complaint)
501         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
502         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
503         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
504         (bad_continued_complaint, bad_rfd_entry_complaint)
505         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
506         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
507         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
508         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
509         complaint structs.
510         (index_complaint, unknown_ext_complaint, basic_type_complaint)
511         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
512         (unexpected_type_code_complaint)
513         (function_outside_compilation_unit_complaint): New functions.
514         (parse_symbol, parse_type, upgrade_type, parse_procedure)
515         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
516         Replace calls to complain() with, possibly indirect calls to
517         complaint().
518         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
519         Delete deprecated complaint structs.
520         (lookup__objc_class, lookup_child_selector): Replace complain()
521         with complaint().
522         * remote-vx.c (cant_contact_target): Delete deprecated complaint
523         struct.
524         (vx_lookup_symbol): Replace complain() with complaint().
525         * stabsread.c (invalid_cpp_abbrev_complaint)
526         (invalid_cpp_type_complaint, member_fn_complaint)
527         (const_vol_complaint, error_type_complaint)
528         (invalid_member_complaint, range_type_base_complaint)
529         (reg_value_complaint, vtbl_notfound_complaint)
530         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
531         (unresolved_sym_chain_complaint, stabs_general_complaint)
532         (lrs_general_complaint, multiply_defined_struct): Delete
533         deprecated complaint structs.
534         (invalid_cpp_abbrev_complaint, ref_value_complaint)
535         (stabs_general_complaint, lrs_general_complaint)
536         (msg_unknown_complaint): New functions.
537         (dbx_lookup_type, read_cfront_baseclasses)
538         (read_cfront_member_functions, resolve_symbol_reference)
539         (define_symbol, resolve_live_range, add_live_range, read_type)
540         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
541         (read_one_struct_field, read_baseclasses, read_tilde_fields)
542         (read_cfront_static_fields, attach_fields_to_type)
543         (complain_about_struct_wipeout, read_range_type)
544         (common_block_start, common_block_end, cleanup_undefined_types)
545         (scan_file_globals): Replace complain() with complaint().
546         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
547         Delete deprecated complaint struct declarations.
548         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
549         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
550         (bf_not_found_complaint, ef_complaint, eb_complaint)
551         (function_outside_compilation_unit_complaint): New functions.
552         (record_include_begin, record_include_end, enter_line_range)
553         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
554         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
555         complain() with complaint().
556
557 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
558
559         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
560         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
561         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
562         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
563         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
564         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
565         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
566         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
567         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
568         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
569         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
570         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
571         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
572         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
573         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
574         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
575         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
576         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
577         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
578         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
579         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
580         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
581         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
582         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
583         * config/m88k/xm-dgux.h: Delete.
584         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
585         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
586         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
587         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
588         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
589         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
590         * ch-valprint.c: Delete.
591         
592 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
593
594         * infrun.c (handle_inferior_event): Rearrange code to resume if
595         no catchpoint triggers for an event.
596
597 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
598
599         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
600         and TARGET_WAITKIND_VFORKED cases.
601
602 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
603
604         * infrun.c (handle_inferior_event): Assume that catchpoints
605         are not affected by DECR_PC_AFTER_BREAK.
606
607 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
608
609         * target.c (update_current_target): Don't inherit DONT_USE.
610         * target.h (struct target_ops): Remove DONT_USE.
611         (target_next): Remove macro.
612
613 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
614
615         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
616
617 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
618
619         * arm-tdep.c (convert_from_extended): New argument to hold the
620         type of floating point result we want to convert to.  Make input 
621         argument const.  Fix all callers.
622         (convert_to_extended): Similarly.
623         (arm_extract_return_value): Now takes a regcache argument.  Change
624         code to use regcache accessor functions.  Correctly extract 
625         smaller-than-word results on big-endian machines.
626         (arm_store_return_value): Now takes a regcache argument.  Change
627         code to use regcache accessor functions.  Correctly zero/sign extend
628         smaller than word results before storing into r0.
629         (arm_gdbarch_init): Register new-style extract_return_value and
630         store_return_value functions.
631
632 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
633
634         * thread-db.c (thread_from_lwp): Uniquify error msg.
635         (lwp_from_thread): Ditto.
636         (check_event): Ditto.
637         (find_new_threads_callback): Ditto.
638         (thread_db_pid_to_str): Ditto.
639
640 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
641
642         * frame.h (get_frame_saved_regs): Declare.
643         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
644         pointer.
645         * frame.c (get_frame_saved_regs): New function.
646         (frame_saved_regs_zalloc): Return the allocated saved_regs.
647
648 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
649
650         * frame.c (deprecated_update_current_frame_pc_hack): New
651         function.
652         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
653         * infrun.c (normal_stop): Use said function instead of directly
654         modifying the frame's PC.
655         
656 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
657
658         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
659
660 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
661
662         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
663         config/mips/tm-irix6.h (NUM_REGS): Delete.
664         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
665         (temp_saved_regs): Declare as a pointer rather than an array.
666         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
667         that ``temp_saved_regs'' has storage allocated to it and that
668         it's the correct size.
669
670 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
671
672         * defs.h (init_last_source_visited): New prototype.
673         (add_path): Ditto.
674         * source.c (add_path): New function that adds to a specified path.
675         (mod_path): Change to call add_path.
676         (init_last_source_visited): New function to allow interfaces to
677         initialize static variable: last_source_visited.  Part of fix
678         for PR gdb/741.
679         * Makefile.in: Add support for mi/mi-cmd-env.c.
680
681 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
682
683         * frame.h (frame_id_unwind): Declare.
684         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
685         id_unwind_cache.
686         (frame_id_unwind_ftype): Declare.
687         * frame.c (frame_id_unwind): New function.
688         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
689         (create_new_frame, get_prev_frame): Pass id_unwind to
690         set_unwind_by_pc.
691         (frame_saved_regs_id_unwind): New function.
692         (frame_saved_regs_id_unwind): New function.
693         * dummy-frame.c (dummy_frame_id_unwind): New function.
694         (struct dummy_frame): Add field id.
695         (generic_push_dummy_frame): Initialize `id'.
696         * dummy-frame.h (dummy_frame_id_unwind): Declare.
697
698 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
699
700         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
701         pass that to set_momentary_breakpoint.  Move comments to where they
702         belong.
703         * frame.h (set_current_frame): Delete declaration.
704         * frame.c (set_current_frame): Delete function.
705
706 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
707
708         * frame.c (frame_extra_info_zalloc): New function.
709         * frame.h (frame_extra_info_zalloc): Declare.
710
711 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
712
713         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
714         in the previous prototype change to set_momentary_breakpoint.
715
716 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
717
718         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
719         and saw_child_exec.
720         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
721         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
722         (stop_stepping): Remove outdated check for child vfork events.
723
724 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
725
726         * GDB 5.3 released from gdb_5_3-branch.
727
728 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
729
730         * corelow.c (init_core_ops): Delete references to to_require_attach
731         and to_require_detach.
732         * exec.c (init_exec_ops): Likewise.
733         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
734         hppa_require_detach directly.
735         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
736         * inftarg.c (child_detach): Remove.
737         (child_detach_from_process): Rename to child_detach, remove
738         after_fork argument.
739         (child_attach): Remove.
740         (child_attach_to_process): Rename to child_attach, remove after_fork
741         argument.
742         (init_child_ops): Delete references to to_require_attach
743         and to_require_detach.
744         * infttrace.c (hppa_require_attach): Update comment.
745         * target.c (cleanup_target, update_current_target)
746         (init_dummy_target, setup_target_debug): Delete references to
747         to_require_attach and to_require_detach.
748         (find_default_require_detach, find_default_require_attach)
749         (debug_to_require_attach, debug_to_require_detach): Remove
750         functions.
751         * target.h (struct target_ops): Remove to_require_attach
752         and to_require_detach.
753         (target_require_attach, target_require_detach): Delete macros.
754         (find_default_require_detach, find_default_require_attach): Delete
755         prototypes.
756         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
757
758 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
759
760         * frame.c (get_frame_extra_info): New function.
761         * frame.h (get_frame_extra_info): Declare.
762
763 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
764
765         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
766         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
767         with `struct frame_id'.
768         (set_longjmp_resume_breakpoint): Ditto.
769         * infrun.c (handle_inferior_event): Update.
770         * breakpoint.c (watch_command_1, until_break_command): Update.
771         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
772         (handle_inferior_event, step_over_function): Update.
773         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
774         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
775         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
776         * infcmd.c (finish_command, run_stack_dummy): Update.
777
778 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
779
780         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
781         (dwarf2_non_const_array_bound_ignored)
782         (dwarf2_missing_line_number_section)
783         (dwarf2_statement_list_fits_in_line_number_section)
784         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
785         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
786         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
787         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
788         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
789         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
790         (dwarf2_missing_member_fn_type_complaint)
791         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
792         (dwarf2_const_value_length_mismatch)
793         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
794         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
795         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
796         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
797         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
798         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
799         complaints using deprecated struct..
800         (dwarf2_non_const_array_bound_ignored_complaint)
801         (dwarf2_complex_location_expr_complaint)
802         (dwarf2_unsupported_at_frame_base_complaint)
803         (dwarf2_const_value_length_mismatch_complaint)
804         (dwarf2_macros_too_long_complaint)
805         (dwarf2_macro_malformed_definition_complaint)
806         (dwarf2_invalid_attrib_class_complaint): New functions.
807         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
808         (read_structure_scope, read_array_type, read_common_block)
809         (read_tag_pointer_type, read_base_type, read_partial_die)
810         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
811         (new_symbol, dwarf2_const_value, read_type_die)
812         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
813         (parse_macro_definition, dwarf_decode_macros): Replace calls to
814         complain() with, possibly indirect, calls to complaint().
815
816 2002-12-11  Andrew Cagney  <cagney@redhat.com>
817
818         * frame.c (deprecated_get_frame_saved_regs): Rename
819         get_frame_saved_regs.
820         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
821         * sparc-tdep.c: Update.
822         * hppa-tdep.c: Update.
823         * h8500-tdep.c: Update.
824
825 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
826
827         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
828         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
829         ``char *'' for return and parameter types.
830         * gdbarch.h, gdbarch.c: Regenerate.
831         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
832         return type from ``char *'' to ``const char *''.
833         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
834         const.
835
836 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
837
838         * i386-tdep.c: Include "dummy-frame.h".
839         (i386_frame_chain, i386_frame_saved_pc): Replace
840         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
841         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
842
843 2002-12-10  Andrew Cagney  <cagney@redhat.com>
844
845         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
846         Change to a function with predicate.
847         * gdbarch.h, gdbarch.c: Re-generate.
848         * frame.c (get_prev_frame): Update.  Test
849         DEPRECATED_INIT_FRAME_PC_P.
850         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
851         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
852         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
853         * alpha-tdep.c (alpha_gdbarch_init): Update.
854         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
855         * mips-tdep.c (mips_gdbarch_init): Update.
856         * i386-interix-tdep.c (i386_interix_init_abi): Update.
857         * arm-tdep.c: Update comments.
858         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
859         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
860         * frv-tdep.c (frv_gdbarch_init): Ditto.
861         * x86-64-tdep.c (x86_64_init_abi): Ditto.
862         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
863         * s390-tdep.c (s390_gdbarch_init): Ditto.
864         * v850-tdep.c (v850_gdbarch_init): Ditto.
865         * vax-tdep.c (vax_gdbarch_init): Ditto.
866         * sh-tdep.c (sh_gdbarch_init): Ditto.
867         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
868         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
869         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
870         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
871         * i386-tdep.c (i386_gdbarch_init): Ditto.
872         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
873         * cris-tdep.c (cris_gdbarch_init): Ditto.
874         * avr-tdep.c (avr_gdbarch_init): Ditto.
875         * arm-tdep.c (arm_gdbarch_init): Ditto.
876         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
877         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
878
879 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
880
881         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
882         CHILD_FOLLOW_FORK.
883         * hppah-nat.c (saved_vfork_pid): Add.
884         (child_post_follow_vfork): Remove.
885         (child_follow_fork): New function.
886         (child_wait): Call detach_breakpoints after receiving the child vfork.
887         Call child_resume directly instead of going through resume ().
888         Make sure we have the exec before reporting the vfork.
889         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
890         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
891         (follow_fork): New function.  Call target_follow_fork.
892         (follow_inferior_reset_breakpoints): New function broken out from
893         old follow_inferior_fork.
894         (resume): Remove hack to follow exec after vfork.
895         * inftarg.c (child_post_follow_vfork): Remove.
896         (child_follow_fork): New function.
897         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
898         * target.c (cleanup_target): Replace to_post_follow_vfork with
899         to_follow_fork.
900         (update_current_target): Likewise.
901         (setup_target_debug): Likewise.
902         (debug_to_post_follow_vfork): Remove.
903         (debug_to_follow_fork): New function.
904         * target.h (struct target_ops): Replace to_post_folow_vfork with
905         to_follow_fork.
906         (child_post_follow_vfork): Remove prototype.
907         (child_follow_fork): Add prototype.
908         (target_post_follow_vfork): Remove macro.
909         (target_follow_fork): Add macro.
910
911 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
912
913         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
914         (child_post_follow_vfork): Cancel pending exec event if we follow
915         the parent.
916         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
917         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
918         event at the following wait call if necessary.
919         * infrun.c (follow_vfork): Don't follow_exec here.
920         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
921         case about HP/UX 10.20.  Remove code pushed down to
922         hppah-nat.c:child_wait.
923         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
924         vfork_in_flight is set.
925
926 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
927
928         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
929         for the parent's fork event.
930         * infrun.c (handle_inferior_event): Only expect one fork event.
931         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
932         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
933
934 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
935
936         * PROBLEMS: Delete reference to PR gdb/725.
937         
938         * MAINTAINERS (gdb.c++): Add David Carlton.
939
940 2002-12-09  David Carlton  <carlton@math.stanford.edu>
941
942         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
943         * cli/cli-cmds.c: Ditto.
944
945 2002-12-09  Andrew Cagney  <cagney@redhat.com>
946
947         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
948         function address in <>.
949         * gdbarch.c: Re-generate.
950
951 2002-12-09  David Carlton  <carlton@math.stanford.edu>
952
953         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
954
955 2002-12-09  David Carlton  <carlton@math.stanford.edu>
956
957         * linespec.c (symtab_from_filename): New function.
958         (decode_line_1): Move code into symtab_from_filename.
959
960 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
961
962         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
963
964 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
965
966         * f-valprint.c (info_common_command): Use get_frame_pc.
967         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
968         * ax-gdb.c (agent_command): Ditto.
969         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
970         (rs6000_pop_frame): Ditto.
971         (rs6000_frameless_function_invocation): Ditto.
972         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
973         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
974         * macroscope.c (default_macro_scope): Ditto.
975         * stack.c (print_frame_info_base): Ditto.
976         (print_frame, frame_info, print_frame_label_vars): Ditto.
977         (return_command, func_command, get_frame_language): Ditto.
978         * infcmd.c (finish_command): Ditto.
979         * dummy-frame.c (cached_find_dummy_frame): Ditto.
980         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
981         (break_at_finish_at_depth_command_1): Ditto.
982         (break_at_finish_command_1): Ditto.
983         (until_break_command, get_catch_sals): Ditto.
984         * blockframe.c (func_frame_chain_valid): Ditto.
985         (frameless_look_for_prologue): Ditto.
986         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
987
988 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
989
990         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
991         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
992
993 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
994
995         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
996         to pure functions.
997         * gdbarch.h, gdbarch.c: Re-generate.
998         * frame.c (get_prev_frame): Explictly assign prev's pc with value
999         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1000
1001         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1002         declaration to a function returning a CORE_ADDR.
1003         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1004         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1005         (init_frame_pc_default): Ditto.
1006         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1007         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1008         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1009         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1010         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1011         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1012
1013         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1014         to init_frame_pc_noop.
1015         (i386_interix_init_frame_pc): Delete function.
1016         * z8k-tdep.c (init_frame_pc): Delete function.
1017         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1018         (INIT_FRAME_PC_FIRST): Ditto.
1019         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1020         (INIT_FRAME_PC_FIRST): Ditto.
1021         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1022         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1023         init_frame_pc_noop.
1024         (INIT_FRAME_PC_FIRST): Convert to an expression.
1025         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1026
1027 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1028
1029         * blockframe.c: Use get_frame_base instead of directly accessing
1030         the `struct frame_info' member frame.
1031         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1032         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1033
1034 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1035
1036         * Makefile.in (readline_h): Define.
1037         (completer.o): Depend on readline_h.
1038         (corelow.o): Ditto.
1039         (event-top.o): Ditto.
1040         (exec.o): Ditto.
1041         (solib.o): Ditto.
1042         (source.o): Ditto. 
1043         (symfile.o): Ditto. 
1044         (symmisc.o): Ditto. 
1045         (top.o): Ditto.
1046         (tracepoint.o): Ditto. 
1047         (utils.o): Ditto.
1048         (cli-dump.o): Ditto.
1049         (tui-hooks.o): Ditto. 
1050         (tuiWin.o): Ditto. 
1051
1052 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1053
1054         More cleanup from import of readline 4.3.
1055         * completer.h (complete_line, readline_line_completion_function):
1056         Update prototypes.
1057         (line_completion_function): Removed, not used outside of completer.c.
1058         * completer.c (readline_line_completion_function,
1059         complete_function, line_completion_function): Use const for first
1060         parameter.
1061         (line_completion_function): Make static.
1062         (filename_completer): filename_completion_function is now called
1063         rl_filename_completion_function
1064         * corelow.c: Include <readline/readline.h>.
1065         * exec.c: Ditto.
1066         * solib.c: Ditto.
1067         * source.c: Ditto.
1068         * symfile.c: Ditto.
1069         * symmisc.c: Ditto.
1070         * top.c (init_main): No need to coerce
1071         readline_line_completion_function anymore.
1072         * cli/cli-dump.c: Include <readline/readline.h>.
1073
1074 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1075
1076         * stack.c (frame_info): Use get_prev_frame.
1077         * blockframe.c (frame_address_in_block): Ditto.
1078         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1079         (rs6000_frameless_function_invocation): Ditto.
1080         (rs6000_frame_saved_pc): Ditto.
1081         (rs6000_frame_chain): Ditto.
1082         * arch-utils.c (init_frame_pc_default): Ditto.
1083
1084 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1085
1086         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1087         Delete redundant definition.
1088
1089 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1090
1091         Import of readline 4.3:
1092         * cli/cli-cmds.c: Include readline/tilde.h.
1093         * cli/cli-setshow.c: Ditto.
1094         * defs.h: Don't declare tilde_expand anymore, since readline
1095         exports it.
1096
1097 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1098
1099         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1100         -Werror on this file.
1101
1102 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1103
1104         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1105         the format name.
1106         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1107         * gdbarch.c: Regenerate.
1108         
1109 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1110
1111         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1112         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1113         provide a default value.
1114         * gdbarch.h, gdbarch.c: Regenerate.
1115         * frame.c (get_prev_frame): Update.  Check
1116         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1117         * s390-tdep.c (s390_gdbarch_init): Update.
1118         * mips-tdep.c (mips_gdbarch_init): Update.
1119         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1120         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1121         * alpha-tdep.c (alpha_gdbarch_init): Update.
1122         
1123 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1124
1125         * ia64-linux-nat.c: Include gdb_string.h.
1126         * alpha-nat.c: Ditto.
1127         * ppc-linux-nat.c: Ditto.
1128         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1129         Update dependencies.
1130
1131 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1132
1133         * gdbthread.h: Include "frame.h".
1134         (struct thread_info): Replace step_frame_address with
1135         step_frame_id.
1136         * inferior.h: Include "frame.h".
1137         (step_frame_id): Replace external variable step_frame_address.
1138         * gdbthread.h (save_infrun_state): Replace step_frame_address
1139         parameter with step_frame_id parameter.
1140         (load_infrun_state): Ditto.
1141         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1142         * infcmd.c (step_frame_id, step_1, step_once): Update.
1143         * thread.c (load_infrun_state, save_infrun_state): Update.
1144         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1145         (handle_inferior_event, step_over_function): Update.
1146         (normal_stop, context_switch, restore_inferior_status): Update.
1147         (struct inferior_status): Replace step_frame_address with
1148         step_frame_id.
1149
1150 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1151
1152         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1153         DW_TAG_member as well as a declaration as being a C++ static data
1154         member.
1155         (read_structure_scope): Combine tests for DW_TAG_member and
1156         DW_TAG_variable.
1157
1158 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1159
1160         * linespec.c (decode_compound): New function.
1161         (decode_line_1): Move code into decode_compound.
1162
1163 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1164
1165         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1166         argument.
1167         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1168         the static block.  See PR gdb/804.
1169
1170 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1171
1172         * symtab.c (lookup_symbol_aux_block): New function.
1173         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1174
1175 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1176
1177         * gdbarch.sh: Dump the predicate function and macro values.
1178         (read): Print error on standard error.
1179         * gdbarch.c: Regenerate.
1180         
1181 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1182
1183         * Makefile.in (mips_tdep_h): Define.
1184         (mips-tdep.o): Add mips_tdep_h to dependency list.
1185         * mips-tdep.h: New file.
1186         * mips-tdep.c (mips-tdep.h): Include.
1187         (enum mips_abi): Move to mips-tdep.h.
1188         (mips_abi): New function.
1189
1190 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1191
1192         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1193
1194 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1195
1196         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1197         function.
1198         (lookup_symbol_aux_minsyms): New function.
1199
1200 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1201
1202         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1203
1204 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1205
1206         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1207         which is an obsolete macro name.
1208
1209 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1210
1211         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1212         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1213
1214 2002-12-03  H.J. Lu  (hjl@gnu.org)
1215
1216         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1217         (create_breakpoints): Make sure the addr_string field is not
1218         NULL.
1219
1220 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1221
1222         * sparc-nat.c (fetch_inferior_registers)
1223         (store_inferior_registers): Add comment on problem of LWP vs
1224         threads.
1225         
1226         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1227         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1228         (lin_lwp_store_registers): Remove.
1229         (init_lin_lwp_ops): Use fetch_inferior_registers
1230         and store_inferior_registers directly.
1231         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1232         (store_inferior_registers): Likewise.
1233         Fix PR gdb/725.
1234
1235 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1236
1237         * frame.h (get_frame_id): Convert to a function.
1238         (null_frame_id, frame_id_p): Declare.
1239         (frame_id_eq, frame_id_inner): Declare.
1240         (frame_id_build): New function.
1241         * frame.c (get_frame_id): Update.  Use null_frame_id.
1242         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1243         frame_id_inner.
1244         (null_frame_id, frame_id_p): Define.
1245         (frame_id_eq, frame_id_inner): Define.
1246         (frame_id_build): New function.
1247         * varobj.c (varobj_create): Update.
1248         (varobj_update): Update.
1249         * valops.c (value_assign): Update.
1250         (new_root_variable): Update.
1251         * infrun.c (save_inferior_status): Update.
1252         * breakpoint.c (watch_command_1): Update.
1253
1254 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1255
1256         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1257         (SNAP2): Likewise.
1258
1259 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1260
1261         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1262         patch.
1263
1264         * PROBLEMS: Mention PR gdb/725.
1265
1266 2002-12-03  Andreas Schwab  <schwab@suse.de>
1267
1268         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1269
1270 2002-12-02  Adam Fedor  <fedor@gnu.org>
1271             Klee Dienes  <kdienes@apple.com>
1272
1273         * objc-lang.c (objc_printstr): Add width arg to match
1274         printstr prototype.
1275         (compare_selectors): Add 'const' to arg types.
1276         (compare_classes): Likewise.
1277         (find_imps): Cast msym pointer to avoid compiler warning.
1278         (print_object_command): Validate the address before
1279         passing it to the print routine.
1280         (find_objc_msgcall_submethod): Change function argument to
1281         return an int.
1282         * objc-lang.h: Add 'extern' to all function declarations.
1283         (value_nsstring): Add declaration.
1284
1285 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1286
1287         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1288         Fixes a build failure on HP/UX.
1289
1290         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1291         failure on HP/UX. 
1292         (hpread_has_name): Advance declaration to avoid a compilation warning.
1293         (pst_syms_count): Add missing variable type. By change, the compiler
1294         was defaulting to int, which seems a good choice. Fixes a compilation
1295         warning.
1296         (pst_syms_size): Likewise.
1297  
1298 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1299
1300         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1301         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1302         later to set the proper gdbarch methods depending on the osabi.
1303         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1304
1305 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1306
1307         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1308         * osabi.c (gdb_osabi_name): Add strings images for the two new
1309         enum values.
1310         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1311
1312 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1313
1314         * MAINTAINERS (Java): Global maintainers are responible for Java.
1315         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1316         part Java maintainers.
1317
1318 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1319
1320         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1321         Fixes a compilation failure on AiX.
1322
1323 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1324
1325         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1326         why aix-thread.o is not listed.
1327
1328 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1329
1330         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1331         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1332         * gdbarch.h, gdbarch.c: Re-generate.
1333         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1334         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1335         * config/pa/tm-hppa.h, frame.h: Update.
1336         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1337         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1338         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1339         * cris-tdep.c, alpha-tdep.c: Update.
1340         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1341         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1342         (get_prev_frame): Ditto.
1343
1344 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1345
1346         * exec.c (xfer_memory): Replace boolean with int.
1347         * p-exp.y: Use 0 instead of false.
1348         * corelow.c (gdb_check_format): Change return type to int from
1349         boolean.
1350         * utils.c: Don't include <curses.h> or <term.h> first.
1351
1352 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1353
1354         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1355         (m68hc11_register_byte): Remove.
1356         (m68hc11_gdbarch_init): Don't set the above.
1357
1358 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1359
1360         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1361         by calling get_selected_frame.
1362         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1363         set_current_frame, create_new_frame, select_frame and
1364         get_current_frame.
1365         * remote-e7000.c (e7000_start_remote): Ditto.
1366         * remote-mips.c (common_open): Ditto
1367         * remote-rdp.c (remote_rdp_open): Ditto.
1368
1369 2002-11-29  Andreas Schwab  <schwab@suse.de>
1370
1371         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1372         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1373         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1374         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1375         read_memory_unsigned_integer instead of read_memory_integer when
1376         dealing with addresses and instruction opcodes.
1377         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1378         (m68k_linux_frame_saved_pc): Likewise.
1379
1380 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1381
1382         * stack.c (selected_frame, select_frame): Move from here ...
1383         * frame.c (selected_frame, select_frame): ... to here.  Include
1384         "language.h".
1385         * Makefile.in (frame.o): Update dependencies.
1386         * frame.c (get_selected_frame): New function.
1387         * frame.h (get_selected_frame): Declare.
1388         (deprecated_selected_frame): Rename selected_frame.
1389         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1390         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1391         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1392         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1393         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1394         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1395         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1396         * z8k-tdep.c, cli/cli-cmds.c: Update.
1397         
1398 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1399
1400         * frame.h (get_selected_block): Add comments.
1401
1402 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1403
1404         * frame.c (pc_notcurrent): New function.
1405         (find_frame_sal): New function.
1406         * frame.h (find_frame_sal): Declare.
1407         (struct symtab_and_line): Add opaque declaration.
1408         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1409         find_pc_line.
1410         (frame_info): Ditto.
1411         * ada-lang.c (find_printable_frame): Ditto.
1412
1413 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1414
1415         * configure.in: Check that the pthdebug library is recent enough
1416         before enabling thread support on native AiX.
1417         * configure: Regenerate.
1418
1419         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1420         from the list of object files as it is now appended by configure
1421         if thread support is enabled.
1422         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1423         if thread support is enabled.
1424
1425 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1426
1427         * stack.c (get_selected_block): In-line get_current_block.
1428         * frame.h (get_current_block): Delete declaration.
1429         * blockframe.c (get_current_block): Delete function.
1430
1431 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1432
1433         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1434         USE_GENERIC_DUMMY_FRAMES.
1435         * gdbarch.h, gdbarch.c: Regenerate.
1436         * valops.c, frame.c: Update.
1437         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1438         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1439         * config/pa/tm-hppa.h, blockframe.c: Update.
1440         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1441         * m68k-tdep.c, alpha-tdep.c: Ditto.
1442
1443         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1444         * mips-tdep.c: Ditto.
1445
1446 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1447
1448         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1449         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1450         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1451         * gdbarch.c, gdbarch.h: Re-generate.
1452         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1453         (CALL_DUMMY_LOCATION): Delete macro definition.
1454         (PC_IN_CALL_DUMMY): Delete macro definitions.
1455         
1456         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1457         default is already generic_pc_in_call_dummy.
1458         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1459         * v850-tdep.c (v850_gdbarch_init): Ditto.
1460         * sh-tdep.c (sh_gdbarch_init): Ditto.
1461         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1462         * mips-tdep.c (mips_gdbarch_init): Ditto.
1463         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1464         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1465         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1466         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1467         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1468         * avr-tdep.c (avr_gdbarch_init): Ditto.
1469         
1470         * arm-tdep.c (arm_gdbarch_init): Do not set
1471         use_generic_dummy_frames, default is already 1.
1472         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1473         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1474         * v850-tdep.c (v850_gdbarch_init): Ditto.
1475         * sh-tdep.c (sh_gdbarch_init): Ditto.
1476         * s390-tdep.c (s390_gdbarch_init): Ditto.
1477         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1478         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1479         * mips-tdep.c (mips_gdbarch_init): Ditto.
1480         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1481         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1482         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1483         * i386-tdep.c (i386_gdbarch_init): Ditto.
1484         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1485         * frv-tdep.c (frv_gdbarch_init): Ditto.
1486         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1487         * cris-tdep.c (cris_gdbarch_init): Ditto.
1488         * avr-tdep.c (avr_gdbarch_init): Ditto.
1489
1490         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1491         call_dummy_location, default is already AT_ENTRY_POINT.
1492         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1493         * v850-tdep.c (v850_gdbarch_init): Ditto.
1494         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1495         * sh-tdep.c (sh_gdbarch_init): Ditto.
1496         * s390-tdep.c (s390_gdbarch_init): Ditto.
1497         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1498         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1499         * mips-tdep.c (mips_gdbarch_init): Ditto.
1500         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1501         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1502         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1503         * i386-tdep.c (i386_gdbarch_init): Ditto.
1504         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1505         * frv-tdep.c (frv_gdbarch_init): Ditto.
1506         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1507         * cris-tdep.c (cris_gdbarch_init): Ditto.
1508         * avr-tdep.c (avr_gdbarch_init): Ditto.
1509         * arm-tdep.c (arm_gdbarch_init): Ditto.
1510         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1511
1512 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1513
1514         * frame.h: Update comments on set_current_frame, create_new_frame,
1515         flush_cached_frames, reinit_frame_cache, select_frame and
1516         selected_frame.
1517         
1518 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1519
1520         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1521         deprecated pc_in_call_dummy function.
1522         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1523         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1524         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1525         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1526         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1527
1528 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1529
1530         * Makefile.in: Remove Tix dependencies.
1531         * acinclude.m4: Ditto.
1532         * aclocal.m4: Ditto.
1533         * configure.in: Ditto.
1534         * configure: Regenerated.
1535         
1536 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1537
1538         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1539         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1540         * gdbarch.c: Re-generate.
1541         
1542 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1543
1544         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1545         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1546         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1547         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1548         pc_in_call_dummy_at_entry_point.
1549         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1550         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1551         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1552         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1553         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1554         pc_in_call_dummy_on_stack.
1555         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1556         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1557         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1558         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1559         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1560         
1561 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1562
1563         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1564         pc_in_call_dummy_before_text_end
1565         (deprecated_pc_in_call_dummy_after_text_end): Rename
1566         pc_in_call_dummy_after_text_end.
1567         (deprecated_pc_in_call_dummy_on_stack): Rename
1568         pc_in_call_dummy_on_stack.
1569         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1570         pc_in_call_dummy_at_entry_point.
1571         * m68k-tdep.c (m68k_gdbarch_init): Update.
1572         * s390-tdep.c (s390_gdbarch_init): Update.
1573         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1574         * vax-tdep.c (vax_gdbarch_init): Update.
1575         * sparc-tdep.c (sparc_gdbarch_init): Update.
1576         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1577         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1578         * i386-tdep.c (i386_gdbarch_init): Update.
1579         * frv-tdep.c (frv_gdbarch_init): Update.
1580         * cris-tdep.c (cris_gdbarch_init): Update.
1581         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1582         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1583         (deprecated_pc_in_call_dummy_after_text_end)
1584         (deprecated_pc_in_call_dummy_on_stack)
1585         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1586         * alpha-tdep.c (alpha_gdbarch_init): Update.
1587
1588 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1589
1590         * acconfig.h (HAVE_PREAD64): Add.
1591         * configure.in: Check for pread64.
1592         * config.in: Regenerated.
1593         * configure: Regenerated.
1594         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1595         * linux-proc.c (linux_proc_xfer_memory): New function.
1596         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1597
1598 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1599
1600         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1601         pdi's with no name.
1602
1603 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1604
1605         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1606         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1607
1608 2002-11-25  Jim Blandy  <jimb@redhat.com>
1609
1610         * symfile.c (init_objfile_sect_indices): New function.
1611         (default_symfile_offsets): Move the section-index-initializing
1612         stuff into init_objfile_sect_indices, and call that.
1613
1614         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1615         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1616
1617         * symfile.c (syms_from_objfile): Adjust indentation.
1618
1619         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1620         || info_verbose isn't true.
1621
1622 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1623
1624         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1625         default to get_frame_base.
1626         * gdbarch.h, gdbarch.c: Regenerate.
1627         * arch-utils.c (default_frame_address): Delete function.
1628         * arch-utils.h (default_frame_address): Delete declaration
1629
1630 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1631
1632         * varobj.c (find_frame_addr_in_frame_chain):
1633         Use get_frame_base instead of FRAME_FP,
1634         obvious fix.
1635
1636 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1637
1638         * frame.h (FRAME_FP): Delete macro.
1639         (get_frame_base): New function declaration.
1640         * frame.c (get_frame_base): New function.
1641         (get_frame_id): Use ->frame.
1642         (frame_find_by_id): Rewrite to use get_frame_id.
1643         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1644         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1645         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1646         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1647         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1648         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1649         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1650
1651 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1652
1653         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1654
1655 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1656
1657         * frame.c (set_unwind_by_pc): Revert change below, use
1658         PC_IN_CALL_DUMMY.
1659         (get_prev_frame): Ditto.
1660
1661 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1662
1663         * dummy-frame.c (pc_in_dummy_frame): New function.
1664         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1665         (find_dummy_frame): Update comment.
1666         (generic_pop_current_frame): Use get_frame_type.
1667         * dummy-frame.h (pc_in_dummy_frame): Declare.
1668         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1669         (create_new_frame): Use pc_in_dummy_frame.
1670         (get_prev_frame): Use pc_in_dummy_frame.
1671         (frame_saved_regs_register_unwind): Use get_prev_frame.
1672         (deprecated_generic_get_saved_register): Use get_prev_frame.
1673
1674 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1675
1676         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1677         from here ...
1678         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1679         (varobj_create): Note that frame ID should be used.
1680         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1681
1682 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1683
1684         * breakpoint.c: Include "gdb_assert.h".
1685         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1686         not being used.
1687         * Makefile.in (breakpoint.o): Update dependencies.
1688         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1689         deprecated_frame_in_dummy.
1690         * stack.c (print_frame_info_base): Ditto.
1691         (frame_info): Ditto.
1692         (print_frame_info_base): Ditto.  Delete dead code.
1693         
1694 2002-11-23  Andreas Schwab  <schwab@suse.de>
1695
1696         * Makefile.in (m68k_tdep_h): Define.
1697         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1698         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1699         * m68k-tdep.c: Move register number enum ...
1700         * m68k-tdep.h: ... to this new file and rename the constants from
1701         E_* to M68K_*.  All uses changed.
1702         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1703         * abug-rom.c: Include "m68k-tdep.h".  Use
1704         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1705         * cpu32bug-rom.c: Likewise.
1706         * dbug-rom.c: Likewise.
1707         * m68k-tdep.c: Likewise.
1708         * m68klinux-nat.c: Likewise.
1709         * remote-est.c: Likewise.
1710         * rom68k-rom.c: Likewise.
1711         * config/m68k/tm-linux.h: Likewise.
1712
1713 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1716         dummy frame initialization code.
1717         * mips-tdep.c (mips_gdbarch_init): Ditto.
1718
1719 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1720
1721         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1722         attach will hang.
1723
1724 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1725
1726         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1727         to default_frame_address.
1728         * gdbarch.h, gdbarch.c: Re-generate.
1729
1730         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1731         or frame_locals_address to default_frame_address.
1732         * m68k-tdep.c (m68k_gdbarch_init): Update.
1733         * i386-tdep.c (i386_gdbarch_init): Update.
1734         * frv-tdep.c (frv_gdbarch_init): Update.
1735         * sh-tdep.c (sh_gdbarch_init): Update.
1736         * v850-tdep.c (v850_gdbarch_init): Update.
1737         * sparc-tdep.c (sparc_gdbarch_init): Update.
1738         * mips-tdep.c (mips_gdbarch_init): Update.
1739         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1740         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1741         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1742
1743         * cris-tdep.c (cris_frame_args_address): Delete function.
1744         (cris_frame_locals_address): Delete function.
1745         (cris_gdbarch_init): Do not set frame_args_address or
1746         frame_locals_address.
1747
1748 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1749
1750         * thread-db.c (thread_db_load): Tell the user what's going on
1751         if dlopen fails on libthread_db.
1752
1753 2002-11-23  Andreas Schwab  <schwab@suse.de>
1754
1755         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1756         invariant return values.
1757
1758 2002-11-22  Andreas Schwab  <schwab@suse.de>
1759
1760         * valops.c (value_slice): Move declaration of `offset' to avoid
1761         warning.
1762
1763 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1764
1765         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1766         (struct so_stuff): Add end_addr field.
1767         (register_loaded_dll): Calculate and store end address of loaded dll.
1768         (solib_address): New function.
1769         (child_solib_loaded_library_pathname): Pass carefully constructed
1770         section info to safe_symbol_file_add rather than ignoring it.
1771         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1772         DLL is loaded.
1773         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1774         (child_create_inferior): Fix a compiler warning.
1775         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1776         (solib_address): Declare new function.
1777
1778 2002-11-22  Andreas Schwab  <schwab@suse.de>
1779
1780         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1781         and FPS registers.
1782
1783 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1784
1785         * maint.c (_initialize_maint_cmds): Fix typo.  From
1786         Francesco Potorti` <pot@gnu.org>.
1787
1788 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1789
1790         * mips-tdep.c (mips_dump_tdep): Delete references to
1791         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1792         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1793         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1794         * printcmd.c (build_address_symbolic): Delete calls to
1795         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1796         (address_info): Ditto.
1797         Fix PR gdb/773.
1798         
1799 2002-11-19  Klee Dienes  <kdienes@apple.com>
1800             Adam Fedor  <fedor@gnu.org>
1801
1802         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1803         the ability to explicitly specify the quote characters and word
1804         break characters; if NULL is specified for either, use the old
1805         behavior of using the characters used by the completer.
1806         (skip_chars): New function.  Convenience wrapper around
1807         skip_quoted_chars to provide the original skip_chars behavior.
1808         * completer.h (skip_quoted_chars): Add prototype.
1809
1810 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1811
1812         Problems reported by Paul Eggert.
1813         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1814
1815 2002-11-19  Andreas Schwab  <schwab@suse.de>
1816
1817         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1818         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1819         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1820         (m68k_linux_frame_saved_pc): Move to ...
1821         * m68klinux-tdep.c: ... here.  New file.
1822         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1823         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1824
1825 2002-11-19  Adam Fedor  <fedor@gnu.org>
1826
1827         * objc-exp.y: Revert to old skip_quoted usage.
1828
1829 2002-11-19  Adam Fedor  <fedor@gnu.org>
1830
1831         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1832         (objc_lang_h): Define.
1833         (YYFILES): Add objc-exp.tab.c.
1834         (local-maintainer-clean): Remove objc-exp.tab.c.
1835         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1836         
1837 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1838
1839         * p-exp.y (typecast rule): Add automatic dereference of
1840         pascal classes if needed.
1841         (THIS): Set current_type.
1842         Automatically dereference pascal classes. 
1843         (typebase rule): Add ^typebase recognition.
1844
1845 2002-11-18  Adam Fedor  <fedor@gnu.org>
1846
1847         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1848         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1849         (op_name): Handle OP_OBJC_SELF.
1850         * Makefile.in (expprint.o): Add additional depends.
1851
1852 2002-11-18  Adam Fedor  <fedor@gnu.org>
1853
1854         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1855         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1856         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1857         * objc-exp.y: Likewise. 
1858
1859 2002-11-18  Adam Fedor  <fedor@gnu.org>
1860
1861         * gdb/parser-defs.h: (struct objc_class_str): New structure
1862         for parsing ObjC classes.
1863
1864 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1865
1866         * stack.c (frame_relative_level): Copy function from here ...
1867         * frame.c (frame_relative_level): ...to here.
1868
1869 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1870
1871         * frame.h (enum frame_type): Define.
1872         (get_frame_type): Declare.
1873         (struct frame_info): Add field `type'.  Delete field
1874         signal_handler_caller.
1875         (deprecated_set_frame_signal_handler_caller): Declare.
1876         * frame.c (get_frame_type): New function.
1877         (deprecated_set_frame_type): New function.
1878         (create_new_frame): Set the frame's type.
1879         (get_prev_frame): Similar.
1880         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1881         * s390-tdep.c: Ditto.
1882         * m68klinux-nat.c: Ditto.
1883         * ns32k-tdep.c: Ditto.
1884         * x86-64-linux-tdep.c: Ditto.
1885         * vax-tdep.c: Ditto.
1886         * rs6000-tdep.c: Ditto.
1887         * ppc-linux-tdep.c: Ditto.
1888         * i386-interix-tdep.c: Ditto.
1889         * mips-tdep.c: Ditto.
1890         * m68k-tdep.c: Ditto.
1891         * hppa-tdep.c: Ditto.
1892         * ia64-tdep.c: Ditto.
1893         * cris-tdep.c: Ditto.
1894         * arm-tdep.c: Ditto.
1895         * alpha-tdep.c: Ditto.
1896         * i386-tdep.c: Ditto.
1897         * stack.c: Ditto.
1898         * ada-lang.c: Ditto.
1899         * blockframe.c: Update.
1900         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1901         deprecated_set_frame_type instead of signal_handler_caller.
1902         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1903         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1904         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1905
1906 2002-11-18   Klee Dienes  <kdienes@apple.com>
1907
1908         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1909
1910 2002-11-18  Klee Dienes  <kdienes@apple.com>
1911
1912         * buildsym.c (pop_context): Add comment.
1913         
1914 2002-11-18  Klee Dienes  <kdienes@apple.com>
1915
1916         * buildsym.h (pop_context): Convert to function, defined in
1917         buildsym.c.
1918         * buildsym.c: Include gdb_assert.h.
1919         (pop_context): Implement as C function.  Add check for stack
1920         underflow.
1921         * dbxread.c (process_one_symbol): Complain and stop processing
1922         that symbol if we are already at the top of the context stack for
1923         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1924         when processing N_RBRAC.
1925
1926 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1927
1928         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1929         define.
1930         (struct target_waitstatus): Add opaque definition.
1931         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1932         * exec.c (init_exec_ops): Likewise.
1933         * fork-child.c (clone_and_follow_inferior): Remove.
1934         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1935         * inferior.h (clone_and_follow_inferior): Remove prototype.
1936         * infrun.c (follow_fork_mode_both): Remove.
1937         (follow_fork_mode_kind_names): Remove commented out "both".
1938         (follow_inferior_fork): Remove follow_fork_mode_both support.
1939         * inftarg.c (child_clone_and_follow_inferior): Remove.
1940         (child_post_follow_inferior_by_clone): Remove.
1941         (init_child_ops): Don't set to_clone_and_follow_inferior
1942         or to_post_follow_inferior_by_clone.
1943         * target.c (default_clone_and_follow_inferior): Remove.
1944         (cleanup_target): Don't set to_clone_and_follow_inferior
1945         or to_post_follow_inferior_by_clone.
1946         (find_default_clone_and_follow_inferior): Remove.
1947         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1948         (debug_to_clone_and_follow_inferior): Remove.
1949         (debug_to_post_follow_inferior_by_clone): Remove.
1950         (setup_target_debug): Don't set to_clone_and_follow_inferior
1951         or to_post_follow_inferior_by_clone.
1952         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1953         and to_post_follow_inferior_by_clone.
1954         (child_clone_and_follow_inferior): Remove prototype.
1955         (child_post_follow_inferior_by_clone): Remove prototype.
1956         (target_clone_and_follow_inferior): Remove macro.
1957         (target_post_follow_inferior_by_clone): Remove macro.
1958         (find_default_clone_and_follow_inferior): Remove prototype.
1959
1960 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1961
1962         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1963         inferior_has_vforked, and inferior_has_execd instead of
1964         target_has_forked, target_has_vforked, and target_has_execd.
1965         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1966         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1967         (CHILD_WAIT): Define.
1968         (child_wait): Add prototype.
1969         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1970         Add prototype.
1971         (hpux_has_vforked): Likewise, from child_has_vforked.
1972         (hpux_has_execd): Likewise, from child_has_execd.
1973         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1974         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1975         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1976         and hpux_has_syscall_event instead of the target hooks.
1977         * infrun.c (inferior_has_forked, inferior_has_vforked)
1978         (inferior_has_execd): New functions.
1979         * inftarg.c (not_same_real_pid): Remove.
1980         (child_wait): Remove references to not_same_real_pid,
1981         target_has_forked, target_has_vforked, target_has_execd,
1982         and target_has_syscall_event.
1983         (child_has_forked, child_has_vforked, child_has_execd)
1984         (child_has_syscall_event): Remove.
1985         (init_child_ops): Remove references to child_has_forked,
1986         child_has_vforked, child_has_execd, and child_has_syscall_event.
1987         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1988         (hpux_has_vforked): Likewise, from child_has_vforked.
1989         (hpux_has_execd): Likewise, from child_has_execd.
1990         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1991         * target.c (cleanup_target): Remove references to
1992         to_has_forked, to_has_vforked, to_has_execd, and
1993         to_has_syscall_event.
1994         (update_current_target): Likewise.
1995         (setup_target_debug): Likewise.
1996         (debug_to_has_forked): Remove.
1997         (debug_to_has_vforked): Remove.
1998         (debug_to_has_execd): Remove.
1999         (debug_to_has_syscall_event): Remove.
2000         * target.h (struct target_ops): Remove to_has_forked.
2001         to_has_vforked, to_has_execd, and to_has_syscall_event.
2002         (child_has_forked, child_has_vforked, child_has_execd)
2003         (child_has_syscall_event): Remove prototypes.
2004         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2005         prototypes.
2006         (target_has_forked, target_has_vforked, target_has_execd)
2007         (target_has_syscall_event): Remove macros.
2008
2009 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2010
2011         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2012         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2013         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2014         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2015         * target.c (cleanup_target): Remove reference to
2016         to_can_follow_vfork_prior_to_exec.
2017         (update_current_target): Likewise.
2018         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2019         (setup_target_debug): Remove reference to
2020         to_can_follow_vfork_prior_to_exec.
2021         * target.h (struct target_ops): Remove
2022         to_can_follow_vfork_prior_to_exec.
2023         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2024         (target_can_follow_vfork_prior_to_exec): Remove definition.
2025         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2026         define.
2027         * infrun.c (follow_vfork_when_exec): Remove.
2028         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2029         (follow_exec): Likewise.
2030         (handle_inferior_event): Likewise.
2031         (keep_going): Likewise.
2032
2033 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2034
2035         * frame.c (generic_unwind_get_saved_register): Make static.
2036         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2037         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2038         defaults to generic_unwind_get_saved_register.
2039         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2040         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2041         * frv-tdep.c (frv_gdbarch_init): Ditto.
2042         * i386-tdep.c (i386_gdbarch_init): Ditto.
2043         * s390-tdep.c (s390_gdbarch_init): Ditto.
2044         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2045         * v850-tdep.c (v850_gdbarch_init): Ditto.
2046         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2047         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2048         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2049
2050 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2051
2052         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2053         i386-tdep.c.
2054
2055 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2056
2057         * frame.h (sigtramp_saved_pc): Delete declaration.
2058         * blockframe.c (sigtramp_saved_pc): Delete function.
2059         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2060         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2061         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2062         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2063
2064 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2065
2066         * frame.c (frame_pc_unwind): New function.
2067         (frame_saved_regs_pc_unwind): New function.
2068         (frame_register_unwind): Pass unwind_cache instead of
2069         register_unwind_cache.
2070         (set_unwind_by_pc): Add unwind_pc parameter, set.
2071         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2072         (get_prev_frame): Ditto.
2073         * frame.h (frame_pc_unwind_ftype): Declare.
2074         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2075         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2076         (frame_pc_unwind): Declare.
2077         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2078         (struct dummy_frame): Add comment mentioning that values are for
2079         previous frame.
2080         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2081         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2082         (generic_file_frame_chain_valid): Ditto.
2083         * stack.c (frame_info): Ditto.
2084
2085 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2086
2087         * linespec.c (locate_first_half): New function.
2088         (decode_line_1): Move code into locate_first_half.
2089
2090 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2091
2092         * complaints.h: Add comment explaining how to eliminate a
2093         deprecated_complain call.
2094         * complaints.h: Fix spelling errors.
2095
2096 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2097
2098         * printcmd.c: Remove #include "disasm.h".
2099
2100 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2101
2102         * frame.h: Move the most relevant interface functions to the start
2103         of the file.
2104
2105 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2106
2107         * regcache.h (deprecated_registers): Rename registers.
2108         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2109         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2110         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2111         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2112         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2113         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2114         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2115         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2116         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2117         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2118         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2119         * v850ice.c: Update.
2120
2121 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2122
2123         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2124         NULL buffer.
2125
2126 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2127
2128         * regcache.h (deprecated_read_register_bytes): Rename
2129         read_register_bytes.
2130         (deprecated_write_register_bytes): Rename write_register_bytes.
2131         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2132         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2133         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2134         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2135         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2136         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2137         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2138         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2139         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2140         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2141         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2142         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2143         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2144         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2145
2146 2002-11-13  Jim Blandy  <jimb@redhat.com>
2147
2148         * findvar.c (read_var_value): Doc fix.
2149
2150 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2151
2152         * regcache.c (struct regcache): Replace passthough_p with
2153         readonly_p.
2154         (regcache_xmalloc): Initialize readonly_p.
2155         (build_regcache): Initialize readonly_p.
2156         (regcache_save): New function.
2157         (regcache_restore): New function.
2158         (regcache_cpy): Re-implement using regcache_save and
2159         regcache_restore.
2160         (regcache_raw_read): Update.
2161         (regcache_cooked_read): When a read-only cache, checked for cached
2162         pseudo register values.
2163         (regcache_raw_write): Assert that the cache is not read-only.
2164         Remove code handling a non-passthrough cache.
2165         * regcache.h (regcache_save): Declare.
2166         (regcache_restore): Declare.
2167
2168 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2169
2170         * regcache.c (struct regcache_descr): Add fields
2171         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2172         (init_legacy_regcache_descr): Compute the size of a cooked
2173         register cache and then assign that to sizeof_raw_registers.  Set
2174         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2175         (init_legacy_regcache_descr): Ditto.
2176
2177 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2178
2179         * regcache.c (register_buffer): Move to near start of file, update
2180         description.
2181         (regcache_raw_read): Use.
2182         (regcache_raw_write): Use.
2183         (struct regcache): Rename raw_registers to registers and
2184         raw_register_valid_p to register_valid_p.
2185         (regcache_xmalloc): Update.
2186         (regcache_xfree): Update.
2187         (register_buffer): Update.
2188         (regcache_cpy): Update.
2189         (regcache_cpy_no_passthrough): Update.
2190         (regcache_valid_p): Update.
2191         (deprecated_grub_regcache_for_registers): Update.
2192         (deprecated_grub_regcache_for_register_valid): Update.
2193         (set_register_cached): Update.
2194         (regcache_raw_write): Update.
2195
2196 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2197
2198         * p-exp.y (name_not_typename): Use copy_name to
2199         set current_type variable for fields of THIS.
2200
2201 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2202
2203         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2204         * monitor.c (init_base_monitor_ops): Likewise.
2205         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2206         * remote-array.c (init_array_ops): Likewise.
2207         * remote-e7000.c (init_e7000_ops): Likewise.
2208         * remote-es.c (init_es1800_ops): Likewise.
2209         (init_es1800_child_ops): Likewise.
2210         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2211         * remote-sim.c (init_gdbsim_ops): Likewise.
2212         * remote-st.c (init_st2000_ops): Likewise.
2213         * sol-thread.c (init_sol_core_ops): Likewise.
2214         (init_sol_thread_ops): Likewise.
2215         * v850ice.c (init_850ice_ops): Likewise.
2216         * win32-nat.c (init_child_ops): Likewise.
2217         * wince.c (init_child_ops): Likewise.
2218
2219 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2220
2221         * utils.c (gdb_realpath): Make rp a constant pointer.
2222
2223 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2224
2225         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2226         a constant buffer; cannonicalize_file_name(); realpath() with a
2227         pathconf() defined buffer, xstrdup().
2228
2229 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2230
2231         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2232         to hang2.C; hang3.c to hang3.C.
2233
2234 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2235
2236         * findvar.c (read_var_value): Reenable TLS code.
2237
2238 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2239             Jim Blandy  <jimb@redhat.com>
2240         
2241         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2242         * target.c (update_current_target): Add
2243         to_get_thread_local_address.
2244         * target.h (to_get_thread_local_address): Export.
2245         (target_get_thread_local_address): Define.
2246         (target_get_thread_local_address_p): Define.
2247         * thread-db.c: Include solib-svr4.h.
2248         (td_thr_tls_get_addr_p): Define.
2249         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2250         (thread_db_get_thread_local_address): New function.
2251         (init_thread_db_ops): Initialize to_get_thread_local_address.
2252         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2253         * configure: Regenerate.
2254         * config.in: Regenerate.
2255
2256 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2257
2258         * linespec.c (set_flags): New function.
2259         (decode_line_1): Move code into set_flags.
2260
2261 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2262
2263         * linespec.c (decode_line_1): Move chunks of code to separate
2264         functions.
2265         (initialize_defaults): New function.
2266         (decode_indirect): New function.
2267
2268 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2269
2270         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2271         instead of void_code_ptr.
2272         (sigtramp_saved_pc): Ditto.
2273
2274         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2275         i386_fp_regnum_p.
2276
2277 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2278
2279         * gdbtypes.h (struct main_type): Move artificial flag out of
2280         loc.  New member of ``struct field'' named static_kind.  Reduce
2281         overloaded meaning of bitsize.
2282         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2283         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2284         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2285
2286         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2287         new fields.
2288         (template_to_fixed_record_type, template_to_static_fixed_type)
2289         (to_record_with_fixed_variant_part): Likewise.
2290         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2291         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2292         * dwarfread.c (struct_type, enum_type): Likewise.
2293         * hpread.c (hpread_read_enum_type)
2294         (hpread_read_function_type, hpread_read_doc_function_type)
2295         (hpread_read_struct_type): Likewise.
2296         * mdebugread.c (parse_symbol): Likewise.
2297
2298 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2299
2300         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2301         * stack.c (print_frame_info_base): Update.
2302         (print_frame_info_base, frame_info): Update.
2303         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2304         (sparc_frame_saved_pc): Update.
2305         * ada-lang.c (find_printable_frame): Update.
2306         * breakpoint.c (deprecated_frame_in_dummy): Update.
2307         
2308 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2309
2310         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2311         defined.
2312         (regmap): Extend to cover all registers.
2313         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2314         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2315         definitions.
2316         (fetch_register, sore_register): Simplify.
2317         (old_fetch_inferior_registers, old_store_inferior_registers):
2318         Remove functions.
2319         (cannot_fetch_register, cannot_store_register): Change
2320         implementation to use regmap array to decide which registers
2321         cannot be fetched/stored.  This removes $orig_eax from the
2322         registers that cannot be fetched/stored.
2323         (fetch_inferior_registers): Call fetch_register directly instead
2324         of calling old_fetch_inferior_registers.
2325         (store_inferior_registers): Call store_register directly instead
2326         of calling old_store_inferior_registers.
2327         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2328         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2329         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2330
2331 2002-11-09  Klee Dienes  <kdienes@apple.com>
2332
2333         * i387-tdep.c (i387_supply_register): When called with NULL as a
2334         buffer, mark the register as not provided (to mirror the behavior
2335         of supply_register).
2336         (i387_supply_fxsave): Ditto.
2337         (i387_supply_fsave): Ditto (inherits the behavior from
2338         i387_supply_register).
2339
2340 2002-11-09  Klee Dienes  <kdienes@apple.com>
2341
2342         * blockframe.c (sigtramp_saved_pc): Use
2343         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2344         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2345         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2346         
2347 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2348
2349         * frame.c (get_prev_frame): Test prev_p to identify a previously
2350         unwound frame.  Initialize prev_p.
2351         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2352         comment.
2353
2354 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2355
2356         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2357         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2358         more comments.  Zap dead code.
2359
2360 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2361
2362         * infcmd.c (print_vector_info, print_float_info): Move code that
2363         checks whether the target has any registers and whether there is a
2364         selected frame up, such that it is also used if a target provides
2365         multi-arch definitions of these functions.
2366
2367 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2368
2369         * Makefile.in (DESTDIR): Define.
2370         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2371         prefix.
2372
2373         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2374         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2375
2376 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2377
2378         * i386-linux-tdep.c: Include "reggroups.h".
2379         (i386_linux_register_reggroup_p): New function.
2380         (i386_linux_init_abi): Set register_reggroup_p to
2381         i386_linux_register_reggroup_p.
2382         * i386-tdep.h (i386_register_reggroup_p): Declare.
2383         * i386-tdep.c: Include "reggroups.h".
2384         (i386_init_reggroups): New function.
2385         (i386_add_reggroups): New function.
2386         (i386_register_reggroup_p): New function.
2387         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2388         (_initialize_i386_tdep): Call i386_init_reggroups.
2389         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2390         specific reggroups.
2391
2392 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2393
2394         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2395         request that's available in *BSD.
2396
2397         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2398
2399         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2400         FDOFF_REGNUM.
2401
2402 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2403
2404         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2405         * dummy-frame.c (find_dummy_frame): Rename
2406         generic_find_dummy_frame, make static.  Return the dummy frame
2407         instead of the regcache.
2408         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2409         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2410         (dummy_frame_register_unwind): Rename
2411         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2412         * dummy-frame.h (dummy_frame_register_unwind): Rename
2413         generic_call_dummy_register_unwind.
2414
2415 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2416
2417         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2418         except the inclusion of "i386/tm-i386.h", to...
2419         * config/i386/nm-i386v42mp.h: ...here.
2420         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2421
2422 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2423
2424         * Makefile.in (frame.o): Update dependencies.
2425         * blockframe.c (current_frame, frame_obstack_alloc)
2426         (frame_saved_regs_zalloc, get_current_frame)
2427         (set_current_frame, create_new_frame)
2428         (set_unwind_by_pc, get_next_frame)
2429         (flush_cached_frames, reinit_frame_cache)
2430         (frame_saved_regs_register_unwind)
2431         (deprecated_generic_get_saved_register)
2432         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2433         (_initialize_blockframe): Move frame code from here...
2434         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2435         "annotate.h" and "dummy-frame.h".
2436         (_initialize_frame): New function.
2437
2438 2002-11-08  Jim Blandy  <jimb@redhat.com>
2439
2440         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2441         when we finish a function a context.
2442         * buildsym.h (outermost_context_p): New macro.
2443         (Bug analyzed by David Edelsohn.)
2444
2445 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2446
2447         * blockframe.c: Include "dummy-frame.h".
2448         (struct dummy_frame, dummy_frame_stack)
2449         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2450         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2451         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2452         (generic_save_call_dummy_addr, generic_pop_current_frame)
2453         (generic_pop_dummy_frame, generic_fix_call_dummy)
2454         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2455         dummy frame code from here...
2456         * dummy-frame.c: ...to here.  New file.
2457         * dummy-frame.h: New file.
2458         (generic_call_dummy_register_unwind): Declare.
2459         (generic_find_dummy_frame): Declare.
2460         * Makefile.in (SFILES): Add dummy-frame.c.
2461         (dummy-frame.o): Specify dependencies.
2462         (dummy_frame_h): Define.
2463         (COMMON_OBS): Add dummy-frame.o.
2464         (blockframe.o): Update dependencies.
2465
2466 2002-11-08  Jim Blandy  <jimb@redhat.com>
2467
2468         * dwarf2read.c (read_func_scope): Restore local_symbols and
2469         param_symbols after we finish the function context.  (Based on a
2470         patch from David Edelsohn.)
2471
2472 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2473
2474         * linespec.c (symbol_found): New function.
2475         (minsym_found): New function.
2476         (decode_line_1): Separate out some code into separate functions.
2477
2478 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2479
2480         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2481         the benefit of the interix target.
2482         * i386-tdep.h (i386_frameless_signal_p): Declare.
2483
2484 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2485
2486         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2487         declaration that snuck in from change below.
2488
2489 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2490
2491         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2492         all callers.
2493         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2494         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2495         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2496         (i386_mxcsr_regnum_p): new function.  Use instead of
2497         MXCSR_REGNUM_P.
2498         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2499         (i386_sse_regnum_p): Declare.
2500         (i386_mxcsr_regnum_p): Declare.
2501         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2502         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2503         (IS_FP_REGNUM): Update definition.
2504         (IS_FPU_CTRL_REGNUM): Update definition..
2505         (IS_SSE_REGNUM): Update definition..
2506         * i386v-nat.c (register_u_addr): Update.
2507         * go32-nat.c (fetch_register): Update.
2508         (store_register): Update.
2509
2510 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2511
2512         Preparation work to convert the hppa targets to multiarch partial.
2513
2514         * hppa-tdep.c: Add new functions replacing macro bodies from
2515         config/pa/tm-hppa.h. These function will be used to initialize
2516         the gdbarch structure. Import some comments from tm-hppa.h,
2517         and place them where appropriate, to avoid loosing them when
2518         we cleanup this file.
2519         (hppa_reg_struct_has_addr): New function.
2520         (hppa_inner_than): New function.
2521         (hppa_stack_align): New function.
2522         (hppa_pc_requires_run_before_use): New function.
2523         (hppa_instruction_nullified): New function.
2524         (hppa_register_byte): New function.
2525         (hppa_register_virtual_type): New function.
2526         (hppa_store_struct_return): New function.
2527         (hppa_cannot_store_register): New function.
2528         (hppa_frame_args_address): New function.
2529         (hppa_frame_locals_address): New function.
2530         (hppa_smash_text_address): New function.
2531         (hppa_coerce_float_to_double): New function. Requires the inclusion
2532         of "language.h".
2533
2534         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2535
2536         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2537         gdbarch-eligible macro to a call to the new associated function
2538         created in hppa-tdep.c.
2539         (INNER_THAN): Likewise.
2540         (STACK_ALIGN): Likewise.
2541         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2542         (INSTRUCTION_NULLIFIED): Likewise.
2543         (REGISTER_BYTE): Likewise.
2544         (REGISTER_VIRTUAL_TYPE): Likewise.
2545         (STORE_STRUCT_RETURN): Likewise.
2546         (CANNOT_STORE_REGISTER): Likewise.
2547         (FRAME_ARGS_ADDRESS): Likewise.
2548         (FRAME_LOCALS_ADDRESS): Likewise.
2549         (SMASH_TEXT_ADDRESS): Likewise.
2550         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2551         (ABOUT_TO_RETURN): Delete, as no longer used.
2552
2553 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2554
2555         * printcmd.c (disassemble_command): Remove obsolete function.
2556         (_initialize_printcmd): Do not create disassemble command here.
2557         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2558         disassemble command.
2559         (init_cli_cmds): Create disassemble command here instead.
2560
2561 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2562
2563         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2564
2565 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2566
2567         * regcache.h (regcache_cooked_read_using_offset_hack)
2568         (regcache_cooked_write_using_offset_hack): Delete declarations.
2569         (register_changed): Delete declaration.
2570         * regcache.c (regcache_cooked_read_using_offset_hack)
2571         (regcache_cooked_write_using_offset_hack): Delete functions.
2572         (cooked_xfer_using_offset_hack): Delete function.
2573         (register_changed): Delete function.
2574
2575 2002-11-07  Jim Blandy  <jimb@redhat.com>
2576
2577         * macroscope.c: #include "complaints.h".
2578         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2579         but not in the macro table.
2580         * Makefile.in (macroscope.o): Record dependency.
2581
2582 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2583
2584         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2585
2586 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2587
2588         * regcache.c (deprecated_registers_fetched): Update.
2589         * regcache.h (deprecated_registers_fetched): Rename
2590         registers_fetched.
2591         * remote-vxsparc.c (vx_read_register): Update.
2592         * remote-vxmips.c (vx_read_register): Update.
2593         * remote-vx68.c (vx_read_register): Update.
2594         * irix5-nat.c (fetch_core_registers): Update.
2595         * mipsm3-nat.c (fetch_inferior_registers): Update.
2596         * sun3-nat.c (fetch_inferior_registers): Update.
2597         * symm-nat.c (fetch_inferior_registers): Update.
2598         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2599         (fetch_core_registers): Update.
2600         (fetch_kcore_registers): Update.
2601         * mips-nat.c (fetch_inferior_registers): Update.
2602         * corelow.c (get_core_registers): Update.
2603         * a68v-nat.c (fetch_inferior_registers): Update.
2604
2605 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2606
2607         Put in place the framework necessary for multiarching the hppa targets.
2608         * hppa-tdep.c (hppa_gdbarch_init): New function.
2609         (hppa_dump_tdep): New function.
2610         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2611         tdep structure dumper.
2612         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2613         until the multi-arching conversion has partially been completed.
2614
2615 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2616
2617         * valops.c (value_assign): Merge lval_register case into
2618         lval_reg_frame_relative.  Use frame_register and
2619         regcache_cooked_write instead of get_saved_register and
2620         write_register_bytes.  After flushing the register cache, try to
2621         re-select the selected frame.
2622
2623 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2624
2625         * regcache.h (deprecated_register_valid): Rename register_valid.
2626         * regcache.c: Update.
2627         * ia64-aix-nat.c: Update.
2628         * i386gnu-nat.c: Update.
2629         * alpha-nat.c: Update.
2630         * sparc-nat.c: Update.
2631         * lynx-nat.c: Update.
2632         * remote-mips.c: Update.
2633
2634 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2635
2636         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2637         to end of file, to be more consistent with the pratice followed
2638         by other targets.
2639
2640 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2641
2642         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2643         (print_float_info): Print registers in float_reggroup.
2644         (print_vector_info): Print registers in vector_reggroup.
2645         (default_print_registers_info): When all, print registers in
2646         all_reggroup.  Otherwize, print registers in general_reggroup.
2647         (registers_info): Rewrite.  Add support for register groups.
2648         Eliminate a goto.
2649
2650 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2651
2652         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2653         ages.
2654         (symtab_symbol_info): Remove eons old ifdeffed out code.
2655         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2656         command.
2657
2658 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2659
2660         * c-exp.y: Add missing semi-colons.
2661         * f-exp.y: Add missing semi-colons.
2662         * m2-exp.y: Add missing semi-colons.
2663         * p-exp.y: Add missing semi-colons.
2664         Add empty action to start rule to avoid a type clash error when
2665         building with bison >= 1.50.
2666
2667 2002-11-06  Jim Blandy  <jimb@redhat.com>
2668
2669         * macrotab.h (struct macro_source_file): Doc fix.
2670
2671 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2672
2673         * varobj.c (child_exists, cplus_number_of_children): Change
2674         STREQ macro references to strcmp.
2675         (cplus_name_of_child): Change code to handle the fact that
2676         fields are not necessarily contiguous with regards to their 
2677         access control. This is a fix for PR gdb/792.
2678
2679 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2680
2681         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2682         * gdbarch.h, gdbarch.c: Regnerate.
2683         * frame.h (frame_register): Declare.
2684         * frame.c (frame_register): New function.
2685         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2686         GET_SAVED_REGISTER, otherwize call
2687         generic_unwind_get_saved_register.
2688         (frame_register_read): Use frame_register instead of
2689         get_saved_register.
2690
2691 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2692         
2693         From Jim Ingham  <jingham@apple.com>:
2694         * event-top.c (gdb_disable_readline): New function.
2695         (_initialize_event_loop): Move comment.
2696
2697 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2698
2699         * event-loop.c (start_event_loop): Add comment.
2700         Update copyright.
2701
2702 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2703
2704         * infcmd.c (default_print_registers_info): Do not call
2705         PRINT_REGISTER_HOOK.
2706
2707 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2708
2709         * sparc-tdep.c (sparc_print_register_hook): Make static.
2710         (sparc_print_registers_info): New function.
2711         (sparc_do_registers_info): New function.
2712         (sparclet_print_registers_info): New function.
2713         (sparclet_do_registers_info): New function.
2714         (do_sparc_print_registers_info): New function.
2715         (sparc_print_registers): New static function, clone of infcmd.c's
2716         default_print_registers_info.
2717         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2718         (sparclet_do_registers_info): Declare.
2719         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2720         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2721         Re-define.
2722         (sparc_do_registers_info): Declare.
2723         (PRINT_REGISTER_HOOK): Delete macro.
2724         (sparc_print_register_hook): Delete declaration.
2725
2726 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2727
2728         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2729         functions.
2730         (lookup_symbol_aux_local): New function.
2731         (lookup_symbol_aux_symtabs): New function.
2732         (lookup_symbol_aux_psymtabs): New function.
2733
2734 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2735
2736         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2737         previous values of 'objfile' and 'block'.
2738
2739 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2740
2741         * values.c (value_change_enclosing_type): Set 
2742         enclosing_type field correctly also for the case where 
2743         more memory needs to be allocated.
2744
2745 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2746
2747         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2748         of puts_filtered.
2749
2750         * i387-tdep.c (i387_print_float_info): Replace calls to
2751         register_read and deprecated_read_register_gen with calls to
2752         frame_register_read, and make the necessary adjustments to the
2753         surrounding code.
2754
2755 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2756
2757         * gdbarch.sh (register_reggroup_p): Allow default value.
2758         * gdbarch.h, gdbarch.c: Regenerate.
2759
2760 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2761
2762         * regcache.h: Add coment indicating replacements for deprecated
2763         functions.
2764
2765 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2766
2767         * reggroups.h, reggroups.c: New files.
2768         * regcache.c: Include "reggroups.h".
2769         (enum regcache_dump_what): Add `regcache_dump_groups'.
2770         (regcache_dump): Contract size of the "Type" column.  When
2771         specified, dump the register's groups.
2772         (maintenance_print_register_groups): New function.
2773         (_initialize_regcache): Add command `maint print register-groups'.
2774         * Makefile.in (COMMON_OBS): Add reggroups.o
2775         (SFILES): Add reggroups.c.
2776         (reggroups_h): Define.
2777         (regcache.o, gdbarch.o): Update dependencies.
2778         (reggroups.o): Specify dependencies.
2779         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2780         Add opaque declaration for `struct reggroup' in generated .h file.
2781         Include "reggroups.h" in generated .c file.
2782         gdbarch.h, gdbarch.c: Re-generate.
2783
2784 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2785
2786         * regcache.h (deprecated_read_register_gen): Rename
2787         read_register_gen.
2788         (deprecated_write_register_gen): Rename write_register_gen.
2789         * i387-tdep.c: Update.
2790         * x86-64-linux-nat.c: Update
2791         * wince.c: Update.
2792         * thread-db.c: Update.
2793         * win32-nat.c: Update.
2794         * mips-tdep.c: Update.
2795         * d10v-tdep.c: Update.
2796         * cris-tdep.c: Update.
2797         * remote-sim.c: Update.
2798         * remote-rdi.c: Update.
2799         * remote-rdp.c: Update.
2800         * frame.c: Update.
2801         * target.c: Update.
2802         * blockframe.c: Update.
2803         * x86-64-tdep.c: Update.
2804         * xstormy16-tdep.c: Update.
2805         * sh-tdep.c: Update.
2806         * s390-tdep.c: Update.
2807         * rs6000-tdep.c: Update.
2808         * sparc-tdep.c: Update.
2809         * i386-tdep.c: Update.
2810         * dwarf2cfi.c: Update.
2811         * regcache.c: Update.
2812
2813 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2814
2815         New interix-specific files:
2816         * config/i386/nm-interix.h: New file.
2817         * config/i386/interix.mh: New file.
2818         * config/i386/interix.mt: New file.
2819         * i386-interix-nat.c: New file.
2820         * i386-interix-tdep.c: New file.
2821
2822 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2823
2824         * frame.h (deprecated_generic_get_saved_register): Rename
2825         generic_get_saved_register.
2826         * blockframe.c (deprecated_generic_get_saved_register): Update.
2827         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2828         (xstormy16_frame_saved_register): Update.
2829         * sh-tdep.c (sh_gdbarch_init): Update.
2830         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2831         * ia64-tdep.c (ia64_get_saved_register): Update.
2832         * cris-tdep.c (cris_gdbarch_init): Update.
2833         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2834         * arm-tdep.c (arm_gdbarch_init): Update.
2835
2836 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2837
2838         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2839
2840 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2841
2842         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2843         trampolines in sigaction.
2844
2845 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2846
2847         * h8300-tdep.c: Include "gdb_assert.h".
2848         (h8300_print_register): Add gdbarch, file and frame parameters.
2849         Use frame_read_unsigned_register to read the register's value.
2850         Use fprintf_filtered to display output.
2851         (h8300_print_registers_info): Replace h8300_do_registers_info.
2852         (h8300_gdbarch_init): Set print_registers_info.
2853
2854 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2855
2856         * frame.c (frame_read_unsigned_register): New function.
2857         (frame_read_signed_register): New function.
2858         * frame.h (frame_read_unsigned_register): Declare.
2859         (frame_read_signed_register): Declare.
2860
2861 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2862
2863         * h8500-tdep.c (h8500_print_registers_info): New static function,
2864         clone of infcmd.c's default_print_registers_info.
2865         (h8500_do_registers_info): New funtion.
2866         (h8500_print_register_hook): Rename print_register_hook, make
2867         static.
2868
2869         * config/h8500/tm-h8500.h: Update copyright.
2870         (DEPRECATED_DO_REGISTERS_INFO): Define.
2871         (h8500_do_registers_info: Declare.
2872         (PRINT_REGISTER_HOOK): Delete macro.
2873         (print_register_hook): Delete function.
2874
2875 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2876
2877         * z8k-tdep.c (z8k_print_register_hook): Make static.
2878         (z8k_print_registers_info): New static function, clone of
2879         infcmd.c's default_print_registers_info.
2880         (z8k_do_registers_info): New function.  Wrap
2881         z8k_print_registers_info.
2882         * config/z8k/tm-z8k.h: Update copyright.
2883         (PRINT_REGISTER_HOOK): Delete macro.
2884         (z8k_print_register_hook): Delete declaration.
2885         (DEPRECATED_DO_REGISTERS_INFO): Define.
2886         (z8k_do_registers_info): Declare.
2887
2888 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2889
2890         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2891         as this is already provided by value.h, and was actually causing
2892         a compilation error because of a conflict in parameter type
2893         declaration due to a missing const keyword.
2894         (low_text_segment_addres): Fix a compilation warning.
2895
2896 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2897
2898         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2899         registers without a name.
2900         (mips_linux_cannot_store_register): Don't store registers without
2901         a name.
2902
2903 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2904
2905         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2906         out.)
2907         * symtab.h: Delete prototype for find_addr_symbol.
2908
2909 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2910
2911         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2912         DO_REGISTERS_INFO.
2913         gdbarch.h, gdbarch.c: Re-generate.
2914         * infcmd.c (default_print_registers_info): Update reference.
2915         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2916         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2917         * sh-tdep.c (sh_gdbarch_init): Ditto.
2918         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2919         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2920
2921 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2922
2923         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2924         cfi_init_extra_frame_info.
2925         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2926         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2927
2928         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2929         target where necessary.  Add more comments and remove the ones
2930         that don't provide any useful information.
2931
2932         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2933         deprecated_read_register_dummy with
2934         frame_unwind_unsigned_register.
2935
2936         * i386-tdep.c (i386_extract_struct_value_address): Use
2937         regcache_raw_read_unsigned instead of
2938         regcache_cooked_read_unsigned since we know that the register
2939         we're reading isn't a pseudo register.  Rename variable 'val' into
2940         the more descriptive 'addr'.
2941
2942         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2943         (x86_64_push_return_address): Add comment.
2944         (x86_64_pop_frame): Make static.
2945         (examine_argument): Clarify comment.
2946         (x86_64_skip_prologue): Make prolog_expact variable static.
2947
2948         * dwarf2cfi.c: Fix some formatting problems.
2949         (context_cpy, read_encoded_pointer): Clarify comments.
2950
2951         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2952         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2953         i386 target back into x86_64_gdbarch_init.  Add some comments and
2954         remove meaningless ones.
2955
2956 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2957
2958         * complaints.h (struct deprecated_complaint): Rename `struct
2959         complaint'.
2960         * complaints.c (complain): Update.
2961         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2962         incorrect comment indicating that "symfile.h" was being included
2963         for the `struct complaint' definition.
2964         * remote-vx.c: Update.
2965         * objc-lang.c: Update.
2966         * xcoffread.c: Update.
2967         * hpread.c: Update.
2968         * mdebugread.c: Update.
2969         * stabsread.c: Update.
2970         * dwarf2read.c: Update.
2971         * dwarfread.c: Update.
2972         * elfread.c: Update.
2973         * coffread.c: Update.
2974         * stabsread.h: Update.
2975         * dbxread.c: Update.
2976         * buildsym.c: Update.
2977         * gdbtypes.c: Update.
2978         * macrotab.c: Update.
2979
2980 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2981
2982         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2983         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2984         (x86_64_init_abi): ...new function.
2985
2986         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2987         * i386v-nat.c: Include "i386-tdep.h".
2988
2989 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2990
2991         * gdbtypes.c (address_space_name_to_int): Update.
2992         (address_space_int_to_name): Update.
2993         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2994         multi-arch predicate.
2995         (address_class_name_to_type_flags): Ditto.
2996         * gdbarch.h, gdbarch.c: Re-generate.
2997         
2998         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2999
3000 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3001
3002         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3003
3004 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3005
3006         * symtab.h (INIT_SAL): Delete macro.
3007         (init_sal): Export.
3008         * symtab.c (init_sal): New function.
3009
3010         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3011         to init_sal function call.
3012         (find_sal_from_funcs_and_line): Ditto.
3013         (all_sals_for_line): Ditto. 
3014         * breakpoint.c (create_internal_breakpoint): Ditto. 
3015         (create_fork_vfork_event_catchpoint): Ditto. 
3016         (create_exec_event_catchpoint): Ditto. 
3017         (parse_breakpoint_sals): Ditto. 
3018         (watch_command_1): Ditto. 
3019         (handle_gnu_4_16_catch_command): Ditto.
3020         (clear_command): Ditto. 
3021         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3022         * infcmd.c (run_stack_dummy): Ditto. 
3023         * infrun.c (process_event_stop_test): Ditto.
3024         (check_sigtramp2): Ditto.
3025         (step_over_function): Ditto. 
3026         * linespec.c (decode_line_2): Ditto. 
3027         (decode_line_1): Ditto. 
3028         * source.c (line_info): Ditto. 
3029         * symtab.c (find_pc_sect_line): Ditto.
3030
3031 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3032
3033         * dwarf2cfi.c (struct context)
3034         (struct context_reg): Moved to dwarf2cfi.h
3035         (context_alloc, frame_state_alloc, context_cpy):
3036         Made extern instead of static, removed prototypes.
3037         * dwarf2cfi.h (struct context)
3038         (struct context_reg): New, moved from dwarf2cfi.c
3039         (context_alloc, frame_state_alloc, context_cpy):
3040         New prototypes.
3041         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3042         Changed from static to extern.
3043         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3044         (LINUX_SIGCONTEXT_FP_OFFSET)
3045         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3046         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3047         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3048         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3049         set_gdbarch_*() calls now use x86-64 specific functions 
3050         instead of DWARF2 CFI ones.
3051         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3052         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3053         (x86_64_init_extra_frame_info): New prototypes.
3054         
3055 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3056
3057         * linespec.c: #include "parser-defs.h".
3058         Delete prototype for find_template_name_end.
3059         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3060
3061 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3062
3063         * NEWS: add recent mi fixes.
3064         * varobj.c (struct varobj): Add new "updated" flag.
3065         (new_variable): Default "updated" flag to 0.
3066         (varobj_set_value): Set "updated" flag to 1 if value
3067         changes.
3068         (varobj_update): Check varobj "updated" flag before
3069         comparing old and refreshed values.  Fix for
3070         PR gdb/702.
3071
3072 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3073
3074         * parse.c (parse_exp_1): Use BLOCK_START.
3075         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3076         SYMBOL_BLOCK_VALUE.
3077         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3078
3079 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3080
3081         * symtab.c: Delete cplusplus_hint.
3082         Delete prototype for find_template_name_end.
3083
3084 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3085
3086         * symtab.h: Update comment.
3087
3088 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3089
3090         * printcmd.c (address_info): Restore quotes in output.
3091         * valops.c (value_of_local): Restore quotes in error message.
3092
3093 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3094
3095         * symtab.c (symbol_demangled_name): New function.
3096         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3097         turning most of it into a function.
3098         (symbol_demangled_name): Export.
3099
3100 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3101
3102         * valops.c (value_of_local): Restore quotes in error message.
3103
3104 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3105
3106         * symtab.c (symbol_init_language_specific): New function.
3107         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3108         turning most of it into a function.
3109         (symbol_init_language_specific): Export.
3110
3111 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3112
3113         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3114         (dwarf_attr_name): Ditto.
3115         (dwarf_type_encoding_name): Ditto.
3116         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3117         (process_die): Handle DW_TAG_namespace,
3118         DW_TAG_imported_declaration, DW_TAG_imported_module.
3119         (read_namespace): New function.
3120
3121 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3122
3123         * configure.in: Define NEW_PROC_API on Interix too.
3124         * configure: Regenerate.
3125
3126 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3127
3128         * configure: Regenerate using the proper version of autoconf.
3129
3130 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3131
3132         * findvar.c (read_var_value): Temporarily disable TLS code, until
3133         complete TLS support is added.
3134
3135 2002-10-21  Jim Blandy  <jimb@redhat.com>
3136             Elena Zannoni  <ezannoni@redhat.com>
3137
3138         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3139         for thread local storage locations.
3140         (struct symbol): Add objfile field.
3141         (SYMBOL_OBJFILE): Define.
3142         * dwarf2read.c (is_thread_local): New static variable.
3143         (new_symbol): If variable is in thread local fill in address class
3144         and objfile appropriately.
3145         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3146         stack operation.
3147         * printcmd.c (address_info): Print the information for thread
3148         local storage variable.
3149         * findvar.c (read_var_value): In case of thread local variable,
3150         defer to the target vector code to compute address.
3151
3152 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3153
3154         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3155         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3156
3157 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3158
3159         * symtab.h (address_class):  Rename
3160         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3161         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3162         * printcmd.c (address_info): Ditto.
3163         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3164
3165 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3166
3167         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3168         DBREG_DRX macro to acces debug registers.
3169
3170         * Makefile.in (i386obsd-tdep.o): New target.
3171
3172         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3173         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3174
3175         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3176         * config/i386/obsd.mt: New file.
3177         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3178         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3179         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3180         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3181         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3182         * i386obsd-tdep.c: New file.
3183
3184 2002-10-19  Adam Fedor  <fedor@gnu.org>
3185
3186         * objc-exp.y (name_not_typename): Fix invalid comment.  
3187
3188 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3189
3190         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3191         to allocate partial syms and macro byte caches.
3192
3193 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3194
3195         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3196
3197 2002-10-18  Adam Fedor  <fedor@gnu.org>
3198
3199         * stabsread.c (find_name_end): New function.
3200         (define_symbol): Use it.
3201
3202 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3203
3204         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3205         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3206         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3207         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3208
3209 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3210
3211         * symfile.h: Add opaque declaration for struct obstack.
3212         Declare obsavestring to take a const char *.
3213         * symfile.c (obsavestring): Make first argument a const char *.
3214
3215 2002-10-16  Adam Fedor  <fedor@gnu.org>
3216
3217         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3218         names when matching breakpoints in current file.
3219
3220 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3221
3222         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3223         (read_tag_pointer_type): Add address class support.
3224         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3225         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3226         New methods.
3227         * gdbarch.h, gdbarch.c: Regenerate.
3228         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3229         (make_type_with_address_space, recursive_type_dump): Add address
3230         class support.
3231         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3232         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3233         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3234
3235 2002-10-16  Klee Dienes  <kdienes@apple.com>
3236
3237         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3238         to get the last character of a char[] buffer, not
3239         name[sizeof(vptr_name)-1].
3240
3241 2002-10-14  Adam Fedor  <fedor@gnu.org>
3242
3243         * symtab.h: New objc_specific struct.
3244         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3245         (SYMBOL_DEMANGLED_NAME): Likewise.
3246
3247 2002-10-14  Adam Fedor  <fedor@gnu.org>
3248
3249         * symfile.c (init_filename_language_table): Add ObjC file extension.
3250
3251 2002-10-14  Adam Fedor  <fedor@gnu.org>
3252
3253         * utils.c (puts_filtered_tabular): New function.
3254         (fprintf_symbol_filtered): Get ObjC demangled name.
3255         * defs.h (puts_filtered_tabular): Declared.
3256
3257 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3258
3259         * c-lang.h (c_type_print_varspec_prefix): Delete.
3260         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3261         ``need_post_space'' parameter.  Adjust all callers.
3262
3263 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3264  
3265         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3266         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3267         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3268         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3269
3270 2002-10-13  Adam Fedor  <fedor@gnu.org>
3271
3272         * source.c (print_source_lines): Update comments.
3273
3274 2002-10-13  Adam Fedor  <fedor@gnu.org>
3275
3276         * valops.c (value_of_local): New function.
3277         (value_of_this): Use it.
3278         * value.h (value_of_local): Declared.
3279
3280 2002-10-13  Adam Fedor  <fedor@gnu.org>
3281
3282         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3283         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3284
3285 2002-10-12  Adam Fedor  <fedor@gnu.org>
3286
3287         * language.c (binop_result_type): Add language_objc to case.
3288         (integral_type): Likewise.
3289         (character_type): Likewise.
3290         (string_type): Likewise.
3291         (boolean_type): Likewise.
3292         (structured_type): Likewise.
3293         (binop_type_check): Likewise.
3294
3295 2002-10-11  Adam Fedor  <fedor@gnu.org>
3296
3297         * printcmd.c (address_info): Print 'self' for ObjC.
3298
3299 2002-10-11  Adam Fedor  <fedor@gnu.org>
3300
3301         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3302         OP_SELF.
3303
3304 2002-10-11  Adam Fedor  <fedor@gnu.org>
3305
3306         * language.h (CAST_IS_CONVERSION): Add language_objc.
3307
3308 2002-10-11  Adam Fedor  <fedor@gnu.org>
3309
3310         * defs.h (enum language): Add language_objc.
3311
3312 2002-10-11  Klee Dienes  <kdienes@apple.com>
3313
3314         * corefile.c (read_memory_typed_address): New function.
3315         * gdbcore.h (read_memory_typed_address): Add prototype.
3316         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3317         to read a value destined for a CORE_ADDR, not read_memory_integer.
3318         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3319         (f77_get_dynamic_lowerbound): Ditto.
3320
3321 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3322
3323         * utils.c (string_to_core_addr): After turning string into
3324         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3325         which will do necessary sign-extension, etc.
3326
3327 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3328
3329         * c-exp.y (THIS): Delete token and grammar rule.
3330         (yylex): Don't return THIS.
3331         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3332         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3333         * demangle.c (cplus_markers): Update comment.  Put '$'
3334         first.  Remove CPLUS_MARKER.
3335         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3336         * jv-exp.y (THIS): Delete token and grammar rule.
3337         (yylex): Don't return THIS.
3338         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3339         * objc-exp.y (THIS): Delete token and grammar rule.
3340         (yylex): Don't return THIS.
3341         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3342         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3343         (read_member_functions): Likewise for opname.
3344         (read_tilde_fields): Use is_cplus_marker.
3345
3346         * defs.h (CPLUS_MARKER): Don't define.
3347         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3348         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3349         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3350         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3351         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3352
3353         * config/i386/tm-i386v4.h: Delete file.
3354         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3355         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3356         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3357         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3358         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3359         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3360         * config/i386/i386v4.mt (TM_FILE): Likewise.
3361         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3362
3363 2002-10-10  Marko Mlinar  <markom@opencores.org>
3364
3365         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3366         accidentially not commited 2002-10-09
3367         * gdbarch.h, gdbarch.c: Re-generate.
3368
3369 2002-10-09  Marko Mlinar  <markom@opencores.org>
3370
3371         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3372         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3373         * gdbarch.h, gdbarch.c: Re-generate.
3374
3375 2002-10-08  Petr Sorfa <petrs@caldera.com>
3376
3377         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3378
3379         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3380         so we can work on more than one compilation unit at a time.  This
3381         helps prepare GDB to handle inter-CU die references.
3382         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3383         the code to be defined before struct comp_unit_head.
3384         (comp_unit_head): Added new members - offset, cu_head,
3385         begin_die, next and dwarf2_abbrevs.
3386         (dwarf2_abbrevs): Removed single static var; now member of
3387         struct comp_unit_head.
3388         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3389         members.
3390         (psymtab_to_symtab_1): Changed to work with the new
3391         struct comp_unit_head.
3392         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3393         constructs the dwarf2_abbrevs[] inside the cu_header.
3394         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3395         dwarf2_abbrev table to clean up.
3396         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3397         handling of dwarf2_abbrevs inside the cu_header.
3398         (read_partial_die): Now supports the call to the new
3399         dwarf2_lookup_abbrev.
3400         (read_full_die): Now supports the call to the new
3401         dwarf2_lookup_abbrev.
3402
3403 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3404
3405         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3406         insure that shell variables, such as "transformed_name" are propagated
3407         to later shell statements in rule.
3408
3409 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3410
3411         * config/i386/nm-i386sco.h: Add protection against
3412         multiple-inclusion.  Include "i386/nm-i386v.h".
3413         (REGISTER_U_ADDR): Remove define.
3414         (i386_register_u_addr): Remove prototype.
3415
3416 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3417
3418         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3419         before treating it as a single-step event.
3420
3421 2002-10-03  Adam Fedor  <fedor@gnu.org>
3422
3423         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3424         (objc_demangle): Remove assignment in if statements, Replace
3425         free with xfree.
3426         (add_msglist): Likewise.
3427         (end_msglist): Likewise.
3428         (complare_selectors): Likewise.
3429         (selectors_info): Likewise.
3430         (compare_classes): Likewise.
3431         (classes_info): Likewise.
3432         (print_object_command): Likewise.
3433         (find_objc_msgcall_submethod): Replace PTR with void *.
3434         * objc-lang.h: Remove check for __STDC__.
3435
3436 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3437
3438         * ui-out.h (ui_out_field_fmt_int): New prototype.
3439         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3440         of field width and alignment.
3441         * stack.c (print_frame_info_base): When printing frame level, use
3442         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3443         PR gdb/192
3444
3445 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3446
3447         * MAINTAINERS: Add self to Write After Approval list.
3448
3449 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3450
3451         * infcmd.c (interrupt_target_command_wrapper): Delete.
3452         (interrupt_target_command): Make non static.
3453         (nofp_registers_info): Make static.
3454         * stack.c (return_command_wrapper): Delete.
3455         (return_command): Make non static.
3456
3457 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3458
3459         * event-top.c (gdb_setup_readline): New function. Code moved from
3460         _initialize_event_loop().
3461         (_initialize_event_loop): Call gdb_setup_readline().
3462
3463 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3464
3465         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3466         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3467         * gdbarch.h, gdbarch.c: Re-generate.
3468
3469 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3470
3471         Fix PR gdb/778
3472         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3473         before recursing.
3474         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3475         of fill_in_vptr_fieldno.
3476
3477 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3478
3479         * inferior.h (registers_info, stepi_command, nexti_command,
3480         continue_command, interrupt_target_command): Export from infcmd.c.
3481         * frame.h (args_info, selected_frame_level_changed_hook,
3482         return_command): Export from stack.c.
3483         * v850ice.c (stepi_command, nexti_command, continue_command): use
3484         prototypes from inferior.h.
3485         * tracepoint.c (registers_info, args_info, locals_info): Use
3486         prototypes from frame.h and inferior.h.
3487         * Makefile.in (mi-main.o): Add dependency on frame.h.
3488
3489 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3490
3491         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3492         value in register 3 adjusted by ppc_gp0_regnum.
3493
3494         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3495
3496 2002-10-02  Marko Mlinar <markom@opencores.org>
3497
3498         * MAINTAINERS: Add myself to the Write After Approval list.
3499
3500 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3501
3502         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3503         of the section for the N64 ABI, fixed.
3504
3505         * config/mips/tm-irix6.h: Include solib.h.
3506
3507 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3508
3509         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3510         GNU operators.
3511
3512 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3513
3514         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3515         and that "mi0" syntax has been removed.
3516
3517 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3518
3519         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3520         * ppc-sysv-tdep.c: #include "gdb_string.h".
3521         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3522         pacify GCC.
3523
3524 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3525
3526         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3527         "vrsave"'s register number.
3528
3529 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3530
3531         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3532         use frame_unwind_signed_register to obtain the PC.
3533         (mips_frame_chain): Handle a generic dummy frame.
3534         (mips_init_extra_frame_info): When a generic dummy frame, don't
3535         re-compute the frame base.
3536         (mips_pop_frame): Handle generic dummy frames.
3537         (mips_gdbarch_init): When generic dummy frames, set
3538         use_generic_dummy_frames, push_dummy_frame to
3539         generic_push_dummy_frame, pc_in_call_dummy to
3540         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3541         generic_save_dummy_frame_tos.
3542
3543 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3544
3545         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3546         against TOP when TOP was explictly set.
3547         (generic_push_dummy_frame): Set TOP to zero.
3548
3549 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3550
3551         * event-loop.c (start_event_loop): Rename variable 'result' to
3552         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3553
3554 2002-09-30  Keith Seitz  <keiths@redhat.com>
3555
3556         * gdb-events.sh (selected_thread_changed): New event.
3557         * gdb-events.c: Regenerated.
3558         * gdb-events.h: Regenerated.
3559
3560 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3561
3562         * MAINTAINERS: Add self to Write After Approval list.
3563
3564 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3565
3566         * disasm.c: New file.  
3567         * disasm.h: New file.  
3568         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3569         (compare_lines): Ditto.
3570         (dump_insns): Ditto.
3571         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3572         argument.
3573         (do_assembly_only): Ditto.
3574         (do_disassembly): Renamed to gdb_disassembly and moved to
3575         disasm.c.  Sdded uiout argument.
3576         * Makefile.in: Add new files.  Reorder SFILES list. Update
3577         dependencies.  Include libgdb.a later in the insight executable.
3578
3579 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3580
3581         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3582         bfd/elf64-alpha-fbsd.c.
3583
3584 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3585
3586         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3587         i386gnu-tdep.c.
3588
3589 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3590
3591         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3592         __FUNCTION__.
3593         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3594         function name.
3595         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3596         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3597         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3598         (S_msg_sig_post_reply): Ditto.
3599         
3600 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3601
3602         * sh-tdep.c (sh_use_struct_convention): Use definition according
3603         to ABI.
3604         (sh_push_arguments): Store in register with correct endianess.
3605         (sh_default_store_return_value): Ditto.
3606         (sh_gdbarch_init): Set sizeof long double to 8.
3607
3608 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3609
3610         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3611         Fix some whitespace problems.
3612
3613 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3614
3615         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3616         (mcore-tdep.o): Ditto.
3617         (ns32k-tdep.o): Ditto.
3618         (ns32knbsd-tdep.o): Ditto.
3619         (sh3-rom.o): Ditto.
3620         (vax-tdep.o): Ditto.
3621         * cris-tdep.c: #include "gdb_string.h"
3622         * mcore-tdep.c: Ditto.
3623         * ns32k-tdep.c: Ditto.
3624         * ns32knbsd-tdep.c: Ditto.
3625         * sh3-rom.c: Ditto.
3626         * vax-tdep.c: Ditto.
3627
3628 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3629
3630         * config/djgpp/fnchange.lst: Add entries for
3631         gdb/testsuite/gdb.c++/m-static files.
3632
3633 2002-09-27  Jim Wilson  <wilson@redhat.com>
3634
3635         * MAINTAINERS: Add myself to the Write After Approval list.
3636
3637 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3638
3639         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3640
3641
3642 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3643
3644         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3645         frame.
3646
3647 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3648
3649         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3650         (rs6000_struct_return_address): Delete variable.
3651         (rs6000_store_struct_return): Update.
3652         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3653         deprecated_extract_struct_value_address.
3654         (rs6000_frame_align): New function.
3655         (rs6000_gdbarch_init): Set frame_align.
3656
3657 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3658
3659         From Grace Sainsbury <graces@redhat.com>:
3660         * Makefile.in (gdbtk-main.o): New target.
3661         (gdb.o): New target.
3662         (main_h): Define.
3663         (main.o): Update dependencies.
3664         (gdb$(EXEEXT)): Add gdb.o.
3665         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3666         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3667         (SUBDIR_GDBTK_CLEAN): Set.
3668         (install-gdbtk): Install the insight binary.
3669         (uninstall-gdbtk): New target.
3670         (all-gdbtk, clean-gdbtk): New rule.
3671         * top.c (use_windows): Default to zero.
3672         * main.c: Include "main.h".
3673         (main): Delete.
3674         (struct captured_main_args): Delete.
3675         (gdb_main): New function.
3676         * main.h: New file.
3677         * gdb.c: New File.
3678
3679 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3680
3681         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3682         (frame_map_regnum_to_name): New function.
3683         (frame_map_name_to_regnum): New function.
3684         * frame.h (frame_map_name_to_regnum): Declare.
3685         (frame_map_regnum_to_name): Declare.
3686         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3687         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3688         * parse.c: Do not include "builtin-regs.h".
3689         (target_map_name_to_register): Delete function.
3690         (write_dollar_variable): Use frame_map_name_to_regnum.
3691         * parser-defs.h (target_map_name_to_register): Delete declaration.
3692         * expprint.c: Include "frame.h".
3693         (print_subexp): Use frame_map_regnum_to_name.
3694         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3695         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3696
3697 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3698
3699         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3700         wasn't saved, and the next innermost frame is a dummy, return the
3701         dummy frame's link register.
3702
3703 2002-09-24  Jim Blandy  <jimb@redhat.com>
3704
3705         Fix from Paul Breed:
3706         * main.c (captured_main): Add a `break' after the case for 'b'.
3707
3708 2002-09-24  Keith Seitz  <keiths@redhat.com>
3709
3710         * varobj.c (c_type_of_child): Use get_target_type instead
3711         of TYPE_TARGET_TYPE.
3712
3713 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3714
3715         * source.c (get_current_or_default_source_symtab_and_line): Remove
3716         function.
3717         (set_default_source_symtab_and_line): New function. Attempts to
3718         determine a source file to list lines from if one is not currently
3719         defined.
3720         (get_current_source_symtab_and_line): Initialize sal.pc and
3721         sal.end fields.
3722         (set_current_source_symtab_and_line): Mark argument as const.
3723         * source.h: Update declarations and comments.
3724         * linespec.c (decode_line_1): Replace call to removed routine above.
3725         * stack.c (print_frame_info_base): Ditto.
3726         * cli/cli-cmds.c (edit_command): Ditto.
3727         (list_command): Ditto.
3728
3729 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3730
3731         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3732         sal.pc and sal.end fields.
3733         (get_current_or_default_source_symtab_and_line): Ditto.
3734         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3735         so we do not cause a new source symtab to be searched for (reverting an
3736         unintentional change from the 2002-09-20 patch).
3737         * scm-lang.c (scm_unpac): Ditto.
3738
3739 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3740
3741         * complaints.c (symfile_explanations): Remove new-line from
3742         ``isolated_message''.
3743         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3744         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3745
3746 2002-09-20  Nick Clifton  <nickc@redhat.com>
3747         
3748         * NEWS: Announce that V850EA ISA is no longer supported.
3749         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3750
3751 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3752
3753         * Makefile.in (c-lang.o): Correct dependencies.
3754         (utils.o): Gather dependencies.
3755         (charset.o): Move.
3756         * c-lang.c: #include "gdb_string.h"
3757
3758 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3759
3760         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3761         * cli/cli-cmds.c (list_command): New function.  Implements the new
3762         cli edit command.
3763         (_init_cli_cmds): Add new command definition.
3764         * gdb.1: Document edit command.
3765         * doc/gdb.texinfo: Document edit command.
3766
3767 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3768
3769         * source.c: Make global variables current_source_symtab and
3770         current_source_line static.
3771         (list_command): Moved to cli/cli-cmds.c.
3772         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3773         (get_first_line_listed): New accessor function.
3774         (get_lines_to_list): New accessor function.
3775         (get_current_source_symtab_and_line): New function. Retrieves the
3776         position in the source code that we consider current.
3777         (get_current_or_default_source_symtab_and_line): New function.
3778         Like the above but attempts to determine a default position if one
3779         is not currently defined.
3780         (set_current_source_symtab_and_line): New function. Sets the source
3781         code position considered current and returns the previously set one.
3782         (clear_current_source_symtab_and_line): Reset stored information about
3783         a current source line.
3784         (_initialize_source): Remove registration for the "list" command and
3785         its alias.
3786         * source.h: Add declarations for the new functions above.
3787         * symtab.h: Remove declarations for the global variables mentioned
3788         above.
3789         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3790         obtain current source line.
3791         * linespec.c (decode_line_1): Ditto.
3792         * macroscope.c (default_macro_scope): Ditto.
3793         * scm-lang.c (scm_unpac): Ditto.
3794         * stack.c (print_frame_info_base): Ditto.
3795         * symfile.c (clear_symtab_users): Ditto.
3796         * symtab.c (decode_line_spec): Ditto.
3797         * cli/cli-cmds.c (list_command): Moved here from source.c.
3798         (ambiguous_line_spec): Moved here from source.c.
3799         (_init_cli_cmds): Add definition for "list" and its alias.
3800         * Makefile.in: Update dependencies.
3801
3802 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3803
3804         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3805         with what gcc thinks is correct.
3806
3807 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3808
3809         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3810         multiple register push instruction.
3811
3812 2002-09-19  Jim Blandy  <jimb@redhat.com>
3813
3814         Add support for distinct host and target character sets.
3815         * charset.c, charset.h: New files.
3816         * c-exp.y: #include "charset.h".
3817         (yylex): Convert character and string literals to the target
3818         character set, before returning them as the semantic value of the
3819         token.
3820         * c-lang.c: #include "charset.h".
3821         (c_emit_char): Use charset-specific methods to recognize
3822         characters with backslash escape forms, to decide which characters
3823         to print literally and which to print using numeric escape
3824         sequences, and to convert target characters to host characters
3825         before printing.
3826         * utils.c: #include "charset.h".
3827         (no_control_char_error): New function.
3828         (parse_escape): Use charset-specific methods to recognize
3829         backslash escapes, parse `control character' notation, and convert
3830         characters from the host character set to the target character set.
3831         * configure.in: Set the default host character set.
3832         Check where to find iconv, and what its argument types might be.
3833         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3834         * Makefile.in (SFILES): List charset.c.
3835         (COMMON_OBS): List charset.o.   
3836         (charset.o): New rule.
3837         (charset_h): New header dependency variable.
3838         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3839         (LIBICONV): New variable, set by configure.
3840         (CLIBS): Include $(LIBICONV) here.
3841         * aclocal.m4, config.in, configure: Regenerated.
3842
3843 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3844
3845         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3846         bison 1.35 warning.
3847
3848 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3849
3850         * gdb_mbuild.sh: New file.
3851
3852 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3853
3854         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3855
3856 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3857
3858         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3859         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3860         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3861         valops.c, value.h: Revert previous change.
3862         
3863 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3864
3865         Preliminary support for Objective-C:
3866         * defs.h (language_objc): New enum value.
3867         (puts_filtered_tabular): Declaration only, exported from utils.c.
3868         (skip_quoted): Delete, declared in completer.h.
3869         * c-exp.y: Include completer.h.
3870         * p-exp.y: Ditto.
3871         * jv-exp.y: Ditto.
3872         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3873         New operator enum values.
3874         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3875         * language.c (binop_result_type): Handle language_objc case.
3876         (integral_type, character_type, string_type, boolean_type,
3877         structured_type, binop_type_check): Ditto.
3878         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3879         (struct objc_specific): Add to general_symbol_info.
3880         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3881         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3882         * parser-defs.h (struct objc_class_str): New struct type.
3883         (start_msglist, end_msglist, add_msglist): Declaration only,
3884         exported from objc-lang.c.
3885         * value.h (value_of_local, value_nsstring, 
3886         call_function_by_hand_expecting_type): Exported from valops.c.
3887         * valops.c (find_function_addr): Export.
3888         (call_function_by_hand_expecting_type): New function.
3889         (value_of_local): New function.
3890         * symfile.c (init_filename_language_table): Add ".m" extension
3891         for Objective-C.
3892         * utils.c (puts_filtered_tabular): New function.
3893         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3894         (set/show demangle): Extend help-string to refer to ObjC.
3895         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3896         * stabsread.c (symbol_reference_defined): Objective-C symbols
3897         may contain colons: make allowances when scanning stabs strings
3898         for colons.
3899         (objc_find_colon): New function.
3900         * printcmd.c (address_info): If language == objc then print
3901         "self" instead of "this".
3902         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3903         OP_NSSTRING, and OP_SELF.
3904         (prefixify_subexp): Ditto.
3905         * source.c (print_source_lines): Mention objc in comment.
3906         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3907         method names.
3908
3909 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3910
3911         * complaints.h: Update copyright.
3912         (struct complaints): Declare.
3913         (struct complaint): Make `message' constant.
3914         (internal_complaint): Declare.
3915         (complaint): Declare.
3916         (complaint_root): Delete declaration.
3917         (symfile_complaints): Delete declaration.
3918         (struct complaints): Add opaque declaration.
3919         (clear_complaints): Add a complaints parameter.
3920         * complaints.c: Update copyright.
3921         (enum complaint_series): Define.
3922         (complaint_root): Delete.
3923         (struct complaints): Define.
3924         (complaint_sentinel, symfile_complaint_book): New variables.
3925         (symfile_explanations, symfile_complaints): New variables.
3926         New variables.
3927         (get_complaints): New function.
3928         (vcomplaint): New function.
3929         (complaint): New function.
3930         (internal_complaint): New function.
3931         (complain): Call vcomplain with symfile_complaint.
3932         (clear_complaints): Rewrite.
3933         (_initialize_complaints): Use add_setshow_command.
3934         * Makefile.in (complaints.o): Update dependencies.
3935         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3936         to call to clear_complaints.
3937         (new_symfile_objfile, reread_symbols): Ditto.
3938         (oldsyms_complaint): Delete.
3939         (empty_symtab_complaint, unknown_option_complaint): Delete.
3940         (free_named_symtabs): Use complaint instead of complain.
3941
3942 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3943
3944         Contributed by Apple Computer, Inc.  Merged with current sources
3945         by Adam Fedor <fedor@doc.com> [cagney].
3946         
3947         * objc-lang.c: First clean-up round: comments, indentation.
3948         * objc-lang.h: Ditto.
3949         * objc-lang.y: Ditto.
3950
3951 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3952
3953         * maint.c (maintenance_internal_error): Print the parameter as the
3954         error message.
3955         (maintenance_internal_warning): New function.
3956         (_initialize_maint_cmds): Add command `maint internal-warning'.
3957
3958         * defs.h (internal_warning, internal_vwarning): Declare.
3959         * utils.c (struct internal_problem): Define.
3960         (internal_vproblem): New function.
3961         (internal_warning): New function.
3962         (internal_vwarning): New function.
3963         (internal_warning_problem, internal_error_problem): New variables.
3964         (internal_verror): Just call internal_vproblem.
3965
3966 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3967
3968         * objc-lang.c: New file, support for Objective-C.
3969         Preliminary check-in, not yet integrated into gdb.
3970         * objc-lang.h: New file.
3971         * objc-exp.y:  New file.
3972
3973 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3974
3975         * infrun.c (signal_stop_update): Convert definition to ISO C.
3976         (signal_print_update): Ditto.
3977         (signal_pass_update): Ditto.
3978         * inflow.c (terminal_save_ours): Ditto.
3979
3980         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3981         comments.
3982         
3983         * config/djgpp/fnchange.lst: Handle name clashes between
3984         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3985         bfd/coff-tic80.c.
3986
3987         * i386-linux-tdep.h: Fix tipo.
3988
3989 2002-09-18  Adam Fedor  <fedor@gnu.org>
3990
3991         * MAINTAINERS: Add myself to the Write After Approval list.
3992
3993 2002-09-18  Jim Blandy  <jimb@redhat.com>
3994
3995         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3996         texthigh and textlow to reader-specific structs caused
3997         objfile_relocate to miss them.  This is fixable, but the work that
3998         the change was supposed to prepare GDB for never got done anyway.
3999
4000 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4001
4002         * MAINTAINERS: Alphabetize Write After Approval list.
4003
4004 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4005
4006         Fix PR gdb/709
4007         * values.c (value_static_field): Call read_var_value.
4008
4009 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4010
4011         * valops.c (hand_function_call): Align the initial stack pointer
4012         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4013         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4014         return value.
4015         * mips-tdep.c (mips_frame_align): New function.
4016         (mips_gdbarch_init): Set frame_align.
4017         * gdbarch.sh (FRAME_ALIGN): New method.
4018         * gdbarch.h, gdbarch.c: Re-generate.
4019
4020 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4021
4022         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4023         registers.
4024
4025 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4026
4027         * NEWS: Mention that MIPS $fp behavior changed.
4028         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4029         reference to FP_REGNUM.
4030         (mipsnbsd_cannot_store_register): Ditto.
4031         * mips-linux-nat.c: Update copyright.
4032         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4033         (mips_linux_cannot_store_register): Ditto.
4034         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4035         * config/mips/tm-mips.h: Update copyright.
4036         (FP_REGNUM): Delete macro.
4037         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4038         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4039         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4040         (mips_r3041_reg_names, mips_r3051_reg_names)
4041         (mips_r3081_reg_names): Replace "fp" with "".
4042         Fix PR gdb/480.
4043
4044 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4045
4046         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4047         generic_read_register_dummy() (PR gdb/703).
4048         (avr_push_return_address): #if 0 out unused vars.
4049         (avr_gdbarch_init): Enable use of avr_push_return_address().
4050
4051 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4052
4053         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4054         RTE will take care of it.
4055
4056 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4057
4058         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4059         invalid, return SP_REGNUM.
4060
4061 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4062
4063         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4064         point registers without sign extension.
4065
4066 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4067
4068         * blockframe.c (deprecated_read_register_dummy): Rename
4069         generic_read_register_dummy.
4070         * frame.c (frame_unwind_signed_register): New function.
4071         (frame_unwind_unsigned_register): New function.
4072         * frame.h (frame_unwind_signed_register): Declare.
4073         (frame_unwind_unsigned_register): Declare.
4074         (deprecated_read_register_dummy): Rename
4075         generic_read_register_dummy.
4076
4077         * h8300-tdep.c (h8300_frame_chain): Update.
4078         (h8300_frame_saved_pc): Update.
4079         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4080         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4081         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4082         (s390_frame_chain): Update.
4083         * v850-tdep.c (v850_find_callers_reg): Update.
4084         (v850_frame_saved_pc): Update.
4085         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4086         (m32r_find_callers_reg): Update.
4087         (m32r_frame_saved_pc): Update.
4088         * sh-tdep.c (sh_find_callers_reg): Update.
4089         (sh64_get_saved_pr): Update.
4090         (sh_init_extra_frame_info): Update.
4091         (sh_init_extra_frame_info): Update.
4092         (sh64_init_extra_frame_info): Update.
4093         (sh64_init_extra_frame_info): Update.
4094         * mcore-tdep.c (mcore_find_callers_reg): Update.
4095         (mcore_frame_saved_pc): Update.
4096         (mcore_init_extra_frame_info): Update.
4097         * i386-tdep.c (i386_frame_saved_pc): Update.
4098         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4099         (ia64_init_extra_frame_info): Update.
4100         (ia64_init_extra_frame_info): Update.
4101         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4102         * cris-tdep.c (cris_init_extra_frame_info): Update.
4103         * avr-tdep.c (avr_frame_chain): Update.
4104         (avr_init_extra_frame_info): Update.
4105         (avr_frame_saved_pc): Update.
4106         * arm-tdep.c (arm_find_callers_reg): Update.
4107         (arm_init_extra_frame_info): Update.
4108         (arm_frame_saved_pc): Update.
4109
4110 2002-09-17  Tom Tromey  <tromey@redhat.com>
4111
4112         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4113         is "'".
4114
4115 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4116
4117         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4118         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4119         NEXT_PROLOGUE_INSN.
4120         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4121         NEXT_PROLOGUE_INSN.
4122
4123 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4124
4125         * osfsolib.c: Remove file, replaced by solib-osf.c.
4126         * Makefile.in: Remove compilation rules for osfsolib.c.
4127
4128 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4129
4130         * cp-valprint.c (cp_print_class_method): Correct args to
4131         check_stub_method_group.
4132
4133 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4134
4135         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4136         `set architecture'.  Unify naming convention of functions.
4137         (h8300_skip_prologue): Improve prologue analysis.
4138         (h8300_push_arguments): Rewritten to more closely match GCC's
4139         bizarre argument-passing behavior, along with the comment describing
4140         said behavior.
4141         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4142         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4143         sim, remote-e7000.c, remote-hms.c and remote.c
4144
4145 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4146
4147         * i386-tdep.c (gdb_print_insn_i386): Removed.
4148         (i386_print_insn): New function.
4149         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4150         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4151         tm_print_insn_info.
4152
4153 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4154
4155         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4156         zero.
4157
4158 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4159
4160         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4161         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4162         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4163
4164 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4165
4166         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4167
4168 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4169
4170         * gdbtypes.c (check_stub_method): Make static.
4171         (check_stub_method_group): New function.
4172         * gdbtypes.h: Update prototypes.
4173         * cp-support.c: New file.
4174         * cp-support.h: New file.
4175
4176         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4177         (update_method_name_from_physname): New function.
4178         (read_member_functions): Correct method names for operators
4179         and v3 constructors/destructors.  Separate v2 constructors and
4180         destructors.
4181         * Makefile.in (stabsread.o): Update dependencies.
4182         (SFILES): Add cp-support.c.
4183         (COMMON_OBS): Add cp-support.o.
4184         (cp_support_h, cp-support.o): Add.
4185
4186         * cp-valprint.c (cp_print_class_method): Call
4187         check_stub_method_group instead of check_stub_method.  Remove
4188         extraneous QUITs.
4189         * p-valprint.c (pascal_object_print_class_method): Likewise.
4190         * valops.c (search_struct_method): Likewise.
4191         (find_method_list, value_struct_elt_for_reference): Likewise.
4192
4193 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4194
4195         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4196         * gdbarch.h, gdbarch.c: Regenerate.
4197
4198 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4199
4200         * frame.c (find_saved_register): Delete function.
4201         * frame.h (find_saved_register): Delete declaration.
4202         Fix PR gdb/631.
4203
4204 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4205
4206         * mips-tdep.c (read_next_frame_reg): Re-hack using
4207         frame_register_unwind.
4208
4209 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4210
4211         * mips-tdep.c (mips_get_saved_register): Re-hack using
4212         frame_register_unwind.
4213
4214 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4215
4216         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4217         vector. Will be useful for Interix.  
4218         * gdbarch.h, gdbarch.c: Regenerate.
4219
4220         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4221         name of the malloc function by NAME_OF_MALLOC.
4222
4223 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4224
4225         * value.h (find_function_in_inferior): Add const keyword to
4226         one of the parameters. Allows us to invoke this function with
4227         a const char *.
4228         * valops.c (find_function_in_inferior): Likewise.
4229
4230 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4231
4232         * exec.c (xfer_memory): Fix compilation warning with old versions
4233         of GCC.
4234         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4235
4236 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4237
4238         * symtab.h: Run through gdb_indent.h.
4239         Add 2002 to Copyright year list.
4240
4241 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4242
4243         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4244         mach constants.
4245         * MAINTAINERS: Add myself to write after approval list.
4246
4247 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4248
4249         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4250
4251 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4252
4253         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4254         Interix.
4255
4256 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4257
4258         * procfs.c (do_detach): Clear current signal, not just fault.
4259         Corrects problem with breakpoint trap signal leaking to detached
4260         process on Tru64.
4261
4262 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4263
4264         * buildsym.c (finish_block): Protect against null pointer.
4265
4266 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4267
4268         * infcmd.c (default_print_registers_info): Send all output to
4269         ``file'' instead of ``gdb_stdout''.
4270
4271 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4272
4273         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4274         LONGEST, and use signed register read (addresses are sign-
4275         extended for mips).
4276
4277 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4278
4279         * event-loop.c (gdb_do_one_event): Make public.
4280         * event-loop.h (gdb_do_one_event): Declare.
4281
4282 2002-09-10  Jeff Law  <law@redhat.com>
4283
4284         * infttrace.c (child_resume): Simplify and rework to avoid
4285         TT_PROC_CONTINUE.
4286
4287 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4288
4289         * printcmd.c (print_scalar_formatted): "len" is the number of
4290         target bytes, NOT the number of target bits.
4291
4292 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4293
4294         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4295         * top.c (init_main): Set rl_terminal_name.
4296
4297 2002-09-08  Aidan Skinner <aidan@velvet.net>
4298
4299         * ada-lang.c (ada_array_bound, ada_type_match,
4300         _initialize_ada_language): Fix K&R definitions.
4301         * ada-tasks.c (get_current_task): Fix K&R definitions.
4302         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4303                         
4304 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4305
4306         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4307         Add XP.
4308
4309 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4310
4311         * i386-tdep.c (i386_register_virtual_type,
4312         i386_register_convertible, i386_register_convert_to_virtual,
4313         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4314         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4315         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4316         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4317         Don't set push_arguments twice.
4318
4319         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4320         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4321         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4322         sigtramp_end to NULL.
4323         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4324         defines.
4325         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4326
4327         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4328         whitespace.
4329
4330         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4331         * gdbarch.h, gdbarch.c: Re-generate.
4332         * blockframe.c (find_pc_sect_partial_function): Convert to use
4333         SIGTRAMP_START_P predicate.
4334
4335 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4336
4337         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4338         generic_dummy_frame method and old method.  Also distinguish
4339         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4340         (arm_extract_return_value): Use new regcache method.
4341
4342         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4343         adjustment that doesn't conform to the ABI.
4344         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4345         saved regcache, not from current regcache.
4346
4347 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4348
4349         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4350         * README: Update.
4351
4352 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4353
4354         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4355         if arm_apcs_32 is false.
4356
4357 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4358
4359         GDB 5.3 branch created.
4360
4361 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4362
4363         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4364         generic_unwind_get_saved_register.
4365
4366 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4367
4368         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4369         argument (PR gdb/653).  Update call to smash_to_method_type.
4370         (read_structure_scope): Update call to dwarf2_add_member_fn.
4371
4372 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4373
4374         * x86-64-linux-tdep.c: Include gdb_string.h
4375         * x86-64-linux-nat.c: Ditto.
4376
4377 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4378
4379         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4380         when YYDEBUG is set to 1.  
4381         * c-exp.y: Likewise.
4382         * f-exp.y: Likewise.
4383         * jv-exp.y: Likewise.
4384         * m2-exp.y: Likewise.
4385         * p-exp.y: Likewise.
4386
4387 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4388
4389         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4390         dependency list.
4391         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4392         solib_svr4_fetch_link_map_offsets to
4393         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4394         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4395         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4396         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4397         solib-svr4.o, and solib-legacy.o.
4398         * config/i386/tm-nbsd.h: Include solib.h.
4399
4400 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4401
4402         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4403         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4404         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4405         comment noting that this needs its own target configuration.
4406         * config/i386/nbsd.mt: New file.
4407         * config/i386/nbsdaout.mt: Remove.
4408         * config/i386/nbsdelf.mt: Ditto.
4409         * config/i386/tm-nbsdaout.h: Ditto. 
4410
4411 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4412
4413         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4414         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4415         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4416         tdep->sigtramp_end.
4417         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4418         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4419         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4420
4421 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4422
4423         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4424         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4425         * i386-tdep.h (i386bsd_init_abi): New prototype.
4426         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4427         function declaration.
4428         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4429         for NetBSD-a.out or NetBSD-ELF.
4430         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4431         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4432         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4433         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4434         and nbsd-tdep.h.
4435         (i386nbsd_pc_in_sigtramp): New function.
4436         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4437         i386nbsd_pc_in_sigtramp.
4438         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4439         and i386nbsdelf_init_abi OS ABI handlers.
4440         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4441         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4442
4443 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4444
4445         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4446         registers if the target really has them.
4447
4448 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4449
4450         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4451         than nbsd-tdep.h.
4452
4453 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4454
4455         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4456         list.
4457         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4458         (alphanbsd_skip_sigtramp_frame): New functions. 
4459         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4460         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4461         to alphanbsd_sigcontext_addr. 
4462
4463 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4464
4465         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4466         list.
4467         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4468         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4469         nbsd_pc_in_sigtramp. 
4470         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4471         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4472         * nbsd-tdep.c: Include gdb_string.h.
4473         (nbsd_pc_in_sigtramp): New function. 
4474         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4475         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4476         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4477         ppcnbsd_pc_in_sigtramp. 
4478         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4479         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4480         shnbsd_pc_in_sigtramp. 
4481         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4482         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4483         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4484
4485 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4486
4487         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4488         watchpoints to NULL.
4489         (insert_breakpoints): set val field of watchpoints if NULL.
4490
4491
4492 2002-08-29  Jim Blandy  <jimb@redhat.com>
4493
4494         * symtab.c (lookup_symbol_aux): In the cases where we find a
4495         minimal symbol of an appropriate name and use its address to
4496         select a symtab to read and search, use `name' (as passed to us)
4497         as the demangled name when searching the symtab's global and
4498         static blocks, not the minsym's name.
4499
4500 2002-08-29  Keith Seitz  <keiths@redhat.com>
4501
4502         * stack.c (print_frame_info_base): Always set current_source_symtab
4503         and current_source_line.
4504
4505 2002-08-29  Donn Terry  <donnte@microsoft.com>
4506
4507         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4508
4509 2002-08-28  Keith Seitz  <keiths@redhat.com>
4510
4511         * stack.c (select_frame): Add FIXME concerning selected-frame
4512         events.
4513         (select_frame_command): Send selected-frame-level-changed
4514         event notification, but only if the level actually changed.
4515         (up_silently_base): Add selected-frame-level-changed event
4516         notification.
4517         (down_silently_base): Likewise.
4518
4519 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4520
4521         * Makefile.in: Update dependencies for all gdb/*.c files.
4522
4523 2002-08-27  Tom Tromey  <tromey@redhat.com>
4524
4525         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4526         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4527         Update dependencies.
4528         * i387-tdep.c: Include gdb_string.h.
4529         * osabi.c: Likewise.
4530         * i386-linux-nat.c: Likewise.
4531         * lin-lwp.c: Likewise.
4532         * ax-gdb.c: Likewise.
4533         * signals/signals.c: Likewise.
4534         * jv-valprint.c: Likewise.
4535         * p-lang.c: Likewise.
4536         * c-valprint.c: Likewise.
4537         * cp-abi.c: Likewise.
4538
4539 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4540
4541         * cli/cli-script.h (copy_command_lines): Export.
4542         * breakpoint.c: Include cli/cli-script.h.
4543         * Makefile.in (breakpoint.o): Update dependencies.
4544
4545 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4546
4547         * breakpoint.c (insert_breakpoints): Protect all references
4548         to 'process_warning'.  Shorten long lines.
4549
4550 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4551
4552         * cli/cli-script.c (copy_command_lines): New function.
4553         * defs.h (copy_command_lines): Export.
4554         * testsuite/gdb.base/commands.exp: New tests for commands
4555         attached to a temporary breakpoint, and for commands that
4556         delete the breakpoint they are attached to.
4557         
4558 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4559
4560         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4561         pointer to the breakpoint commands struct, make a new copy
4562         of the struct and point to that.
4563         (bpstat_clear): Free the commands struct.
4564         (bpstat_clear_actions): Free the commands struct.
4565         (bpstat_do_actions): Free the command actions.  Also execute
4566         the local cleanups, instead of deleting them.
4567         (delete_breakpoint): Leave the commands field of the bpstat
4568         chain alone -- it will be freed later.
4569
4570 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4571
4572         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4573         deleted in 2002-08-20 commit.  This function is still used by
4574         ppc-linux-nat.c.
4575
4576 2002-08-26  Keith Seitz  <keiths@redhat.com>
4577
4578         * gdb-events.sh: Add selected-frame-level-changed event.
4579         * gdb-events.c: Regenerated.
4580         * gdb-events.h: Regenerated.
4581         
4582 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4583
4584         Fix PR gdb/393:
4585         * inflow.c (terminal_save_ours): New function to save terminal
4586         settings.
4587         * inferior.h (terminal_save_ours): Declare.
4588         * target.c (debug_to_terminal_save_ours): New function.
4589         (cleanup_target): Defaults to_terminal_save_ours.
4590         (update_current_target): Inherit to_terminal_save_ours.
4591         (setup_target_debug): Set to_terminal_save_ours.
4592         * target.h (target_terminal_save_ours): New to save terminal settings.
4593         (target_ops): New member to_terminal_save_ours.
4594         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4595         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4596         * inftarg.c (init_child_ops): Likewise.
4597         * m3-nat.c (init_m3_ops): Likewise.
4598         * procfs.c (init_procfs_ops): Likewise.
4599         * wince.c (init_child_ops): Likewise.
4600         * win32-nat.c (init_child_ops): Likewise.
4601         * sol-thread.c (init_sol_thread_ops): Likewise.
4602
4603 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4604
4605         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4606         use regcache_* functions.
4607         (i386_gdbarch_init): Set store_return_value instead of
4608         deprecated_store_return_value.
4609
4610         * regcache.c (regcache_raw_write_signed,
4611         regcache_raw_write_unsigned): New functions.
4612         * regcache.h (regcache_raw_write_signed,
4613         regcache_raw_write_unsigned): New prototypes.
4614
4615 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4616
4617         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4618         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4619         source file dependencies.  Cleanup corresponding generator rules.
4620
4621 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4622
4623         * regcache.h (register_offset_hack): Declare.
4624         (regcache_cooked_read_using_offset_hack): Declare.
4625         (regcache_cooked_write_using_offset_hack): Declare.
4626
4627         * regcache.c (register_offset_hack): New function.
4628         (regcache_cooked_read_using_offset_hack): New function.
4629         (regcache_cooked_write_using_offset_hack): New function.
4630         (regcache_dump): Check that the registers, according to their
4631         offset, are packed hard against each other.
4632         (cooked_xfer_using_offset_hack): New function.
4633
4634 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4635
4636         * regcache.c (struct regcache_descr): Add field register_type.
4637         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4638         in as a parameter
4639         (init_regcache_descr): Initialize register_type.  Pass the descr
4640         to init_legacy_regcache_descr.  Use register_type instead of
4641         REGISTER_VIRTUAL_TYPE.
4642         (register_type): New function.
4643         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4644         * regcache.h (register_type): Declare.
4645
4646 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4647
4648         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4649         instead of deprecated_store_return_value.  Fix fallout from
4650         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4651
4652 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4653
4654         * regcache.c (max_register_size): New function.
4655         (init_legacy_regcache_descr): Ensure that max_register_size is
4656         large enough for REGISTER_VIRTUAL_SIZE.
4657         * regcache.h (max_register_size): Declare.
4658
4659 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4660
4661         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4662         store_return_value.
4663         (e500_extract_return_value): Change type of valbuf pointer to
4664         void.
4665
4666 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4667
4668         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4669         workaround.
4670
4671         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4672         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4673         long long) to prevent compiler warning on 64-bit systems.
4674
4675 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4676
4677         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4678         (DEPRECATED_STORE_RETURN_VALUE): New method.
4679         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4680         * gdbarch.h, gdbarch.c: Re-generate.
4681
4682         * values.c (set_return_value): Pass current_regcache to
4683         STORE_RETURN_VALUE.
4684         * arch-utils.h (legacy_store_return_value): Declare.
4685         * arch-utils.c (legacy_store_return_value): New function.
4686         (legacy_extract_return_value): Update parameters.
4687
4688         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4689         STORE_RETURN_VALUE.
4690         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4691         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4692         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4693         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4694         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4695         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4696         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4697         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4698         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4699         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4700
4701         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4702         * i386-tdep.c (i386_extract_return_value): Update.
4703         * arch-utils.c (legacy_extract_return_value): Update.
4704         * frv-tdep.c (frv_gdbarch_init): Update.
4705         * cris-tdep.c (cris_gdbarch_init): Update.
4706         * d10v-tdep.c (d10v_gdbarch_init): Update.
4707         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4708         * m68k-tdep.c (m68k_gdbarch_init): Update.
4709         * mcore-tdep.c (mcore_gdbarch_init): Update.
4710         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4711         * s390-tdep.c (s390_gdbarch_init): Update.
4712         * sparc-tdep.c (sparc_gdbarch_init): Update.
4713         * sh-tdep.c (sh_gdbarch_init): Update.
4714         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4715         * v850-tdep.c (v850_gdbarch_init): Update.
4716         * avr-tdep.c (avr_gdbarch_init): Update.
4717         * ia64-tdep.c (ia64_gdbarch_init): Update.
4718         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4719         * vax-tdep.c (vax_gdbarch_init): Update.
4720         * alpha-tdep.c (alpha_gdbarch_init): Update.
4721         * arm-tdep.c (arm_gdbarch_init): Update.
4722         * mips-tdep.c (mips_gdbarch_init): Update.
4723         * i386-tdep.c (i386_gdbarch_init): Update.
4724
4725 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4726
4727         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4728         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4729
4730 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4731
4732         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4733         problems.
4734
4735 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4736
4737         * infrun.c (handle_inferior_event): Move a comment outside of a
4738         function call, in order to avoid indent reformatting this part
4739         of the code in an unreadable way.
4740
4741 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4742
4743         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4744         when breakpoints fail. Move general breakpoint error messages to
4745         insert_breakpoints.  
4746         * breakpoint.c (insert_breakpoints): Change warnings when
4747         breakpoints are nto inserted to specify the type. Remove call to
4748         memory_error when hardware breakpoints can't be inserted. Remove
4749         multiple calls to warning so all messages are sent to the user at
4750         once.
4751         (delete_breakpoints): Make insert error messsages more explicit.
4752
4753 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4754
4755         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4756         gdbserver/ChangeLog.
4757
4758 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4759
4760         * i386-tdep.c: Include "objfiles.h".
4761         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4762         skip_trampoline_code.
4763         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4764         (CPLUS_MARKER): Define to '.'.
4765
4766         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4767         member.
4768         (linux_corefile_thread_callback): Increase args->num_notes.
4769         (linux_make_note_section): Initialize thread_args.num_notes, and
4770         use it to determine whether notes for any threads were created.
4771
4772 2002-08-23  Donn Terry  <donnte@microsoft.com>
4773
4774         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4775         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4776         and PCUNKILL.
4777         (write_with_trace): Conditionalize out the switch branch handling
4778         PCSHOLD if the corresponding macro is not defined. Likewise for
4779         PRSABORT and PRSTOP.
4780         This change will be needed by the Interix port.
4781
4782 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4783
4784         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4785         write_register wherever possible instead of manipulating the
4786         register bytes directly.
4787         Assign VALUE_CONTENTS to a variable and use that.
4788         The GPR numbers are now dependent on the architecture.
4789         
4790 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4791
4792         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4793         ev_offset fields.
4794         (skip_prologue): Add support for BookE/e500 instructions.
4795         (e500_extract_return_value): New function.
4796         (frame_get_saved_regs): Add support for saving ev registers and
4797         pseudo gpr's.
4798         (e500_store_return_value): New function.
4799         (rs6000_gdbarch_init): Move up default intializations of
4800         deprecated_extract_return_value and store_return_value.  Overwrite
4801         init of store_return_value with e500 specific version.
4802         Set extract_return_value for e500.
4803         
4804 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4805
4806         * blockframe.c (generic_call_dummy_register_unwind): Use
4807         regcache_cooked_read to catch cases in which the variable is
4808         stored in a pseudo register.
4809
4810 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4811
4812         * NEWS: Mention that the i960 has been made obsolete.
4813         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4814         i960-tdep.c
4815         (remote-nrom.o): Obsolete target.
4816         (remote-nindy.o, i960-tdep.o): Ditto.
4817         * remote-nrom.c: Make file obsolete.
4818         * remote-nindy.c, remote-vx960.c: Ditto.
4819         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4820         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4821         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4822         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4823         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4824         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4825         i960-*-vxworks* obsolete.
4826         * MAINTAINERS: Note that the i960 is obsolete.
4827
4828 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4829
4830         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4831         detach to allow reinitialization.
4832
4833 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4834
4835         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4836         attempt).
4837
4838 2002-08-22  Jim Blandy  <jimb@redhat.com>
4839
4840         * coffread.c (coff_symfile_read): Don't try to read the line
4841         number table from disk if the image file doesn't have a symbol
4842         table; we'll never actually look at the info anyway, and Windows
4843         ships DLL's with bogus file offsets for the line number data.
4844
4845 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4846
4847         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4848         an e500 executable.
4849
4850 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4851
4852         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4853         (MSYMBOL_SIZE): Replace macro with function.
4854         (DEFAULT_MIPS_TYPE): Delete unused macro.
4855         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4856         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4857
4858 2002-08-21  Jim Blandy  <jimb@redhat.com>
4859
4860         * valops.c (value_cast): Simplify and correct logic for doing a
4861         static cast from a pointer to a base class to a pointer to a
4862         derived class.
4863
4864 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4865
4866         * infcmd.c (default_print_registers_info): Replace
4867         do_registers_info.
4868         (registers_info): Use gdbarch_print_registers_info instead of
4869         DO_REGISTERS_INFO.
4870         * inferior.h (default_print_registers_info): Replace
4871         do_registers_info.
4872         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4873         (DO_REGISTERS_INFO): Change to a predicate function.
4874         * gdbarch.h, gdbarch.c: Regenerate.
4875         
4876 2002-08-21  Keith Seitz  <keiths@redhat.com>
4877
4878         * gdb-events.sh: Add target-changed event.
4879         * gdb-events.c: Regenerated.
4880         * gdb-events.c: Regenerated.
4881         * valops.c (value_assign): Add target-changed event notification
4882         to inlval_register, lval_memory, and lval_reg_frame_relative.
4883
4884 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4885
4886         * NEWS: Add an entry regarding the improvement of the next/step
4887         operation on Alpha Tru64 multi-processor machines.
4888
4889 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4890
4891         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4892         directores.
4893         * Makefile.in: Update all _h macro definitions.
4894         * Makefile.in (install-gdbtk): Move to install section.
4895         (rdi-share/libangsd.a): Move to end of file.
4896
4897 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4898
4899         * frame.c (frame_register_unwind): When a register, set addrp to
4900         the register's byte.
4901
4902 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4903
4904         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4905         used locally, so move them from the target machine header to here.
4906         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4907         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4908         Make static.
4909         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4910
4911 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4912
4913         * NEWS: Mention that the Apollo line was made obsolete.
4914         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4915         m68*-hp-hpux* obsolete.
4916         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4917         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4918         * buildsym.c (make_blockvector): Make static.
4919         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4920         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4921         (ALLDEPFILES): Remove dstread.c.
4922         (dstread.o): Obsolete make rule.
4923         * dstread.c: Makefile obsolete.
4924         * dst.h: Ditto.
4925         * config/m68k/hp300hpux.mt: Ditto.
4926         * config/m68k/hp300hpux.mh: Ditto.
4927         * config/m68k/hp300bsd.mt: Ditto.
4928         * config/m68k/hp300bsd.mh: Ditto.
4929         * config/m68k/apollo68b.mt: Ditto.
4930         * config/m68k/apollo68v.mh: Ditto.
4931         * config/m68k/apollo68b.mh: Ditto.
4932
4933 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4934
4935         * mips-tdep.c (mips_in_return_stub): Make static.
4936         (mips_gdbarch_init): Set in_solib_return_trampoline.
4937         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4938
4939 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4940
4941         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4942         * gdbarch.c, gdbarch.h: Regenerate.
4943         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4944         Add.
4945         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4946
4947 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4948
4949         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4950         (mips_gdbarch_init): Set skip_trampoline_code, 
4951         in_solib_call_trampoline.
4952         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4953         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4954
4955 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4956
4957         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4958
4959         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4960         vector type for ev registers.
4961         (e500_pseudo_register_read): New function.
4962         (e500_pseudo_register_write): New function.
4963         (e500_dwarf2_reg_to_regnum): New function.
4964         (PPC_UISA_NOFP_SPRS): New macro.
4965         (PPC_EV_REGS): New macro.
4966         (PPC_GPRS_PSEUDO_REGS): New macro.
4967         (registers_e500): New register set for e500.
4968         (variants): Add e500 variant.
4969         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4970         before setting architectural dependent variations.  Initialize ev
4971         registers numbers.  Add case for e500 architecture.  Set the
4972         number of pseudo registers.
4973
4974 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4975
4976         * rs6000-tdep.c: Clean up comments.
4977
4978 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4979
4980         * h8300-tdep.c: Re-indent file.
4981
4982 2002-08-20  Jim Blandy  <jimb@redhat.com>
4983
4984         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4985         default for this.
4986
4987 2002-08-20  Keith Seitz  <keiths@redhat.com>
4988
4989         * breakpoints.c (watch_command_1): Use internal breakpoint
4990         when setting a watchpoint_scope breakpoint.
4991
4992 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4993
4994         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4995         (build_builtin_type_vec64i): Ditto.
4996         (build_builtin_type_vec128): Ditto.
4997         (build_builtin_type_vec128i): Ditto.
4998
4999 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5000
5001         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5002         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5003         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5004         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5005         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5006         CALL_DUMMY_ADDRESS): Delete.
5007         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5008         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5009         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5010         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5011         push_return_address.
5012         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5013         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5014         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5015         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5016         mips_n32n64_push_arguments, mips_push_return_address,
5017         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5018         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5019
5020 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5021
5022         * mips-tdep.c (mips_frame_num_args): New function.
5023         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5024         frame_saved_pc, frame_args_address, frame_locals_address, 
5025         frame_num_args, and frame_args_skip.
5026         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5027         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5028         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5029         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5030
5031 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5032
5033         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5034         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5035         * mips-tdep.c (mips_store_struct_return): New function.
5036         (mips_extract_struct_value_address): New function.
5037         (mips_gdbarch_init): Set store_struct_return and
5038         extract_struct_value_address.
5039
5040 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5041
5042         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5043         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5044         (read_file_scope): Check that line_header is nonzero before
5045         decoding macro information.
5046
5047 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5048
5049         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5050         flag the general-purpose registers as floating-point on targets
5051         that don't support the floating-point registers.
5052
5053 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5054
5055         * rs6000-tdep.c (altivec_register_p): Delete.
5056         (rs6000_do_altivec_registers): Delete.
5057         (rs6000_altivec_registers_info): Delete.
5058         (rs6000_do_registers_info): Delete.
5059         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5060         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5061
5062 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5063
5064         * infcmd.c (do_registers_info): Print vector registers in hex
5065         format only.
5066         (print_vector_info): Check that printing registers
5067         makes sense.
5068         (print_float_info): Ditto.
5069
5070 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5071
5072         * mips-tdep.c (mips_gdbarch_init): Update.
5073         (mips_o32_extract_return_value): Rewrite.
5074         (mips_o32_store_return_value): Rewrite.
5075         (mips_o32_xfer_return_value): New function.
5076         (mips_xfer_register): Tweak debug print message.  Allow for
5077         buf_offset when dumping the value transfered.
5078
5079 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5080
5081         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5082         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5083         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5084         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5085         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5086
5087 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5088
5089         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5090
5091 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5092
5093         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5094         register.
5095         (P): New macro to define a register as a pseudo register.
5096         (R, R4, R8, R16, FR32, R64, R0): Updated.
5097         (struct variant): Add new fields for number of pseudo registers
5098         and number of total registers.
5099         (tot_num_registers): New macro replacing....
5100         (num_registers): ...deleted macro.
5101         (num_registers): New function.
5102         (num_pseudo_registers): New function.
5103         (variants): Update all variants to intialize new fields correctly.
5104         Postpone initialization of number of pseudo regs and real regs.
5105         (init_variants): New function.
5106         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5107         registers offsets.
5108
5109 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5110
5111         * valops.c (search_struct_field): Change error message to treat
5112         return value of 0 from value_static_field as meaning that field is
5113         optimized out.
5114         (value_struct_elt_for_reference): Ditto.
5115         * values.c (value_static_field): Treat an unresolved location the
5116         same as a nonexistent symbol.  Fix PR gdb/635.
5117         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5118         enclosed.  Fix PR gdb/574.
5119         * MAINTAINERS: Add self to Write After Approval list.
5120
5121 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5122
5123         * mips-tdep.c (mips_xfer_register): New function.
5124         (mips_n32n64_extract_return_value): Rewrite.
5125         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5126         instead of deprecated_extract_return_value.
5127
5128 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5129
5130         * rs6000-tdep.c (TDEP): Delete macro.
5131         (branch_dest): Replace use of TDEP macro with its body.
5132         (rs6000_pop_frame): Ditto.
5133         (rs6000_push_arguments): Ditto.
5134         (rs6000_skip_trampoline_code): Ditto.
5135         (rs6000_frame_saved_pc): Ditto.
5136         (rs6000_frame_chain): Ditto.
5137         (rs6000_register_name): Ditto.
5138         (rs6000_register_byte): Ditto.
5139         (rs6000_register_raw_size): Ditto.
5140         (rs6000_register_virtual_type): Ditto.
5141         (rs6000_register_convertible): Ditto.
5142         (rs6000_convert_from_func_ptr_addr): Ditto.
5143
5144 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5145
5146         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5147         conditionally.
5148         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5149         MIPS_LINUX_JB_ELEMENT_SIZE.
5150         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5151         for MAX_REGISTER_RAW_SIZE arrays.
5152         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5153         MIPS_LINUX_JB_ELEMENT_SIZE.
5154
5155 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5156
5157         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5158
5159 2002-08-19  Aidan Skinner <aidan@velvet.net>
5160
5161         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5162         ada-valprint.c ada-tasks.c.
5163         (YYFILES): Add ada-exp.y.
5164         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5165         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5166         (ada-exp.tab.o): New target.
5167                 
5168 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5169
5170         * regcache.c (regcache_xfer_part): New function.
5171         (regcache_raw_read_part): New function.
5172         (regcache_raw_write_part): New function.
5173         (regcache_cooked_read_part): New function.
5174         (regcache_cooked_write_part): New function.
5175         * regcache.h (regcache_raw_read_part): Declare.
5176         (regcache_raw_write_part): Declare.
5177         (regcache_cooked_read_part): Declare.
5178         (regcache_cooked_write_part): Declare.
5179
5180 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5181
5182         * remote.c (remote_open_1): Add async_p.
5183         (remote_async_open_1): Delete.
5184         (open_remote_target): Delete.
5185         (remote_open, extended_remote_open): Update calls to remote_open_1.
5186         (remote_async_open, extended_remote_async_open): Call
5187         remote_open_1 instead of remote_async_open_1.
5188
5189 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5190
5191         * blockframe.c: Fix a few coding standard violations.
5192
5193 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5194
5195         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5196         here from ...
5197         * config/i386/tm-i386sco5.h: ... here.  File removed.
5198         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5199
5200         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5201         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5202         (TM_FILE): Set to tm-i386.h.
5203         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5204         * config/i386/tm-i386v.h: Remove file.
5205         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5206         instead of "i386/tm-i386v.h".
5207         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5208         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5209         "i386/tm-i386v.h".
5210         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5211         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5212         "i386/tm-i386.h".
5213
5214 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5215
5216         * config/i386/nm-i386v.h: Add protection against
5217         multiple-inclusion.
5218         (i386_register_u_addr): Remove prototype.
5219         (register_u_addr): New prototype.
5220         (REGISTER_U_ADDR): Redefine accordingly.
5221         * i386v-nat.c: Improve several comments.
5222         (i386_register_u_addr): Change signature and rename to
5223         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5224         ubase variable.
5225
5226 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5227
5228         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5229         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5230         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5231         deprecated_extract_return_value.
5232         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5233         rename mips_o32o64_push_arguments.
5234         (mips_gdbarch_init): Update.
5235         (mips_extract_return_value): Delete.
5236         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5237         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5238         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5239         (mips_n32n64_extract_return_value): Clone
5240         mips_extract_return_value.
5241         (mips_store_return_value): Delete.
5242         (mips_o32_store_return_value): Clone mips_store_return_value.
5243         (mips_o64_store_return_value): Clone mips_store_return_value.
5244         (mips_eabi_store_return_value): Clone mips_store_return_value.
5245         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5246
5247 2002-08-18  Aidan Skinner <aidan@velvet.net>
5248
5249         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5250         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5251                 
5252 2002-08-18  Aidan Skinner <aidan@velvet.net>
5253
5254         * ada-lang.c: Run through gdb_indent.sh.
5255         * ada-lang.h: Run through gdb_indent.sh.
5256         * ada-tasks.c: Run through gdb_indent.sh.
5257         * ada-typeprint.c: Run through gdb_indent.sh.
5258         * ada-valprint.c: Run through gdb_indent.sh.
5259
5260 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5261
5262         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5263         ABI.
5264
5265 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5266
5267         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5268
5269         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5270         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5271
5272         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5273         write_register_gen instead of write_register_bytes.
5274
5275         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5276         i[3456]-*-osf1mk* configurations have been made obsolete.
5277         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5278         i[3456]86-*-osf1mk* hosts obsolete.
5279         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5280         targets obsolete.
5281         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5282         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5283         config/i386/i386m3.mt, config/i386/nm-m3.h,
5284         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5285         config/i386/i386mk.mh, config/i386/i386mk.mt,
5286         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5287         obsolete.
5288         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5289         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5290         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5291
5292 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5293
5294         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5295         (hppa_value_returned_from_stack): Declare.
5296         (hppa_extract_return_value): Declare.
5297         * config/pa/hppa.mt: New file.
5298         * configure.tgt: Recognize hppa*-*-*.
5299         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5300
5301 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5302
5303         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5304         comment.
5305
5306 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5307
5308         * top.c (gdb_rl_operate_and_get_next): Make sure
5309         operate-and-get-next functions correctly even when the history
5310         list is completely filled.
5311
5312 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5313
5314         * MAINTAINERS (Target Instruction Set Architectures): Rename
5315         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5316         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5317         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5318         already listed under Host/Native.
5319
5320         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5321         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5322         mips*-*-*.
5323
5324 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5325
5326         * config/ia64/ia64.mt: New file.
5327         * config/alpha/alpha.mt: New file.
5328         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5329         ia64-linux-gnu.  Mention that ia64-elf is broken.
5330         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5331
5332 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5333
5334         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5335         generic_func_frame_valid instead of func_frame_valid.
5336
5337 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5338
5339         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5340         procfs appears to be broken when debugging on multi-processor
5341         machines. So enable software single stepping in order to avoid
5342         using the procfs interface to do next/step operations, using
5343         internal breakpoints instead.
5344
5345         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5346         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5347         make this pc address equal to the value it would have if the
5348         system stepping capability was used. Also set a new flag used
5349         to ensure that we don't readjust the PC one more time later.
5350
5351         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5352         address by DECR_PC_AFTER_BREAK when software single step is
5353         in use for this architecture, as this has already been taken
5354         care of in handle_inferior_event().
5355
5356 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5357
5358         * infrun.c (handle_inferior_event): Minor reformatting, to make
5359         a rather long condition expression easier to read.
5360
5361 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5362
5363         * Makefile.in (gdbtk.o): Move to end of file.
5364         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5365         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5366         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5367         (gdbtk-wrapper.o, gdbres.o): Ditto.
5368
5369 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5370
5371         * Makefile.in (copying.o): Separate out compile rule.
5372         (hpux-thread.o, procfs.o, signals.o): Ditto.
5373         (v850ice.o, z8k-tdep.o): Ditto.
5374         (tui-file.o): Move to TUI section.
5375         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5376         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5377
5378 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5379
5380         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5381         skip_trampoline_code, for better namespace-proofing.   
5382
5383         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5384
5385 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5386
5387         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5388
5389 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5390
5391         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5392         signal, check whether we hit a breakpoint before checking for a
5393         single step breakpoint. Otherwise, GDB fails to notice that a
5394         breakpoint has been hit when stepping onto a breakpoint.
5395
5396 2002-08-16  Keith Seitz  <keiths@redhat.com>
5397
5398         * gdb-events.sh (clear_gdb_event_hooks): New function.
5399         * gdb-events.c: Regenerate.
5400         * gdb-events.h: Regenerate.
5401
5402 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5403
5404         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5405         not_a_sw_breakpoint.
5406         * breakpoint.h (bpstat_stop_status): Add parameter names.
5407
5408 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5409
5410         * remote.c (remote_insert_hw_breakpoint)
5411         (remote_remove_hw_breakpoint): Fix calculation of length field
5412         for Z-packet.
5413
5414 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5415
5416         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5417         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5418         (supply_fpregset): Ditto.
5419         
5420         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5421         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5422         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5423         (TARGET_READ_SP): Delete.
5424         (DO_REGISTERS_INFO): Delete.
5425         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5426         Delete.
5427         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5428         from macros to functions.
5429
5430         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5431         (mips_register_convertible, mips_register_convert_to_virtual,
5432         mips_register_convert_to_raw): Make static.
5433         (mips_read_sp): New function.
5434         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5435         (mips_do_registers_info): Make static.
5436         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5437         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5438         (mips_register_convert_from_type, mips_register_convert_to_type):
5439         New functions.
5440         (mips_gdbarch_init): Set up function_start_offset, 
5441         register_virtual_size, pc_in_sigtramp.
5442
5443 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5444
5445         * infcmd.c (vector_info): New function.
5446         (_initialize_infcmd): Add command "info vector".
5447         (print_vector_info): New function.
5448
5449         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5450         * gdbarch.h, gdbarch.c: Regenerate.
5451
5452 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5453
5454         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5455         ``print_all''.  Only print vector registers when ``print_all''.
5456
5457 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5458
5459         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5460         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5461
5462         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5463         Add `args' parameter.
5464         * gdbarch.h, gdbarch.c: Regenerate.
5465         
5466         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5467         
5468         * infcmd.c (float_info): Call print_float_info.
5469         (print_float_info): New function.  By default, print the
5470         floating-point registers.
5471
5472         * arch-utils.h (default_print_float_info): Delete declaration.
5473         * arch-utils.c (default_print_float_info): Delete function.
5474         
5475 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5476
5477         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5478         out define.
5479
5480         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5481         FRAME.
5482
5483         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5484         * configure.host: Make i[3456]86-*-aix host obsolete.
5485         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5486         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5487         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5488         config/i386/xm-i386aix.h: Make files obsolete.
5489         * i386aix-nat.c: Make file obsolete.
5490         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5491         (i386aix-nat.o): Make target obsolete.
5492
5493         * config/i386/nm-gnu.h: Removed.
5494         * config/i386/nm-i386gnu.h: New file.
5495         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5496         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5497         Moved here from ...
5498         * config/i386/tm-i386gnu.h: ... here.  Removed.
5499         * config/i386/xm-i386gnu.h: Removed.
5500         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5501         (NAT_FILE): Set to nm-i386gnu.h.
5502         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5503         * i386-tdep.c: New file.
5504         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5505         (i386gnu-tdep.o): Specify dependencies.
5506
5507 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5508
5509         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5510         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5511         Adjust a few comments to reflect reality a bit closer.
5512         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5513         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5514         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5515         target_insert_watchpoint, target_remove_watchpoint):
5516         Move defines to ...
5517         * config/i386/nm-i386sco5.h: ... here.
5518         (kernel_u_size): Add prototype.  Improve a few comments and add
5519         protection against multiple inclusion.
5520         
5521         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5522         out define.
5523
5524         * uw-thread.c (SP_ARG0): Define if not already defined.
5525         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5526
5527         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5528
5529         * config/i386/tm-i386.h: Don't include "regcache.h".
5530
5531         * i387-tdep.h (i387_print_float_info): New prototype.
5532         * i387-tdep.c (print_i387_value, print_i387_ext,
5533         print_i387_status_word, print_i387_control_word): Add `struct
5534         ui_file *' argument and use it for output.
5535         (i387_print_float_info): Renamed from i387_float_info.  Add
5536         `struct gdbarch *' and `struct ui_file *' arguments and use the
5537         latter for output.
5538         * i386-tdep.c: Include "i387-tdep.h".
5539         (i386_gdbarch_init): Set print_float_info.
5540         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5541         (FLOAT_INFO): Remove define.
5542
5543 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5544
5545         * mips-tdep.c (mips_push_arguments): Rename to
5546         mips_eabi_push_arguments, and tune for EABI.
5547         (MIPS_REGS_HAVE_HOME_P): Delete.
5548         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5549         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5550         Delete references to mips_regs_have_home_p.
5551
5552 2002-08-14  Keith Seitz  <keiths@redhat.com>
5553
5554         * Makefile.in (install-gdbtk): Create insight plugin directory.
5555         Install plugins.tcl file.
5556
5557 2002-08-14  Keith Seitz  <keiths@redhat.com>
5558
5559         * configure.in: Move SUBDIRS to near top of the file so that
5560         --enable options may add things to it.
5561         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5562         * configure: Regenerate.
5563
5564 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5565
5566         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5567         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5568         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5569
5570 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5571
5572         * vax-tdep.c (vax_get_saved_register): Delete function.
5573         (vax_gdbarch_init): Update.
5574         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5575         (ns32k_gdbarch_init): Update.
5576         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5577         (alpha_gdbarch_init): Update.
5578
5579 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5580
5581         * regcache.c (init_regcache_descr): Overallocate the
5582         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5583         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5584         nr_raw_registers.
5585         (set_register_cached): Add range checking assertions.  Use
5586         current_regcache.
5587
5588 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5589
5590         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5591         numbers for MMX registers.
5592
5593 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5594
5595         * i386-tdep.c (i386_gdbarch_init): Use
5596         generic_unwind_get_saved_register.
5597
5598 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5599
5600         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5601         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5602         target vector.
5603         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5604         Delete.  Add comment regarding this now-deleted target method.
5605
5606 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5607
5608         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5609         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5610         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5611         real PC and the page number (if it's within the memory bank window).
5612         (m68hc11_pseudo_register_write): Likewise when saving.
5613         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5614         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5615         (m68hc11_register_raw_size): And use 32-bit for it.
5616         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5617         16K memory bank is used by the prog; also use the virtual pc.
5618
5619 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5620
5621         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5622         (m68hc11_gdbarch_init): Install it in gdbarch.
5623         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5624         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5625         (MSYMBOL_SIZE): New for documentation.
5626         (insn_return_kind): Enum to specify how a function returns.
5627         (frame_extra_info): Cleanup and record the return mode.
5628         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5629         register in address computation.
5630         (m68hc11_get_return_insn): New to obtain the return instruction used
5631         by the function.
5632         (m68hc11_frame_init_saved_regs): Take into account the return
5633         instruction used by the function for far and interrupt functions.
5634         (m68hc11_init_extra_frame_info): Take into account page register.
5635         (m68hc11_frame_args_address): Adjust according to the return mode.
5636         (show_regs): Print page register only when it's used.
5637
5638 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5639
5640         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5641         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5642         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5643         registers.
5644         (m68hc11_register_raw_size): Likewise.
5645
5646 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5647
5648         * i386-tdep.c (i386_register_name): Handle mmx registers.
5649         (mmx_regnum_p): New function.
5650         (i386_mmx_names): New array.
5651         (mmx_num_regs): New variable.
5652         (i386_pseudo_register_read): New function.
5653         (i386_pseudo_register_write): New function.
5654         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5655
5656         * regcache.c (regcache_raw_read_unsigned): New function.
5657         (regcache_raw_read_signed): New function.
5658         * regcache.h (regcache_raw_read_unsigned): Declare.
5659         (regcache_raw_read_signed): Declare.
5660
5661 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5662
5663         * regcache.c (regcache_raw_read_as_address): Delete function.
5664         (regcache_cooked_read_signed): New function.
5665         (regcache_cooked_read_unsigned): New function.
5666         * regcache.h (regcache_cooked_read_signed): Declare.
5667         (regcache_cooked_read_unsigned): Declare.
5668         (regcache_raw_read_as_address): Delete declaration.
5669
5670         * blockframe.c (generic_read_register_dummy): Use
5671         regcache_cooked_read_unsigned.
5672         * i386-tdep.c (i386_extract_struct_value_address): Use
5673         regcache_cooked_read_unsigned.
5674
5675 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5676
5677         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5678         double sizes according to ELF ABI flags.
5679         (gdbarch_tdep): Record elf_flags.
5680
5681 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5682
5683         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5684         (m6812_prolog): They can appear in 68HC12 function prologue.
5685         (m68hc11_frame_chain): Cleanup.
5686
5687 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5688
5689         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5690         declarations.
5691         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5692         (i386_linux_register_raw_size): Delete function.
5693         (i386_linux_init_abi): Update.
5694         * i386-tdep.c (i386_register_raw_size): Delete function.
5695         (i386_register_byte): Delete function.
5696         (i386_gdbarch_init): Update.
5697         (i386_register_size): Delete array.
5698         (i386_register_offset): Delete array.
5699
5700         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5701         (REGISTER_RAW_SIZE): Delete macro.
5702         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5703         (REGISTER_BYTE): Delete macro.
5704
5705 2002-08-11  Aidan Skinner <aidan@velvet.net>
5706
5707         * ada-lang.c (ada_lookup_partial_symbol)
5708         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5709         prototype names so that grep ^func works properly.
5710
5711         * ada-lang.c (ada_array_element_type)
5712         (ada_lookup_partial_symbol): Fix typos in parameter list.
5713
5714         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5715         Fix prototype names so that grep ^func works properly.
5716         
5717 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5718             Elena Zannoni  <ezannoni@redhat.com>
5719             Martin M. Hunt  <hunt@redhat.com>
5720
5721         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5722         (build_builtin_type_vec128i): Set the vector bit.
5723         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5724         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5725         (build_builtin_type_vec64): New function.
5726         (build_builtin_type_vec64i): New function.
5727         (build_gdbtypes): Initialize builtin_type_vec64 and
5728         builtin_type_vec64i.
5729
5730 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5731
5732         * regcache.c (regcache_dump): Compare the register offset
5733         with REGISTER_BYTE.
5734         * arch-utils.c (generic_register_byte): New function.
5735         * arch-utils.h (generic_register_byte): Declare.
5736         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5737         * gdbarch.h, gdbarch.c: Regenerate.
5738
5739 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5740
5741         * regcache.c: Include "gdbcmd.h"
5742         (_initialize_regcache): Add commands "maintenance print
5743         registers", "maintenance print raw-registers" and "maintenance
5744         print cooked-registers".
5745         (enum regcache_dump_what): Define.
5746         (dump_endian_bytes): New function.
5747         (regcache_dump): New function.
5748         (regcache_print): New function.
5749         (maintenance_print_registers): New function.
5750         (maintenance_print_raw_registers): New function.
5751         (maintenance_print_cooked_registers): New function.
5752         * Makefile.in (regcache.o): Update dependencies.
5753
5754 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5755
5756         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5757         (mips_push_arguments): Correct some comments.  Use paddr_nz
5758         for printing addresses in debug output.  Replace static
5759         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5760         (mips_n32n64_push_arguments): New function, cloned from
5761         mips_push_arguments and tuned for the n32/n64 ABI.
5762         (mips_push_register): Buffer needs dynamic allocation.
5763         (mips_print_register): Ditto.
5764         (do_gp_register_row): Ditto.
5765         (mips_store_return_value): Ditto.
5766         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5767
5768 2002-08-09  Don Howard  <dhoward@redhat.com>
5769
5770         * memattr.c (mem_info_command): Print special case of upper bound
5771         as max CORE_ADDR + 1.
5772
5773 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5774
5775         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5776         returns structs by ref if they're too big to fit in two registers.
5777
5778 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5779
5780         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5781         saved regs value.
5782         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5783         mips_find_saved_regs().
5784         (mips_pop_frame): Likewise.
5785
5786 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5787
5788         * blockframe.c (frame_saved_regs_register_unwind): Revise
5789         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5790         frames are in use.
5791
5792 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5793         
5794         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5795         T-packets; the 'a' is not taken as a register number.
5796         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5797         (remote_stopped_data_address): New functions; add to target
5798         vector.
5799         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5800         prototypes to match other implementations of this
5801         function. replace integer argument with pointer -- the length
5802         field in the Z-packet is the length of what is pointed to or 1 if
5803         pointer is null. Add to target vector.
5804         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5805         target vector.
5806
5807         From Mark Salter:
5808         * remote.c (remote_wait): Add support to extract optional
5809         watchpoint information from T-packet. Ignore unrecognized
5810         optional info in T-packet.
5811         (remote_async_wait): Ditto.
5812
5813 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5814
5815         * cli/cli-dump.c: Change fopen modes to use binary open modes
5816         as defined in include/fopen-bin.h throughout.
5817
5818 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5819
5820         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5821
5822 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5823
5824         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5825         assertion failure by returning early after a warning.
5826
5827 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5828
5829         * mips-tdep.c (mips_find_saved_regs): Make static.
5830         (mips_frame_init_saved_regs): New function.
5831         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5832         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5833         (mips_find_saved_regs): Delete declaration.
5834
5835 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5836
5837         * remote.c (remote_wait, remote_async_wait): Change
5838         thread_num from int to ULONGEST.
5839         (unpack_varlen_hex): Change result parameter from
5840         int * to ULONGEST *.
5841
5842 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5843
5844         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5845         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5846         powerpc*-*-*.
5847         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5848
5849 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5850
5851         * gcore.c (override_derive_stack_segment): Delete variable.
5852         (preempt_derive_stack_segment): Delete function.
5853         (derive_stack_segment): Delete function.
5854         (default_derive_stack_segment): Renamed to derive_stack_segment.
5855         (override_derive_heap_segment): Delete variable.
5856         (preempt_derive_heap_segment): Delete function.
5857         (derive_heap_segment): Delete function.
5858         (default_derive_heap_segment): Rename to derive_heap_segment.
5859
5860 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5861
5862         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5863         * mips-tdep.c (mips_EABI_use_struct_convention, 
5864         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5865         New functions.  (mips_use_struct_convention): Delete.
5866         (mips_gdbarch_init): set use_gdbarch_convention.
5867
5868 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5869
5870         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5871         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5872         mips_o32_reg_struct_has_addr): New functions.
5873         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5874
5875 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5876
5877         * regcache.c (pseudo_register): Delete function.
5878         (fetch_register): Delete function.
5879         (store_register): Delete function.
5880         (regcache_raw_read, legacy_read_register_gen): Use
5881         target_fetch_registers instead of fetch_register.
5882         (legacy_write_register_gen, regcache_raw_write): Use
5883         target_store_register instead of store_register.
5884         (write_register_bytes): Ditto.
5885
5886         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5887         (STORE_PSEUDO_REGISTER): Delete.
5888         * gdbarch.h, gdbarch.c: Regenerate.
5889
5890 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5891
5892         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5893         write dump file binary.
5894
5895 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5896
5897         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5898         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5899         (mips_gdbarch_init): Set N32 target to be mips64.
5900
5901 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5902
5903         * frame.c (find_saved_register): Break out of loop once saved
5904         register address is found.  Don't mention sparc in loop comment
5905         anymore.
5906
5907 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5908
5909         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5910         mips_default_saved_regsize to 8.
5911
5912 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5913
5914         * gcore.c: Do not include <sys/procfs.h>.
5915         * Makefile.in (gcore.o): Update dependencies.
5916
5917 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5918
5919         * configure.tgt: Make arc-*-* obsolete.
5920         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5921         * MAINTAINERS: Make arc-elf obsolete.
5922         * arc-tdep.c: Make file obsolete.
5923         * config/arc/arc.mt: Ditto.
5924         * config/arc/tm-arc.h: Ditto.
5925
5926 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5927
5928         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5929
5930 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5931
5932         * mcore-tdep.c (mcore_gdbarch_init): Use
5933         generic_unwind_get_saved_register instead of
5934         generic_get_saved_register.
5935         * v850-tdep.c (v850_gdbarch_init): Ditto.
5936         * frv-tdep.c (frv_gdbarch_init): Ditto.
5937         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5938         * s390-tdep.c (s390_gdbarch_init): Ditto.
5939         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5940         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5941         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5942
5943 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5944
5945         * objfiles.h: Add missing #include "symfile.h"
5946
5947         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5948
5949 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5950
5951         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5952         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5953         of FIELD_BITSIZE.
5954
5955 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5956
5957         * NEWS: Cleanup and nitpick.
5958
5959 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5960
5961         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5962
5963 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5964
5965         * Makefile.in (gdbtk-bp.o): Update dependencies.
5966         (gdbtk-register.o): Ditto.
5967         (gdbtk-varobj.o): Ditto.
5968
5969 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5970
5971         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5972         m68hc11_fetch_pseudo_register.
5973         (m68hc11_pseudo_register_write): Replace
5974         m68hc11_store_pseudo_register.
5975         (m68hc11_gdbarch_init): Update.
5976
5977 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5978
5979         * gdbarch.sh: Include "gdb_string.h".
5980         * gdbarch.c: Regenerate.
5981
5982         * regcache.c: Include "gdb_string.h".
5983         * ax-general.c: Ditto.
5984         * varobj.c: Ditto.
5985         * std-regs.c: Ditto.
5986         * fbsd-proc.c: Ditto.
5987         * thread.c: Ditto.
5988
5989         * Makefile.in (regcache.o): Update dependencies.
5990         (thread.o, gdbarch.o): Ditto.
5991         (ax-general.o, gdbarch.o): Ditto.
5992         (varobj.o, std-regs.o): Ditto.
5993         (fbsd-proc.o): Specify dependencies.
5994
5995 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5996
5997         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5998         regnum.
5999         (regcache_cooked_write): Ditto.
6000
6001 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6002
6003         * regcache.c (regcache_cooked_read): New function.
6004         (regcache_cooked_write): New function.
6005         (read_register_gen): Rewrite using regcache_cooked_read.
6006         (write_register_gen): Rewrite using regcache_cooked_write.
6007
6008         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6009         Declare.
6010
6011 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6012
6013         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6014         Replace the architecture methods register_read and register_write.
6015         * gdbarch.h, gdbarch.c: Regenerate.
6016         * regcache.c (init_regcache_descr): Update.
6017         (read_register_gen): Update.
6018         (write_register_gen): Update.
6019         (supply_register): Update comment.
6020
6021         * sh-tdep.c (sh_gdbarch_init): Update.
6022         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6023         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6024         pointer.  Update code.
6025         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6026         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6027         void pointer.  Update code.
6028         (sh64_register_write): Delete.
6029         (sh4_register_read): Delete.
6030         (sh64_register_read): Delete.
6031         (sh4_register_write): Delete.
6032         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6033         void pointer, `to' parameter a void pointer.
6034         (sh_sh64_register_convert_to_raw): Ditto.
6035
6036 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6037
6038         * mips-tdep.c (mips_register_virtual_type): Use architecture
6039         invariant return values.
6040
6041 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6042
6043         * linux-proc.c: Include "gdb_string.h".
6044         * Makefile.in (linux-proc.o): Update dependency list.
6045
6046 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6047
6048         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6049         comment.
6050
6051 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6052
6053         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6054         to_insert_watchpoint, to_remove_watchpoint,
6055         to_stopped_by_watchpoint, to_stopped_data_address,
6056         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6057         target vecctor. Define their corresponding macros so they call
6058         them.
6059         
6060         * target.c: Add default and debug versions of for
6061         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6062         to_insert_watchpoint, to_remove_watchpoint,
6063         to_stopped_by_watchpoint, to_stopped_data_address,
6064         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6065
6066 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6067
6068         * mips-tdep.c (mips_register_virtual_type): New function.
6069         (mips_gdbarch_init): Register mips_register_virtual_type()
6070         with gdbarch machinery.
6071         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6072         this file instead of tm-bigmips.h.
6073         (MIPS_REGSIZE): Delete this macro.
6074         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6075         multiarch version in mips-tdep.c will be found.
6076
6077 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6078
6079         * NEWS: Menion that CHILL has been made obsolete.
6080
6081         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6082         * stabsread.c (read_range_type): Ditto.
6083         * gdbtypes.h: Ditto.
6084         * language.c (binop_type_check): Ditto.
6085         (binop_result_type): Ditto.
6086         (integral_type): Ditto.
6087         (character_type): Ditto.
6088         (string_type): Ditto.
6089         (boolean_type): Ditto.
6090         (structured_type): Ditto.
6091         (lang_bool_type): Ditto.
6092         (binop_type_check): Ditto.
6093         * language.h (_LANG_chill): Ditto.
6094         * dwarfread.c (set_cu_language): Ditto.
6095         * dwarfread.c (CHILL_PRODUCER): Ditto.
6096         * dwarfread.c (handle_producer): Ditto.
6097         * expression.h (enum exp_opcode): Ditto.
6098         * eval.c: Ditto for comments.
6099         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6100         * expprint.c (print_subexp): Ditto.
6101         (print_subexp): Ditto.
6102         * valops.c (value_cast): Ditto.
6103         (search_struct_field): Ditto.
6104         * value.h (COERCE_VARYING_ARRAY): Ditto.
6105         * symfile.c (init_filename_language_table): Ditto.
6106         (add_psymbol_with_dem_name_to_list): Ditto.
6107         * valarith.c (value_binop): Ditto.
6108         (value_neg): Ditto.
6109         * valops.c (value_slice): Ditto.
6110         * symtab.h (union language_specific): Ditto.
6111         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6112         (SYMBOL_DEMANGLED_NAME): Ditto.
6113         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6114         * defs.h (enum language): Ditto.
6115         * symtab.c (got_symtab): Ditto.
6116         * utils.c (fprintf_symbol_filtered): Ditto.
6117
6118         * ch-typeprint.c: Make file obsolete.
6119         * ch-valprint.c: Make file obsolete.
6120         * ch-lang.h: Make file obsolete.
6121         * ch-exp.c: Make file obsolete.
6122         * ch-lang.c: Make file obsolete.
6123
6124         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6125         CHILL_LIB.
6126         (TARGET_FLAGS_TO_PASS): Ditto.
6127         (CHILLFLAGS): Obsolete.
6128         (CHILL): Obsolete.
6129         (CHILL_FOR_TARGET): Obsolete.
6130         (CHILL_LIB): Obsolete.
6131         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6132         ch-valprint.c.
6133         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6134         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6135         ch-lang.o.
6136         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6137         targets.
6138
6139 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6140
6141         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6142         This does not change anything at the moment, but will be helpful
6143         later when full Ada support is integrated.
6144
6145 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6146
6147         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6148         help message.
6149
6150 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6151
6152         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6153         and save it in a local variable.  Use variable in later test.
6154
6155 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6156
6157         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6158         test.  (Thanks to Daniel Jacobowitz.)
6159         
6160 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6161
6162         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6163         (mips_abi_strings): Add "n64".
6164         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6165
6166 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6167
6168         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6169         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6170
6171 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6172
6173         * utils.c (host_pointer_to_address, address_to_host_pointer):
6174         Use gdb_assert() instead of explicit call to internal_error().
6175
6176 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6177
6178         * Makefile.in (rs6000-nat.o): Update dependencies.
6179
6180         From Nicholas Duffek:
6181         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6182         (aix-thread.o): New rule.
6183         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6184         * config/powerpc/aix432.mh: New file.
6185
6186 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6187
6188         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6189         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6190         (fetch_core_registers, ppc_linux_supply_gregset)
6191         (ppc_linux_supply_fpregset): New functions.
6192         (ppc_linux_regset_core_fns): New.
6193         (_initialize_ppc_linux_tdep): Call add_core_fns.
6194         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6195         and ppc_linux_supply_gregset.
6196         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6197         (supply_fpregset): Call ppc_linux_supply_fpregset.
6198         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6199         corelow.o.
6200         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6201
6202 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6203
6204         * symtab.c (lookup_symbol): Demangle before lowercasing.
6205
6206 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6207
6208         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6209         declaration.
6210         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6211         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6212         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6213         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6214         "gdb_string.h".
6215         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6216         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6217         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6218         (avr-tdep.o, mon960-rom.o): Ditto.
6219         (aout_stabs_gnu_h): Define.
6220         (symtab_h): Remove $(gdb_obstack_h).
6221
6222 2002-07-30  Jim Blandy  <jimb@redhat.com>
6223
6224         Patch from David Carlton <carlton@math.stanford.edu>:
6225         * gdbinit.in: Move the `dir' commands that add GDB's own source
6226         directory to the search path to the end, so that the `gdb' source
6227         directory will be searched first.
6228
6229 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6230
6231         * gdb_obstack.h: New file.
6232         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6233         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6234         * objfiles.h: Include "gdb_obstack.h".
6235         * Makefile.in (gdb_obstack_h): Define.
6236         (symtab_h): Add $(gdb_obstack_h).
6237         (objfiles_h): Add $(gdb_obstack_h).
6238         
6239         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6240         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6241         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6242         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6243         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6244         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6245         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6246         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6247
6248         * Makefile.in (bcache.o): Update dependencies.
6249         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6250         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6251         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6252         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6253         (stabsread.o, symfile.o, symmisc.o): Ditto.
6254         (symtab.o, typeprint.o, macroexp.o): Ditto.
6255         (macrotab.o, mdebugread.o): Ditto.
6256         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6257         (coff_ecoff_h, aout_aout64_h): Define.
6258         (aout_stabs_gnu_h, libaout_h): Define.
6259
6260 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6261
6262         * regcache.c (struct regcache_descr): Rename nr_registers to
6263         nr_cooked_registers.  Revise comments describing the structure
6264         member fields.
6265         (init_regcache_descr): Update.
6266         (init_legacy_regcache_descr): Update.
6267         (read_register_gen, write_register_gen): When a cooked register in
6268         the raw register range, directly access the value from the raw
6269         register cache.
6270
6271 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6272
6273         * z8k-tdep.c: Do not include "obstack.h".
6274         * h8300-tdep.c, h8500-tdep.c: Ditto.
6275         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6276         * valprint.c, v850-tdep.c: Ditto.
6277         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6278         * mn10200-tdep.c: Ditto.
6279
6280         * Makefile.in (z8k-tdep.o): Update dependencies.
6281         (m68hc11-tdep.o, valprint.o): Ditto.
6282         (v850-tdep.o, d10v-tdep.o): Ditto.
6283         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6284         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6285         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6286         (sh_opc_h, gdb_sim_sh_h): Define.
6287         (elf_sh_h, elf_bfd_h): Define.
6288         (opcode_m68hc11_h): Define.
6289         (OPCODES_SRC, OPCODES_DIR): define.
6290         (OPCODES): Use $(OPCODES_DIR).
6291         (gdb_sim_d10v_h): Rename sim_d10v_h.
6292         (gdb_sim_arm_h): Rename sim_arm_h.
6293
6294 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6295
6296         * utils.c (host_pointer_to_address, address_to_host_pointer):
6297         Change internal_error() message to indicate function responsible
6298         for the error.
6299
6300 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6301
6302         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6303         calls to local_hex_string_custom().
6304
6305 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6306
6307         * irix5-nat.c: Move IRIX shared library support from here...
6308         * solib-irix.c: ...to here.  Revised substantially to work with
6309         generic solib framework.
6310
6311         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6312         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6313         * mips-irix-tdep.c: New file.
6314
6315         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6316         (mips-irix-tdep.o, solib-irix.o): New rules.
6317         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6318         solib-irix.o.
6319         * config/mips/irix6.mt (TDEPFILES): Likewise.
6320         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6321
6322 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6323
6324         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6325         disabled (via ``#if 0'') includes.
6326
6327 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6328
6329         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6330         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6331         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6332         Add support for the fpscr register.
6333         * rs6000-nat.c (regmap, fetch_inferior_registers)
6334         (store_inferior_registers, fetch_core_registers): Likewise.
6335
6336 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6337
6338         * rs6000-nat.c (language.h): Include.
6339         (special_regs): Delete this array.
6340         (regmap): New function.
6341         (fetch_register, store_register):  Use regmap() to map gdb
6342         register numbers to ptrace register numbers.  Also, use
6343         outputs from regmap() to make decisions regarding type of
6344         ptrace() call to make.  In particular, don't compare against
6345         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6346         (fetch_inferior_registers, store_inferior_registers): Where
6347         possible, obtain register numbers from tdep struct.  Don't
6348         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6349         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6350         (LAST_UISA_SP_REGNUM): Delete.
6351         
6352 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6353
6354         * rs6000-nat.c (ppc-tdep.h): Include.
6355         (fetch_registers, store_register, fetch_core_registers): Don't
6356         access registers[] directly.  Instead, use supply_register() or
6357         regcache_collect() as appropriate.
6358         (find_toc_address): Format hex address with local_hex_string().
6359
6360 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6361
6362         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6363         bfd/elf32-frv.c.
6364
6365 2002-07-24  Tom Tromey  <tromey@redhat.com>
6366
6367         * jv-exp.y: Marked all strings with _().
6368         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6369         internal_error.
6370         (MethodInvocation, CastExpression, parse_number, yyerror,
6371         java_type_from_name, push_expression_name, yylex): Typo fixes.
6372
6373 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6374
6375         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6376         (tee_file_flush, tee_file_write, tee_file_fputs)
6377         (tee_file_isatty): New.
6378         * ui-file.h (tee_file_new): Add prototype.
6379
6380 2002-07-24  Aidan Skinner <aidan@velvet.net>
6381
6382         * ada-lang.c: Change k&r style function definitions to prototyped
6383         form.
6384         * ada-typeprint.c: Change k&r style function definitions to prototyped
6385         form.
6386         * ada-valprint.c: Change k&r style function definitions to prototyped
6387         form.
6388         
6389 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6390
6391         * README: Remove reference to remote-bug.
6392         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6393         remote-bug.c.
6394         (m88k-nat.o): Delete rule.
6395         (m88k-tdep.o): Delete rule.
6396         (remote-bug.o): Delete rule.
6397         * MAINTAINERS: Mark as obsolete.
6398         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6399         * m88k-tdep.c: Make file obsolete.
6400         * config/m88k/m88k.mh: Ditto.
6401         * config/m88k/delta88v4.mh: Ditto.
6402         * config/m88k/delta88v4.mt: Ditto.
6403         * config/m88k/delta88.mt: Ditto.
6404         * config/m88k/delta88.mh: Ditto.
6405         * remote-bug.c: Ditto.
6406         * config/m88k/tm-delta88.h: Ditto.
6407         * config/m88k/nm-delta88v4.h: Ditto.
6408         * config/m88k/xm-delta88.h: Ditto.
6409         * config/m88k/xm-dgux.h: Ditto.
6410         * config/m88k/tm-m88k.h: Ditto.
6411         * config/m88k/nm-m88k.h: Ditto.
6412         * config/m88k/tm-delta88v4.h: Ditto.
6413         * m88k-nat.c: Ditto.
6414         * cxux-nat.c: Ditto.
6415         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6416         and m88*-*-* obsolete.
6417         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6418         m88*-*-* obsolete.
6419
6420 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6421
6422         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6423         constant.  Same for local pointer variables.
6424         (extract_signed_integer): Ditto.
6425         * defs.h (extract_unsigned_integer): Update.
6426         (extract_signed_integer): Update.
6427
6428 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6429
6430         * regcache.c (regcache_raw_write): Change buf parameter to a
6431         constant void pointer.
6432         (regcache_raw_read): Change buf parameter to a void pointer.
6433         (legacy_write_register_gen): Change myaddr parameter a constant
6434         void pointer.
6435         (supply_register): Change val parameter to a const void pointer.
6436         * regcache.h (regcache_raw_write): Update declaration.
6437         (regcache_raw_read): Update declaration.
6438         (supply_register): Update declaration.
6439
6440 2002-07-24  Tom Tromey  <tromey@redhat.com>
6441
6442         * defs.h (gdb_readline_wrapper): Declare.
6443         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6444         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6445         * top.c (gdb_readline_wrapper): New function.
6446         (command_line_input): Use it.
6447
6448 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6449
6450         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6451         regcache_read and regcache_write.
6452         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6453         * regcache.c: Update.
6454         * sh-tdep.c (sh64_push_arguments): Update comment.
6455         (sh_pseudo_register_read): Update.
6456         (sh_pseudo_register_write): Update.
6457         (sh4_register_read): Update.
6458         (sh4_register_write): Update.
6459         (sh64_pseudo_register_read): Update.
6460         (sh64_pseudo_register_write): Update.
6461         (sh64_register_read): Update.
6462         (sh64_register_write): Update.
6463         * i386-tdep.c (i386_extract_return_value): Update.
6464         (i386_extract_struct_value_address): Update.
6465         (i386_extract_return_value): Update.
6466         * blockframe.c (generic_read_register_dummy): Update.
6467         (generic_call_dummy_register_unwind): Update
6468         * infrun.c (write_inferior_status_register): Update.
6469
6470 2002-07-23  Jim Blandy  <jimb@redhat.com>
6471
6472         * parser-defs.h (expression_context_pc): Make this extern.
6473         (Thanks to Michael Snyder.)
6474
6475 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6476
6477         GDB 5.2.1 released from 5.2 branch.
6478         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6479         * README: Update to mention 5.2.1.
6480
6481 2002-07-23  Mark Salter  <msalter@redhat.com>
6482
6483         * remote.c (remote_read_bytes): Fix check for error.
6484
6485 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6486
6487         * aix-thread.c (language.h): Include.
6488         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6489         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6490         Print newlines at end of debug messages.
6491         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6492         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6493
6494 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6495
6496         * aix-thread.c (ppc-tdep.h): Include.
6497         (special_register_p): New function.
6498         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6499         (store_regs_user_thread): Use register number information from
6500         gdbarch_tdep struct instead of hardcoded offsets relative to
6501         FIRST_UISA_SP_REGNUM.
6502         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6503         special_register_p() instead of using FPLAST_REGNUM and
6504         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6505         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6506         will be MQ's register number.
6507
6508 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6509
6510         * aix-thread.c (ops): Rename to aix_thread_ops.
6511         (base_ops): Rename to base_target.
6512         (ops_attach): Rename to aix_thread_attach.
6513         (ops_detach): Rename to aix_thread_detach.
6514         (ops_resume): Rename to aix_thread_detach.
6515         (ops_wait):   Rename to aix_thread_wait.
6516         (ops_kill):   Rename to aix_thread_kill.
6517         (init_ops):   Rename to init_aix_thread_ops.
6518         (ops_fetch_register): Rename to aix_thread_fetch_register.
6519         (ops_store_register): Rename to aix_thread_store_register.
6520         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6521         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6522         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6523         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6524         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6525         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6526         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6527         (store_regs_lib):  Rename to store_regs_user_thread.
6528         (store_regs_kern): Rename to store_regs_kernel_thread.
6529
6530 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6531
6532         * aix-thread.c (ops_prepare_to_store): Eliminate.
6533         (init_ops): Don't initialize ops.prepare_to_store.
6534         (store_regs_kern): Pre-fetch register buffers from child, 
6535         because some registers may not be in the cache.  Copy
6536         regs from register cache only if they are cached.
6537         (store_regs_lib): Copy regs from register cache only
6538         if they are cached.
6539         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6540         fill_gprs64): Ditto.
6541
6542 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6543
6544         * aix-thread.c (gdb_assert.h): Include.
6545         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6546         register sizes (from register cache) match size of buffer holding
6547         register data.
6548         (fill_sprs32): Change parameter types to match those in the ptrace()
6549         buffer.
6550         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6551         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6552
6553 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6554
6555         * aix-thread.c (supply_sprs64): Cosmetic change.
6556         (supply_sprs32): Cosmetic change.
6557         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6558         (fill_sprs64): Use regcache_collect instead of read_register.
6559         (store_regs_lib): Use regcache_collect instead of 
6560         read_register.  Use fill_sprs32 instead of fill_sprs64,
6561         if debugging a 32-bit architecture.
6562         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6563         out of the register cache, instead of passing a pointer into
6564         the register cache directly to ptrace.  Use regcache_collect
6565         insteaad of read_register.
6566         (ops_prepare_to_store): Use target_read_registers instead
6567         of read_register_bytes.
6568
6569 2002-07-20  Aidan Skinner <aidan@velvet.net>
6570
6571         * MAINTAINERS: Add self under write after approval. 
6572                 
6573 2002-07-20  Aidan Skinner <aidan@velvet.net>
6574
6575         * ada-tasks.c: Change k&r style function definitions to prototyped
6576         form.
6577                 
6578 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6579
6580         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6581         * x86-64-tdep.c: Include "objfiles.h".
6582         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6583         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6584
6585 2002-07-17  Michal Ludvig  <michal@suse.cz>
6586
6587         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6588         (update_context): Initialise cfa variable.
6589
6590 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6591
6592         * aix-thread.c: Shorten some long lines.  
6593         Bring comments into line with code spec.
6594
6595 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6596
6597         * infrun.c: Re-indent using gdb_indent.sh.
6598
6599 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6600
6601         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6602         Leave the indentation temporarily untouched, to minimize the diffs.
6603
6604 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6605
6606         * stabsread.c: Make os9k sections of the code obsolete,
6607         for real this time.
6608         * stabsread.h: Make os9k sections of the code obsolete.
6609
6610 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6611
6612         * linux-low.c (regsets_store_inferior_registers): Add free()
6613         at the end of a loop to prevent memory leak.
6614         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6615         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6616         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6617         line a comment.
6618         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6619
6620 2002-07-17  Jim Blandy  <jimb@redhat.com>
6621
6622         * macrocmd.c (info_macro_command): Remove newline from error
6623         message.
6624
6625 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6626
6627         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6628         (sh_gdbarch_init): Use it for sh-dsp.
6629
6630 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6631
6632         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6633         64-bit DWARF2 format.
6634
6635 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6636
6637         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6638         <sys/proc.h> when not available.
6639
6640 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6641
6642         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6643         * stabsread.c: Make os9k sections of the code obsolete.
6644         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6645         * config/i386/i386os9k.mt: Make file obsolete.
6646         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6647         (COMMON_OBS): Remove os9kread.o
6648         (SFILES): Remove os9kread.c.
6649         (os9kread.o, remote-os9k.o): Make target obsolete.
6650         * remote-os9k.c: Make file obsolete.
6651         * os9kread.c: Make file obsolete.
6652         * Makefile.in
6653
6654 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6655
6656         * NEWS: Mention that the FR30 has been made obsolete.
6657         * fr30-tdep.c: Make file obsolete.
6658         * config/fr30/tm-fr30.h: Ditto.
6659         * config/fr30/fr30.mt: Ditto.
6660         * configure.tgt: Make fr30-*-elf obsolete.
6661         * MAINTAINERS: Make fr30-elf obsolete.
6662
6663 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6664
6665         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6666         found is not inside a section.
6667
6668 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6669
6670         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6671         strerror().
6672         (pdc_realloc): Use xrealloc() instead of realloc().
6673
6674 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6675
6676         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6677         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6678         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6679         macros.
6680
6681 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6682
6683         * aix-thread.c (ptrace_check): Eliminate goto.
6684         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6685         problem.
6686
6687 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6688
6689         * aix-thread.c (gdbcmd.h): Include.
6690         (DEBUG, DBG, DBG2, dbg): Eliminate.
6691         (debug_aix_thread): New static global.
6692         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6693         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6694         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6695         invocations to DBG and DBG2 macros to test against
6696         ``debug_aix_thread'' and call fprintf_unfiltered().
6697         (_initialize_aix_thread): Add new command "set debug aix-thread".
6698
6699 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6700
6701         From Gerhard Tonn <TON@de.ibm.com>:
6702         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6703         instead of supply_register.
6704
6705 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6706
6707         * dwarf2cfi.c: Include "gdb_assert.h".
6708         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6709         non-NULL.
6710         (update_context): Do not use __func__.  Add missing ``break''.
6711         (update_context): Do not use __func__.
6712
6713 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6714
6715         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6716         and its setting.  Set gdbarch instruction printing functions
6717         directly.  For non-rs6000 case use new function
6718         gdb_print_insn_powerpc.
6719         (gdb_print_insn_powerpc): New function.
6720
6721 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6722
6723         * NEWS: Mention that the d30v has been marked obsolete.
6724         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6725         * configure.tgt: Mark d30v-*-* as obsolete.
6726         * d30v-tdep.c: Mark file as obsolete.
6727         * config/d30v/d30v.mt: Ditto.
6728         * config/d30v/tm-d30v.h: Ditto.
6729
6730 2002-07-13  Aidan Skinner <aidan@velvet.net>
6731
6732         * ada-tasks.c (add_task_entry): replace calls to
6733         malloc() with xmalloc
6734         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6735         
6736         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6737         ada_finish_decode_line_1, all_sals_for_line
6738         ada_breakpoint_rewrite): replace calls to free() with xfree()
6739                 
6740 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6741
6742         From Nicholas Duffek (with minor changes by Martin Hunt, 
6743         Louis Hamilton, and Kevin Buettner):
6744         * aix-thread.c: New file.
6745
6746 2002-07-12  Petr Sorfa <petrs@caldera.com>
6747
6748         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6749         complaint for invalid attribute class or form.
6750         (read_func_scope): DW_AT_frame_base
6751         better handling of DW_AT_block*.
6752         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6753         better handling of DW_AT_block*.
6754         (read_common_block): DW_AT_location
6755         better handling of DW_AT_block*.
6756         (read_partial_die): DW_AT_location better handling
6757         of DW_AT_block*.
6758         (new_symbol): DW_AT_external better handling of
6759         DW_AT_block*. Proper initialization of variable
6760         "addr".
6761         (attr_form_is_block): New function that returns true
6762         if the attribute's form is of DW_FORM_block*.
6763
6764 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6765
6766         * valops.c (find_method_list): Remove comment about
6767         removed STATIC_MEMFUNCP argument.
6768         (value_find_oload_method_list): Likewise.
6769
6770 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6771
6772         From Nicholas Duffek:
6773         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6774         target_new_objfile_hook.
6775
6776 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6777
6778         From Nicholas Duffek:
6779         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6780         csect.
6781
6782 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6783
6784         * MAINTAINERS: Mention --enable-sim-build-warnings.
6785         (m68hc11-elf): Disable sim build warnings.
6786         (m32r-elf): Mark as broken obsolete candidate.
6787         (x86_64-linux-gnu): Mark as buildable with -Werror.
6788         (arm-elf): Change -w to ``,'' which enables warnings but not
6789         -Werror.
6790
6791 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6792
6793         * bcache.h: Update copyright.
6794         (struct bstring, struct bcache): Move definition to "bcache.c".
6795         Replaced by opaque declaration.
6796         (bcache_xfree): Replace free_bcache.
6797         (bcache_xmalloc, bcache_memory_used): Declare.
6798         
6799         * bcache.c: Update copyright.
6800         (struct bstring, struct bcache): Moved to here from "bcache.h".
6801         Update comments.
6802         (bcache_xmalloc, bcache_memory_used): New functions.
6803         (bcache_xfree): Replace function free_bcache.
6804         
6805         * Makefile.in (objfiles.o): Add $(bcache_h).
6806         (objfiles_h): Remove $(bcache_h).
6807         (symfile.o): Add $(bcache_h).
6808
6809         * symmisc.c: Update copyright.
6810         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6811         (print_objfile_statistics): Use bcache_memory_used.
6812
6813         * symfile.c: Include "bcache.h".
6814         (reread_symbols): Use bcache_xfree.
6815         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6816         (add_psymbol_to_list): Pass psymbol_cache by value.
6817         (add_psymbol_with_dem_name_to_list): Ditto.
6818
6819         * objfiles.h: Update copyright.
6820         (struct bcache): Declare opaque.  Do not include "bcache.h".
6821         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6822         bcache'' pointers.
6823         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6824
6825         * objfiles.c: Include "bcache.h".  Update copyright.
6826         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6827         macro_cache.
6828         (free_objfile): Use bcache_xfree.
6829
6830 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6831
6832         * monitor.c (monitor_fetch_register): Make name a constant.
6833         (monitor_store_register): Same.
6834
6835 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6836
6837         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6838         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6839         (finish_block) For non-function blocks, hash the symbol table.  For
6840         function blocks, mark the symbol table as unhashed.
6841         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6842         (msymbol_hash_iw): Likewise.
6843         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6844         value.
6845         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6846         (lookup_minimal_symbol): Likewise for both.
6847         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6848         hashtable.
6849         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6850         (ALL_BLOCK_SYMBOLS): Update.
6851         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6852         (struct symbol): Add `hash_next' pointer.
6853         * symtab.c (lookup_block_symbol): Search using the hash table when
6854         possible.
6855         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6856         (search_symbols, find_addr_symbol): Likewise.
6857
6858         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6859         (read_dst_symtab): Likewise.
6860         * jv-lang.c (get_java_class_symtab): Likewise.
6861         * mdebugread.c: Include "gdb_assert.h".
6862         (shrink_block): Assert that the block being modified is not hashed.
6863         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6864         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6865         symbols.
6866         (dump_symtab): Recognize hashed blocks.
6867         * printcmd.c (print_frame_args):  Assert that function blocks do not
6868         have hashed symbol tables.
6869         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6870         (fill_in_ada_prototype, debug_print_block): Likewise.
6871         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6872
6873 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6874
6875         * stack.c (print_frame): Use result of frame_address_in_block()
6876         instead of fi->pc when evaluating symbols.
6877         (backtrace_command_1): Ditto.
6878
6879 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6880
6881         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6882         Make static.
6883
6884         * arm-tdep.c (arm_register_name): Make return type constant.
6885
6886 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6887
6888         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6889         prototype.
6890         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6891         * s390-tdep.c (s390_fp_regnum): Ditto.
6892         (s390_read_fp): Ditto.
6893         (s390_pop_frame): Ditto.
6894         (_initialize_s390_tdep): Ditto.
6895         * remote.c (get_remote_state): Ditto.
6896         * procfs.c (mappingflags): Ditto.
6897         * memattr.c (_initialize_mem): Ditto.
6898         * mcore-tdep.c (mcore_pop_frame): Ditto.
6899         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6900         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6901         * language.c (set_case_str): Ditto.
6902         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6903         * frv-tdep.c (new_variant): Ditto.
6904         (frv_stopped_data_address): Ditto.
6905         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6906         (context_alloc): Ditto.
6907         (frame_state_alloc): Ditto.
6908         (unwind_tmp_obstack_init): Ditto.
6909         (unwind_tmp_obstack_free): Ditto.
6910         (cfi_read_fp): Ditto.
6911         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6912         (cris_pop_frame): Ditto.
6913         * c-lang.c (scanning_macro_expansion): Ditto.
6914         (finished_macro_expansion): Ditto.
6915         (c_preprocess_and_parse): Ditto.
6916         * gdbarch.sh: Ditto.
6917         * gdbarch.h, gdbarch.c: Regenerate.
6918         * config/mn10200/tm-mn10200.h: Adjust indentation.
6919         * target.c: Adjust indentation.
6920         * symtab.h: Adjust indentation.
6921         * stabsread.h: Adjust indentation.
6922         * remote-es.c: Adjust indentation.
6923         * os9kread.c: Adjust indentation.
6924
6925 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6926         
6927         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6928         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6929
6930 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6931         
6932         * NEWS: Mention m68k, mcore multi-arching.  
6933         * MAINTAINERS: Change status of m68k, mcore to reflect
6934         multi-arching.
6935
6936 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6937
6938         * valops.c (find_overload_match): Free oload_syms.
6939
6940 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6941
6942         Define HAVE_SYS_PROC_H if sys/proc.h exists
6943         * configure.in: Add check for sys/proc.h
6944         * config.in: Regenerate.
6945         * configure: Regenerate.
6946
6947 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6948
6949         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6950         #if !GDB_MULTI_ARCH. 
6951
6952 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6953
6954         * config.in, configure: Regenerate.
6955
6956 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6957
6958         * dwarf2cfi.c: Include "gcore.h".
6959         (execute_stack_op): Fix implementation of the
6960         DW_OP_deref and DW_OP_deref_size operators by letting do their
6961         lookup in the target.
6962
6963 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6964
6965         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6966         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6967         tdep->sc_sp_offset.
6968
6969 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6970
6971         Fix PR gdb/595, gdb/602
6972         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6973         Don't call value_cast, just read the vtable pointer; update comments
6974         to match.
6975
6976 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6977
6978         * config/mcore/tm-mcore.h: Remove file.
6979         * config/mcore/mcore.mt: Remove definition of TM_FILE
6980         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6981
6982 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6983
6984         * i386bsd-tdep.c: Include "gdb_string.h".
6985
6986 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6987
6988         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6989         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6990         mcore-tdep.
6991         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6992         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6993         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6994         (RETVAL_REGNUM): Move macros from tm-mcore.h
6995         (mcore_reg_struct_has_addr): New function.
6996         (mcore_gdbarch_init): Added initializations for the macros removed
6997         from tm-mcore.h.
6998
6999 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7000
7001         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7002         traditonal string branding within the ELF header.
7003
7004 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7005
7006         * symtab.c (remove_params): New function.
7007         (make_symbol_overload_list): Use it instead of cplus_demangle.
7008         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7009
7010 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7011
7012         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7013
7014         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7015         New variables.
7016         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7017         and tdep->sigtramp_end.
7018         * i386obsd-nat.c: New file.
7019         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7020
7021         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7022         Don't call get_current_frame().
7023
7024 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7025
7026         * i386-nat.c (child_post_startup_inferior): New function
7027         calling i386_cleanup_dregs if
7028         I386_USE_GENERIC_WATCHPOINTS is defined.
7029         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7030         conditional to acknowledge that i386-nat.c has its
7031         own child_post_startup_inferior function.
7032
7033 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7034
7035         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7036         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7037         instead of MAX_REGISTER_RAW_SIZE.
7038         (i386_extract_return_value, i386_extract_struct_value_address):
7039         Convert to use regcache.
7040         (i386_gdbarch_init): Set max_register_raw_size and
7041         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7042         Set extract_return_value and extract_struct_value_address instead
7043         of their deprecated variants.
7044
7045         Convert i386 target to generic dummy frames.
7046         * i386-tdep.c: Include "symfile.h".
7047         (i386_frameless_signal_p): Consider a function to be frameless if
7048         the pc points at the first instruction of the function.
7049         (i386_frame_chain): Handle (generic) call dummies.
7050         (i386_frame_saved_pc): Likewise.
7051         (i386_frame_init_saved_regs): Remove code dealing with call
7052         dummies on the stack.
7053         (i386_push_dummy_frame): Removed.
7054         (i386_call_dummy_words): Removed.
7055         (i386_fix_call_dummy): Removed.
7056         (i386_push_return_address): New function.
7057         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7058         parameter, and don't call get_current_frame.
7059         (i386_pop_frame): New function.
7060         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7061         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7062         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7063         call_dummy_length to 0, set call_dummy_words to NULL, set
7064         sizeof_call_dummy_words to 0, set fix_call_dummy to
7065         generic_fix_call_dummy, set pc_in_call_dummy to
7066         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7067         generic_push_dummy_frame, set push_return_address to
7068         i386_push_return_address and set frame_chain_valid to
7069         generic_file_frame_chain_valid.
7070
7071 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7072
7073         * gdbarch.sh (struct regcache): Add opaque declaration.
7074         (EXTRACT_RETURN_VALUE): New architecture method.
7075         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7076         * gdbarch.h, gdbarch.c: Regenerate.
7077         * arch-utils.c (legacy_extract_return_value): New function.
7078         * arch-utils.h (legacy_extract_return_value): Declare.
7079         * values.c (value_being_returned): Re-enable code handling
7080         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7081         deprecated_grub_regcache_for_registers call to block handling
7082         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7083         (EXTRACT_RETURN_VALUE): Do not define.
7084
7085 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7086
7087         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7088         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7089         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7090         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7091         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7092         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7093         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7094         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7095         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7096         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7097         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7098         argument so the function fits the prototype in the architecture
7099         vector.
7100         (mcore_pop_frame): Remove argument so the function fits the
7101         prototype. Use get_current_frame instead of the argument.
7102         (mcore_push_arguments): Change type of struct_return so the
7103         function can be used in the architecture vector.
7104         (mcore_store_struct_return): Add.
7105         (mcore_frame_init_saved_regs): Add.
7106         (mcore_gdbarch_init): Add function calls to replace the macros
7107         removed from tm-mcore.h
7108
7109 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7110
7111         * infcmd.c (print_return_value): Remove compatibility code calling
7112         deprecated_grub_regcache_for_registers.
7113         
7114         * values.c: Include "regcache.h".
7115         (value_being_returned): Update.  Use
7116         deprecated_grub_regcache_for_registers to extract the register
7117         buffer address.  
7118         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7119         ``struct regcache''.
7120         * Makefile.in (values.o): Add dependency on $(regcache_h).
7121
7122         * inferior.h (run_stack_dummy): Change type of second parameter to
7123         a ``struct regcache''.
7124         * valops.c (hand_function_call): Change type of retbuf to ``struct
7125         regcache''.  Allocate using regcache_xmalloc, clean using
7126         make_cleanup_regcache_xfree.
7127         * infcmd.c (run_stack_dummy): Update.  Use
7128         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7129
7130         * regcache.c (do_regcache_xfree): New function.
7131         (make_cleanup_regcache_xfree): New function.
7132         * regcache.h (make_cleanup_regcache_xfree): Declare.
7133
7134 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7135
7136         * event-top.c (command_line_handler): Don't read past
7137         beginning of buffer.
7138
7139 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7140         
7141         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7142         struct frame_id. 
7143         (varobj_create): Store frame_id for root.
7144         (varobj_gen_name): Use xasprintf.
7145         (varobj_update): Save and restore frame using get_frame_id() and
7146         frame_find_by_id().
7147         (create_child): Use xasprintf.
7148         (new_root_variable): Initialize frame_id.
7149         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7150         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7151         to prevent memory leak.
7152
7153 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7154
7155         * valops.c (hand_function_call): Move declaration of retbuf to
7156         start of function, allocate using malloc, add a cleanup but before
7157         the inf_status cleanup, cleanup the buffer.  Rename local variable
7158         old_chain to inf_status_cleanup.
7159
7160 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7161
7162         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7163
7164         * cli/cli-decode.c (cmd_func_p): New function.
7165         (cmd_func): New function.
7166
7167         * command.h: Add cmd_func() and cmd_func_p().   
7168         
7169 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7170
7171         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7172         (REGISTER_SIZE): Remove.
7173         (MAX_REGISTER_RAW_SIZE): Remove.
7174         (REGISTER_VIRTUAL_TYPE): Remove.
7175         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7176         (REGISTER_NAME): Remove.
7177         (USE_GENERIC_DUMMY_FRAMES): Remove.
7178         (CALL_DUMMY): Remove.
7179         (CALL_DUMMY_START_OFFSET): Remove.
7180         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7181         (CALL_DUMMY_LOCATION): Remove.
7182         (FIX_CALL_DUMMY): Remove.
7183         (CALL_DUMMY_ADDRESS): Remove.
7184         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7185         (SAVE_DUMMY_FRAME_TOS): Remove.
7186         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7187         (mcore_register_virtual_type): New function.
7188         (mcore_register_byte): New function.
7189         (mcore_register_size): New function.
7190         (mcore_register_name): New function.
7191         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7192         macros removed from tm-mcore.h.
7193         (mcore_dump_tdep): Add.
7194         (_initialize_mcore_tdep): Add gdbarch_register call.
7195
7196 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7197
7198         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7199         frameless_look_for_prologue, such that we actually call this
7200         function.
7201
7202 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7203
7204         * frame.h (frame_address_in_block): New function.
7205
7206         * blockframe.c (frame_address_in_block): New function extracted
7207         from get_frame_block().
7208         (get_frame_block): Use frame_address_in_block().
7209         (block_innermost_frame): Use frame_address_in_block() to match
7210         the frame pc address against the block boundaries rather than
7211         the frame pc directly. This prevents a failure when a frame pc
7212         is actually a return-address pointing immediately after the end
7213         of the given block. 
7214
7215 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7216
7217         * MAINTAINERS: Add self under write after approval. 
7218
7219 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7220
7221         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7222         used in architecture vector. The default is
7223         m68k_local_breakpoint_from_pc.
7224         (m68k_local_breakpoint_from_pc): Add.
7225         (enum): Add register numbers from tm-m68k.h.
7226         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7227         vector.  
7228         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7229         GDB_MULTI_ARCH_PARTIAL.
7230         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7231         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7232         m68k-tdep.c.
7233         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7234         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7235         to enum in m68k-tdep.c
7236
7237 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7238
7239         * solib-osf.c (open_map): Compute the list of shared libraries
7240         loaded by the inferior, rather than the list of libraries loaded
7241         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7242         the wrong shared libraries...
7243
7244 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7245
7246         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7247         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7248         macros.
7249         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7250         Remove functions.
7251         (FRAMELESS_SIGNAL): Remove function.
7252         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7253         i386_linux_saved_pc_after_call): Removed.
7254         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7255         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7256         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7257
7258         * i386-tdep.c (i386_frameless_signal_p): New function.
7259         (i386_frame_chain): Deal with frameless signals.
7260         (i386_sigtramp_saved_sp): New function.
7261         (i386_frame_saved_pc): Deal with frameless signals.
7262         (i386_saved_pc_after_call): Make sure the correct value is
7263         returned just after entry into a sigtramp.
7264         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7265         i386fbsd4_sc_sp_offset): New variables.
7266         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7267         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7268         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7269         similiar to what we already did for sc_pc_offset.
7270         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7271         tdep->sc_sp_offset.
7272
7273         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7274
7275 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7276
7277         * config/i386/tm-x86-64linux.h: New.
7278         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7279         definitions.
7280         * config/i386/nm-x86-64.h: Rename to ...
7281         * config/i386/nm-x86-64linux.h: ... this one.
7282         * config/i386/x86-64linux.mh: Reflect the above change.
7283         
7284 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7285
7286         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7287         with sigcontext_addr.  Add sc_sp_offset.
7288         (i386bsd_sigtramp_saved_pc): Remove prototype.
7289         (i386bsd_sicontext_addr): Add prototype.
7290         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7291         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7292         (i386_svr4_sigtramp_saved_pc): Removed.
7293         (i386_svr4_sigcontext_addr): New function.
7294         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7295         Initialize tdep->sigcontext_addr instead.  Initialize
7296         tdep->sc_pc_offset and tdep->sc_sp_offset.
7297         (i386_gdbarch_init): Likewise.
7298         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7299         any more.
7300         (i386bsd_sigtramp_saved_pc): Remove function.
7301         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7302         Initialize tdep->sigcontext_addr instead.  Initialize
7303         tdep->sc_pc_offset.
7304         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7305         of tdep->sigtramp_saved_pc.
7306         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7307         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7308         instead.
7309
7310         * i386-tdep.c (i386_frameless_function_invocation,
7311         i386_frame_num_args, i386_frame_init_saved_regs,
7312         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7313         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7314         i386_extract_return_value, i386_store_return_value,
7315         i386_extract_struct_value_address, i386_register_virtual_type,
7316         i386_register_convertible, i386_register_convert_to_virtual,
7317         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7318         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7319         static.
7320
7321 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7322
7323         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7324
7325         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7326         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7327         this macro.  Include "value.h".
7328
7329 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7330
7331         * ada-exp.tab.c: remove as it's a generated file
7332         * ada-lex.c: remove as it's a generated file
7333                 
7334 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7335
7336         * config/i386/tm-i386.h (struct frame_info, struct
7337         frame_saved_regs, struct value, struct type): Remove forward
7338         declarations.
7339
7340         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7341         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7342         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7343         (FILL_FPXREGSET): Define.
7344
7345         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7346
7347         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7348         i[3456]86-*-netbsd* case.
7349         * config/i386/tm-obsd.h: Removed.
7350         * config/i386/obsd.mt: Removed.
7351         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7352         core-aout.o.
7353         (MH_CFLAGS): Add -DYYDEBUG=0.
7354
7355         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7356         i386nbsd_sc_pc_offset on OpenBSD too.
7357
7358         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7359         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7360         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7361         define.
7362         * i386bsd-tdep.c: Include "arch-utils.h".
7363         (i386bsd_aout_in_solib_call_trampoline): New function.
7364         (i386bsd_init_abi): Set in_solib_call_trampoline to
7365         i386bsd_aout_in_solib_call_trampoline.
7366         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7367         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7368
7369 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7370
7371         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7372         (struct obstack, struct bcache): Add opaque declarations.
7373         * Makefile.in (macrotab_h): Update
7374
7375 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7376
7377         * blockframe.c (generic_find_dummy_frame): Change return type to
7378         ``struct regcache''.
7379         (struct dummy_frame): Replace field ``registers'' with regcache, a
7380         struct regcache object.
7381         (generic_find_dummy_frame): Update.
7382         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7383         regcache_xmalloc and regcache_cpy.
7384         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7385         regcache_xfree.
7386         (deprecated_generic_find_dummy_frame): Update.
7387         (generic_read_register_dummy): Update.  Use
7388         regcache_read_as_address.
7389         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7390         (generic_get_saved_register): Update.  Use regcache_read.
7391
7392 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7393
7394         * Makefile.in (objfiles_h): Add $(bcache_h).
7395         * objfiles.h: Include "bcache.h".
7396
7397         * Makefile.in (symtab_h): Remove $(bcache_h).
7398         * symtab.h: Do not include "bcache.h".
7399
7400 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7401
7402         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7403         generic_func_frame_chain_valid.
7404
7405 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7406
7407         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7408         * config/i386/tm-fbsd.h: Likewise.
7409
7410 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7411
7412         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7413         generic_unwind_get_saved_register.
7414
7415 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7416
7417         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7418         * regcache.c (supply_register): Add missing argument to
7419         register_buffer call.
7420
7421 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7422
7423         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7424         Solaris /bin/grep does not not like it.  From Peter Schauer.
7425
7426 2002-06-26  Tom Tromey  <tromey@redhat.com>
7427
7428         * command.h (add_setshow_cmd): Declare.
7429         (add_setshow_cmd_full): Declare.
7430         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7431         returns void.  Use add_setshow_cmd_full.
7432         (add_setshow_cmd_full): New function.
7433         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7434         (add_setshow_boolean_cmd): Likewise.
7435
7436 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7437
7438         * config/vax/tm-vax.h: Protect from multiple inclusion.
7439         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7440         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7441         * config/vax/tm-vaxbsd.h: ...here.  New file.
7442         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7443
7444 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7445
7446         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7447         (BELIEVE_PCC_PROMOTION): Remove.
7448         (AP_REGNUM): Move to...
7449         * config/vax/nm-vax.h: ...here.
7450         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7451         (vax_breakpoint_from_pc): New function.
7452         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7453         and gdbarch_believe_pcc_promotion.
7454
7455 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7456
7457         * Makefile.in (vax_tdep_h): Define.  
7458         (vax-tdep.o): Use $(vax_tdep_h).
7459         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7460         (vax_dump_tdep): New function. 
7461         (_initialize_vax_tdep): Register vax_dump_tdep.
7462         * vax-tdep.h: Include osabi.h.     
7463         (struct gdbarch_tdep): New. 
7464
7465 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7466
7467         * frame.h (deprecated_generic_find_dummy_frame): Rename
7468         generic_find_dummy_frame.
7469         * blockframe.c (generic_find_dummy_frame): Make static.
7470         (deprecated_generic_find_dummy_frame): New function.
7471         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7472         generic_find_dummy_frame with deprecated_find_dummy_frame.
7473         (sh64_nofp_frame_init_saved_regs): Ditto.
7474         (sh_fp_frame_init_saved_regs): Ditto.
7475         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7476         (s390_frame_chain): Ditto.
7477         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7478
7479 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7480
7481         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7482         gdbarch vector are at the top.
7483         (NUM_REGS): Remove.
7484         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7485         (FRAME_ARGS_ADDRESS): Remove.
7486         (FRAME_LOCALS_ADDRESS): Remove.
7487         (FRAME_NUM_ARGS): Remove.
7488         (FRAME_ARGS_SKIP): Remove.  
7489         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7490         (m68k_gdbarch_init): Add gdbarch initializations for macros
7491         undefined in tm-m68k.h
7492
7493 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7494
7495         * monitor.h: Add the function regname to monitor_ops
7496         structure. This way NUM_REGS does not have to be a constant.
7497         * monitor.c (monitor_fetch_register): Added support for regname
7498         function. The function is called if the array regnames is NULL.
7499         (monitor_store_register): Same.
7500         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7501         regnames array.
7502         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7503         cpu32bug_cmds.regname to point to new function.
7504         * abug-rom.c (abug_regname): Same as above.
7505         (init_abug_cmds): Same.
7506         * dbug-rom.c (dbug_regname): Same as above.
7507         (init_dbug_cmds): Same.
7508         * remote-est.c (est_regname): Same. 
7509         (init_est_cmds): Same.
7510         * rom68k-rom.c (rom68k_regname): Same. 
7511         (init_rom68k_cmds): Same.
7512
7513 2002-06-25  Tom Tromey  <tromey@redhat.com>
7514
7515         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7516
7517 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7518
7519         * infrun.c (stop_registers): Change variable's type to ``struct
7520         regcache'''.
7521         (xmalloc_inferior_status): Delete function.
7522         (free_inferior_status): Delete function.
7523         (normal_stop): Use regcache_cpy.
7524         (struct inferior_status): Change type of fields ``stop_registers''
7525         and ``registers'' to ``struct regcache''.
7526         (write_inferior_status_register): Use regcache_write.
7527         (save_inferior_status): Instead of calling
7528         xmalloc_inferior_status, allocate the inf_status buffer directly.
7529         Use regcache_dup_no_passthrough and regcache_dup to save the
7530         buffers.
7531         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7532         Replace the stop_registers regcache instead of overriding it.  Use
7533         regcache_xfree.  Instead of calling free_inferior_status, xfree
7534         the buffer directly.
7535         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7536         free_inferior_status, xfree the buffer directly.
7537         (build_infrun): Use regcache_xmalloc.
7538         (_initialize_infrun): Delete redundant call to build_infrun.
7539
7540         * Makefile.in (infcmd.o): Add $(regcache_h).
7541
7542         * infcmd.c: Include "regcache.h".
7543         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7544         obtain the address of `stop_registers' register buffer.
7545         (print_return_value): Ditto.
7546
7547         * inferior.h (struct regcache): Add opaque declaration.
7548         (stop_registers): Change variable's declared type to ``struct
7549         regcache''.
7550
7551 2002-06-24  Tom Tromey  <tromey@redhat.com>
7552
7553         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7554         * target.c (initialize_targets): Fixed typo in
7555         trust-readonly-sections `show' documentation.
7556
7557         * main.c: Marked all strings with _().
7558
7559 2002-06-24  Don Howard  <dhoward@redhat.com>
7560
7561         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7562         that means max CORE_ADDR+1.
7563         (lookup_mem_region): Ditto.
7564         (mem_info_command): Ditto.
7565
7566 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7567
7568         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7569         (REGISTER_BYTES_OK): Remove.
7570         (REGISTER_BYTES): Remove.
7571         (STORE_STRUCT_RETURN): Remove.
7572         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7573         (STORE_RETURN_VALUE): Remove.
7574         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7575         (FRAME_CHAIN): Remove.
7576         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7577         (FRAME_SAVED_PC): Remove.  
7578         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7579         (m68k_store_struct_return): Add.
7580         (m68k_deprecated_extract_return_value): Add.
7581         (m68k_deprecated_extract_struct_value_address): Add.
7582         (m68k_store_return_value): Add.
7583         (m68k_frame_chain): Add.
7584         (m68k_frameless_function_invocation): Add.
7585         (m68k_frame_saved_pc): Add.
7586         (m68k_gdbarch_init): added set_gdbarch calls for new 
7587         functions and deleted macros.
7588
7589 2002-06-23  Tom Tromey  <tromey@redhat.com>
7590
7591         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7592         (ALLDEPFILES): Likewise.
7593         (udiheaders): Removed.
7594         (udip2soc.o): Likewise.
7595         (udi2go32.o): Likewise.
7596         (udr.o): Likewise.
7597         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7598
7599 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7600
7601         * infrun.c (_initialize_infrun): Delete unnecessary call to
7602         build_infrun.
7603
7604         * regcache.h: Update comments describing the regcache_cpy family
7605         of functions.
7606         (regcache_save, regcache_restore): Delete declaration.
7607         (regcache_save_no_passthrough): Delete declaration.
7608         (regcache_restore_no_passthrough): Delete declaration.
7609         * regcache.c (regcache_save): Delete function.
7610         (regcache_save_no_passthrough): Delete function.
7611         (regcache_restore): Delete function.
7612         (regcache_restore_no_passthrough): Delete function.
7613
7614 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7615
7616         * config/m68k/tm-m68k.h: Fix typo.
7617         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7618         (m68k_frame_init_saved_regs): Declare.
7619
7620 2002-06-21  Jim Blandy  <jimb@redhat.com>
7621
7622         Remove some vestiges of Harris 88k support.
7623         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7624         register numbering quirk.
7625         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7626         odd symbols occurring in Harris 88k ELF targets.
7627
7628 2002-06-21  Tom Tromey  <tromey@redhat.com>
7629
7630         * gdb_locale.h: New file.
7631         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7632         (defs_h): Added gdb_locale.h.
7633         * configure, config.in: Rebuilt.
7634         * configure.in (PACKAGE): Define.
7635         * defs.h: Include gdb_locale.h.
7636         * main.c (captured_main): Call setlocale, bindtextdomain,
7637         textdomain.
7638
7639 2002-06-21  Dave Brolley  <brolley@redhat.com>
7640
7641         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7642         * config/frv/frv.mt: New file.
7643         * config/frv/tm-frv.h: New file.
7644         * configure.tgt: Support frv-*-*.
7645         * Makefile.in (frv-tdep.o): New target.
7646         * frv-tdep.c: New file.
7647         * NEWS: Mention frv.
7648
7649 2002-06-21  Dave Brolley  <brolley@redhat.com>
7650
7651         * MAINTAINERS: Add self to "Write After Approval" list.
7652
7653 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7654
7655         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7656         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7657         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7658         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7659         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7660
7661         * m68k-tdep.c: Include arch-utils.h
7662         (m68k_register_raw_size): Add.
7663         (m68k_register_virtual_size): Add.
7664         (m68k_register_virtual_type): Add.
7665         (m68k_register_name): Add.
7666         (m68k_stack_align): Add.
7667         (m68k_register_byte): Add.
7668         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7669         tm-m68k.h.
7670
7671 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7672
7673         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7674         m68k_find_saved_regs.
7675         (m68k_pop_frame): Removed saved_regs structure, and replaced
7676         references to it with frame->saved_regs.
7677         (m68k_gdbarch_init): Added function calls to initialize the
7678         gdbarch structure.
7679         (m68k_fix_call_dummy): Add. 
7680         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7681         (CALL_DUMMY): Remove.
7682         (CALL_DUMMY_LENGTH): Remove.
7683         (CALL_DUMMY_START_OFFSET): Remove.
7684         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7685         (FIX_CALL_DUMMY): Remove.
7686         (PUSH_DUMMY_FRAME): Remove.
7687         (POP_FRAME): Remove.
7688
7689 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7690
7691         * parse.c (parse_fprintf): New function used to avoid calls to
7692         fprintf in bison parser generated debug code.
7693         * parser-defs.h: Declaration of new parse_fprintf function.
7694         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7695         Set YYDEBUG to 1 by default.
7696         Set YYFPRINTF as parse_fprintf.
7697
7698 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7699
7700         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7701         encoding anymore.
7702         (pointer_encoding, enum ptr_encoding): New.
7703         (execute_cfa_program): Take care about pointer encoding.        
7704         (dwarf2_build_frame_info): Only call parse_frame_info for 
7705         .debug_frame and .eh_frame.
7706         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7707         fixed augmentation handling, added relative addressing, 
7708         ignore duplicate FDEs. Added comments.
7709         * dwarf2cfi.c: Reindented.
7710         
7711 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7712
7713         * event-top.c (command_handler): Don't use space_at_cmd_start
7714         unless there is sbrk() on the host. Assign time and space data
7715         to union fields of the appropriate length.
7716
7717 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7718
7719         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7720         x86_64_register_name. Return type changed to 'const char *'.
7721         (x86_64_register_name2nr): Rename to x86_64_register_number.
7722         (x86_64_gdbarch_init): Update to reflect the change.
7723         * x86-64-tdep.h: Ditto.
7724         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7725         (supply_fpregset): Ditto.
7726
7727 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7728
7729         * regcache.h: Update copyright.
7730         (struct regcache, struct gdbarch): Add opaque declarations.
7731         (current_regcache): Declare global variable.
7732         (regcache_read, regcache_write): Add gdbarch parameter.
7733         (regcache_save, regcache_save_no_passthrough)
7734         (regcache_restore, regcache_restore_no_passthrough)
7735         (regcache_dup, regcache_dup_no_passthrough)
7736         (regcache_cpy, regcache_cpy_no_passthrough)
7737         (deprecated_grub_regcache_for_registers)
7738         (deprecated_grub_regcache_for_register_valid)
7739         (regcache_valid_p): Add function declarations.
7740         
7741         * regcache.c: Update copyright.
7742         (regcache_descr_handle): New global variable.
7743         (struct regcache_descr): Define.
7744         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7745         (regcache_descr, xfree_regcache_descr): New functions.
7746         (struct regcache): Define.
7747         (regcache_xmalloc, regcache_xfree): New functions.
7748         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7749         (regcache_dup, regcache_dup_no_passthrough): New functions.
7750         (regcache_valid_p, regcache_read_as_address): New functions.
7751         (deprecated_grub_regcache_for_registers): New function.
7752         (deprecated_grub_regcache_for_register_valid): New function.
7753         (current_regcache): New global variable.
7754         (register_buffer): Add regcache parameter.  Update calls.
7755         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7756         (read_register_gen, write_register_gen): Update register_buffer
7757         call.  Test for legacy_p instead of gdbarch_register_read_p or
7758         gdbarch_register_write_p.
7759         (regcache_collect): Update register_buffer call.
7760         (build_regcache): Rewrite.  Use deprecated grub functions.
7761         (regcache_save, regcache_save_no_passthrough): New functions.
7762         (regcache_restore, regcache_restore_no_passthrough): New
7763         functions.
7764         (_initialize_regcache): Create the regcache_data_handle. Swap
7765         current_regcache global variable.
7766         
7767         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7768         parameter to regcache_read and regcache_write calls.
7769         (sh4_register_read): Ditto.
7770         (sh64_pseudo_register_read): Ditto.
7771         (sh64_register_read): Ditto.
7772         (sh_pseudo_register_write): Ditto.
7773         (sh4_register_write): Ditto.
7774         (sh64_pseudo_register_write): Ditto.
7775         (sh64_register_write): Ditto.
7776
7777         * defs.h (XCALLOC): Define.
7778
7779 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7780
7781         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7782         * m68k-tdep.c (m68k_gdbarch_init): Added.
7783         (m68k_dump_tdep): Added.
7784
7785 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7786
7787         * ada-lang.c (fill_in_ada_prototype): Update comment.
7788
7789 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7790
7791         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7792         MIPS_ABI_LAST.
7793         (mips_abi_string, mips_abi_strings): New.
7794         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7795         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7796         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7797         O32 if no ABI is found.
7798         (mips_dump_tdep): Use mips_abi_strings.
7799         (mips_abi_update): New function.
7800         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7801         ``set mips abi'' and ``show mips abi''.  Check the size of
7802         mips_abi_strings.
7803
7804 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7805
7806         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7807         constant.
7808
7809 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7810
7811         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7812         current frame using only the first stack size adjustment. All
7813         subsequent size adjustments are not considered to be part of
7814         the "static" part of the current frame.
7815         Compute the address of the saved registers relative to the
7816         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7817         in use in this frame.
7818
7819 2002-06-18  Don Howard  <dhoward@redhat.com>
7820  
7821         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7822         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7823         suggesting this solution.
7824
7825 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7826
7827         * config/romp/xm-rtbsd.h: Delete file.
7828         * config/romp/rtbsd.mh: Delete file.
7829
7830 2002-06-18  Keith Seitz  <keiths@redhat.com>
7831
7832         * breakpoint.c (condition_command): Post breakpoint_modify
7833         when a condition is added to an existing breakpoint.
7834         (commands_command): Likewise for commands.
7835         (set_ignore_count): Likewise for ignore counts.
7836         If no tty, do not simply return, still need to send event
7837         notification.
7838         (ignore_command): Only print a newline if the command came
7839         from a tty.
7840         Don't call breakpoints_changed, since this is now properly
7841         handled by set_ignore_count.
7842
7843 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7844
7845         * MAINTAINERS: Note that cris-elf target can be compiled with
7846         -Werror.
7847         * cris-tdep.c (cris_register_name): Make return type constant.
7848         (cris_breakpoint_from_pc): Ditto.
7849
7850 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7851
7852         * frame.h (struct frame_info): Change type of context to 
7853         'struct context'.
7854
7855 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7856
7857         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7858         pointer.
7859         * gdbarch.h, gdbarch.c: Regenerate.
7860         * config/mips/tm-mips.h (mips_register_name): Update.
7861         * i386-tdep.h (i386_register_name): Update.
7862         * mips-tdep.c (mips_register_name): Update
7863         * alpha-tdep.c (alpha_register_name): Update.
7864         * arch-utils.c (legacy_register_name): Update.
7865         * arch-utils.h (legacy_register_name): Update.
7866         * avr-tdep.c (avr_register_name): Update.
7867         * ia64-tdep.c (ia64_register_name): Update.
7868         * i386-tdep.c (i386_register_name): Update.
7869         * sparc-tdep.c (sparc32_register_name): Update.
7870         (sparc64_register_name): Update.
7871         (sparclite_register_name): Update.
7872         (sparclet_register_name): Update.
7873         * sh-tdep.c (sh_generic_register_name): Update.
7874         (sh_sh_register_name): Update.
7875         (sh_sh3_register_name): Update.
7876         (sh_sh3e_register_name): Update.
7877         (sh_sh_dsp_register_name): Update.
7878         (sh_sh3_dsp_register_name): Update.
7879         (sh_sh4_register_name): Update.
7880         (sh_sh64_register_name): Update.
7881         * s390-tdep.c (s390_register_name): Update.
7882         * rs6000-tdep.c (rs6000_register_name): Update.
7883         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7884         (ns32k_register_name_32382): Update.
7885         * d10v-tdep.c (d10v_ts2_register_name): Update.
7886         (d10v_ts3_register_name): Update.
7887         * xstormy16-tdep.c (xstormy16_register_name): Update.
7888         * vax-tdep.c (vax_register_name): Update.
7889         * v850-tdep.c (v850_register_name): Update.
7890         * m68hc11-tdep.c (m68hc11_register_name): Update.
7891         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7892         (am33_register_name): Update.
7893
7894 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7895
7896         * m68k-tdep.c: Reindented.
7897
7898 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7899
7900         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7901         list of predefined types.
7902
7903 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7904
7905         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7906         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7907         REGISTER_CONVERT_TO_RAW): Remove defines.
7908         (i386_register_virtual_type, i386_register_convertible,
7909         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7910         Remove prototypes.
7911         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7912         macros mentioned above.
7913
7914         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7915         (i386lynx_saved_pc_after_call): Remove prototype.
7916         * i386ly-tdep.c: Include "i386-tdep.h".
7917         (i386lynx_saved_pc_after_call): Make static.  Use
7918         read_memory_nobpt instead of read_memory.  Use
7919         read_memory_unsigned_integer instead of read_memory_integer.
7920         (i386lynx_init_abi): New function.
7921         (i386lynx_coff_osabi_sniffer): New function.
7922         (_initialize_i386bsd_tdep): New function.
7923
7924         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7925         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7926         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7927         (i386_fix_call_dummy): Remove prototype.
7928         * i386-tdep.c (i386_call_dummy_words): New variable.
7929         (i386_gdbarch_init): Adjust for removal of the
7930         macros mentioned above.
7931
7932 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7933
7934         * command.h (add_setshow_auto_boolean_cmd): Replace
7935         add_set_auto_boolean_cmd.
7936         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7937         add_set_auto_boolean_cmd.
7938         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7939         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7940         mask-address'' command.
7941         (show_mask_address): Add cmd parameter.
7942         * remote.c (add_packet_config_cmd): Update.  Change type of
7943         set_func and show_func to cmd_sfunc_ftype.
7944         (_initialize_remote): Update `set remote Z-packet'
7945         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7946         (show_remote_protocol_e_packet_cmd): Ditto.
7947         (show_remote_protocol_E_packet_cmd): Ditto.
7948         (show_remote_protocol_P_packet_cmd): Ditto.
7949         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7950         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7951         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7952         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7953         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7954         (show_remote_protocol_Z_packet_cmd): Ditto.
7955         (show_remote_protocol_binary_download_cmd): Ditto.
7956         (show_remote_cmd): Pass NULL to all of above.
7957
7958 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7959
7960         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7961         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7962         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7963         POP_FRAME): Remove defines.
7964         (i386_push_arguments, i386_store_struct_return,
7965         i386_extract_return_value, i386_store_return_value,
7966         i386_extract_struct_value_address, i386_push_dummy_frame,
7967         i386_pop_frame): Renove prototypes.
7968         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7969         macros mentioned above.
7970
7971 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7972
7973         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7974         add_set_boolean_cmd.
7975         (add_setshow_cmd): New function.
7976         * command.h (add_setshow_boolean_cmd): Replace
7977         add_set_boolean_cmd.
7978         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7979         and ``set rdiromatzero''.
7980         * maint.c (_initialize_maint_cmds): Update commented out code.
7981         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7982         * target.c (initialize_targets): Update `set
7983         trust-readonly-sections'.
7984         * remote.c (_initialize_remote): Update `set remotebreak'.
7985
7986 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7987
7988         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7989         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7990         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7991         fit into multi-arch framework.
7992         (i386_breakpoint_from_pc): New function.
7993         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7994         above.
7995
7996         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7997         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7998         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7999         (i386_frameless_function_invocation, i386_frame_num_args,
8000         i386_frame_init_saved_regs): Remove prototypes.
8001         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8002         macros mentioned above.
8003
8004 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8005
8006         * cli/cli-decode.c (set_cmd_cfunc): Update.
8007         (set_cmd_sfunc): Update.
8008         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8009         (set_cmd_sfunc, set_cmd_cfunc): Update.
8010         * cli/cli-decode.h: Update.
8011
8012 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8013
8014         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8015         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8016
8017 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8018
8019         * defs.h (auto_boolean): Declare enum.
8020         * command.h (cmd_auto_boolean): Delete enum.
8021         * mips-tdep.c (mask_address_var): Update.
8022         (mips_mask_address_p): Update.
8023         (show_mask_address): Update.
8024         * remote.c (struct packet_config): Update.
8025         (update_packet_config): Update.
8026         (show_packet_config_cmd): Update.
8027         (packet_ok): Update.
8028         (add_packet_config_cmd): Update.
8029         (_initialize_remote): 
8030         * command.h: Update.
8031         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8032         (do_setshow_command): Update.
8033         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8034         * cli/cli-decode.h: Update.
8035
8036 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8037
8038         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8039         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8040         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8041         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8042         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8043         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8044
8045         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8046         list of DJGPP COFF targets.
8047
8048         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8049         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8050         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8051         (FP0_REGNUM): Remove define.
8052         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8053         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8054         (i386_register_virtual_size): Remove protoype.
8055         * i386-tdep.c (i386_register_virtual_size): Removed.
8056         (i386_extract_return_value, i386_store_return_value): Use
8057         FP0_REGNUM instead of NUM_FREGS to determine whether the
8058         floating-point registers are available.
8059         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8060         Adjust for removal of macros mentioned above.
8061
8062 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8063
8064         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8065         comments.
8066         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8067         Remove prototypes.
8068         (supply_gregset, fill_gregset): Remove use of register keyword and
8069         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8070         NUM_REGS and NUM_FREGS.
8071         (FPREGSET_FSAVE_OFFSET): Remove.
8072         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8073         NUM_FREGS to determine whether the floating-point registers are
8074         available.
8075
8076         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8077         gnu_store_registers): Replace usage of NUM_GREGS with
8078         I386_NUM_GREGS.
8079
8080         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8081         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8082         usage of NUM_GREGS with I386_NUM_GREGS.
8083
8084         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8085
8086         * i386bsd-nat.c: Include "i386-tdep.h".
8087         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8088         I386_NUM_GREGS.
8089
8090         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8091         and associated comment.  They no longer make any sense, since we
8092         don't use this file anymore on Linux.
8093
8094         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8095         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8096         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8097         elements in these arrays.
8098         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8099         MAX_NUM_REGS.
8100
8101 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8102
8103         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8104         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8105
8106 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8107
8108         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8109         EXTRACT_RETURN_VALUE.
8110         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8111         EXTRACT_STRUCT_VALUE_ADDRESS.
8112         * gdbarch.h, gdbarch.c: Regenerate.
8113         
8114         * values.c (value_being_returned): Handle
8115         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8116         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8117
8118         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8119         * arm-tdep.c (arm_gdbarch_init): Update.
8120         * avr-tdep.c (avr_gdbarch_init): Update.
8121         * cris-tdep.c (cris_gdbarch_init): Update.
8122         * d10v-tdep.c (d10v_gdbarch_init): Update.
8123         * ia64-tdep.c (ia64_gdbarch_init): Update.
8124         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8125         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8126         * s390-tdep.c (s390_gdbarch_init): Update.
8127         * sh-tdep.c (sh_gdbarch_init): Update.
8128         * s390-tdep.c (s390_gdbarch_init): Update.
8129         * sparc-tdep.c (sparc_gdbarch_init): Update.
8130         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8131         * v850-tdep.c (v850_gdbarch_init): Update.
8132         * vax-tdep.c (vax_gdbarch_init): Update.
8133         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8134         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8135
8136         * config/arc/tm-arc.h: Update.
8137         * config/d30v/tm-d30v.h: Update.
8138         * config/fr30/tm-fr30.h: Update.
8139         * config/h8300/tm-h8300.h: Update.
8140         * config/h8500/tm-h8500.h: Update.
8141         * config/i386/tm-i386.h: Update.
8142         * config/i386/tm-ptx.h: Update.
8143         * config/i386/tm-symmetry.h: Update.
8144         * config/i960/tm-i960.h: Update.
8145         * config/m32r/tm-m32r.h: Update.
8146         * config/m68k/tm-delta68.h: Update.
8147         * config/m68k/tm-linux.h: Update.
8148         * config/m68k/tm-m68k.h: Update.
8149         * config/m88k/tm-m88k.h: Update.
8150         * config/mcore/tm-mcore.h: Update.
8151         * config/mips/tm-mips.h: Update.
8152         * config/mn10200/tm-mn10200.h: Update.
8153         * config/pa/tm-hppa.h: Update.
8154         * config/pa/tm-hppa64.h: Update.
8155         * config/sparc/tm-sp64.h: Update.
8156         * config/sparc/tm-sparc.h: Update.
8157         * config/sparc/tm-sparclet.h: Update.
8158         * config/z8k/tm-z8k.h: Update.
8159
8160 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8161
8162         * Makefile.in (i386_linux_tdep_h): Define.
8163         (i386_tdep_h, i387_tdep_h): Define.
8164         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8165         $(i386_tdep_h) and $(i387_tdep_h).
8166         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8167
8168 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8169
8170         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8171         Already covered by the default.
8172
8173         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8174         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8175         (i386_gdbarch_init): Initialize long_double_format and long_double
8176         bit.
8177
8178         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8179         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8180         Move these to ...
8181         * config/i386/i386sol2.mh: ... here.
8182         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8183         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8184         (SIGCONTEXT_PC_OFFSET): Remove define.
8185         (IN_SIGTRAMP): Remove define.
8186         * i386-sol2-tdep.c: New file.
8187         
8188         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8189         * config/i386/tm-i386nw.h: Removed.
8190
8191         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8192         USE_STRUCT_CONVENTION): Remove defines.
8193         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8194         (get_longjmp_target): Remove prototype.
8195         (IN_SIGTRAMP): Remove define.
8196         (i386bsd_in_sigtramp): Remove prototype.
8197         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8198         function.  Update comment accordingly
8199         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8200         (FRAME_SAVED_PC): Remove define.
8201         (i386bsd_frame_saved_pc): Remove prototype.
8202         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8203         GET_LONGJMP_TARGET): Remove defines.
8204         (get_longjmp_target): Remove prototype.
8205         (IN_SIGTRAMP): Remove define.
8206         (i386bsd_in_sigtramp): Remove prototype.
8207         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8208         function.  Update comment accordingly
8209         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8210         (FRAME_SAVED_PC): Remove define.
8211         (i386bsd_frame_saved_pc): Remove prototype.
8212         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8213         Remove prototype.
8214         (USE_STRUCT_CONVENTION): Remove prototype.
8215         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8216         declaration.
8217         (_initialize_i386bsd_nat): Revise logic to determine some
8218         constants at compile time when compiling a native GDB.  Warn if
8219         things don't match up with what we expect.
8220         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8221         Remove variables.
8222         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8223         to use date stored in `struct gdbarch_tdep'.
8224         (i386bsd_sigcontext_offset): Remove varaible.
8225         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8226         stored in `struct gdbarch_tdep'.
8227         (i386bsd_frame_saved_pc): Make static.
8228         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8229         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8230         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8231         i386fbsd4_sc_pc_offset): New variables.
8232         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8233         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8234         functions.
8235         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8236         functions.
8237         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8238         Modify the value of i386fbsd_sigtramp_start and
8239         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8240         i386fbsd_sigtramp_end.
8241         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8242         function.
8243
8244         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8245         define to i386-linux-tdep.h.
8246         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8247         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8248         defines.
8249         (i386_linux_register_name, i386_linux_register_byte,
8250         i386_linux_register_raw_size): Remove prototypes.
8251         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8252         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8253         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8254         TARGET_WRITE_PC): Remove defines.
8255         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8256         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8257         i386_linux_write_pc): Remove prototypes.
8258         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8259         (get_longjmp_target): Remove prototype.
8260         * i386-linux-tdep.h: New file.
8261         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8262         * i386-linux-tdep.c: Include "i386-tdep.h" and
8263         "i386-linux-tdep.h".
8264         (i386_linux_register_name, i386_linux_register_byte,
8265         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8266         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8267         Make static.
8268         (i386_linux_init_abi): New function.
8269         (_initialize_i386_linux_tdep): New function.
8270
8271         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8272         (i386_saved_pc_after_call): Remove prototype.
8273         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8274         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8275         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8276         (i386_register_name, i386_stab_reg_to_regnum,
8277         i386_dwarf_reg_to_regnum): Remove prototypes.
8278         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8279         SIZEOF_SSE_REGS): Remove defines.
8280         (REGISTER_BYTES): Remove define.
8281         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8282         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8283         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8284         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8285         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8286         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8287         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8288         (get_longjmp_target): Remove prototype.
8289         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8290         (sigtramp_saved_pc): Remove define.
8291         (i386v4_sigtramp_saved_pc): Remove prototype.
8292         * config/i386/tm-go32.h (FRAME_CHAIN,
8293         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8294         (i386go32_frame_saved_pc): Remove prototype.
8295         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8296         (get_longjmp_target): Remove prototype.
8297         * i386-tdep.h: Include "osabi.h".
8298         (enum i386_abi): Removed.
8299         (enum struct_return): New enum.
8300         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8301         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8302         sc_pc_offset members.
8303         (i386_gdbarch_register_os_abi): Remove prototype.
8304         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8305         I386_SSE_NUM_REGS): New defines.
8306         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8307         I386_SSE_SIZEOF_REGS): New defines.
8308         (i386_register_name, i386_register_byte, i386_register_raw_size):
8309         New prototypes.
8310         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8311         (i386bsd_sigtramp_saved_pc): New prototype.
8312         * i386-tdep.c: Don't include "elf-bfd.h".
8313         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8314         i386_frame_chain, i386_saved_pc_after_call): Make static.
8315         (i386_frame_saved_pc): Rewrite to call architecture dependent
8316         function to deal with signal handlers.  Make static.
8317         (i386go32_frame_saved_pc): Removed.
8318         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8319         Removed.
8320         (i386_get_longjmp_target): New function.
8321         (default_struct_convention, pcc_struct_convention,
8322         reg_struct_convention, valid_conventions, struct_convention): New
8323         variables.
8324         (i386_use_struct_convention): New function.
8325         (i386v4_sigtramp_saved_pc): Renamed to
8326         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8327         (i386_pc_in_sigtramp): New function.
8328         (i386_abi_names): Removed.
8329         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8330         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8331         Removed.
8332         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8333         i386_gdbarch_register_os_abi): Removed.
8334         (struct i386_abi_handler): Removed.
8335         (i386_abi_handler_list): Removed.
8336         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8337         functions.
8338         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8339         i386_nw_init_abi): New functions.
8340         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8341         Use set_gdbarch_xxx() calls instead of relying on macros for a
8342         number of calls.
8343         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8344         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8345         Register the various architecture variants defined in this file.
8346
8347 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8348
8349         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8350         (struct main_type): Remove arg_types member.  Update comments for
8351         struct field.
8352         (TYPE_ARG_TYPES): Remove.
8353         (TYPE_FN_FIELD_ARGS): Update.
8354         (smash_to_method_type): Update prototype.
8355
8356         * c-typeprint.c (cp_type_print_method_args): Take method type
8357         instead of argument list.  Use new argument layout.  Simplify.
8358         (c_type_print_args): Use new argument layout.  Simplify.
8359         (c_type_print_base): Update call to cp_type_print_method_args.
8360         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8361         argument; use die->type instead.  Update call to
8362         smash_to_method_type.
8363         (read_structure_scope): Update call to dwarf2_add_member_fn.
8364         * gdbtypes.c (allocate_stub_method): Update comment.
8365         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8366         Use new argument layout.
8367         (check_stub_method): Use new argument layout.  Don't count
8368         void as an argument.
8369         (print_arg_types): Update comments.  Use new argument layout.
8370         (recursive_dump_type): Don't print arg_types member.
8371         * hpread.c (hpread_read_struct_type): Use new argument layout.
8372         (fixup_class_method_type): Likewise.
8373         (hpread_type_lookup): Likewise.
8374         * stabsread.c (read_type): Update calls to read_args and
8375         smash_to_method_type.
8376         (read_args): Use new argument layout.  Simplify.
8377         * valops.c (typecmp): Use new argument layout.  Update parameters
8378         and comments.  Simplify.
8379         (hand_function_call): Use new argument layout.
8380         (search_struct_method): Update call to typecmp.
8381         (find_overload_match): Use new argument layout.
8382
8383 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8384
8385         * NEWS: Mention multithreaded debug support for gdbserver.
8386
8387 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8388
8389         * MAINTAINERS: Mention NEWS.
8390
8391 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8392
8393         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8394         (struct mips_objfile_private, compare_pdr_entries): New.
8395         (non_heuristic_proc_desc): Read the ".pdr" section if it
8396         is present.
8397
8398 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8399
8400         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8401         (arm_debug): New static variable.
8402         (_initialize_arm_tdep): Add ``set debug arm'' command.
8403
8404 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8405
8406         * Makefile.in (sim_arm_h): Define.
8407         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8408         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8409         (arm_register_sim_regno): New function, map an internal REGNUM
8410         onto a simulator register number.
8411         (arm_gdbarch_init): Set register_sim_regno.
8412
8413 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8414
8415         * MAINTAINERS: Add self.
8416
8417 2002-06-11  Jim Blandy  <jimb@redhat.com>
8418
8419         * source.c (source_info): Mention whether the symtab has
8420         information about preprocessor macros.
8421
8422         Call the command `info macro', not `show macro'.
8423         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8424         Fix error message.
8425         (_initialize_macrocmd): Register `info_macro_command' in
8426         `infolist', not `showlist'.
8427
8428 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8429
8430         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8431         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8432         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8433         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8434         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8435         unconditionally.
8436         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8437         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8438         (_initialize_mips_tdep): Remove dead code.
8439         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8440         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8441         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8442         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8443         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8444         MIPS_LAST_FP_ARG_REGNUM): Remove.
8445
8446 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8447
8448         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8449         (unwind_tmp_obstack_free, parse_frame_info)
8450         (update_context, cfi_read_fp, cfi_write_fp)
8451         (cfi_frame_chain, cfi_init_extra_frame_info)
8452         (cfi_virtual_frame_pointer): Use the above function.
8453         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8454
8455 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8456
8457         * v850-tdep.c (v850_type_is_scalar): New function.
8458         (v850_use_struct_convention): Match current gcc implementation
8459         as close as possible.
8460         (v850_push_arguments): Fix stack_offset handling.  Don't write
8461         struct_addr into register.  This is done by v850_store_struct_return.
8462         (v850_extract_return_value): Care for structs.
8463         (v850_store_return_value): Ditto.
8464         (v850_store_struct_return): Actually write address.
8465
8466 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8467
8468         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8469         without debug information too.
8470
8471 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8472
8473         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8474         Make multi-arch pure.
8475         * gdbarch.h, gdbarch.c: Re-generate.
8476         * arm-tdep.c (arm_print_float_info): Update.
8477         * arch-utils.h (default_print_float_info): Update.
8478         * arch-utils.c (default_print_float_info): Update.
8479         * infcmd.c (float_info): Update call.
8480
8481 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8482
8483         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8484         the front of the initialize list.
8485
8486 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8487
8488         * infrun.c (struct inferior_status): Replace fields
8489         selected_frame_address and selected_level with field
8490         selected_frame_id.
8491         (save_inferior_status): Update.  Use get_frame_id.
8492         (struct restore_selected_frame_args): Delete.
8493         (restore_selected_frame): Update.  Use frame_find_by_id.
8494         (restore_inferior_status): Update.
8495
8496         * breakpoint.h (struct breakpoint): Change type of
8497         watchpoint_frame to frame_id.
8498         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8499         call to get_current_frame.
8500         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8501         get_current_frame.
8502         (watchpoint_check): Use frame_find_by_id.
8503
8504         * frame.h (record_selected_frame): Delete declaration.
8505         * stack.c (record_selected_frame): Delete function.
8506         
8507         * frame.h (struct frame_id): Define.
8508         (get_frame_id): Declare.
8509         (frame_find_by_id): Declare.
8510         * frame.c (frame_find_by_id): New function.
8511         (get_frame_id): New function.
8512
8513 2002-06-10  Andrey Volkov <avolkov@transas.com>
8514
8515         * ser-e7kpc.c: Fix duplicated define and call of 
8516         _initialize_ser_e7000pc
8517             
8518 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8519
8520         * signals/signals.c (target_signal_from_host): Fix #ifdef
8521         SIGRTMIN case.
8522         (do_target_signal_to_host): Likewise.
8523
8524 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8525
8526         * mips-tdep.c (mips_find_abi_section): New function.
8527         (mips_gdbarch_init): Call it.
8528
8529 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8530
8531         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8532         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8533         after Andrew's 2002-06-08 gdbarch change.
8534
8535 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8536
8537         * i386-linux-nat.c (suppy_gregset): Don't supply
8538         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8539         register cache.
8540         (fill_gregset): Don't fetch it under the same circumstances.
8541
8542 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8543
8544         * Makefile.in (callback_h): Define.
8545         (remote_sim_h): Update path to remote-sim.h.
8546         (remote-rdp.o): Add $(callback_h).
8547         (remote-sim.o): Use $(callback_h).
8548         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8549         * remote-rdp.c: Include "gdb/callback.h".
8550
8551 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8552
8553         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8554         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8555
8556 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8557
8558         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8559         * rdi-share/serpardr.c: Ditto.
8560         * rdi-share/unixcomm.c: Ditto.
8561         * rdi-share/serdrv.c: Ditto.
8562         * rdi-share/hostchan.h: Ditto.
8563         * rdi-share/hostchan.c: Ditto.
8564         * rdi-share/host.h: Ditto.
8565         * rdi-share/devsw.c: Ditto.
8566
8567         * objfiles.h: Change type of obj_private to void pointer.
8568         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8569         strcmp instead of STREQ, use LONGEST, do not use PTR
8570         * somsolib.c: Ditto.
8571
8572         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8573         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8574         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8575
8576 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8577
8578         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8579         (default_get_saved_register): Delete function.
8580         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8581         generic_unwind_get_saved_register.
8582         * gdbarch.h, gdbarch.c: Re-generate.
8583         
8584 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8585
8586         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8587         generic_func_frame_chain_valid.
8588         * gdbarch.h, gdbarch.c: Re-generate.
8589         * blockframe.c (generic_func_frame_chain_valid): Only check
8590         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8591         passing FP to PC_IN_CALL_DUMMY.
8592         Fix PR gdb/360.
8593
8594 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8595
8596         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8597         (register_gdbarch_data): Initialize init_p.
8598         (gdbarch_data): Initialize data pointer using the init function.
8599         (init_gdbarch_data): Delete function.
8600         (gdbarch_update_p): Update.
8601         (initialize_non_multiarch): Update.
8602         (struct gdbarch): Add field initialized_p.
8603         * gdbarch.h, gdbarch.c: Re-generate.
8604
8605 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8606
8607         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8608         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8609         better do the things actually here.
8610         * x86-64-tdep.c (x86_64_register_name2nr): New.
8611         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8612         (x86_64_gdbarch_init): Respect the above change.
8613         * x86-64-tdep.h (x86_64_register_name2nr)
8614         (x86_64_register_nr2name): Add prototypes.
8615         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8616
8617 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8618
8619         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8620         Delete extra braces and re-indent.
8621         (d10v_store_return_value): Char return values
8622         must be shifted over by one byte in R0.
8623         (d10v_extract_return_value): Delete extra braces, re-indent.
8624
8625 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8626
8627         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8628         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8629         (d10v_integer_to_address): Rewrite.
8630         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8631         the d10v specific functions which take care of converting to the
8632         correct space.
8633
8634 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8635
8636         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8637         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8638
8639 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8640
8641         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8642         includes.
8643         * config/tm-linux.h: Ditto.
8644         * config/alpha/tm-alphalinux.h: Ditto.
8645         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8646         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8647         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8648         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8649         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8650         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8651         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8652         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8653         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8654         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8655         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8656         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8657         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8658         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8659         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8660         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8661         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8662         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8663         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8664         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8665         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8666         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8667         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8668         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8669         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8670         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8671         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8672         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8673         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8674         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8675         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8676         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8677         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8678         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8679         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8680         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8681         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8682
8683 2002-05-04  Aidan Skinner <aidan@velvet.net>
8684
8685         * ada-exp.tab.c: New file
8686         * ada-exp.y: New file
8687         * ada-lang.c: New file
8688         * ada-lang.h: New file
8689         * ada-lex.c: New file
8690         * ada-lex.l: New file
8691         * ada-tasks.c: New file
8692         * ada-typeprint.c: New file
8693         * ada-valprint.c: New file
8694         
8695 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8696
8697         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8698         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8699
8700 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8701
8702         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8703         insetead of ppc-linux-tdep.o.
8704         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8705         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8706
8707 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8708
8709         2002-05-07 Christian Groessler <chris@groessler.org>
8710         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8711         bit register contents for little endian hosts.
8712
8713 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8714
8715         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8716         any maintainer.
8717
8718 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8719
8720         * gdbarch.h: Regenerate.
8721
8722 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8723
8724         * MAINTAINERS: Add everyone to write-after-approval list.
8725
8726 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8727
8728         * stack.c (frame_info): Use frame_register_unwind instead of
8729         saved_regs.  Mention when the SP is on the stack or in a register.
8730
8731         * frame.h (frame_register_unwind_ftype): Define.  Document.
8732         (struct frame_info): Add field register_unwind and
8733         register_unwind_cache.
8734         (frame_register_unwind): Declare.
8735         (generic_unwind_get_saved_register): Declare.
8736
8737         * frame.c (frame_register_unwind): New function.
8738         (generic_unwind_get_saved_register): New function.
8739
8740         * blockframe.c (generic_call_dummy_register_unwind): New function.
8741         (frame_saved_regs_register_unwind): New function.
8742         (set_unwind_by_pc): New function.
8743         (create_new_frame): New function.
8744         (get_prev_frame): New function.
8745
8746 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8747
8748         * a29k-share/: Delete directory.
8749         * remote-vx29k.c: Delete file.
8750
8751 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8752
8753         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8754         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8755
8756 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8757
8758         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8759         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8760         (sparc64nbsd-nat.o)
8761         (sparcnbsd-nat.o)
8762         (sparcnbsd-tdep.o): New dependency lists.
8763         * NEWS: Note new UltraSPARC NetBSD native configuration.
8764         * configure.host (sparc64-*-netbsd*): New host.
8765         * configure.tgt (sparc-*-netbsdelf*)
8766         (sparc-*-netbsd*): Set gdb_target to nbsd.
8767         (sparc64-*-netbsd*): New target.
8768         * sparc64nbsd-nat.c: New file.
8769         * sparcnbsd-nat.c: New file.
8770         * sparcnbsd-tdep.c: New file.
8771         * sparcnbsd-tdep.h: New file.
8772         * config/sparc/nbsd.mt: New file.
8773         * config/sparc/nbsd64.mh: New file.
8774         * config/sparc/nbsd64.mt: New file.
8775         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8776         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8777         (HOST_IPC): Remove.
8778         * config/sparc/nbsdaout.mt: Remove.
8779         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8780         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8781         (HOST_IPC): Remove.
8782         * config/sparc/nbsdelf.mt: Remove.
8783         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8784         sparc-nat.c compatiblity defines.
8785         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8786         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8787         * config/sparc/tm-nbsd64.h: New file.
8788         * config/sparc/tm-nbsdaout.h: Remove.
8789         * config/sparc/xm-nbsd.h: Remove.
8790
8791 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8792
8793         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8794         * sparc-tdep.c: Include osabi.h.
8795         (gdbarch_tdep): Add osabi member.
8796         (_initialize_sparc_tdep): Use gdbarch_register.
8797         (sparc_gdbarch_init): Use generic OS ABI framework.
8798         (sparc_dump_tdep): New function.
8799
8800 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8801
8802         * corefile.c (do_captured_read_memory_integer): Return non-zero
8803         result.
8804         (safe_read_memory_integer): Copy result of memory read when
8805         status is non-zero.  Also, add comments.
8806
8807 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8808
8809         * Makefile.in (ppc_tdep_h): Define.
8810         (ppc-linux-nat.o)
8811         (ppc-linux-tdep.o)
8812         (rs6000-tdep.o): Use $(ppc_tdep_h).
8813         (ppc-sysv-tdep.o)
8814         (ppcnbsd-nat.o)
8815         (ppcnbsd-tdep.o): New dependency lists.
8816         * ppc-tdep.h: Use generic OS ABI framework.
8817         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8818         (ppc_linux_init_abi): New functions.
8819         (ppc_sysv_abi_broken_use_struct_convention)
8820         (ppc_sysv_abi_use_struct_convention)
8821         (ppc_sysv_abi_push_arguments): Move to...
8822         * ppc-sysv-tdep.c: ...here.
8823         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8824         * rs6000-tdep.c (process_note_abi_tag_sections)
8825         (get_elfosabi): Remove.
8826         (rs6000_gdbarch_init): Use generic OS ABI framework.
8827         (rs6000_dump_tdep): New function.
8828         (_initialize_rs6000_tdep): Use gdbarch_register.
8829         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8830         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8831         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8832         of ppc-linux-tdep.o.
8833         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8834         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8835         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8836         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8837         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8838         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8839
8840 2002-05-29  Jim Blandy  <jimb@redhat.com>
8841
8842         * macroscope.c (default_macro_scope): Put `void' in empty argument
8843         list.
8844
8845 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8846
8847         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8848         * arch-utils.c: Include "sim-regno.h".
8849         * gdbarch.sh: Don't include "sim-regno.h".
8850         * gdbarch.h, gdbarch.c: Regenerate.
8851         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8852         here.
8853         * arch-utils.h (legacy_register_sim_regno): To here.
8854         * remote-sim.c (legacy_register_sim_regno): Move function from
8855         here.
8856         * arch-utils.c (legacy_register_sim_regno): To here.
8857
8858 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8859
8860         * sim-regno.h: New file.
8861         * Makefile.in (sim_regno_h): Define.
8862         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8863         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8864         (legacy_register_sim_regno): New function.
8865         (one2one_register_sim_regno): New function.
8866         (gdbsim_fetch_register): Rewrite.
8867         (gdbsim_store_register): Only store a register when
8868         REGISTER_SIM_REGNO is valid.
8869         * d10v-tdep.c: Include "sim-regno.h".
8870         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8871         (d10v_ts3_register_sim_regno): Ditto.
8872         * gdbarch.sh: Include "sim-regno.h".
8873         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8874         * gdbarch.h, gdbarch.c: Regenerate.
8875         * arch-utils.h (default_register_sim_regno): Delete declaration.
8876         * arch-utils.c (default_register_sim_regno): Delete function.
8877
8878 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8879
8880         * ppcnbsd-nat.c: Rewrite.
8881         * ppcnbsd-tdep.c: New file.
8882         * ppcnbsd-tdep.h: New file.
8883         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8884         solib.o, and solib-svr4.o.
8885         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8886         nbsd-tdep.o, and corelow.o.
8887
8888 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8889
8890         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8891         `tr' and `sed'.  Mention that `broken' targets are not expected to
8892         build.
8893
8894 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8895
8896         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8897         Let PC point right after the prologue before looking up symbols.
8898         
8899 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8900
8901         * i386-tdep.c (i386_register_virtual_type): Return 
8902         builtin_type_vec128i for SSE registers.
8903
8904         * gdbtypes.h (builtin_type_vec128i): Declare.
8905
8906         * gdbtypes.c (build_builtin_type_vec128i): New function.
8907         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8908         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8909         (build_gdbtypes): Initialize new builtin vector types.
8910         (_initialize_gdbtypes): Register new vector types with gdbarch.
8911
8912 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8913
8914         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8915         since it has been multi-arch'd.
8916         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8917         Move Alpha and VAX multi-arch news entries to same section
8918         as other multi-arch news.
8919
8920 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8921
8922         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8923         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8924         static.  Rename some register numbers to put them in ns32k-tdep
8925         private namespace.
8926         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8927         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8928         functions.
8929         (_initialize_ns32k_tdep): Use gdbarch_register.
8930         * ns32k-tdep.h: New file.
8931         * ns32knbsd-tdep.c: New file.
8932         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8933         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8934         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8935         REGISTER_BYTES, REGISTER_BYTE): Remove.
8936         * config/ns32k/tm-ns32k.h: New file.
8937         * config/ns32k/tm-umax.h: Remove.
8938
8939 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8940
8941         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8942         ns32k_store_struct_return, ns32k_extract_return_value,
8943         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8944         functions.
8945         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8946         ns32k_saved_pc_after_call.
8947         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8948         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8949         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8950         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8951         ns32k_extract_struct_value_address.
8952
8953 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8954
8955         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8956         ns32k_fix_call_dummy): New.
8957         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8958         ns32k_call_dummy_words.
8959         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8960         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8961         CALL_DUMMY_NARGS): Remove.
8962         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8963
8964 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8965
8966         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8967         ns32k_frame_saved_pc, ns32k_frame_args_address,
8968         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8969         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8970         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8971         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8972         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8973         (BREAKPOINT): Remove..
8974         (FRAME_CHAIN): Define as ns32k_frame_chain.
8975         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8976         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8977         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8978         (FRAME_FIND_SAVED_REGS): Remove.
8979         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8980         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8981         (POP_FRAME): Define as ns32k_pop_frame.
8982
8983 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8984
8985         * ns32k-tdep.c (ns32k_register_byte_32082,
8986         ns32k_register_byte_32382, ns32k_register_raw_size,
8987         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8988         functions.
8989         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8990         ns32k_register_byte_32382.
8991         * config/ns32k/tm-umax.h: Update copyright years.
8992         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8993         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8994         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8995         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8996         (ns32k_get_enter_addr): Fix prototype.
8997
8998 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8999
9000         * ns32k-tdep.c: Update copyright years.
9001         (ns32k_register_name_32082): New function.
9002         (ns32k_register_name_32382): Ditto.
9003         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9004         (REGISTER_NAME): Define as ns32k_register_name_32382.
9005         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9006         (REGISTER_NAME): Define as ns32k_register_name_32082.
9007
9008 2002-05-24  Jim Blandy  <jimb@redhat.com>
9009
9010         * dwarf2read.c (free_line_header): Use xfree, not free.
9011
9012 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9013
9014         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9015         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9016
9017 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9018
9019         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9020
9021 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9022
9023         From Ross Alexander at NEC Europe:
9024         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9025
9026 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9027
9028         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9029         for input, rather than parse_and_eval_address.  
9030
9031 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9032
9033         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9034         * Makefile.in (sim_d10v_h): Update definition.
9035
9036 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9037
9038         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9039         change `2002-05-22 Michael Snyder' below.
9040         (d10v_push_arguments): Ditto.
9041         (d10v_extract_return_value): Ditto.
9042
9043 2002-05-23  Jim Blandy  <jimb@redhat.com>
9044
9045         * macrotab.c (check_for_redefinition): Don't complain if the new
9046         definition is the same as the previous one.  Take more arguments
9047         to allow the comparison.
9048         (macro_define_object, macro_define_function): Pass more arguments
9049         to check_for_redefinition.
9050
9051 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9052
9053         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9054         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9055         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9056         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9057         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9058         Add a temp variable to save a call (and a memory read).
9059         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9060         if possible (so that PC_IN_CALL_DUMMY will work).
9061
9062 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9063
9064         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9065
9066 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9067
9068         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9069         fde->cie_ptr.
9070         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9071         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9072         so that frames of shared libraries are mapped correctly.
9073         (execute_stack_op): Change type of 'result' from ULONGEST to
9074         CORE_ADDR.
9075         
9076 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9077
9078         * config/alpha/tm-nbsd.h: Include solib.h.
9079
9080 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9081
9082         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9083         assumptions about the host's byte order.
9084
9085 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9086
9087         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9088         to dependency list.
9089         * alphanbsd-tdep.c: Include solib-svr4.h.
9090         * shnbsd-tdep.c: Ditto.
9091
9092 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9093
9094         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9095         nbsd-tdep.h to dependency list.
9096         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9097         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9098         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9099         nbsdaout.mh and nbsdelf.mh consistently.
9100         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9101         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9102         nbsdaout.mt and nbsdelf.mh consistently.
9103         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9104         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9105         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9106         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9107         a.out shared library stuff from here...
9108         * config/nm-nbsdaout.h: ...to here.
9109         * config/tm-nbsd.h: Remove.
9110         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9111         * config/arm/nbsd.mh: Remove.
9112         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9113         nbsd-tdep.o.
9114         * config/arm/nbsdaout.mh: New file. 
9115         * config/arm/nbsdelf.mh: New file.
9116         * config/arm/nm-nbsdaout.h: New file.
9117         * config/i386/nbsd.mh: Remove.
9118         * config/i386/nbsd.mt: Remove.
9119         * config/i386/nbsdaout.mh: New file.
9120         * config/i386/nbsdaout.mt: New file.
9121         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9122         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9123         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9124         i386_register_u_addr): Remove.
9125         * config/i386/nm-nbsdaout.h: New file.
9126         * config/i386/nm-nbsdelf.h: Remove.
9127         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9128         (USE_STRUCT_CONVENTION): Remove.
9129         * config/i386/tm-nbsdaout.h: New file.
9130         * config/i386/tm-nbsdelf.h: Remove.
9131         * config/m68k/nbsd.mh: Remove.
9132         * config/m68k/nbsd.mt: Remove.
9133         * config/m68k/nbsdaout.mh: New file.
9134         * config/m68k/nbsdaout.mt: New file. 
9135         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9136         * config/m68k/nm-nbsdaout.h: New file.
9137         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9138         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9139         * config/ns32k/nbsd.mh: Remove.
9140         * config/ns32k/nbsd.mt: Remove. 
9141         * config/ns32k/nbsdaout.mh: New file.
9142         * config/ns32k/nbsdaout.mt: New file.
9143         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9144         * config/ns32k/nm-nbsdaout.h: New file.
9145         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9146         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9147         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9148         (SVR4_SHARED_LIBS): Remove.
9149         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9150         * config/sparc/nbsd.mh: Remove.
9151         * config/sparc/nbsd.mt: Remove.
9152         * config/sparc/nbsdaout.mh: New file.
9153         * config/sparc/nbsdaout.mt: New file.
9154         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9155         * config/sparc/nbsdelf.mt: New file.
9156         * config/sparc/nm-nbsdaout.h: New file.   
9157         * config/sparc/nm-nbsdelf.h: Remove.
9158         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9159         * config/sparc/tm-nbsdaout.h: New file.
9160
9161 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9162
9163         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9164         mipsnbsd-tdep.c
9165         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9166
9167 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9168
9169         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9170         shnbsd-nat.c.
9171         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9172
9173 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9174
9175         * NEWS: Note new MIPS NetBSD native configuration. 
9176         * configure.host (mips*-*-netbsd*): New host. 
9177         * configure.tgt (mips*-*-netbsd*): New target. 
9178         * mipsnbsd-nat.c: New file.
9179         * mipsnbsd-tdep.c: New file.
9180         * mipsnbsd-tdep.h: New file.
9181         * config/mips/nbsd.mh: New file.
9182         * config/mips/nbsd.mt: New file.
9183         * config/mips/nm-nbsd.h: New file.
9184         * config/mips/tm-nbsd.h: New file.
9185
9186 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9187
9188         * Makefile.in (SFILES): Add osabi.c.
9189         (COMMON_OBS): Add osabi.o.
9190         (osabi.o): New dependency list.
9191         * osabi.c: New file.
9192         * osabi.h: New file.
9193         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9194
9195         * Makefile.in (alpha_tdep_h): Define and use instead of
9196         alpha-tdep.h.
9197         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9198         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9199         Remove.
9200         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9201         * alpha-tdep.h: Include osabi.h.
9202         (alpha_abi): Remove.
9203         (gdbarch_tdep): Use generic OS ABI framework.
9204         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9205         gdbarch_register_osabi.
9206         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9207         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9208         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9209
9210         * Makefile.in (sh_tdep_h): Add osabi.h.
9211         * sh-tdep.h (sh_osabi): Remove.
9212         (gdbarch_tdep): Use generic OS ABI framework.
9213         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9214         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9215         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9216         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9217
9218         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9219         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9220         gdbarch_register_osabi.
9221         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9222         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9223         (get_elfosabi): Rename to...
9224         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9225         ABI framework support routines.
9226         (arm_gdbarch_init): Use generic OS ABI framework.
9227         (arm_dump_tdep): Likewise.
9228         (_initialize_arm_tdep): Likewise.
9229         * arm-tdep.h: Include osabi.h.
9230         (arm_abi): Remove.
9231         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9232         osabi member.
9233         (arm_gdbarch_register_os_abi): Remove prototype.
9234         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9235         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9236
9237         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9238         * mips-tdep.c: Include osabi.h.
9239         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9240         OS ABI framework.
9241
9242 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9243
9244         * h8300-tdep.c: Fix formatting.
9245
9246 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9247
9248         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9249         printing vector registers.
9250
9251 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9252
9253         From Fernando Nasser:
9254         * remote.c (remote_async_open_1): Re-throw the exception when the
9255         connection fails.
9256         (remote_cisco_open): Ditto.
9257         (remote_open_1): Ditto.
9258
9259 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9260
9261         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9262         (remote_start_remote): Add uiout parameter.  Pass through to
9263         remote_start_remote_dummy.
9264         (remote_open_1): Use catch_exception instead of catch_errors.
9265         (remote_async_open_1): Ditto.
9266         (remote_cisco_open): Ditto.
9267
9268 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9269
9270         * remote.c (remote_start_remote): Replace PTR with void pointer.
9271         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9272         static.
9273
9274 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9275
9276         * gdb_indent.sh: Allow the script to be run in the sim directory.
9277
9278 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9279
9280         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9281         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9282
9283         * corelow.c (core_open): Only call set_gdbarch_from_file if
9284         exec_bfd is NULL.
9285
9286 2002-05-17  Andrey Volkov <avolkov@transas.com>
9287
9288         * h8300-tdep.c: Add support of EXR register
9289         * config/h8300/tm-h8300.h: Ditto. 
9290         
9291 2002-05-17  Andrey Volkov <avolkov@transas.com>
9292
9293         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9294         
9295 2002-05-17  Andrey Volkov <avolkov@transas.com>
9296
9297         * h8300-tdep.c: Change literal regnums to REGNO.
9298         
9299 2002-05-17  Jim Blandy  <jimb@redhat.com>
9300
9301         * NEWS: Note addition of macro support.
9302
9303         Expand preprocessor macros in C expressions.
9304         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9305         (scan_macro_expansion, scanning_macro_expansion,
9306         finished_macro_expansion): New function declarations.
9307         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9308         variable declarations.
9309         * parser-defs.h (expression_context_pc): New declaration.
9310         * parse.c (expression_context_pc): New variable.
9311         (parse_exp_1): Set expression_context_pc, as well as
9312         expression_context_block.
9313         * c-exp.y (yylex): If we're not already reading the result of a
9314         macro expansion, try to macro-expand the next token.  When we're
9315         done scanning a macro expansion, switch back to the mainline text.
9316         Commas and `if's in a macro's expansion don't terminate the input.
9317         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9318         (macro_original_text, macro_expanded_text,
9319         expression_macro_lookup_func, expression_macro_lookup_baton): New
9320         variables.
9321         (scan_macro_expansion, scanning_macro_expansion,
9322         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9323         c_preprocess_and_parse): New functions.
9324         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9325         c_preprocess_and_parse, instead of c_parse.
9326         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9327         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9328
9329 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9330
9331         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9332         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9333         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9334
9335 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9336
9337         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9338
9339 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9340
9341         * Makefile.in (sh_tdep_h): Define and use.
9342         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9343         register enum): Move to...
9344         * * sh-tdep.h: ...here.
9345         * sh-tdep.c: Include sh-tdep.h.
9346         * sh3-rom.c: Likewise.
9347         * shnbsd-tdep.c: Likewise.
9348
9349 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9350
9351         * arm-tdep.c: Spelling fix in comment.
9352
9353 2002-05-16  Jim Blandy  <jimb@redhat.com>
9354
9355         Add commands for manually expanding macros and showing their
9356         definitions.
9357         * macrocmd.c, macroscope.c, macroscope.h: New files.
9358         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9359         (macroscope_h): New variable.
9360         (HFILES_NO_SRCDIR): Add macroscope.h.
9361         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9362         (macroscope.o, macrocmd.o): New rules.
9363
9364         Teach the Dwarf 2 reader to read macro information.
9365         * dwarf2read.c: #include "macrotab.h".
9366         (dwarf_macinfo_buffer): New variable.
9367         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9368         dwarf_macinfo_size.
9369         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9370         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9371         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9372         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9373         dwarf2_macro_spaces_in_definition): New complaints.
9374         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9375         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9376         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9377         the partial symbol table.
9378         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9379         from what's recorded in the partial symbol table.
9380         (read_file_scope): If the compilation unit has a
9381         `DW_AT_macro_info' attribute, read its macro information.
9382         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9383
9384 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9385
9386         Fix PR gdb/546
9387         * ser-tcp.c: Don't include <netinet/udp.h>.
9388
9389 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9390
9391         * MAINTAINERS: Update my email address.
9392
9393 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9394
9395         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9396         include file of the same name.
9397
9398 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9399
9400         * configure.tgt: Mark v850 as multi-arched.
9401         * config/v850/tm-v850.h: Remove file.
9402         * config/v850/v850.mt: Eliminate TM_FILE.
9403
9404 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9405
9406         * v850-tdep.c: Full multi-arch.
9407         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9408         Define GDB_MULTI_ARCH to 2.
9409
9410 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9411
9412         * p-exp.y (current_type): New static variable.
9413         Carries the type of the expression at the position that is parsed.
9414         (push_current_type, pop_current_type): Two new functions. Used
9415         to store/restore current_type in expression on specific tokens.
9416         (search_field): New static variable. Set to one after parsing a point
9417         as at that point only a FIELDNAME token should be searched.
9418         (FIELDNAME): New token. After a point only a token belonging to 
9419         current_type type definition is allowed.
9420         (all over token rules): reset and change current_type according
9421         to rules.
9422         (exp '[' rule): insert implicit array index field if
9423         exp is a pascal string type.
9424
9425 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9426
9427         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9428         frame info.  Use frame_info's saved_regs instead of matching member
9429         in extra_frame_info throughout.
9430         (v850_frame_init_saved_regs): New function.
9431         (v850_init_extra_frame_info): Move most functionality into
9432         v850_frame_init_saved_regs().
9433         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9434         (v850_frame_find_saved_regs): Remove declaration.
9435         (FRAME_FIND_SAVED_REGS): Remove definition.
9436         (v850_frame_init_saved_regs): Add declaration.
9437         (FRAME_INIT_SAVED_REGS): Add definition.
9438
9439 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9440
9441         * v850-tdep.c: Begin multi-arch'ing v850.
9442         (v850_target_architecture_hook): Remove function.
9443         (v850_gdbarch_init): New function.  Add code previously in
9444         v850_target_architecture_hook().
9445         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9446         Call register_gdbarch_init() instead.
9447
9448 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9449
9450         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9451         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9452         (fixup_class_method_type): Likewise.
9453
9454 2002-05-15  Jim Blandy  <jimb@redhat.com>
9455
9456         Add macro structures to GDB's symbol tables.  Nobody puts anything
9457         in them yet.
9458         * symtab.h (struct symtab): New member: `macro_table'.
9459         * buildsym.h (pending_macros): New global variable.
9460         * buildsym.c: #include "macrotab.h".
9461         (buildsym_init): Initialize `pending_macros'.
9462         (end_symtab): If we found macro information while reading a CU's
9463         debugging info, do build a symtab structure for it.  Make the
9464         symtab point to the macro information, and clear the
9465         `pending_macros' pointer which held it while we were reading the
9466         debug info.
9467         (really_free_pendings): Free any pending macro table.
9468         * objfiles.h (struct objfile): New member: `macro_cache'.
9469         * objfiles.c (allocate_objfile): Set allocate and free functions
9470         for the macro cache's objstack.
9471         (free_objfile): Empty the macro cache's obstack.
9472         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9473         set new allocate and free functions for it.
9474         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9475         free functions for the macro cache's objstack.  (Why is this
9476         function building its own objfile?)
9477         * symmisc.c (print_objfile_statistics): Print statistics on the
9478         macro bcache.
9479         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9480
9481 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9482
9483         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9484         (REGISTER_U_ADDR): Delete definition.
9485         (arm_register_u_addr): Delete declaration.
9486
9487 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9488
9489         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9490         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9491
9492 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9493
9494         * regcache.c (register_valid): Revise comments refering to "Not
9495         available" and "unavailable".
9496         * frame.c (frame_register_read): Ditto.
9497         * findvar.c (value_of_register): Ditto.
9498
9499 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9500
9501         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9502         (remote-sim.o): Update dependencies.
9503         (d10v-tdep.o): Specify dependencies.
9504         (sim_d10v_h): Define.
9505
9506 2002-05-14  Jim Blandy  <jimb@redhat.com>
9507
9508         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9509         * macrotab.c (macro_lookup_inclusion, find_definition,
9510         new_macro_table): Same.
9511         
9512         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9513         not `! strcmp ()'.  This is a dubious improvement.
9514         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9515
9516         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9517         although it's not necessary, to avoid a warning.
9518
9519 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9520
9521         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9522         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9523         TYPE_INSTANCE_FLAGS.
9524         (struct main_type): New.
9525         (struct type): Move most members to struct main_type.  Change
9526         cv_type and as_type to new type_chain member.  Add instance_flags.
9527         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9528         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9529         (finish_cv_type): Remove prototype.
9530         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9531         Set TYPE_CHAIN.
9532         (alloc_type_instance): New function.
9533         (smash_type): New function.
9534         (make_pointer_type, make_reference_type, make_function_type)
9535         (smash_to_member_type, smash_to_method_type): Call smash_type.
9536         (make_qualified_type): New function.
9537         (make_type_with_address_space): Call make_qualified_type.
9538         (make_cv_type): Likewise.
9539         (finish_cv_type): Remove unnecessary function.
9540         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9541         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9542         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9543         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9544         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9545         * hpread.c (hpread_read_struct_type): Likewise.
9546         * stabsread.c (read_struct_type): Likewise.
9547
9548 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9549
9550         * configure.tgt: Add a catch all sh* target, for cases like
9551         sh[2,3,4]-elf and sh-hms.
9552
9553 2002-05-14  Keith Seitz  <keiths@redhat.com>
9554
9555         * event-loop.c (create_file_handler): Don't do anything but
9556         update data when we are given a fd which we are already
9557         monitoring.
9558
9559 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9560
9561         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9562         (update_context): Use __func__ in warnings.
9563         
9564 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9565
9566         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9567         and tcp_close to net_open and net_close.
9568         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9569         using UDP if requested.  Don't try to disable Nagle on UDP
9570         sockets.
9571         * remote.c (remote_serial_open): New function.  Warn about UDP.
9572         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9573
9574 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9575
9576         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9577
9578 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9579
9580         * configure.tgt: Remove sh-hms target.
9581         * MAINTAINERS: Don't list sh-hms as a separate target.
9582
9583 2002-05-13  Jim Blandy  <jimb@redhat.com>
9584
9585         Add first preprocessor macro-expansion files.
9586         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9587         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9588         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9589         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9590         (COMMON_OBS): Add macrotab.o, macroexp.o.
9591         (macroexp.o, macrotab.o): New rules.
9592
9593 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9594
9595         * config/m88k/tm-m88k.h: Update copyright.
9596         (m88k_target_write_pc): Declare
9597         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9598         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9599         (SHIFT_INST_REGS): Update definition.
9600         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9601         using old definition of TARGET_WRITE_PC.
9602         * regcache.c (generic_target_write_pc): Delete code handling
9603         NNPC_REGNUM.
9604         * gdbarch.sh (NNPC_REGNUM): Delete.
9605         * gdbarch.h, gdbarch.c: Regenerate.
9606
9607 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9608
9609         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9610         builtin reg number.
9611
9612 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9613
9614         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9615         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9616         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9617         access macros.
9618         * c-typeprint.c (cp_type_print_method_args): Likewise.
9619         (c_type_print_args): Likewise.
9620         * d10v-tdep.c (d10v_push_arguments): Likewise.
9621         (d10v_extract_return_value): Likewise.
9622         * expprint.c (print_subexp): Likewise.
9623         * gdbtypes.c (lookup_primitive_typename): Likewise.
9624         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9625         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9626         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9627         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9628         (TYPE_VECTOR): Likewise.
9629         * hpread.c (hpread_read_struct_type)
9630         (fix_static_member_physnames, fixup_class_method_type)
9631         (hpread_type_lookup): Likewise.
9632         * mdebugread.c (parse_symbol, parse_type): Likewise.
9633         * p-lang.c (is_pascal_string_type): Likewise.
9634         * valops.c (hand_function_call): Likewise.
9635         * x86-64-tdep.c (classify_argument): Likewise.
9636
9637         * hpread.c (hpread_read_function_type)
9638         (hpread_read_doc_function_type): Call replace_type.
9639         * dstread.c (create_new_type): Delete.
9640         (decode_dst_structure, process_dst_function): Call alloc_type.
9641         Use type access macros.
9642
9643 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9644
9645         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9646         the're not supported by the current architecture.
9647         (i387_fill_fxsave): Likewise.
9648
9649 2002-05-12  Fred Fish  <fnf@redhat.com>
9650
9651         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9652         sect_index_xxx members to index the first slot in section_offsets
9653         if all of the section_offsets are zero.
9654
9655 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9656
9657         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9658         checked in with last change.
9659
9660 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9661
9662         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9663         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9664         config.sub.
9665
9666 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9667
9668         * Makefile.in: Update dependencies.
9669
9670 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9671
9672         * language.c (local_hex_string_custom): Simplify.  Do not depend
9673         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9674
9675         * memattr.c (mem_info_command): Replace calls to
9676         longest_local_hex_string and longest_local_hex_string_custom.
9677         * buildsym.c (make_blockvector): Ditto.
9678         * solib.c (info_sharedlibrary_command): Ditto.
9679         * tracepoint.c (tracepoints_info): Ditto.
9680         * symtab.c (print_msymbol_info): Ditto.
9681
9682         * language.c (local_hex_string): Delete.
9683         (local_hex_string_custom): Delete.
9684         (longest_local_hex_string): Rename to local_hex_string.
9685         (longest_local_hex_string_custom): Rename to
9686         local_hex_string_custom.
9687         * language.h (local_hex_string): Change parameter type to LONGEST.
9688         (local_hex_string_custom): Ditto.
9689         (longest_local_hex_string): Delete declaration.
9690         (longest_local_hex_string_custom): Ditto.
9691
9692         * solib.c: Update copyright.
9693         * memattr.c: Update copyright.
9694         
9695 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9696
9697         * arch-utils.h (legacy_register_to_value): Declare.
9698         (legacy_value_to_register): Declare.
9699         (legacy_convert_register_p): Declare.
9700         * arch-utils.c (legacy_register_to_value): New function.
9701         (legacy_value_to_register): New function.
9702         (legacy_convert_register_p): New function.
9703
9704         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9705         (VALUE_TO_REGISTER): Define.
9706         (CONVERT_REGISTER_P): Define.
9707         * gdbarch.h, gdbarch.c: Regenerate.
9708
9709         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9710         VALUE_TO_REGISTER.
9711         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9712         CONVERT_REGISTER_P.
9713
9714 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9715             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9716
9717         * Makefile.in: Update dependencies for valops.c.
9718         * valops.c: Include "gdb_assert.h".
9719         (typecmp): Skip THIS parameter to methods.
9720         (find_method_list): Remove static_memfuncp argument,
9721         update callers.  Check for stub methods.
9722         (find_value_oload_method_list): Don't set *static_memfuncp.
9723         (find_overload_match): Don't check for stub methods.  Assert
9724         that methods are not stubbed.  Handle static methods.
9725         (value_find_oload_method_list): Remove static_memfuncp argument.
9726         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9727         to the argument list for static stub methods.
9728         * value.h (value_find_oload_method_list): Update prototype.
9729
9730 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9731
9732         * arch-utils.h (generic_register_size): Declare.
9733         (generic_register_raw_size, generic_register_virtual_size): Delete
9734         declarations.
9735         * arch-utils.c (generic_register_raw_size): Delete.
9736         (generic_register_size): New function.
9737         (generic_register_virtual_size): Delete.
9738
9739         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9740         default generic_register_size.
9741         * gdbarch.h, gdbarch.c: Re-generate.
9742         
9743         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9744         register_virtual_size.
9745         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9746         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9747
9748 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9749
9750         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9751         * gdbarch.h, gdbarch.c: Regenerate.
9752         * gnu-v3-abi.c: Update copyright.
9753         (vtable_address_point_offset): Update.
9754         (gnuv3_rtti_type): Update.
9755         (gnuv3_baseclass_offset): Update.
9756         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9757         (init_fetch_link_map_offsets): Update.
9758         * remote.c (get_remote_state): Update.
9759         
9760 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9761
9762         * TODO: Remove value_headof/value_from_vtable_info comment.
9763         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9764         * values.c (value_headof, value_from_vtable_info): Delete.
9765         * value.h (value_from_vtable_info): Delete prototype.
9766
9767 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9768
9769         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9770         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9771         $(gdb_regex_h).
9772         (gdb_assert_h): Define.
9773         (gdb_wait_h): Define.
9774         (gdb_regex_h): Define.
9775
9776 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9777
9778         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9779         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9780
9781 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9782
9783         * nbsd-tdep.c: Fix comment.
9784
9785 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9786
9787         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9788         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9789         (nbsd-tdep.o): New dependency list.
9790         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9791         nbsd-tdep.h.
9792         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9793         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9794         * nbsd-tdep.c: New file.
9795         * nbsd-tdep.h: New file.
9796         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9797         nbsd-tdep.h.
9798         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9799         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9800         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9801         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9802
9803 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9804
9805         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9806         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9807         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9808         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9809         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9810         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9811
9812 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9813
9814         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9815         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9816         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9817         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9818         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9819         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9820         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9821
9822 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9823
9824         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9825         fetch_elfcore_registers to...
9826         * i386nbsd-tdep.c: ...here.
9827         (i386nbsd_use_struct_convention): Rename to...
9828         (i386nbsd_aout_use_struct_convention): ...this.
9829         (i386nbsd_supply_reg): New function.
9830         (i386nbsd_fill_reg): New function.
9831         (fetch_core_registers): Use i386nbsd_supply_reg.
9832         (fetch_elfcore_registers): Likewise.
9833         (_initialize_i386nbsd_tdep): New function.
9834         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9835         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9836         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9837         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9838         (i386nbsd_aout_use_struct_convention): ...this.
9839
9840 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9841
9842         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9843         (store_inferior_registers): Use shnbsd_fill_reg.
9844         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9845         sh_nbsd_supply_register): Collapse into...
9846         (shnbsd_supply_reg): ...this.
9847         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9848         (shnbsd_fill_reg): ...this.
9849         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9850         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9851         (fetch_core_registers): Use shnbsd_supply_reg.
9852         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9853         (sh_nbsd_core_fns): Rename to...
9854         (shnbsd_core_fns): ...this.
9855         (sh_nbsd_elfcore_fns): Rename to...
9856         (shnbsd_elfcore_fns): ...this.
9857         (sh_nbsd_init_abi): Rename to...
9858         (shnbsd_init_abi): ...this.
9859         (_initialize_sh_nbsd_tdep): Rename to...
9860         (_initialize_shnbsd_tdep): ...this.
9861         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9862         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9863         sh_nbsd_fill_register): Remove prototypes.
9864         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9865
9866 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9867
9868         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9869         (i387-nat.o): Delete dependency list.
9870         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9871         (x86-64-linux-nat.o): Likewise.
9872         * i387-nat.c: Delete file, moving contents to...
9873         * i387-tdep.c: ...here.
9874         * i387-nat.h: Rename...
9875         * i387-tdep.h: ...to this.
9876         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9877         * i386-linux-nat.c: Likewise.
9878         * i386bsd-nat.c: Likewise.
9879         * i386gnu-nat.c: Likewise.
9880         * i386nbsd-nat.c: Likewise.
9881         * i386v4-nat.c: Likewise.
9882         * x86-64-linux-nat.c: Likewise.
9883         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9884         * config/i386/go32.mh (NATDEPFILES): Likewise.
9885         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9886         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9887         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9888         * config/i386/linux.mh (NATDEPFILES): Likewise.
9889         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9890         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9891         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9892         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9893
9894 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9895
9896         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9897         (alphanbsd-nat.o): Remove dependency list.
9898         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9899         * alphanbsd-nat.c: Delete.  Contents moved to...
9900         * alphanbsd-tdep.c: ...here.
9901         (_initialize_alphanbsd_tdep): Register core functions.
9902         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9903
9904 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9905
9906         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9907         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9908         (alphanbsd-nat.o): Likewise.
9909         (alphabsd-tdep.o): New dependency list.
9910         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9911         (fill_gregset): Use alphabsd_fill_reg.
9912         (supply_fpregset): Use alphabsd_supply_fpreg.
9913         (fill_fpregset): Use alphabsd_fill_fpreg.
9914         (fetch_inferior_registers): Use struct reg and struct fpreg
9915         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9916         and alphabsd_supply_fpreg.
9917         (store_inferior_registers): Use struct reg and struct fpreg
9918         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9919         and alphabsd_fill_fpreg.
9920         * alphabsd-tdep.c: New file.
9921         * alphabsd-tdep.h: New file.
9922         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9923         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9924         alphabsd_supply_fpreg.
9925         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9926         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9927
9928 2002-05-11  Eric Christopher  <echristo@redhat.com>
9929
9930         * mips-tdep.c (mips_double_register_type): Fix thinko.
9931         (mips_single_register_type): Ditto.
9932         * MAINTAINERS: Add self.
9933
9934 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9935
9936         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9937         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9938         right thing on architectures with different endianness and/or
9939         integer sizes.
9940
9941 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9942
9943         From Christian Limpach <chris@Pin.LU>
9944         * configure.in: Change sed expression which comments out
9945         NATDEPFILES to also comment out continuation lines.
9946         * configure: Regenerate.
9947
9948 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9949
9950         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9951         big patch.
9952
9953 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9954
9955         * sh-tdep.c: Include correct file.
9956
9957 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9958
9959         New support for sh64-elf (sh5) target.
9960
9961         * configure.tgt: For sh64-elf target, default to sh-elf.
9962
9963         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9964         (struct gdbarch_tdep): Add new fields for new registers and ABI
9965         info.
9966
9967         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9968         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9969         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9970         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9971         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9972         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9973         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9974         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9975         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9976         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9977         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9978         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9979         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9980         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9981         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9982         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9983         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9984         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9985         sign_extend, sh64_nofp_frame_init_saved_regs,
9986         sh64_init_extra_frame_info, sh64_get_saved_register,
9987         sh64_extract_struct_value_address, sh64_pop_frame,
9988         sh64_push_arguments, sh64_extract_return_value,
9989         sh64_store_return_value, sh64_show_media_regs,
9990         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9991         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9992         sh_sh64_register_virtual_type,
9993         sh_sh64_register_convert_to_virtual,
9994         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9995         sh64_register_read, sh64_pseudo_register_write,
9996         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9997         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9998         sh64_do_pseudo_register, sh_compact_do_registers_info,
9999         sh64_do_registers_info, sh_gdbarch_init): New functions.
10000
10001 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10002
10003         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10004
10005 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10006
10007         * linespec.c (decode_line_1): Check for a double quote after
10008         a filename correctly.
10009
10010 2002-05-10  Jim Blandy  <jimb@redhat.com>
10011
10012         Properly track the size of the current objfile's .debug_line section.
10013         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10014         (DWARF_LINE_SIZE): New macro.
10015         (dwarf2_build_psymtabs_hard): Record the line section's size in
10016         the partial symbol table.
10017         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10018         symbol table.
10019
10020 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10021
10022         * ia64-tdep.c: Handle breakpoints on L instruction type
10023         in MLX instruction bundle by moving the breakpoint to
10024         the third slot (X instruction type) as L holds only data.
10025
10026 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10027
10028         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10029         (process_one_symbol): Complain about discarding local symbols
10030         due to a misplaced N_LBRAC entry.
10031
10032 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10033
10034         From Daniel Berlin <dan@cgsoftware.com>
10035         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10036         decrease the depth we are at, in the case of templates.
10037
10038 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10039
10040         * mips-tdep.c (mips_float_register_type): New function.
10041         (mips_double_register_type): New function.
10042         (mips_print_register): Use them.
10043         (do_fp_register_row): Likewise.
10044
10045 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10046
10047         * signals/signals.c (signals): Remove conditional compilation around
10048         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10049         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10050
10051 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10052
10053         * remote-rdp.c (remote_rdp_can_run): Remove.
10054
10055 2002-05-09  Tom Tromey  <tromey@redhat.com>
10056
10057         * jv-valprint.c (java_val_print): Handle `char' as a special case
10058         of TYPE_CODE_INT.
10059
10060 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10061
10062         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10063         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10064         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10065         str r(0123),[sp,#nn].
10066         (arm_skip_prologue): Ditto.  Also make disassembly
10067         order-independent by placing it in a loop.
10068
10069 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10070
10071         * stabsread.c (read_type): Add recognition for new attribute:
10072         "@V;" means that an array type is actually a vector.
10073         This is analogous to the vector flag that's been added to dwarf2.
10074
10075 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10076
10077         * i386-tdep.h (i386_abi): New enum.
10078         (struct gdbarch_tdep): Replace os_ident member with abi.
10079         (i386_gdbarch_register_os_abi): New prototype.
10080         * i386-tdep.c (i386_abi_names): New array.
10081         (process_note_abi_tag_sections): Removed.
10082         (process_note_sections): New function.
10083         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10084         (struct i386_abi_handler): New struct.
10085         (i386_abi_handler_list): New variable.
10086         (i386_gdbarch_register_os_abi): New function.
10087         (i386_gdbarch_init): Adapt for the changes given above.
10088
10089 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10090
10091         * gregset.h: Say "GNU/Linux".
10092
10093 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10094
10095         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10096         (build_gdbtypes): Build builtin_type_v2_float.
10097         (_initialize_gdbtypes): Register new builtin type.
10098
10099 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10100
10101         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10102         (clear_gdbarch_swap): New function.
10103         (initialize_non_multiarch): Call.
10104         (gdbarch_update_p): Before calling init(), swap out and clear the
10105         existing architecture.
10106         * gdbarch.c: Regenerate.
10107
10108 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10109
10110         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10111         alphanbsd-tdep.c.
10112
10113 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10114
10115         * sh-nbsd-nat.c: Rename to...
10116         * shnbsd-nat.c: ...this.
10117         * sh-nbsd-tdep.c: Rename to...
10118         * shnbsd-tdep.c: ...this.
10119         * sh-nbsd-tdep.h: Rename to...
10120         * shnbsd-tdep.h: ...this.
10121         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10122         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10123
10124 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10125
10126         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10127         concatenation for command help messages.
10128
10129 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10130
10131         * NEWS: Note new sh*-*-netbsdelf* configuration.
10132         * configure.host: Set gdb_host_cpu to sh for all sh*.
10133         (sh*-*-netbsdelf*): New host.
10134         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10135         (sh*-*-netbsdelf*): New target.
10136         * sh-nbsd-nat.c: New file.
10137         * sh-nbsd-tdep.c: New file.
10138         * sh-nbsd-tdep.h: New file.
10139         * config/sh/nbsd.mh: New file.
10140         * config/sh/nbsd.mt: New file.
10141         * config/sh/nm-nbsd.h: New file.
10142         * config/sh/tm-nbsd.h: New file.
10143
10144 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10145
10146         * sh-tdep.c (sh_osabi_names): Declare.
10147         (process_note_abi_tag_sections): New function.
10148         (get_elfosabi): Ditto.
10149         (sh_gdbarch_register_os_abi): Ditto.
10150         (sh_dump_tdep): Ditto.
10151         _initialize_sh_tdep): Use gdbarch_register to register
10152         sh_gdbarch_init and sh_dump_tdep.
10153         * config/sh/tm-sh.h (sh_osabi): Declare.
10154         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10155
10156 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10157
10158         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10159         (thumb_scan_prologue): Ditto.
10160         (arm_find_callers_reg): Ditto.
10161         (arm_frame_chain): Ditto.
10162         (arm_init_extra_frame_info): Ditto.
10163         (arm_frame_saved_pc): Ditto.
10164         (arm_pop_frame): Ditto.
10165         (arm_push_return_address): New function.
10166         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10167         call_dummy_location, call_dummy_breakpoint_offset_p,
10168         call_dummy_breakpoint_offset, call_dummy_p,
10169         call_dummy_stack_adjust_p, call_dummy_words,
10170         sizeof_call_dummy_words, call_dummy_start_offset,
10171         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10172         call_dummy_address, push_return_address and push_dummy_frame for
10173         generic dummy frames.
10174
10175 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10176
10177         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10178         size computation for alloca.
10179         (sh_fp_frame_init_saved_regs): Likewise.
10180
10181 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10182
10183         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10184         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10185         * arm-tdep.c (arm_store_return_value): Use them.
10186         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10187         * remote-rdp.c (remote_rdp_fetch_register): Use
10188         ARM_MAX_REGISTER_RAW_SIZE.
10189         (remote_rdp_store_register): Likewise.
10190
10191 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10192
10193         * dwarf2cfi.c: Code cleanup, removed unused variables,
10194         added default labels to switch {} statements.
10195         * x86-64-tdep.c: Ditto.
10196         * x86-64-linux-nat.c: Ditto.
10197
10198 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10199
10200         * solib.h: Protect against multiple inclusion.
10201
10202 2002-05-06  Jim Blandy  <jimb@redhat.com>
10203
10204         Add first preprocessor macro-expansion files.
10205         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10206         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10207         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10208         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10209         (COMMON_OBS): Add macrotab.o, macroexp.o.
10210         (macroexp.o, macrotab.o): New rules.
10211
10212         Separate the job of reading the line number info statement program
10213         header (...expialidocious) out into its own function.
10214         * dwarf2read.c (struct line_head, struct filenames, struct
10215         directories): Replace with...
10216         (struct line_header): New structure, containing the full
10217         contents of the statement program header, including the
10218         include directory and file name tables.
10219         (read_file_scope): If we have line number info, instead of just
10220         calling dwarf_decode_lines to do all the work, call
10221         dwarf_decode_line_header first to get a `struct line_header'
10222         containing the data in the statement program header, and then
10223         pass that to dwarf_decode_lines, which will pick up where that
10224         left off.  Be sure to clean up the `struct line_header' object.
10225         (dwarf_decode_line_header, free_line_header, add_include_dir,
10226         add_file_name): New functions.
10227         (dwarf_decode_lines): Move all the code to read the statement
10228         program header into dwarf_decode_line_header.  Take the line
10229         header it built as the first argument, instead of the offset to
10230         the compilation unit's line number info.  Use the new `struct
10231         line_header' type instead of the old structures.  No need to do
10232         cleanups here now, since we don't allocate anything.
10233         (dwarf2_statement_list_fits_in_line_number_section,
10234         dwarf2_line_header_too_long): New complaints.
10235
10236 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10237
10238         * gdbtypes.c (init_vector_type): New function.
10239         (build_builtin_type_vec128): Simplify the representation of SIMD
10240         registers.
10241         (build_gdbtypes): Initialize new builtin vector types.
10242         (_initialize_gdbtypes): Register new vector types with gdbarch.
10243         (builtin_type_v4_float, builtin_type_v4_int32,
10244         builtin_type_v8_int16, builtin_type_v16_int8,
10245         builtin_type_v2_int32, builtin_type_v4_int16,
10246         builtin_type_v8_int8): New (renamed) SIMD types.
10247
10248 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10249
10250         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10251         (i387_fill_fxsave): Likewise.
10252
10253 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10254
10255         * alpha-tdep.c (alpha_extract_return_value): Don't use
10256         non-constant array size in prototype.
10257
10258 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10259
10260         From Brian Taylor <briant at model dot com>:
10261         * ui-out.c (ui_out_field_core_addr): Use the function
10262         longest_local_hex_string_custom'to format addresses > 32 bits
10263         wide.
10264
10265         * ui-out.c (ui_out_field_core_addr): Update comment.
10266
10267 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10268
10269         * stack.c (select_and_print_frame): Make static.  Delete the
10270         parameter `level'.
10271         (func_command): Update call.
10272         (select_frame_command): Delete code computing the frame level.
10273         * frame.h (select_and_print_frame): Delete declaration.
10274
10275 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10276
10277         * sparc-tdep.c (sparc_get_saved_register): Comment why
10278         get_prev_frame call is safe.
10279
10280 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10281
10282         * frame.h (select_frame): Delete level parameter.
10283         * stack.c (select_frame): Update.  Use frame_relative_level to
10284         obtain the frame's level.
10285         (select_and_print_frame): Update call.
10286         (select_frame_command): Ditto.
10287         (up_silently_base): Ditto.
10288         (down_silently_base): Ditto.
10289         * ocd.c (ocd_start_remote): Ditto.
10290         * remote-rdp.c (remote_rdp_open): Ditto.
10291         * remote-mips.c (mips_initialize): Ditto.
10292         (common_open): Ditto.
10293         * remote-e7000.c (e7000_start_remote): Ditto.
10294         * m3-nat.c (select_thread): Ditto.
10295         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10296         (child_get_current_exception_event): Ditto.
10297         * varobj.c (varobj_create): Ditto.
10298         (varobj_update): Ditto.
10299         (c_value_of_root): Ditto.
10300         * tracepoint.c (finish_tfind_command): Ditto.
10301         * corelow.c (core_open): Ditto.
10302         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10303         * thread.c (info_threads_command): Ditto.
10304         (switch_to_thread): Ditto.
10305         * infrun.c (normal_stop): Ditto.
10306         (restore_selected_frame): Ditto.
10307         (restore_inferior_status): Ditto.
10308         * breakpoint.c (insert_breakpoints): Ditto.
10309         (watchpoint_check): Ditto.
10310         (bpstat_stop_status): Ditto.
10311         (do_enable_breakpoint): Ditto.
10312         * blockframe.c (flush_cached_frames): Ditto.
10313         (reinit_frame_cache): Ditto.
10314
10315 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10316
10317         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10318         maintainer.
10319
10320 2002-05-04  Jim Blandy  <jimb@redhat.com>
10321
10322         * gdbtypes.c (replace_type): Doc fix.
10323
10324 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10325
10326         * valprint.c (strcat_longest): Delete commented out function.
10327         Update copyright.
10328
10329 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10330
10331         * MAINTAINERS: Mark a29k as deleted.
10332         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10333         Move new configurations to the top.
10334         * configure.tgt: Remove a29k.
10335         * config/a29k/tm-vx29k.h: Delete.
10336         * config/a29k/vx29k.mt: Delete.
10337         * config/a29k/tm-a29k.h: Delete.
10338         * config/a29k/a29k-udi.mt: Delete.
10339         * config/a29k/a29k.mt: Delete.
10340         * a29k-tdep.c: Delete.
10341         * remote-udi.c: Delete.
10342         * remote-mm.c: Delete.
10343         * remote-eb.c: Delete.
10344         * remote-adapt.c: Delete.
10345         * Makefile.in: Remove obsolete code.
10346         * config/s390/s390x.mt: Ditto.
10347         * config/s390/s390.mt: Ditto.
10348         * config/sparc/sparclynx.mh: Ditto.
10349         * config/sparc/linux.mh: Ditto.
10350         * config/pa/hppaosf.mh: Ditto.
10351         * config/pa/hppabsd.mh: Ditto.
10352         * config/ns32k/nbsd.mt: Ditto.
10353         * config/mips/vr5000.mt: Ditto.
10354         * config/m68k/sun3os4.mh: Ditto.
10355         * config/m68k/nbsd.mt: Ditto.
10356         * config/m68k/m68klynx.mh: Ditto.
10357         * config/m32r/m32r.mt: Ditto.
10358         * config/i386/x86-64linux.mt: Ditto.
10359         * config/i386/nbsdelf.mt: Ditto.
10360         * config/i386/nbsd.mt: Ditto.
10361         * config/i386/i386lynx.mh: Ditto.
10362
10363 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10364
10365         * target.c (debug_print_register): New function.  Handle oversize
10366         registers.
10367         (debug_to_fetch_registers): Call.
10368         (debug_to_store_registers): Call.
10369
10370 2002-05-03  Jim Blandy  <jimb@redhat.com>
10371
10372         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10373         (read_type): Doc fix.
10374         * gdbtypes.c (replace_type): Doc fix.
10375
10376         * stabsread.c (multiply_defined_struct): New complaint.
10377         (read_struct_type): If the type we were passed isn't empty, or
10378         incomplete, don't read the new struct type into it; complain,
10379         and return the original type unchanged.  Take a new `type_code'
10380         argument, which is the type code for the new type.
10381         (read_type): Rather than storing the type's type code here, pass
10382         it as an argument to read_struct_type, and let that take care of
10383         storing it.  That way, we don't overwrite the original type code,
10384         so read_struct_type can use it to decide whether we're overwriting
10385         something we shouldn't.
10386         (complain_about_struct_wipeout): New function.
10387
10388 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10389
10390         * gdbarch.sh: Assert that gdbarch is non-NULL.
10391         * gdbarch.c: Regenerate.
10392
10393 2002-05-03  Jason Merrill  <jason@redhat.com>
10394
10395         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10396         and return NULL.
10397
10398 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10399
10400         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10401         (x86_64_dwarf2gdb_regno_map_length),
10402         (x86_64_dwarf2_reg_to_regnum): Added.
10403         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10404         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10405         (_initialize_x86_64_tdep): Synced with the change above.
10406         (x86_64_skip_prologue): Reformulated message.
10407
10408 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10409
10410         * f-exp.y: Also use new prev_lexptr variable
10411         to improve error reporting. Based on Michael Snyder
10412         2002-04-24 dated patch to c-exp.y.
10413         * jv-exp.y: Likewise.
10414         * m2-exp.y: Likewise.
10415
10416 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10417
10418         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10419         we are dealing with vectors.
10420
10421 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10422
10423         * config/m68k/tm-nbsd.h: Obvious fix,
10424         correct machine name.
10425
10426 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10427
10428         * p-typeprint.c (pascal_type_print_base): Add support
10429         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10430
10431 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10432
10433         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10434         for fondamental pascal 'char' type.
10435
10436 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10437
10438         * p-lang.h (is_pascal_string_type): Declaration changed,
10439         new sixth argument of type char ** added.
10440         * p-lang.c (is_pascal_string_type): Implementation
10441         changed. Args length_pos, length_size, string_pos, char_size
10442         can now be NULL. New argument arrayname set to the field
10443         name of the char array. Return value set to char array
10444         field index plus one.
10445         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10446         is_pascal_string_type function.
10447
10448 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10449
10450         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10451         <cagney@redhat.com> change.
10452         * gdbarch.c: Regenerate.
10453
10454 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10455
10456         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10457         before probing for a new one.  Detect errorenous gdbarch_init
10458         functions.
10459         * gdbarch.c: Regenerate.
10460
10461 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10462
10463         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10464         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10465         * config/v850/tm-v850.h: Ditto.  Update copyright.
10466
10467 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10468
10469         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10470         current_gdbarch.
10471
10472 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10473
10474         * arm-tdep.c: Whitespace clean-ups.
10475         (arm_skip_prologue): Fix thinko; two lines
10476         should have been removed as part of 4/24 change.
10477
10478 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10479
10480         * rs6000-tdep.c: Added comment describing how fpscr register
10481         numbers were chosen.
10482
10483 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10484
10485         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10486
10487 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10488
10489         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10490         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10491         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10492
10493 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10494
10495         From Louis Hamilton <hamilton@redhat.com>:
10496         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10497         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10498         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10499         not bfd-private xcoff data, to determine wordsize.
10500         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10501
10502 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10503
10504         GDB 5.2 released from 5.2 branch.
10505
10506 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10507
10508         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10509         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10510         (x86_64_register_info_table): Added comments with register numbers.
10511
10512 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10513
10514         * rs6000-tdep.c (rs6000_extract_return_value,
10515         rs6000_store_return_value): Handle returning vectors.
10516         (rs6000_gdbarch_init): Use
10517         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10518         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10519         New function.
10520         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10521         vectors.
10522         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10523         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10524
10525 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10526
10527         * hpread.c (hpread_psymtab_to_symtab_1,
10528         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10529         with fprintf_unfiltered (gdb_stderr,...).
10530
10531 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10532
10533         * remote-array.c (printf_monitor, write_monitor,
10534         array_insert_breakpoint, array_remove_breakpoint ):
10535         Replace fprintf (stderr,...
10536         with fprintf_unfiltered (gdb_stderr,....
10537         * remote-es.c: Likewise.
10538         * remote-os9k.c: Likewise.
10539         * remote-st.c: Likewise.
10540
10541 2002-04-28  Andreas Schwab  <schwab@suse.de>
10542
10543         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10544         linux-proc.o and gcore.o.
10545
10546 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10547
10548         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10549         code without frame pointers.
10550
10551 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10552
10553         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10554         ON_STACK is needed.
10555
10556 2002-04-26  Ben Elliston  <bje@redhat.com>
10557
10558         * target.c (do_xfer_memory): Correct reference to the new option
10559         "trust-readonly-sections".
10560
10561 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10562
10563         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10564         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10565         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10566         vectors.
10567         (read_array_type): Record the fact that this array type is really a
10568         vector (i.e. are passed in by value).
10569
10570 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10571
10572         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10573         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10574         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10575         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10576         * alpha-linux-tdep.c: Include frame.h.
10577         (alpha_linux_sigcontext_addr): New function.
10578         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10579         alpha_linux_sigcontext_addr.
10580         * alpha-osf1-tdep.c: Include gdbcore.h.
10581         (alpha_osf1_sigcontext_addr): New function.
10582         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10583         alpha_osf1_sigcontext_addr.
10584         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10585         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10586
10587 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10588
10589         * stack.c (selected_frame_level):
10590         (select_frame): Do not set selected_frame_level.
10591         * frame.h (selected_frame_level): Delete declaration.
10592
10593 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10594
10595         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10596         convert_from_func_ptr-addr when AIX / PowerOpen.
10597
10598 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10599
10600         * valops.c (hand_function_call): Call
10601         generic_save_call_dummy_addr.
10602         * frame.h (generic_save_call_dummy_addr): Declare.
10603         * blockframe.c (struct dummy_frame): Add fields call_lo and
10604         call_hi.
10605         (generic_find_dummy_frame): Check for PC in range call_lo to
10606         call_hi instead of entry_point_address.
10607         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10608         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10609         (generic_save_call_dummy_addr): New function.
10610
10611 2002-04-24  David S. Miller  <davem@redhat.com>
10612
10613         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10614         sparc_skip_prologue.
10615         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10616         information to find prologue when possible.
10617         (sparc_prologue_frameless_p): Call examine_prologue directly.
10618         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10619         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10620         second argument.
10621         (SKIP_PROLOGUE): Likewise.
10622
10623 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10624
10625         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10626         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10627         indicate that the condition it was testing is always true.
10628         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10629         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10630         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10631
10632 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10633
10634         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10635         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10636         tdep->jb_pc and tdep->jb_elt_size.
10637         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10638         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10639         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10640         * alpha-nat.c (get_longjmp_target): Remove.
10641         (JB_ELEMENT_SIZE): Ditto.
10642         (JB_PC): Ditto.
10643         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10644         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10645         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10646         to alpha_get_longjmp_target.
10647         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10648         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10649         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10650
10651 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10652
10653         * README: Update to GDB 5.2.
10654
10655 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10656
10657         * gdbarch.sh (LC_ALL): Set to `c'.
10658
10659 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10660
10661         * avr-tdep.c: Ran through gdb_indent.sh.
10662
10663 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10664
10665         * MAINTAINERS: Add myself as AVR maintainer.
10666         * NEWS: Note new target avr.
10667
10668 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10669
10670         * Makefile.in: Add support for AVR target.
10671         * configure.tgt: Add support for AVR target.
10672         * avr-tdep.c: New file
10673         * config/avr/avr.mt: New file.
10674
10675 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10676
10677         * MAINTAINERS: Add myself to write-after-approval.
10678
10679 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10680
10681         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10682         with fprintf_unfiltered (gdb_stderr,....
10683
10684 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10685
10686         Fix PR gdb/508.
10687         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10688
10689 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10690
10691         * p-exp.y: Also use new prev_lexptr variable
10692         to improve error reporting. Based on Michael Snyder
10693         2002-04-24 dated patch to c-exp.y.
10694
10695 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10696
10697         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10698         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10699         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10700         to 0.
10701         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10702         and struct value.
10703         (FUNCTION_START_OFFSET): Remove.
10704         (BREAKPOINT): Ditto.
10705
10706 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10707
10708         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10709         * NEWS: Ditto.
10710
10711 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10712
10713         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10714         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10715         alpha_linux_pc_in_sigtramp.
10716         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10717         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10718         alpha_osf1_pc_in_sigtramp.
10719         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10720         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10721         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10722         alphafbsd_pc_in_sigtramp.
10723         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10724         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10725         alphanbsd_pc_in_sigtramp.
10726         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10727         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10728
10729 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10730
10731         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10732
10733 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10734
10735         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10736         alphanbsd-tdep.c.
10737         (alphanbsd-nat.o): New dependency list.
10738         (alphanbsd-tdep.o): Ditto.
10739         * NEWS: Note new native NetBSD/alpha configuration.
10740         * alphanbsd-nat.c: New file.
10741         * alphanbsd-tdep.c: Ditto.
10742         * configure.host (alpha*-*-netbsd*): New host.
10743         * configure.tgt (alpha*-*-netbsd*): New target.
10744         * config/alpha/nbsd.mh: New file.
10745         * config/alpha/nbsd.mt: Ditto.
10746         * config/alpha/nm-nbsd.h: Ditto.
10747         * config/alpha/tm-nbsd.h: Ditto.
10748
10749 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10750
10751         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10752         (alpha-osf1-tdep.o): New dependency list.
10753         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10754         and skip_sigtramp_frame members.
10755         * alpha-linux-tdep.c: Include gdbcore.h.
10756         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10757         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10758         * alpha-osf1-tdep.c: New file.
10759         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10760         alpha-osf1-dep.c.
10761         (alpha_frame_past_sigtramp_frame): New function.
10762         (alpha_dynamic_sigtramp_offset): Ditto.
10763         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10764         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10765         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10766         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10767         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10768         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10769         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10770         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10771         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10772         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10773         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10774         to find_solib_trampoline_target.
10775         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10776         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10777         (SKIP_TRAMPOLINE_CODE): Remove.
10778         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10779         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10780         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10781         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10782         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10783         (PROC_SIGTRAMP_MAGIC): Ditto.
10784         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10785         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10786         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10787         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10788         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10789
10790 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10791
10792         * NEWS: Note that Alpha targets are now multi-arch.
10793
10794 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10795
10796         * parser-defs.h (prev_lexptr): New external variable.
10797         * parse.c (parse_exp_1): Set prev_lexptr to null before
10798         calling the language-specific parser.
10799         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10800         (yyerror): Use prev_lexptr in error reporting.
10801
10802 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10803
10804         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10805         * gregset.h: If FILL_FPXREGSET is defined, provide
10806         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10807         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10808         is defined, call fill_fpxregset.
10809
10810 2002-04-24  Roland McGrath  <roland@frob.com>
10811
10812         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10813         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10814         (supply_gregset, supply_fpregset): New functions.
10815
10816         * gnu-nat.c (gnu_find_memory_regions): New function.
10817         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10818         (gnu_xfer_memory): Add a cast.
10819
10820 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10821
10822         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10823         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10824         of argument regs ("str r(0123), [r11, #-nn"]).
10825         (arm_skip_prologue): Better handling for frameless functions.
10826         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10827         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10828
10829 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10830
10831         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10832         NUM_PSEUDO_REGS can be used.
10833
10834 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10835
10836         * arch-utils.h: Update copyright.
10837
10838         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10839         * gdbarch.h, gdbarch.c: Re-generate.
10840
10841         * inferior.h (IN_SIGTRAMP): Delete definition.
10842         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10843         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10844
10845         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10846         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10847         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10848         (find_proc_framesize): Ditto.
10849         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10850         (alpha_init_extra_frame_info): Ditto.
10851         * infrun.c (handle_inferior_event): Ditto.
10852         (handle_inferior_event): Ditto.
10853         (check_sigtramp2): Ditto.
10854         * blockframe.c (create_new_frame): Ditto.
10855         (get_prev_frame): Ditto.
10856         * ppc-linux-tdep.c: Update comments.
10857         * i386-linux-tdep.c: Update comments.
10858         * breakpoint.c (bpstat_what): Update comment.
10859
10860 2002-04-24  David S. Miller  <davem@redhat.com>
10861
10862         * i960-tdep.c (register_in_window_p): New function.
10863         (i960_find_saved_register): Use it instead of
10864         REGISTER_IN_WINDOW_P.
10865         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10866
10867         * symtab.h (find_stab_function_addr): Kill extern.
10868         * minsyms.c (find_stab_function_addr): Remove from here...
10869         * dbxread.c: ... to here, and mark it static.
10870
10871 2002-04-20  David S. Miller  <davem@redhat.com>
10872
10873         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10874         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10875
10876 2002-04-21  David S. Miller  <davem@redhat.com>
10877
10878         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10879         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10880         (vx_write_register): Likewise.
10881
10882 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10883
10884         * source.c (is_regular_file): New function.
10885         (openp): Check wether file to open is a regular file
10886         to avoid opening directories.
10887
10888 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10889
10890         * findvar.c (extract_signed_integer): Cast printf argument
10891         to suppress format warning.
10892         (extract_unsigned_integer): Likewise.
10893         * infcmd.c (registers_info): Likewise.
10894         * top.c (get_prompt_1): Likewise.
10895         * valops.c (value_assign): Likewise.
10896         * valprint.c (print_decimal): Likewise.
10897
10898 2002-04-22  H.J. Lu  (hjl@gnu.org)
10899
10900         * c-exp.y (typebase): Support
10901
10902         [long|long long|short] [signed|unsigned] [int|]
10903
10904         and
10905
10906         signed [long|long long|short] int
10907
10908 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10909
10910         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10911         and vax-tdep.h.
10912         * vax-tdep.h: New file.
10913         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10914         Make several routines static.
10915         (vax_get_saved_register): New function.
10916         (vax_gdbarch_init): New function.
10917         (_initialize_vax_tdep): Register vax_gdbarch_init.
10918         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10919         Remove macros now under the control of gdbarch.
10920
10921 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10922
10923         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10924         Some whitespace and coding standards tweaks.
10925
10926 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10927
10928         * vax-tdep.c: Include regcache.h.
10929         (vax_call_dummy_words): New.
10930         (sizeof_vax_call_dummy_words): New.
10931         (vax_fix_call_dummy): New function.
10932         (vax_saved_pc_after_call): Ditto.
10933         * config/vax/tm-vax.h: Don't include regcache.h.
10934         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10935         (CALL_DUMMY): Remove.
10936         (CALL_DUMMY_WORDS): Define.
10937         (SIZEOF_CALL_DUMMY_WORDS): Define.
10938         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10939
10940 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10941
10942         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10943
10944 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10945
10946         * vax-tdep.c (vax_frame_chain): New function.
10947         (vax_push_dummy_frame): Ditto.
10948         (vax_pop_frame): Ditto.
10949         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10950         (FRAMELESS_FUNCTION_INVOCATION): Use
10951         generic_frameless_function_invocation_not.
10952         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10953         (POP_FRAME): Use vax_pop_frame.
10954
10955 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10956
10957         * vax-tdep.c (vax_store_struct_return): New function.
10958         (vax_extract_return_value): Ditto.
10959         (vax_store_return_value): Ditto.
10960         (vax_extract_struct_value_address): Ditto.
10961         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10962         vax_store_struct_return.
10963         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10964         (STORE_RETURN_VALUE): Use vax_store_return_value.
10965         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10966
10967 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10968
10969         * vax-tdep.c (vax_frame_saved_pc): New function.
10970         (vax_frame_args_address_correct): Ditto.
10971         (vax_frame_args_address): Ditto.
10972         (vax_frame_locals_address): Ditto.
10973         (vax_frame_num_args): Move code to be in proximity to
10974         other frame-related functions.
10975         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10976         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10977         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10978         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10979         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10980
10981 2002-04-22  H.J. Lu  (hjl@gnu.org)
10982
10983         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10984         includedir.
10985
10986 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10987
10988         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10989         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10990         (FRAME_INIT_SAVED_REGS): New macro.
10991
10992 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10993
10994         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10995
10996 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10997
10998         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10999         where needed.
11000         (fetch_osf_core_registers): Likewise.
11001         (supply_gregset): Likewise.
11002
11003 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11004
11005         * symfile.h (get_section_index): Define.
11006         * symfile.c (get_section_index): New function.
11007         * mdebugread.c (SC_IS_SBSS): New macro.
11008         (SC_IS_BSS): Return true for the scBss storage class only, as
11009         the scSBss storage class refers to the .sbss section.
11010         (parse_partial_symbols): Discard the symbols which associated
11011         section does not exist.
11012         Make sure to use the .sbss section index for symbols which
11013         storage class is scBss, rather than using the .bss section index.
11014
11015 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11016
11017         * vax-tdep.c: Update copyright years.
11018         (vax_register_name): New function.
11019         (vax_register_byte): Ditto.
11020         (vax_register_raw_size): Ditto.
11021         (vax_register_virtual_size): Ditto.
11022         (vax_register_virtual_type): Ditto.
11023         * config/vax/tm-vax.h: Update copyright years.
11024         (REGISTER_NAMES): Remove.
11025         (REGISTER_NAME): Define.
11026         (REGISTER_BYTE): Use vax_register_byte.
11027         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11028         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11029         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11030
11031 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11032
11033         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11034         declaration
11035         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11036
11037 2002-04-21  David S. Miller  <davem@redhat.com>
11038
11039         * arch-utils.c (generic_prologue_frameless_p): Kill
11040         SKIP_PROLOGUE_FRAMELESS_P code.
11041         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11042         references.
11043         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11044         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11045         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11046         references.
11047         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11048         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11049         (sparc_gdbarch_init): Pass it to
11050         set_gdbarch_prologue_frameless_p.
11051
11052 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11053
11054         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11055         (alphabsd-nat.o): New dependency list.
11056
11057 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11058
11059         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11060         alphafbsd-tdep.c.
11061         (alpha-linux-tdep.o): New dependency list.
11062         (alphafbsd-tdep.o): Likewise.
11063
11064 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11065
11066         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11067         to here...
11068         * alpha-tdep.c: ...from here.
11069         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11070
11071 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11072
11073         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11074         prototype from here...
11075         * alpha-tdep.h: ...to here.
11076
11077 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11078
11079         * frame.h (selected_frame_level): Document as deprecated.
11080         (frame_relative_level): Declare.
11081         * stack.c (frame_relative_level): New function.
11082         (selected_frame_level): Document as deprecated.
11083         (select_frame): Do not set the selected_frame_level.
11084
11085         * stack.c (frame_info, record_selected_frame): Update.
11086         (frame_command, current_frame_command): Update.
11087         (up_silently_base, up_command, down_silently_base): Update.
11088         (down_command): Update.
11089         * inflow.c (kill_command): Update.
11090         * tracepoint.c (finish_tfind_command): Update.
11091         * corelow.c (core_open): Update.
11092         * thread.c (info_threads_command): Update.
11093         (do_captured_thread_select): Update.
11094         * infcmd.c (finish_command): Update.
11095         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11096
11097 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11098
11099         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11100
11101 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11102
11103         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11104         type const.
11105
11106 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11107
11108         * alphafbsd-tdep.c: Update copyright years.  Include
11109         alpha-tdep.h.
11110         (alphafbsd_use_struct_convention): Make static.
11111         (alphafbsd_init_abi): New function.
11112         (_initialize_alphafbsd_tdep): New function.
11113         * config/alpha/tm-fbsd.h: Update copyright years.
11114         (USE_STRUCT_CONVENTION): Remove.
11115
11116 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11117
11118         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11119         an Alpha ABI variant.
11120         (alpha_abi_handler_list): Declare.
11121         (alpha_gdbarch_register_os_abi): New function.
11122         (alpha_gdbarch_init): Give registered ABI variant handlers a
11123         chance to tweak the gdbarch once we have set up defaults.
11124         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11125
11126 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11127
11128         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11129         to standard_coerce_float_to_double.
11130         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11131
11132 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11133
11134         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11135         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11136         from gdbarch_tdep rather than a constant.
11137         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11138         the default text address for all Alpha Unix ABIs.
11139         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11140         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11141
11142 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11143
11144         * alpha-tdep.h: New file.  Includes several Alpha target constants
11145         taken from...
11146         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11147         let gdbarch deal with.
11148         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11149         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11150         to dependency list.
11151         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11152         Alpha target register names.
11153         * alphabsd-nat.c: Likewise.
11154         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11155         Alpha target register names.  Make serveral routines static.
11156         (alpha_get_saved_register): New function.
11157         (alpha_abi_names): New.
11158         (process_note_abi_tag_sections): New function.
11159         (get_elfosabi): New function.
11160         (alpha_gdbarch_init): New function.
11161         (alpha_dump_tdep): New function.
11162         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11163
11164 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11165
11166         * frame.c (find_saved_register): Delete #ifdef
11167         HAVE_REGISTER_WINDOWS code.
11168         * config/sparc/tm-sparc.h: Update comments.
11169         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11170
11171 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11172
11173         * i960-tdep.c (i960_find_saved_register): New function.
11174         (i960_get_saved_register): New function.
11175         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11176         (i960_get_saved_register): Declare.
11177         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11178
11179 2002-04-20  David S. Miller  <davem@redhat.com>
11180
11181         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11182
11183 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11184
11185         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11186         instead of NUM_PSEUDO_REGS.
11187
11188 2002-04-20  David S. Miller  <davem@redhat.com>
11189
11190         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11191         GDB_MULTI_ARCH_PARTIAL
11192         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11193         define, let tm-sp64.h do it.
11194
11195 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11196
11197         * frame.c (find_saved_register): Avoid a NULL pointer
11198         dereference and actually walk the frame list.
11199
11200 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11201
11202         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11203         sorted in most most-recent-used order.  Document.
11204         * gdbarch.h, gdbarch.c: Regenerate.
11205
11206 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11207
11208         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11209         instead of ->prev.
11210         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11211         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11212         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11213         instead of ->prev.
11214
11215 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11216
11217         Fix PR gdb/471.
11218         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11219         (build_builtin_type_vec128): Ditto.
11220         (append_composite_type_field): Fix calculation of type length in
11221         union case.
11222
11223 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11224
11225         * config/djgpp/README: Update.
11226
11227         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11228         compiler warnings.
11229
11230 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11231
11232         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11233         (alpha_setup_arbitrary_frame): ...to this.
11234         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11235         for alpha_setup_arbitrary_frame.
11236
11237 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11238
11239         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11240         * gdbarch.h, gdbarch.c: Regenerate.
11241
11242         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11243         * target.h (memory_breakpoint_from_pc): Update declaration.
11244         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11245
11246         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11247         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11248         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11249         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11250         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11251         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11252         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11253         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11254         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11255         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11256         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11257         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11258
11259         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11260         const pointer.
11261         * monitor.c (monitor_insert_breakpoint): Ditto.
11262         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11263
11264         * config/mcore/tm-mcore.h: Update copyright.
11265         * mem-break.c: Ditto.
11266         * xstormy16-tdep.c: Ditto.
11267
11268 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11269
11270         * p-exp.y: Add precedence rule for '^' token.
11271         This removes the shift/reduce conflicts.
11272         Remove the comment concerning these shift/reduce conflicts.
11273
11274 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11275
11276         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11277         (registers_powerpc_nofp): New register set for processors
11278         without floating point unit.
11279
11280 2002-04-18  David S. Miller  <davem@redhat.com>
11281
11282         * MAINTAINERS: Add myself to write-after-approval.
11283
11284 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11285
11286         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11287
11288 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11289
11290         * rs6000-tdep.c (frame_initial_stack_address): Use
11291         frame_register_read to read the alloca_reg.
11292
11293 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11294
11295         * frame.c (find_saved_register): Find saved registers in the next
11296         not prev frame.
11297         Fix PR gdb/365.
11298
11299 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11300
11301         * gdbarch.sh (LANG): Set to ``c''.
11302
11303 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11304
11305         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11306
11307 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11308
11309         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11310         Update copyright.
11311
11312         * hpread.c (hpread_get_lntt): Add declaration.
11313         Also fix PR gdb/391.
11314
11315 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11316
11317         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11318         * aclocal.m4, configure: Re-generate.
11319         Fix PR gdb/391.
11320
11321 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11322
11323         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11324         instead of tm_print_insn.
11325
11326 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11327
11328         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11329
11330 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11331
11332         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11333         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11334         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11335
11336 2002-04-12  Don Howard  <dhoward@redhat.com>
11337
11338         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11339         max_user_call_depth.
11340         (init_cmd_lists): Initialize the new value;
11341         * cli/cli-script.c (execute_user_command): Limit the call depth of
11342         user defined commands.  This avoids a core-dump when user commands
11343         are infinitly recursive.
11344
11345 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11346
11347         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11348         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11349         from tdep struct instead of DEFAULT_LR_SAVE.
11350         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11351         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11352         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11353
11354 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11355
11356         * Remote.c: Spelling fix.
11357         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11358         If no symbol found for "sbrk", try "_sbrk".
11359         (make_output_phdrs): Use bfd_section_name.
11360         (gcore_copy_callback): Use bfd_section_name.
11361         * eval.c: Indentation fix-ups.
11362         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11363         in case it gets applied to an address that is already
11364         in the instruction space.
11365         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11366         * symfile.c: Fix indentation, long lines.
11367         * source.c: White space fix-up.
11368
11369 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11370
11371         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11372         * frame.c (frame_register_read): New function.  Return non-zero on
11373         success.
11374         (read_relative_register_raw_bytes_for_frame): Delete.
11375         (read_relative_register_raw_bytes): Delete.
11376         * frame.h (frame_register_read): Declare.
11377         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11378         * sh-tdep.c: Ditto.
11379         * infcmd.c (do_registers_info): Ditto.
11380         * hppa-tdep.c: Ditto.
11381         * rs6000-tdep.c: Ditto.
11382         * h8500-tdep.c: Ditto.
11383         * mips-tdep.c: Ditto.
11384         * h8300-tdep.c: Ditto.
11385         * z8k-tdep.c: Ditto.
11386
11387 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11388
11389         From Jimi X <jimix@watson.ibm.com>:
11390         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11391         64-bit SysV ABI.
11392
11393 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11394
11395         From Jimi X <jimix@watson.ibm.com>:
11396         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11397         bfd info.
11398
11399 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11400
11401         From Jimi X <jimix@watson.ibm.com>:
11402         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11403         register sets for these processor variants.
11404
11405 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11406
11407         * regformats/reg-ppc.dat: Support FPSCR.
11408
11409 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11410
11411         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11412         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11413         Add fpscr as an invalid/unfetchable register.
11414         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11415         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11416         (fill_fpregset): Add support for register fpscr.
11417         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11418         (fill_gregset): Account for the fact that register ``mq'' might
11419         not exist.
11420         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11421         (registers_power): Add fpscr to register set at slot 71.
11422         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11423         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11424
11425 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11426
11427         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11428         * configure: Regenerate.
11429         * config.in: Regenerate.
11430         * acconfig.h: Add define for _SYSCALL32.
11431         * core-sol2.c: Remove #define _SYSCALL32.
11432         * solib-legacy.c: Remove #define _SYSCALL32.
11433
11434 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11435
11436         * stack.c (select_frame): Cleanup internal error message, do not
11437         use %p.
11438
11439 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11440
11441         * stack.c (select_frame): Check that selected_frame and the
11442         specified level are as expected.
11443         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11444         Update copyright.
11445         * frame.h (struct frame_info): Add field `level'.  Update
11446         copyright.
11447         Work-in-progress PR gdb/464.
11448
11449 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11450
11451         * maint.c (maint_print_section_info): Rename print_section_info.
11452         (print_bfd_section_info, print_objfile_section_info): Update.
11453         * inferior.h (struct gdbarch): Add opaque declaration.
11454         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11455         * gdbarch.h: Regenerate.
11456
11457 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11458
11459         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11460         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11461         (kernel_u_size): Added.
11462         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11463         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11464
11465 2002-04-04  Jim Ingham  <jingham@apple.com>
11466
11467        * valarith.c (find_size_for_pointer_math): New function, either returns
11468        the size for a pointer's target, returns 1 for void *, or errors for
11469        incomplete types.
11470        (value_add, value_sub): use find_size_for_pointer_math.
11471
11472 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11473
11474         * linux-low.c (linux_look_up_symbols): New hook.
11475         (linux_target_ops): Add linux_look_up_symbols.
11476         * remote-utils.c (decode_address): New function.
11477         (look_up_one_symbol): New function.
11478         * server.c (handle_query): Call target look_up_symbols hook.
11479         * server.h (look_up_one_symbol): Add prototype.
11480         * target.h (struct target_ops): Add look_up_symbols hook.
11481
11482 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11483
11484         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11485         override FP_REGNUM with frame->fp.  Update copyright.
11486         * parse.c (num_std_regs, std_regs): Delete.
11487         (target_map_name_to_register): Do not search std_regs.  Update
11488         function description.
11489         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11490         declarations.  Update copyright.
11491         Fix PR gdb/251.
11492
11493 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11494
11495         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11496         after the last symbol in a block.
11497
11498 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11499
11500         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11501         is non zero as a found symbol.
11502
11503 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11504
11505         * findvar.c: Include "builtin-regs.h".
11506         (value_of_register): Call value_of_builtin_reg when applicable.
11507         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11508         (target_map_name_to_register): Call
11509         builtin_reg_map_name_to_regnum.
11510         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11511         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11512         (builtin_regs_h): Define.
11513         (builtin-regs.o): New target.
11514         (findvar.o): Add $(builtin_regs_h).
11515         * builtin-regs.c, builtin-regs.h: New files.
11516         * std-regs.c: New file.
11517         Partial fix for PR gdb/251.
11518
11519 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11520
11521         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11522         it's no longer required.
11523
11524 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11525
11526         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11527
11528 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11529
11530         From Jimi X <jimix@watson.ibm.com>:
11531         * rs6000-tdep.c (rs6000_software_single_step): Use
11532         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11533         and size.  Use target_insert_breakpoint() and
11534         target_remove_breakpoint() to insert and remove breakpoints
11535         instead of explicit memory reads and writes.
11536
11537 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11538
11539         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11540         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11541         ELF_OBJECT_FORMAT ifdef.
11542
11543 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11544
11545         From Jimi X <jimix@watson.ibm.com>:
11546         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11547
11548 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11549
11550         From Jimi X <jimix@watson.ibm.com>:
11551         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11552         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11553
11554 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11555
11556         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11557         s/asprintf/xasprintf/.
11558         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11559
11560 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11561
11562         I believe Jeff Law denies responsability for this one:
11563         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11564         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11565         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11566         Work-around for PR gdb/366.
11567
11568 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11569
11570         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11571         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11572         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11573
11574 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11575
11576         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11577         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11578         information.
11579
11580 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11581
11582         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11583         maintainer.
11584
11585 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11586
11587         * README (Reporting Bugs in GDB): Document the bug web page as the
11588         prefered way of submitting bugs.
11589         Fix PR gdb/402.
11590
11591 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11592
11593         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11594         -1.  Update comment.
11595         * gdbarch.h, gdbarch.c: Re-generate.
11596
11597 2002-04-07  Andreas Schwab  <schwab@suse.de>
11598
11599         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11600         buffer to regcache_collect.
11601
11602 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11603
11604         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11605         * gdbarch.c, gdbarch.h: Re-generate.
11606
11607 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11608
11609         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11610         declaration.  Fix -Werror.
11611
11612 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11613
11614         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11615         * gdbarch.c: Regenerate.
11616
11617 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11618
11619         * breakpoint.c (clear_command): Rewrite middle section to
11620         combine two loops with identical control conditions.
11621         Add a cleanup to eliminate a memory leak.
11622         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11623
11624 2002-04-05  H.J. Lu  (hjl@gnu.org)
11625
11626         * solib-svr4.c (bkpt_names): Add "__start".
11627
11628 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11629
11630         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11631         as test for 64 bit target.
11632
11633 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11634
11635         * h8500-tdep.c (h8500_write_fp): Delete function.
11636         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11637         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11638         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11639         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11640         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11641         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11642         (s390_write_fp):
11643         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11644         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11645         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11646         (d10v_write_fp): Delete function.
11647         * inferior.h (write_fp, generic_target_write_fp): Delete
11648         declarations.
11649         * regcache.c (generic_target_write_fp): Delete function.
11650         (write_fp): Delete function.
11651         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11652         * gdbarch.h, gdbarch.c: Regenerate.
11653         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11654         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11655         (sparc64_write_fp): Delete declaration.
11656         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11657         (h8500_write_fp): Delete declaration.
11658
11659 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11660
11661         * sparc-tdep.c (sparc64_write_fp): Delete.
11662         (sparc_push_dummy_frame): Replace write_fp call with code to store
11663         the FP directly.
11664         (sparc_gdbarch_init): Do not initialize write_fp.
11665
11666 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11667
11668         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11669         clause.
11670
11671 2002-03-29  Jim Blandy  <jimb@redhat.com>
11672
11673         * stack.c (get_selected_block): Add new argument `addr_in_block',
11674         used to return the exact code address we used to select the block,
11675         not just the block.
11676         * blockframe.c (get_frame_block, get_current_block): Same.
11677         * frame.h (get_frame_block, get_current_block,
11678         get_selected_block): Update declarations.
11679         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11680         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11681
11682 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11683
11684         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11685         warning message.
11686
11687 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11688
11689         * utils.c (xfullpath): New function.
11690         * defs.h (xfullpath): Add declaration.
11691         * source.c (openp): Use xfullpath in place of gdb_realpath to
11692         avoid resolving the basename part of filenames when the
11693         associated file is a symbolic link. This fixes a potential
11694         inconsistency between the filenames known to GDB and the
11695         filenames it prints in the annotations.
11696         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11697         to be able to match a filename with either the real filename, or
11698         the name of any symbolic link to this file.
11699         (lookup_partial_symtab): Ditto.
11700
11701 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11702
11703         * breakpoint.c: Add support for hardware breakpoints in overlays.
11704         (overlay_events_enabled): New state variable.
11705         (insert_breakpoints): Use overlay_events_enabled to decide
11706         whether to attempt to set a breakpoint at the overlay load addr.
11707         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11708         (remove_breakpoint): Use overlay_events_enabled to decide
11709         whether breakpoints need to be removed from overlay load addr.
11710         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11711         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11712         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11713         disable_overlay_breakpoints): Update overlay_events_enabled.
11714
11715 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11716
11717         * dwarf2read.c (struct function_range): New.
11718         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11719         (check_cu_functions): New.
11720         (read_file_scope): Initialize global function lists.
11721         Call dwarf_decode_line after processing children.
11722         (read_func_scope): Add to global function list.
11723         (dwarf_decode_lines): Call check_cu_functions everywhere
11724         record_line is called.  Call record_line with a linenumber
11725         of 0 to mark sequence ends.
11726
11727 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11728
11729         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11730         change sync with glibc.
11731
11732 2002-04-03  Jim Blandy  <jimb@redhat.com>
11733
11734         * configure.in: Call AC_C_INLINE.
11735         * configure: Regenerated.
11736
11737 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11738
11739         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11740         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11741
11742 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11743
11744         * NEWS: Mention gcore support on FreeBSD/i386.
11745
11746         * fbsd-proc.c: New file.
11747         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11748         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11749
11750         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11751         while statement.
11752
11753 2002-03-29  Jim Blandy  <jimb@redhat.com>
11754
11755         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11756         unescaped newlines in string literals, but newer ones don't.  So
11757         escape them.
11758
11759 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11760             Andrew Cagney <cagney@redhat.com>
11761
11762         * cli/cli-dump.c: New file.  Dump memory to file,
11763         restore file to memory.
11764         * cli/cli-dump.h: New file.
11765         * Makefile.in: Add rules, dependencies for cli-dump.o.
11766         * NEWS: Mention new commands.
11767
11768 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11769
11770         * symfile.c (symbol_file_add): Move test for null symbols to later.
11771
11772 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11773
11774         From veksler at il.ibm.com:
11775         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11776         the xstrduped original path.
11777         Fix PR gdb/417.
11778
11779 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11780
11781         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11782         * infcmd.c (_initialize_infcmd): Ditto.
11783         * language.c (_initialize_language): Ditto.
11784         * symfile.c (_initialize_symfile): Ditto.
11785         * top.c (_init_main): Ditto.
11786         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11787
11788 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11789
11790         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11791         vector registers handling.
11792         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11793         fields of frame data.
11794         (frame_get_saved_regs): Fill in information for AltiVec registers.
11795
11796 2002-03-27  Jim Blandy  <jimb@redhat.com>
11797
11798         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11799         a function; leave this macro here to invoke that function.
11800         (symbol_init_mangled_name): Declaration for that function.
11801         * symtab.c (symbol_init_mangled_name): New function.
11802
11803 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11804
11805         * valarith.c: Replace strerror with safe_strerror.
11806         * tracepoint.c: Ditto.
11807         * lin-lwp.c: Ditto.
11808         * go32-nat.c: Ditto.
11809         * inflow.c: Ditto.
11810         * gnu-nat.c: Ditto.
11811
11812 2002-03-27  Andreas Schwab  <schwab@suse.de>
11813
11814         * event-top.c (command_line_handler): Remove useless if.
11815
11816 2002-03-27  Andreas Jaeger  <aj@suse.de>
11817
11818         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11819         comment.
11820
11821 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11822
11823         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11824         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11825         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11826         (x86_64_linux_dr_get_status, supply_gregset),
11827         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11828         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11829         (x86_64_register_info_table): Add.
11830         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11831         (x86_64_register_raw_size, x86_64_register_virtual_type),
11832         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11833         general x86_64_register_info_table.
11834         (i386_gdbarch_init): gdbarch_register_bytes is now set
11835         dynamicaly during initialization.
11836         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11837         * gdbserver/linux-x86-64-low.c: Ditto.
11838
11839 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11840
11841         * gdbserver/server.c (main): Call target_signal_to_host_p
11842         and target_signal_to_host on signals received from the remote.
11843         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11844         target_signal_from_host on signals sent to the remote.
11845         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11846         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11847
11848 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11849
11850         * signals/signals.c: Include "server.h" in gdbserver build.
11851         (target_signal_from_name): Don't use STREQ.
11852         (_initialize_signals): Likewise.  Don't include function in
11853         gdbserver build.
11854
11855 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11856
11857         * signals.c: Moved to...
11858         * signals/signals.c: Here.
11859         * Makefile (signals.o): Update.
11860
11861 2002-03-26  Jeff Law (law@redhat.com)
11862
11863         * somread.c (som_symtab_read): Remove some commented out code and
11864         updated related comments.  Do not set the minimal symbol table to
11865         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11866         in a dynamic executable.
11867         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11868         where we are unable to find the minimal symbol for the given
11869         PC value.
11870
11871 2002-03-25  Jeff Law (law@redhat.com)
11872
11873         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11874
11875 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11876
11877         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11878
11879 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11880
11881         * command.h: Update copyright.
11882         (struct cmd_list_element): Replace definition with opaque
11883         declaration.
11884         (enum cmd_types): Document that it will eventually be moved to
11885         cli/cli-decode.h
11886         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11887         (MALLOCED_REPLACEMENT): Delete macro.
11888         * Makefile.in (cli_decode_h): Add $(command_h).
11889         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11890         * top.c: Include "cli/cli-decode.h".
11891         * completer.c: Include "cli/cli-decode.h".
11892         * maint.c: Include "cli/cli-decode.h".
11893         * cli/cli-decode.h: Include "command.h".
11894         (enum command_class): Delete.
11895         (enum cmd_types): Comment out.
11896         (enum cmd_auto_boolean): Delete.
11897         (enum var_types): Delete.
11898
11899 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11900
11901         * cli/cli-decode.c: Include "gdb_assert.h".
11902         (add_set_or_show_cmd): New static function.
11903         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11904         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11905         all fields, such as func, from the set command.
11906
11907 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11908
11909         * MAINTAINERS (sh-elf): Change warning flag to -w.
11910
11911 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11912
11913         * defs.h (error): Add printf format attribute.
11914         * thread-db.c (thread_from_lwp): Fix error format string.
11915         * stack.c (parse_frame_specification): Ditto.
11916         * cli/cli-decode.c (undef_cmd_error): Ditto.
11917         * scm-lang.c (scm_lookup_name): Ditto.
11918         * tracepoint.c (trace_error): Ditto.
11919         * remote-utils.c (usage): Ditto.
11920         * remote.c (compare_sections_command): Ditto.
11921         Fix PR gdb/328.
11922
11923 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11924
11925         * gdbtypes.c (append_composite_type_field): New function.
11926         (init_composite_type): New function.
11927         * gdbtypes.h (append_composite_type_field): Declare.
11928         (init_composite_type): Ditto.
11929
11930 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11931
11932         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11933         function.
11934         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11935         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11936         structure returning convention for SYSV ABI case, but not
11937         for GNU/Linux, FreeBSD, or NetBSD.
11938
11939 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11940
11941         * symtab.h (lookup_block_symbol): Add mangled_name argument
11942         to prototype.
11943
11944         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11945         with new mangled_name argument.
11946         * linespec.c (decode_line_1): Likewise.
11947         * valops (value_of_this): Likewise.
11948         * symtab.c (lookup_transparent_type): Likewise.
11949         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11950         (lookup_symbol): If we are given a mangled name, pass it down
11951         to lookup_symbol_aux.
11952         (lookup_block_symbol): If we are given a mangled name to check
11953         against, only return symbols which match it.
11954
11955 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11956
11957         * win32-nat.c (child_create_inferior): Check for proper shell to use
11958         here, in case the user changes it on the fly.
11959         (_initialize_inftarg): Remove shell path considerations.
11960
11961 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11962
11963         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11964         for gdbarch_max_register_raw_size and max_register_virtual_size.
11965         Adjust copyright year.
11966
11967 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11968
11969          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11970          in a function to cover the entire beginning of the function
11971          as well if it does not already.
11972
11973 2002-03-21  Tom Rix  <trix@redhat.com>
11974
11975         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11976         (rs6000_ptrace64): Renamed from ptrace64.
11977
11978 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11979
11980         * gdbserver/remote-utils.c (remote_open): Don't call
11981         getprotobyname, we're all using TCP here so just use
11982         IPPROTO_TCP.
11983         * gdbserver/gdbreplay.c (remote_open): Ditto.
11984
11985 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11986
11987         * regcache.c (_initialize_regcache): No need to call
11988         build_regcache() at this time; it gets called whenever
11989         the gdbarch changes.
11990
11991 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11992
11993         * sparc-nat.c:  Include sys/param.h where possible.
11994
11995 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11996
11997         Fix PR gdb/422.
11998         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11999         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12000         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12001         complex types.
12002         * stabsread.c (rs6000_builtin_type): Likewise.
12003         (read_sun_floating_type): Likewise.
12004
12005 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12006
12007         * stabsread.c (read_member_functions): Remove skip code for duplicate
12008         constructor/destructor methods.  Use standard parsing for these
12009         methods and just do not chain them to the list of methods after
12010         parsing.
12011
12012 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12013
12014         * coffread.c: Remove redundant static declarations.  Replace
12015         occurrences of `PTR' with `void *'.
12016         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12017         * top.h (quit_cover): Likewise.
12018         * defs.h (catch_errors): Likewise.
12019
12020 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12021
12022         * defs.h (XMALLOC): Define.
12023         * gdb-events.sh (XMALLOC): Delete macro.
12024         * gdb-events.c, gdb-events.h: Regenerate.
12025         * gdbarch.sh (XMALLOC): Delete macro.
12026         * gdbarch.c: Regenerate.
12027         * serial.c (XMALLOC): Delete macro.
12028         * ui-file.c (XMALLOC): Ditto.
12029         * ser-unix.h (XMALLOC): Ditto.
12030         * sh-tdep.c (XMALLOC): Ditto.
12031         * ui-out.c (XMALLOC): Ditto.
12032         * utils.c (XMALLOC): Ditto.
12033         * i386-tdep.c (XMALLOC): Ditto.
12034         * gdb-events.c (XMALLOC): Ditto.
12035         * d10v-tdep.c (XMALLOC): Ditto.
12036         * cli-out.c (XMALLOC): Ditto.
12037
12038         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12039         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12040         * ui-file.c, ui-out.c: Ditto.
12041
12042 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12043
12044         * command.h (struct cmd_list_element): Add field context.
12045         (set_cmd_context, get_cmd_context): Declare.
12046         * cli/cli-decode.h: Ditto.
12047         * cli/cli-decode.c (get_cmd_context): New function.
12048         (set_cmd_context): New function.
12049         (add_cmd): Initialize context.
12050         Part of fixing PR gdb/145 and PR gdb/146.
12051
12052 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12053
12054         * cli/cli-decode.c (cmd_type): New function.
12055         * command.h (cmd_type): Declare.
12056         * infrun.c (set_schedlock_func): Call function cmd_type.
12057         * kod.c (kod_set_os): Call cmd_type.
12058         * cris-tdep.c (cris_version_update): Use function cmd_type.
12059         (cris_mode_update, cris_abi_update): Ditto.
12060
12061         * command.h: (execute_cmd_post_hook): Declare.
12062         (execute_cmd_pre_hook): Declare.
12063         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12064         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12065         functions. Execute pre/post hook while ensuring that afterwords
12066         hook_in is cleared.
12067         * top.c (execute_command): Use execute_cmd_post_hook, and
12068         execute_cmd_pre_hook to execute pre/post commands.
12069         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12070         hook_stop_stub.
12071         (hook_stop_stub): Call execute_cmd_pre_hook.
12072
12073 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12074
12075         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12076         set'' and this leads to a core dump.  Move xstrdup of
12077         operating_system to after check that it is not NULL.
12078
12079 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12080
12081         * kod.c (kod_set_os): Remove unnecessary check that
12082         ``command->type'' is set_cmd.
12083
12084         * valprint.c (set_input_radix): Use input_radix.
12085         (set_output_radix): Use output_radix.
12086         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12087         isn't reverted.
12088
12089 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12090
12091         * value.h (struct value): Delete field ``substring_addr''.  Change
12092         aligner fields to force_doublest_align, force_longest_align,
12093         force_core_addr_align and force_pointer_aligh.
12094
12095         * value.h (struct value): Fix typo in above change.
12096
12097 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12098
12099         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12100         to fix internal_error from ``maintenance print architecture''.
12101
12102 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12103
12104         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12105         for gcc versions after gcc-2.8.1.
12106
12107 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12108
12109         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12110         for method resolution.  Restore adjustment of ``this'' pointer after
12111         calling value_struct_elt, which was accidentally removed during the
12112         HP merge.
12113
12114 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12115
12116         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12117         value_of_register.
12118         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12119         get_saved_register.
12120         * value.h (value_of_register): Update.
12121
12122 2002-03-14  Richard Henderson  <rth@redhat.com>
12123
12124         * configure.in: Detect declaration for canonicalize_file_name.
12125         * utils.c (canonicalize_file_name): Declare, if needed.
12126         (gdb_realpath): Prefer realpath if available and usable.
12127         * config.in, configure: Rebuild.
12128
12129 2002-03-14  Richard Henderson  <rth@redhat.com>
12130
12131         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12132         a constant array bound.
12133
12134         * MAINTAINERS: Add myself to write-after-approval.
12135
12136 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12137
12138         * symfile.c (syms_from_objfile): Return immediately if no syms.
12139         (symbol_file_add): Return immediately if no syms.
12140         (find_sym_fns): Return immediately if no syms.
12141
12142 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12143
12144         * gdbserver/remote-util.c (remote_open): Print remote-side's
12145         IP address when remote debugging over the network.
12146
12147 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12148
12149         * config/sparc/fbsd.mh: Fix copyright.
12150         * config/sparc/fbsd.mt: Likewise.
12151
12152 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12153
12154         * MAINTAINERS: Fix typo in name of gdb warnings option.
12155         (x86-64): Fix formating so that this can be parsed by awk.
12156
12157 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12158
12159         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12160         * defs.h: Include "gdb/signals.h".
12161         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12162
12163 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12164
12165         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12166         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12167         from x86-64-tdep.h
12168
12169 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12170             Don Howard <dhoward@redhat.com>
12171
12172         * mips-tdep.c (ST0_FR): Define.
12173         (mips2_fp_compat): New function, temporarily disabled.
12174         (mips_read_fp_register_single): New function.
12175         (mips_read_fp_register_double): New function.
12176         (mips_print_register): Use them.
12177         (do_fp_register_row): Likewise.
12178
12179 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12180
12181         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12182         approval''.
12183
12184 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12185
12186         * stabsread.c (read_member_functions): Fix is_stub test for
12187         static member functions, improve comment.
12188
12189 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12190
12191         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12192         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12193         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12194         commands that set boolean values.
12195         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12196         (arm_rdi_resume): Always initialize PC.
12197         (arm_rdi_open): Don't use rslt as a boolean.
12198         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12199         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12200         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12201         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12202
12203 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12204
12205         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12206         * configure: Rebuilt.
12207
12208 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12209
12210         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12211         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12212
12213 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12214
12215         * cli/cli-decode.c (set_cmd_completer): New function.
12216         * command.h (set_cmd_completer): Declare.
12217         * cli/cli-decode.h (set_cmd_completer): Ditto.
12218
12219         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12220         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12221         * win32-nat.c (_initialize_inftarg): Ditto.
12222         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12223         * proc-api.c (_initialize_proc_api): Ditto.
12224         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12225         * source.c (_initialize_source): Ditto.
12226         * exec.c (_initialize_exec): Ditto.
12227         * solib.c (_initialize_solib): Ditto.
12228         * top.c (init_main): Ditto.
12229         * tracepoint.c (_initialize_tracepoint): Ditto.
12230         * symfile.c (_initialize_symfile): Ditto.
12231         * printcmd.c (_initialize_printcmd): Ditto.
12232         * infcmd.c (_initialize_infcmd): Ditto.
12233         * corefile.c (_initialize_core): Ditto.
12234
12235 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12236
12237         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12238
12239 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12240
12241         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12242
12243 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12244
12245         * NEWS: Update headings, 5.2 has branched.
12246
12247 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12248
12249         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12250         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12251         (register_addr, REGISTER_RAW_SIZE): Likewise.
12252         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12253         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12254
12255 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12256
12257         * MAINTAINERS (x86-64): Add myself.
12258         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12259         changed value_ptr -> struct value *
12260
12261 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12262
12263         * configure.host (sparc64-*-freebsd): Add.
12264         * configure.tgt: Likewise.
12265         * config/sparc/fbsd.mh: New file.
12266         * config/sparc/fbsd.mt: Likewise.
12267         * config/sparc/nm-fbsd.h: Likewise.
12268         * config/sparc/tm-fbsd.h: Likewise.
12269
12270 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12271
12272         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12273         regformats/reg-s390x.dat.
12274
12275 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12276
12277         * utils.c: Add FIXME explaining true/false problem.
12278
12279 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12280
12281         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12282
12283 2002-02-28  Michael Chastain  <mec@shout.net>
12284
12285         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12286
12287 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12288
12289         * gdbserver/linux-s390-low.c: New file.
12290         * regformats/reg-s390.dat: New file.
12291         * regformats/reg-s390x.dat: New file.
12292         * gdbserver/configure.srv: Add S/390.
12293         * gdbserver/Makefile.in: Add S/390.
12294         * configure.tgt: Enable gdbserver for S/390.
12295
12296 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12297
12298         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12299         first line of the doc string for "info dos", except at the end of
12300         the sentence, since the short help stops at the first period.
12301
12302 2002-02-28  Jason Merrill  <jason@redhat.com>
12303
12304         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12305
12306 2002-02-27  Fred Fish  <fnf@redhat.com>
12307
12308         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12309         comment (dumy -> dummy).
12310
12311 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12312
12313         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12314
12315 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12316
12317       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12318
12319 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12320
12321         * gdbserver/acconfig.h: New file.
12322         * gdbserver/i387-fp.c: New file.
12323         * gdbserver/i387-fp.h: New file.
12324         * gdbserver/linux-x86-64.c: New file.
12325         * regformats/reg-x86-64.dat: New file.
12326         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12327         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12328         * gdbserver/configure.in: Add support for regsets.
12329         * gdbserver/config.in: Regenerate.
12330         * gdbserver/configure: Regenerate.
12331         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12332         * gdbserver/linux-low.h: New file.
12333         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12334         for regsets.
12335         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12336         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12337         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12338         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12339         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12340         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12341         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12342         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12343         * gdbserver/regcache.c (supply_register): New function.
12344         (supply_register_by_name): New function.
12345         (collect_register): New function.
12346         (collect_register_by_name): New function.
12347
12348 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12349
12350         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12351         (config.status): Add configure.srv dependency.
12352         (server_h): Add config.h dependency.
12353
12354 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12355
12356         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12357         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12358         * gdbserver/configure.srv: Change i386-*-linux* to use
12359         reg-i386-linux.o.
12360
12361 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12362
12363         * x86-64-tdep.c: Re-indent.  Update copyright date.
12364
12365 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12366
12367         From Michal Ludvig <mludvig@suse.cz>:
12368         * x86-64-tdep.c (value.h): Delete.
12369         (gdb_assert.h): Include.
12370         (x86_64_register_convert_to_virtual,
12371         x86_64_register_convert_to_raw ): Add check which lets only
12372         floating-point values to be converted.
12373         (value_push): Delete.
12374         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12375         (i386_gdbarch_init): Number of register_bytes fixed.
12376
12377 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12378
12379         * MAINTAINERS: Add x86-64 target.
12380
12381 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12382
12383         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12384         * osfsolib.c (solib_map_sections): Ditto.
12385         * irix5-nat.c (solib_map_sections): Ditto.
12386         * corelow.c (gdb_check_format): Ditto.
12387         * symfile.c (symfile_bfd_open): Ditto.
12388         * solib.c (solib_map_sections): Ditto.
12389         Fix PR gdb/354.
12390
12391 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12392
12393         * remote.c (_initialize_remote): By default, disable ``e'' and
12394         ``E'' step out-of-range packets.
12395
12396 2002-02-26  Andreas Schwab  <schwab@suse.de>
12397
12398         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12399         m68k_linux_frame_saved_pc.
12400         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12401         in_sigtramp.
12402         (SIGCONTEXT_PC_OFFSET): Remove.
12403         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12404         m68k_linux_sigtramp_saved_pc): New functions.
12405         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12406         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12407         (UCONTEXT_PC_OFFSET): Define.
12408         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12409         non-RT and RT signal trampolines.
12410
12411 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12412
12413         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12414         (TARGET_NBPG, STACK_END_ADDR): Delete
12415         (VARIABLES_INSIDE_BLOCK): Delete.
12416
12417 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12418
12419         * utils.c (perror_with_name): Make string parameter constant.
12420         (print_sys_errmsg): Ditto.
12421         (query): Ditto.
12422         * defs.h (perror_with_name): Update.
12423         (print_sys_errmsg): Update.
12424         (query): Update.
12425
12426 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12427
12428         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12429         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12430
12431 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12432
12433         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12434         if it already matches the current architecture from the exec file.
12435         Include arch-utils.h for gdbarch_info_init prototype.
12436         * Makefile.in (rs6000-nat.o): Update dependencies.
12437
12438 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12439
12440         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12441          list of exported variables.
12442
12443 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12444
12445         * gdbserver/configure.srv: New file.
12446         * gdbserver/configure.in: Use configure.srv instead
12447         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12448         from it.
12449         * gdbserver/configure: Regenerated.
12450         * gdbserver/terminal.h: New file.
12451         * gdbserver/Makefile.in: Update for configure changes.  Remove
12452         more unneeded include paths.
12453
12454 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12455
12456         From wiz at danbala:
12457         * config/sparc/tm-sp64.h: Fix grammar and typos.
12458         Fix PR gdb/287.
12459
12460 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12461
12462         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12463         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12464         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12465         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12466         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12467         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12468         * s390-tdep.c: Ditto.
12469         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12470         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12471         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12472         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12473         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12474         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12475         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12476         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12477         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12478         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12479         Fix PR gdb/378.
12480
12481 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12482
12483         * lin-thread.c: Delete file.
12484         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12485         to gdb_proc_service.h.
12486         * configure: Re-generate.
12487
12488         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12489         * serial.c (serial_open): Delete check for "ocd".
12490         Fix PR gdb/349.
12491
12492         * Makefile.in (linux-thread.o): Delete target.
12493         * linux-thread.c: Delete file.
12494
12495         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12496         renamed SH files to be consistent.
12497
12498         * symtab.c (sort_search_symbols): Use xfree.
12499
12500 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12501
12502         * arm-linux-tdep.c (arm_linux_init_abi): Register
12503         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12504         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12505         definition with undef, since we don't want the sysvr4 definition.
12506         (SKIP_TRAMPOLINE_CODE): Likewise.
12507
12508 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12509
12510         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12511
12512         * configure.in: (AC_CHECK_FUNCS) Added test for
12513         canonicalize_file_name Regenerated.
12514         * config.in, configure: Regenerated.
12515         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12516         defined use canonicalize_file_name.
12517
12518 2002-02-23  Michael Chastain  <mec@shout.net>
12519
12520         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12521
12522 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12523
12524         * README: Remove references to cygnus.com.
12525         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12526         dot com'' form.  Remove references to cygnus.com and sourceware.
12527
12528 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12529
12530         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12531         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12532         1003.1-2001 no longer allows "head -1".
12533         * gdb/Makefile.in (version.c): Likewise.
12534         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12535         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12536         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12537
12538 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12541         * command.h (cmd_cfunc_eq): Declare.
12542         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12543
12544         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12545         ``struct cmd_list_element *''.
12546         * cli/cli-cmds.c (is_complete_command): Update.  Use
12547         cmd_cfunc_eq.
12548         * top.c (execute_command): Pass the command to
12549         is_complete_command.
12550         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12551
12552 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12553
12554         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12555         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12556         architecture defines.
12557         * s390-tdep.c (s390_gdbarch_init): Likewise.
12558
12559 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12560
12561         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12562         (arm_linux_push_arguments): Likewise.
12563         (arm_linux_init_abi): Register them.  Also register linux-specific
12564         call_dummy_words.
12565         (find_minsym_and_objfile): Use strcmp, not STREQ.
12566         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12567         (arm_linux_call_dummy_words): Delete declaration.
12568         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12569         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12570         declarations.
12571         (LOWEST_PC): Delete.
12572
12573 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12574
12575         * maint.c (print_section_info): Do not prepend `0x' to filepos
12576         output, it will be handled by local_hex_string_custom.
12577
12578 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12579
12580         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12581         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12582         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12583
12584 2002-02-22  Jim Blandy  <jimb@redhat.com>
12585
12586         Indicate that the bcache functions don't change the strings
12587         they're passed.
12588         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12589         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12590
12591 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12592
12593         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12594
12595 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12596
12597         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12598         find the complete path to a loaded DLL.
12599
12600 2002-02-21  Fred Fish  <fnf@redhat.com>
12601
12602         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12603         that marks the end of the range of a function, enter a line number
12604         entry that has a line number of zero and a PC offset that matches
12605         the end of the function.  This starts a range of PC's for which no
12606         line number information is known.
12607         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12608         PC's for which no line number info is found (line number is zero)
12609         then we didn't find any valid line information.
12610         * symtab.h: Document use of zero line number entry.
12611
12612 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12613
12614         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12615         (have_ptrace_getvrregs): Define for run time checks.
12616         (gdb_vrregset_t): New type for Altivec register handling.
12617         (fetch_register, store_register): Fetch/store altivec register
12618         when needed.
12619         (fetch_altivec_register, store_altivec_register): New functions.
12620         (supply_vrregset, fill_vrregset): New functions.
12621         (fetch_altivec_registers, store_altivec_registers): New functions.
12622         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12623         registers as well.
12624
12625 2002-02-21  Jiri Smid  <smid@suse.cz>
12626
12627         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12628
12629 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12630
12631         * Makefile.in (armnbsd-nat.o): Update dependencies.
12632         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12633         supply the integer register set.
12634         (supply_fparegset): New function.  Similar for FPA registers.
12635         (fetch_regs, fetch_fp_regs): Use them.
12636         (fetch_core_registers): Likewise.
12637         (fetch_elfcore_registers): New function.
12638         (arm_netbsd_elfcore_fns): New core-file type specification.
12639         (_initialize_arm_netbsd_nat): Register it.
12640
12641 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12642
12643         * armnbsd-nat.c: Include gdbcore.h.
12644         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12645         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12646         'void' to declaration, to shut up ARI.
12647         (fetch_core_registers): Make static.  Rewrite using supply_register.
12648         (arm_netbsd_core_fns): New core-file type specification.
12649         (_initialize_arm_netbsd_nat): New function.
12650
12651 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12652
12653         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12654         value.
12655
12656 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12657
12658         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12659         fails.
12660
12661 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12662
12663         * jv-exp.y (parse_number): Change type of implicit longs
12664         to builtin_type_uint64.
12665
12666 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12667
12668         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12669         to be an integer instead of a `union wait'.
12670
12671 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12672
12673         * mips-linux-nat.c: Call the operating system GNU/Linux.
12674         * mips-linux-tdep.c: Likewise.
12675         * mips-tdep.c: Likewise.
12676
12677 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12678
12679         Fix PR gdb/265.
12680         * jv-exp.y (parse_number): Handle 64-bit integers.
12681
12682 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12683
12684         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12685         AC_STDC_HEADERS to AC_HEADER_STDC.
12686         * gdbserver/configure: Regenerated.
12687
12688 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12689
12690         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12691         is defined.
12692         * sparc-tdep.c (get_longjmp_target): Likewise.
12693
12694 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12695
12696         * News: Add news about ARM and Multi-arch.  Mention the new target
12697         arm*-*-netbsd*.
12698
12699 2002-02-19  Jim Blandy  <jimb@redhat.com>
12700
12701         * stabsread.c (error_type_complaint): Improve error message.
12702
12703 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12704
12705         * gdbserver/README: Update documentation.
12706         * gdbserver/configure.in: Update configury to match documentation.
12707         * gdbserver/Makefile.in: Likewise.
12708         * gdbserver/configure: Regenerated.
12709         * gdbserver/aclocal.m4: New file, generated by aclocal.
12710         * gdbserver/config.in: New file, generated by autoheader.
12711
12712 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12713
12714         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12715         armnbsd-nat.c.
12716
12717 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12718
12719         * arm-tdep.h (enum arm_float_model): New enum.
12720         (struct gdbarch_tdep): Add fp_model.
12721         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12722         up floating-point conversions until we know the floating-point model
12723         in use by the inferior.  Don't complain about being unable to
12724         determine the ABI of the inferior when we don't have one.
12725         (arm_extract_return_value): Support different floating-point models.
12726         (arm_store_return_value): Likewise.
12727         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12728         ARM_FLOAT_SOFT.
12729         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12730
12731 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12732
12733         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12734         of ``current_gdbarch''.
12735
12736 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12737
12738         * armnbsd-nat.c : ANSIfy all function declarations.
12739         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12740         (fetch_inferior_registers): Re-implement in terms of above.
12741         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12742         (store_inferior_registers): Re-implement in terms of above.
12743
12744 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12745
12746         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12747         kernel.
12748         * arm-linux-tdep.c: Likewise.
12749         * config/arm/tm-linux.h: Likewise.
12750
12751 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12752
12753         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12754         * config/arm/nbsd.mt (TM_FILE): Delete.
12755         * config/arm/tm-nbsd.h: Delete.
12756
12757 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12758
12759         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12760         Initialize CALL_DUMMY_LENGTH.
12761
12762 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12763
12764         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12765         function.
12766         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12767         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12768         defines one thing and that is incorrect for this port.
12769         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12770
12771 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12772
12773         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12774
12775 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12776
12777         * win32-nat.c (display_selector): New function. Displays information
12778         about the information returned by GetThreadSelectorEntry API function.
12779         (display_selectors): New function. Displays the infomation of
12780         the selector given as argument, or of CS, DS ans FS selectors
12781         if no argument is given.
12782         ( _initialize_inftarg): Add "w32" as info prefix command.
12783         Add "info w32 selector" as command calling display_selectors.
12784
12785 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12786
12787         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12788         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12789         if not defined.
12790
12791 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12792
12793         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12794
12795 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12796
12797         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12798         (arm_fix_call_dummy): Call it.
12799         (arm_call_dummy_breakpoint_offset): Delete.
12800         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12801         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12802
12803 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12804
12805         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12806         Default to func_frame_chain_valid.
12807         * gdbarch.h, gdbarch.c: Re-generate.
12808         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12809
12810 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12811
12812         * ppc-linux-nat.c: Update copyright.
12813         (fetch_register, store_register): Add tid parameter, don't compute
12814         tid here.
12815         (fetch_ppc_registers, store_ppc_registers): Add tid
12816         parameter. Pass it along to callees.
12817         (fetch_inferior_registers, store_inferior_registers): Compute tid
12818         here, and pass it to calleed functions.
12819         (fill_gregset, supply_fpregset): Clean up formatting.
12820
12821 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12822
12823         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12824         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12825
12826 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12827
12828         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12829         * gdbarch.c gdbarch.h: Regenerate.
12830         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12831         function.
12832         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12833         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12834         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12835
12836         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12837         * arm-tdep.c (arm_get_longjmp_target): New function.
12838         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12839         this to a positive value register arm_get_longjmp_target as the
12840         longjmp handler.
12841         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12842         (arm_linux_init_abi): Set up longjmp description in tdep.
12843         * armnbsd-nat.c (get_longjmp_target): Delete.
12844         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12845         description in tdep.
12846         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12847         (get_longjmp_target): Delete declaration.
12848         (GET_LONGJMP_TARGET): Delete.
12849         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12850         (GET_LONGJMP_TARGET): Delete.
12851
12852 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12853
12854         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12855         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12856         of ``current_gdbarch''.
12857
12858 2002-02-17  Tom Tromey  <tromey@redhat.com>
12859
12860         * cli/cli-cmds.c (compare_strings): New function.
12861         (complete_command): Only print each unique item once.
12862         * completer.h (complete_line): Declare.
12863         * completer.c (complete_line): New function.
12864         (line_completion_function): Use it.
12865
12866 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12867
12868         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12869         * gdbarch.h, gdbarch.c: Re-generate.
12870
12871 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12872
12873         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12874
12875 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12876
12877         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12878         * valops.c (value_arg_coerce): Don't take the address of a reference
12879         to convert an argument to a reference.
12880
12881 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12882
12883         * win32-nat.c (get_image_name): New function.
12884         (handle_load_dll): Use get_image_name function.
12885         (get_child_debug_event): Avoid registering debug events until possibly
12886         execed process is started.
12887         (child_create_inferior): Allow invocation via shell so that command
12888         line redirection, etc.  works ok.
12889         (_initialize_inftarg): Add new command: "set shell" to control whether
12890         a shell is used to start a process.
12891
12892 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12893
12894         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12895         instead of find_register_by_number.
12896         (cannot_store_register): Likewise.
12897
12898 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12899
12900         * dwarf2read.c: Replace fprintf (stderr, ...) by
12901         fprintf_unfiltered (gdb_stderr, ...).
12902
12903 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12904
12905         * gdbserver/gdbserver.1: Document --attach.
12906
12907 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12908
12909         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12910         descriptions.
12911         * arm-tdep.c (arm_default_arm_le_breakpoint)
12912         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12913         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12914         traditional breakpoint defines.
12915         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12916         (arm_gdbarch_init): Initialize new breakpoint variables.
12917         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12918         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12919         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12920         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12921         code out to ...
12922         (arm_netbsd_init_abi_common): ... here; new function.
12923         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12924         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12925         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12926         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12927
12928 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12929
12930         * arm-tdep.h (enum arm_abi): New enum.
12931         (struct gdbarch_tdep): New structure.
12932         (LOWEST_PC): Provide a default.
12933         (arm_gdbarch_register_os_abi): Declare new function.
12934         * arm-tdep.c (arm_abi_names): New array.
12935         (process_note_abi_tag_sections): New function.
12936         (get_elfosabi): New function.
12937         (arm_gdbarch_register_os_abi): New function.
12938         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12939         support for that ABI has been built in, then call the appropriate
12940         configuration routine.  Use gdbarch_num_regs() to get the number
12941         of registers.
12942         (arm_dump_tdep): New function.
12943         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12944         place-holder functions.
12945         (_initialize_arm_tdep): Register them.
12946         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12947
12948         * armnbsd-tdep.c: New file.
12949         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12950         * config/arm/nbsd.mt (TDEPFILES): Add it.
12951         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12952
12953         * armnbsd-nat.c: Include regcache.h.
12954         * Makefile.in (armnbsd-nat.o): Update dependency list.
12955
12956         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12957
12958 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12959
12960         * gdbserver/Makefile.in: Fix typos in target rules.
12961
12962 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12963
12964         Fix part of PR gdb/267.
12965         * linespec.c (find_methods): Handle constructors specially for now.
12966
12967 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12968
12969         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12970         handling.
12971         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12972         standard_coerce_float_to_double().
12973
12974 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12975
12976         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12977         GDBINIT_FILENAME.
12978
12979 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12980
12981         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12982         find_variant_by_name, because it confuses the multiarch
12983         framework. Return NULL if there isn't an architecture with the
12984         user supplied name, instead of forcing a different one without
12985         recording the change with the multiarch machinery.
12986         (find_variant_by_name): Delete.
12987
12988 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12989
12990         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12991         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12992
12993 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12994
12995         * stack.c (print_frame_info_base): When calling
12996         print_frame_info_listing_hook, set current_source_symtab.
12997
12998 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12999
13000         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13001         and remove unused $(INCLUDE_DIR).
13002         Add regcache.c to OBS.
13003         Add generated register protocol files to clean target.
13004         Update dependencies for new objects, obsolete old target code.
13005
13006         * gdbserver/linux-low.c: Remove all platform-specific code to
13007         new files.  Remove various dead code.  Update to use regcache
13008         functionality.
13009         * gdbserver/remote-utils.c (fromhex): Add return statement
13010         to quiet warning.
13011         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13012         constant.
13013         (input_interrupt): Add integer parameter to match prototype
13014         of a signal handler.
13015         (outreg): Use register_data ().
13016         (prepare_resume_reply): Use gdbserver_expedite_regs.
13017         * gdbserver/server.c (main): Dynamically allocate own_buf because
13018         PBUFSIZ is no longer constant.  Use registers_to_string () and
13019         registers_from_string ().
13020         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13021         for error (), fatal (), and warning ().  Update definition of
13022         PBUFSIZ to use regcache functionality.  Add include guard.
13023         * gdbserver/utils.c (fatal): Add missing ``const''.
13024         (warning): New function.
13025
13026         * regformats/regdat.sh: Include "regcache.h" in generated files.
13027         Provide init_registers () function.
13028         * regformats/regdef.h: Add prototype for set_register_cache ().
13029         Add include guard.
13030
13031         * gdbserver/linux-arm-low.c: New file.
13032         * gdbserver/linux-i386-low.c: New file.
13033         * gdbserver/linux-ia64-low.c: New file.
13034         * gdbserver/linux-m68k-low.c: New file.
13035         * gdbserver/linux-mips-low.c: New file.
13036         * gdbserver/linux-ppc-low.c: New file.
13037         * gdbserver/linux-sh-low.c: New file.
13038
13039         * gdbserver/regcache.c: New file.
13040         * gdbserver/regcache.h: New file.
13041
13042         * gdbserver/low-linux.c: Removed obsolete file.
13043
13044 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13045
13046         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13047         * config/i386/linux.mt: Likewise.
13048         * config/ia64/linux.mt: Likewise.
13049         * config/m68k/linux.mh: Likewise.
13050         * config/powerpc/linux.mh: Likewise.
13051         * config/mips/linux.mt: Likewise.
13052
13053         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13054
13055         * config/i386/i386lynx.mh: Mark gdbserver variables
13056         as (currently) obsolete for this target.
13057         * config/i386/nbsd.mt: Likewise.
13058         * config/i386/nbsdelf.mt: Likewise.
13059         * config/m32r/m32r.mt: Likewise.
13060         * config/m68k/m68klynx.mh: Likewise.
13061         * config/m68k/nbsd.mt: Likewise.
13062         * config/m68k/sun3os4.mh: Likewise.
13063         * config/mips/vr5000.mt: Likewise.
13064         * config/ns32k/nbsd.mt: Likewise.
13065         * config/pa/hppabsd.mh: Likewise.
13066         * config/pa/hppaosf.mh: Likewise.
13067         * config/powerpc/nbsd.mt: Likewise.
13068         * config/rs6000/rs6000lynx.mh: Likewise.
13069         * config/s390/s390.mt: Likewise.
13070         * config/s390/s390x.mt: Likewise.
13071         * config/sparc/sparclynx.mh: Likewise.
13072         * config/sparc/sun4os4.mh: Likewise.
13073         * config/i386/x86-64linux.mt: Likewise.
13074         * config/sparc/linux.mh: Likewise.
13075
13076 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13077
13078         * configure.tgt: Configure gdbserver only for known working
13079         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13080         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13081         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13082         * configure: Regenerated.
13083
13084 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13085
13086         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13087
13088         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13089         (default_gcore_mach): Just return 0, work around a problem in bfd.
13090         (default_gcore_target): OK to return NULL if exec_bfd is null.
13091         (make_mem_sec): Use a cast, avoid a warning.
13092
13093         * procfs.c (find_memory_regions_callback): Use a cast instead of
13094         calling host_pointer_to_address (which complains if
13095         sizeof (host pointer) != sizeof (target pointer)).
13096         (procfs_make_note_section): Avoid overflow in psargs string.
13097
13098         * procfs.c (procfs_make_note_section): Make the default
13099         implementation return an error.
13100
13101 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13102
13103         * procfs.c (procfs_make_note_section): Provide a default definition
13104         (for alpha-dec-osf4.0f). Fix typos.
13105
13106 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13107
13108         * linux-proc.c: Add include of regcache.h.
13109         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13110
13111 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13112
13113         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13114         * memattr.c (create_mem_region): Disallow useless empty region.
13115         Regions are half-open intervals, so allow [A..B) [B..C) as
13116         non-overlapping.
13117
13118 2002-02-13  Michael Chastain <mec@shout.net>
13119
13120         * defs.h: Kill CONST_PTR.
13121         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13122         * c-lang.c (c_builtin_types): Likewise.
13123         * ch-lang.c (ch_builtin_types): Likewise.
13124         * f-lang.c (f_builtin_types): Likewise.
13125         * language.c (unknown_builtin_types): Likewise.
13126         * m2-lang.c (m2_builtin_types): Likewise.
13127         * p-lang.c (pascal_builtin_types): Likewise.
13128         * scm-lang.c (c_builtin_types): Likewise.
13129
13130 2002-02-13  Keith Seitz  <keiths@redhat.com>
13131
13132         * arm-tdep.h (arm_get_next_pc): Add declaration.
13133
13134 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13135
13136         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13137         with other related struct-returning functions.
13138         (arm_extract_struct_value_address): New function.
13139         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13140         initialize float_format, double_format and long_double_format as
13141         appropriate to the endianness of the target.
13142         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13143         (arm_use_struct_convention): Delete declaration.
13144         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13145
13146 2002-02-13  Keith Seitz  <keiths@redhat.com>
13147
13148         * defs.h (core_addr_to_string_nz): New function.
13149
13150 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13151
13152         Apply missing bits of 2002-01-15 patch.
13153         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13154         (fill_fpregset): Use i387_fill_fsave.
13155
13156 2002-02-12  Keith Seitz  <keiths@redhat.com>
13157
13158         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13159         (core_addr_to_string_nz): New function.
13160
13161 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13162
13163         * arm-linux-nat.c: Really include arm-tdep.h.
13164         * config/arm/tm-linux.h (struct type, struct value): Declare.
13165
13166 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13167
13168         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13169         (gcore section): Ifdef for Solaris and Unixware only.
13170         (procfs_do_thread_registers): Unixware needs one lwpstatus
13171         per thread (not one prstatus or pstatus).
13172         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13173         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13174         once before iterating over threads.
13175
13176 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13177
13178         * arm-tdep.h: New file.
13179         * arm-tdep.c: Include arm-tdep.h.
13180         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13181         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13182         (arm_print_float_info, arm_register_type, convert_to_extended)
13183         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13184         (arm_extract_return_value, arm_register_name): Make static.
13185         (arm_software_single_step): Similarly.  Fix types in declaration.
13186         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13187         (arm_store_return_value, arm_store_struct_return): New functions.
13188         (arm_gdbarch_init): Register the above functions.  Also register
13189         call_dummy_start_offset, sizeof_call_dummy_words,
13190         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13191         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13192         max_register_virtual_size, register_size.  Set up
13193         prologue_cache.saved_regs here, rather than ...
13194         (_initialize_arm_tdep): ... here.
13195         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13196         declarations.
13197         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13198         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13199         (arm_print_float_info, arm_register_type, convert_to_extended)
13200         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13201         (arm_extract_return_value, arm_register_name): Delete declarations.
13202         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13203         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13204         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13205         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13206         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13207         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13208         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13209         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13210         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13211         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13212         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13213         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13214         interface.
13215         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13216         * remote-rdi.c remote-rdp.c: Likewise.
13217         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13218         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13219         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13220         definition.
13221
13222         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13223         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13224         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13225         from non-ARM_ prefixed definitions.
13226         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13227         all uses of above.
13228         * remote-rdi.c remote-rdp.c: Likewise.
13229         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13230
13231 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13232
13233         * arm-tdep.c (arm_frameless_function_invocation)
13234         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13235         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13236         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13237         (arm_pop_frame, arm_get_next_pc): Make static.
13238         (arm_gdbarch_init): Register above in gdbarch structure.
13239         (arm_read_fp): Renamed from arm_target_read_fp.
13240         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13241         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13242         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13243         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13244         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13245         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13246         (arm_pc_is_thumb_dummy): Delete declarations.
13247         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13248         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13249         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13250         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13251
13252 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13253
13254         * symtab.c (compare_search_syms): New function.
13255         (sort_search_symbols): New function.
13256         (search_symbols): Sort symbols after searching rather than
13257         before.
13258
13259 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13260
13261         * NEWS: Linux -> GNU/Linux.
13262
13263 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13264
13265         * gdbarch.sh: For for level one methods, disallow a definition
13266         when partially multi-arched.  Add comments explaining rationale.
13267         * gdbarch.h: Re-generate.
13268
13269 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13270
13271         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13272         multi-arch partial.
13273
13274 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13275
13276         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13277         field.  Use diff -u.
13278         * gdbarch.c: Re-generate.
13279
13280 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13281
13282         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13283         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13284         partial.
13285
13286 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13287
13288         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13289         multi-arch partial.
13290         (PUSH_ARGUMENTS): Switch to using predefault.
13291         * gdbarch.c: Regenerate.
13292
13293 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13294
13295         * valops.c (PUSH_ARGUMENTS): Delete definition.
13296         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13297         partial.  Default to default_push_arguments.
13298         * gdbarch.h, gdbarch.c: Regenerate.
13299
13300 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13301
13302         * defs.h (throw_exception): Rename return_to_top_level.  Update
13303         comments.
13304         * utils.c (error_stream, internal_verror, quit): Ditto.
13305         * top.c (throw_exception, catcher): Ditto.
13306         * sparclet-rom.c (sparclet_load): Ditto.
13307         * remote.c (interrupt_query, minitelnet): Ditto.
13308         * remote-sds.c (interrupt_query): Ditto.
13309         * remote-mips.c (mips_error, mips_kill): Ditto.
13310         * ocd.c (interrupt_query): Ditto.
13311         * monitor.c (monitor_interrupt_query): Ditto.
13312         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13313         * target.h: Update comment.
13314
13315         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13316
13317 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13318
13319         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13320         default_double_format.
13321         * gdbarch.h, gdbarch.c: Re-generate.
13322         * findvar.c (floatformat_unknown): Delete variable definition.
13323         * doublest.h (floatformat_unknown): Delete variable declaration.
13324
13325 2002-02-09  Jim Blandy  <jimb@redhat.com>
13326
13327         * stabsread.c (read_type): Add code to parse Sun's syntax for
13328         prototyped function types.
13329
13330 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13331
13332         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13333         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13334
13335 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13336
13337         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13338         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13339         now _initialize_xcoffsolib gets called again and overrides the
13340         commands from solib.c in a native configuration.
13341
13342 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13343
13344         * doublest.c (store_typed_floating): Don't try to return a value.
13345         Fixes PR gdb/290.
13346
13347 2002-02-08  Jim Blandy  <jimb@redhat.com>
13348
13349         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13350         is prototyped and has no arguments, print its argument list as
13351         `(void)'.
13352
13353 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13354
13355         * MAINTAINERS (write-after-approval): Add myself.
13356         (paper-trail): I've escaped!
13357
13358 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13359
13360         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13361         changes.
13362         (_initialize_check_for_gdb_ini): Ditto.
13363
13364 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13365
13366         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13367         xaprintf -> xasprintf.
13368
13369 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13370
13371         * win32-nat.c: Remove use of printf and sprintf functions.
13372
13373 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13374
13375         * arm-tdep.c (arm_frame_chain_valid): Make static.
13376         (arm_push_arguments): Likewise.
13377         (arm_gdbarch_init): New function.
13378         (_initialize_arm_tdep): Call it.
13379         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13380         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13381         (FRAME_CHAIN_VALID): Delete.
13382         (arm_frame_chain_valid): Delete declaration.
13383         (PUSH_ARGUMENTS): Delete.
13384         (arm_push_arguments): Delete declaration.
13385         (CALL_DUMMY_P): Delete.
13386
13387 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13388             Corinna Vinschen  <vinschen@redhat.com>
13389
13390         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13391         on builtin float types.
13392
13393 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13394
13395         * utils.c: Include <curses.h> before "bfd.h".
13396         * tui/tui-hooks.c: Likewise.
13397         * tui/tui.c: Likewise.
13398         * tui/tuiCommand.c: Likewise.
13399         * tui/tuiData.c: Likewise.
13400         * tui/tuiDataWin.c: Likewise.
13401         * tui/tuiDisassem.c: Likewise.
13402         * tui/tuiGeneralWin.c: Likewise.
13403         * tui/tuiIO.c: Likewise.
13404         * tui/tuiLayout.c: Likewise.
13405         * tui/tuiRegs.c: Likewise.
13406         * tui/tuiSource.c: Likewise.
13407         * tui/tuiSourceWin.c: Likewise.
13408         * tui/tuiStack.c: Likewise.
13409         * tui/tuiWin.c: Likewise.
13410
13411 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13412
13413         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13414         to include space for pseudoregs as well. Update loops accordingly.
13415         (sh_fp_frame_init_saved_regs): Ditto.
13416         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13417
13418 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13419
13420         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13421         Add Richard Earnshaw to Arm maintainers.
13422
13423 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13424
13425         * defs.h (warning_begin): Delete declaration.
13426
13427         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13428         Delete macro.
13429
13430 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13431
13432         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13433         Logic bug, remove misplaced else.
13434
13435 2002-02-07  Klee Dienes  <klee@apple.com>
13436
13437         * fork-inferior.c (fork_inferior): Add '!' to the list of
13438         characters that need to be quoted when building a string for the
13439         shell.  Quote '!' specifically with a backslash, since CSH chokes
13440         when trying to evaluate "str!str".
13441
13442 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13443
13444         * rdi-share/host.h: Only provide a typedef for bool if it is not
13445         defined.
13446
13447 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13448
13449         * breakpoint.h (enum bptype): Add new overlay event bp type.
13450         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13451
13452         * breakpoint.c (create_internal_breakpoint): New function.
13453         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13454         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13455         (create_thread_event_breakpoint): Ditto.
13456         (create_solib_event_breakpoint): Ditto.
13457         (create_overlay_event_breakpoint): New function.
13458         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13459         (update_breakpoints_after_exec): Delete and re-initialize
13460         overlay event breakpoints after an exec.  Add FIXME comment
13461         about longjmp breakpoint.
13462         (print_it_typical): Ignore overlay event breakpoints.
13463         (print_one_breakpoint): Ditto.
13464         (mention): Ditto.
13465         (bpstat_what): Do not stop for overlay event breakpoints.
13466         (delete_breakpoint): Don't delete overlay event breakpoints.
13467         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13468         (breakpoint_re_set): Re-create overlay event breakpoint.
13469
13470         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13471         (overlay_manual_command): Disable overlay breakpoints.
13472         (overlay_off_command): Disable overlay breakpoints.
13473
13474 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13475
13476         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13477         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13478         to here from config/tm-arm.h.
13479         (coff_sym_is_thumb): Make static.
13480         (arm_elf_make_msymbol_special): New function.
13481         (arm_coff_make_msymbol_special): New function.
13482         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13483         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13484         (coff_sym_is_thumb): Delete declaration.
13485         (arm_elf_make_msymbol_special): Declare.
13486         (arm_coff_make_msymbol_special): Declare.
13487         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13488         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13489
13490 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13491
13492         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13493
13494 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13495
13496         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13497         * gdbarch.c gdbarch.h: Regenerate.
13498         * arch-utils.c (default_print_float_info): New function.
13499         * arch-utils.h (default_print_float_info): Prototype it.
13500         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13501         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13502         (PRINT_FLOAT_INFO): Document it.
13503
13504         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13505         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13506         (PRINT_FLOAT_INFO): Define.
13507
13508 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13509
13510         * win32-nat.c (_initialize_check_for_gdb_ini):
13511         Add typecast to sprintf argument to suppress a warning.
13512
13513 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13514
13515         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13516         to allow easier handling of pass state.
13517         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13518         that gives exception name and address.
13519         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13520         and set last_sig value to ourstatus->value.sig. Some missing
13521         exceptions added.
13522         (child_continue): Correctly report continue_status.
13523         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13524         TARGET_SIGNAL_0 (new default value).
13525         (child_resume): consider sig argument passed to decide if
13526         the exception should be passed to debuggee or not.
13527
13528 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13529
13530         * regcache.c (fetch_register): Call target_fetch_register
13531         only if we don't call FETCH_PSEUDO_REGISTER.
13532         (store_register): Call target_store_register only if we
13533         don't call STORE_PSEUDO_REGISTER.
13534
13535 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13536
13537         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13538         ELF_MAKE_MSYMBOL_SPECIAL.
13539         * gdbarch.c, gdbarch.h: Regenerate.
13540         * arch-utils.c (default_make_msymbol_special): New function.
13541         * arch-utils.h (default_make_msymbol_special): Export.
13542         * elfread.c (elf_symtab_read): Compile use of
13543         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13544         multiarched.
13545         * coffread.c (coff_symtab_read): Ditto, for
13546         COFF_MAKE_MSYMBOL_SPECIAL.
13547
13548 2002-02-05  Jim Blandy  <jimb@redhat.com>
13549
13550         * solib-svr4.c (svr4_truncate_ptr): New function.
13551         (svr4_relocate_section_addresses): Do the address arithmetic with
13552         the appropriate truncation for target addresses, even when
13553         CORE_ADDR is larger than a target address.
13554
13555 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13556
13557         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13558         to (int *).
13559
13560 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13561
13562         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13563         code.
13564
13565 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13566
13567         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13568
13569 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13570
13571         * gdbserver/linux-low.c: Remove unused include files.
13572
13573 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13574
13575         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13576         (read_inferior_memory): Use it.
13577         (write_inferior_memory): Likewise.
13578
13579 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13580
13581         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13582         grubbing through sys_errlist.
13583
13584 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13585
13586         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13587
13588 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13589         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13590
13591 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13592
13593         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13594         (do_sfunc, set_cmd_sfunc): New functions.
13595
13596         * command.h (struct cmd_list_element): Add field func.
13597         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13598         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13599         * cli/cli-decode.h: Ditto.
13600
13601         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13602         (help_all, help_cmd_list): Ditto.
13603         (find_cmd, complete_on_cmdlist): Ditto.
13604         * top.c (execute_command): Ditto.
13605
13606         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13607         function.sfunc.
13608
13609         * infcmd.c (notice_args_read): Fix function signature.
13610
13611         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13612         * cli/cli-decode.c (add_set_cmd): Ditto.
13613         * utils.c (initialize_utils): Ditto.
13614         * maint.c (_initialize_maint_cmds): Ditto.
13615         * infrun.c (_initialize_infrun): Ditto.
13616         * demangle.c (_initialize_demangler): Ditto.
13617         * remote.c (add_packet_config_cmd): Ditto.
13618         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13619         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13620         * proc-api.c (_initialize_proc_api): Ditto.
13621         * kod.c (_initialize_kod): Ditto.
13622         * valprint.c (_initialize_valprint): Ditto.
13623         * top.c (init_main): Ditto.
13624         * infcmd.c (_initialize_infcmd): Ditto.
13625         * corefile.c (_initialize_core): Ditto.
13626         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13627         * arch-utils.c (initialize_current_architecture): Ditto.
13628         (_initialize_gdbarch_utils): Ditto.
13629         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13630
13631         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13632         * wince.c (_initialize_inftarg): Ditto.
13633         * symfile.c (_initialize_symfile): Ditto.
13634         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13635         * language.c (_initialize_language): Ditto.
13636         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13637
13638 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13639
13640         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13641
13642 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13643
13644         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13645         Add rules for building the register data files.
13646
13647 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13648
13649         * regformats/regdat.sh: Add braces to the definition of
13650         expedite_regs_${arch}.
13651
13652 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13653
13654         * regformats/regdef.h (struct reg): Add comment describing the
13655         requirements for offset and size fields.
13656
13657 2002-02-04  Andreas Schwab  <schwab@suse.de>
13658
13659         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13660         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13661
13662 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13663
13664         * gdbarch.sh (copyright): Update years in generated header.
13665         (SMASH_TEXT_ADDRESS): Add rule.
13666         * gdbarch.h, gdbarch.c: Re-generate.
13667         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13668         * dbxread.c: Likewise.
13669         * dwarfread.c: Likewise.
13670         * elfread.c: Likewise.
13671         * somread.c: Likewise.
13672
13673         * arm-tdep.c (arm_smash_text_address): New function.
13674         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13675
13676 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13677
13678         Add support for hardware watchpoints on win32 native.
13679         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13680         CONTEXT_DEBUG_REGISTERS.
13681         (dr variable): New variable. Static array containing a local copy
13682         of debug registers.
13683         (debug_registers_changed): New variable.  Reflects when debug registers
13684         are changed and need to be written to inferior.
13685         (debug_registers_used): New variable. Reflects when any debug register
13686         was set, used when new threads are created.
13687         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13688         i386-nat code.
13689         (thread_rec): Set dr array if id is the thread of current_event .
13690         (child_continue, child_resume): Change the debug registers for all
13691         threads if debug_registers_changed.
13692         (child_add_thread): Change the debug registers if debug_registers_used.
13693         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13694         Link nm.h to new nm-cygwin.h file.
13695         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13696         of hardware registers.
13697
13698 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13699
13700         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13701         Restore behavour broken by 2002-01-20 Andrew Cagney
13702         <ac131313@redhat.com> IEEE_FLOAT removal.
13703
13704 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13705
13706         * c-valprint.c (c_val_print): Pass a proper valaddr to
13707         cp_print_class_method.
13708         * valops.c (search_struct_method): If there is only one method
13709         and args is NULL, return that method.
13710
13711 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13712
13713         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13714         accessing tag_name directly.
13715
13716 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13717
13718         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13719         of accessing tag_name directly.
13720
13721 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13722
13723         PR gdb/280
13724         * gdbtypes.c (replace_type): New function.
13725         * gdbtypes.h (replace_type): Add prototype.
13726         * stabsread.c (read_type): Use replace_type.
13727
13728 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13729
13730         * Makefile.in (memattr.o): Add missing dependencies rule.
13731
13732 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13733
13734         * breakpoint.c (break_at_finish_command): Really export.
13735         (break_at_finish_at_depth_command): Ditto.
13736         (tbreak_at_finish_command): Ditto.
13737         * hppa-tdep.c: Include completer.h.
13738         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13739         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13740
13741 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13742
13743         * utils.c (do_write): New function.
13744         (error_stream): Rewrite combining the code from error_begin and
13745         verror.
13746         (verror): Rewrite using error_stream.
13747         (error_begin): Delete function.
13748
13749 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13750
13751         * utils.c (error_begin): Make static.
13752         * defs.h (error_begin): Delete declaration.
13753
13754         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13755         (decode_line_1): Use cplusplus_error instead of error_begin,
13756         cplusplus_hint and return_to_top_level.
13757         * coffread.c (coff_symfile_read): Use error instead of error_begin
13758         and return_to_top_level.
13759         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13760
13761 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13762
13763         * language.h (type_error, range_error): Make string parameter
13764         constant.
13765         * language.c (warning_pre_print): Delete extern declaration.
13766         * dwarfread.c (warning_pre_print): Ditto.
13767         * language.c (type_error, range_error): Rewrite to use verror and
13768         vwarning instead of warning_begin.
13769
13770 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13771
13772         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13773         (set_ignore_count): Move misplaced comment back where it belongs.
13774
13775 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13776
13777         * command.h (NO_FUNCTION): Delete macro.
13778         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13779         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13780         * tracepoint.c (_initialize_tracepoint): Ditto.
13781         * cli/cli-decode.c (add_set_cmd): Ditto.
13782         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13783
13784 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13785
13786         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13787         Update ``this'' pointer when calling virtual functions.
13788
13789 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13790
13791         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13792         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13793
13794 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13795
13796         * regformats/reg-arm.dat: New file.
13797         * regformats/reg-i386.dat: New file.
13798         * regformats/reg-ia64.dat: New file.
13799         * regformats/reg-m68k.dat: New file.
13800         * regformats/reg-mips.dat: New file.
13801         * regformats/reg-ppc.dat: New file.
13802         * regformats/reg-sh.dat: New file.
13803         * regformats/regdef.h: New file.
13804         * regformats/regdat.sh: New file.
13805
13806 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13807
13808         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13809         (arm_frame_args_address, arm_frame_locals_address): New functions.
13810         (arm_frame_num_args): New function.
13811         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13812         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13813         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13814
13815 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13816
13817         * breakpoint.c (break_at_finish_command): Export.
13818         (break_at_finish_at_depth_command): Export.
13819         (tbreak_at_finish_command): Export.
13820         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13821         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13822         "txbreak" commands, which are HPPA specific.
13823
13824         * printcmd.c (disassemble_command): Remove an ancient
13825         artifact of an old merge.
13826
13827         * symfile.h (enum overlay_debugging_state):
13828         Define enum constant values for overlay mode.
13829         * symfile.c (overlay_debugging): Use enums instead of literals.
13830         (overlay_is_mapped, overlay_auto_command,
13831         overlay_manual_command): Ditto.
13832
13833         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13834         breakpoint_here_p, breakpoint_inserted_here_p,
13835         breakpoint_thread_match, bpstat_stop_status,
13836         describe_other_breakpoints, check_duplicates, clear_command):
13837         Coding standard fixes.
13838
13839         * target.c (target_xfer_memory): Add spaces, coding standard.
13840         (do_xfer_memory): Add missing line to trust-readonly
13841         code: check bfd SEC_READONLY flag for section.
13842
13843 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13844
13845         * PROBLEMS: Fix typo, 5.1->5.1.1.
13846
13847 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13848
13849         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13850         data symbols, since we search based on textlow and texthigh.
13851         (find_pc_sect_symtab): Likewise.
13852
13853 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13854
13855         * defs.h (vwarning): Declare.
13856         * utils.c (vwarning): New function.
13857         (warning): Call vwarning.
13858         (warning_begin): Delete function.
13859
13860         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13861         the warning message.
13862         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13863         warning_begin.
13864
13865 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13866
13867         * NEWS: Mention "set trust-readonly-sections" command.
13868         Mention generate-core-file command.
13869
13870 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13871
13872         * target.c: New command, "set trust-readonly-sections on".
13873         (do_xfer_memory): Honor the suggestion to trust readonly sections
13874         by reading them from the object file instead of from the target.
13875         (initialize_targets): Register command "set trust-readonly-sections".
13876
13877 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13878
13879         * parse.c (target_map_name_to_register): Simplify, search regs and
13880         pseudo-regs using a single loop.
13881
13882 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13883
13884         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13885
13886 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13887
13888         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13889         * config/i386/i386v42mp.mh: Add i387-nat.o .
13890         * i386v4-nat.c: Include i387-nat.h.
13891         (supply_fpregset): Use i387_supply_fsave.
13892         (fill_fpregset): Use i387_fill_fsave.
13893
13894 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13895
13896         * arm-tdep.c (arm_call_dummy_words): Define.
13897         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13898         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13899         (CALL_DUMMY_WORDS): Define.
13900         (arm_call_dummy_words): Declare.
13901         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13902         (arm_linux_call_dummy_words): Declare.
13903
13904 2002-01-30  Andreas Schwab  <schwab@suse.de>
13905
13906         * m68klinux-nat.c: Fix last change to use regcache_collect
13907         instead of referencing registers[] directly.
13908
13909 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13910
13911         * parse.c (target_map_name_to_register): Delete code wrapped in
13912         #ifdef REGISTER_NAME_ALIAS_HOOK.
13913
13914 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13915
13916         * regcache.c (legacy_read_register_gen): Need to be able to
13917         read pseudo-register as well as real register.
13918         (legacy_write_register_gen): Ditto.
13919
13920 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13921
13922         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13923         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13924         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13925         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13926         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13927         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13928         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13929         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13930         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13931         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13932         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13933         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13934         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13935         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13936         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13937         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13938         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13939         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13940         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13941         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13942
13943 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13944
13945         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13946         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13947         (initialize_current_architecture): Update target_byte_order using
13948         information from BFD.
13949         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13950         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13951
13952 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13953
13954         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13955         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13956
13957         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13958         #ifdef INVALID_FLOAT.
13959         * infcmd.c (do_registers_info): Ditto.
13960         * values.c (unpack_double): Ditto.  Add comment.
13961
13962         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13963         already commented out.
13964
13965 2002-01-26  Andreas Schwab  <schwab@suse.de>
13966
13967         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13968         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13969         registers and add support for PTRACE_GETREGS.
13970
13971 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13972
13973         GDB 5.1.1 released from 5.1 branch.
13974         * NEWS: Add 5.1.1 news.
13975         * README: Sync with 5.1 branch.
13976
13977 2002-01-23  Fred Fish  <fnf@redhat.com>
13978
13979         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13980         stabstring on initial malloc.  Reallocing will copy it for us,
13981         if necessary.
13982
13983 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13984
13985         * Makefile.in (hpread_h): Delete.
13986         (HFILES_NO_SRCDIR): Remove hpread.h.
13987         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13988         (hpread.o): Update dependencies.
13989         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13990
13991         * hp-psymtab-read.c: Remove file.
13992         * hp-symtab-read.c: Remove file.
13993         * hpread.h: Remove file.
13994
13995         * hpread.c: Merge all contents of hp-psymtab-read.c,
13996         hp-symtab-read.c and hpread.h into this file, as it was prior to
13997         January 1999.
13998
13999         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14000         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14001         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14002         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14003
14004 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14005
14006         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14007         fill_gregset): Call gdbarch_tdep() just once, assign result to
14008         variable and use that, instead of calling the function several
14009         times.
14010
14011 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14012
14013         * configure.host: Accept sparcv9 as alias for sparc64.
14014         * configure.tgt: Likewise.
14015
14016 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14017
14018         * solib-aix5.c (build_so_list_from_mapfile)
14019         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14020         arguments is not reversed.
14021         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14022         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14023
14024 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14025
14026         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14027         modified version of obsolete sh_fetch_pseudo_register.
14028         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14029         (sh4_register_read): New function.
14030         (sh_pseudo_register_write): New function. Renamed and modified
14031         version of obsolete sh_store_pseudo_register.
14032         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14033         (sh4_register_write): New function.
14034         (sh_gdbarch_init): Remove setting of gdbarch function
14035         fetch_pseudo_register and store_pseudo_register. Remove setting of
14036         register_convert_to_raw, register_convert_to_virtual,
14037         register_convertible.
14038         (sh_sh4_register_convertible): Delete. No longer needed. All is
14039         taken care by architecture specific functions
14040         register_read/register_write.
14041         (sh_sh4_register_convert_to_virtual): Make static.
14042         (sh_sh4_register_convert_to_raw): Ditto.
14043
14044 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14045
14046         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14047         (floatformat_is_nan, floatformat_mantissa): Ditto.
14048
14049         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14050         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14051         builtin_type_ieee_double_little,
14052         builtin_type_ieee_double_littlebyte_bigword,
14053         builtin_type_m68881_ext, builtin_type_i960_ext,
14054         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14055         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14056         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14057         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14058
14059 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14060
14061         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14062         parameter.  Set frameless flag if it exists and depended of
14063         whether the scanned function is frameless or not.
14064         (xstormy16_skip_prologue): If function is frameless, return
14065         result of xstormy16_scan_prologue().
14066         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14067         call.
14068
14069 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14070
14071         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14072         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14073         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14074         sh_sh4_register_byte, sh_sh4_register_raw_size,
14075         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14076         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14077         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14078         sh_store_pseudo_register, sh_do_pseudo_register): Call
14079         gdbarch_tdep() just once, assign result to variable and use that,
14080         instead of calling the function several times.
14081
14082 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14083
14084         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14085         macros instead of LAST_FPU_CTRL_REGNUM.
14086         (store_register): Likewise.
14087
14088 2002-01-21  Jim Blandy  <jimb@redhat.com>
14089
14090         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14091         is up-to-date before running the program, not just when a program
14092         exits.
14093
14094 2002-01-21  Fred Fish  <fnf@redhat.com>
14095
14096         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14097         when we have found all instructions we are looking for.
14098
14099 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14100
14101         * arm-tdep.c (arm_register_name): New function.
14102         (arm_registers_names): Make static.
14103         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14104         (arm_register_name): Declare.
14105         (REGISTER_NAME): Use it.
14106
14107 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14108             Kevin Buettner  <kevinb@redhat.com>
14109
14110         Convert arm targets to new FRAME interface.
14111         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14112         (arm_frame_find_save_regs): Delete.
14113         (arm_frame_init_saved_regs): New.
14114         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14115         Allocate extra_info as required.  Convert all uses of fsr.regs
14116         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14117         to use extra_info.
14118         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14119         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14120         (check_prologue_cache, save_prologue_cache): Likewise.
14121         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14122         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14123         (FRAME_FIND_SAVED_REGS): Delete.
14124         (arm_frame_find_saved_regs): Delete prototype.
14125         (arm_frame_init_saved_regs): New prototype.
14126         (FRAME_INIT_SAVED_REGS): Define.
14127
14128 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14129
14130         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14131
14132 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14133
14134         From Jeff Law <law@redhat.com>:
14135         * infttrace.c: Include <sys/pstat.h>.
14136         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14137         exec file if the ttrace equivalent fails.
14138
14139 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14140
14141         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14142         (closeLogFile): Ditto.
14143
14144 2002-01-20  Michael Chastain  <mec@shout.net>
14145
14146         * top.c (print_gdb_version): Bump copyright year to 2002.
14147
14148 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14149
14150         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14151         Zannoni and Eli Zaretskii.
14152
14153 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14154
14155         * buildsym.c: Update copyright years.
14156         * c-typeprint.c: Likewise.
14157         * dwarf2read.c: Likewise.
14158         * f-typeprint.c: Likewise.
14159         * gdbtypes.c: Likewise.
14160         * gdbtypes.h: Likewise.
14161         * hp-symtab-read.c: Likewise.
14162         * hpread.c: Likewise.
14163         * mdebugread.c: Likewise.
14164         * p-typeprint.c: Likewise.
14165
14166 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14167
14168         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14169         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14170         byte-order selectable.
14171         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14172         * arch-utils.c: Ditto.
14173         (set_endian): Ditto.
14174         (set_endian_from_file): Ditto.
14175         * gdbserver/low-sim.c (create_inferior): Ditto.
14176         * gdbarch.sh: Ditto.
14177         * gdbarch.h: Re-generate.
14178         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14179         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14180         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14181         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14182         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14183         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14184         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14185         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14186         macro definition.
14187         * config/mips/tm-wince.h: Remove #undef of macro
14188         TARGET_BYTE_ORDER_SELECTABLE.
14189         * config/sh/tm-wince.h: Ditto.
14190
14191 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14192
14193         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14194         member function fields.  Add accessor macro
14195         TYPE_FN_FIELD_ARTIFICIAL.
14196         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14197         * c-typeprint.c (c_type_print_base): Skip artificial member
14198         functions.
14199
14200 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14201
14202         * f-typeprint.c: Delete unused function f_type_print_args.
14203         * p-typeprint.c: Delete unused function pascal_type_print_args.
14204
14205 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14206
14207         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14208         comment.  Add ``artificial'' to ``union field_location''.
14209
14210         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14211
14212         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14213         * mdebugread.c (parse_symbol): Likewise.
14214         * stabsread.c (define_symbol): Likewise.
14215         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14216         initializing TYPE_FIELD_BITPOS to n (obsolete).
14217         (hpread_doc_function_type): Likewise.
14218         * hpread.c (hpread_function_type): Likewise.
14219
14220 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14221
14222         * configure.in (host_makefile_frag): Only require a host makefile
14223         fragment when a native build.
14224         * configure: Re-generate.
14225
14226 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14227
14228         * doublest.h (floatformat_from_type): Declare.
14229         * doublest.c (floatformat_from_type): New function.
14230         (convert_typed_floating): Use.
14231
14232         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14233         call to function floatformat_from_type.
14234
14235         * gdbarch.sh (IEEE_FLOAT): Delete.
14236         * gdbarch.h, gdbarch.c: Re-generate.
14237         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14238         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14239         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14240         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14241         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14242         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14243         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14244         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14245         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14246         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14247         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14248         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14249
14250         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14251         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14252         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14253         * sh-tdep.c (sh_gdbarch_init): Ditto.
14254         * mips-tdep.c (mips_gdbarch_init): Ditto.
14255         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14256         * cris-tdep.c (cris_gdbarch_init): Ditto.
14257
14258 2002-01-20  Jiri Smid  <smid@suse.cz>
14259
14260         * configure.host, configure.tgt: Support x86-64.
14261         * NEWS: Note new target x86-64.
14262
14263         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14264         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14265         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14266         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14267         x86-64-linux-nat.o): Fix dependencies.
14268
14269 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14270
14271         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14272         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14273         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14274         * config/sparc/xm-sun4os4.h: Delete file.
14275         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14276
14277 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14278
14279         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14280         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14281         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14282         * config/i386/i386lynx.mh (XM_FILE): Delete.
14283         * config/rs6000/xm-rs6000ly.h: Delete file.
14284         * config/sparc/xm-sparclynx.h: Delete file.
14285         * config/m68k/xm-m68klynx.h: Delete file.
14286         * config/i386/xm-i386lynx.h: Delete file.
14287         * config/xm-lynx.h: Delete file.
14288         * config/djgpp/fnchange.lst: Update.
14289
14290 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14291
14292         * alpha-tdep.c (alpha_register_byte): New function.
14293         (alpha_register_raw_size): Ditto.
14294         (alpha_register_virtual_size): Ditto.
14295         (alpha_skip_prologue_internal): Renamed from
14296         alpha_skip_prologue.
14297         (alpha_skip_prologue): New version that calls
14298         alpha_skip_prologue_internal.
14299         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14300         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14301         second argument from alpha_skip_prologue.
14302         (REGISTER_BYTE): Use alpha_register_byte.
14303         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14304         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14305         (FRAMELESS_FUNCTION_INVOCATION): Use
14306         generic_frameless_function_invocation_not.
14307         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14308         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14309
14310 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14311
14312         * config/mips/xm-news-mips.h: Delete file.
14313         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14314
14315         * config/m88k/xm-m88k.h: Delete file.
14316         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14317         * config/m88k/xm-delta88v4.h: Ditto.
14318         * config/m88k/xm-delta88.h: Ditto.
14319
14320         * config/alpha/xm-fbsd.h: Delete file.
14321         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14322
14323         * config/sparc/xm-sparc.h: Delete file.
14324         * Makefile.in (xm-sun4os4.h): Delete dependency.
14325         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14326         * config/sparc/xm-sun4os4.h: Ditto.
14327         * config/sparc/xm-linux.h: Ditto.
14328
14329         * config/i386/xm-windows.h: Delete file.
14330
14331 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14332
14333         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14334         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14335
14336 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14337
14338         * alpha-tdep.c (alpha_call_dummy_words): New.
14339         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14340         (CALL_DUMMY_P): Define.
14341         (CALL_DUMMY_WORDS): Define.
14342         (SIZEOF_CALL_DUMMY_WORDS): Define.
14343
14344 2002-01-19  Per Bothner  <per@bothner.com>
14345
14346         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14347         isn't NULL, which can happen with some gcj-3.x-produced code.
14348
14349 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14350
14351         * alpha-tdep.c (alpha_register_virtual_type): New function.
14352         (alpha_init_frame_pc_first): Ditto.
14353         (alpha_fix_call_dummy): Ditto.
14354         (alpha_store_struct_return): Ditto.
14355         (alpha_extract_struct_value_address): Ditto.
14356         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14357         alpha_register_virtual_type.
14358         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14359         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14360         alpha_extract_struct_value_address.
14361         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14362         (INIT_FRAME_PC): Use init_frame_pc_noop.
14363         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14364
14365 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14366
14367         * i386gnu-nat.c: Include "i386-tdep.h".
14368         (fetch_fpregs): Simplify code dealing with uninitialized floating
14369         point states such that it doesn't require FP7_REGNUM.
14370
14371 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14372
14373         * alpha-tdep.c (frame_extra_info): New.
14374         (alpha_find_saved_regs): Make static.  Use
14375         frame->extra_info.
14376         (alpha_frame_init_saved_regs): New function.
14377         (alpha_frame_saved_pc): Use frame->extra_info.
14378         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14379         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14380         (init_extra_frame_info): Rename to...
14381         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14382         (alpha_print_extra_frame_info): New function.
14383         (alpha_frame_locals_address): Ditto.
14384         (alpha_frame_args_address): Ditto.
14385         (alpha_pop_frame): Use frame->extra_info.
14386         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14387         alpha_frame_args_address.
14388         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14389         (alpha_find_saved_regs): Remove prototype.
14390         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14391         (EXTRA_FRAME_INFO): Remove.
14392         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14393         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14394
14395 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14396
14397         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14398         (alpha_cannot_fetch_register): Ditto.
14399         (alpha_cannot_store_register): Ditto.
14400         (alpha_register_convertible): Ditto.
14401         (alpha_use_struct_convention): Ditto.
14402         * config/alpha/tm-alpha.h: Update copyright years.
14403         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14404         (INNER_THAN): Use core_addr_lessthan.
14405         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14406         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14407         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14408         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14409         (FRAME_CHAIN): Remove unnecessary cast.
14410
14411 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14412
14413         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14414         obsolete.
14415
14416 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14417
14418         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14419         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14420         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14421         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14422         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14423         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14424         * x86-64-linux-nat.c: Ditto.
14425
14426 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14427
14428         * alpha-tdep.c (alpha_register_name): New function.
14429         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14430         (REGISTER_NAME): Define.
14431
14432 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14433
14434         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14435
14436 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14437
14438         * alpha-tdep.c: Update copyright years.
14439         (alpha_next_pc): New function.
14440         (alpha_software_single_step): Ditto.
14441         * config/alpha/tm-alpha.h: Add prototype for
14442         alpha_software_single_step.
14443
14444 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14445
14446         * alphabsd-nat.c: Update copyright years.
14447         (fill_gregset): Use regcache_collect.
14448         (fill_fpregset): Likewise.
14449         (fetch_inferior_registers): Only fetch integer registers
14450         if requested to do so.
14451         (store_inferior_registers): Only store integer registers
14452         if requested to do so.
14453
14454 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14455
14456         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14457         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14458         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14459         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14460         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14461         * config/arm/linux.mh (XDEPFILES): Delete.
14462         * config/arm/nbsd.mh (XDEPFILES): Delete.
14463         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14464         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14465         * config/i386/i386m3.mh (XDEPFILES): Delete.
14466         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14467         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14468         * config/i386/fbsd.mh (XDEPFILES): Delete.
14469         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14470         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14471         * config/i386/i386v4.mh (XDEPFILES): Delete.
14472         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14473         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14474         * config/i386/i386aix.mh (XDEPFILES): Delete.
14475         * config/i386/go32.mh (XDEPFILES): Delete.
14476         * config/i386/cygwin.mh (XDEPFILES): Delete.
14477         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14478         * config/i386/i386mach.mh (XDEPFILES): Delete.
14479         * config/i386/i386v32.mh (XDEPFILES): Delete.
14480         * config/i386/linux.mh (XDEPFILES): Delete.
14481         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14482         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14483         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14484         * config/i386/i386sco.mh (XDEPFILES): Delete.
14485         * config/i386/i386v.mh (XDEPFILES): Delete.
14486         * config/i386/nbsd.mh (XDEPFILES): Delete.
14487         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14488         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14489         * config/i386/symmetry.mh (XDEPFILES): Delete.
14490         * config/i386/obsd.mh (XDEPFILES): Delete.
14491         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14492         * config/ia64/linux.mh (XDEPFILES): Delete.
14493         * config/ia64/aix.mh (XDEPFILES): Delete.
14494         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14495         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14496         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14497         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14498         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14499         * config/m68k/linux.mh (XDEPFILES): Delete.
14500         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14501         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14502         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14503         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14504         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14505         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14506         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14507         * config/m88k/delta88.mh (XDEPFILES): Delete.
14508         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14509         * config/m88k/m88k.mh (XDEPFILES): Delete.
14510         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14511         * config/mips/linux.mh (XDEPFILES): Delete.
14512         * config/mips/irix6.mh (XDEPFILES): Delete.
14513         * config/mips/irix5.mh (XDEPFILES): Delete.
14514         * config/mips/irix4.mh (XDEPFILES): Delete.
14515         * config/mips/irix3.mh (XDEPFILES): Delete.
14516         * config/mips/decstation.mh (XDEPFILES): Delete.
14517         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14518         (NATDEPFILES): Move core-aout.o to here.
14519         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14520         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14521         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14522         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14523         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14524         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14525         * config/pa/hpux11.mh (XDEPFILES): Delete.
14526         * config/powerpc/aix.mh (XDEPFILES): Delete.
14527         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14528         * config/powerpc/linux.mh (XDEPFILES): Delete.
14529         * config/romp/rtbsd.mh: Rename XDEPFILES.
14530         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14531         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14532         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14533         * config/s390/s390.mh (XDEPFILES): Delete.
14534         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14535         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14536         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14537         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14538         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14539         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14540         * config/sparc/linux.mh (XDEPFILES): Delete.
14541         * config/vax/vaxult.mh (XDEPFILES): Delete.
14542         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14543         * Makefile.in (DEPFILES): Remove XDEPFILES.
14544
14545 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14546
14547         * utils.c (internal_verror): Fix comments, default is yes not no.
14548         Update queries to match.  Default to quit and dump core.
14549
14550 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14551
14552         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14553         copyright.
14554         * defs.h, event-top.c, gdbcmd.h: Ditto.
14555         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14556         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14557         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14558         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14559         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14560         * mi/mi-main.c:Ditto.
14561
14562         * stack.c, symfile.c: Update copyright.
14563
14564 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14565
14566         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14567         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14568         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14569         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14570
14571 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14572
14573         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14574         * gdbserver/low-lynx.c (myattach): Likewise.
14575         * gdbserver/low-nbsd.c (myattach): Likewise.
14576         * gdbserver/low-sim.c (myattach): Likewise.
14577         * gdbserver/low-sparc.c (myattach): Likewise.
14578         * gdbserver/low-sun3.c (myattach): Likewise.
14579
14580         * gdbserver/low-linux.c (myattach): New function.
14581
14582         * gdbserver/server.c (attach_inferior): New function.
14583         (main): Handle "--attach".
14584
14585 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14586
14587         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14588         maintainer.
14589
14590 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14591
14592         * c-typeprint.c (is_type_conversion_operator): Add additional
14593         check for non-conversion operators.
14594
14595 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14596
14597         * linux-proc.c: Add "info proc" command, a la procfs.c.
14598         (read_mapping): New function, abstract and re-use code.
14599         (linux_find_memory_regions): Use new func read_mapping.
14600         (linux_info_proc_cmd): New function, implement "info proc".
14601         (_initialize_linux_proc): Add new command "info proc".
14602
14603 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14604
14605         * symfile.c (generic_load): Use bfd_map_over_sections method
14606         instead of manipulating bfd structure members directly.
14607         (add_section_size_callback): New function, bfd sections callback
14608         used by generic_load.
14609         (load_sections_callback): New function, bfd sections callback
14610         used by generic_load.
14611
14612 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14613
14614         [Based on work by Jim Blandy]
14615         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14616         (builtin_type_vec128): Export.
14617         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14618         types.
14619         (builtin_type_vec128): New builtin type for 128 bit vector
14620         registers.
14621         (build_gdbtypes): Initialize builtin_type_v16qi and
14622         builtin_type_v8hi. Create the vec128 register builtin type
14623         structure.
14624         (build_builtin_type_vec128): New function.
14625         (_initialize_gdbtypes): Register builtin_type_v16qi and
14626         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14627         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14628         AltiVec register to new builtin type.
14629
14630 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14631
14632         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14633         to make_cv_type.
14634
14635 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14636
14637         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14638         CLEAN_UP_REGISTER_VALUE.
14639         * regcache.c (supply_register): Update only call.
14640
14641 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14642
14643         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14644         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14645         a29k-*-vxworks* targets as obsolete.
14646
14647 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14648
14649         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14650         until we can resolve portability issues.
14651         * gregset.h: Remove references to fpxregs.
14652         * gcore.c (gcore_command): Initialize note_sec to NULL.
14653
14654 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14655
14656         * signals.c (target_signal_to_name): Rewrite.  Only use
14657         signals[].name when in bounds and non-NULL.
14658
14659 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14660
14661         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14662         * signals.c (target_signal_to_name): Verify that SIG is within the
14663         bounds of the signals array.
14664
14665 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14666
14667         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14668
14669 2002-01-13  Keith Seitz  <keiths@redhat.com>
14670
14671         * stack.c (print_frame_info_base): Print the frame's pc
14672         only if when print_frame_info_listing_hook is not defined.
14673
14674 2002-01-13  Keith Seitz  <keiths@redhat.com>
14675
14676         * varobj.c (varobj_set_value): Make sure that there were no
14677         errors evaluating the object before attempting to set its
14678         value.
14679         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14680         so this offset adjustment is no longer necessary.
14681         (create_child): Don't set the error flag if the child is
14682         a CPLUS_FAKE_CHILD.
14683         (value_of_child): If value_fetch_lazy fails, return NULL
14684         so that callers will be notified that an error occurred.
14685         (c_value_of_variable): Delay check of variable's validity
14686         until later. We actually want all structs and unions to have
14687         the value "{...}".
14688         Do not return "???" for variables which could not be evaluated.
14689         This error condition must be returned to the caller so that it
14690         can get the error condition from gdb.
14691         (cplus_name_of_child): Adjust index for vptr before figuring
14692         out the name of the child.
14693         (cplus_value_of_child): If a child's (real) parent is not valid,
14694         don't even bother trying to give a value for it. Just return
14695         an error. Change all instances in this function.
14696         (cplus_type_of_child): If our parent is one of the "fake"
14697         parents, we need to get at the type of the real parent, and
14698         derive the child's true type using this information.
14699
14700 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14701
14702         From 2002-01-09 John Marshall <johnm@falch.net>:
14703         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14704         sources.redhat.com, and tweak some related URLs which had
14705         suffered from linkrot.
14706
14707 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14708
14709         From Jeff law:
14710         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14711         structures passed in registers.
14712
14713 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14714
14715         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14716         white space which prevented compilation.  Reported by DSK
14717         <dsk@student.unsw.edu.au>.
14718
14719 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14720
14721         * symfile.c (build_section_addr_info_from_section_tab):
14722         Use bfd access method instead of manipulating bfd directly.
14723         (syms_from_objfile): Ditto.
14724         (simple_overlay_update_1): Ditto.
14725         (simple_overlay_update): Ditto.
14726         (generic_load): Ditto.
14727         (overlay_unmapped_address): FIXME comment, bfd access methods.
14728         (sections_overlap): FIXME comment, bfd access methods.
14729         (pc_in_mapped_range): FIXME comment, bfd access methods.
14730         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14731         (section_is_mapped): FIXME comment, bfd access methods.
14732         (section_is_overlay): FIXME comment, bfd access methods.
14733
14734         * symfile.c (generic_load): Whitespace and long line cleanups.
14735         Remove duplicate variable, change several local variables to
14736         more appropriate data types.
14737         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14738
14739 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14740
14741         From Peter Schauer:
14742         * language.c (longest_local_hex_string_custom): Use phex_nz to
14743         convert NUM to a hex string.
14744
14745 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14746
14747         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14748         the function.
14749         Update Copyright year.
14750
14751 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14752
14753         * language.c (longest_raw_hex_string): Delete unused function.
14754
14755 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14756
14757         * MAINTAINERS (write-after-approval): Add myself.
14758         * dwarf2read.c (read_tag_string_type): Handling of
14759         DW_AT_byte_size.
14760         (read_tag_string_type): FORTRAN fix to prevent propagation of
14761         first string size.
14762         (set_cu_language): Handling of DW_LANG_Fortran95
14763
14764 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14765
14766         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14767         GETPID(inferior_ptid).
14768         (store_inferior_registers): Likewise.
14769
14770 2002-01-10  Jason Merrill  <jason@redhat.com>
14771
14772         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14773         Fix DW_OP_minus.
14774
14775 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14776
14777         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14778         and bfd/elf32-sh-nbsd.c.
14779
14780 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14781
14782         * NEWS: Mention --pid and corefile/proc-id behavior change.
14783
14784         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14785         * gcore.c: Include cli/cli-decode.h instead of command.h.
14786
14787         * main.c (captured_main): Add new command line option "--pid".
14788         If the second command line argument (following the symbol-file)
14789         begins with a digit, try to attach to it before trying to open
14790         it as a corefile.
14791         (print_gdb_help): Document the "--pid" argument.
14792
14793 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14794
14795         * completer.c (command_completer): New function.
14796
14797         * completer.h <command_completer>: Add prototype.
14798
14799         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14800         completer for the "help" command.
14801
14802 2002-01-09  Jason Merrill  <jason@redhat.com>
14803
14804         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14805
14806 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14807
14808         * i386-linux-nat.c (fill_fpxregset): Make global.
14809         (store_fpxregset): Ditto.
14810
14811         * gregset.h (gdb_fpxregset_t): Define.
14812         (supply_fpxregset): Prototype.
14813         (fill_fpxregset): Prototype.
14814
14815         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14816
14817 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14818
14819         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14820         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14821         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14822
14823 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14824
14825         * MAINTAINERS: Update target maintainer rules so that any
14826         Maintainer can approve a tested patch for a maintenance-only
14827         target.
14828
14829 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14830
14831         * MAINTAINERS (write-after-approval): Add myself.
14832
14833         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14834         IN_SIGTRAMP.
14835
14836 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14837
14838         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14839         real name of the executable, rather than the /proc name.
14840
14841 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14842
14843         Implement a "generate-core-file" command in gdb, save target state.
14844         * gcore.c: New file.  Implement new command 'generate-core-file'.
14845         Save a corefile image of the current state of the inferior.
14846         * linux-proc.c: Add linux-specific code for saving corefiles.
14847         * target.h (struct target_ops): Add new target vectors for saving
14848         corefiles; to_find_memory_regions and to_make_corefile_notes.
14849         (target_find_memory_regions): New macro.
14850         (target_make_corefile_notes): New macro.
14851         * target.c (update_current_target): Inherit new target methods.
14852         (dummy_find_memory_regions): New place-holder method.
14853         (dummy_make_corefile_notes): New place-holder method.
14854         (init_dummy_target): Initialize new dummy target vectors.
14855         * exec.c (exec_set_find_memory_regions): New function.
14856         Allow the exec_ops vector for memory regions to be taken over.
14857         (exec_make_note_section): New function, target vector method.
14858         * defs.h (exec_set_find_memory_regions): Export prototype.
14859         * procfs.c (proc_find_memory_regions): New function, corefile method.
14860         (procfs_make_note_section): New function, corefile method.
14861         (init_procfs_ops): Set new target vector pointers.
14862         (find_memory_regions_callback): New function.
14863         (procfs_do_thread_registers): New function.
14864         (procfs_corefile_thread_callback): New function.
14865         * sol-thread.c (sol_find_memory_regions): New function.
14866         (sol_make_note_section): New function.
14867         (init_sol_thread_ops): Initialize new target vectors.
14868         * inftarg.c (inftarg_set_find_memory_regions): New function.
14869         Allow to_find_memory_regions vector to be taken over.
14870         (inftarg_set_make_corefile_notes): New function.
14871         Allow to_make_corefile_notes vector to be taken over.
14872         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14873         interface layer if not target_has_execution (may be a corefile).
14874         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14875         * config/sparc/sun4sol2.mh: Ditto.
14876         * config/alpha/alpha-linux.mh: Ditto.
14877         * config/arm/linux.mh: Ditto.
14878         * config/i386/x86-64linux.mh: Ditto.
14879         * config/ia64/linux.mh: Ditto.
14880         * config/m68k/linux.mh: Ditto.
14881         * config/mips/linux.mh: Ditto.
14882         * config/powerpc/linux.mh: Ditto.
14883         * config/sparc/linux.mh: Ditto.
14884
14885 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14886
14887         * arm-linux-nat.c: Remove references to regcache.c internal data
14888         (registers[] and register_valid[]).
14889
14890 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14891
14892         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14893         so that attaching to a pid will automatically read the process's
14894         symbol file and shlibs.
14895         * Makefile.in: Add rule for linux-proc.o.
14896         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14897         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14898         * config/arm/linux.mh: Ditto.
14899         * config/i386/linux.mh: Ditto.
14900         * config/i386/x86-64linux.mh: Ditto.
14901         * config/ia64/linux.mh: Ditto.
14902         * config/m68k/linux.mh: Ditto.
14903         * config/mips/linux.mh: Ditto.
14904         * config/powerpc/linux.mh: Ditto.
14905         * config/sparc/linux.mh: Ditto.
14906
14907 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14908
14909         * win32-nat.c: Add i386-tdep.h dependency.
14910
14911 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14912
14913         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14914         instead of bfd_get_arch_size.  Don't bail out just because
14915         there's no exec_bfd.
14916
14917         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14918         * p-valprint.c (pascal_object_print_value): Ditto.
14919         * somread.c (som_symtab_read): Ditto.
14920         * symfile.c (simple_free_overlay_region_table): Ditto.
14921         * valops.c (value_assign): Ditto.
14922
14923         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14924         use tilde_expand and strerror for opening save-tracepoints file.
14925
14926         * thread-db.c (thread_db_new_objfile): Indendation fix.
14927
14928         * infptrace.c (GDB_MAX_ALLOCA): New define.
14929         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14930         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14931         can be overridden with whatever value is appropriate to the host).
14932         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14933         alloca to allocate potentially large buffer.
14934         * rs6000-nat.c (child_xfer_memory): Ditto.
14935         * symm-nat.c (child_xfer_memory): Ditto.
14936         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14937
14938 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14939
14940         From Nick Clifton  <nickc@redhat.com>
14941         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14942
14943 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14944
14945         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14946         Don't use exec_bfd if it's NULL.
14947
14948 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14949
14950         * valops.c (value_arg_coerce): Fix formatting.
14951
14952 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14953
14954         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14955         * gnu-nat.c: Ditto.
14956
14957 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14958
14959         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14960         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14961         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14962         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14963         z8k-coff have not been multi-arched.  Update z8k-coff build
14964         status.
14965
14966 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14967
14968         * MAINTAINERS: Mark a29k target as obsolete.
14969         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14970         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14971         comments.
14972         * NEWS: Note that a29k targets are obsolete.
14973         * a29k-tdep.c: Mark as obsolete.
14974         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14975         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14976         a29k-*-vxworks* targets as obsolete.
14977         * remote-adapt.c: Obsolete.
14978         * remote-eb.c: Obsolete.
14979         * remote-mm.c: Obsolete.
14980         * remote-udi.c: Obsolete.
14981         * config/a29k/a29k-udi.mt: Obsolete.
14982         * config/a29k/a29k.mt: Obsolete.
14983         * config/a29k/tm-a29k.h: Obsolete.
14984         * config/a29k/tm-vx29k.h: Obsolete.
14985         * config/a29k/vx29k.mt: Obsolete.
14986
14987 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14988
14989         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14990         with BFD_ENDIAN_BIG.
14991
14992 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14993
14994         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14995         * configure, config.in: Re-generate.
14996         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14997         * defs.h: Do not include <endian.h>.
14998
14999 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15000
15001         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15002         * config.in: Regenerate.
15003         * configure.in: Update copyright years.
15004         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15005         * configure: Regenerate.
15006         * i386bsd-nat.c: Update copyright years.
15007         (fill_gregset): Use regcache_collect.
15008         (fetch_inferior_registers): Only fetch integer registers
15009         if requested to do so.  Add support for XMM registers
15010         using PT_GETXMMREGS.
15011         (store_inferior_registers): Only store integer registers
15012         if requested to do so.  Add support for XMM registers
15013         using PT_SETXMMREGS.
15014         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15015         (store_inferior_registers): Remove.
15016         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15017         (fetch_elfcore_registers): New function.
15018         (i386nbsd_elfcore_fns): New.
15019         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15020         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15021         i386bsd-nat.o.
15022         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15023         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15024         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15025         * config/i386/tm-nbsd.h: Update copyright years.
15026         (HAVE_SSE_REGS): Define.
15027         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15028         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15029         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15030         (SIGCONTEXT_PC_OFFSET): Remove.
15031         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15032
15033 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15034
15035         * configure.tgt: Remove powerpc-*-macos* target.
15036         * config/m68k/xm-mpw.h: Delete file.
15037         * config/xm-mpw.h: Delete file.
15038         * ser-mac.c: Delete file.
15039         * mpw-make.sed: Delete file.
15040         * mpw-config.in: Delete file.
15041         * mac-xdep.c: Delete file.
15042         * mac-gdb.r: Delete file.
15043         * mac-defs.h: Delete file.
15044         * mac-nat.c: Delete file.
15045         * config/powerpc/macos.mh: Delete file.
15046         * config/powerpc/macos.mt: Delete file.
15047         * config/powerpc/nm-macos.h: Delete file.
15048         * config/powerpc/tm-macos.h: Delete file.
15049         * source.c (openp, open_source_file): Remove obsolete code.
15050         * top.c (gdb_readline): Ditto.
15051         * utils.c (query): Ditto.
15052         * event-top.c (display_gdb_prompt): Ditto.
15053         * Makefile.in (ser-mac.o): Delete obsolete target.
15054         * NEWS: Update.
15055
15056 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15057
15058         * defs.h (BIG_ENDIAN): Delete macro definition.
15059         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15060         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15061         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15062         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15063         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15064         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15065         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15066         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15067         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15068         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15069         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15070         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15071         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15072         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15073         * gdbarch.c: Re-generate.
15074
15075 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15076
15077         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15078         for core files.
15079
15080 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15081
15082         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15083
15084 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15085
15086         * value.h (value_ptr): Delete typedef.
15087
15088 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15089
15090         * i386nbsd-nat.c: Update copyright years.
15091         Include i386-tdep.h.
15092
15093 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15094
15095         * stabsread.c: Update copyright years.
15096
15097         From Debashis Mahata <debashis.mahata@wipro.com>:
15098         (read_struct_fields): Deal with Sun C compiler erroneous stab
15099         output for structs and unions.
15100         Fix PR gdb/269.
15101
15102 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15103
15104         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15105         prototype.
15106
15107 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15108
15109         * cp-abi.c: Fix whitespace.
15110         (baseclass_offset): New wrapper function.
15111         * cp-abi.h (baseclass_offset): Add prototype.
15112         (struct cp_abi_ops): Add baseclass_offset pointer.
15113
15114         * valops.c (vb_match): Move to...
15115         * gnu-v2-abi.c (vb_match): here.
15116         * valops.c (baseclass_offset): Move to...
15117         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15118
15119         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15120
15121         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15122         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15123         * hpacc-abi.c (init_hpacc_ops): Likewise.
15124
15125 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15126
15127         * valops.c (find_overload_match): Accept obj as a
15128         reference parameter.  Update it before returning.
15129         * value.h (find_overload_match): Update prototype.
15130         * eval.c (evaluate_subexp_standard): Pass object to
15131         find_overload_match by reference.
15132
15133 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15134
15135         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15136         register attribute from value declarations.
15137         * valops.c: Ditto.
15138         * value.h: Ditto.
15139         * scm-lang.c (scm_lookup_name): Ditto.
15140
15141 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15142
15143         Abstract the functionality of iterating over mapped memory
15144         regions into a general purpose iterator function.
15145         * procfs.c (iterate_over_mappings): New function, general purpose
15146         iterator for memory sections.
15147         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15148         (solib_mappings_callback): New function, callback for above.
15149         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15150         (info_mappings_callback): New function, callback for above.
15151
15152         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15153
15154 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15155
15156         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15157         * i386-tdep.c: Include "elf-bfd.h".
15158         (process_note_abi_tag_sections): New function.
15159         (i386_gdbarch_init): Add code to recognize various OS/ABI
15160         combinations.
15161
15162         * maint.c (_initialize_maint_cmds): Add missing \ in
15163         string-literal.
15164
15165 For older changes see ChangeLog-2001
15166 \f
15167 Local Variables:
15168 mode: change-log
15169 left-margin: 8
15170 fill-column: 74
15171 version-control: never
15172 End: