1 2004-02-12 Andrew Cagney <cagney@redhat.com>
3 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
4 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5 (interrupt_query): Ditto.
6 (ofunc): Delete unused variable.
7 * cris-tdep.c (cris_abi): Delete unused function.
8 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10 (cris_get_asr_quick_shift_steps): Ditto.
11 (cris_skip_prologue_frameless_p): Ditto.
12 * arm-tdep.c (arm_push_return_address): Delete unused function.
13 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
14 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
15 * s390-tdep.c (s390_function_start): Delete unused function.
17 2004-02-12 Andrew Cagney <cagney@redhat.com>
19 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
20 gdbarch.h, gdbarch.c: Re-generate.
21 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
22 to generic_prologue_frameless_p.
23 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
24 * arch-utils.c (generic_prologue_frameless_p): Delete function.
26 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
28 * mips-linux-tdep.c: Include "frame.h".
29 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
30 (mips_linux_skip_resolver): New functions.
31 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
32 and set_gdbarch_in_solib_call_trampoline.
33 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
34 to after set_gdbarch_in_solib_return_trampoline. Only set the
35 solib hooks to mips16 functions if the OS ABI is unknown.
36 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
37 including "config/tm-linux.h".
38 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
39 * Makefile.in (mips-linux-tdep.o): Update.
41 2004-02-11 David Carlton <carlton@kealia.com>
43 * linespec.c (decode_compound): Only look for a class symbol when
44 considering all but the rightmost component.
46 2004-02-11 Andrew Cagney <cagney@redhat.com>
48 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
49 abi code are are separatly grouped.
51 2004-02-11 Andrew Cagney <cagney@redhat.com>
53 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
54 * gdbarch.h, gdbarch.c: Re-generate.
55 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
56 * v850-tdep.c (v850_gdbarch_init): Update.
57 * sh64-tdep.c (sh64_gdbarch_init): Update.
58 * sh-tdep.c (sh_gdbarch_init): Update.
59 * s390-tdep.c (s390_gdbarch_init): Update.
60 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
61 * mips-tdep.c (mips_gdbarch_init): Update.
62 * mcore-tdep.c (mcore_gdbarch_init): Update.
63 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
64 * m32r-tdep.c (m32r_gdbarch_init): Update.
65 * ia64-tdep.c (ia64_gdbarch_init): Update.
66 * hppa-tdep.c (hppa_gdbarch_init): Update.
67 * h8300-tdep.c (h8300_gdbarch_init): Update.
68 * frv-tdep.c (frv_gdbarch_init): Update.
69 * d10v-tdep.c (d10v_gdbarch_init): Update.
70 * cris-tdep.c (cris_gdbarch_init): Update.
71 * avr-tdep.c (avr_gdbarch_init): Update.
72 * arm-tdep.c (arm_gdbarch_init): Update.
73 * alpha-tdep.c (alpha_gdbarch_init): Update.
75 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
77 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
79 (sh_sh4al_dsp_register_name): Ditto.
81 2004-02-10 Andrew Cagney <cagney@redhat.com>
83 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
84 (mips_init_frame_pc_first): Delete function.
85 (mips_frame_saved_pc): Delete function.
86 (mips_frame_chain): Delete function.
87 (mips_init_extra_frame_info): Delete function.
88 (mips_xfer_register): Delete unused variable "reg".
89 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
90 (mips_n32n64_return_value): Delete unused variable "reg".
91 (mips_n32n64_return_value): Delete unused variable "pos".
92 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
93 (mips_o32_return_value): Delete unused variable "pos".
94 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
95 (mips_print_fp_register): Delete unused variable "namelen"
96 (mips_print_fp_register): Delete unused variable "flt2"
97 (get_frame_pointer): Delete function.
98 (cached_proc_desc): Delete static variable.
99 (mips_pop_frame): Delete function.
100 (mips_find_saved_regs): Delete function.
101 (mips_get_saved_register): Delete function.
102 (mips_saved_pc_after_call): Delete function.
103 (SIGFRAME_BASE): Delete macro.
104 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
105 (SIGFRAME_PC_OFF): Delete macro.
106 (SIGFRAME_REGSAVE_OFF): Delete macro.
107 (mips_dump_tdep): Do not print deleted macro definitions.
109 2004-02-10 Andrew Cagney <cagney@redhat.com>
111 * Makefile.in (SFILES): Remove explictly listed tui files.
112 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
114 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
116 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
117 to use paddr functions to format ia64 addresses and long values.
118 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
119 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
120 (get_kernel_table, ia64_find_proc_info_x): Ditto.
121 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
122 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
124 2004-02-10 Andrew Cagney <cagney@redhat.com>
126 * defs.h: Do not include "tui.h".
127 * gdb_curses.h: New file.
128 * tui/tui-hooks.h: New file.
129 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
130 (tui_install_hooks, tui_remove_hooks): Delete declarations.
131 (tui_initialize_io): Delete declaration.
132 (tui_initialize_readline: Delete redundant declaration.
133 (struct tui_point): Delete definition.
134 * tui/tui-data.h (struct tui_point): Define.
135 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
136 * utils.c: Include "tui/tui.h".
137 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
138 * printcmd.c [TUI]: Include "tui/tui.h".
139 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
140 * tui/tui-command.c: Include "gdb_curses.h".
141 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
142 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
143 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
144 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
145 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
146 * Makefile.in: Update all dependencies.
147 (tui_hooks_h, gdb_curses_h): Define.
148 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
150 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
152 * objfiles.h (struct objfile): Remove unused fields auxf1 and
153 auxf2. Add comments about some other rarely used fields.
155 2004-02-10 Andrew Cagney <cagney@redhat.com>
157 * Makefile.in (init.c): Fix script removing duplicates. Problem
158 reported by Peter Schauer.
160 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
162 * bcache.c (bcache_xmalloc): Use obstack_init instead of
163 obstack_specify_allocation.
164 * objfiles.c (allocate_objfile): Ditto.
165 * solib-sunos.c (solib_add_common_symbols)
166 (allocate_rt_common_objfile): Ditto.
167 * symfile.c (reread_symbols): Ditto.
168 * gdb_obstack.h: Add comment.
170 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
172 * linespec.c (decode_line_1, locate_first_half)
173 (decode_compound, lookup_prefix_sym): Update comments. Delete old
176 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
178 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
181 2004-02-09 Andrew Cagney <cagney@redhat.com>
183 * blockframe.c (find_pc_partial_function): If find_pc_overlay
184 fails, try find_pc_section. Fix PR c++/1267.
185 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
186 instead of find_pc_mapped_section.
187 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
188 not default to the section containing PC. Fix PR symtab/1519.
190 2004-02-09 Andrew Cagney <cagney@redhat.com>
192 * Makefile.in (mips-tdep.o): Update dependencies.
193 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
195 (mips_unwind_pc): Return the pseudo PC register.
196 (mips_unwind_dummy_id): New function.
197 (mips16_fetch_instruction): New function.
198 (mips32_fetch_instruction): New function.
199 (struct mips_frame_cache): Define.
200 (mips_mdebug_frame_cache): New function.
201 (mips_mdebug_frame_this_id): New function.
202 (mips_mdebug_frame_prev_register): New function.
203 (mips_mdebug_frame_unwind): Define.
204 (mips_mdebug_frame_sniffer): New function.
205 (mips_mdebug_frame_base_address): New function.
206 (mips_mdebug_frame_base): Define.
207 (mips_mdebug_frame_base_sniffer): New function.
208 (mips_gdbarch_init): Append unwind and base sniffers. Set
211 2004-02-08 Andrew Cagney <cagney@redhat.com>
213 * frame.c: Print both the register number and name.
215 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
216 and a sed into a single sed. Make .c and .o patterns more robust.
218 (INIT_FILES): Replace OBS with COMMON_OBS.
219 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
221 2004-02-08 Mark Kettenis <kettenis@gnu.org>
223 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
224 the PT_WCOOKIE request.
226 2004-02-08 Andrew Cagney <cagney@redhat.com>
228 * mips-tdep.c (mips_unwind_pc): New function.
229 (mips_gdbarch_init): Set mips_unwind_pc.
231 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
232 (get_frame_id): Allow the UNKNOWN_FRAME.
233 (frame_register_unwind, get_frame_type): Ditto.
235 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
236 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
237 unwind_dummy_id indicates a legacy frame.
239 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
240 * configure: Re-generate.
242 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
245 2004-02-08 Andrew Cagney <cagney@redhat.com>
247 * configure.in (CONFIG_ALL): Set to Makefile target, and not
249 * configure: Re-generate.
250 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
251 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
252 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
253 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
254 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
255 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
256 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
257 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
258 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
259 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
261 2004-02-07 Andrew Cagney <cagney@redhat.com>
263 * Makefile.in: Update all dependencies.
265 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
266 * configure: Re-generate.
267 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
268 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
269 (COMMON_OBS): Add "main.o" and "annotate.o".
270 (ANNOTATE_OBS): Delete.
271 (OBS): Remove ANNOTATE_OBS.
272 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
274 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
275 against CONFIG_OBS and "main.o".
276 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
277 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
279 * tui/tui-command.c: Include "gdb_string.h", delete register
280 attribute, use ISO-C function signatures.
281 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
282 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
283 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
286 * tui/tui-command.c: Change variable and function names to lower
288 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
289 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
290 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
291 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
292 * tui/tui-winsource.c, tui/tui.c: Ditto.
294 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
296 * buildsym.c (free_pending_blocks, finish_block)
297 (record_pending_block, make_blockvector, end_symtab): Replace
298 symbol_obstack with objfile_obstack.
299 * coffread.c (process_coff_symbol, coff_read_struct_type)
300 (coff_read_enum_type): Ditto.
301 * cp-namespace.c (initialize_namespace_symtab)
302 (check_one_possible_namespace_symbol): Ditto.
303 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
304 (dwarf2_symbol_mark_computed): Ditto.
305 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
306 * elfread.c (elf_symtab_read): Ditto.
307 * hpread.c (hpread_symfile_init, hpread_symfile_init)
308 (hpread_read_enum_type, hpread_read_function_type)
309 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
311 * jv-lang.c (get_java_class_symtab, add_class_symbol)
312 (java_link_class_type): Ditto.
313 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
315 * minsyms.c (install_minimal_symbols): Ditto.
316 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
317 (terminate_minimal_symbol_table): Replace symbol_obstack with
319 (free_objfile): Remove freeing of symbol_obstack.
320 * objfiles.h: Remove symbol_obstack field.
321 * pa64solib.c (add_to_solist): Replace symbol_obstack with
323 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
325 (solib_add_common_symbols): Replace symbol_obstack with
327 * somsolib.c (som_solib_add): Ditto.
328 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
329 (common_block_start, common_block_end): Ditto.
330 * symfile.c (reread_symbols): Remove freeing and init of
332 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
333 * symfile.h: Update comment.
334 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
336 * symtab.c (symbol_set_names): Replace symbol_obstack with
338 * symtab.h (struct general_symbol_info, struct minimal_symbol):
340 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
341 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
344 2004-02-07 Andrew Cagney <cagney@redhat.com>
346 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
347 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
348 fields and variables.
349 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
350 (m_beInvisible): Delete macro.
351 * tui/tui-data.h: Fix case case fields and variables.
352 (m_genWinPtrIsNull): Delete macro.
353 (tui_win_list): Rename winList.
354 (TUI_SRC_WIN): Rename srcWin.
355 (TUI_DISASM_WIN): Rename disassemWin.
356 (TUI_DATA_WIN): Rename dataWin.
357 (TUI_CMD_WIN): Rename cmdWin.
358 (m_genWinPtrNotNull): Delete macro.
359 (m_winPtrIsNull): Delete macro.
360 (m_winPtrNotNull): Delete macro.
361 (tui_win_is_source_type): Replace m_winIsSourceType
362 (tui_win_is_auxillary): Replace m_winIsAuzillary.
363 (tui_win_has_locator): Replace m_hasLocator.
364 (tui_set_win_highlight): Replace m_setWinHighlightOn and
365 m_setWinHighlightOff.
366 * tui/tui-data.c: Update references.
367 (tui_win_is_source_type, tui_set_win_highlight): New functions.
368 (tui_win_has_locator, tui_win_is_auxillary): New functions.
369 * tui/tui-command.c, tui/tui-disasm.c: Update references.
370 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
371 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
372 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
373 * tui/tui-winsource.c, tui/tui.c: Ditto.
375 2004-02-07 Mark Kettenis <kettenis@gnu.org>
377 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
378 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
381 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
382 variable `i6' to `i7'.
383 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
385 2004-02-07 Andrew Cagney <cagney@redhat.com>
387 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
388 (TuiPoint, TuiPointPtr): Ditto.
389 (TuiStatus, TuiStatusPtr): Ditto.
390 (TuiWinType, TuiWinTypePtr): Ditto.
391 (struct tui_point): Rename _TuiPoint.
392 (tui_get_low_disassembly_address): Rename
393 tuiGetLowDisassemblyAddress.
394 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
395 (tuiFree): Delete declaration.
396 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
397 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
398 * tui/tui.c (tuiFree): Delete function.
399 * cli/cli-cmds.c (disassemble_command): Update references.
400 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
401 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
402 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
403 * tui/tui-winsource.c: Ditto.
405 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
407 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
408 coffstab_build_psymtabs, elfstab_build_psymtabs)
409 (stabsect_build_psymtabs): Replace psymbol_obstack with
411 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
412 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
414 * dwarfread.c (scan_compilation_units): Ditto.
415 * elfread.c (elfstab_offset_sections): Ditto.
416 * hppa-tdep.c (read_unwind_info): Ditto.
417 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
418 (hpread_end_psymtab): Ditto.
419 * mdebugread.c (mdebug_build_psymtabs, add_pending)
420 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
422 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
423 * objfiles.c (add_to_objfile_sections)
424 (build_objfile_section_table): Ditto.
425 (allocate_objfile): Remove init of psymbol_obstack.
426 (free_objfile): Remove freeing of psymbol_obstack.
427 * objfiles.h (struct objfile): Remove field
428 psymbol_obstack. Update comments.
429 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
430 psymbol_obstack with objfile_obstack.
431 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
433 * somread.c (som_symfile_offsets, init_import_symbols)
434 (init_export_symbols): Replace psymbol_obstack with
436 * somsolib.c (som_solib_add_solib_objfile): Ditto.
437 * symfile.c (default_symfile_offsets, syms_from_objfile)
438 (reread_symbols): Remove freeing and init of psymbol_obstack.
439 (cashier_psymtab): Update comment.
440 * symmisc.c (print_objfile_statistics): Don't report stats for
442 * symtab.h (struct general_symbol_info, struct partial_symtab):
444 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
445 (xcoff_symfile_offsets): Replace psymbol_obstack with
448 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
450 * objfiles.h (struct objfile): Add objfile_obstack field.
451 Remove type_obstack field.
453 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
454 read_structure_scope read_enumeration, new_symbol): Replace
455 type_obstack with objfile_obstack.
456 * dwarfread.c (struct_type, enum_type): Ditto.
457 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
458 (lookup_fundamental_type): Ditto.
459 * gdbtypes.h (TYPE_ALLOC): Ditto.
460 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
461 (hpread_read_doc_function_type, hpread_read_struct_type)
462 (fix_static_member_physnames, hpread_read_array_type)
463 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
464 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
465 (java_link_class_type): Ditto.
466 * mdebugread.c (parse_type): Ditto.
467 * objfiles.c (allocate_objfile, free_objfile): Ditto.
468 * solib-sunos.c (solib_add_common_symbols): Ditto.
469 * stabsread.c (define_symbol, read_type, read_member_functions,
470 read_cpp_abbrev, read_one_struct_field): Ditto.
471 * symfile.c (reread_symbols): Ditto.
472 * symmisc.c (print_objfile_statistics): Ditto.
474 2004-02-07 Andrew Cagney <cagney@redhat.com>
476 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
477 (tui_exec_info_content): Rename TuiExecInfoContent.
478 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
479 (TuiWinInfo, TuiWinInfoPtr): Ditto.
480 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
481 (TuiList, TuiListPtr): Ditto.
482 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
483 (TuiDataType, TuiDataTypePtr): Ditto.
484 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
485 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
486 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
487 (TuiSourceElement, TuiSourceElementPtr): Ditto.
488 (TuiDataElement, TuiDataElementPtr): Ditto.
489 (TuiWinElement, TuiWinElementPtr): Ditto.
490 (TuiDataInfo, TuiDataInfoPtr): Ditto.
491 (TuiCommandElement, TuiCommandElementPtr): Ditto.
492 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
493 (TuiWhichElement, TuiWhichElementPtr): Ditto.
494 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
495 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
496 * tui/tui-command.c, tui/tui-data.c: Update references.
497 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
498 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
499 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
500 * tui/tui-winsource.c, tui/tui.c: Ditto.
502 2004-02-07 Mark Kettenis <kettenis@gnu.org>
504 * dwarf2-frame.h: Update copyright.
505 (enum dwarf2_frame_reg_rule): New.
506 (struct dwarf2_frame_state_reg): New.
507 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
508 * dwarf2-frame.c: Update copyright.
509 (enum dwarf2_reg_rule): Remove.
510 (struct dwarf2_frame_state): Remove defenition of `struct
511 dwarf2_frame_state_reg'.
512 (read_reg): Call get_frame_arch to get the architecture instead of
513 using CURRENT_GDBARCH.
514 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
516 (dwarf2_frame_init_reg): New function.
517 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
518 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
519 initialize the register state. Prefix old `enum dwarf2_reg_rule'
520 tags with DWARF2_FRAME_.
521 (dwarf2_frame_prev_register): Call get_frame_arch to get the
522 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
523 dwarf2_reg_rule' tags with DWARF2_FRAME_.
525 2004-02-06 Andrew Cagney <cagney@redhat.com>
527 * tui/tui-data.h (struct tui_list): Rename _TuiList.
528 (enum tui_data_type): Rename _TuiDataType.
529 (struct tui_layout_def): Rename _TuiLayoutDef.
530 (struct tui_source_element): Rename _TuiSourceElement.
531 (struct tui_data_element): Rename _TuiDataElement.
532 (struct tui_command_element): Rename _TuiCommandElement.
533 (struct tui_locator_element): Rename _TuiLocatorElement.
534 (union tui_which_element): Define.
535 (struct tui_win_element): Rename _TuiWinElement.
536 (struct tui_data_info): Rename _TuiDataInfo.
537 (struct tui_source_info): Rename _TuiSourceInfo.
538 (struct tui_command_info): Rename _TuiCommandInfo.
539 (tui_initialize_static_data): Rename initializeStaticData.
540 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
541 (tui_alloc_win_info): Rename allocWinInfo.
542 (tui_init_generic_part): Rename initGenericPart.
543 (tui_init_win_info): Rename initWinInfo.
544 (tui_alloc_content): Rename allocContent.
545 (tui_add_content_elements): Rename addContentElements.
546 (tui_init_content_element): Rename initContentElement.
547 (tui_free_window): Rename freeWindow.
548 (tui_free_win_content): Rename freeWinContent.
549 (tui_free_data_content): Rename freeDataContent.
550 (tui_free_all_source_wins_content): Rename
551 freeAllSourceWinsContent.
552 (tui_del_window): Rename tuiDelWindow.
553 (tui_del_data_windows): Rename tuiDelDataWindows.
554 (tui_partial_win_by_name): Rename partialWinByName.
555 (tui_win_name): Rename winName.
556 (tui_current_layout): Rename currentLayout.
557 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
558 (tui_term_height): Rename termHeight.
559 (tui_set_term_height_to): Rename setTermHeightTo.
560 (tui_term_width): Rename termWidth.
561 (tui_set_term_width_to): Rename setTermWidthTo.
562 (tui_set_gen_win_origin): Rename setGenWinOrigin.
563 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
564 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
565 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
566 (tui_source_windows): Rename sourceWindows.
567 (tui_clear_source_windows): Rename clearSourceWindows.
568 (tui_clear_source_windows_detail): Rename
569 clearSourceWindowsDetail.
570 (tui_clear_win_detail): Rename clearWinDetail.
571 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
572 (tui_default_tab_len): Rename tuiDefaultTabLen.
573 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
574 (tui_win_with_focus): Rename tuiWinWithFocus.
575 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
576 (tui_layout_def): Rename tuiLayoutDef.
577 (tui_win_resized): Rename tuiWinResized.
578 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
579 (tui_next_win): Rename tuiNextWin.
580 (tui_prev_win): Rename tuiPrevWin.
581 (tui_add_to_source_windows): Rename addToSourceWindows.
582 * tui/tui-winsource.c, tui/tui-win.c: Update references.
583 * tui/tui-layout.c, tui/tui-source.c: Ditto.
584 * tui/tui-stack.c, tui/tui-io.c: Ditto.
585 * tui/tui.c, tui/tui-data.c: Ditto.
586 * tui/tui-interp.c, tui/tui-data.c: Ditto.
587 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
589 * tui/tui-source.h: Update copyright. Include "tui-data.h".
590 (struct symtab): Declare.
591 (tui_set_source_content): Rename tuiSetSourceContent.
592 (tui_show_symtab_source): Rename tuiShowSource.
593 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
594 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
595 * tui/tui-source.c: Update copyright. Update references.
596 * tui/tui-win.c, tui/tui-winsource.c: Update references.
597 * tui/tui-stack.c: Update references.
599 * tui/tui-win.h: Update copyright. Include "tui-data.h".
600 (struct tui_win_info): Declare.
601 (tui_scroll_forward): Rename tuiScrollForward.
602 (tui_scroll_backward): Rename tuiScrollBackward.
603 (tui_scroll_left): Rename tuiScrollLeft.
604 (tui_scroll_right): Rename tuiScrollRight.
605 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
606 (tui_resize_all): Rename tuiResizeAll.
607 (tui_refresh_all_win): Rename tuiRefreshAll.
608 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
609 * tui/tui-layout.c, * tui/tui-io.c: Update references.
610 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
611 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
613 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
614 (tui_erase_data_content): Rename tuiEraseDataContent.
615 (tui_display_all_data): Rename tuiDisplayAllData.
616 (tui_check_data_values): Rename tuiCheckDataValues.
617 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
618 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
619 (tui_first_data_element_no_in_line): Rename
620 tuiFirstDataElementNoInLine.
621 (tui_delete_data_content_windows): Rename
622 tuiDeleteDataContentWindows.
623 (tui_refresh_data_win): Rename tuiRefreshDataWin.
624 (tui_display_data_from): Rename tuiDisplayDataFrom.
625 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
626 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
627 * tui/tui-win.c, tui/tui-regs.c: Update references.
628 * tui/tui-layout.c, tui/tui.c: Update references.
630 * tui/tui-wingeneral.h: Update copyright.
631 (m_allBeVisible): Delete macro.
632 (m_allBeInvisible): Delete macro.
633 (struct tui_gen_win_info): Declare.
634 (struct tui_win_info): Declare.
635 (tui_unhighlight_win): Rename unhighlightWin.
636 (tui_make_visible, tui_make_invisible): Replace makeVisible.
637 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
638 (tui_make_window): Rename makeWindow.
639 (tui_copy_win): Rename copyWin.
640 (tui_box_win): Rename boxWin.
641 (tui_highlight_win): Rename highlightWin.
642 (tui_check_and_display_highlight_if_needed): Rename
643 checkAndDisplayHighlightIfNeeded.
644 (tui_refresh_all): Rename refreshAll.
645 (tui_delete_win): Rename tuiDelwin.
646 (tui_refresh_win): Rename tuiRefreshWin.
647 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
648 (tui_make_visible, tui_make_invisible): New functions.
649 (tui_make_all_visible, tui_make_all_invisible): New functions.
650 (make_all_visible): Rename makeAllVisible.
651 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
652 * tui/tui-data.c, tui/tui-winsource.c: Update references.
653 * tui/tui-windata.c, tui/tui-win.c: Update references.
654 * tui/tui-regs.c, tui/tui-layout.c: Update references.
655 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
657 2004-02-06 Mark Kettenis <kettenis@gnu.org>
659 * proc-api.c (write_with_trace): Initialize local variable to
660 silence compiler warning.
662 2004-02-06 Andrew Cagney <cagney@redhat.com>
664 * tui/tui-source.h: Do not include "defs.h".
665 (struct tui_win_info): Declare.
666 (tui_set_source_content_nil): Declare.
667 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
668 (union tui_line_or_address): Rename _TuiLineOrAddress.
669 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
670 (tui_update_source_window): Rename tuiUpdateSourceWindow.
671 (tui_update_source_window_as_is): Rename
672 tuiUpdateSourceWindowAsIs.
673 (tui_update_source_windows_with_addr): Rename
674 tuiUpdateSourceWindowsWithAddr.
675 (tui_update_source_windows_with_line): Rename
676 tuiUpdateSourceWindowsWithLine.
677 (tui_clear_source_content): Rename tuiClearSourceContent.
678 (tui_erase_source_content): Rename tuiEraseSourceContent.
679 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
680 (tui_show_source_content): Rename tuiShowSourceContent.
681 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
682 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
683 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
684 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
685 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
686 (tui_update_exec_info): Rename tuiUpdateExecInfo.
687 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
688 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
689 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
690 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
691 (struct tui_win_info): Declare.
692 * tui/tui-stack.c: Update references.
693 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
694 * tui/tui-win.c, tui/tui-source.c: Ditto.
695 * tui/tui.c, tui/tui-disasm.c: Ditto.
697 2004-02-06 Mark Kettenis <kettenis@gnu.org>
699 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
700 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
702 2004-02-05 Mark Kettenis <kettenis@gnu.org>
704 * infrun.c (handle_inferior_event): Allow for breakpoint
705 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
706 and SIGEMT. Update comments.
707 * NEWS (Revised SPARC target): Mention support for non-executable
710 2004-02-04 Mark Kettenis <kettenis@gnu.org>
712 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
713 * inftarg.c: Update copyright year.
714 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
715 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
716 (sparc_xfer_wcookie): New function.
717 * sparc-tdep.c (sparc_fetch_wcookie): New function.
718 * Makefile.in (sparc-nat.o): Update dependencies.
719 * config/sparc/nm-nbsd.h: Include "target.h".
720 (NATIVE_XFER_WCOOKIE): New define.
721 (sparc_xfer_wcookie): New prototype.
723 2004-02-04 Andrew Cagney <cagney@redhat.com>
725 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
726 SYSCALL_TRAP function.
727 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
729 2004-02-04 Andrew Cagney <cagney@redhat.com>
730 Daniel Jacobowitz <drow@mvista.com>
732 * objfiles.h: Delete comments refering to inside_entry_func and
733 DEPRECATED_FRAME_CHAIN_VALID.
734 * defs.h (inside_entry_func): Update prototype..
735 * blockframe.c (inside_entry_func): Rename to
736 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
737 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
739 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
741 * breakpoint.c (struct captured_parse_breakpoint_args): Move
742 outside of #ifdef SOLIB_ADD region.
743 (do_restore_lang_radix_cleanup): Ditto.
744 (resolve_pending_breakpoint): Ditto.
746 2004-02-03 Andrew Cagney <cagney@redhat.com>
748 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
749 (process_note_abi_tag_sections): Delete unused function.
750 (ia64_read_fp): Delete unused function.
751 (gdbarch_extract_struct_value_address): Delete declaration.
753 2004-02-02 Andrew Cagney <cagney@redhat.com>
755 * vax-tdep.c (vax_frame_chain): Delete call to
756 deprecated_inside_entry_file.
757 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
759 2004-02-02 Mark Kettenis <kettenis@gnu.org>
761 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
762 column that's "empty" or "same value" when eliminating REG_RA
765 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
767 * NEWS: Add information about new pending breakpoint support.
769 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
771 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
772 and pending fields for pending breakpoint support.
773 * breakpoint.c (breakpoint_enabled): Add check for not pending.
774 (condition_command): Only parse condition if not a pending
776 (print_one_breakpoint): Add support for pending breakpoints.
777 (describe_other_breakpoints): Add checks to verify we are not
778 dealing with pending breakpoints.
779 (check_duplicates): Don't check pending breakpoints.
780 (set_raw_breakpoint): Initialize pending flag.
781 (do_restore_lang_radix_cleanup): New cleanup routine.
782 (resolve_pending_breakpoint): New function.
783 (re_enable_breakpoints_in_shlibs): Try and resolve any
784 pending breakpoints via resolve_pending_breakpoint.
785 (mention): Add pending breakpoint support.
786 (parse_breakpoint_sals): Add new parameter to pass to
787 decode_line_1 to indicate silent errors when files or functions
788 are not found. Change all callers.
789 (do_captured_parse_breakpoint): New function.
790 (break_command_1): Change prototype to return an rc value and to
791 take an optional pending breakpoint pointer. Support creating
792 a pending breakpoint if a "not found" form of error occurs when
793 parsing the breakpoint. Also support resolving an existing pending
794 breakpoint and be silent if the resolution fails.
795 (create_breakpoints): Change prototype to take pending breakpoint
796 pointer. When resolving a pending breakpoint, use the new pointer
797 to provide a conditional or commands added by the end-user.
798 (delete_breakpoint): Add appropriate check for pending.
799 (breakpoint_re_set_one): Ditto.
800 (do_enable_breakpoint): Ditto.
802 2004-02-02 David Carlton <carlton@kealia.com>
804 * valops.c (enum oload_classification): New.
805 (find_overload_match): Break implementation into separate
806 functions; delete #if 0'd code; look for symbols within
808 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
809 (find_oload_champ,oload_method_static,classify_oload_match): New.
810 * cp-support.h: Add declaration for cp_func_name; update
811 declaration for make_symbol_overload_list.
812 * cp-support.c (cp_func_name): New.
813 (overload_list_add_symbol): Fix comment, use
814 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
815 (make_symbol_overload_list): Take a function name and a namespace
816 instead of a symbol; change implementation.
817 (make_symbol_overload_list_using): New.
818 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
820 2004-02-02 Fred Fish <fnf@redhat.com>
822 * main.c (gdb_stdtarg): Move definition to group with other
823 gdb_stdtarg definitions and update copyright years.
824 * remote-sim.c (gdb_os_write_stderr): Write output to
825 gdb_stdtargerr stream instead of gdb_stdtarg stream.
826 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
827 gdb_stderr stream and update copyright years.
829 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
831 * Makefile.in (mips-linux-nat.o): Update dependencies.
832 * mips-linux-nat.c: Include mips-tdep.h.
834 2004-02-01 Roland McGrath <roland@redhat.com>
836 * sol-thread.c (sol_thread_xfer_partial): New function.
837 (init_sol_thread_ops): Use that for to_xfer_partial hook.
838 (init_sol_core_ops): Likewise.
840 * procfs.c (procfs_xfer_partial): New function.
841 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
842 * Makefile.in (procfs.o): Add $(auxv_h) dep.
844 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
845 procfs_xfer_auxv function.
847 * procfs.c (procfs_make_note_section): If we can read
848 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
849 * linux-proc.c (linux_make_note_section): Likewise.
853 * Makefile.in (auxv_h): New variable.
854 (COMMON_OBS): Add auxv.o here.
855 (auxv.o): New target.
857 * corelow.c (core_xfer_partial): New function.
858 (init_core_ops): Use it for core_ops.to_xfer_partial.
860 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
861 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
862 macro if that is defined.
864 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
866 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
867 and check the specified thread for each breakpoint.
868 * breakpoint.h (bpstat_stop_status): Update prototype.
869 * infrun.c (handle_inferior_event): Update calls to
872 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
874 * Makefile.in (cli-cmds.o): Add $(readline_h).
876 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
878 * cli/cli-cmds.c: Include readline.h.
879 (complete_command): Pass the start of the last word to
882 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
884 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
885 argument, and change first argument to a CORE_ADDR.
886 * breakpoint.h (bpstat_stop_status): Update prototype.
887 * infrun.c (adjust_pc_after_break): Add a new comment.
888 (handle_inferior_event): Update calls to bpstat_stop_status.
890 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
892 * breakpoint.h: Update copyright years.
894 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
896 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
897 (bpstat_stop_status): Don't decrement PC.
898 * breakpoint.h (software_breakpoint_inserted_here_p): Add
900 * infrun.c (adjust_pc_after_break): New function.
901 (handle_inferior_event): Call it, early. Remove later references
902 to DECR_PC_AFTER_BREAK.
903 (normal_stop): Add commentary.
905 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
907 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
908 2004-01-27 double-free fix.
910 2004-01-31 Mark Kettenis <kettenis@gnu.org>
912 * sparc-tdep.c (sparc_fetch_wcookie): New function.
913 (sparc32_frame_prev_register): Handle StackGhost.
914 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
916 2004-01-29 Roland McGrath <roland@redhat.com>
918 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
919 * configure: Regenerated.
921 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
922 * Makefile.in (procfs.o): Add dep.
924 2004-01-28 Andrew Cagney <cagney@redhat.com>
926 * tui/tui-stack.h: Update copyright.
927 (struct frame_info): Add opaque declaration.
928 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
929 (tui_show_locator_content): Rename tuiShowLocatorContent.
930 (tui_show_frame_info): Rename tuiShowFrameInfo.
931 * tui/tui-stack.c: Update copyright. Update references.
932 * tui/tui-winsource.c: Update references.
933 * tui/tui-win.c: Update references.
934 * tui/tui-layout.c: Update references.
935 * tui/tui-hooks.c: Update copyright, update references.
936 * tui/tui.c: Update copyright, update references.
937 * tui/tui-disasm.c: Update references.
939 2004-01-28 David Carlton <carlton@kealia.com>
941 * dwarf2read.c (add_partial_structure): Use demangled name if
944 2004-01-27 Jim Blandy <jimb@redhat.com>
946 Clean up misapplied patch:
947 * dwarf2read.c (determine_prefix): Change one of the two forward
948 declarations for 'determine_prefix_aux' to a declaration for this.
949 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
950 argument to 'die_specification'.
952 * dwarf2read.c (read_func_scope): Re-indent comment.
954 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
956 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
957 b->exp to NULL after freeing so that error during re-parsing or
958 evaluation of expressions associated with breakpoint don't
959 eventually lead to re-freeing of storage.
960 Committed by Andrew Cagney.
962 2004-01-27 Andrew Cagney <cagney@redhat.com>
964 * source.c (ambiguous_line_spec): Delete undefined declaration.
965 * m32r-rom.c (m32r_set_board_address): Delete unused function.
966 (m32r_set_server_address, m32r_set_download_path): Ditto.
967 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
969 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
971 * dwarf2read.c: Update calls to changed and renamed functions, and
972 references to moved variables.
974 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
975 language, language_defn, list_in_scope, and ftypes members.
976 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
977 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
978 (baseaddr): Remove globals.
980 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
981 (set_cu_language, die_is_declaration, die_specification)
982 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
983 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
984 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
985 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
987 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
988 cu.list_in_scope. Don't initialize cu_header_offset.
989 (add_partial_symbol): Add local baseaddr.
990 (psymtab_to_symtab_1): Add local baseaddr. Use
991 objfile->section_offsets for consistency. Don't initialize
992 cu_header_offset; do initialize cu.header.offset and
994 (read_file_scope, read_func_scope, read_lexical_block_scope)
995 (dwarf_decode_lines, new_symbol): Add local baseaddr.
997 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
999 * PROBLEMS: Add gdb/1516.
1001 2003-12-29 Robert Millan <robertmh@gnu.org>
1003 Patch committed by Andrw Cagney.
1004 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
1005 * configure.tgt: Match knetbsd*-gnu.
1007 2004-01-26 Andrew Cagney <cagney@redhat.com>
1009 * breakpoint.c (catch_command_1): Delete #ifdef code.
1010 (catch_fork_command_1): Delete #ifdef wrapper.
1011 (catch_exec_command_1): Ditto.
1012 (catch_load_command_1): Ditto.
1013 (catch_unload_command_1): Ditto.
1015 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
1016 (catch_breakpoint): Delete #if0ed function.
1017 (disable_catch_breakpoint): Ditto.
1018 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
1019 (disable_catch, enable_catch, delete_catch): Ditto.
1021 2004-01-26 Andrew Cagney <cagney@redhat.com>
1023 * remote.c (echo_check, quit_flag): Delete variables.
1024 (cisco_kernel_mode): Delete variable.
1025 (minitelnet_return, tty_input, escape_count): Delete variables.
1026 (remote_cisco_mode): Delete variable.
1027 (remote_cisco_open, remote_cisco_close): Delete function.
1028 (remote_cisco_mourn, remote_cisco_wait): Delete function.
1029 (init_remote_cisco_ops): Delete function.
1030 (_initialize_remote): Do not install "remote cisco" code.
1031 (read_frame): Delete cisco specific code.
1032 (remote_info_process): Delete function.
1033 (remote_wait): Delete cisco specific code.
1034 (remote_cisco_section_offsets): Delete function.
1035 (remote_cisco_objfile_relocate): Delete function.
1036 (remote_async_wait): Delete cisco specific code.
1037 (minitelnet, readtty, readsocket): Delete function.
1039 2004-01-26 Andrew Cagney <cagney@redhat.com>
1041 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
1042 comments mentioning extract_returned_value_address.
1043 * infcmd.c (print_return_value): Update. Add comments on
1044 extract_returned_value_address.
1045 * stack.c (return_command): Add comments on
1046 extract_returned_value_address.
1047 * values.c: Update comment.
1048 * m32r-tdep.c: Update comment.
1049 * sparc-tdep.c: Update comment.
1050 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
1051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1052 * sh64-tdep.c (sh64_gdbarch_init): Update.
1053 * sh-tdep.c (sh_gdbarch_init): Update.
1054 * s390-tdep.c (s390_gdbarch_init): Update.
1055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1056 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
1057 * m68k-tdep.c (m68k_gdbarch_init): Update.
1058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1059 * m32r-tdep.c (m32r_gdbarch_init): Update.
1060 * ia64-tdep.c (ia64_gdbarch_init): Update.
1061 * h8300-tdep.c (h8300_gdbarch_init): Update.
1062 * frv-tdep.c (frv_gdbarch_init): Update.
1063 * arm-tdep.c (arm_gdbarch_init): Update.
1064 * alpha-tdep.c (alpha_gdbarch_init): Update.
1066 2004-01-26 Andrew Cagney <cagney@redhat.com>
1068 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
1069 SYMBOL_LOCATION_FUNCS
1070 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
1071 "struct symbol_ops".
1072 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
1073 type to "struct symbol_ops".
1074 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
1075 (struct symbol): Replace ".aux_value.loc.funcs" and
1076 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
1077 (SYMBOL_OBJFILE): Delete macro.
1078 (SYMBOL_LOCATION_FUNCS): Delete macro.
1079 (SYMBOL_LOCATION_BATON): Update.
1080 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
1081 intead of SYMBOL_LOCATION_FUNCS.
1082 * ax-gdb.c (gen_var_ref): Ditto.
1083 * printcmd.c (address_info): Ditto.
1084 * findvar.c (read_var_value): Ditto.
1085 (symbol_read_needs_frame): Ditto.
1087 2004-01-26 Andrew Cagney <cagney@redhat.com>
1089 * dwarf2read.c (read_func_scope): Document frame-base hack.
1091 2004-01-25 Mark Kettenis <kettenis@gnu.org>
1093 * infcmd.c (print_return_value): Plug memory leak; delete
1094 ui_stream object. Rename argument `structure_return' to
1097 2004-01-25 Mark Kettenis <kettenis@gnu.org>
1099 * infcmd.c (print_return_value): Wrap long lines.
1100 (finish_command_continuation, finish_command): Remove unused
1101 variable `funcaddr'. Fix some coding-standards problems.
1103 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
1104 SECT_SIZE is large enough, not wheter it's exactly the right size.
1105 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
1106 TDEP->fpregset to zero.
1108 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
1109 floating-point registers for traditional NetBSD core files.
1110 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
1111 TDEP->sizeof_fpregset here.
1113 2004-01-25 Mark Kettenis <kettenis@gnu.org>
1115 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
1116 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
1117 function with code split out from
1118 sparc32nbsd_sigcontext_frame_cache.
1119 (sparc32nbsd_sigcontext_frame_cache): Use
1120 sparc32nbsd_sigcontext_saved_regs.
1121 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
1123 * sparcobsd-tdep.c: New file.
1124 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
1125 (sparcobsd-tdep.o): New dependency.
1126 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
1127 * config/sparc/obsd.mt: New file.
1129 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
1130 TDEP->fpregset to be initialized to enable core file register
1133 2004-01-24 Mark Kettenis <kettenis@gnu.org>
1135 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1136 Add opaque declarations.
1137 (sparc64nbsd_sigcontext_saved_regs): New prototype.
1138 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
1139 function with code split out from
1140 sparc64nbsd_sigcontext_frame_cache.
1141 (sparc64nbsd_sigcontext_frame_cache): Use
1142 sparc64nbsd_sigcontext_saved_regs.
1143 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
1145 * sparc64obsd-tdep.c: New file.
1146 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
1147 (sparc64obsd-tdep.o): New dependency.
1148 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
1149 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
1150 * config/sparc/obsd64.mt: New file.
1152 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
1153 read the instruction at PC.
1155 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
1156 value of GDB_OSABI_DEFAULT.
1157 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
1158 instead of GDB_OSABI_NETBSD_AOUT.
1160 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
1162 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
1165 2004-01-23 Andrew Cagney <cagney@redhat.com>
1167 * printcmd.c (display_command): Replace tui_set_display call with
1168 tui_set_layout_for_display_command.
1169 * tui/tui.h (enum tui_win_type): Define.
1170 (tui_set_layout): Delete declaration.
1171 (tui_set_layout_for_display_command): Rename set_tui_layout.
1172 * tui/tui-data.h (enum tui_layout_type): Define.
1173 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
1175 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
1176 (tui_default_win_height): Rename tuiDefaultWinHeight.
1177 (tui_default_win_viewport_height): Rename
1178 tuiDefaultWinViewportHeight.
1179 (tui_set_layout): RenametuiSetLayout.
1180 * tui/tui-layout.c: Update references.
1181 * tui/tui.c: Update references.
1182 * tui/tui-disasm.c: Update references.
1184 2004-01-23 David Carlton <carlton@kealia.com>
1186 Partial workaround for PR c++/1511:
1187 * cp-namespace.c: Include frame.h.
1188 (cp_lookup_transparent_type): New
1189 (cp_lookup_transparent_type_loop): New.
1190 * cp-support.h: Declare cp_lookup_transparent_type.
1191 * symtab.c (basic_lookup_transparent_type): Renamed from
1192 lookup_transparent_type.
1193 (lookup_transparent_type): Replace old body by a call to
1194 current_language->la_lookup_transparent_type.
1195 * symtab.h: Update copyright. Declare
1196 basic_lookup_transparent_type.
1197 * language.h: Update copyright.
1198 (struct language_defn): Add la_lookup_transparent_type.
1199 * language.c: Update copyright.
1200 (unknown_language_defn): Add basic_lookup_transparent_type.
1201 (auto_language_defn): Add basic_lookup_transparent_type.
1202 (local_language_defn): Add basic_lookup_transparent_type.
1203 * ada-lang.c: Update copyright.
1204 (ada_language_defn): Add basic_lookup_transparent_type.
1205 * c-lang.c: Update copyright.
1206 (c_language_defn): Add basic_lookup_transparent_type.
1207 (cplus_language_defn): Add basic_lookup_transparent_type.
1208 (asm_language_defn): Add basic_lookup_transparent_type.
1209 (minimal_language_defn): Add basic_lookup_transparent_type.
1210 * f-lang.c: Update copyright.
1211 (f_language_defn): Add basic_lookup_transparent_type.
1212 * jv-lang.c: Update copyright.
1213 (java_language_defn): Add basic_lookup_transparent_type.
1214 * m2-lang.c: Update copyright.
1215 (m2_language_defn): Add basic_lookup_transparent_type.
1216 * objc-lang.c: Update copyright.
1217 (objc_language_defn): Add basic_lookup_transparent_type.
1218 * p-lang.c: Update copyright.
1219 (p_language_defn): Add basic_lookup_transparent_type.
1220 * scm-lang.c: Update copyright.
1221 (scm_language_defn): Add basic_lookup_transparent_type.
1222 * Makefile.in (cp-namespace.o): Depend on frame.h.
1224 2004-01-23 David Carlton <carlton@kealia.com>
1226 Patch for PR c++/1520:
1227 * dwarf2read.c (read_func_scope): Set processing_current_prefix
1228 properly if we have a specification die.
1229 (determine_prefix_aux): Rename from determine_prefix.
1230 (determine_prefix): Like the old determine_prefix, but never
1233 2004-01-23 Theodore A. Roth <troth@openavr.org>
1235 * avr-tdep.c: Update copyright.
1236 (avr_iaddr_p): Delete unused function.
1237 (avr_saddr_p): Delete unused function.
1239 2004-01-23 David Carlton <carlton@kealia.com>
1241 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
1242 Fix for PR symtab/1534.
1244 2004-01-23 Mark Kettenis <kettenis@gnu.org>
1246 * NEWS (New native configurations): Mention OpenBSD/sparc and
1248 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
1249 * configure.host: Likewise.
1250 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
1251 handler for OpenBSD.
1252 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
1254 2004-01-22 Mark Kettenis <kettenis@gnu.org>
1256 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
1257 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
1259 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
1260 * cli/cli-cmds.c (shell_escape): Likewise.
1262 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
1263 OpenBSD .note.openbsd.ident sections.
1265 2004-01-22 David Carlton <carlton@kealia.com>
1267 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
1268 get_scope_pc_bounds.
1269 (read_file_scope): Ditto.
1270 (get_scope_pc_bounds): New function, produced by extracting code
1271 from the above two functions, consolidating it, and adding support
1272 for DW_TAG_namespace.
1274 2004-01-22 Mark Kettenis <kettenis@gnu.org>
1276 * osabi.c (MAX_NOTESZ): New define.
1277 (check_note): New function.
1278 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
1281 2004-01-21 Roland McGrath <roland@redhat.com>
1283 * MAINTAINERS (write after approval): Add myself.
1285 2004-01-21 Eli Zaretskii <eliz@gnu.org>
1287 * utils.c (init_page_info): Move declarations of `rows' and
1288 `cols' before the __GO32__-specific code. Move the closing brace
1289 outside the #ifdef __GO32__..#endif block.
1290 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
1292 2004-01-21 Paul Brook <paul@codesourcery.com>
1294 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
1295 BPSTAT_WHAT_CHECK_SHLIBS.
1297 2004-01-21 Paul Brook <paul@codesourcery.com>
1299 * MAINTAINERS: Add myself to write-after-approval.
1301 2004-01-20 Andrew Cagney <cagney@redhat.com>
1303 * ax-gdb.c (print_axs_value): Delete unused function.
1304 * jv-lang.c (java_lookup_type): Delete unused function.
1305 * cli/cli-dump.c (dump_filetype): Delete unused function.
1306 * remote-mips.c (remote_mips_insert_hw_breakpoint)
1307 (remote_mips_remove_hw_breakpoint): Delete unused functions.
1308 (mips_getstring): Delete unused function.
1309 (pmon_insert_breakpoint): Delete #if0ed function.
1310 (PMON_MAX_BP): Delete #if0ed MACRO.
1311 (mips_pmon_bp_info): Delete #if0ed variable.
1312 (pmon_remove_breakpoint): Delete #if0ed function.
1313 * monitor.c (monitor_write_even_block): Delete unused function.
1314 (monitor_write_memory_block): Delete #if0ed code.
1315 * dink32-rom.c (dink32_load): Delete unused function.
1316 (_initialize_dink32_rom): Delete #if0ed code.
1317 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
1319 * tui/tui-command.c: Update references.
1320 * tui/tui-io.c: Update references.
1321 * tui/tui-command.h: Update copyright.
1322 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
1324 * source.c (ambiguous_line_spec): Delete never-defined function.
1325 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
1326 * gdbtypes.c (add_name, add_mangled_type): Ditto.
1327 * cli/cli-cmds.c (validate_comname): Ditto.
1329 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
1331 (tui_set_disassem_content): Rename tuiSetDisassemContent.
1332 (tui_show_disassem): Rename tuiShowDisassem.
1333 (tui_show_disassem_and_update_source): Rename
1334 tuiVerticalDisassemScroll.
1335 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
1336 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
1337 * tui/tui.h: Update copyright.
1338 (enum tui_status): Define.
1339 * tui/tui-data.h (enum tui_scroll_direction): Define.
1340 * tui/tui-disasm.c: Update copyright. Update references.
1341 * tui/tui-winsource.c: Update copyright. Update references.
1342 * tui/tui-win.c: Update references.
1343 * tui/tui-layout.c: Update references.
1345 2004-01-20 Andrew Cagney <cagney@redhat.com>
1347 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
1348 sym2 to start of block.
1350 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
1352 * MAINTAINERS: Delete mmalloc.
1353 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
1354 * NEWS: Mention removal of --with-malloc.
1355 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
1356 * config.in: Regenerate.
1357 * configure: Regenerate.
1358 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
1359 USE_MMALLOC, MMCHECK_FORCE.
1360 * gdbinit.in: Remove mmalloc.
1361 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
1362 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
1363 * config/i386/go32.mh: Likewise.
1364 * config/i386/interix.mh: Likewise.
1365 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
1367 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
1369 * linespec.c (decode_variable, symtab_from_filename): Call
1370 error_silent with error message instead of throwing an exception
1372 * defs.h (error_silent, error_output_message): Add prototypes.
1373 (catch_exceptions_with_msg): Ditto.
1374 * utils.c (error_silent, error_output_message): New functions.
1375 * top.c (catch_exceptions_with_msg): New function.
1377 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
1379 * mi/mi-cmds.h (enum print_values): Add definition.
1381 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
1382 type and value for simple data types and just the name and type
1383 for complex ones, if required.
1385 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
1386 children, if required.
1388 2004-01-19 Kevin Buettner <kevinb@redhat.com>
1390 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
1391 unused declarations.
1393 2004-01-19 Andrew Cagney <cagney@redhat.com>
1395 * top.h (mapped_symbol_files): Delete declaration.
1396 * main.c (captured_main): Delete option "m" and "mapped".
1397 * objfiles.c (mapped_symbol_files): Delete variable.
1398 * symfile.c (symbol_file_command): Delete mmap code.
1399 (symbol_file_add_with_addrs_or_offsets): Ditto.
1400 (add_symbol_file_command, reread_separate_symbols): Ditto.
1401 * objfiles.h (OBJF_MAPPED): Delete.
1402 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
1403 (free_objfile) [USE_MMALLOC]: Ditto.
1404 (open_existing_mapped_file): Delete function.
1405 (open_mapped_file): Delete function.
1406 (map_to_file): Delete function.
1408 2004-01-19 Kevin Buettner <kevinb@redhat.com>
1410 * infrun.c (step_into_function): Account for possible breakpoint
1411 adjustment when computing ``stop_func_start''.
1413 2004-01-19 Kevin Buettner <kevinb@redhat.com>
1415 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
1416 the region size against the size of a pointer, not the size of
1417 a register as given by DEPRECATED_REGISTER_SIZE.
1419 2004-01-19 Andrew Cagney <cagney@redhat.com>
1421 * tui/tui-regs.h: Include "tui-data.h".
1422 (tuiFirstRegElementNoInLine): Delete declaration.
1423 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
1424 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
1425 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
1426 (tui_calculate_regs_column_count): Rename
1427 tuiCalculateRegsColumnCount.
1428 (tui_check_register_values): Rename tuiCheckRegisterValues.
1429 (tui_show_registers): Rename tuiShowRegisters.
1430 (tui_display_registers_from_line): Rename
1431 tuiDisplayRegistersFromLine.
1432 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
1433 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
1434 (tui_first_reg_element_no_inline): Rename
1435 tuiFirstRegElementNoInLine.
1436 * tui/tui-data.h: Update copyright.
1437 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
1438 * tui/tui-windata.c: Update copyright, update references.
1439 * tui/tui-regs.c: Update copyright, update references.
1440 * tui/tui-win.c: Update copyright, update references.
1441 * tui/tui-layout.c: Update copyright, update references.
1443 2004-01-18 Andrew Cagney <cagney@redhat.com>
1445 * tui/tui-io.c: Update copyright.
1446 (key_is_end_sequence, key_is_backspace): New functions.
1447 (key_is_command_char, key_is_start_sequence): New function.
1448 (tui_getc): Update references.
1449 * tui/tui-io.h: Update copyright.
1450 (m_tuiStartNewLine): Delete macro.
1451 (m_isBackspace, m_isDeleteChar): Delete macros.
1452 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
1453 (m_isNextPage, m_isPrevPage): Delete macros.
1454 (m_isLeftArrow, m_isRightArrow): Delete macros.
1455 (m_isXdbStyleCommandChar): Delete macro.
1456 (key_is_start_sequence): Declare, replace m_isStartSequence.
1457 (key_is_end_sequence): Declare, replace m_isEndSequence.
1458 (key_is_backspace): Declare ,replace m_isBackspace.
1459 (key_is_command_char): Declare, replace m_isCommandChar.
1460 * tui/tui-command.c: Update copyright.
1461 (tuiDispatchCtrlChar): Update references.
1463 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
1466 * tui/tui-command.c: Rename tui/tuiCommand.c.
1467 * tui/tui-command.h: Rename tui/tuiCommand.h.
1468 * tui/tui-data.c: Rename tui/tuiData.c.
1469 * tui/tui-data.h: Rename tui/tuiData.h.
1470 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
1471 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
1472 * tui/tui-io.c: Rename tui/tuiIO.c.
1473 * tui/tui-io.h: Rename tui/tuiIO.h.
1474 * tui/tui-layout.c: Rename tui/tuiLayout.c.
1475 * tui/tui-layout.h: Rename tui/tuiLayout.h.
1476 * tui/tui-regs.c: Rename tui/tuiRegs.c.
1477 * tui/tui-regs.h: Rename tui/tuiRegs.h.
1478 * tui/tui-source.c: Rename tui/tuiSource.c.
1479 * tui/tui-source.h: Rename tui/tuiSource.h.
1480 * tui/tui-stack.c: Rename tui/tuiStack.c.
1481 * tui/tui-stack.h: Rename tui/tuiStack.h.
1482 * tui/tui-win.c: Rename tui/tuiWin.c.
1483 * tui/tui-win.h: Rename tui/tuiWin.h.
1484 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
1485 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
1486 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
1487 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
1488 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
1489 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
1490 * tui/tui-file.c: Update includes.
1491 * tui/tui-hooks.c: Update includes.
1492 * tui/tui-interp.c: Update includes.
1493 * tui/tui.c: Update includes.
1494 * Makefile.in: Update all tui/ dependencies.
1495 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
1497 * Makefile.in: Update copyright. Update dependencies.
1499 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
1502 2004-01-18 Andrew Cagney <cagney@redhat.com>
1504 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
1505 instead of register_gdbarch_init.
1507 * remote-sds.c (tohex): Delete unused function. Update copyright.
1508 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
1509 * v850-tdep.c (v850_register_virtual_size): Ditto.
1510 * target.c (normal_target_post_startup_inferior): Ditto.
1511 * source.c (ambiguous_line_spec): Ditto.
1512 * remote.c (adapt_remote_get_threadinfo): Ditto.
1513 * mi/mi-out.c (out_field_fmt): Ditto.
1514 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
1515 (output_control_change_notification): Ditto.
1516 * m68k-tdep.c (m68k_register_byte): Ditto.
1517 (m68k_remote_breakpoint_from_pc): Ditto.
1518 * ui-out.c (init_ui_out_state): Delete unused declaration.
1519 * stabsread.c (search_value): Ditto.
1520 * mi/mi-cmd-env.c (env_cli_command): Ditto.
1521 * maint.c (print_section_table): Ditto.
1522 * infrun.c (set_follow_fork_mode_command): Ditto.
1524 2004-01-18 Mark Kettenis <kettenis@gnu.org>
1526 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
1527 DW_CFA_def_cfa_exporession. Add support for
1528 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
1529 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
1531 2004-01-18 Andrew Cagney <cagney@redhat.com>
1533 * ocd.c: Update copyright.
1534 (bdm_read_register_command): Delete unused function.
1535 (_initialize_remote_ocd): Delete commented out reference.
1536 (get_quoted_char, reset_packet): Delete #if0ed function.
1537 (output_packet, put_quoted_char): Delete #if0ed function.
1538 (stu_put_packet, stu_get_packet): Delete #if0ed function.
1539 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
1540 (BDM_BREAKPOINT): Delete #if0ed macro.
1541 (remote_timeout): Delete #if0ed variable.
1543 2004-01-18 Mark Kettenis <kettenis@gnu.org>
1545 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
1546 (core-sol2.o): Remove dependency.
1547 * core-sol2.c: Remove file.
1549 2004-01-17 Andrew Cagney <cagney@redhat.com>
1551 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
1552 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
1555 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
1557 * remote.c: Update copyright years.
1559 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
1561 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
1563 2004-01-17 Andrew Cagney <cagney@redhat.com>
1565 * mdebugread.c: Update copyright.
1566 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
1567 (parse_type, parse_procedure): Ditto.
1568 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
1570 * cris-tdep.c (cris_store_struct_return): Put back accidently
1573 * gdbarch.sh: Update copyright year.
1574 * gdbarch.h, gdbarch.c: Re-generate.
1576 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
1578 Suggested by George Anzinger.
1579 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
1580 correct stack offset. Include unknown opcode numbers in the error
1583 2004-01-17 Andrew Cagney <cagney@redhat.com>
1585 * x86-64-tdep.c (x86_64_init_abi): No need to clear
1586 extract_struct_value_address, i386 does not set it.
1587 * sparc64-tdep.c (sparc64_init_abi): Do not set
1588 extract_struct_value_address, never called.
1589 (sparc64_extract_struct_value_address): Delete function.
1590 * m68hc11-tdep.c: Update copyright.
1591 (m68hc11_gdbarch_init): Delete redundant assignment of
1592 extract_struct_value_address.
1593 * i386-tdep.c: Update copyright.
1594 (i386_gdbarch_init): Do not set extract_struct_value_address,
1596 (i386_extract_struct_value_address): Delete function.
1597 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
1598 extract_struct_value_address, never called.
1599 (sparc32_extract_struct_value_address): #if 0 function. Add
1600 comments explaining its future.
1602 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
1604 * arm-tdep.c (arm_write_pc): New function.
1605 (arm_gdbarch_init): Call set_gdbarch_write_pc.
1607 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
1609 * breakpoint.c (must_shift_inst_regs): Delete.
1610 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
1611 and SHIFT_INST_REGS.
1612 * infcmd.c (step_1, step_1_continuation): Delete references to
1614 * infrun.c (keep_going): Likewise.
1615 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
1616 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
1618 2004-01-17 Andrew Cagney <cagney@redhat.com>
1620 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1621 * gdbarch.h, gdbarch.c: Re-generate.
1622 * infcmd.c (print_return_value): Delete reference to
1623 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1625 * cris-tdep.c (cris_gdbarch_init): Do not set
1626 deprecated_extract_struct_value_address.
1628 * xstormy16-tdep.c: Update copyright.
1629 (xstormy16_extract_struct_value_address): Update to current
1630 extract struct value address interface.
1631 (xstormy16_gdbarch_init): Set extract_struct_value_address.
1632 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
1633 current extract struct value address interface.
1634 (sh64_gdbarch_init): Set extract_struct_value_address.
1636 * cris-tdep.c: Update copyright.
1637 (cris_extract_struct_value_address): Delete function.
1638 (struct_return_address): Delete variable.
1639 (cris_store_struct_return): Do not set struct_return_address.
1641 * mcore-tdep.c: Update copyright.
1642 (mcore_extract_struct_value_address): Delete function. Update
1644 (mcore_gdbarch_init): Update.
1645 * mn10300-tdep.c: Update copyright.
1646 (mn10300_extract_struct_value_address): Delete function.
1647 (mn10300_gdbarch_init): Update.
1648 * v850-tdep.c: Update copyright.
1649 (v850_extract_struct_value_address): Delete.
1650 (v850_gdbarch_init): Update.
1651 * ns32k-tdep.c: Update copyright.
1652 (ns32k_extract_struct_value_address): Delete.
1653 (ns32k_gdbarch_init): Update.
1654 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
1655 (hppa_gdbarch_init): Update.
1656 * vax-tdep.c: Update copyright.
1657 (vax_extract_struct_value_address): Delete.
1658 (vax_gdbarch_init): Update.
1660 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
1661 * gdbarch.h, gdbarch.c: Re-generate.
1662 * procfs.c (procfs_fetch_registers): Delete reference to
1663 DEPRECATED_NPC_REGNUM.
1664 (procfs_store_registers): Ditto.
1665 * regcache.c (generic_target_write_pc): Simplify.
1666 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
1668 * core-sol2.c (fetch_core_registers): Replace
1669 DEPRECATED_NPC_REGNUM with equivalent tdep value.
1671 * hppa-tdep.c: Update copyright year.
1672 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
1674 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
1676 * mips-tdep.c (mips_write_pc): New function.
1677 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
1678 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
1679 (mips_find_saved_regs, mips_software_single_step: Ditto.
1680 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
1681 mips_init_extra_frame_info, mips_pop_frame): Ditto.
1683 2004-01-17 Andrew Cagney <cagney@redhat.com>
1685 * mips-tdep.c: Re-indent. Group functions by ABI.
1687 2004-01-17 Andrew Cagney <cagney@redhat.com>
1689 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
1690 * gdbarch.c: Re-generate.
1691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1692 DECR_PC_AFTER_BREAK to zero.
1693 * vax-tdep.c (vax_gdbarch_init): Ditto.
1694 * v850-tdep.c (v850_gdbarch_init): Ditto.
1695 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
1696 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1697 * sh-tdep.c (sh_gdbarch_init): Ditto.
1698 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1699 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1700 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1701 * mips-tdep.c (mips_gdbarch_init): Ditto.
1702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1704 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1705 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1706 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1707 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1709 * frv-tdep.c (frv_gdbarch_init): Ditto.
1710 * cris-tdep.c (cris_gdbarch_init): Ditto.
1711 * avr-tdep.c (avr_gdbarch_init): Ditto.
1712 * arm-tdep.c (arm_gdbarch_init): Ditto.
1713 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
1715 2004-01-17 J. Brobecker <brobecker@gnat.com>
1717 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
1718 Delete, no longer used.
1719 (read_subrange_type): New function, mostly extracted from
1721 (read_array_type): Replace extracted code by call to
1722 read_subrange_type().
1723 (dwarf2_get_attr_constant_value): New function.
1724 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
1725 (add_partial_symbol): Likewise.
1726 (process_die): Likewise.
1727 (new_symbol): Likewise.
1728 (read_type_die): Likewise.
1730 2004-01-16 Andrew Cagney <cagney@redhat.com>
1732 * symfile.c: Update copyright year.
1733 (compare_symbols): Delete unused function.
1734 * stabsread.c: Update copyright year.
1735 (lrs_general_complaint): Delete unused function.
1736 (ref_search_value): Ditto.
1737 (get_substring): Delete declaration.
1738 * sh64-tdep.c: Update copyright year.
1739 (sh64_get_gdb_regnum): Delete unused function.
1740 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
1741 Delete unused function.
1743 2004-01-17 Mark Kettenis <kettenis@gnu.org>
1745 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
1746 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
1748 2004-01-16 Andrew Cagney <cagney@redhat.com>
1750 Changes from Peter Schauer.
1751 * rs6000-tdep.c: Update copyright year.
1752 (rs6000_push_dummy_call): Update the stack pointer before
1753 accessing the corresponding stack region.
1754 * rs6000-nat.c: Update copyright year.
1755 (set_host_arch): Set "info.abfd" to "exec_bfd".
1757 2004-01-15 Mark Kettenis <kettenis@gnu.org>
1759 * blockframe.c: Update copyright year.
1760 (inside_entry_func): Don't treat a zero PC specially.
1762 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
1764 * gcore.c (gcore_copy_callback): Use paddr_d to print size
1766 (gcore_create_callback): Ditto. Skip any memory segment that has
1769 2004-01-14 David Carlton <carlton@kealia.com>
1771 Change symbols for C++ nested types to contain the fully qualified
1772 name, if possible. (At least in the DWARF-2 case.) Partial fix
1773 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
1775 * c-exp.y (qualified_type): Handle types nested within classes.
1776 * cp-namespace.c: Update comments.
1777 (cp_set_block_scope): Delete #if 0.
1778 (cp_lookup_nested_type): Handle types nested within classes.
1779 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
1781 (add_partial_symbol): Add the name of the enclosing namespace to
1783 (pdi_needs_namespace): New.
1784 (add_partial_namespace): Tweak comment.
1785 (add_partial_structure): New.
1786 (psymtab_to_symtab_1): Initialize processing_current_prefix
1788 (process_die): instead of here.
1789 (read_structure_scope): Try to figure out the name of the class or
1790 namespace that the structure might be defined within.
1791 (read_enumeration): Generate fully-qualified names, if possible.
1792 (read_namespace): Don't set name to NULL.
1793 (die_specification): New.
1794 (new_symbol): Generate fully-qualified names for types.
1795 (read_type_die): Determine appropriate prefix.
1796 (determine_prefix): New.
1797 (typename_concat): New.
1799 * valops.c (value_aggregate_elt): Pass NOSIDE to
1800 value_struct_elt_for_reference.
1801 (value_struct_elt_for_reference): Make static, add NOSIDE
1802 parameter, call value_maybe_namespace_elt as a last resort.
1803 (value_namespace_elt): Break out code into
1804 value_maybe_namespace_elt.
1805 (value_maybe_namespace_elt): New.
1807 2004-01-12 Andrew Cagney <cagney@redhat.com>
1809 * mips-tdep.c (mips_convert_register_p): Handle both raw and
1810 cooked floating-point registers.
1811 (mips_gdbarch_init): Set convert_register_p, register_to_value,
1812 and value_to_register.
1814 2004-01-13 Andrew Cagney <cagney@redhat.com>
1816 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
1817 * gdbarch.c: Re-generate.
1818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1819 FUNCTION_START_OFFSET.
1820 * v850-tdep.c (v850_gdbarch_init): Ditto.
1821 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
1822 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1823 * sh-tdep.c (sh_gdbarch_init): Ditto.
1824 * s390-tdep.c (s390_gdbarch_init): Ditto.
1825 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1826 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1827 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1828 * mips-tdep.c (mips_gdbarch_init): Ditto.
1829 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1830 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1832 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1833 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1834 * i386-tdep.c (i386_gdbarch_init): Ditto.
1835 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1836 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1837 * frv-tdep.c (frv_gdbarch_init): Ditto.
1838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1839 * cris-tdep.c (cris_gdbarch_init): Ditto.
1840 * avr-tdep.c (avr_gdbarch_init): Ditto.
1841 * arm-tdep.c (arm_gdbarch_init): Ditto.
1842 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1844 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1846 * infrun.c (follow_fork_mode_ask): Remove.
1847 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
1848 (follow_fork): Simplify and remove internal error for
1849 follow_fork_mode_ask.
1850 (_initialize_infrun): Update "set follow-fork-mode" help text.
1852 2004-01-13 Andrew Cagney <cagney@redhat.com>
1854 * configure.in: Update copyright year.
1855 (build_warnings): Add -Wunused-label.
1856 * configure: Re-generate.
1858 2004-01-12 Andrew Cagney <cagney@redhat.com>
1860 * exec.h (exec_ops): Make "extern".
1862 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
1863 the function is void.
1864 (mips_pseudo_register_write): Ditto.
1866 2004-01-12 Andrew Cagney <cagney@redhat.com>
1868 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
1869 call. Never defined.
1870 * sparc-tdep.h (struct frame_info): Add opaque declaration.
1871 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
1872 (struct sparc_gregset, struct regcache): Ditto.
1873 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
1875 2004-01-12 Andrew Cagney <cagney@redhat.com>
1877 * mi/ChangeLog: Delete file. Renamed to ...
1878 * mi/ChangeLog-1999-2003: New file.
1879 * tui/ChangeLog: Delete file. Renamed to ...
1880 * tui/ChangeLog-1998-2003: New file.
1882 2004-01-11 Mark Kettenis <kettenis@gnu.org>
1884 * sparc64nbsd-tdep.c: Include "regset.h".
1885 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
1887 (fetch_core_registers): Remove function.
1888 (sparc64nbsd_core_fns): Remove variable.
1889 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
1891 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
1892 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
1893 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
1895 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
1896 sparc_extract_struct_value_address.
1897 (sparc32_gdbarch_init): Set extract_struct_value_address.
1898 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
1900 (sparc64_init_abi): Set extract_struct_value_address. Don't set
1901 return_value_on_stack.
1903 * NEWS: Mention that %cs and %ss have been added to the AMD64
1906 * frame.c: Update copyright year.
1907 (get_prev_frame): Improve comment.
1909 * sparc64fbsd-tdep.c: Include "regset.h".
1910 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
1912 (fetch_core_registers): Remove function.
1913 (sparc64fbsd_core_fns): Remove variable.
1914 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
1916 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
1917 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
1918 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
1920 * sparcnbsd-tdep.c: Include "regset.h".
1921 (fetch_core_registers): Remove function.
1922 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
1923 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
1925 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
1927 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
1929 * sparc-tdep.h (struct regset): Provide opaque declaration.
1930 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
1931 fpregset and sizeof_fpregset members.
1932 * sparc-tdep.c (struct regset): Provide opaque declaration.
1933 (sparc_regset_from_core_section): New function.
1934 (sparc32_gdbarch_init): Initialize TDEP->gregset,
1935 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
1936 Set regset_from_core_section when appropriate.
1938 2004-01-10 Mark Kettenis <kettenis@gnu.org>
1940 * x86-64-tdep.c (amd64_non_pod_p): New function.
1941 (amd64_classify_aggregate): Return class memory for non-POD
1942 C++ structure types.
1944 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
1945 argument. Use it to reserve a register if necessary.
1946 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
1947 amd64_push_arguments.
1949 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
1951 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
1952 register numbers in comments.
1953 * x86-64-tdep.h: Update copyright year.
1954 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
1955 Adjust for addition of %cs and %ss.
1956 * amd64fbsd-nat.c: Update copyright year.
1957 (reg_offset): Add register offsets for %cs and %ss.
1958 * amd64fbsd-tdep.c: Update copyright year.
1959 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
1960 (amd64fbsd_sc_reg_offset): Likewise.
1961 * x86-64-linux-nat.c: Update copyright year.
1962 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
1964 * amd64nbsd-nat.c: Update copyright year.
1965 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
1966 * amd64nbsd-tdep.c: Update copyright year.
1967 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
1968 * x86-64-linux-tdep.c: Update copyright year.
1969 (user_to_gdb_regmap): Add mapping for %cs and %ss.
1970 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
1971 * regformats/reg-x86-64.dat: Add %cs and %ss.
1973 * blockframe.c (inside_entry_func): Reformat. Introduce new local
1974 variables to prevent long lines. Update comments to reflect
1977 2004-01-09 David Carlton <carlton@kealia.com>
1979 Checked in by Elena Zannoni <ezannoni@redhat.com>.
1980 * dwarf2read.c (read_namespace): Pull out name-generating code
1981 into namespace_name. Rename previous_namespace to previous_prefix
1982 and processing_current_namespace to processing_current_prefix..
1983 (namespace_name): New function.
1984 (add_partial_symbol): Substitute uses of pdi->name with
1986 * cp-support.h: Rename processing_current_namespace to
1987 processing_current_prefix.
1988 Update copyright year.
1989 * cp-namespace.c: Rename processing_current_namespace to
1990 processing_current_prefix.
1991 Update copyright year.
1993 2004-01-09 Andrew Cagney <cagney@redhat.com>
1995 * jv-valprint.c, ser-unix.c: Add missing copyright years.
1997 2004-01-09 Mark Kettenis <kettenis@gnu.org>
1999 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
2001 (process_one_symbol): Deal with N_PATCH stabs.
2003 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
2005 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
2007 Update copyright year.
2009 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
2011 * config/pa/tm-hppa.h: Update extern declarations for
2012 hppa32_hpux_frame_saved_pc_in_sigtramp,
2013 hppa32_hpux_frame_base_before_sigtramp, and
2014 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
2016 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
2018 * config/pa/tm-hppah.h: Update copyright years.
2020 2004-01-08 Andrew Cagney <cagney@redhat.com>
2022 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
2023 (mips_o32_reg_struct_has_addr): Delete function.
2024 (mips_gdbarch_init): Update.
2025 (mips_extract_struct_value_address): Delete function.
2027 2004-01-08 David Mosberger <davidm@hpl.hp.com>
2029 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
2032 2004-01-07 Andrew Cagney <cagney@redhat.com>
2034 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
2035 architecture's elf flags (when available).
2037 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
2038 FPU to the start, check the MIPS FPU when looking for an old
2040 (set_mipsfpu_single_command): Update the architecture.
2041 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
2043 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
2044 (mips_mask_address_p): Add "tdep" parameter.
2045 (show_mask_address, mips_addr_bits_remove): Update.
2046 (mips_dump_tdep): Update.
2047 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
2048 (MIPS_STACK_ARGSIZE): Delete macro.
2049 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
2050 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
2051 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
2052 (mips_dump_tdep): Update.
2053 (MIPS_SAVED_REGSIZE): Delete macro.
2054 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
2055 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
2056 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
2057 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
2058 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
2059 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
2060 (mips_pop_frame, return_value_location): Update.
2061 (mips_n32n64_return_value, mips_dump_tdep): Update.
2063 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
2066 * mips-tdep.c: Update copyright.
2067 (mips_gdbarch_init): Merge two code blocks handling the register
2068 name and number layout.
2070 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
2072 * tracepoint.c (validate_actionline): Fix segv at EOF
2074 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
2076 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
2077 properly for static fields.
2079 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
2080 Jason Molenda <jmolenda@apple.com>
2082 * disasm.c: Update copyright to include 2004.
2083 (do_mixed_source_and_assembly): For uiout asm list
2084 and tuple cleanups, initialize to null_cleanup instead of
2085 NULL and do so prior to loop. Only reset when we close off
2086 the tuple/list. Move check for whether to close off the
2087 asm tuple/list to after dump_insns call where it will be run
2088 on each loop iteration.
2090 2004-01-05 Andrew Cagney <cagney@redhat.com>
2092 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
2093 should be a switch case and not a label.
2094 * mips-tdep.c (mips32_next_pc): Delete unused labels
2095 "greater_equal_branch" and "less_zero_branch".
2096 * jv-valprint.c (java_print_value_fields): Delete unused label
2099 * target.c (unpush_target): Only close a target that is in the
2102 2004-01-05 Mark Kettenis <kettenis@gnu.org>
2104 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
2105 address from [sp + 64] instead of %o2.
2107 * frame.c (get_prev_frame): Don't try to unwind the PC. This
2108 fixes PR backtrace/1476.
2110 2004-01-05 Andrew Cagney <cagney@redhat.com>
2112 * libunwind-frame.h (struct frame_id): Add opaque declaration,
2113 move to start of file.
2114 * i386-tdep.h (struct regcache): Add opaque declaration.
2115 * config/ia64/nm-linux.h (struct target_ops): Add opaque
2117 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
2118 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
2119 * win32-nat.c (fake_create_process): Use ISO C style definition.
2120 * stabsread.c (define_symbol): Delete #ifndef
2121 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
2122 stabs_argument_has_addr call, macro never defined.
2124 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
2126 * op50-rom.c: Delete.
2127 * w89k-rom.c: Delete.
2128 * Makefile.in: Remove references.
2130 2004-01-04 Mark Kettenis <kettenis@gnu.org>
2132 * x86-64-tdep.c: Update copyright year.
2133 (struct amd64_register_info): Rename from x86_64_register_info.
2134 (amd64_register_info): Rename from x86_64_register_info.
2135 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
2136 (amd64_register_name): Rename from x86_64_register_name.
2137 (amd64_register_type): Rename from x86_64_register_type.
2138 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
2139 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
2140 (amd64_dwarf_reg_to_regnum): Rename from
2141 x86_64_dwarf_reg_to_regnum.
2142 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
2143 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
2144 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
2145 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
2146 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
2147 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
2148 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
2149 (amd64_frame_cache): Rename from x86_64_frame_cache.
2150 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
2151 (amd64_frame_prev_register): Rename from
2152 x86_64_frame_prev_register.
2153 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
2154 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
2155 (amd64_sigtramp_frame_cache): Rename from
2156 x86_64_sigtramp_frame_cache.
2157 (amd64_sigtramp_frame_prev_register): Rename from
2158 x86_64_sigtramp_frame_prev_register.
2159 (amd64_sigtramp_frame_unwind): Rename from
2160 x86_64_sigtramp_frame_unwind.
2161 (amd64_sigtramp_frame_sniffer): Rename from
2162 x86_64_sigtramp_frame_sniffer.
2163 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
2164 (amd64_frame_base): Rename from x86_64_frame_base.
2165 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
2166 (amd64_frame_align): Rename from x86_64_frame_align.
2167 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
2168 (amd64_regset_from_core_section): Rename from
2169 x86_64_regset_from_core_section.
2170 (x86_64_init_abi): Update comments.
2172 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
2174 * MAINTAINERS (write after approval): Add myself.
2176 2004-01-04 Mark Kettenis <kettenis@gnu.org>
2178 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2181 2004-01-04 Mark Kettenis <kettenis@gnu.org>
2183 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
2184 such that it mentions a specific version of GCC that exhibits this
2187 2004-01-03 Mark Kettenis <kettenis@gnu.org>
2189 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
2190 structure that has a single `float' member, store it in %f1 in
2193 * sparc-sol2-nat.c: Add missing '\'.
2195 * sparc-tdep.c (sparc32_return_value): New function.
2196 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
2198 (sparc32_gdbarch_init): Set return_value, don't set
2199 extract_return_value, store_return_value, use_struct_convention
2200 and return_value_on_stack.
2202 * sparc-sol2-nat.c: Add missing ')'.
2204 2004-01-03 J. Brobecker <brobecker@gnat.com>
2206 * infrun.c (handle_step_into_function): New function.
2207 (handle_inferior_event): Extract out some code into the new
2210 2004-01-03 J. Brobecker <brobecker@gnat.com>
2212 * infrun.c (handle_inferior_event): Move the declaration of
2213 real_stop_pc inside the if blocks where it is used.
2215 2004-01-03 Mark Kettenis <kettenis@gnu.org>
2217 * sparc64-tdep.c (sparc64_16_byte_align_p)
2218 (sparc64_store_floating_fields, sparc64_store_floating_fields):
2219 Use check_typedef to get subtypes of structures and unions.
2220 (sparc64_store_return_value): Fix calculation of the appropriate
2221 offset into VALBUF when storing a structure or union.
2222 (sparc64_return_value): New function.
2223 (sparc64_use_struct_convention): Remove function.
2224 (sparc64_init_abi): Set return_value, don't set
2225 extract_return_value, store_return_value and
2226 use_struct_convention.
2228 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
2230 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
2231 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
2232 gdb/config/alpha/xm-alphaosf.h,
2233 gdb/config/powerpc/tm-ppcle-eabi.h,
2234 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
2235 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
2236 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
2237 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
2238 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
2239 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
2240 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
2241 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
2242 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
2243 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
2244 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
2245 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
2246 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
2247 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
2248 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
2249 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
2250 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
2251 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
2252 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
2253 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
2254 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
2255 Remove lines for .cvsignore files.
2257 2004-01-03 J. Brobecker <brobecker@gnat.com>
2259 * infrun.c: Back out the previous change.
2261 2004-01-03 Mark Kettenis <kettenis@gnu.org>
2263 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
2264 sparc-*-sunos4* to the list of REMOVED configurations.
2266 * configure.tgt: Add back sparc-*-vxworks*.
2267 * remote-vxsparc.c: Remove all includes except for "defs.h",
2268 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
2269 Include "sparc-tdep.h".
2270 (SPARC_R_G1): New define.
2271 (vxsparc_gregset): New variable.
2272 (ext_format_sparc): Remove extern declaration.
2273 (vx_read_register): Rewrite to use sparc32_supply_gregset and
2274 sparc32_supply_fpregset.
2275 (vx_write_register): Rewrite to use sparc32_collect_gregset,
2276 sparc_collect_rwindow and sparc32_collect_fpregset.
2277 * config/sparc/tm-vxworks.h: New file, based on recently removed
2279 * config/sparc/vxworks.mt: New file, based on recently removed
2282 2004-01-03 J. Brobecker <brobecker@gnat.com>
2284 * infrun.c (handle_step_into_function): New function.
2285 (handle_inferior_event): Extract out some code into the new
2288 2004-01-02 Mark Kettenis <kettenis@gnu.org>
2290 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
2291 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
2292 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
2293 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
2294 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
2295 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
2296 (sparc_nat_h): New variable.
2297 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
2298 (tm-sun4os4.h): Remove dependency.
2299 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
2300 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
2301 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
2302 sparc-tdep.o): Update dependencies.
2303 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
2304 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
2305 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
2307 * configure.host: Remove existing sparc-*-lynxos*,
2308 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
2309 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
2310 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
2311 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
2313 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
2314 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
2315 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
2316 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
2317 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
2318 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
2319 sparc64-*-solaris2* and sparc64-*-* triplets.
2320 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
2321 "symtab.h" and "objfiles.h".
2322 (BIAS): Remove define.
2323 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
2324 (X_DISP19): Remove macros.
2325 (sparc_fetch_instruction): Remove function.
2326 (struct gdbarch_tdep): Remove definition.
2327 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
2328 (sparc_breakpoint_from_pc): Remove function.
2329 (struct sparc64_frame_cache): Remove definition.
2330 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
2331 sparc64_unwind_pc): Remove functions.
2332 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
2333 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
2334 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
2335 (sparc64_frame_cache): Change return type to `struct
2336 sparc_frame_cache *'. Simply call sparc_frame_cache.
2337 (sparc64_frame_this_id, sparc64_frame_prev_register,
2338 sparc64_frame_base_address): Use `struct sparc_frame_cache'
2339 instead of `struct sparc64_frame_cache.
2340 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
2341 sparc_analyze_control_transfer, sparc_software_single_step,
2342 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
2343 _initialize_sparc64_tdep): Remove functions.
2344 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
2345 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
2347 (sparc64_supply_gregset, sparc64_collect_gregset,
2348 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
2349 (sparc64_init_abi): New function.
2350 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
2351 inclusion guard. Include "sparc-tdep.h".
2353 (r_tstate_offset, r_fprs_offset): New defines.
2354 (enum sparc_regnum): Remove defenition.
2355 (enum sparc64_regnum): Reformat.
2356 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
2357 (sparc64_init_abi, sparc64_supply_gregset,
2358 sparc64_collect_gregset, sparc64_supply_fpregset,
2359 sparc64_collect_fpregset): New prototypes.
2360 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
2361 Add extern declarations.
2362 (sparc64_sol2_init_abi): New prototype.
2363 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
2364 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
2366 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
2368 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
2370 (_initialize_sparc64fbsd_nat): Remove initialization of
2371 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
2372 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
2373 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
2374 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
2375 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
2376 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
2377 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
2378 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
2379 (sparc64fbsd_r_y_offset): Remove variables.
2380 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
2381 Make static and const.
2382 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
2383 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
2385 (sparc64fbsd_gregset): New variable.
2386 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
2387 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
2388 and sparc64_supply_fpregset.
2389 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
2390 (sparc64fbsd_sigtramp_frame_this_id)
2391 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
2392 (sparc64fbsd_sigtramp_frame_unwind): New variable.
2393 (sparc64fbsd_sigtramp_frame_sniffer): New function.
2394 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
2395 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
2396 * sparcnbsd-tdep.c: Update copyright year. Include
2397 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
2398 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
2399 "value.h" and "sparcnbsd-tdep.h".
2400 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
2401 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
2402 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
2403 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
2405 (sparcnbsd_gregset): New variable.
2406 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
2407 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
2408 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
2409 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
2410 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
2412 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
2413 (sparc32nbsd_sigcontext_frame_this_id)
2414 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
2415 (sparc32nbsd_sigcontext_frame_unwind): New variable.
2416 (sparc32nbsd_sigtramp_frame_sniffer): New function.
2417 (sparcnbsd_get_longjmp_target_32,
2418 sparcnbsd_get_longjmp_target_64): Remove functions.
2419 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
2420 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
2421 sparcnbsd_init_elf): Remove.
2422 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
2423 (sparcnbsd_elf_init_abi): New functions.
2424 (_initialize_sparcnbsd_tdep): New prototype.
2425 (_initialize_sparnbsd_tdep): Update.
2426 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
2427 corelow.o. Add sparc64-nat.o and sparc-nat.o.
2428 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
2429 * config/sparc/linux.mh: Update comment.
2430 (XM_FILE, HOST_IPC): Remove variables.
2431 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
2433 * config/sparc/linux.mt: Update comment.
2434 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
2435 * config/sparc/nbsd.mt: Reformat.
2436 * config/sparc/nbsd64.mh: Update comment.
2437 (NATDEPFILES): Add sparc-nat.o.
2438 * config/sparc/nbsd64.mt: Update comment.
2439 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
2440 (TM_FILE): Set to tm-nbsd.h.
2441 * config/sparc/nbsdelf.mh: Update comment.
2442 (NATDEPFILES): Add sparc-nat.o.
2444 * config/sparc/nbsdaout.mh: Update comment.
2445 (NATDEPFILES): Add sparc-nat.o
2447 * config/sparc/nm-linux.h: Update copyright year. Don't include
2448 "config/nm-svr4.h" and "solib.h". Add protection against multiple
2450 (KERNEL_U_SIZE): Remove define.
2451 (kernel_u_size): Remove prototype.
2452 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
2453 * config/sparc/nm-nbsd.h: Update copyright. Don't include
2455 (CHILD_PREPARE_TO_STORE): Remove define.
2456 * config/sparc/nm-nbsdaout.h: Tweak some comments.
2457 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
2458 sparcnbsd-nat.c: Rewrite files.
2459 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
2460 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
2461 sparcnbsd-tdep.h: Remove files.
2462 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
2463 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
2464 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
2465 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
2466 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
2467 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
2468 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
2469 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
2470 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
2471 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
2472 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
2473 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
2474 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
2475 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
2476 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
2477 * config/sparc/linux64.mh, config/sparc/linux64.mt,
2478 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
2479 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
2480 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
2482 2004-01-02 Andrew Cagney <cagney@redhat.com>
2484 From 2003-12-18 Kazuhiro Inaoka:
2485 * configure.host: Add m32r-linux target.
2487 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
2489 * top.c (print_gdb_version): Update year to 2004.
2491 2004-01-02 Mark Mitchell <mark@codesourcery.com>
2493 * MAINTAINERS: Add myself to the write-after-approval category.
2495 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
2497 From Bernardo Innocenti <bernie@develer.com>:
2498 * configure.tgt: Add uClinux target.
2500 2004-01-02 Andrew Cagney <cagney@redhat.com>
2502 * utils.c (do_my_cleanups): Make static, add forward declaration.
2503 * defs.h (do_my_cleanups): Delete declaration.
2505 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
2507 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
2510 2004-01-02 Mark Kettenis <kettenis@gnu.org>
2512 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
2514 * configure, config.in: Regenerate.
2516 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
2517 tui/ChangeLog-1998-2003.
2523 version-control: never