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