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