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