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