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