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