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