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