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