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