fb8f036908b6192ff5f3dce9624b1870926d05e6
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-01-23 David Carlton <carlton@kealia.com>
2
3 Partial workaround for PR c++/1511:
4 * cp-namespace.c: Include frame.h.
5 (cp_lookup_transparent_type): New
6 (cp_lookup_transparent_type_loop): New.
7 * cp-support.h: Declare cp_lookup_transparent_type.
8 * symtab.c (basic_lookup_transparent_type): Renamed from
9 lookup_transparent_type.
10 (lookup_transparent_type): Replace old body by a call to
11 current_language->la_lookup_transparent_type.
12 * symtab.h: Update copyright. Declare
13 basic_lookup_transparent_type.
14 * language.h: Update copyright.
15 (struct language_defn): Add la_lookup_transparent_type.
16 * language.c: Update copyright.
17 (unknown_language_defn): Add basic_lookup_transparent_type.
18 (auto_language_defn): Add basic_lookup_transparent_type.
19 (local_language_defn): Add basic_lookup_transparent_type.
20 * ada-lang.c: Update copyright.
21 (ada_language_defn): Add basic_lookup_transparent_type.
22 * c-lang.c: Update copyright.
23 (c_language_defn): Add basic_lookup_transparent_type.
24 (cplus_language_defn): Add basic_lookup_transparent_type.
25 (asm_language_defn): Add basic_lookup_transparent_type.
26 (minimal_language_defn): Add basic_lookup_transparent_type.
27 * f-lang.c: Update copyright.
28 (f_language_defn): Add basic_lookup_transparent_type.
29 * jv-lang.c: Update copyright.
30 (java_language_defn): Add basic_lookup_transparent_type.
31 * m2-lang.c: Update copyright.
32 (m2_language_defn): Add basic_lookup_transparent_type.
33 * objc-lang.c: Update copyright.
34 (objc_language_defn): Add basic_lookup_transparent_type.
35 * p-lang.c: Update copyright.
36 (p_language_defn): Add basic_lookup_transparent_type.
37 * scm-lang.c: Update copyright.
38 (scm_language_defn): Add basic_lookup_transparent_type.
39 * Makefile.in (cp-namespace.o): Depend on frame.h.
40
41 2004-01-23 David Carlton <carlton@kealia.com>
42
43 Patch for PR c++/1520:
44 * dwarf2read.c (read_func_scope): Set processing_current_prefix
45 properly if we have a specification die.
46 (determine_prefix_aux): Rename from determine_prefix.
47 (determine_prefix): Like the old determine_prefix, but never
48 returns NULL.
49
50 2004-01-23 Theodore A. Roth <troth@openavr.org>
51
52 * avr-tdep.c: Update copyright.
53 (avr_iaddr_p): Delete unused function.
54 (avr_saddr_p): Delete unused function.
55
56 2004-01-23 David Carlton <carlton@kealia.com>
57
58 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
59 Fix for PR symtab/1534.
60
61 2004-01-23 Mark Kettenis <kettenis@gnu.org>
62
63 * NEWS (New native configurations): Mention OpenBSD/sparc and
64 OpenBSD/sparc64.
65 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
66 * configure.host: Likewise.
67 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
68 handler for OpenBSD.
69 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
70
71 2004-01-22 Mark Kettenis <kettenis@gnu.org>
72
73 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
74 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
75
76 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
77 * cli/cli-cmds.c (shell_escape): Likewise.
78
79 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
80 OpenBSD .note.openbsd.ident sections.
81
82 2004-01-22 David Carlton <carlton@kealia.com>
83
84 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
85 get_scope_pc_bounds.
86 (read_file_scope): Ditto.
87 (get_scope_pc_bounds): New function, produced by extracting code
88 from the above two functions, consolidating it, and adding support
89 for DW_TAG_namespace.
90
91 2004-01-22 Mark Kettenis <kettenis@gnu.org>
92
93 * osabi.c (MAX_NOTESZ): New define.
94 (check_note): New function.
95 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
96 check_note.
97
98 2004-01-21 Roland McGrath <roland@redhat.com>
99
100 * MAINTAINERS (write after approval): Add myself.
101
102 2004-01-21 Eli Zaretskii <eliz@gnu.org>
103
104 * utils.c (init_page_info): Move declarations of `rows' and
105 `cols' before the __GO32__-specific code. Move the closing brace
106 outside the #ifdef __GO32__..#endif block.
107 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
108
109 2004-01-21 Paul Brook <paul@codesourcery.com>
110
111 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
112 BPSTAT_WHAT_CHECK_SHLIBS.
113
114 2004-01-21 Paul Brook <paul@codesourcery.com>
115
116 * MAINTAINERS: Add myself to write-after-approval.
117
118 2004-01-20 Andrew Cagney <cagney@redhat.com>
119
120 * ax-gdb.c (print_axs_value): Delete unused function.
121 * jv-lang.c (java_lookup_type): Delete unused function.
122 * cli/cli-dump.c (dump_filetype): Delete unused function.
123 * remote-mips.c (remote_mips_insert_hw_breakpoint)
124 (remote_mips_remove_hw_breakpoint): Delete unused functions.
125 (mips_getstring): Delete unused function.
126 (pmon_insert_breakpoint): Delete #if0ed function.
127 (PMON_MAX_BP): Delete #if0ed MACRO.
128 (mips_pmon_bp_info): Delete #if0ed variable.
129 (pmon_remove_breakpoint): Delete #if0ed function.
130 * monitor.c (monitor_write_even_block): Delete unused function.
131 (monitor_write_memory_block): Delete #if0ed code.
132 * dink32-rom.c (dink32_load): Delete unused function.
133 (_initialize_dink32_rom): Delete #if0ed code.
134 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
135
136 * tui/tui-command.c: Update references.
137 * tui/tui-io.c: Update references.
138 * tui/tui-command.h: Update copyright.
139 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
140
141 * source.c (ambiguous_line_spec): Delete never-defined function.
142 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
143 * gdbtypes.c (add_name, add_mangled_type): Ditto.
144 * cli/cli-cmds.c (validate_comname): Ditto.
145
146 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
147 "tui-data.h".
148 (tui_set_disassem_content): Rename tuiSetDisassemContent.
149 (tui_show_disassem): Rename tuiShowDisassem.
150 (tui_show_disassem_and_update_source): Rename
151 tuiVerticalDisassemScroll.
152 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
153 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
154 * tui/tui.h: Update copyright.
155 (enum tui_status): Define.
156 * tui/tui-data.h (enum tui_scroll_direction): Define.
157 * tui/tui-disasm.c: Update copyright. Update references.
158 * tui/tui-winsource.c: Update copyright. Update references.
159 * tui/tui-win.c: Update references.
160 * tui/tui-layout.c: Update references.
161
162 2004-01-20 Andrew Cagney <cagney@redhat.com>
163
164 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
165 sym2 to start of block.
166
167 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
168
169 * MAINTAINERS: Delete mmalloc.
170 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
171 * NEWS: Mention removal of --with-malloc.
172 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
173 * config.in: Regenerate.
174 * configure: Regenerate.
175 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
176 USE_MMALLOC, MMCHECK_FORCE.
177 * gdbinit.in: Remove mmalloc.
178 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
179 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
180 * config/i386/go32.mh: Likewise.
181 * config/i386/interix.mh: Likewise.
182 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
183
184 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
185
186 * linespec.c (decode_variable, symtab_from_filename): Call
187 error_silent with error message instead of throwing an exception
188 directly.
189 * defs.h (error_silent, error_output_message): Add prototypes.
190 (catch_exceptions_with_msg): Ditto.
191 * utils.c (error_silent, error_output_message): New functions.
192 * top.c (catch_exceptions_with_msg): New function.
193
194 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
195
196 * mi/mi-cmds.h (enum print_values): Add definition.
197
198 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
199 type and value for simple data types and just the name and type
200 for complex ones, if required.
201
202 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
203 children, if required.
204
205 2004-01-19 Kevin Buettner <kevinb@redhat.com>
206
207 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
208 unused declarations.
209
210 2004-01-19 Andrew Cagney <cagney@redhat.com>
211
212 * top.h (mapped_symbol_files): Delete declaration.
213 * main.c (captured_main): Delete option "m" and "mapped".
214 * objfiles.c (mapped_symbol_files): Delete variable.
215 * symfile.c (symbol_file_command): Delete mmap code.
216 (symbol_file_add_with_addrs_or_offsets): Ditto.
217 (add_symbol_file_command, reread_separate_symbols): Ditto.
218 * objfiles.h (OBJF_MAPPED): Delete.
219 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
220 (free_objfile) [USE_MMALLOC]: Ditto.
221 (open_existing_mapped_file): Delete function.
222 (open_mapped_file): Delete function.
223 (map_to_file): Delete function.
224
225 2004-01-19 Kevin Buettner <kevinb@redhat.com>
226
227 * infrun.c (step_into_function): Account for possible breakpoint
228 adjustment when computing ``stop_func_start''.
229
230 2004-01-19 Kevin Buettner <kevinb@redhat.com>
231
232 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
233 the region size against the size of a pointer, not the size of
234 a register as given by DEPRECATED_REGISTER_SIZE.
235
236 2004-01-19 Andrew Cagney <cagney@redhat.com>
237
238 * tui/tui-regs.h: Include "tui-data.h".
239 (tuiFirstRegElementNoInLine): Delete declaration.
240 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
241 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
242 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
243 (tui_calculate_regs_column_count): Rename
244 tuiCalculateRegsColumnCount.
245 (tui_check_register_values): Rename tuiCheckRegisterValues.
246 (tui_show_registers): Rename tuiShowRegisters.
247 (tui_display_registers_from_line): Rename
248 tuiDisplayRegistersFromLine.
249 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
250 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
251 (tui_first_reg_element_no_inline): Rename
252 tuiFirstRegElementNoInLine.
253 * tui/tui-data.h: Update copyright.
254 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
255 * tui/tui-windata.c: Update copyright, update references.
256 * tui/tui-regs.c: Update copyright, update references.
257 * tui/tui-win.c: Update copyright, update references.
258 * tui/tui-layout.c: Update copyright, update references.
259
260 2004-01-18 Andrew Cagney <cagney@redhat.com>
261
262 * tui/tui-io.c: Update copyright.
263 (key_is_end_sequence, key_is_backspace): New functions.
264 (key_is_command_char, key_is_start_sequence): New function.
265 (tui_getc): Update references.
266 * tui/tui-io.h: Update copyright.
267 (m_tuiStartNewLine): Delete macro.
268 (m_isBackspace, m_isDeleteChar): Delete macros.
269 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
270 (m_isNextPage, m_isPrevPage): Delete macros.
271 (m_isLeftArrow, m_isRightArrow): Delete macros.
272 (m_isXdbStyleCommandChar): Delete macro.
273 (key_is_start_sequence): Declare, replace m_isStartSequence.
274 (key_is_end_sequence): Declare, replace m_isEndSequence.
275 (key_is_backspace): Declare ,replace m_isBackspace.
276 (key_is_command_char): Declare, replace m_isCommandChar.
277 * tui/tui-command.c: Update copyright.
278 (tuiDispatchCtrlChar): Update references.
279
280 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
281 tuiSourceWin.h.
282
283 * tui/tui-command.c: Rename tui/tuiCommand.c.
284 * tui/tui-command.h: Rename tui/tuiCommand.h.
285 * tui/tui-data.c: Rename tui/tuiData.c.
286 * tui/tui-data.h: Rename tui/tuiData.h.
287 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
288 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
289 * tui/tui-io.c: Rename tui/tuiIO.c.
290 * tui/tui-io.h: Rename tui/tuiIO.h.
291 * tui/tui-layout.c: Rename tui/tuiLayout.c.
292 * tui/tui-layout.h: Rename tui/tuiLayout.h.
293 * tui/tui-regs.c: Rename tui/tuiRegs.c.
294 * tui/tui-regs.h: Rename tui/tuiRegs.h.
295 * tui/tui-source.c: Rename tui/tuiSource.c.
296 * tui/tui-source.h: Rename tui/tuiSource.h.
297 * tui/tui-stack.c: Rename tui/tuiStack.c.
298 * tui/tui-stack.h: Rename tui/tuiStack.h.
299 * tui/tui-win.c: Rename tui/tuiWin.c.
300 * tui/tui-win.h: Rename tui/tuiWin.h.
301 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
302 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
303 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
304 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
305 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
306 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
307 * tui/tui-file.c: Update includes.
308 * tui/tui-hooks.c: Update includes.
309 * tui/tui-interp.c: Update includes.
310 * tui/tui.c: Update includes.
311 * Makefile.in: Update all tui/ dependencies.
312 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
313
314 * Makefile.in: Update copyright. Update dependencies.
315
316 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
317 problem.
318
319 2004-01-18 Andrew Cagney <cagney@redhat.com>
320
321 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
322 instead of register_gdbarch_init.
323
324 * remote-sds.c (tohex): Delete unused function. Update copyright.
325 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
326 * v850-tdep.c (v850_register_virtual_size): Ditto.
327 * target.c (normal_target_post_startup_inferior): Ditto.
328 * source.c (ambiguous_line_spec): Ditto.
329 * remote.c (adapt_remote_get_threadinfo): Ditto.
330 * mi/mi-out.c (out_field_fmt): Ditto.
331 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
332 (output_control_change_notification): Ditto.
333 * m68k-tdep.c (m68k_register_byte): Ditto.
334 (m68k_remote_breakpoint_from_pc): Ditto.
335 * ui-out.c (init_ui_out_state): Delete unused declaration.
336 * stabsread.c (search_value): Ditto.
337 * mi/mi-cmd-env.c (env_cli_command): Ditto.
338 * maint.c (print_section_table): Ditto.
339 * infrun.c (set_follow_fork_mode_command): Ditto.
340
341 2004-01-18 Mark Kettenis <kettenis@gnu.org>
342
343 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
344 DW_CFA_def_cfa_exporession. Add support for
345 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
346 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
347
348 2004-01-18 Andrew Cagney <cagney@redhat.com>
349
350 * ocd.c: Update copyright.
351 (bdm_read_register_command): Delete unused function.
352 (_initialize_remote_ocd): Delete commented out reference.
353 (get_quoted_char, reset_packet): Delete #if0ed function.
354 (output_packet, put_quoted_char): Delete #if0ed function.
355 (stu_put_packet, stu_get_packet): Delete #if0ed function.
356 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
357 (BDM_BREAKPOINT): Delete #if0ed macro.
358 (remote_timeout): Delete #if0ed variable.
359
360 2004-01-18 Mark Kettenis <kettenis@gnu.org>
361
362 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
363 (core-sol2.o): Remove dependency.
364 * core-sol2.c: Remove file.
365
366 2004-01-17 Andrew Cagney <cagney@redhat.com>
367
368 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
369 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
370 enums.
371
372 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
373
374 * remote.c: Update copyright years.
375
376 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
377
378 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
379
380 2004-01-17 Andrew Cagney <cagney@redhat.com>
381
382 * mdebugread.c: Update copyright.
383 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
384 (parse_type, parse_procedure): Ditto.
385 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
386
387 * cris-tdep.c (cris_store_struct_return): Put back accidently
388 deleted function.
389
390 * gdbarch.sh: Update copyright year.
391 * gdbarch.h, gdbarch.c: Re-generate.
392
393 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
394
395 Suggested by George Anzinger.
396 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
397 correct stack offset. Include unknown opcode numbers in the error
398 message.
399
400 2004-01-17 Andrew Cagney <cagney@redhat.com>
401
402 * x86-64-tdep.c (x86_64_init_abi): No need to clear
403 extract_struct_value_address, i386 does not set it.
404 * sparc64-tdep.c (sparc64_init_abi): Do not set
405 extract_struct_value_address, never called.
406 (sparc64_extract_struct_value_address): Delete function.
407 * m68hc11-tdep.c: Update copyright.
408 (m68hc11_gdbarch_init): Delete redundant assignment of
409 extract_struct_value_address.
410 * i386-tdep.c: Update copyright.
411 (i386_gdbarch_init): Do not set extract_struct_value_address,
412 never called.
413 (i386_extract_struct_value_address): Delete function.
414 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
415 extract_struct_value_address, never called.
416 (sparc32_extract_struct_value_address): #if 0 function. Add
417 comments explaining its future.
418
419 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
420
421 * arm-tdep.c (arm_write_pc): New function.
422 (arm_gdbarch_init): Call set_gdbarch_write_pc.
423
424 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
425
426 * breakpoint.c (must_shift_inst_regs): Delete.
427 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
428 and SHIFT_INST_REGS.
429 * infcmd.c (step_1, step_1_continuation): Delete references to
430 SHIFT_INST_REGS.
431 * infrun.c (keep_going): Likewise.
432 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
433 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
434
435 2004-01-17 Andrew Cagney <cagney@redhat.com>
436
437 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
438 * gdbarch.h, gdbarch.c: Re-generate.
439 * infcmd.c (print_return_value): Delete reference to
440 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
441
442 * cris-tdep.c (cris_gdbarch_init): Do not set
443 deprecated_extract_struct_value_address.
444
445 * xstormy16-tdep.c: Update copyright.
446 (xstormy16_extract_struct_value_address): Update to current
447 extract struct value address interface.
448 (xstormy16_gdbarch_init): Set extract_struct_value_address.
449 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
450 current extract struct value address interface.
451 (sh64_gdbarch_init): Set extract_struct_value_address.
452
453 * cris-tdep.c: Update copyright.
454 (cris_extract_struct_value_address): Delete function.
455 (struct_return_address): Delete variable.
456 (cris_store_struct_return): Do not set struct_return_address.
457
458 * mcore-tdep.c: Update copyright.
459 (mcore_extract_struct_value_address): Delete function. Update
460 comments.
461 (mcore_gdbarch_init): Update.
462 * mn10300-tdep.c: Update copyright.
463 (mn10300_extract_struct_value_address): Delete function.
464 (mn10300_gdbarch_init): Update.
465 * v850-tdep.c: Update copyright.
466 (v850_extract_struct_value_address): Delete.
467 (v850_gdbarch_init): Update.
468 * ns32k-tdep.c: Update copyright.
469 (ns32k_extract_struct_value_address): Delete.
470 (ns32k_gdbarch_init): Update.
471 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
472 (hppa_gdbarch_init): Update.
473 * vax-tdep.c: Update copyright.
474 (vax_extract_struct_value_address): Delete.
475 (vax_gdbarch_init): Update.
476
477 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
478 * gdbarch.h, gdbarch.c: Re-generate.
479 * procfs.c (procfs_fetch_registers): Delete reference to
480 DEPRECATED_NPC_REGNUM.
481 (procfs_store_registers): Ditto.
482 * regcache.c (generic_target_write_pc): Simplify.
483 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
484
485 * core-sol2.c (fetch_core_registers): Replace
486 DEPRECATED_NPC_REGNUM with equivalent tdep value.
487
488 * hppa-tdep.c: Update copyright year.
489 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
490 NPC_REGNUM.
491 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
492
493 * mips-tdep.c (mips_write_pc): New function.
494 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
495 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
496 (mips_find_saved_regs, mips_software_single_step: Ditto.
497 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
498 mips_init_extra_frame_info, mips_pop_frame): Ditto.
499
500 2004-01-17 Andrew Cagney <cagney@redhat.com>
501
502 * mips-tdep.c: Re-indent. Group functions by ABI.
503
504 2004-01-17 Andrew Cagney <cagney@redhat.com>
505
506 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
507 * gdbarch.c: Re-generate.
508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
509 DECR_PC_AFTER_BREAK to zero.
510 * vax-tdep.c (vax_gdbarch_init): Ditto.
511 * v850-tdep.c (v850_gdbarch_init): Ditto.
512 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
513 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
514 * sh-tdep.c (sh_gdbarch_init): Ditto.
515 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
516 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
518 * mips-tdep.c (mips_gdbarch_init): Ditto.
519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
521 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
523 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
524 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
525 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
526 * frv-tdep.c (frv_gdbarch_init): Ditto.
527 * cris-tdep.c (cris_gdbarch_init): Ditto.
528 * avr-tdep.c (avr_gdbarch_init): Ditto.
529 * arm-tdep.c (arm_gdbarch_init): Ditto.
530 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
531
532 2004-01-17 J. Brobecker <brobecker@gnat.com>
533
534 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
535 Delete, no longer used.
536 (read_subrange_type): New function, mostly extracted from
537 read_array_type().
538 (read_array_type): Replace extracted code by call to
539 read_subrange_type().
540 (dwarf2_get_attr_constant_value): New function.
541 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
542 (add_partial_symbol): Likewise.
543 (process_die): Likewise.
544 (new_symbol): Likewise.
545 (read_type_die): Likewise.
546
547 2004-01-16 Andrew Cagney <cagney@redhat.com>
548
549 * symfile.c: Update copyright year.
550 (compare_symbols): Delete unused function.
551 * stabsread.c: Update copyright year.
552 (lrs_general_complaint): Delete unused function.
553 (ref_search_value): Ditto.
554 (get_substring): Delete declaration.
555 * sh64-tdep.c: Update copyright year.
556 (sh64_get_gdb_regnum): Delete unused function.
557 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
558 Delete unused function.
559
560 2004-01-17 Mark Kettenis <kettenis@gnu.org>
561
562 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
563 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
564
565 2004-01-16 Andrew Cagney <cagney@redhat.com>
566
567 Changes from Peter Schauer.
568 * rs6000-tdep.c: Update copyright year.
569 (rs6000_push_dummy_call): Update the stack pointer before
570 accessing the corresponding stack region.
571 * rs6000-nat.c: Update copyright year.
572 (set_host_arch): Set "info.abfd" to "exec_bfd".
573
574 2004-01-15 Mark Kettenis <kettenis@gnu.org>
575
576 * blockframe.c: Update copyright year.
577 (inside_entry_func): Don't treat a zero PC specially.
578
579 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
580
581 * gcore.c (gcore_copy_callback): Use paddr_d to print size
582 variable.
583 (gcore_create_callback): Ditto. Skip any memory segment that has
584 no permissions set.
585
586 2004-01-14 David Carlton <carlton@kealia.com>
587
588 Change symbols for C++ nested types to contain the fully qualified
589 name, if possible. (At least in the DWARF-2 case.) Partial fix
590 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
591 c++/895.
592 * c-exp.y (qualified_type): Handle types nested within classes.
593 * cp-namespace.c: Update comments.
594 (cp_set_block_scope): Delete #if 0.
595 (cp_lookup_nested_type): Handle types nested within classes.
596 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
597 when appropriate.
598 (add_partial_symbol): Add the name of the enclosing namespace to
599 types.
600 (pdi_needs_namespace): New.
601 (add_partial_namespace): Tweak comment.
602 (add_partial_structure): New.
603 (psymtab_to_symtab_1): Initialize processing_current_prefix
604 here...
605 (process_die): instead of here.
606 (read_structure_scope): Try to figure out the name of the class or
607 namespace that the structure might be defined within.
608 (read_enumeration): Generate fully-qualified names, if possible.
609 (read_namespace): Don't set name to NULL.
610 (die_specification): New.
611 (new_symbol): Generate fully-qualified names for types.
612 (read_type_die): Determine appropriate prefix.
613 (determine_prefix): New.
614 (typename_concat): New.
615 (class_name): New.
616 * valops.c (value_aggregate_elt): Pass NOSIDE to
617 value_struct_elt_for_reference.
618 (value_struct_elt_for_reference): Make static, add NOSIDE
619 parameter, call value_maybe_namespace_elt as a last resort.
620 (value_namespace_elt): Break out code into
621 value_maybe_namespace_elt.
622 (value_maybe_namespace_elt): New.
623
624 2004-01-12 Andrew Cagney <cagney@redhat.com>
625
626 * mips-tdep.c (mips_convert_register_p): Handle both raw and
627 cooked floating-point registers.
628 (mips_gdbarch_init): Set convert_register_p, register_to_value,
629 and value_to_register.
630
631 2004-01-13 Andrew Cagney <cagney@redhat.com>
632
633 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
634 * gdbarch.c: Re-generate.
635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
636 FUNCTION_START_OFFSET.
637 * v850-tdep.c (v850_gdbarch_init): Ditto.
638 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
639 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
640 * sh-tdep.c (sh_gdbarch_init): Ditto.
641 * s390-tdep.c (s390_gdbarch_init): Ditto.
642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
643 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
645 * mips-tdep.c (mips_gdbarch_init): Ditto.
646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
647 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
649 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
650 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
651 * i386-tdep.c (i386_gdbarch_init): Ditto.
652 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
653 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
654 * frv-tdep.c (frv_gdbarch_init): Ditto.
655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
656 * cris-tdep.c (cris_gdbarch_init): Ditto.
657 * avr-tdep.c (avr_gdbarch_init): Ditto.
658 * arm-tdep.c (arm_gdbarch_init): Ditto.
659 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
660
661 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
662
663 * infrun.c (follow_fork_mode_ask): Remove.
664 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
665 (follow_fork): Simplify and remove internal error for
666 follow_fork_mode_ask.
667 (_initialize_infrun): Update "set follow-fork-mode" help text.
668
669 2004-01-13 Andrew Cagney <cagney@redhat.com>
670
671 * configure.in: Update copyright year.
672 (build_warnings): Add -Wunused-label.
673 * configure: Re-generate.
674
675 2004-01-12 Andrew Cagney <cagney@redhat.com>
676
677 * exec.h (exec_ops): Make "extern".
678
679 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
680 the function is void.
681 (mips_pseudo_register_write): Ditto.
682
683 2004-01-12 Andrew Cagney <cagney@redhat.com>
684
685 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
686 call. Never defined.
687 * sparc-tdep.h (struct frame_info): Add opaque declaration.
688 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
689 (struct sparc_gregset, struct regcache): Ditto.
690 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
691
692 2004-01-12 Andrew Cagney <cagney@redhat.com>
693
694 * mi/ChangeLog: Delete file. Renamed to ...
695 * mi/ChangeLog-1999-2003: New file.
696 * tui/ChangeLog: Delete file. Renamed to ...
697 * tui/ChangeLog-1998-2003: New file.
698
699 2004-01-11 Mark Kettenis <kettenis@gnu.org>
700
701 * sparc64nbsd-tdep.c: Include "regset.h".
702 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
703 Remove variables.
704 (fetch_core_registers): Remove function.
705 (sparc64nbsd_core_fns): Remove variable.
706 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
707 functions.
708 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
709 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
710 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
711
712 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
713 sparc_extract_struct_value_address.
714 (sparc32_gdbarch_init): Set extract_struct_value_address.
715 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
716 function.
717 (sparc64_init_abi): Set extract_struct_value_address. Don't set
718 return_value_on_stack.
719
720 * NEWS: Mention that %cs and %ss have been added to the AMD64
721 configurations
722
723 * frame.c: Update copyright year.
724 (get_prev_frame): Improve comment.
725
726 * sparc64fbsd-tdep.c: Include "regset.h".
727 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
728 Remove variables.
729 (fetch_core_registers): Remove function.
730 (sparc64fbsd_core_fns): Remove variable.
731 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
732 functions.
733 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
734 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
735 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
736
737 * sparcnbsd-tdep.c: Include "regset.h".
738 (fetch_core_registers): Remove function.
739 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
740 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
741 functions.
742 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
743 TDEP->fpregset.
744 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
745
746 * sparc-tdep.h (struct regset): Provide opaque declaration.
747 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
748 fpregset and sizeof_fpregset members.
749 * sparc-tdep.c (struct regset): Provide opaque declaration.
750 (sparc_regset_from_core_section): New function.
751 (sparc32_gdbarch_init): Initialize TDEP->gregset,
752 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
753 Set regset_from_core_section when appropriate.
754
755 2004-01-10 Mark Kettenis <kettenis@gnu.org>
756
757 * x86-64-tdep.c (amd64_non_pod_p): New function.
758 (amd64_classify_aggregate): Return class memory for non-POD
759 C++ structure types.
760
761 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
762 argument. Use it to reserve a register if necessary.
763 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
764 amd64_push_arguments.
765
766 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
767
768 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
769 register numbers in comments.
770 * x86-64-tdep.h: Update copyright year.
771 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
772 Adjust for addition of %cs and %ss.
773 * amd64fbsd-nat.c: Update copyright year.
774 (reg_offset): Add register offsets for %cs and %ss.
775 * amd64fbsd-tdep.c: Update copyright year.
776 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
777 (amd64fbsd_sc_reg_offset): Likewise.
778 * x86-64-linux-nat.c: Update copyright year.
779 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
780 and %ss.
781 * amd64nbsd-nat.c: Update copyright year.
782 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
783 * amd64nbsd-tdep.c: Update copyright year.
784 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
785 * x86-64-linux-tdep.c: Update copyright year.
786 (user_to_gdb_regmap): Add mapping for %cs and %ss.
787 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
788 * regformats/reg-x86-64.dat: Add %cs and %ss.
789
790 * blockframe.c (inside_entry_func): Reformat. Introduce new local
791 variables to prevent long lines. Update comments to reflect
792 reality.
793
794 2004-01-09 David Carlton <carlton@kealia.com>
795
796 Checked in by Elena Zannoni <ezannoni@redhat.com>.
797 * dwarf2read.c (read_namespace): Pull out name-generating code
798 into namespace_name. Rename previous_namespace to previous_prefix
799 and processing_current_namespace to processing_current_prefix..
800 (namespace_name): New function.
801 (add_partial_symbol): Substitute uses of pdi->name with
802 actual_name.
803 * cp-support.h: Rename processing_current_namespace to
804 processing_current_prefix.
805 Update copyright year.
806 * cp-namespace.c: Rename processing_current_namespace to
807 processing_current_prefix.
808 Update copyright year.
809
810 2004-01-09 Andrew Cagney <cagney@redhat.com>
811
812 * jv-valprint.c, ser-unix.c: Add missing copyright years.
813
814 2004-01-09 Mark Kettenis <kettenis@gnu.org>
815
816 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
817 complaining.
818 (process_one_symbol): Deal with N_PATCH stabs.
819
820 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
821
822 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
823 ifdeffed code.
824 Update copyright year.
825
826 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
827
828 * config/pa/tm-hppa.h: Update extern declarations for
829 hppa32_hpux_frame_saved_pc_in_sigtramp,
830 hppa32_hpux_frame_base_before_sigtramp, and
831 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
832
833 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
834
835 * config/pa/tm-hppah.h: Update copyright years.
836
837 2004-01-08 Andrew Cagney <cagney@redhat.com>
838
839 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
840 (mips_o32_reg_struct_has_addr): Delete function.
841 (mips_gdbarch_init): Update.
842 (mips_extract_struct_value_address): Delete function.
843
844 2004-01-08 David Mosberger <davidm@hpl.hp.com>
845
846 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
847 reality.
848
849 2004-01-07 Andrew Cagney <cagney@redhat.com>
850
851 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
852 architecture's elf flags (when available).
853
854 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
855 FPU to the start, check the MIPS FPU when looking for an old
856 architecture.
857 (set_mipsfpu_single_command): Update the architecture.
858 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
859
860 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
861 (mips_mask_address_p): Add "tdep" parameter.
862 (show_mask_address, mips_addr_bits_remove): Update.
863 (mips_dump_tdep): Update.
864 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
865 (MIPS_STACK_ARGSIZE): Delete macro.
866 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
867 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
868 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
869 (mips_dump_tdep): Update.
870 (MIPS_SAVED_REGSIZE): Delete macro.
871 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
872 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
873 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
874 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
875 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
876 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
877 (mips_pop_frame, return_value_location): Update.
878 (mips_n32n64_return_value, mips_dump_tdep): Update.
879
880 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
881 MIPS ABI.
882
883 * mips-tdep.c: Update copyright.
884 (mips_gdbarch_init): Merge two code blocks handling the register
885 name and number layout.
886
887 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
888
889 * tracepoint.c (validate_actionline): Fix segv at EOF
890
891 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
892
893 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
894 properly for static fields.
895
896 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
897 Jason Molenda <jmolenda@apple.com>
898
899 * disasm.c: Update copyright to include 2004.
900 (do_mixed_source_and_assembly): For uiout asm list
901 and tuple cleanups, initialize to null_cleanup instead of
902 NULL and do so prior to loop. Only reset when we close off
903 the tuple/list. Move check for whether to close off the
904 asm tuple/list to after dump_insns call where it will be run
905 on each loop iteration.
906
907 2004-01-05 Andrew Cagney <cagney@redhat.com>
908
909 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
910 should be a switch case and not a label.
911 * mips-tdep.c (mips32_next_pc): Delete unused labels
912 "greater_equal_branch" and "less_zero_branch".
913 * jv-valprint.c (java_print_value_fields): Delete unused label
914 "flush_it".
915
916 * target.c (unpush_target): Only close a target that is in the
917 target stack.
918
919 2004-01-05 Mark Kettenis <kettenis@gnu.org>
920
921 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
922 address from [sp + 64] instead of %o2.
923
924 * frame.c (get_prev_frame): Don't try to unwind the PC. This
925 fixes PR backtrace/1476.
926
927 2004-01-05 Andrew Cagney <cagney@redhat.com>
928
929 * libunwind-frame.h (struct frame_id): Add opaque declaration,
930 move to start of file.
931 * i386-tdep.h (struct regcache): Add opaque declaration.
932 * config/ia64/nm-linux.h (struct target_ops): Add opaque
933 declaration.
934 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
935 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
936 * win32-nat.c (fake_create_process): Use ISO C style definition.
937 * stabsread.c (define_symbol): Delete #ifndef
938 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
939 stabs_argument_has_addr call, macro never defined.
940
941 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
942
943 * op50-rom.c: Delete.
944 * w89k-rom.c: Delete.
945 * Makefile.in: Remove references.
946
947 2004-01-04 Mark Kettenis <kettenis@gnu.org>
948
949 * x86-64-tdep.c: Update copyright year.
950 (struct amd64_register_info): Rename from x86_64_register_info.
951 (amd64_register_info): Rename from x86_64_register_info.
952 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
953 (amd64_register_name): Rename from x86_64_register_name.
954 (amd64_register_type): Rename from x86_64_register_type.
955 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
956 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
957 (amd64_dwarf_reg_to_regnum): Rename from
958 x86_64_dwarf_reg_to_regnum.
959 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
960 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
961 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
962 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
963 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
964 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
965 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
966 (amd64_frame_cache): Rename from x86_64_frame_cache.
967 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
968 (amd64_frame_prev_register): Rename from
969 x86_64_frame_prev_register.
970 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
971 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
972 (amd64_sigtramp_frame_cache): Rename from
973 x86_64_sigtramp_frame_cache.
974 (amd64_sigtramp_frame_prev_register): Rename from
975 x86_64_sigtramp_frame_prev_register.
976 (amd64_sigtramp_frame_unwind): Rename from
977 x86_64_sigtramp_frame_unwind.
978 (amd64_sigtramp_frame_sniffer): Rename from
979 x86_64_sigtramp_frame_sniffer.
980 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
981 (amd64_frame_base): Rename from x86_64_frame_base.
982 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
983 (amd64_frame_align): Rename from x86_64_frame_align.
984 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
985 (amd64_regset_from_core_section): Rename from
986 x86_64_regset_from_core_section.
987 (x86_64_init_abi): Update comments.
988
989 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
990
991 * MAINTAINERS (write after approval): Add myself.
992
993 2004-01-04 Mark Kettenis <kettenis@gnu.org>
994
995 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
996 `float' arguments.
997
998 2004-01-04 Mark Kettenis <kettenis@gnu.org>
999
1000 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
1001 such that it mentions a specific version of GCC that exhibits this
1002 bug.
1003
1004 2004-01-03 Mark Kettenis <kettenis@gnu.org>
1005
1006 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
1007 structure that has a single `float' member, store it in %f1 in
1008 addition to %f0.
1009
1010 * sparc-sol2-nat.c: Add missing '\'.
1011
1012 * sparc-tdep.c (sparc32_return_value): New function.
1013 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
1014 Remove functions.
1015 (sparc32_gdbarch_init): Set return_value, don't set
1016 extract_return_value, store_return_value, use_struct_convention
1017 and return_value_on_stack.
1018
1019 * sparc-sol2-nat.c: Add missing ')'.
1020
1021 2004-01-03 J. Brobecker <brobecker@gnat.com>
1022
1023 * infrun.c (handle_step_into_function): New function.
1024 (handle_inferior_event): Extract out some code into the new
1025 function above.
1026
1027 2004-01-03 J. Brobecker <brobecker@gnat.com>
1028
1029 * infrun.c (handle_inferior_event): Move the declaration of
1030 real_stop_pc inside the if blocks where it is used.
1031
1032 2004-01-03 Mark Kettenis <kettenis@gnu.org>
1033
1034 * sparc64-tdep.c (sparc64_16_byte_align_p)
1035 (sparc64_store_floating_fields, sparc64_store_floating_fields):
1036 Use check_typedef to get subtypes of structures and unions.
1037 (sparc64_store_return_value): Fix calculation of the appropriate
1038 offset into VALBUF when storing a structure or union.
1039 (sparc64_return_value): New function.
1040 (sparc64_use_struct_convention): Remove function.
1041 (sparc64_init_abi): Set return_value, don't set
1042 extract_return_value, store_return_value and
1043 use_struct_convention.
1044
1045 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
1046
1047 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
1048 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
1049 gdb/config/alpha/xm-alphaosf.h,
1050 gdb/config/powerpc/tm-ppcle-eabi.h,
1051 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
1052 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
1053 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
1054 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
1055 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
1056 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
1057 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
1058 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
1059 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
1060 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
1061 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
1062 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
1063 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
1064 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
1065 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
1066 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
1067 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
1068 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
1069 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
1070 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
1071 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
1072 Remove lines for .cvsignore files.
1073
1074 2004-01-03 J. Brobecker <brobecker@gnat.com>
1075
1076 * infrun.c: Back out the previous change.
1077
1078 2004-01-03 Mark Kettenis <kettenis@gnu.org>
1079
1080 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
1081 sparc-*-sunos4* to the list of REMOVED configurations.
1082
1083 * configure.tgt: Add back sparc-*-vxworks*.
1084 * remote-vxsparc.c: Remove all includes except for "defs.h",
1085 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
1086 Include "sparc-tdep.h".
1087 (SPARC_R_G1): New define.
1088 (vxsparc_gregset): New variable.
1089 (ext_format_sparc): Remove extern declaration.
1090 (vx_read_register): Rewrite to use sparc32_supply_gregset and
1091 sparc32_supply_fpregset.
1092 (vx_write_register): Rewrite to use sparc32_collect_gregset,
1093 sparc_collect_rwindow and sparc32_collect_fpregset.
1094 * config/sparc/tm-vxworks.h: New file, based on recently removed
1095 tm-vxsparc.h.
1096 * config/sparc/vxworks.mt: New file, based on recently removed
1097 vxworks.mt.
1098
1099 2004-01-03 J. Brobecker <brobecker@gnat.com>
1100
1101 * infrun.c (handle_step_into_function): New function.
1102 (handle_inferior_event): Extract out some code into the new
1103 function above.
1104
1105 2004-01-02 Mark Kettenis <kettenis@gnu.org>
1106
1107 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
1108 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
1109 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
1110 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
1111 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
1112 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
1113 (sparc_nat_h): New variable.
1114 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
1115 (tm-sun4os4.h): Remove dependency.
1116 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
1117 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
1118 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
1119 sparc-tdep.o): Update dependencies.
1120 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
1121 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
1122 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
1123 dependencies.
1124 * configure.host: Remove existing sparc-*-lynxos*,
1125 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
1126 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
1127 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
1128 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
1129 triplets.
1130 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
1131 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
1132 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
1133 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
1134 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
1135 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
1136 sparc64-*-solaris2* and sparc64-*-* triplets.
1137 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
1138 "symtab.h" and "objfiles.h".
1139 (BIAS): Remove define.
1140 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
1141 (X_DISP19): Remove macros.
1142 (sparc_fetch_instruction): Remove function.
1143 (struct gdbarch_tdep): Remove definition.
1144 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
1145 (sparc_breakpoint_from_pc): Remove function.
1146 (struct sparc64_frame_cache): Remove definition.
1147 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
1148 sparc64_unwind_pc): Remove functions.
1149 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
1150 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
1151 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
1152 (sparc64_frame_cache): Change return type to `struct
1153 sparc_frame_cache *'. Simply call sparc_frame_cache.
1154 (sparc64_frame_this_id, sparc64_frame_prev_register,
1155 sparc64_frame_base_address): Use `struct sparc_frame_cache'
1156 instead of `struct sparc64_frame_cache.
1157 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
1158 sparc_analyze_control_transfer, sparc_software_single_step,
1159 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
1160 _initialize_sparc64_tdep): Remove functions.
1161 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
1162 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
1163 macros.
1164 (sparc64_supply_gregset, sparc64_collect_gregset,
1165 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
1166 (sparc64_init_abi): New function.
1167 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
1168 inclusion guard. Include "sparc-tdep.h".
1169 (BIAS): Define.
1170 (r_tstate_offset, r_fprs_offset): New defines.
1171 (enum sparc_regnum): Remove defenition.
1172 (enum sparc64_regnum): Reformat.
1173 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
1174 (sparc64_init_abi, sparc64_supply_gregset,
1175 sparc64_collect_gregset, sparc64_supply_fpregset,
1176 sparc64_collect_fpregset): New prototypes.
1177 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
1178 Add extern declarations.
1179 (sparc64_sol2_init_abi): New prototype.
1180 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
1181 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
1182 prototypes.
1183 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
1184 "sparnbsd-nat.h".
1185 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
1186 functions.
1187 (_initialize_sparc64fbsd_nat): Remove initialization of
1188 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
1189 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
1190 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
1191 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
1192 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
1193 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
1194 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
1195 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
1196 (sparc64fbsd_r_y_offset): Remove variables.
1197 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
1198 Make static and const.
1199 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
1200 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
1201 functions.
1202 (sparc64fbsd_gregset): New variable.
1203 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
1204 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
1205 and sparc64_supply_fpregset.
1206 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
1207 (sparc64fbsd_sigtramp_frame_this_id)
1208 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
1209 (sparc64fbsd_sigtramp_frame_unwind): New variable.
1210 (sparc64fbsd_sigtramp_frame_sniffer): New function.
1211 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
1212 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
1213 * sparcnbsd-tdep.c: Update copyright year. Include
1214 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
1215 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
1216 "value.h" and "sparcnbsd-tdep.h".
1217 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
1218 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
1219 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
1220 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
1221 defines.
1222 (sparcnbsd_gregset): New variable.
1223 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
1224 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
1225 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
1226 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
1227 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
1228 variables.
1229 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
1230 (sparc32nbsd_sigcontext_frame_this_id)
1231 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
1232 (sparc32nbsd_sigcontext_frame_unwind): New variable.
1233 (sparc32nbsd_sigtramp_frame_sniffer): New function.
1234 (sparcnbsd_get_longjmp_target_32,
1235 sparcnbsd_get_longjmp_target_64): Remove functions.
1236 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
1237 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
1238 sparcnbsd_init_elf): Remove.
1239 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
1240 (sparcnbsd_elf_init_abi): New functions.
1241 (_initialize_sparcnbsd_tdep): New prototype.
1242 (_initialize_sparnbsd_tdep): Update.
1243 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
1244 corelow.o. Add sparc64-nat.o and sparc-nat.o.
1245 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
1246 * config/sparc/linux.mh: Update comment.
1247 (XM_FILE, HOST_IPC): Remove variables.
1248 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
1249 sparc-linux-nat.o.
1250 * config/sparc/linux.mt: Update comment.
1251 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
1252 * config/sparc/nbsd.mt: Reformat.
1253 * config/sparc/nbsd64.mh: Update comment.
1254 (NATDEPFILES): Add sparc-nat.o.
1255 * config/sparc/nbsd64.mt: Update comment.
1256 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
1257 (TM_FILE): Set to tm-nbsd.h.
1258 * config/sparc/nbsdelf.mh: Update comment.
1259 (NATDEPFILES): Add sparc-nat.o.
1260 (XM_FILE): Delete.
1261 * config/sparc/nbsdaout.mh: Update comment.
1262 (NATDEPFILES): Add sparc-nat.o
1263 (XM_FILE): Delete.
1264 * config/sparc/nm-linux.h: Update copyright year. Don't include
1265 "config/nm-svr4.h" and "solib.h". Add protection against multiple
1266 inclusion.
1267 (KERNEL_U_SIZE): Remove define.
1268 (kernel_u_size): Remove prototype.
1269 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
1270 * config/sparc/nm-nbsd.h: Update copyright. Don't include
1271 "regcache.h".
1272 (CHILD_PREPARE_TO_STORE): Remove define.
1273 * config/sparc/nm-nbsdaout.h: Tweak some comments.
1274 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
1275 sparcnbsd-nat.c: Rewrite files.
1276 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
1277 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
1278 sparcnbsd-tdep.h: Remove files.
1279 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
1280 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
1281 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
1282 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
1283 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
1284 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
1285 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
1286 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
1287 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
1288 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
1289 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
1290 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
1291 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
1292 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
1293 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
1294 * config/sparc/linux64.mh, config/sparc/linux64.mt,
1295 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
1296 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
1297 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
1298
1299 2004-01-02 Andrew Cagney <cagney@redhat.com>
1300
1301 From 2003-12-18 Kazuhiro Inaoka:
1302 * configure.host: Add m32r-linux target.
1303
1304 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
1305
1306 * top.c (print_gdb_version): Update year to 2004.
1307
1308 2004-01-02 Mark Mitchell <mark@codesourcery.com>
1309
1310 * MAINTAINERS: Add myself to the write-after-approval category.
1311
1312 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
1313
1314 From Bernardo Innocenti <bernie@develer.com>:
1315 * configure.tgt: Add uClinux target.
1316
1317 2004-01-02 Andrew Cagney <cagney@redhat.com>
1318
1319 * utils.c (do_my_cleanups): Make static, add forward declaration.
1320 * defs.h (do_my_cleanups): Delete declaration.
1321
1322 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
1323
1324 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
1325 bfd/ChangeLog-0203.
1326
1327 2004-01-02 Mark Kettenis <kettenis@gnu.org>
1328
1329 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
1330 in <machine/reg.h>.
1331 * configure, config.in: Regenerate.
1332
1333 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
1334 tui/ChangeLog-1998-2003.
1335 \f
1336 Local Variables:
1337 mode: change-log
1338 left-margin: 8
1339 fill-column: 74
1340 version-control: never
1341 End:
This page took 0.057451 seconds and 4 git commands to generate.