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