* cli/cli-cmds.c: Include readline.h.
[external/binutils.git] / gdb / ChangeLog
1 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
2
3         * cli/cli-cmds.c: Include readline.h.
4         (complete_command): Pass the start of the last word to
5         complete_line.
6
7 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
8
9         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10         argument, and change first argument to a CORE_ADDR.
11         * breakpoint.h (bpstat_stop_status): Update prototype.
12         * infrun.c (adjust_pc_after_break): Add a new comment.
13         (handle_inferior_event): Update calls to bpstat_stop_status.
14
15 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
16
17         * breakpoint.h: Update copyright years.
18
19 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
20
21         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
22         (bpstat_stop_status): Don't decrement PC.
23         * breakpoint.h (software_breakpoint_inserted_here_p): Add
24         prototype.
25         * infrun.c (adjust_pc_after_break): New function.
26         (handle_inferior_event): Call it, early.  Remove later references
27         to DECR_PC_AFTER_BREAK.
28         (normal_stop): Add commentary.
29
30 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
31
32         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
33         2004-01-27 double-free fix.
34
35 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
36
37         * sparc-tdep.c (sparc_fetch_wcookie): New function.
38         (sparc32_frame_prev_register): Handle StackGhost.
39         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
40
41 2004-01-29  Roland McGrath  <roland@redhat.com>
42
43         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
44         * configure: Regenerated.
45
46         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
47         * Makefile.in (procfs.o): Add dep.
48
49 2004-01-28  Andrew Cagney  <cagney@redhat.com>
50
51         * tui/tui-stack.h: Update copyright.
52         (struct frame_info): Add opaque declaration.
53         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
54         (tui_show_locator_content): Rename tuiShowLocatorContent.
55         (tui_show_frame_info): Rename tuiShowFrameInfo.
56         * tui/tui-stack.c: Update copyright.  Update references.
57         * tui/tui-winsource.c: Update references.
58         * tui/tui-win.c: Update references.
59         * tui/tui-layout.c: Update references.
60         * tui/tui-hooks.c: Update copyright, update references.
61         * tui/tui.c: Update copyright, update references.
62         * tui/tui-disasm.c: Update references.
63
64 2004-01-28  David Carlton  <carlton@kealia.com>
65
66         * dwarf2read.c (add_partial_structure): Use demangled name if
67         namespace equals "".
68
69 2004-01-27  Jim Blandy  <jimb@redhat.com>
70
71         Clean up misapplied patch:
72         * dwarf2read.c (determine_prefix): Change one of the two forward
73         declarations for 'determine_prefix_aux' to a declaration for this.
74         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
75         argument to 'die_specification'.
76
77         * dwarf2read.c (read_func_scope): Re-indent comment.
78
79 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
80
81         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
82         b->exp to NULL after freeing so that error during re-parsing or
83         evaluation of expressions associated with breakpoint don't
84         eventually lead to re-freeing of storage.
85         Committed by Andrew Cagney.
86
87 2004-01-27  Andrew Cagney  <cagney@redhat.com>
88
89         * source.c (ambiguous_line_spec): Delete undefined declaration.
90         * m32r-rom.c (m32r_set_board_address): Delete unused function.
91         (m32r_set_server_address, m32r_set_download_path): Ditto.
92         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
93
94 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
95
96         * dwarf2read.c: Update calls to changed and renamed functions, and
97         references to moved variables.
98
99         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
100         language, language_defn, list_in_scope, and ftypes members.
101         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
102         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
103         (baseaddr): Remove globals.
104
105         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
106         (set_cu_language, die_is_declaration, die_specification)
107         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
108         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
109         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
110         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
111
112         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
113         cu.list_in_scope.  Don't initialize cu_header_offset.
114         (add_partial_symbol): Add local baseaddr.
115         (psymtab_to_symtab_1): Add local baseaddr.  Use
116         objfile->section_offsets for consistency.  Don't initialize
117         cu_header_offset; do initialize cu.header.offset and
118         cu.list_in_scope.
119         (read_file_scope, read_func_scope, read_lexical_block_scope)
120         (dwarf_decode_lines, new_symbol): Add local baseaddr.
121
122 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
123
124         * PROBLEMS: Add gdb/1516.
125
126 2003-12-29  Robert Millan  <robertmh@gnu.org>
127
128         Patch committed by Andrw Cagney.
129         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
130         * configure.tgt: Match knetbsd*-gnu.
131
132 2004-01-26  Andrew Cagney  <cagney@redhat.com>
133
134         * breakpoint.c (catch_command_1): Delete #ifdef code.
135         (catch_fork_command_1): Delete #ifdef wrapper.
136         (catch_exec_command_1): Ditto.
137         (catch_load_command_1): Ditto.
138         (catch_unload_command_1): Ditto.
139
140         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
141         (catch_breakpoint): Delete #if0ed function.
142         (disable_catch_breakpoint): Ditto.
143         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
144         (disable_catch, enable_catch, delete_catch): Ditto.
145
146 2004-01-26  Andrew Cagney  <cagney@redhat.com>
147
148         * remote.c (echo_check, quit_flag): Delete variables.
149         (cisco_kernel_mode): Delete variable.
150         (minitelnet_return, tty_input, escape_count): Delete variables.
151         (remote_cisco_mode): Delete variable.
152         (remote_cisco_open, remote_cisco_close): Delete function.
153         (remote_cisco_mourn, remote_cisco_wait): Delete function.
154         (init_remote_cisco_ops): Delete function.
155         (_initialize_remote): Do not install "remote cisco" code.
156         (read_frame): Delete cisco specific code.
157         (remote_info_process): Delete function.
158         (remote_wait): Delete cisco specific code.
159         (remote_cisco_section_offsets): Delete function.
160         (remote_cisco_objfile_relocate): Delete function.
161         (remote_async_wait): Delete cisco specific code.
162         (minitelnet, readtty, readsocket): Delete function.
163
164 2004-01-26  Andrew Cagney  <cagney@redhat.com>
165
166         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
167         comments mentioning extract_returned_value_address.
168         * infcmd.c (print_return_value): Update.  Add comments on
169         extract_returned_value_address.
170         * stack.c (return_command): Add comments on
171         extract_returned_value_address.
172         * values.c: Update comment.
173         * m32r-tdep.c: Update comment.
174         * sparc-tdep.c: Update comment.
175         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
176         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
177         * sh64-tdep.c (sh64_gdbarch_init): Update.
178         * sh-tdep.c (sh_gdbarch_init): Update.
179         * s390-tdep.c (s390_gdbarch_init): Update.
180         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
181         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
182         * m68k-tdep.c (m68k_gdbarch_init): Update.
183         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
184         * m32r-tdep.c (m32r_gdbarch_init): Update.
185         * ia64-tdep.c (ia64_gdbarch_init): Update.
186         * h8300-tdep.c (h8300_gdbarch_init): Update.
187         * frv-tdep.c (frv_gdbarch_init): Update.
188         * arm-tdep.c (arm_gdbarch_init): Update.
189         * alpha-tdep.c (alpha_gdbarch_init): Update.
190
191 2004-01-26  Andrew Cagney  <cagney@redhat.com>
192
193         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
194         SYMBOL_LOCATION_FUNCS
195         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
196         "struct symbol_ops".
197         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
198         type to "struct symbol_ops".
199         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
200         (struct symbol): Replace ".aux_value.loc.funcs" and
201         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
202         (SYMBOL_OBJFILE): Delete macro.
203         (SYMBOL_LOCATION_FUNCS): Delete macro.
204         (SYMBOL_LOCATION_BATON): Update.
205         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
206         intead of SYMBOL_LOCATION_FUNCS.
207         * ax-gdb.c (gen_var_ref): Ditto.
208         * printcmd.c (address_info): Ditto.
209         * findvar.c (read_var_value): Ditto.
210         (symbol_read_needs_frame): Ditto.
211
212 2004-01-26  Andrew Cagney  <cagney@redhat.com>
213
214         * dwarf2read.c (read_func_scope): Document frame-base hack.
215
216 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
217
218         * infcmd.c (print_return_value): Plug memory leak; delete
219         ui_stream object.  Rename argument `structure_return' to
220         `struct_return'.
221
222 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
223
224         * infcmd.c (print_return_value): Wrap long lines.
225         (finish_command_continuation, finish_command): Remove unused
226         variable `funcaddr'.  Fix some coding-standards problems.
227
228         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
229         SECT_SIZE is large enough, not wheter it's exactly the right size.
230         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
231         TDEP->fpregset to zero.
232
233         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
234         floating-point registers for traditional NetBSD core files.
235         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
236         TDEP->sizeof_fpregset here.
237
238 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
239
240         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
241         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
242         function with code split out from
243         sparc32nbsd_sigcontext_frame_cache.
244         (sparc32nbsd_sigcontext_frame_cache): Use
245         sparc32nbsd_sigcontext_saved_regs.
246         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
247         OpenBSD.
248         * sparcobsd-tdep.c: New file.
249         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
250         (sparcobsd-tdep.o): New dependency.
251         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
252         * config/sparc/obsd.mt: New file.
253
254         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
255         TDEP->fpregset to be initialized to enable core file register
256         sets.
257
258 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
259
260         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
261         Add opaque declarations.
262         (sparc64nbsd_sigcontext_saved_regs): New prototype.
263         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
264         function with code split out from
265         sparc64nbsd_sigcontext_frame_cache.
266         (sparc64nbsd_sigcontext_frame_cache): Use
267         sparc64nbsd_sigcontext_saved_regs.
268         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
269         OpenBSD.
270         * sparc64obsd-tdep.c: New file.
271         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
272         (sparc64obsd-tdep.o): New dependency.
273         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
274         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
275         * config/sparc/obsd64.mt: New file.
276
277         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
278         read the instruction at PC.
279
280         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
281         value of GDB_OSABI_DEFAULT.
282         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
283         instead of GDB_OSABI_NETBSD_AOUT.
284
285 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
286
287         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
288         copyright.
289
290 2004-01-23  Andrew Cagney  <cagney@redhat.com>
291
292         * printcmd.c (display_command): Replace tui_set_display call with
293         tui_set_layout_for_display_command.
294         * tui/tui.h (enum tui_win_type): Define.
295         (tui_set_layout): Delete declaration.
296         (tui_set_layout_for_display_command): Rename set_tui_layout.
297         * tui/tui-data.h (enum tui_layout_type): Define.
298         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
299         "tui.h".
300         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
301         (tui_default_win_height): Rename tuiDefaultWinHeight.
302         (tui_default_win_viewport_height): Rename
303         tuiDefaultWinViewportHeight.
304         (tui_set_layout): RenametuiSetLayout.
305         * tui/tui-layout.c: Update references.
306         * tui/tui.c: Update references.
307         * tui/tui-disasm.c: Update references.
308
309 2004-01-23  David Carlton  <carlton@kealia.com>
310
311         Partial workaround for PR c++/1511:
312         * cp-namespace.c: Include frame.h.
313         (cp_lookup_transparent_type): New
314         (cp_lookup_transparent_type_loop): New.
315         * cp-support.h: Declare cp_lookup_transparent_type.
316         * symtab.c (basic_lookup_transparent_type): Renamed from
317         lookup_transparent_type.
318         (lookup_transparent_type): Replace old body by a call to
319         current_language->la_lookup_transparent_type.
320         * symtab.h: Update copyright.  Declare
321         basic_lookup_transparent_type.
322         * language.h: Update copyright.
323         (struct language_defn): Add la_lookup_transparent_type.
324         * language.c: Update copyright.
325         (unknown_language_defn): Add basic_lookup_transparent_type.
326         (auto_language_defn): Add basic_lookup_transparent_type.
327         (local_language_defn): Add basic_lookup_transparent_type.
328         * ada-lang.c: Update copyright.
329         (ada_language_defn): Add basic_lookup_transparent_type.
330         * c-lang.c: Update copyright.
331         (c_language_defn): Add basic_lookup_transparent_type.
332         (cplus_language_defn): Add basic_lookup_transparent_type.
333         (asm_language_defn): Add basic_lookup_transparent_type.
334         (minimal_language_defn): Add basic_lookup_transparent_type.
335         * f-lang.c: Update copyright.
336         (f_language_defn): Add basic_lookup_transparent_type.
337         * jv-lang.c: Update copyright.
338         (java_language_defn): Add basic_lookup_transparent_type.
339         * m2-lang.c: Update copyright.
340         (m2_language_defn): Add basic_lookup_transparent_type.
341         * objc-lang.c: Update copyright.
342         (objc_language_defn): Add basic_lookup_transparent_type.
343         * p-lang.c: Update copyright.
344         (p_language_defn): Add basic_lookup_transparent_type.
345         * scm-lang.c: Update copyright.
346         (scm_language_defn): Add basic_lookup_transparent_type.
347         * Makefile.in (cp-namespace.o): Depend on frame.h.
348
349 2004-01-23  David Carlton  <carlton@kealia.com>
350
351         Patch for PR c++/1520:
352         * dwarf2read.c (read_func_scope): Set processing_current_prefix
353         properly if we have a specification die.
354         (determine_prefix_aux): Rename from determine_prefix.
355         (determine_prefix): Like the old determine_prefix, but never
356         returns NULL.
357
358 2004-01-23  Theodore A. Roth  <troth@openavr.org>
359
360         * avr-tdep.c: Update copyright.
361         (avr_iaddr_p): Delete unused function.
362         (avr_saddr_p): Delete unused function.
363
364 2004-01-23  David Carlton  <carlton@kealia.com>
365
366         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
367         Fix for PR symtab/1534.
368
369 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
370
371         * NEWS (New native configurations): Mention OpenBSD/sparc and
372         OpenBSD/sparc64.
373         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
374         * configure.host: Likewise.
375         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
376         handler for OpenBSD.
377         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
378
379 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
380
381         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
382         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
383
384         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
385         * cli/cli-cmds.c (shell_escape): Likewise.
386
387         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
388         OpenBSD .note.openbsd.ident sections.
389
390 2004-01-22  David Carlton  <carlton@kealia.com>
391
392         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
393         get_scope_pc_bounds.
394         (read_file_scope): Ditto.
395         (get_scope_pc_bounds): New function, produced by extracting code
396         from the above two functions, consolidating it, and adding support
397         for DW_TAG_namespace.
398
399 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
400
401         * osabi.c (MAX_NOTESZ): New define.
402         (check_note): New function.
403         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
404         check_note.
405
406 2004-01-21  Roland McGrath  <roland@redhat.com>
407
408         * MAINTAINERS (write after approval): Add myself.
409
410 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
411
412         * utils.c (init_page_info): Move declarations of `rows' and
413         `cols' before the __GO32__-specific code.  Move the closing brace
414         outside the #ifdef __GO32__..#endif block.
415         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
416
417 2004-01-21  Paul Brook  <paul@codesourcery.com>
418
419         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
420         BPSTAT_WHAT_CHECK_SHLIBS.
421
422 2004-01-21  Paul Brook  <paul@codesourcery.com>
423
424         * MAINTAINERS: Add myself to write-after-approval.
425
426 2004-01-20  Andrew Cagney  <cagney@redhat.com>
427
428         * ax-gdb.c (print_axs_value): Delete unused function.
429         * jv-lang.c (java_lookup_type): Delete unused function.
430         * cli/cli-dump.c (dump_filetype): Delete unused function.
431         * remote-mips.c (remote_mips_insert_hw_breakpoint)
432         (remote_mips_remove_hw_breakpoint): Delete unused functions.
433         (mips_getstring): Delete unused function.
434         (pmon_insert_breakpoint): Delete #if0ed function.
435         (PMON_MAX_BP): Delete #if0ed MACRO.
436         (mips_pmon_bp_info): Delete #if0ed variable.
437         (pmon_remove_breakpoint): Delete #if0ed function.
438         * monitor.c (monitor_write_even_block): Delete unused function.
439         (monitor_write_memory_block): Delete #if0ed code.
440         * dink32-rom.c (dink32_load): Delete unused function.
441         (_initialize_dink32_rom): Delete #if0ed code.
442         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
443
444         * tui/tui-command.c: Update references.
445         * tui/tui-io.c: Update references.
446         * tui/tui-command.h: Update copyright.
447         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
448
449         * source.c (ambiguous_line_spec): Delete never-defined function.
450         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
451         * gdbtypes.c (add_name, add_mangled_type): Ditto.
452         * cli/cli-cmds.c (validate_comname): Ditto.
453
454         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
455         "tui-data.h".
456         (tui_set_disassem_content): Rename tuiSetDisassemContent.
457         (tui_show_disassem): Rename tuiShowDisassem.
458         (tui_show_disassem_and_update_source): Rename
459         tuiVerticalDisassemScroll.
460         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
461         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
462         * tui/tui.h: Update copyright.
463         (enum tui_status): Define.
464         * tui/tui-data.h (enum tui_scroll_direction): Define.
465         * tui/tui-disasm.c: Update copyright.  Update references.
466         * tui/tui-winsource.c:  Update copyright.  Update references.
467         * tui/tui-win.c: Update references.
468         * tui/tui-layout.c: Update references.
469
470 2004-01-20  Andrew Cagney  <cagney@redhat.com>
471
472         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
473         sym2 to start of block.
474
475 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
476
477         * MAINTAINERS: Delete mmalloc.
478         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
479         * NEWS: Mention removal of --with-malloc.
480         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
481         * config.in: Regenerate.
482         * configure: Regenerate.
483         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
484         USE_MMALLOC, MMCHECK_FORCE.
485         * gdbinit.in: Remove mmalloc.
486         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
487         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
488         * config/i386/go32.mh: Likewise.
489         * config/i386/interix.mh: Likewise.
490         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
491
492 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
493
494         * linespec.c (decode_variable, symtab_from_filename):  Call
495         error_silent with error message instead of throwing an exception
496         directly.
497         * defs.h (error_silent, error_output_message): Add prototypes.
498         (catch_exceptions_with_msg): Ditto.
499         * utils.c (error_silent, error_output_message): New functions.
500         * top.c (catch_exceptions_with_msg): New function.
501
502 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
503
504         * mi/mi-cmds.h (enum print_values): Add definition.
505
506         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
507         type and value for simple data types and just the name and type
508         for complex ones, if required.
509
510         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
511         children, if required.
512
513 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
514
515         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
516         unused declarations.
517
518 2004-01-19  Andrew Cagney  <cagney@redhat.com>
519
520         * top.h (mapped_symbol_files): Delete declaration.
521         * main.c (captured_main): Delete option "m" and "mapped".
522         * objfiles.c (mapped_symbol_files): Delete variable.
523         * symfile.c (symbol_file_command): Delete mmap code.
524         (symbol_file_add_with_addrs_or_offsets): Ditto.
525         (add_symbol_file_command, reread_separate_symbols): Ditto.
526         * objfiles.h (OBJF_MAPPED): Delete.
527         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
528         (free_objfile) [USE_MMALLOC]: Ditto.
529         (open_existing_mapped_file): Delete function.
530         (open_mapped_file): Delete function.
531         (map_to_file): Delete function.
532
533 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
534
535         * infrun.c (step_into_function): Account for possible breakpoint
536         adjustment when computing ``stop_func_start''.
537
538 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
539
540         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
541         the region size against the size of a pointer, not the size of
542         a register as given by DEPRECATED_REGISTER_SIZE.
543
544 2004-01-19  Andrew Cagney  <cagney@redhat.com>
545
546         * tui/tui-regs.h: Include "tui-data.h".
547         (tuiFirstRegElementNoInLine): Delete declaration.
548         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
549         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
550         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
551         (tui_calculate_regs_column_count): Rename
552         tuiCalculateRegsColumnCount.
553         (tui_check_register_values): Rename tuiCheckRegisterValues.
554         (tui_show_registers): Rename tuiShowRegisters.
555         (tui_display_registers_from_line): Rename
556         tuiDisplayRegistersFromLine.
557         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
558         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
559         (tui_first_reg_element_no_inline): Rename
560         tuiFirstRegElementNoInLine.
561         * tui/tui-data.h: Update copyright.
562         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
563         * tui/tui-windata.c: Update copyright, update references.
564         * tui/tui-regs.c: Update copyright, update references.
565         * tui/tui-win.c: Update copyright, update references.
566         * tui/tui-layout.c: Update copyright, update references.
567
568 2004-01-18  Andrew Cagney  <cagney@redhat.com>
569
570         * tui/tui-io.c: Update copyright.
571         (key_is_end_sequence, key_is_backspace): New functions.
572         (key_is_command_char, key_is_start_sequence): New function.
573         (tui_getc): Update references.
574         * tui/tui-io.h: Update copyright.
575         (m_tuiStartNewLine): Delete macro.
576         (m_isBackspace, m_isDeleteChar): Delete macros.
577         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
578         (m_isNextPage, m_isPrevPage): Delete macros.
579         (m_isLeftArrow, m_isRightArrow): Delete macros.
580         (m_isXdbStyleCommandChar): Delete macro.
581         (key_is_start_sequence): Declare, replace m_isStartSequence.
582         (key_is_end_sequence): Declare, replace m_isEndSequence.
583         (key_is_backspace): Declare ,replace m_isBackspace.
584         (key_is_command_char): Declare, replace m_isCommandChar.
585         * tui/tui-command.c: Update copyright.
586         (tuiDispatchCtrlChar): Update references.
587
588         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
589         tuiSourceWin.h.
590
591         * tui/tui-command.c: Rename tui/tuiCommand.c.
592         * tui/tui-command.h: Rename tui/tuiCommand.h.
593         * tui/tui-data.c: Rename tui/tuiData.c.
594         * tui/tui-data.h: Rename tui/tuiData.h.
595         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
596         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
597         * tui/tui-io.c: Rename tui/tuiIO.c.
598         * tui/tui-io.h: Rename tui/tuiIO.h.
599         * tui/tui-layout.c: Rename tui/tuiLayout.c.
600         * tui/tui-layout.h: Rename tui/tuiLayout.h.
601         * tui/tui-regs.c: Rename tui/tuiRegs.c.
602         * tui/tui-regs.h: Rename tui/tuiRegs.h.
603         * tui/tui-source.c: Rename tui/tuiSource.c.
604         * tui/tui-source.h: Rename tui/tuiSource.h.
605         * tui/tui-stack.c: Rename tui/tuiStack.c.
606         * tui/tui-stack.h: Rename tui/tuiStack.h.
607         * tui/tui-win.c: Rename tui/tuiWin.c.
608         * tui/tui-win.h: Rename tui/tuiWin.h.
609         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
610         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
611         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
612         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
613         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
614         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
615         * tui/tui-file.c: Update includes.
616         * tui/tui-hooks.c: Update includes.
617         * tui/tui-interp.c: Update includes.
618         * tui/tui.c: Update includes.
619         * Makefile.in: Update all tui/ dependencies.
620         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
621
622         * Makefile.in: Update copyright.  Update dependencies.
623
624         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
625         problem.
626
627 2004-01-18  Andrew Cagney  <cagney@redhat.com>
628
629         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
630         instead of register_gdbarch_init.
631
632         * remote-sds.c (tohex): Delete unused function.  Update copyright.
633         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
634         * v850-tdep.c (v850_register_virtual_size): Ditto.
635         * target.c (normal_target_post_startup_inferior): Ditto.
636         * source.c (ambiguous_line_spec): Ditto.
637         * remote.c (adapt_remote_get_threadinfo): Ditto.
638         * mi/mi-out.c (out_field_fmt): Ditto.
639         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
640         (output_control_change_notification): Ditto.
641         * m68k-tdep.c (m68k_register_byte): Ditto.
642         (m68k_remote_breakpoint_from_pc): Ditto.
643         * ui-out.c (init_ui_out_state): Delete unused declaration.
644         * stabsread.c (search_value): Ditto.
645         * mi/mi-cmd-env.c (env_cli_command): Ditto.
646         * maint.c (print_section_table): Ditto.
647         * infrun.c (set_follow_fork_mode_command): Ditto.
648
649 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
650
651         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
652         DW_CFA_def_cfa_exporession.  Add support for
653         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
654         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
655
656 2004-01-18  Andrew Cagney  <cagney@redhat.com>
657
658         * ocd.c: Update copyright.
659         (bdm_read_register_command): Delete unused function.
660         (_initialize_remote_ocd): Delete commented out reference.
661         (get_quoted_char, reset_packet): Delete #if0ed function.
662         (output_packet, put_quoted_char): Delete #if0ed function.
663         (stu_put_packet, stu_get_packet): Delete #if0ed function.
664         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
665         (BDM_BREAKPOINT): Delete #if0ed macro.
666         (remote_timeout): Delete #if0ed variable.
667
668 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
669
670         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
671         (core-sol2.o): Remove dependency.
672         * core-sol2.c: Remove file.
673
674 2004-01-17  Andrew Cagney  <cagney@redhat.com>
675
676         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
677         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
678         enums.
679
680 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
681
682         * remote.c: Update copyright years.
683
684 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
685
686         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
687
688 2004-01-17  Andrew Cagney  <cagney@redhat.com>
689
690         * mdebugread.c: Update copyright.
691         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
692         (parse_type, parse_procedure): Ditto.
693         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
694
695         * cris-tdep.c (cris_store_struct_return): Put back accidently
696         deleted function.
697
698         * gdbarch.sh: Update copyright year.
699         * gdbarch.h, gdbarch.c: Re-generate.
700
701 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
702
703         Suggested by George Anzinger.
704         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
705         correct stack offset.  Include unknown opcode numbers in the error
706         message.
707
708 2004-01-17  Andrew Cagney  <cagney@redhat.com>
709
710         * x86-64-tdep.c (x86_64_init_abi): No need to clear
711         extract_struct_value_address, i386 does not set it.
712         * sparc64-tdep.c (sparc64_init_abi): Do not set
713         extract_struct_value_address, never called.
714         (sparc64_extract_struct_value_address): Delete function.
715         * m68hc11-tdep.c: Update copyright.
716         (m68hc11_gdbarch_init): Delete redundant assignment of
717         extract_struct_value_address.
718         * i386-tdep.c: Update copyright.
719         (i386_gdbarch_init): Do not set extract_struct_value_address,
720         never called.
721         (i386_extract_struct_value_address): Delete function.
722         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
723         extract_struct_value_address, never called.
724         (sparc32_extract_struct_value_address): #if 0 function.  Add
725         comments explaining its future.
726
727 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
728
729         * arm-tdep.c (arm_write_pc): New function.
730         (arm_gdbarch_init): Call set_gdbarch_write_pc.
731
732 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
733
734         * breakpoint.c (must_shift_inst_regs): Delete.
735         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
736         and SHIFT_INST_REGS.
737         * infcmd.c (step_1, step_1_continuation): Delete references to
738         SHIFT_INST_REGS.
739         * infrun.c (keep_going): Likewise.
740         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
741         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
742
743 2004-01-17  Andrew Cagney  <cagney@redhat.com>
744
745         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
746         * gdbarch.h, gdbarch.c: Re-generate.
747         * infcmd.c (print_return_value): Delete reference to
748         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
749
750         * cris-tdep.c (cris_gdbarch_init): Do not set
751         deprecated_extract_struct_value_address.
752
753         * xstormy16-tdep.c: Update copyright.
754         (xstormy16_extract_struct_value_address): Update to current
755         extract struct value address interface.
756         (xstormy16_gdbarch_init): Set extract_struct_value_address.
757         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
758         current extract struct value address interface.
759         (sh64_gdbarch_init): Set extract_struct_value_address.
760
761         * cris-tdep.c: Update copyright.
762         (cris_extract_struct_value_address): Delete function.
763         (struct_return_address): Delete variable.
764         (cris_store_struct_return): Do not set struct_return_address.
765
766         * mcore-tdep.c: Update copyright.
767         (mcore_extract_struct_value_address): Delete function.  Update
768         comments.
769         (mcore_gdbarch_init): Update.
770         * mn10300-tdep.c: Update copyright.
771         (mn10300_extract_struct_value_address): Delete function.
772         (mn10300_gdbarch_init): Update.
773         * v850-tdep.c: Update copyright.
774         (v850_extract_struct_value_address): Delete.
775         (v850_gdbarch_init): Update.
776         * ns32k-tdep.c: Update copyright.
777         (ns32k_extract_struct_value_address): Delete.
778         (ns32k_gdbarch_init): Update.
779         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
780         (hppa_gdbarch_init): Update.
781         * vax-tdep.c: Update copyright.
782         (vax_extract_struct_value_address): Delete.
783         (vax_gdbarch_init): Update.
784
785         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
786         * gdbarch.h, gdbarch.c: Re-generate.
787         * procfs.c (procfs_fetch_registers): Delete reference to
788         DEPRECATED_NPC_REGNUM.
789         (procfs_store_registers): Ditto.
790         * regcache.c (generic_target_write_pc): Simplify.
791         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
792
793         * core-sol2.c (fetch_core_registers): Replace
794         DEPRECATED_NPC_REGNUM with equivalent tdep value.
795
796         * hppa-tdep.c: Update copyright year.
797         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
798         NPC_REGNUM.
799         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
800
801         * mips-tdep.c (mips_write_pc): New function.
802         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
803         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
804         (mips_find_saved_regs, mips_software_single_step: Ditto.
805         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
806         mips_init_extra_frame_info, mips_pop_frame): Ditto.
807
808 2004-01-17  Andrew Cagney  <cagney@redhat.com>
809
810         * mips-tdep.c: Re-indent.  Group functions by ABI.
811
812 2004-01-17  Andrew Cagney  <cagney@redhat.com>
813
814         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
815         * gdbarch.c: Re-generate.
816         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
817         DECR_PC_AFTER_BREAK to zero.
818         * vax-tdep.c (vax_gdbarch_init): Ditto.
819         * v850-tdep.c (v850_gdbarch_init): Ditto.
820         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
821         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
822         * sh-tdep.c (sh_gdbarch_init): Ditto.
823         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
824         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
825         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
826         * mips-tdep.c (mips_gdbarch_init): Ditto.
827         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
828         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
829         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
830         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
831         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
832         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
833         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
834         * frv-tdep.c (frv_gdbarch_init): Ditto.
835         * cris-tdep.c (cris_gdbarch_init): Ditto.
836         * avr-tdep.c (avr_gdbarch_init): Ditto.
837         * arm-tdep.c (arm_gdbarch_init): Ditto.
838         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
839
840 2004-01-17  J. Brobecker  <brobecker@gnat.com>
841
842         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
843         Delete, no longer used.
844         (read_subrange_type): New function, mostly extracted from
845         read_array_type().
846         (read_array_type): Replace extracted code by call to
847         read_subrange_type().
848         (dwarf2_get_attr_constant_value): New function.
849         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
850         (add_partial_symbol): Likewise.
851         (process_die): Likewise.
852         (new_symbol): Likewise.
853         (read_type_die): Likewise.
854
855 2004-01-16  Andrew Cagney  <cagney@redhat.com>
856
857         * symfile.c: Update copyright year.
858         (compare_symbols): Delete unused function.
859         * stabsread.c: Update copyright year.
860         (lrs_general_complaint): Delete unused function.
861         (ref_search_value): Ditto.
862         (get_substring): Delete declaration.
863         * sh64-tdep.c: Update copyright year.
864         (sh64_get_gdb_regnum): Delete unused function.
865         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
866         Delete unused function.
867
868 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
869
870         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
871         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
872
873 2004-01-16  Andrew Cagney  <cagney@redhat.com>
874
875         Changes from Peter Schauer.
876         * rs6000-tdep.c: Update copyright year.
877         (rs6000_push_dummy_call): Update the stack pointer before
878         accessing the corresponding stack region.
879         * rs6000-nat.c: Update copyright year.
880         (set_host_arch): Set "info.abfd" to "exec_bfd".
881
882 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
883
884         * blockframe.c: Update copyright year.
885         (inside_entry_func): Don't treat a zero PC specially.
886
887 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
888
889         * gcore.c (gcore_copy_callback): Use paddr_d to print size
890         variable.
891         (gcore_create_callback): Ditto.  Skip any memory segment that has
892         no permissions set.
893
894 2004-01-14  David Carlton  <carlton@kealia.com>
895
896         Change symbols for C++ nested types to contain the fully qualified
897         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
898         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
899         c++/895.
900         * c-exp.y (qualified_type): Handle types nested within classes.
901         * cp-namespace.c: Update comments.
902         (cp_set_block_scope): Delete #if 0.
903         (cp_lookup_nested_type): Handle types nested within classes.
904         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
905         when appropriate.
906         (add_partial_symbol): Add the name of the enclosing namespace to
907         types.
908         (pdi_needs_namespace): New.
909         (add_partial_namespace): Tweak comment.
910         (add_partial_structure): New.
911         (psymtab_to_symtab_1): Initialize processing_current_prefix
912         here...
913         (process_die): instead of here.
914         (read_structure_scope): Try to figure out the name of the class or
915         namespace that the structure might be defined within.
916         (read_enumeration): Generate fully-qualified names, if possible.
917         (read_namespace): Don't set name to NULL.
918         (die_specification): New.
919         (new_symbol): Generate fully-qualified names for types.
920         (read_type_die): Determine appropriate prefix.
921         (determine_prefix): New.
922         (typename_concat): New.
923         (class_name): New.
924         * valops.c (value_aggregate_elt): Pass NOSIDE to
925         value_struct_elt_for_reference.
926         (value_struct_elt_for_reference): Make static, add NOSIDE
927         parameter, call value_maybe_namespace_elt as a last resort.
928         (value_namespace_elt): Break out code into
929         value_maybe_namespace_elt.
930         (value_maybe_namespace_elt): New.
931
932 2004-01-12  Andrew Cagney  <cagney@redhat.com>
933
934         * mips-tdep.c (mips_convert_register_p): Handle both raw and
935         cooked floating-point registers.
936         (mips_gdbarch_init): Set convert_register_p, register_to_value,
937         and value_to_register.
938
939 2004-01-13  Andrew Cagney  <cagney@redhat.com>
940
941         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
942         * gdbarch.c: Re-generate.
943         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
944         FUNCTION_START_OFFSET.
945         * v850-tdep.c (v850_gdbarch_init): Ditto.
946         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
947         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
948         * sh-tdep.c (sh_gdbarch_init): Ditto.
949         * s390-tdep.c (s390_gdbarch_init): Ditto.
950         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
951         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
952         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
953         * mips-tdep.c (mips_gdbarch_init): Ditto.
954         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
955         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
956         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
957         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
958         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
959         * i386-tdep.c (i386_gdbarch_init): Ditto.
960         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
961         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
962         * frv-tdep.c (frv_gdbarch_init): Ditto.
963         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
964         * cris-tdep.c (cris_gdbarch_init): Ditto.
965         * avr-tdep.c (avr_gdbarch_init): Ditto.
966         * arm-tdep.c (arm_gdbarch_init): Ditto.
967         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
968
969 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
970
971         * infrun.c (follow_fork_mode_ask): Remove.
972         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
973         (follow_fork): Simplify and remove internal error for
974         follow_fork_mode_ask.
975         (_initialize_infrun): Update "set follow-fork-mode" help text.
976
977 2004-01-13  Andrew Cagney  <cagney@redhat.com>
978
979         * configure.in: Update copyright year.
980         (build_warnings): Add -Wunused-label.
981         * configure: Re-generate.
982
983 2004-01-12  Andrew Cagney  <cagney@redhat.com>
984
985         * exec.h (exec_ops): Make "extern".
986
987         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
988         the function is void.
989         (mips_pseudo_register_write): Ditto.
990
991 2004-01-12  Andrew Cagney  <cagney@redhat.com>
992
993         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
994         call.  Never defined.
995         * sparc-tdep.h (struct frame_info): Add opaque declaration.
996         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
997         (struct sparc_gregset, struct regcache): Ditto.
998         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
999
1000 2004-01-12  Andrew Cagney  <cagney@redhat.com>
1001
1002         * mi/ChangeLog: Delete file.  Renamed to ...
1003         * mi/ChangeLog-1999-2003: New file.
1004         * tui/ChangeLog: Delete file.  Renamed to ...
1005         * tui/ChangeLog-1998-2003: New file.
1006
1007 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
1008
1009         * sparc64nbsd-tdep.c: Include "regset.h".
1010         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
1011         Remove variables.
1012         (fetch_core_registers): Remove function.
1013         (sparc64nbsd_core_fns): Remove variable.
1014         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
1015         functions.
1016         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
1017         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
1018         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
1019
1020         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
1021         sparc_extract_struct_value_address.
1022         (sparc32_gdbarch_init): Set extract_struct_value_address.
1023         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
1024         function.
1025         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
1026         return_value_on_stack.
1027
1028         * NEWS: Mention that %cs and %ss have been added to the AMD64
1029         configurations
1030
1031         * frame.c: Update copyright year.
1032         (get_prev_frame): Improve comment.
1033
1034         * sparc64fbsd-tdep.c: Include "regset.h".
1035         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
1036         Remove variables.
1037         (fetch_core_registers): Remove function.
1038         (sparc64fbsd_core_fns): Remove variable.
1039         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
1040         functions.
1041         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
1042         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
1043         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
1044
1045         * sparcnbsd-tdep.c: Include "regset.h".
1046         (fetch_core_registers): Remove function.
1047         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
1048         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
1049         functions.
1050         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
1051         TDEP->fpregset.
1052         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
1053
1054         * sparc-tdep.h (struct regset): Provide opaque declaration.
1055         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
1056         fpregset and sizeof_fpregset members.
1057         * sparc-tdep.c (struct regset): Provide opaque declaration.
1058         (sparc_regset_from_core_section): New function.
1059         (sparc32_gdbarch_init): Initialize TDEP->gregset,
1060         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
1061         Set regset_from_core_section when appropriate.
1062
1063 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
1064
1065         * x86-64-tdep.c (amd64_non_pod_p): New function.
1066         (amd64_classify_aggregate): Return class memory for non-POD
1067         C++ structure types.
1068
1069         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
1070         argument.  Use it to reserve a register if necessary.
1071         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
1072         amd64_push_arguments.
1073
1074         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
1075
1076         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
1077         register numbers in comments.
1078         * x86-64-tdep.h: Update copyright year.
1079         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
1080         Adjust for addition of %cs and %ss.
1081         * amd64fbsd-nat.c: Update copyright year.
1082         (reg_offset): Add register offsets for %cs and %ss.
1083         * amd64fbsd-tdep.c: Update copyright year.
1084         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
1085         (amd64fbsd_sc_reg_offset): Likewise.
1086         * x86-64-linux-nat.c: Update copyright year.
1087         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
1088         and %ss.
1089         * amd64nbsd-nat.c: Update copyright year.
1090         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
1091         * amd64nbsd-tdep.c: Update copyright year.
1092         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
1093         * x86-64-linux-tdep.c: Update copyright year.
1094         (user_to_gdb_regmap): Add mapping for %cs and %ss.
1095         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
1096         * regformats/reg-x86-64.dat: Add %cs and %ss.
1097
1098         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
1099         variables to prevent long lines.  Update comments to reflect
1100         reality.
1101
1102 2004-01-09  David Carlton  <carlton@kealia.com>
1103
1104         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
1105         * dwarf2read.c (read_namespace): Pull out name-generating code
1106         into namespace_name. Rename previous_namespace to previous_prefix
1107         and processing_current_namespace to processing_current_prefix..
1108         (namespace_name): New function.
1109         (add_partial_symbol): Substitute uses of pdi->name with
1110         actual_name.
1111         * cp-support.h: Rename processing_current_namespace to
1112         processing_current_prefix.
1113         Update copyright year.
1114         * cp-namespace.c: Rename processing_current_namespace to
1115         processing_current_prefix.
1116         Update copyright year.
1117
1118 2004-01-09  Andrew Cagney  <cagney@redhat.com>
1119
1120         * jv-valprint.c, ser-unix.c: Add missing copyright years.
1121
1122 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
1123
1124         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
1125         complaining.
1126         (process_one_symbol): Deal with N_PATCH stabs.
1127
1128 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
1129
1130         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
1131         ifdeffed code.
1132         Update copyright year.
1133
1134 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
1135
1136         * config/pa/tm-hppa.h: Update extern declarations for
1137         hppa32_hpux_frame_saved_pc_in_sigtramp,
1138         hppa32_hpux_frame_base_before_sigtramp, and
1139         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
1140
1141 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
1142
1143         * config/pa/tm-hppah.h: Update copyright years.
1144
1145 2004-01-08  Andrew Cagney  <cagney@redhat.com>
1146
1147         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
1148         (mips_o32_reg_struct_has_addr): Delete function.
1149         (mips_gdbarch_init): Update.
1150         (mips_extract_struct_value_address): Delete function.
1151
1152 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
1153
1154         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
1155         reality.
1156
1157 2004-01-07  Andrew Cagney  <cagney@redhat.com>
1158
1159         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
1160         architecture's elf flags (when available).
1161
1162         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
1163         FPU to the start, check the MIPS FPU when looking for an old
1164         architecture.
1165         (set_mipsfpu_single_command): Update the architecture.
1166         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
1167
1168         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
1169         (mips_mask_address_p): Add "tdep" parameter.
1170         (show_mask_address, mips_addr_bits_remove): Update.
1171         (mips_dump_tdep): Update.
1172         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
1173         (MIPS_STACK_ARGSIZE): Delete macro.
1174         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
1175         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
1176         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
1177         (mips_dump_tdep): Update.
1178         (MIPS_SAVED_REGSIZE): Delete macro.
1179         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
1180         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
1181         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
1182         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
1183         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
1184         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
1185         (mips_pop_frame, return_value_location): Update.
1186         (mips_n32n64_return_value, mips_dump_tdep): Update.
1187
1188         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
1189         MIPS ABI.
1190
1191         * mips-tdep.c: Update copyright.
1192         (mips_gdbarch_init): Merge two code blocks handling the register
1193         name and number layout.
1194
1195 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
1196
1197         * tracepoint.c (validate_actionline): Fix segv at EOF
1198
1199 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
1200
1201         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
1202         properly for static fields.
1203
1204 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
1205             Jason Molenda  <jmolenda@apple.com>
1206
1207         * disasm.c: Update copyright to include 2004.
1208         (do_mixed_source_and_assembly): For uiout asm list
1209         and tuple cleanups, initialize to null_cleanup instead of
1210         NULL and do so prior to loop.  Only reset when we close off
1211         the tuple/list.  Move check for whether to close off the
1212         asm tuple/list to after dump_insns call where it will be run
1213         on each loop iteration.
1214
1215 2004-01-05  Andrew Cagney  <cagney@redhat.com>
1216
1217         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
1218         should be a switch case and not a label.
1219         * mips-tdep.c (mips32_next_pc): Delete unused labels
1220         "greater_equal_branch" and "less_zero_branch".
1221         * jv-valprint.c (java_print_value_fields): Delete unused label
1222         "flush_it".
1223
1224         * target.c (unpush_target): Only close a target that is in the
1225         target stack.
1226
1227 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
1228
1229         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
1230         address from [sp + 64] instead of %o2.
1231
1232         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
1233         fixes PR backtrace/1476.
1234
1235 2004-01-05  Andrew Cagney  <cagney@redhat.com>
1236
1237         * libunwind-frame.h (struct frame_id): Add opaque declaration,
1238         move to start of file.
1239         * i386-tdep.h (struct regcache): Add opaque declaration.
1240         * config/ia64/nm-linux.h (struct target_ops): Add opaque
1241         declaration.
1242         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
1243         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
1244         * win32-nat.c (fake_create_process): Use ISO C style definition.
1245         * stabsread.c (define_symbol): Delete #ifndef
1246         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
1247         stabs_argument_has_addr call, macro never defined.
1248
1249 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
1250
1251         * op50-rom.c: Delete.
1252         * w89k-rom.c: Delete.
1253         * Makefile.in: Remove references.
1254
1255 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
1256
1257         * x86-64-tdep.c: Update copyright year.
1258         (struct amd64_register_info): Rename from x86_64_register_info.
1259         (amd64_register_info): Rename from x86_64_register_info.
1260         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
1261         (amd64_register_name): Rename from x86_64_register_name.
1262         (amd64_register_type): Rename from x86_64_register_type.
1263         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
1264         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
1265         (amd64_dwarf_reg_to_regnum): Rename from
1266         x86_64_dwarf_reg_to_regnum.
1267         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
1268         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
1269         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
1270         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
1271         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
1272         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
1273         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
1274         (amd64_frame_cache): Rename from x86_64_frame_cache.
1275         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
1276         (amd64_frame_prev_register): Rename from
1277         x86_64_frame_prev_register.
1278         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
1279         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
1280         (amd64_sigtramp_frame_cache): Rename from
1281         x86_64_sigtramp_frame_cache.
1282         (amd64_sigtramp_frame_prev_register): Rename from
1283         x86_64_sigtramp_frame_prev_register.
1284         (amd64_sigtramp_frame_unwind): Rename from
1285         x86_64_sigtramp_frame_unwind.
1286         (amd64_sigtramp_frame_sniffer): Rename from
1287         x86_64_sigtramp_frame_sniffer.
1288         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
1289         (amd64_frame_base): Rename from x86_64_frame_base.
1290         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
1291         (amd64_frame_align): Rename from x86_64_frame_align.
1292         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
1293         (amd64_regset_from_core_section): Rename from
1294         x86_64_regset_from_core_section.
1295         (x86_64_init_abi): Update comments.
1296
1297 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
1298
1299         * MAINTAINERS (write after approval): Add myself.
1300
1301 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
1302
1303         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1304         `float' arguments.
1305
1306 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
1307
1308         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
1309         such that it mentions a specific version of GCC that exhibits this
1310         bug.
1311
1312 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
1313
1314         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
1315         structure that has a single `float' member, store it in %f1 in
1316         addition to %f0.
1317
1318         * sparc-sol2-nat.c: Add missing '\'.
1319
1320         * sparc-tdep.c (sparc32_return_value): New function.
1321          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
1322         Remove functions.
1323         (sparc32_gdbarch_init): Set return_value, don't set
1324         extract_return_value, store_return_value, use_struct_convention
1325         and return_value_on_stack.
1326
1327         * sparc-sol2-nat.c: Add missing ')'.
1328
1329 2004-01-03  J. Brobecker  <brobecker@gnat.com>
1330
1331         * infrun.c (handle_step_into_function): New function.
1332         (handle_inferior_event): Extract out some code into the new
1333         function above.
1334
1335 2004-01-03  J. Brobecker  <brobecker@gnat.com>
1336
1337         * infrun.c (handle_inferior_event): Move the declaration of
1338         real_stop_pc inside the if blocks where it is used.
1339
1340 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
1341
1342         * sparc64-tdep.c (sparc64_16_byte_align_p)
1343         (sparc64_store_floating_fields, sparc64_store_floating_fields):
1344         Use check_typedef to get subtypes of structures and unions.
1345         (sparc64_store_return_value): Fix calculation of the appropriate
1346         offset into VALBUF when storing a structure or union.
1347         (sparc64_return_value): New function.
1348         (sparc64_use_struct_convention): Remove function.
1349         (sparc64_init_abi): Set return_value, don't set
1350         extract_return_value, store_return_value and
1351         use_struct_convention.
1352
1353 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
1354
1355         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
1356         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
1357         gdb/config/alpha/xm-alphaosf.h,
1358         gdb/config/powerpc/tm-ppcle-eabi.h,
1359         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
1360         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
1361         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
1362         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
1363         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
1364         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
1365         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
1366         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
1367         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
1368         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
1369         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
1370         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
1371         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
1372         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
1373         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
1374         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
1375         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
1376         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
1377         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
1378         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
1379         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
1380         Remove lines for .cvsignore files.
1381
1382 2004-01-03  J. Brobecker  <brobecker@gnat.com>
1383
1384         * infrun.c: Back out the previous change.
1385
1386 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
1387
1388         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
1389         sparc-*-sunos4* to the list of REMOVED configurations.
1390
1391         * configure.tgt: Add back sparc-*-vxworks*.
1392         * remote-vxsparc.c: Remove all includes except for "defs.h",
1393         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
1394         Include "sparc-tdep.h".
1395         (SPARC_R_G1): New define.
1396         (vxsparc_gregset): New variable.
1397         (ext_format_sparc): Remove extern declaration.
1398         (vx_read_register): Rewrite to use sparc32_supply_gregset and
1399         sparc32_supply_fpregset.
1400         (vx_write_register): Rewrite to use sparc32_collect_gregset,
1401         sparc_collect_rwindow and sparc32_collect_fpregset.
1402         * config/sparc/tm-vxworks.h: New file, based on recently removed
1403         tm-vxsparc.h.
1404         * config/sparc/vxworks.mt: New file, based on recently removed
1405         vxworks.mt.
1406
1407 2004-01-03  J. Brobecker  <brobecker@gnat.com>
1408
1409         * infrun.c (handle_step_into_function): New function.
1410         (handle_inferior_event): Extract out some code into the new
1411         function above.
1412
1413 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
1414
1415         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
1416         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
1417         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
1418         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
1419         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
1420         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
1421         (sparc_nat_h): New variable.
1422         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
1423         (tm-sun4os4.h): Remove dependency.
1424         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
1425         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
1426         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
1427         sparc-tdep.o): Update dependencies.
1428         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
1429         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
1430         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
1431         dependencies.
1432         * configure.host: Remove existing sparc-*-lynxos*,
1433         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
1434         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
1435         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
1436         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
1437         triplets.
1438         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
1439         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
1440         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
1441         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
1442         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
1443         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
1444         sparc64-*-solaris2* and sparc64-*-* triplets.
1445         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
1446         "symtab.h" and "objfiles.h".
1447         (BIAS): Remove define.
1448         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
1449         (X_DISP19): Remove macros.
1450         (sparc_fetch_instruction): Remove function.
1451         (struct gdbarch_tdep): Remove definition.
1452         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
1453         (sparc_breakpoint_from_pc): Remove function.
1454         (struct sparc64_frame_cache): Remove definition.
1455         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
1456         sparc64_unwind_pc): Remove functions.
1457         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
1458         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
1459         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
1460         (sparc64_frame_cache): Change return type to `struct
1461         sparc_frame_cache *'.  Simply call sparc_frame_cache.
1462         (sparc64_frame_this_id, sparc64_frame_prev_register,
1463         sparc64_frame_base_address): Use `struct sparc_frame_cache'
1464         instead of `struct sparc64_frame_cache.
1465         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
1466         sparc_analyze_control_transfer, sparc_software_single_step,
1467         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
1468         _initialize_sparc64_tdep): Remove functions.
1469         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
1470         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
1471         macros.
1472         (sparc64_supply_gregset, sparc64_collect_gregset,
1473         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
1474         (sparc64_init_abi): New function.
1475         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
1476         inclusion guard.  Include "sparc-tdep.h".
1477         (BIAS): Define.
1478         (r_tstate_offset, r_fprs_offset): New defines.
1479         (enum sparc_regnum): Remove defenition.
1480         (enum sparc64_regnum): Reformat.
1481         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
1482         (sparc64_init_abi, sparc64_supply_gregset,
1483         sparc64_collect_gregset, sparc64_supply_fpregset,
1484         sparc64_collect_fpregset): New prototypes.
1485         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
1486         Add extern declarations.
1487         (sparc64_sol2_init_abi): New prototype.
1488         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
1489         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
1490         prototypes.
1491         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
1492         "sparnbsd-nat.h".
1493         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
1494         functions.
1495         (_initialize_sparc64fbsd_nat): Remove initialization of
1496         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
1497         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
1498         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
1499         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
1500         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
1501         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
1502         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
1503         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
1504         (sparc64fbsd_r_y_offset): Remove variables.
1505         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
1506         Make static and const.
1507         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
1508         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
1509         functions.
1510         (sparc64fbsd_gregset): New variable.
1511         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
1512         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
1513         and sparc64_supply_fpregset.
1514         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
1515         (sparc64fbsd_sigtramp_frame_this_id)
1516         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
1517         (sparc64fbsd_sigtramp_frame_unwind): New variable.
1518         (sparc64fbsd_sigtramp_frame_sniffer): New function.
1519         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
1520         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
1521         * sparcnbsd-tdep.c: Update copyright year.  Include
1522         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
1523         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
1524         "value.h" and "sparcnbsd-tdep.h".
1525         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
1526         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
1527         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
1528         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
1529         defines.
1530         (sparcnbsd_gregset): New variable.
1531         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
1532         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
1533         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
1534         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
1535         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
1536         variables.
1537         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
1538         (sparc32nbsd_sigcontext_frame_this_id)
1539         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
1540         (sparc32nbsd_sigcontext_frame_unwind): New variable.
1541         (sparc32nbsd_sigtramp_frame_sniffer): New function.
1542         (sparcnbsd_get_longjmp_target_32,
1543         sparcnbsd_get_longjmp_target_64): Remove functions.
1544         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
1545         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
1546         sparcnbsd_init_elf): Remove.
1547         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
1548         (sparcnbsd_elf_init_abi): New functions.
1549         (_initialize_sparcnbsd_tdep): New prototype.
1550         (_initialize_sparnbsd_tdep): Update.
1551         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
1552         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
1553         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
1554         * config/sparc/linux.mh: Update comment.
1555         (XM_FILE, HOST_IPC): Remove variables.
1556         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
1557         sparc-linux-nat.o.
1558         * config/sparc/linux.mt: Update comment.
1559         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
1560         * config/sparc/nbsd.mt: Reformat.
1561         * config/sparc/nbsd64.mh: Update comment.
1562         (NATDEPFILES): Add sparc-nat.o.
1563         * config/sparc/nbsd64.mt: Update comment.
1564         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
1565         (TM_FILE): Set to tm-nbsd.h.
1566         * config/sparc/nbsdelf.mh: Update comment.
1567         (NATDEPFILES): Add sparc-nat.o.
1568         (XM_FILE): Delete.
1569         * config/sparc/nbsdaout.mh: Update comment.
1570         (NATDEPFILES): Add sparc-nat.o
1571         (XM_FILE): Delete.
1572         * config/sparc/nm-linux.h: Update copyright year.  Don't include
1573         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
1574         inclusion.
1575         (KERNEL_U_SIZE): Remove define.
1576         (kernel_u_size): Remove prototype.
1577         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
1578         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
1579         "regcache.h".
1580         (CHILD_PREPARE_TO_STORE): Remove define.
1581         * config/sparc/nm-nbsdaout.h: Tweak some comments.
1582         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
1583         sparcnbsd-nat.c: Rewrite files.
1584         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
1585         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
1586         sparcnbsd-tdep.h: Remove files.
1587         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
1588         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
1589         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
1590         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
1591         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
1592         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
1593         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
1594         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
1595         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
1596         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
1597         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
1598         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
1599         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
1600         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
1601         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
1602         * config/sparc/linux64.mh, config/sparc/linux64.mt,
1603         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
1604         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
1605         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
1606
1607 2004-01-02  Andrew Cagney  <cagney@redhat.com>
1608
1609         From 2003-12-18 Kazuhiro Inaoka:
1610         * configure.host: Add m32r-linux target.
1611
1612 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
1613
1614         * top.c (print_gdb_version): Update year to 2004.
1615
1616 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
1617
1618         * MAINTAINERS: Add myself to the write-after-approval category.
1619
1620 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
1621
1622         From Bernardo Innocenti <bernie@develer.com>:
1623         * configure.tgt: Add uClinux target.
1624
1625 2004-01-02  Andrew Cagney  <cagney@redhat.com>
1626
1627         * utils.c (do_my_cleanups): Make static, add forward declaration.
1628         * defs.h (do_my_cleanups): Delete declaration.
1629
1630 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
1631
1632         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
1633         bfd/ChangeLog-0203.
1634
1635 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
1636
1637         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
1638         in <machine/reg.h>.
1639         * configure, config.in: Regenerate.
1640
1641 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
1642 tui/ChangeLog-1998-2003.
1643 \f
1644 Local Variables:
1645 mode: change-log
1646 left-margin: 8
1647 fill-column: 74
1648 version-control: never
1649 End: