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