1 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3 * procfs.c (dbx_link_bpt_addr): New static global variable.
4 (dbx_link_shadow_contents): New static global variable.
5 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
6 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
8 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
9 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
11 (procfs_create_inferior): Remove syssgi syscall-exit notifications
12 after the inferior has been forked.
13 (remove_dbx_link_breakpoint): New function.
14 (dbx_link_addr): New function.
15 (insert_dbx_link_bpt_in_file): New function.
16 (insert_dbx_link_bpt_in_region): New function.
17 (insert_dbx_link_breakpoint): New function.
18 (proc_trace_syscalls_1): New function, extracted from
20 (proc_trace_syscalls): Replace extract code by call to
21 proc_trace_syscalls_1.
22 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
25 2004-08-25 Jim Blandy <jimb@redhat.com>
27 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
29 2004-08-25 Andrew Cagney <cagney@gnu.org>
31 * infrun.c (struct execution_control_state): Delete field
32 "stepping_through_sigtramp".
33 (init_execution_control_state): Do not set same.
34 (context_switch): Do not pass same to save_infrun_state and
36 * gdbthread.h (struct thread_info): Delete field
37 stepping_through_sigtramp.
38 (save_infrun_state, load_infrun_state): Delete parameter
39 stepping_through_sigtramp.
40 * thread.c (load_infrun_state, save_infrun_state): Update.
42 * infrun.c: Re-indent. Move expression operators to the beginning
43 of the line. Remove long disabled #if 0 code.
45 2004-08-24 Andrew Cagney <cagney@gnu.org>
47 * doublest.h (floatformat_ieee_quad): Rename
48 floatformat_ia64_quad.
49 * doublest.c (floatformat_ieee_quad): Rename
50 floatformat_ia64_quad.
51 (_initialize_doublest): Update.
53 2004-08-24 Jim Blandy <jimb@redhat.com>
55 * dwarf2expr.h (struct dwarf_expr_context): New members
56 'num_pieces' and 'pieces', for returning the result of an
57 expression that uses DW_OP_piece.
58 (struct dwarf_expr_piece): New struct type.
59 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
61 (free_dwarf_expr_context): Free pieces, if any.
62 (add_piece): New function.
63 (execute_stack_op): Implement DW_OP_piece.
64 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
65 expression is a list of pieces, print an error message.
66 (dwarf2_loc_desc_needs_frame): If the expression yields
67 pieces, and any piece is in a register, then we need a frame.
69 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
70 the stack until we've decided what sort of result the evaluation
71 has produced. Use separate variables, with more specific names.
73 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
75 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
76 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
77 (arm_netbsd_init_abi_common): Register them.
79 2004-08-22 Mark Kettenis <kettenis@gnu.org>
81 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
83 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
84 safe_frame_unwind_memory instead of target_read_memory.
86 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
88 (fetch_register, store_register): Remove prototypes.
89 (child_resume): Reorganize code and comments such that it is
90 grouped a bit more logically.
91 (attach): Explicitly compare errno against 0.
92 (detach): Likewise. Use perror_with_name instead of
94 * Makefile.in (infptrace.o): Update dependencies.
96 * ia64-linux-nat.c: Update copyright year.
97 (fetch_debug_register, store_debug_register)
98 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
100 * config/ia64/nm-linux.h: Update copyright year.
101 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
103 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
104 from CORE_ADDR to struct frame_info *. Use
105 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
106 (amd64_linux_sigtramp_p): Adjust for changed signature of
107 and64_linux_sigtramp_start
109 * gdb_ptrace.h: GNU/Linux.
111 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
114 * infptrace.c: Include "gdb_assert.h".
115 (PTRACE_XFER_TYPE): Remove define.
116 (offsetof): Only define if U_REGS_OFFSET isn't defined.
117 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
119 (fetch_inferior_registers, store_inferior_registers): Remove
120 redundant culry braces. Tweak comment. s/regno/regnum.
121 * Makefile.in (infptrace.o): Update dependencies.
123 * configure.in: Change test for return type of ptrace to default
124 to `long' instead of `int'.
125 * configure: Regenerate.
127 2004-08-21 Mark Kettenis <kettenis@gnu.org>
129 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
131 * configure.in: Check for ttrace function.
132 * configure, config.in: Regenerate.
134 * gdb_ptrace.h: New file.
135 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
137 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
138 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
139 (attach): Don't define PT_ATTACH.
140 (detach): Don't define PT_DETACH.
141 * Makefile.in (gdb_ptrace_h): New variable.
142 (infptrace.o): Update dependencies.
144 2004-08-16 Mark Kettenis <kettenis@gnu.org>
146 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
147 instead of `int' if not already defined.
148 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
150 * infptrace.c (call_ptrace): Revert change that replaced
151 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
153 2004-08-15 Mark Kettenis <kettenis@gnu.org>
155 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
158 * linux-nat.c (kill_inferior): Add missing third and fourth
159 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
161 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
164 * proc-why.c (proc_prettyfprint_why): Fix format string.
166 * solib-osf.c (osf_current_sos): Remove unsused label.
168 * configure.in: Add <ncurses/ncurses.h> to the list of possible
170 * configure, config.in: Regenerate.
171 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
174 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
175 * config/nm-nbsd.h: Update copyright year.
176 (PTRACE_ARG3_TYPE): Remove define.
178 * sparc-nat.c (fetch_inferior_registers)
179 (store_inferior_registers, sparc_xfer_wcookie):
180 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
182 * alphabsd-nat.c (fetch_inferior_registers):
183 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
185 * amd64bsd-nat.c (fetch_inferior_registers)
186 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
188 * armnbsd-nat.c: Update copyright year.
189 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
190 (store_register, store_regs, store_fp_register, store_fp_regs):
191 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
192 * hppabsd-nat.c (fetch_inferior_registers)
193 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
195 * i386bsd-nat.c (fetch_inferior_registers)
196 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
197 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
198 * m68kbsd-nat.c (fetch_inferior_registers)
199 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
201 * m88kbsd-nat.c (fetch_inferior_registers)
202 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
204 * mipsnbsd-nat.c: Update copyright year.
205 (fetch_inferior_registers, store_inferior_registers):
206 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
207 * ns32knbsd-nat.c: Update copyright year.
208 (fetch_inferior_registers, store_inferior_registers):
209 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
210 * ppcnbsd-nat.c (fetch_inferior_registers):
211 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
213 * ppcobsd-nat.c (fetch_inferior_registers):
214 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
216 * shnbsd-nat.c: Update copyright year.
217 (fetch_inferior_registers, store_inferior_registers):
218 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
219 * vaxbsd-nat.c (fetch_inferior_registers)
220 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
223 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
225 * infptrace.c (call_ptrace, child_resume, attach, detach)
226 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
227 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
228 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
231 2004-08-14 Mark Kettenis <kettenis@gnu.org>
233 * defs.h: Remove out-of-date comment.
234 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
235 [!GETENV_PROVIDED] (getenv): Remove prototype.
237 * standalone.c: Remove file.
238 * Makefile.in (standalone.o): Remove dependency.
240 * i386-linux-nat.c (dummy_sse_values): Remove function and
242 (i386_linux_dr_get): Fix typo in comment.
243 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
245 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
247 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
249 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
252 2004-08-13 Mark Kettenis <kettenis@gnu.org>
254 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
255 parenthesis in definition.
256 * configure: Regenerated.
258 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
260 * PROBLEMS: Mention build/1411.
262 2004-08-09 Robert Millan <robertmh@gnu.org>
264 Committed by Nathanael Nerode.
265 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
266 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
268 2004-08-12 Andrew Cagney <cagney@gnu.org>
270 * NEWS: Mention fixes in GDB 6.2.1.
271 * PROBLEMS: Remove mention of mips-irix.
273 2004-08-11 Joel Brobecker <brobecker@gnat.com>
275 * config/powerpc/xm-aix.h: Delete.
276 * config/powerpc/aix.mh (MH_FILE): Remove.
277 * config/powerpc/aix432.mh (MH_FILE): Remove.
279 2004-08-11 Joel Brobecker <brobecker@gnat.com>
281 * config/powerpc/aix.mh: Remove obsolete comment.
282 * config/powerpc/aix432.mh: Likewise.
284 2004-08-11 Joel Brobecker <brobecker@gnat.com>
286 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
288 2004-08-11 Joel Brobecker <brobecker@gnat.com>
290 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
291 this file is now empty.
292 * config/xm-aix4.h: Remove, this file is no longer included
295 2004-08-11 Joel Brobecker <brobecker@gnat.com>
297 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
298 that file is now empty.
299 (termdef): Remove prototype, function no longer used.
301 2004-08-11 Joel Brobecker <brobecker@gnat.com>
303 * doc/gdbint.texinfo (Host Definition): Remove documentation
304 for USE_O_NOCTTY, no longer used.
305 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
306 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
308 2004-08-11 Joel Brobecker <brobecker@gnat.com>
310 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
311 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
312 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
314 2004-08-11 Mark Kettenis <kettenis@gnu.org>
316 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
317 instead of FIVE_ARG_PTRACE.
319 * inflow.c (O_NOCTTY): Define to zero if not already defined.
320 (new_tty): Use O_NOCTTY unconditionally.
322 2004-08-10 Mark Kettenis <kettenis@gnu.org>
324 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
325 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
328 2004-08-10 Joel Brobecker <brobecker@gnat.com>
330 * xcoff_symfile_finish: Replace last call to xmfree by call
333 2004-08-10 Andrew Cagney <cagney@gnu.org>
335 * main.c (captured_main): Delete call to init_malloc.
336 * defs.h (init_malloc): Delete declaration.
337 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
338 (init_malloc): Delete functions.
340 * defs.h (xmfree): Delete.
341 * utils.c (xmfree): Delete function.
342 (xfree): Inline calls to xmfree and mfree.
343 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
344 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
345 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
346 * somread.c (som_symfile_finish): Ditto.
347 * objfiles.c (allocate_objfile, free_objfile):
348 * nlmread.c (nlm_symfile_finish): Ditto.
349 * hpread.c (hpread_symfile_finish): Ditto.
350 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
351 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
352 * coffread.c (coff_symfile_finish): Ditto.
354 * defs.h (xmcalloc): Delete declaration.
355 * utils.c (xmcalloc): Delete.
356 (xcalloc): Inline calls to xmcalloc and mcalloc.
357 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
359 * symtab.c (create_demangled_names_hash): Ditto.
361 * defs.h (xmrealloc): Delete.
362 * utils.c (xmrealloc): Delete.
363 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
364 * symmisc.c (extend_psymbol_list): Use xrealloc.
365 * source.c (find_source_lines): Ditto.
366 * hpread.c (hpread_lookup_type): Ditto.
367 * dbxread.c (add_bincl_to_list): Ditto.
369 * utils.c (xmmalloc): Delete.
370 (xmalloc): Inline xmmalloc and mmalloc calls.
371 (msavestring): Use xmalloc.
372 * defs.h (xmmalloc): Delete declaration.
373 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
375 * symmisc.c (extend_psymbol_list): Ditto.
376 * symfile.c (init_psymbol_list): Ditto.
377 * source.c (find_source_lines): Ditto.
378 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
379 * elfread.c (elf_symtab_read): Ditto.
380 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
381 * coffread.c (coff_symfile_init): Ditto.
383 2004-08-10 David Carlton <carlton@bactrian.org>
385 * MAINTAINERS: Remove David Carlton from c++ testsuite
388 2004-08-10 Jerome Guitton <guitton@gnat.com>
390 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
391 print a line feed before the prompt.
393 2004-08-10 Mark Kettenis <kettenis@gnu.org>
395 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
397 2004-08-09 Joel Brobecker <brobecker@gnat.com>
399 General cleanup of the AIX xm include file:
400 * config/xm-aix4.h (fd_set): Remove undefine.
401 Remove include of <sys/select.h>.
402 (HAVE_TERMIO): Remove define.
404 (NULL): Remove redefine.
405 (alloca): Remove #pragma.
406 (vfork): Remove define.
408 (SIGWINCH_HANDLER): Remove.
409 (SIGWINCH_HANDLER_BODY): Remove.
411 2004-08-09 Mark Kettenis <kettenis@gnu.org>
413 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
414 GDB_OSABI_OPENBSD_ELF.
416 2004-08-07 Robert Millan <robertmh@gnu.org>
418 * bsd-kvm.c: Check for nlist.h before including it.
420 2004-08-09 Mark Kettenis <kettenis@gnu.org>
422 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
423 sigcontext' offset consistency checks for ancient BSD.
425 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
427 * configure.in: Check for <sys/types.h>. Check return and
428 argument types of ptrace.
429 * configure, config.in: Regenerate.
431 2004-08-09 Jim Blandy <jimb@redhat.com>
433 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
434 rs6000_register_sim_regno): Doc fixes.
436 2004-08-08 Joel Brobecker <brobecker@gnat.com>
438 * mips-tdep.c: Include "floatformat.h".
439 (n32n64_floatformat_always_valid): New function.
440 (floatformat_n32n64_long_double_big): New constant.
441 (mips_gdbarch_init): Set size and format of long double
442 for N32 and N64 ABIs.
443 * Makefile.in (mips-tdep.o): Update dependencies.
445 2004-08-08 Andrew Cagney <cagney@gnu.org>
447 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
448 print. Improve script's error messages.
449 * gdbarch.h: Re-generate.
451 * gdbarch.sh (pformat): New function.
452 (float_format, double_format, long_double_format): List with bit
453 members. Use pformat when printing.
454 * gdbarch.c, gdbarch.h: Re-generate.
456 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
458 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
459 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
460 (ppcnbsd_supply_pcb): New function.
461 (_initialize_ppcnbsd_nat): New prototype and function.
462 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
463 (LOADLIBES): New variable.
464 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
466 2004-08-08 Andrew Cagney <cagney@gnu.org>
468 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
469 (builtin_type_ieee_double, builtin_type_ia64_quad)
470 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
471 BE/LE floating-point types.
472 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
473 (builtin_type_ieee_double, builtin_type_ia64_quad)
474 (builtin_type_ia64_spill): Declare.
475 * doublest.c (_initialize_doublest, floatformat_ieee_single)
476 (floatformat_ieee_double, floatformat_arm_ext)
477 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
478 of LE/BE floatformats.
479 * doublest.h: (struct floatformat, floatformat_ieee_single)
480 (floatformat_ieee_double, floatformat_arm_ext)
481 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
483 2004-08-08 Mark Kettenis <kettenis@gnu.org>
485 * i386gnu-nat.c (gnu_store_registers): Fix typo.
487 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
488 instead of regcache_raw_supply when storing the registers.
490 * i386gnu-nat.c: Update copyright year.
491 (gnu_store_registers): Don't use deprecated_registers and
492 deprecated_registers_valid. Use regcache_valid_p and
493 regcache_raw_supply instead.
495 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
498 * procfs.c (procfs_pid_to_str): Remove redundant and unused
499 variables. Incapitalized "process".
501 * configure.in: Add cursesX to the list of possible curses libs.
502 Add cursesX.h to the list of possible curses headers.
503 * configure, config.in: Regenerate.
505 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
507 * configure.in: Test for struct lwp in <sys/lwp.h>.
508 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
509 the offset of l_addr in struct lwp.
511 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
513 * bsd-kvm.c: Include "gdbcore.h"
514 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
516 2004-08-07 Andrew Cagney <cagney@gnu.org>
518 * gdbtypes.c (build_flt, build_complex): New functions.
519 (gdbtypes_post_init): Use.
521 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
523 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
524 through to builtin_type_uint128.
526 * c-exp.y: Use builtin_type function to obtain builtin types.
528 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
530 * gdbtypes.c (gdbtypes_post_init): Update.
531 (build_gdbtypes): Move initialization of builtin_type_int0
532 through to builtin_type_uint128 from here ...
533 (_initialize_gdbtypes): ... to here.
534 * d10v-tdep.c (d10v_register_type): Update.
536 * doublest.c: Update copyright.
537 (floatformat_from_length): Call error when floatformat is NULL.
538 (extract_floating_by_length): Remove NULL fmt check.
539 (store_floating_by_length): Ditto.
541 2004-08-07 Andrew Cagney <cagney@gnu.org>
543 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
544 that the register is valid.
546 2004-08-05 Mark Kettenis <kettenis@chello.nl>
548 * i386-linux-tdep.c (i386_linux_sigtramp_start)
549 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
550 struct frame_info *. Use safe_frame_unwind_memory instead of
551 deprecated_read_memory_nobpt.
552 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
553 changed signature of i386_linux_sigtramp_start and
554 i386_linux_rt_sigtramp_start.
556 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
557 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
558 instead of deprecated_read_memory_nobpt.
559 (i386nbsd_sigtramp_p): Adjust for changed signature of
560 i386nbsd_sigtramp_offset.
562 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
563 safe_frame_unwind_memory instead of target_read_memory.
565 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
567 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
568 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
569 (_initialize_kernel_u_addr): Remove prototype and function.
570 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
572 * xcoffread.c: Likewise.
574 2004-08-06 Mark Kettenis <kettenis@gnu.org>
576 * vax-nat.c: New file.
577 * vaxbsd-nat.c: Tweak comment.
578 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
580 (vax-nat.o): New dependency.
581 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
582 (vax-*-ultrix2*): Remove.
583 * config/vax/vax.mh: New file.
584 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
585 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
586 (vax_register_u_addr): New prototype.
587 (REGISTER_U_ADDR): Define using vax_register_u_addr.
588 * config/vax/vaxult2.mh: Remove file.
589 * config/vax/vaxult.mh: Remove file.
590 * config/vax/vaxbsd.mh: Remove file.
591 * config/vax/vax.mt (TM_FILE): Remove.
592 * config/vax/tm-vaxbsd.h: Remove file.
594 2004-08-06 Joel Brobecker <brobecker@gnat.com>
596 * aix-thread.c (get_signaled_thread): New function.
597 (iter_trap): Delete, no longer used.
598 (iter_tid): New function.
599 (pd_update): Find the thread that received the SIGTRAP signal
600 by first locating the kernel thread, and then finding its
603 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
605 * lin-lwp.c (child_wait): Continue inferior after processing
606 PTRACE_EVENT_CLONE event.
608 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
610 * MAINTAINERS: Add self to Write-After-Approval.
612 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
614 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
615 libunwind-xxxx.so" where xxxx is UNW_TARGET.
617 2004-08-05 Andrew Cagney <cagney@gnu.org>
619 * config/xm-sysv4.h: Delete file.
620 * config/mips/xm-irix5.h: Delete file.
621 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
622 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
623 * config/ia64/xm-aix.h: Delete file.
624 * config/ia64/aix.mh (XM_FILE): Delete.
625 * config/pa/xm-hppah.h: Delete file.
626 * config/pa/hpux11w.mh (XM_FILE): Delete.
627 * config/pa/hpux11.mh (XM_FILE): Delete.
628 * config/pa/hpux1020.mh (XM_FILE): Delete.
629 * config/pa/hppahpux.mh (XM_FILE): Delete.
631 * config/alpha/xm-alphalinux.h: Delete file.
632 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
633 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
634 * config/alpha/xm-alphaosf.h: Delete file.
635 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
636 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
637 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
638 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
640 * config/i386/xm-i386v.h: Delete file.
641 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
642 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
643 * config/i386/xm-i386sco.h: Delete file.
644 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
645 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
646 * config/i386/xm-i386v4.h: Delete file.
647 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
648 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
649 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
650 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
652 * config/vax/xm-vax.h: Delete file.
653 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
654 * config/vax/xm-vaxult2.h: Delete file.
655 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
656 * config/vax/vaxult2.mh (XM_FILE): Delete.
657 * config/vax/xm-vaxult.h: Delete file.
658 * config/vax/vaxult.mh (XM_FILE): Delete.
659 * config/vax/xm-vaxbsd.h: Delete file.
660 * config/vax/vaxbsd.mh (XM_FILE): Delete.
662 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
663 * gdbarch.h, gdbarch.c: Re-generate.
664 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
665 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
666 * frame.h: Delete deprecated_read_fp from comments.
667 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
668 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
670 2004-08-04 Mark Kettenis <kettenis@gnu.org>
672 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
673 trampoline in OpenBSD 3.5-current.
675 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
678 * Makefile.in: Remove embedded page breaks.
680 2004-08-04 Jim Blandy <jimb@redhat.com>
682 * regcache.c (regcache_raw_read): Assert that, after calling
683 target_fetch_registers, the register we're reading is cached.
685 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
686 a call to 'internal_error', with a more helpful error message.
687 * rs6000-tdep.c (e500_pseudo_register_read,
688 e500_pseudo_register_write, rs6000_store_return_value): Same.
690 2004-08-04 Andrew Cagney <cagney@gnu.org>
692 * Makefile.in: Update dependencies.
694 2004-08-04 Jim Blandy <jimb@redhat.com>
696 Change the layout of the PowerPC E500 raw register cache to allow
697 the lower 32-bit halves of the GPRS to be their own raw registers,
699 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
700 add ppc_ev0_upper_regnum flag.
701 * rs6000-tdep.c: #include "reggroups.h".
702 (spe_register_p): Recognize the ev upper half registers as SPE
704 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
706 (e500_move_ev_register): New function.
707 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
708 vector registers are the pseudo-registers now, formed by splicing
709 together the gprs and the upper-half registers.
710 (e500_register_reggroup_p): New function.
713 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
714 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
716 (registers_e500): Rearrange register set so that the raw register
717 set contains 32-bit GPRs and upper-half registers, and the SPE
718 vector registers become pseudo-registers.
719 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
720 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
721 register numbers are now the same for the E500 as they are for
722 other PowerPC variants. Register e500_register_reggroup_p as the
723 register group function for the E500.
724 * Makefile.in (rs6000-tdep.o): Update dependencies.
726 Adapt PPC E500 native support to the new raw regcache layout.
727 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
728 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
729 (fetch_spe_register, store_spe_register): Handle fetching/storing
730 all the SPE registers at once, if regno == -1. These now take
731 over the job of fetch_spe_registers and store_spe_registers.
732 (fetch_spe_registers, store_spe_registers): Deleted.
733 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
734 unconditionally; they're always raw. Fetch/store SPE upper half
735 registers, if present, instead of ev registers.
736 (fetch_register, store_register): Remove sanity checks: gprs are
737 never pseudo-registers now, so we never need to even mention any
738 registers that are ever pseudoregisters.
740 Use a fixed register numbering when communicating with the PowerPC
742 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
743 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
744 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
746 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
747 init_sim_regno_table.
748 * Makefile.in (gdb_sim_ppc_h): New variable.
749 (rs6000-tdep.o): Update dependencies.
751 2004-08-02 Andrew Cagney <cagney@gnu.org>
753 * cris-tdep.c (cris_register_size): Restore function, still used
756 * gdbarch.sh (deprecated_target_read_fp)
757 (deprecated_frame_locals_address, deprecated_frame_args_address)
758 (deprecated_frame_chain_valid, deprecated_frame_chain)
759 (deprecated_init_extra_frame_info, deprecated_pop_frame)
760 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
761 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
762 * gdbarch.h, gdbarch.c: Re-generate.
763 * regcache.c (deprecated_read_fp): Do not call
764 DEPRECATED_TARGET_READ_FP_P.
765 * infcmd.c (default_print_registers_info): Do not call
766 DEPRECATED_DO_REGISTERS_INFO.
767 * frame-base.c (default_frame_locals_address): Do not call
768 DEPRECATED_FRAME_LOCALS_ADDRESS.
769 (default_frame_args_address): Do not call
770 DEPRECATED_FRAME_ARGS_ADDRESS.
772 * gdbarch.sh (deprecated_register_raw_size)
773 (deprecated_register_virtual_size:int): Delete.
774 * gdbarch.h, gdbarch.c: Re-generate.
775 * cris-tdep.c (cris_register_size): Delete.
776 (cris_gdbarch_init): Update.
777 * alpha-tdep.c (alpha_register_raw_size)
778 (alpha_register_virtual_size): Delete.
779 (alpha_gdbarch_init): Update.
781 * gdbarch.sh (deprecated_register_virtual_type)
782 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
783 (deprecated_dummy_write_sp): Delete.
784 * gdbarch.h, gdbarch.c: Re-generate.
786 * gdbarch.sh (deprecated_register_bytes): Delete.
787 * gdbarch.h, gdbarch.c: Re-generate.
788 * regcache.c (deprecated_register_bytes): New function.
789 * regcache.h (deprecated_register_bytes): Declare.
790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
791 * v850-tdep.c (v850_gdbarch_init): Update.
792 * sh64-tdep.c (sh64_gdbarch_init): Update.
793 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
794 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
795 * mcore-tdep.c (mcore_gdbarch_init): Update.
796 * cris-tdep.c (cris_gdbarch_init): Update.
797 * arm-tdep.c (arm_gdbarch_init): Update.
798 * remote.c (init_remote_state): Update.
799 * remote-vx.c (vx_prepare_to_store): Update.
800 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
801 * irix5-nat.c (fetch_core_registers): Update.
802 * cris-tdep.c (cris_register_bytes_ok): Update.
803 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
805 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
806 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
807 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
808 (mips_insn16_frame_base_address, mips_insn16_frame_base)
809 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
810 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
811 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
812 (mips_insn32_frame_base_address, mips_insn32_frame_base)
813 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
814 with mips_insn16 and mips_insn32.
816 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
817 * rs6000-tdep.c (rs6000_push_dummy_call)
818 (rs6000_extract_return_value): Use register_size.
819 * xstormy16-tdep.c (xstormy16_get_saved_register)
820 (xstormy16_extract_return_value): Ditto.
821 * valops.c (value_assign): Ditto.
822 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
823 * v850-tdep.c (v850_extract_return_value): Ditto.
824 * tracepoint.c (collect_symbol): Ditto.
825 * target.c (debug_print_register): Ditto.
826 * stack.c (frame_info): Ditto.
827 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
828 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
829 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
830 (store_register_using_P): Ditto.
831 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
832 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
833 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
834 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
835 * regcache.c (deprecated_read_register_bytes)
836 (deprecated_write_register_bytes, read_register)
837 (write_register): Ditto.
838 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
839 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
840 * monitor.c (monitor_supply_register, monitor_fetch_register)
841 (monitor_store_register): Ditto.
842 * mn10300-tdep.c (mn10300_pop_frame_regular)
843 (mn10300_print_register): Ditto.
844 * mipsv4-nat.c (fill_fpregset): Ditto.
845 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
846 (mips64_fill_fpregset): Ditto.
847 * mi/mi-main.c (register_changed_p, get_register)
848 (mi_cmd_data_write_register_values): Ditto.
849 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
850 * irix5-nat.c (fill_gregset, fetch_core_registers):
851 * infrun.c (write_inferior_status_register): Ditto.
852 * infptrace.c (fetch_register, store_register): Ditto.
853 * infcmd.c (default_print_registers_info): Ditto.
854 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
855 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
856 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
857 * hpux-thread.c (hpux_thread_fetch_registers)
858 (hpux_thread_store_registers): Ditto.
859 * hppah-nat.c (store_inferior_registers, fetch_register):
860 * findvar.c (value_from_register): Ditto.
861 * dve3900-rom.c (fetch_bitmapped_register):
862 * cris-tdep.c (cris_gdbarch_init): Ditto.
863 * alpha-tdep.h: Ditto.
864 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
866 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
867 DEPRECATED_REGISTER_RAW_SIZE from comments.
868 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
869 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
870 DEPRECATED_REGISTER_RAW_SIZE.
871 * findvar.c (value_of_register): Simplify by assuming that the
872 registers raw and virtual sizes are identical.
873 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
875 * arch-utils.c (generic_register_size): Simplify by assuming
878 * regcache.c (legacy_read_register_gen, real_register)
879 (legacy_write_register_gen): Delete, not used.
881 * regcache.c (struct regcache_descr): Delete legacy_p.
882 (init_legacy_regcache_descr): Delete function.
883 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
884 Do not use deprecated register functions.
885 (regcache_raw_read, deprecated_write_register_gen):
886 (deprecated_read_register_gen, regcache_raw_write): Delete code
887 predicated on legacy_p.
888 (register_size): Delete check against register raw size.
890 * cris-tdep.c (cris_register_type): Replace
891 cris_register_virtual_type.
892 (cris_gdbarch_init): Update, set register_type.
894 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
895 * gdbarch.h, gdbarch.c: Re-generate.
896 * arm-tdep.c (arm_frameless_function_invocation): Delete.
897 (arm_gdbarch_init) Do not set frameless function invocation.
898 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
899 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
900 * frv-tdep.c (frv_frameless_function_invocation): Delete.
901 (frv_gdbarch_init): Do not set frameless function invocation.
902 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
903 * sh-tdep.c (sh_gdbarch_init): Ditto.
904 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
905 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
906 * avr-tdep.c (avr_gdbarch_init): Ditto.
908 * blockframe.c (legacy_frame_chain_valid): Delete function.
910 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
911 and pc. Update comments.
912 (pc_in_dummy_frame): Delete function.
913 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
915 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
916 call_hi, top and pc, use the id.
917 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
919 * dummy-frame.c: Include "gdb_string.h".
920 (generic_save_call_dummy_addr, generic_push_dummy_frame)
921 (generic_save_dummy_frame_tos): Delete.
922 (dummy_frame_push): New function, replaces above.
923 * dummy-frame.h: Update copyright.
924 (dummy_frame_push): Declare.
925 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
926 (generic_save_call_dummy_addr): Delete declarations.
927 * infcall.c: Include "dummy-frame.h".
928 (call_function_by_hand): Add locals caller_regcache,
929 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
930 with call to frame_save_as_regcache plus cleanup. Delete calls to
931 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
932 Move clear_proceed_status to just before the resume, add call to
933 dummy_frame_push (discard cleanup).
934 * Makefile.in (infcall.o): Add $(dummy_frame_h).
935 (dummy-frame.o): Add $(gdb_string_h).
937 2004-08-01 Andrew Cagney <cagney@gnu.org>
939 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
940 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
941 * dummy-frame.c (find_dummy_frame): Delete.
942 (struct dummy_frame_cache, dummy_frame_sniffer)
943 (dummy_frame_prev_register, dummy_frame_this_id)
944 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
945 frame unwinder using a dummy_frame_cache.
947 2004-08-01 Andrew Cagney <cagney@gnu.org>
949 * frame.h (frame_save_as_regcache): Declare.
950 * frame.c (frame_save_as_regcache): New function.
951 (do_frame_read_register): Replace do_frame_unwind_register.
952 (frame_pop): Use frame_save_as_regcache.
953 * dummy-frame.c (generic_push_dummy_frame): Use
954 frame_save_as_regcache.
956 2004-08-01 Joel Brobecker <brobecker@gnat.com>
958 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
959 file as included until we record the first line in the linetable.
961 2004-08-01 Andrew Cagney <cagney@gnu.org>
963 * frame.h (deprecated_pop_dummy_frame)
964 (deprecated_read_register_dummy)
965 (deprecated_generic_find_dummy_frame): Delete.
966 * dummy-frame.c (deprecated_generic_find_dummy_frame)
967 (deprecated_read_register_dummy)
968 (deprecated_find_dummy_frame_regcache)
969 (discard_innermost_dummy)
970 (deprecated_pop_dummy_frame): Delete.
971 (dummy_frame_this_id): Simplify.
972 (struct dummy_frame): Delete "fp" and "sp".
973 (find_dummy_frame): Simplify.
974 (generic_push_dummy_frame): Do not set "fp" or "sp".
975 (fprint_dummy_frames): Do not print "fp" and "sp"
977 2004-08-01 Mark Kettenis <kettenis@gnu.org>
979 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
980 (struct i386_insn): New structure.
981 (i386_match_insn): New function.
982 (i386_frame_setup_skip_insns): New variable.
983 (i386_analyze_frame_setup): Change to use i386_match_insn and the
984 array i386_frame_setup_insns of instructions that should be
985 skipped inside the frame setup sequence.
987 2004-08-01 Andrew Cagney <cagney@gnu.org>
989 * frame.h (deprecated_frame_xmalloc_with_cleanup)
990 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
991 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
992 * stack.c (frame_info): Delete references to
993 DEPRECATED_FRAME_INIT_SAVED_REGS and
994 deprecated_get_frame_saved_regs.
995 * frame.c (struct frame_info): Delete saved_regs and extra_info.
996 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
997 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
998 (frame_unwind_register_signed)
999 (frame_unwind_register_unsigned)
1000 (frame_unwind_unsigned_register): Use register_size.
1001 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1002 (deprecated_frame_xmalloc_with_cleanup)
1003 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1004 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1006 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1007 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1008 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1009 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1011 * infcall.c (call_function_by_hand): Do not use
1012 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1013 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1014 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1015 DEPRECATED_STACK_ALIGN.
1017 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1019 Committed by Andrew Cagney.
1020 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1022 2004-08-01 Andrew Cagney <cagney@gnu.org>
1024 * mips-tdep.c (mips16_frame_cache)
1025 (mips16_frame_this_id, mips16_frame_prev_register)
1026 (mips16_frame_unwind, mips16_frame_sniffer)
1027 (mips16_frame_base_address, mips16_frame_base)
1028 (mips16_frame_base_sniffer, mips32_frame_cache)
1029 (mips32_frame_this_id, mips32_frame_prev_register)
1030 (mips32_frame_unwind, mips32_frame_sniffer)
1031 (mips32_frame_base_address, mips32_frame_base)
1032 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1033 separate heuristic mips16 and mips32 unwinders.
1034 (mips_stub_frame_cache, mips_stub_frame_this_id)
1035 (mips_stub_frame_prev_register)
1036 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1037 (mips_stub_frame_base_address, mips_stub_frame_base)
1038 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1039 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1040 match true mdebug frames.
1041 (non_heuristic_proc_desc): Add forward declaration.
1043 2004-08-01 Andrew Cagney <cagney@gnu.org>
1045 * config/mips/tm-irix6.h: Delete file.
1046 * config/mips/tm-irix5.h: Delete file.
1047 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1048 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1050 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1051 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1052 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1053 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1054 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1055 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1056 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1057 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1058 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1059 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1060 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1061 (TARGET_SIGNAL_RAW_VALUES): Delete.
1062 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1064 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1065 (TARGET_HW_WATCH_LIMIT): Delete.
1066 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1067 * minimon.h: Delete file.
1069 * trad-frame.c (trad_frame_get_this_base)
1070 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1072 * trad-frame.h (trad_frame_set_this_base)
1073 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1075 2004-07-31 Andrew Cagney <cagney@gnu.org>
1077 * trad-frame.c (trad_frame_get_prev_register): Rename
1078 trad_frame_get_prev_register.
1079 * vax-tdep.c (vax_frame_prev_register): Update.
1080 * trad-frame.h: Update.
1081 * trad-frame.c (trad_frame_get_register): Update.
1082 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1083 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1085 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1086 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1088 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1090 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1092 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1094 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1096 * s390-tdep.c (s390_frame_prev_register)
1097 (s390_stub_frame_prev_register)
1098 (s390_sigtramp_frame_prev_register): Update.
1099 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1100 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1101 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1102 * m88k-tdep.c (m88k_frame_prev_register)
1103 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1104 * m32r-tdep.c (m32r_frame_prev_register): Update.
1105 * hppa-tdep.c (hppa_frame_prev_register_helper)
1106 * frv-tdep.c (frv_frame_prev_register): Update.
1107 * d10v-tdep.c (d10v_frame_prev_register): Update.
1108 * cris-tdep.c (cris_frame_prev_register): Update.
1109 * avr-tdep.c (avr_frame_prev_register): Update.
1110 * arm-tdep.c (arm_prologue_prev_register)
1111 (arm_sigtramp_prev_register): Update.
1113 2004-07-31 Andrew Cagney <cagney@gnu.org>
1115 * frame.h (legacy_saved_regs_unwind)
1116 (legacy_frame_chain_valid, legacy_frame_p)
1117 (enum frame_type): Delete UNKNOWN_FRAME.
1118 * dummy-frame.c (dummy_frame_this_id): Simplify.
1119 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1120 * frame.c (struct frame_info): Delete the field "type".
1121 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1122 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1123 (legacy_saved_regs_unwind, legacy_frame_p)
1124 (frame_type_from_pc): Delete.
1125 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1126 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1128 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1130 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1133 * mips-nat.c: Remove file.
1134 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1135 (mips-nat.o): Remove dependency.
1137 * infptrace.c: Update copyright year.
1138 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1139 explicitly setting the buffer to all zeroes.
1141 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1142 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1144 2004-07-30 Andrew Cagney <cagney@gnu.org>
1146 * GDB 6.2 released from gdb_6_2-branch.
1148 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1150 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1152 * exec.c (exec_file_attach):
1153 * nto-tdep.c (nto_find_and_open_solib):
1154 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1155 * solib.c (solib_open):
1156 * somsolib.c (som_solib_sizeof_symbol_table):
1157 * source.c (is_regular_file, openp, open_source_file):
1158 * symfile.c (symfile_bfd_open):
1159 * wince.c (upload_to_device): Differentiate between the search for
1160 binary and source files.
1162 2004-07-30 Andrew Cagney <cagney@gnu.org>
1164 * complaints.c (_initialize_complaints): Pass NULL to
1165 add_setshow_zinteger_cmd for help_doc.
1166 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1168 2004-07-30 Andrew Cagney <cagney@gnu.org>
1171 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1172 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1173 $(PACKAGE).pot and update-po.
1174 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1175 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1176 (update-po): New rules.
1177 (localedir): Define using autoconf.
1178 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1179 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1180 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1181 * configure.in: Generate CATALOGS and LINGUAS from contents of
1182 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1183 * configure: Re-generate.
1184 * po/gdbtext: New file
1186 2004-07-30 Jerome Guitton <guitton@gnat.com>
1188 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1191 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1193 * dwarf2read.c (read_file_scope): Set producer if attribute
1195 (struct dwarf2_cu): Added new member producer.
1197 2004-07-30 Jerome Guitton <guitton@gnat.com>
1199 * inflow.c (kill_command): release file handles in BFD.
1200 * exec.c (exec_file_attach): Ditto.
1201 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1203 2004-07-29 Andrew Cagney <cagney@gnu.org>
1205 * PROBLEMS (mips-irix): Note that it is broken.
1207 2004-07-29 Andrew Cagney <cagney@gnu.org>
1209 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1210 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1212 * config/xm-nbsd.h: Delete file.
1213 * config/arm/xm-nbsd.h: Delete file.
1214 * config/i386/xm-nbsd.h: Delete file.
1215 * config/ns32k/xm-nbsd.h: Delete file.
1216 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1217 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1218 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1219 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1220 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1222 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1223 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1224 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1225 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1226 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1227 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1229 * config/powerpc/xm-linux.h: Delete empty file.
1230 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1231 * config/powerpc/linux.mh (XM_FILE): Delete.
1232 * config/m68k/xm-linux.h: Delete empty file.
1233 * config/m68k/linux.mh (XM_FILE): Delete.
1234 * config/ia64/xm-linux.h: Delete empty file.
1235 * config/ia64/linux.mh (XM_FILE): Delete.
1236 * config/arm/xm-linux.h: Delete empty file.
1237 * config/arm/linux.mh (XM_FILE): Delete.
1239 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1240 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1241 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1242 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1243 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1244 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1245 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1246 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1248 * config/m68k/xm-m68k.h: Delete file.
1249 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1251 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1252 * config/pa/xm-linux.h: Delete empty file.
1253 * config/pa/linux.mh (XM_FILE): Delete.
1254 * config/i386/xm-i386.h: Delete empty file.
1255 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1257 * config/i386/obsdaout.mh (XM_FILE): Delete.
1258 * config/i386/obsd64.mh (XM_FILE): Delete.
1259 * config/i386/fbsd64.mh (XM_FILE): Delete.
1260 * config/i386/nto.mh (XM_FILE): Delete.
1261 * config/i386/obsd.mh (XM_FILE): Delete.
1262 * config/i386/linux64.mh (XM_FILE): Delete.
1263 * config/i386/linux.mh (XM_FILE): Delete.
1264 * config/i386/i386sol2.mh (XM_FILE): Delete.
1265 * config/i386/i386gnu.mh (XM_FILE): Delete.
1266 * config/i386/fbsd.mh (XM_FILE): Delete.
1267 * config/i386/nbsd64.mh (XM_FILE): Delete.
1269 2004-07-29 Andrew Cagney <cagney@gnu.org>
1271 * config/pa/xm-linux.h: Do not include "floatformat.h".
1272 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1273 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1274 * config/i386/xm-i386.h: Do not include "floatformat.h".
1275 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1276 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1277 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1278 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1279 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1280 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1281 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1282 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1283 * configure, config.in: Regenerate.
1284 * configure.host (gdb_host_float_format, gdb_host_double_format)
1285 (gdb_host_long_double_format): Set according to the host.
1287 2004-07-29 Andrew Cagney <cagney@gnu.org>
1289 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1291 2004-07-28 Andrew Cagney <cagney@gnu.org>
1293 * PROBLEMS: Mention threads/1650.
1294 * NEWS: Mention the NPTL fix.
1296 2004-07-28 Andrew Cagney <cagney@gnu.org>
1298 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1299 (add_setshow_cmd_full): Make static.
1300 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1301 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1302 * cli/cli-decode.c (add_setshow_filename_cmd)
1303 (add_setshow_string_cmd): New functions.
1304 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1305 * mips-tdep.c (_initialize_mips_tdep): Update.
1306 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1307 * cli/cli-logging.c (_initialize_cli_logging): Update.
1308 * complaints.c (_initialize_complaints): Update.
1309 * remote.c (_initialize_remote): Update.
1311 2004-07-28 Andrew Cagney <cagney@gnu.org>
1313 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1314 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1315 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1316 print parameters. Make string parameters constant.
1317 * command.h: Update. Update copyright.
1318 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1319 * observer.c (_initialize_observer): Ditto.
1320 * frame.c (_initialize_frame): Ditto.
1321 * complaints.c (_initialize_complaints): Ditto.
1322 * maint.c (_initialize_maint_cmds): Ditto.
1323 * target.c (initialize_targets): Ditto.
1324 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1325 * infcall.c (_initialize_infcall): Ditto.
1326 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1327 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1328 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1329 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1330 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1332 2004-07-28 Andrew Cagney <cagney@gnu.org>
1334 * gdbtypes.c (lookup_primitive_typename): Delete function.
1335 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1336 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1337 * gdbtypes.c (lookup_typename): Ditto.
1338 * f-exp.y (yylex): Ditto.
1339 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1341 * scm-lang.c (c_builtin_types): Delete extern declaration.
1342 (scm_language_defn): Replace
1343 string_char_type and primitive_type_vector with
1344 la_language_arch_info.
1345 * jv-lang.c (java_language_defn): Replace
1346 string_char_type and primitive_type_vector with
1347 la_language_arch_info.
1348 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1349 c_builtin_types in comment.
1350 * c-lang.h (struct language_arch_info): Declare opaque.
1351 (c_language_arch_info): Declare.
1352 (c_builtin_types): Delete declaration.
1353 * c-lang.c (c_language_arch_info): Set string_char_type to
1354 builtin_char, not builtin_true_char. Make global.
1355 (c_builtin_types): Delete array.
1356 (asm_language_defn, minimal_language_defn): Replace
1357 string_char_type and primitive_type_vector with
1358 la_language_arch_info.
1360 2004-07-28 Andrew Cagney <cagney@gnu.org>
1362 * gdbtypes.h (struct builtin_type): Rename true_char to
1364 * gdbtypes.c (gdbtypes_post_init): Update.
1365 * c-lang.c (arch_info): New function.
1366 (enum c_primitive_types): New enum.
1367 (c_language_defn): Instead of string_char_type and
1368 primitive_type_vector set la_language_arch_info.
1370 2004-07-28 Andrew Cagney <cagney@gnu.org>
1372 * language.h (struct language_arch_info): Fix typo
1373 s/primative/primitive/.
1374 * gdbtypes.c (lookup_primitive_typename): Ditto.
1375 * language.c (language_lookup_primitive_type_by_name)
1376 (unknown_language_arch_info): Ditto.
1378 2004-07-27 Andrew Cagney <cagney@gnu.org>
1380 * defs.h (enum language): Add nr_languages.
1381 * language.h (struct language_arch_info): Define.
1382 (struct language_defn): Add la_language_arch_info.
1383 (language_lookup_primative_type_by_name): Declare.
1384 (language_string_char_type): Declare.
1385 * language.c (_initialize_language, language_gdbarch_post_init)
1386 (struct language_gdbarch, language_gdbarch_data): Implement
1387 per-architecture language information.
1388 (unknown_language_arch_info, language_string_char_type)
1389 (language_lookup_primative_type_by_name): New functions.
1390 (unknown_language_defn, auto_language_defn)
1391 (local_language_defn): Set la_language_arch_info to
1392 unknown_language_arch_info.
1393 (unknown_builtin_types): Delete.
1394 * gdbtypes.c (lookup_primitive_typename): Use
1395 language_lookup_primative_type_by_name.
1396 (create_string_type): Use language_string_char_type.
1397 * values.c (value_from_string): Use language_string_char_type.
1398 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1399 * p-lang.c (pascal_language_defn): Ditto.
1400 * m2-lang.c (m2_language_defn): Ditto.
1401 * jv-lang.c (java_language_defn): Ditto.
1402 * objc-lang.c (objc_language_defn): Ditto.
1403 * f-lang.c (f_language_defn): Ditto.
1404 * c-lang.c (c_language_defn, cplus_language_defn)
1405 (asm_language_defn, minimal_language_defn): Ditto.
1407 2004-07-27 Andrew Cagney <cagney@gnu.org>
1409 * gdbtypes.h (struct builtin_type): Declare.
1410 (builtin_type): Declare.
1411 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1412 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1413 (gdbtypes_post_init): New function.
1414 (builtin_type): New function.
1416 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1418 * remote-m32r-sdi.c: Fix breakpoint bug.
1419 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1420 recv_char_data, recv_long_data): New functions to replace communication
1423 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1425 Document PR threads/1650.
1426 * PROBLEMS (Threads): Document problem with many threads
1428 2004-07-26 Andrew Cagney <cagney@gnu.org>
1430 * gdb-mi.el: Move from here ...
1431 * mi/gdb-mi.el: ... to here.
1433 2004-07-26 Andrew Cagney <cagney@gnu.org>
1435 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1436 * main.c (captured_main): When in batch mode always detach.
1438 2004-07-26 Andrew Cagney <cagney@gnu.org>
1440 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1441 and h8300 as broken.
1442 * NEWS: END-OF-LIFE frame compatibility module.
1443 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1446 2004-07-26 Andrew Cagney <cagney@gnu.org>
1448 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1449 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1450 * wince.c (_initialize_wince): Update.
1451 * win32-nat.c (_initialize_win32_nat): Update.
1452 * varobj.c (_initialize_varobj): Update.
1453 * valops.c (_initialize_valops): Update.
1454 * utils.c (initialize_utils, initialize_utils): Update.
1455 * tui/tui-win.c (_initialize_tui_win): Update.
1456 * top.c (init_main): Update.
1457 * symfile.c (_initialize_symfile): Update.
1458 * source.c (_initialize_source): Update.
1459 * somsolib.c (_initialize_som_solib): Update.
1460 * solib.c (_initialize_solib): Update.
1461 * solib-frv.c (_initialize_frv_solib): Update.
1462 * serial.c (_initialize_serial): Update.
1463 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1464 * remote.c (_initialize_remote, _initialize_remote): Update.
1465 * remote-vx.c (_initialize_vx): Update.
1466 * remote-utils.c (_initialize_sr_support): Update.
1467 * remote-sds.c (_initialize_remote_sds): Update.
1468 * remote-mips.c (_initialize_remote_mips): Update.
1469 * remote-e7000.c (_initialize_remote_e7000): Update.
1470 * proc-api.c (_initialize_proc_api): Update.
1471 * printcmd.c: Update.
1472 * parse.c (_initialize_parse): Update.
1473 * pa64solib.c (_initialize_pa64_solib): Update.
1474 * p-valprint.c (_initialize_pascal_valprint): Update.
1475 * monitor.c (_initialize_remote_monitors): Update.
1476 * mips-tdep.c (_initialize_mips_tdep): Update.
1477 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1478 * maint.c (_initialize_maint_cmds): Update.
1479 * lin-lwp.c (_initialize_lin_lwp): Update.
1480 * language.c (_initialize_language): Update.
1481 * kod.c (_initialize_kod): Update.
1482 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1483 * i386-tdep.c (_initialize_i386_tdep): Update.
1484 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1485 * gdbarch.sh: Update.
1486 * gdbarch.c: Re-generate.
1487 * gdb-events.sh: Update.
1488 * gdb-events.c: Re-generate.
1489 * frame.c (_initialize_frame): Update.
1491 * demangle.c (_initialize_demangler): Update.
1492 * dcache.c (_initialize_dcache): Update.
1493 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1494 * cp-valprint.c (_initialize_cp_valprint): Update.
1495 * corefile.c (_initialize_core): Update.
1496 * command.h: Update.
1497 * cli/cli-decode.h: Update.
1498 * cli/cli-cmds.c (init_cli_cmds): Update.
1499 * charset.c (_initialize_charset): Update.
1500 * breakpoint.c (_initialize_breakpoint): Update.
1501 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1502 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1503 * aix-thread.c (_initialize_aix_thread): Update.
1505 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1507 Partial fix for PR backtrace/1718.
1508 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1509 that GCC migrates into the prolugue. Don't handle any
1510 instructions that clobber %ebx.
1512 2004-07-23 Andrew Cagney <cagney@gnu.org>
1514 Use regcache_raw_collect instead of regcache_collect.
1515 * regcache.h (regcache_collect): Delete declaration.
1516 * regcache.c (regcache_colect): Delete function.
1517 * win32-nat.c (do_child_store_inferior_registers): Update.
1518 * sol-thread.c (sol_thread_store_registers): Update.
1519 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1520 * rs6000-nat.c (store_register): Update.
1521 * remote.c (store_register_using_P, remote_store_registers): Update.
1522 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1523 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1524 (fill_vrregset, store_spe_registers, fill_gregset)
1525 (fill_gregset): Update.
1526 * nto-procfs.c (procfs_store_registers): Update.
1527 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1528 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1529 * m68klinux-nat.c (store_register, fill_gregset): Update.
1530 * m68k-tdep.c (fill_gregset): Update.
1531 * infptrace.c (store_register): Update.
1532 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1533 * i386-linux-nat.c (store_register, fill_gregset): Update.
1534 * hppa-linux-nat.c (fill_gregset): Update.
1535 * go32-nat.c (store_register): Update.
1536 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1537 (store_fp_regs): Update.
1538 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1539 (store_nwfpe_extended, store_fpregister, store_fpregs)
1540 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1541 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1542 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1543 (store_regs_user_thread, store_regs_kernel_thread): Update.
1545 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1547 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1548 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1550 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1551 member of `struct comp_unit'.
1553 2004-07-23 Andrew Cagney <cagney@gnu.org>
1555 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1556 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1558 2004-07-23 Martin Hunt <hunt@redhat.com>
1559 Kevin Buettner <kevinb@redhat.com>
1561 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1562 alignment was being added to the offset instead of multiplied.
1564 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1566 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1567 changed signal trampoline in OpenBSD 3.5-current.
1569 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1570 <machine/pcb.h> and "bsd-kvm.h".
1571 (sparc64nbsd_supply_pcb): New function.
1572 (_initialize_sparc64nbsd_nat): Renamed from
1573 _initialize_sparcnbsd_nat. Enable libkvm interface.
1574 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1575 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1576 (LOADLIBES): New variable.
1578 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1580 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1582 2004-07-21 Andrew Cagney <cagney@gnu.org>
1584 Use regcache_raw_supply instead of supply_register.
1585 * regcache.h (supply_register): Delete declaration.
1586 * regcache.c (supply_register): Delete function.
1587 * wince.c (do_child_fetch_inferior_registers): Update.
1588 * win32-nat.c (do_child_fetch_inferior_registers)
1589 (fetch_elf_core_registers): Update.
1590 * v850ice.c (v850ice_fetch_registers): Update.
1591 * thread-db.c (thread_db_store_registers): Update.
1592 * sol-thread.c (sol_thread_store_registers): Update.
1593 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1594 * rs6000-nat.c (fetch_register): Update.
1595 * rom68k-rom.c (rom68k_supply_one_register): Update.
1596 * remote.c (remote_wait, remote_async_wait): Update.
1597 * remote-st.c (get_hex_regs): Update.
1598 * remote-sim.c (gdbsim_fetch_register): Update.
1599 * remote-sds.c (sds_fetch_registers): Update.
1600 * remote-rdp.c (remote_rdp_fetch_register): Update.
1601 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1602 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1603 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1604 * remote-hms.c (init_hms_cmds): Update.
1605 * remote-est.c (init_est_cmds): Update.
1606 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1607 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1608 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1609 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1610 (fetch_register, supply_vrregset, supply_vrregset)
1611 (fetch_spe_registers): Update.
1612 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1613 * monitor.c (monitor_supply_register): Update.
1614 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1615 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1616 (mipsnbsd_supply_fpreg): Update.
1617 * mips-nat.c (fetch_inferior_registers)
1618 (fetch_core_registers): Update.
1619 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1620 (supply_fpregset, mips64_supply_gregset)
1621 (mips64_supply_fpregset): Update.
1622 * m68klinux-nat.c (fetch_register, supply_gregset)
1623 (supply_fpregset): Update.
1624 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1625 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1626 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1627 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1628 * infptrace.c (fetch_register): Update.
1629 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1630 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1631 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1632 (gnu_fetch_registers, gnu_store_registers): Update.
1633 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1634 * i386-linux-nat.c (fetch_register, supply_gregset)
1635 (dummy_sse_values): Update.
1636 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1637 * hppah-nat.c (fetch_register): Update.
1638 * hppa-linux-nat.c (fetch_register, supply_gregset)
1639 (supply_fpregset): Update.
1640 * go32-nat.c (fetch_register): Update.
1641 * dve3900-rom.c (fetch_bitmapped_register)
1642 (_initialize_r3900_rom): Update.
1643 * cris-tdep.c (supply_gregset): Update.
1644 * abug-rom.c (init_abug_cmds): Update.
1645 * core-aout.c (fetch_core_registers): Update.
1646 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1647 (fetch_register, fetch_fp_register): Update.
1648 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1649 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1650 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1651 * alphanbsd-tdep.c (fetch_core_registers): Update.
1652 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1653 * alpha-nat.c (fetch_osf_core_registers)
1654 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1655 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1656 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1658 2004-07-21 Andrew Cagney <cagney@gnu.org>
1660 * PROBLEMS: Mention breakpoints/1702.
1661 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1662 that is known to work.
1664 2004-07-21 Andrew Cagney <cagney@gnu.org>
1666 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1667 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1668 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1669 (handle_inferior_event): Wrap call to deprecated
1670 IGNORE_HELPER_CALL in #ifdef.
1671 * config/mips/tm-nbsd.h: Update.
1673 2004-07-20 Jim Blandy <jimb@redhat.com>
1675 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1676 bfd_mach_ppc has no segment registers.
1678 Include PowerPC SPR numbers for special-purpose registers.
1679 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1680 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1681 new member in initializer.
1682 (S, S4, SN4, S64): New macros for defining special-purpose
1684 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1685 registers_403, registers_403GC, registers_505, registers_860,
1686 registers_601, registers_602, registers_603, registers_604,
1687 registers_750, registers_e500): Use them.
1689 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1690 replace references with expression used to initialize variable.
1692 2004-07-20 Andrew Cagney <cagney@gnu.org>
1694 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1696 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1697 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1698 (s390_sigtramp_frame_sniffer): Update.
1699 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1700 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1701 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1702 (mips32_fetch_instruction): Update.
1703 * mcore-tdep.c (get_insn): Update.
1704 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1705 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1706 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1707 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1708 (i386_linux_rt_sigtramp_start): Update.
1709 * i386-linux-nat.c (child_resume): Update.
1710 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1711 * hppa-linux-tdep.c (insns_match_pattern): Update.
1712 * gdbcore.h: Update.
1713 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1714 * frame.c (safe_frame_unwind_memory): Update.
1715 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1716 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1717 * alpha-tdep.c (alpha_read_insn): Update.
1719 2004-07-20 Andrew Cagney <cagney@gnu.org>
1721 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1722 containing both bytes and mask. Add "frame_type".
1723 * tramp-frame.c (tramp_frame_start): Update.
1724 (tramp_frame_prepend_unwinder): Update.
1725 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1726 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1727 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1728 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1730 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1732 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1733 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1734 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1735 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1737 2004-07-17 Andrew Cagney <cagney@gnu.org>
1739 * NEWS, PROBLEMS: Update for 6.2.
1741 * README: Update to 6.2.
1743 * utils.c (xvasprintf): Call xstrvprintf.
1745 * parse.c: Update copyright.
1746 (null_post_parser): Eliminate ARGSUSED.
1748 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1749 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1750 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1752 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1753 * ppc-linux-nat.c: Use "Linux kernel".
1754 * hppa-linux-tdep.c: Use GNU/Linux.
1755 * hppa-linux-nat.c: Use GNU/Linux.
1756 * dwarfread.c: Add [sic] to use of Linux.
1758 * hppa-linux-nat.c: Do not include <string.h>.
1759 (supply_fpregset): Remove "register" attribute.
1761 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1763 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1765 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1766 * configure, config.in: Regenerated.
1768 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1770 (vaxbsd_supply_pcb): New function.
1771 (_initialize_vaxbsd_nat): New prototype and function.
1772 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1774 (LOADLIBES): New variable.
1775 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1776 (LOADLIBES): New variable.
1777 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1778 (LOADLIBES): New variable.
1779 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1781 2004-07-16 Andrew Cagney <cagney@gnu.org>
1783 * defs.h (event_loop_p): Replace variable declaration with macro,
1785 * main.c (captured_main): Delete options "-async" and "-noasync".
1786 (event_loop_p): Delete variable.
1787 * NEWS: Mention that "-async" and "-noasync" were removed.
1789 2004-07-16 Andrew Cagney <cagney@gnu.org>
1791 * remote-m32r-sdi.c: Re-indent.
1793 2004-07-16 Jim Blandy <jimb@redhat.com>
1795 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1796 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1797 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1798 missing MPC823 SPRs.
1799 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1800 incorrect. (This was corrected in GDB's register name tables on
1803 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1804 should be "esasrr" ("ESA Save and Restore Register").
1806 2004-07-16 Andrew Cagney <cagney@gnu.org>
1808 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1809 calls, no longer applicable. Update comments and rename parameter
1810 "step_frame" to "return_frame".
1812 2004-07-16 Andrew Cagney <cagney@gnu.org>
1814 * frame.c (fprint_field): New function.
1815 (fprint_frame_id): Use fprint_field.
1817 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1819 * ada-lang.c (ada_language_defn): Remove commented out code.
1821 2004-07-15 Jim Blandy <jimb@redhat.com>
1823 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1824 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1826 2004-07-14 Jim Blandy <jimb@redhat.com>
1828 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1830 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1832 * ppc-tdep.h (ppc_num_srs): New enum constant.
1834 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1835 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1836 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1837 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1838 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1839 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1840 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1841 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1842 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1843 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1844 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1845 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1846 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1847 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1848 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1849 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1850 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1851 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1852 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1853 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1854 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1855 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1856 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1857 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1858 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1859 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1860 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1861 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1862 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1863 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1864 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1865 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1866 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1867 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1868 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1869 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1870 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1871 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1872 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1873 special-purpose register numbers.
1875 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1876 manual mentions 'md_twb', but many mention 'm_twb', and at that
1877 point in the register list.)
1879 2004-07-14 Andrew Cagney <cagney@gnu.org>
1881 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1882 instead of "internal-error".
1884 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1886 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1887 that was inserted inside a comment.
1889 2004-07-10 Randolph Chung <tausq@debian.org>
1891 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1893 (hppa_hpux_push_dummy_code): New function.
1894 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1895 Set find_global_pointer method.
1897 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1899 * NEWS: Mention BSD libkvm interface.
1901 2004-07-10 Michael Snyder <msnyder@redhat.com>
1903 * symfile.c (generic_load): Comment typo.
1904 * stack.c (get_selected_block): Ditto.
1905 * regcache.c (regcache_cooked_read): Ditto.
1906 * monitor.c (monitor_debug): Ditto.
1907 * mips-tdep.c (mips_read_pc): Ditto.
1908 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1909 * gdb_mbuild.sh: Ditto.
1910 * gdbarch.sh: Ditto.
1913 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1915 * ada-tasks.c: Remove file.
1917 Remove ARI problems:
1919 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1922 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1924 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1925 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1926 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1927 (UMIN_OF_SIZE): Remove.
1928 (max_of_type): New function to replace orphan macro in gdbtypes.h
1929 (min_of_type): Ditto.
1930 (discrete_type_high_bound): Use max_of_type.
1931 (discrete_type_low_bound): Use min_of_type.
1932 (possible_user_operator_p): Move operator to beginning of line.
1933 (ada_is_variant_part): Ditto.
1934 (ensure_lval): Rewrite to avoid deprecated operations.
1935 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1936 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1937 (ada_enum_name): Remove assignments in 'if' statements.
1938 (build_ada_types): Add gdbarch parameter.
1939 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1940 with gdbarch_data_register_post_init.
1941 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1944 * ada-valprint.c (inspect_it): Remove declaration.
1945 (repeat_count_threshold): Remove declaration.
1946 (ada_print_floating): Remove assignments in 'if' statements.
1947 (print_str): Move operator to beginning of line.
1949 2004-07-08 Jim Blandy <jimb@redhat.com>
1951 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1953 2004-07-08 Bob Rossi <bob@brasko.net>
1955 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1957 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1959 * language.h (struct_language_defn): Add new function pointer:
1960 la_class_name_from_physname. Also add new prototype for
1961 language_class_name_from_physname.
1962 * language.c (language_class_name_from_physname): New function.
1963 (unk_lang_class_name): Ditto.
1964 (unknown_language_defn, auto_language_defn): Change
1965 to add unk_lang_class_name function pointer for
1966 la_class_name_from_physname.
1967 (local_language_defn): Ditto.
1968 * dwarf2read.c (guess_structure_name): Change to call
1969 language_class_name_from_physname.
1970 (determine_class_name): Ditto.
1971 * cp-support.c (class_name_from_physname): Renamed.
1972 (cp_class_name_from_physname): New name of function.
1973 * cp-support.h: Ditto.
1974 * c-lang.c (c_language_defn): Change to add NULL
1975 for class_name_from_physname function pointer.
1976 (cplus_language_defn): Change to add cp_class_name_from_physname.
1977 * jv-lang.c (java_class_name_physname): New function.
1978 (java_find_last_component): New static routine.
1979 (java_language_defn): Add java_class_name_from_physname pointer.
1980 * ada-lang.c (ada_language_defn): Change to add NULL
1981 for class_name_from_physname function pointer.
1982 * f-lang.c (f_language_defn): Ditto.
1983 * m2-lang.c (m2_language_defn): Ditto.
1984 * objc-lang.c (objc_language_defn): Ditto.
1985 * p-lang.c (pascal_language_defn): Ditto.
1986 * scm-lang.c (scm_language_defn): Ditto.
1988 2004-07-06 Andrew Cagney <cagney@gnu.org>
1990 Patch from Bart Robinson.
1991 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1992 (O_LARGEFILE): Define to 0, if not defined.
1994 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1996 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1997 <machine/pcb.h> and "bsd-kvm.h".
1998 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1999 (m68kbsd_supply_pcb): New function.
2000 (_initialize_m68kbsd_nat): New prototype and function.
2001 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2002 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2003 (LOADLIBES): New variable.
2004 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2005 (LOADLIBES): New variable.
2007 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2009 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2011 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2013 (bsd_kvm_cmdlist): New variable.
2014 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2015 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2016 command and "kvm proc" command.
2017 * Makefile.in (bsd-kvm.o): Update dependencies.
2019 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2021 * osabi.c: Update copyright year.
2022 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2023 notes if EI_OSABI is set to ELFOSABI_HPUX.
2025 2004-07-01 Michael Snyder <msnyder@redhat.com>
2027 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2028 that seems to have gotten whacked out of line.
2030 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2032 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2035 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2037 * ada-lang.c (decode_packed_array): Minor change to comment.
2038 (ada_value_slice_ptr): New function.
2039 (ada_value_slice): New function.
2040 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2041 test. Don't know why it is there.
2042 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2043 to avoid dereferencing huge arrays from which one is slicing.
2044 (empty_array): Correct to return an array rather than
2046 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2047 on empty arrays (let'em use 'FIRST instead).
2049 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2051 Address complaints from gdb_ari.sh:
2053 * ada-exp.y: Include gdb_string.h rather than string.h.
2054 (convert_char_literal): Reformat declaration.
2055 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2056 * ada-lex.l: Change use of free to xfree (the macro would do so
2057 anyway, but this is harmless).
2058 Include gdb_string.h rather than string.h.
2059 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2061 * ada-lang.c (parse): Remove K&Rism in parameter list.
2062 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2064 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2066 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2069 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2071 * alphabsd-nat.c: Update copyright year.
2072 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2074 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2076 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2077 (i386_cygwin_in_solib_call_trampoline): New function.
2078 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2079 and skip_trampoline_code gdbarch methods.
2081 2004-06-29 Jim Blandy <jimb@redhat.com>
2083 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2084 name actually used in the dependency lists.
2086 2004-06-29 Randolph Chung <tausq@debian.org>
2088 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2090 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2092 * win32-nat.c (child_pid_to_exec_file): New function.
2093 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2096 2004-06-28 Andrew Cagney <cagney@gnu.org>
2098 * defs.h (xstrvprintf): Declare.
2099 * utils.c (xstrvprintf): New function.
2100 (internal_vproblem, xstrprintf, xasprintf)
2101 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2102 * serial.c (serial_printf): Ditto.
2103 * complaints.c (vcomplaint): Ditto.
2105 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2107 * infcmd.c (attach_command): Move call to target_terminal_inferior
2108 behind loading symbol table.
2110 2004-06-28 Andrew Cagney <cagney@gnu.org>
2112 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2113 change - add back extern deprecated_ui_loop_hook declaration.
2115 2004-06-28 Andrew Cagney <cagney@gnu.org>
2117 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2119 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2120 (c_value_of_variable): Ditto.
2121 * utils.c (internal_vproblem): Ditto.
2122 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2123 * remote.c (add_packet_config_cmd): Ditto.
2124 * remote-rdp.c (rdp_set_command_line): Ditto.
2125 * regcache.c (regcache_dump): Ditto.
2126 * frv-tdep.c (new_variant, new_variant): Ditto.
2127 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2128 (fbsd_find_memory_regions): Ditto.
2129 * breakpoint.c (create_thread_event_breakpoint)
2130 (create_breakpoints): Ditto.
2131 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2132 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2134 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2136 * ada-lang.c: Re-indent file, with some massaging to help indent
2137 a bit when the result is otherwise really too ugly.
2139 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2141 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2142 code_addr_p and special_addr_p to 'unsigned int'.
2144 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2146 * i386v4-nat.c: Update copyright year and tweak comment.
2147 (regmap): Remove trailing comma.
2148 (supply_gregset): Rename local variable i to regnum. Call
2149 regcache_raw_supply instead of supply_register.
2150 (fill_gregset): Rename argument regno to regnum. Call
2151 regcache_raw_collect instead of regcache_collect.
2153 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2155 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2157 (frame_id_build, frame_id_build_special): Update comments.
2158 (frame_id_build_wild): New prototype.
2159 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2160 struct frame_id fields.
2161 (frame_id_build_wild): New function.
2162 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2164 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2166 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2169 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2171 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2173 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2175 * ada-lang.c: Re-indent file.
2177 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2179 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2180 (no_symtab_msg): Likewise.
2182 2004-06-27 Andreas Schwab <schwab@suse.de>
2184 * source.c: Fix whitespace.
2186 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2188 * configure.in: Include <sys/param.h> for td_pcb test.
2189 * configure: Regenerated.
2191 * i386nbsd-nat.c: New file.
2192 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2193 i386obsd-nat.c and i386obsd-tdep.c.
2194 (i386nbsd-nat.o): New dependency.
2195 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2197 (LOADLIBES): New variable.
2198 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2200 (LOADLIBES): New variable.
2202 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2203 (LOADLIBES): New variable.
2205 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2206 fetching from BSD_KVM_PADDR. Correctly lookup address for
2209 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2211 (amd64fbsd_supply_pcb): New funcion.
2212 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2214 2004-06-27 <david@streamline-computing.com>
2216 Partial fix for PR cli/1056.
2217 * valarith.c: Check for zero in division and remainder
2220 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2222 * i387-tdep.c: Remove excessive whitespace.
2224 2004-06-26 Andrew Cagney <cagney@gnu.org>
2226 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2227 * gdb-events.h, gdb-events.c: Re-generate.
2228 * tui/tui-hooks.c (tui_install_hooks): Update.
2229 (tui_remove_hooks): Update.
2230 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2232 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2234 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2235 (gregset_t, fpregset_t): Remove typedefs.
2236 (REG_OFFSET): Rename argument.
2237 (amd64bsd_r_reg_offset): Rename from reg_offset.
2238 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2240 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2242 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2244 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2246 * vax-tdep.c: Tweak comment.
2248 Add OpenBSD/hppa support.
2249 * NEWS (New native configurations): Mention OpenBSD/hppa.
2250 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2251 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2253 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2254 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2255 * configure.host: Add hppa*-*-openbsd*.
2256 * configure.tgt: Add hppa*-*-openbsd*.
2258 2004-06-25 Andrew Cagney <cagney@gnu.org>
2260 * defs.h (deprecated_ui_loop_hook): Deprecated.
2261 * wince.c (child_wait): Update.
2262 * win32-nat.c (child_wait): Update.
2263 * v850ice.c (v850ice_wait): Update.
2264 * top.c (deprecated_ui_loop_hook): Update.
2266 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2267 (do_unix_readchar): Update.
2268 * ser-tcp.c (net_open): Update.
2269 * remote-sim.c (gdb_os_poll_quit): Update.
2270 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2272 2004-06-24 Andrew Cagney <cagney@gnu.org>
2274 * defs.h (deprecated_pre_add_symbol_hook)
2275 (deprecated_post_add_symbol_hook): Deprecated.
2276 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2277 (symbol_file_add_with_addrs_or_offsets): Update references.
2279 2004-06-24 Andrew Cagney <cagney@gnu.org>
2281 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2282 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2283 * wince.c (ui_loop_hook): Delete extern declaration.
2284 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2285 * v850ice.c (ui_loop_hook): Delete extern declaration..
2286 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2287 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2288 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2289 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2290 ui_loop_hook declaration.
2292 2004-06-24 Andrew Cagney <cagney@gnu.org>
2294 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2295 entry_func_highpc fields.
2296 * objfiles.c (init_entry_point_info): Do not clear
2297 entry_func_lowpc and entry_func_highpc.
2298 (objfile_relocate): Do not relocate entry_func_lowpc and
2300 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2302 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2304 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2305 entry_func_lowpc and entry_func_highpc with call to
2308 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2310 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2311 quad-precision floating point arguments in registers.
2313 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2315 From Michael Mueller <m.mueller99@kay-mueller.de>:
2316 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2319 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2321 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2323 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2324 untriggered watchpoints to a separate if clause. Update function
2325 comment regarding STOPPED_BY_WATCHPOINT argument.
2327 2004-06-22 Jim Blandy <jimb@redhat.com>
2329 * gdbarch.sh: Doc fix.
2331 2004-06-21 Martin Hunt <hunt@redhat.com>
2332 Kevin Buettner <kevinb@redhat.com>
2334 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2335 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2336 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2337 to set_gdbarch_sp_regnum(). Use cooked register number.
2338 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2340 2004-06-21 Andrew Cagney <cagney@gnu.org>
2342 * gdbarch.sh: When the macro field is empty, do not generate a
2343 macro definition. When the macro field is "=", generate the macro
2344 name from the upper-case function name.
2345 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2346 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2347 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2348 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2349 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2350 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2351 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2352 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2353 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2354 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2355 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2356 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2357 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2358 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2359 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2360 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2361 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2362 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2363 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2364 (DEPRECATED_USE_STRUCT_CONVENTION)
2365 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2366 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2367 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2368 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2369 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2370 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2371 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2372 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2373 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2374 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2375 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2376 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2377 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2378 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2379 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2380 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2381 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2382 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2384 2004-06-21 Andrew Cagney <cagney@gnu.org>
2386 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2387 macro name, and the function rather than macro value. Only wrap
2388 macro print statements in #ifdef. Move format logic to where it
2390 * gdbarch.c: Re-generate.
2392 * gdbarch.sh (read): Delete "print_p" and "description", add
2393 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2394 Delete references to print_p.
2395 (TARGET_ARCHITECTURE): Delete print predicate.
2396 * gdbarch.c: Re-generate.
2398 * gdbarch.sh: Check that multi-arch methods do not provide a
2400 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2401 (print_registers_info, print_float_info, print_vector_info)
2402 (adjust_breakpoint_address, remote_translate_xfer_address)
2403 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2404 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2405 name from the multi-arch definition.
2407 2004-06-20 Andrew Cagney <cagney@gnu.org>
2409 * gdbarch.sh: Sort by the function, instead of macro name.
2410 * gdbarch.c: Re-generate.
2412 2004-06-20 Andrew Cagney <cagney@gnu.org>
2414 * gdbarch.sh: Use the function, instead of macro name in
2415 errors and the log file.
2416 (return_value): Remove stray ":" in spec.
2418 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2419 * gdbarch.h, gdbarch.c: Re-generate.
2420 * Makefile.in (arch-utils.o): Update dependencies.
2421 * values.c (using_struct_return): Move code calling
2422 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2423 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2424 to legacy_return_value, simplify.
2425 * infcmd.c (print_return_value): Move code calling
2426 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2427 to legacy_return_value, simplify.
2428 * infcall.c (call_function_by_hand): Move code calling
2429 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2430 * arch-utils.c: Update copyright. Include "gdbcore.h".
2431 (legacy_return_value): New function.
2432 * arch-utils.h: Update copyright.
2433 (legacy_return_value): Declare.
2435 2004-06-20 Andrew Cagney <cagney@gnu.org>
2437 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439 * values.c (using_struct_return): Update call.
2440 * mcore-tdep.c: Update comment.
2441 * infcall.c (call_function_by_hand): Update comment.
2442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2443 * arch-utils.h (always_use_struct_convention): Update.
2444 * v850-tdep.c (v850_gdbarch_init): Update.
2445 * sh64-tdep.c (sh64_gdbarch_init): Update.
2446 * sh-tdep.c (sh_gdbarch_init): Update.
2447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2448 * mips-tdep.c (mips_gdbarch_init): Update.
2449 * mcore-tdep.c (mcore_gdbarch_init): Update.
2450 * m32r-tdep.c (m32r_gdbarch_init): Update.
2451 * ia64-tdep.c (ia64_gdbarch_init): Update.
2452 * h8300-tdep.c (h8300_gdbarch_init): Update.
2453 * frv-tdep.c (frv_gdbarch_init): Update.
2454 * cris-tdep.c (cris_gdbarch_init): Update.
2455 * arm-tdep.c (arm_gdbarch_init): Update.
2456 * alpha-tdep.c (alpha_gdbarch_init): Update.
2458 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2460 * PROBLEMS: Add more specific information, and a work-around,
2463 2004-06-18 Andrew Cagney <cagney@gnu.org>
2465 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2466 * gdbarch.h, gdbarch.c: Re-generate.
2467 * ada-lang.c (ada_finish_decode_line_1): Update.
2468 * infrun.c (handle_inferior_event): Update.
2469 * infcall.c (find_function_addr): Update.
2470 * linespec.c (minsym_found): Update.
2471 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2473 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2474 * cli/cli-cmds.c (disassemble_command): Update.
2475 * vax-tdep.c (vax_gdbarch_init): Update.
2477 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2479 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2481 2004-06-17 Andrew Cagney <cagney@gnu.org>
2483 GDB 6.1.1 released from the GDB 6.1 branch.
2484 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2487 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2490 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2491 operation as a uleb128. Found by Michael Coulter.
2493 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2495 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2497 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2498 to ada-lang.h; this is needed to be able to implement the kill command
2501 (task_entry): Ditto.
2503 (ada_build_task_list): Ditto.
2505 * ada-lang.c: Conditionalize routines and data structures related
2506 to breakpoints, exceptions, completion, and symbol caching on
2507 GNAT_GDB, since these are not yet used in the submitted public sources.
2508 (ada_main_name): Editorial: Move definition out of exception-related
2511 2004-06-15 Andrew Cagney <cagney@gnu.org>
2513 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2514 deprecated_pc_in_call_dummy.
2516 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2518 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2519 bfd_get_section_size_before_reloc or _raw_size.
2520 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2521 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2522 (dwarf2_read_section): Likewise.
2523 * elfread.c (elf_locate_sections): Likewise.
2524 * gcore.c (derive_heap_segment): Likewise.
2525 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2526 * remote-e7000.c (e7000_load): Likewise.
2527 * remote-m32r-sdi.c (m32r_load): Likewise.
2528 * remote-mips.c (mips_load_srec): Likewise.
2529 (pmon_load_fast): Likewise.
2530 * remote.c (compare_sections_command): Likewise.
2531 * symfile.c (add_section_size_callback): Likewise.
2532 (load_section_callback): Likewise.
2533 (pc_in_unmapped_range): Likewise.
2534 (pc_in_mapped_range): Likewise.
2535 (sections_overlap): Likewise.
2536 (list_overlays_command): Likewise.
2537 (simple_overlay_update_1): Likewise.
2538 (simple_overlay_update): Likewise.
2539 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2540 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2542 2004-06-14 Randolph Chung <tausq@debian.org>
2544 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2545 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2547 (hppa_hpux_inferior_created): New function.
2548 (hppa_hpux_init_abi): Register observer.
2549 * symfile.c (hp_cxx_exception_support_initialized)
2550 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2551 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2553 2004-06-14 Randolph Chung <tausq@debian.org>
2555 * MAINTAINERS (Write After Approval): Alphabetize my entry
2558 2004-06-14 Andrew Cagney <cagney@gnu.org>
2560 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2561 testsuite maintainer.
2563 2004-06-13 Andrew Cagney <cagney@gnu.org>
2565 * infcmd.c (print_return_value): Fix logic, allow
2566 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2568 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2569 defining any macros.
2570 * gdbarch.h: Re-generate.
2572 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2573 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2574 * gdbarch.h: Re-generate.
2576 * values.c (generic_use_struct_convention): Don't check gcc_p.
2578 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2579 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2580 * gdbarch.h, gdbarch.c: Regenerate.
2581 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2582 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2584 deprecated_max_register_raw_size and
2585 deprecated_max_register_virtual_size.
2586 * v850-tdep.c (v850_gdbarch_init): Ditto.
2587 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2589 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2590 * cris-tdep.c (cris_gdbarch_init): Ditto.
2592 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2593 * gdbarch.h, gdbarch.c: Re-generate.
2594 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2595 (m68hc11_use_struct_convention): Delete function.
2596 (m68hc11_extract_struct_value_address): Delete function.
2597 (m68hc11_return_value): New function.
2598 (m68hc11_gdbarch_init): Instead of store_return_value,
2599 extract_return_value, return_value_on_stack,
2600 deprecated_extract_struct_value_address and use_struct_convention,
2602 * values.c (using_struct_return): Do not call
2603 RETURN_VALUE_ON_STACK.
2604 * arch-utils.h (generic_return_value_on_stack_not): Delete
2606 * arch-utils.c (generic_return_value_on_stack_not): Delete
2609 2004-06-12 Andrew Cagney <cagney@gnu.org>
2611 * values.c (register_value_being_returned): Delete function.
2612 * infcmd.c (legacy_return_value): Delete function.
2613 * infcall.c (call_function_by_hand): Inline
2614 "register_value_being_returned", simplify.
2615 * values.c (using_struct_return): Update comment, refer to
2616 print_return_value instead of register_value_being_returned.
2617 * infcmd.c (print_return_value): Inline calls to
2618 register_value_being_returned and legacy_return_value. Simplify.
2620 2004-06-11 Randolph Chung <tausq@debian.org>
2622 * somread.c (som_symtab_read): Exclude gcc local symbols.
2624 2004-06-11 Randolph Chung <tausq@debian.org>
2626 * infrun.c (handle_inferior_event): Handle the case when a
2627 trampoline ends up in the runtime resolver, and if the trampoline
2628 has no name. Rearrange the code so that all the trampoline
2629 processing happens before other step-out-of-range handling.
2631 2004-06-11 Martin Hunt <hunt@redhat.com>
2633 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2636 2004-06-10 Andrew Cagney <cagney@gnu.org>
2638 * blockframe.c (legacy_inside_entry_func): Delete.
2639 (legacy_frame_chain_valid): Inline call to
2640 legacy_inside_entry_func, simplify.
2642 2004-06-10 Bob Rossi <bob@brasko.net>
2644 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2645 * dwarf2read.c (partial_die_info): Add dirname field.
2646 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2647 (read_partial_die): Save away DW_AT_comp_dir.
2648 * defs.h (symtab_to_filename): Removed.
2649 * source.c (find_and_open_source): Added.
2650 (open_source_file): Just calls find_and_open_source.
2651 (symtab_to_filename): Removed.
2652 (symtab_to_fullname, psymtab_to_fullname): Added.
2653 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2654 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2656 * symtab.h (partial_symtab): Add dirname field.
2657 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2658 (mi_cmd_file_list_exec_source_file): Call new function
2659 symtab_to_fullname to find fullname.
2660 (mi_cmd_file_list_exec_source_files): Added.
2661 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2662 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2664 2004-06-10 Andrew Cagney <cagney@gnu.org>
2666 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2667 to generic_use_struct_convention, the default value.
2669 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2672 * ns32k-tdep.c (ns32k_push_arguments): New function.
2673 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2674 * infcall.c (call_function_by_hand): Call error instead of
2675 legacy_push_arguments.
2676 * value.h (legacy_push_arguments): Delete declaration.
2677 * valops.c (legacy_push_arguments): Delete function.
2678 (value_push): Delete function.
2680 2004-06-10 Brian Ford <ford@vss.fsi.com>
2682 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2683 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2685 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2687 2004-06-10 Andrew Cagney <cagney@gnu.org>
2689 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2690 * gdbarch.h, gdbarch.c: Re-generate.
2691 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2693 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2694 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2695 deprecated_pc_in_call_dummy instead of
2696 DEPRECATED_PC_IN_CALL_DUMMY.
2697 (arm_skip_prologue): Ditto.
2698 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2699 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2700 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2701 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2703 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2704 (sh64_init_extra_frame_info, sh64_get_saved_register)
2705 (sh64_pop_frame): Ditto.
2706 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2707 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2708 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2709 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2710 (h8300_pop_frame): Ditto.
2711 * blockframe.c (legacy_inside_entry_func)
2712 (legacy_frame_chain_valid): Ditto.
2713 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2714 to deprecated_pc_in_call_dummy.
2716 2004-06-09 Andrew Cagney <cagney@gnu.org>
2718 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2719 provide a default value.
2720 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2721 * gdbarch.h, gdbarch.c: Re-generate.
2722 * arch-utils.c (generic_convert_register_p): Rename
2723 legacy_convert_register_p
2724 (legacy_register_to_value, legacy_value_to_register): Delete
2726 * arch-utils.h (generic_convert_register_p): Rename
2727 legacy_convert_register_p.
2728 (legacy_register_to_value, legacy_value_to_register): Delete
2731 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2732 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2733 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2734 * gdbarch.h, gdbarch.c: Re-generate.
2735 * infcmd.c (default_print_registers_info): Simplify.
2736 * findvar.c (value_of_register): Simplify.
2737 * mi/mi-main.c (get_register): Simplify.
2738 * arch-utils.c (legacy_convert_register_p): Always return 0.
2739 (legacy_register_to_value, legacy_value_to_register): Always call
2742 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2743 #ifdef CLEAR_INSN_CACHE code.
2744 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2745 Delete #ifdef CLEAR_DEFERRED_STORES code.
2747 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2749 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2751 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2753 * config/mips/mipsv4.mh: Delete file.
2755 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2757 (hpread_adjust_stack_address): Delete declaration.
2759 2004-06-08 Andrew Cagney <cagney@gnu.org>
2761 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2762 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2763 PTRACE_ATTACH / PTRACE_DETACH available call error.
2764 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2765 * infttrace.c (update_thread_state_after_attach, attach, detach):
2766 Remove #ifdef wrappers.
2767 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2768 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2769 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2770 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2771 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2772 * config/nm-linux.h (ATTACH_DETACH): Delete.
2773 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2774 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2775 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2776 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2777 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2779 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2781 * configure.in: Set $configdir to the right OS specific value.
2782 Use value when setting $tcldir and $tkdir.
2783 * configure: Regenerate.
2785 2004-06-06 Paul Brook <paul@codesourcery.com>
2787 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2790 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2792 * ada-lang.c (lookup_symbol_in_language): New function to allow
2793 re-use of another language's symbol lookup code. (Placed here
2794 temporarily while Ada support is being integrated into the public
2796 (restore_language): New auxiliary function for
2797 lookup_symbol_in_language.
2798 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2799 temporarily while Ada support is being integrated into the public
2802 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2804 * Makefile.in (check//%): New.
2806 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2807 (mn10300_store_return_value): Rewrite.
2808 (mn10300_type_align): New.
2809 (mn10300_use_struct_convention): Rewrite.
2810 (mn10300_return_value): New, using all of the above.
2811 (mn10300_pop_frame_regular): Add saved_regs_size.
2812 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2814 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2815 regs if PC is on movm.
2817 2004-06-07 Jim Blandy <jimb@redhat.com>
2819 Add native Linux support for the PowerPC E500.
2820 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2821 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2822 all architectures except the E500.
2823 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2825 (struct gdb_evrregset_t): New type.
2826 (have_ptrace_getsetevrregs): New variable.
2827 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2828 fetch_spe_registers): New functions.
2829 (fetch_register): Call fetch_spe_register as appropriate.
2830 Assert that we're only passed raw register numbers.
2831 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2832 Don't fetch gprs if they're pseudoregisters.
2833 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2834 store_spe_registers): New functions.
2835 (store_register): Call store_spe_register as appropriate.
2836 Assert that we're only passed raw register numbers.
2837 (store_ppc_registers): Call store_spe_registers as appropriate.
2838 Don't store gprs if they're pseudoregisters.
2840 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2842 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2843 struct if one exists, even if we are dealing with a zombie thread.
2845 2004-06-07 Andrew Cagney <cagney@gnu.org>
2847 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2848 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2849 Rename PC_REQUIRES_RUN_BEFORE_USE.
2850 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2853 2004-06-07 Randolph Chung <tausq@debian.org>
2855 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2856 unwinding after sp has been saved to the stack but before the end
2857 of the prologue, and after the fp has been modified but before it has
2858 been saved to the stack.
2859 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2860 Remove superfluous definitions.
2861 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2863 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2865 Committed by Randolph Chung.
2866 * hppa-linux-nat.c: Include the correct version of the header file
2867 depending on the kernel version.
2869 2004-06-06 Randolph Chung <tausq@debian.org>
2871 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2872 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2874 2004-06-06 Randolph Chung <tausq@debian.org>
2876 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2877 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2878 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2879 * hppa-tdep.c (hppa_symbol_address): New function definition.
2880 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2882 2004-06-06 Randolph Chung <tausq@debian.org>
2884 * hppa-tdep.h (struct value): Forward declaration.
2885 (gdbarch_tdep): Define tdep find_global_pointer method.
2886 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2887 associated with the function we are trying to call, and write it
2889 (hppa32_convert_from_funct_ptr_addr): New function.
2890 (hppa_find_global_pointer): New function.
2891 (hppa_gdbarch_init): Set default find_global_pointer method; set
2892 convert_from_func_ptr_addr method.
2893 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2894 (hppa_linux_init_abi): Set find_global_pointer method.
2895 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2897 2004-06-06 Randolph Chung <tausq@debian.org>
2899 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2900 to struct value *function.
2901 * gdbarch.c: Regenerate.
2902 * gdbarch.h: Likewise.
2903 * infcall.c (call_function_by_hand): Pass entire function value
2906 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2907 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2908 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2909 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2910 * arm-tdep.c (arm_push_dummy_call): Likewise.
2911 * avr-tdep.c (avr_push_dummy_call): Likewise.
2912 * cris-tdep.c (cris_push_dummy_call): Likewise.
2913 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2914 * frv-tdep.c (frv_push_dummy_call): Likewise.
2915 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2916 * hppa-tdep.c (hppa32_push_dummy_call)
2917 (hppa64_push_dummy_call): Likewise.
2918 * i386-tdep.c (i386_push_dummy_call): Likewise.
2919 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2920 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2921 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2922 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2923 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2924 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2925 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2926 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2927 (ppc64_sysv_abi_push_dummy_call): Likewise.
2928 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2929 (ppc64_sysv_abi_push_dummy_call): Likewise.
2930 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2931 * s390-tdep.c (s390_push_dummy_call): Likewise.
2932 * sh-tdep.c (sh_push_dummy_call_fpu)
2933 (sh_push_dummy_call_nofpu): Likewise.
2934 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2935 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2936 * vax-tdep.c (vax_push_dummy_call): Likewise.
2938 2004-06-04 Jim Blandy <jimb@redhat.com>
2940 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2941 gdbarch argument to register_size.
2943 * rs6000-tdep.c (rs6000_store_return_value): Use
2944 regcache_cooked_write_part instead of
2945 deprecated_write_register_bytes.
2946 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2947 not gdbarch_deprecated_store_return_value.
2949 * ppc-linux-nat.c (store_register, fetch_register): Remove
2950 incorrect assertions. Simplify and generalize handling of
2951 transfers whose sizes are not multiples of, or less than, sizeof
2954 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2956 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2957 as a new thread event.
2958 * thread-db.c (thread_get_info_callback): If the thread is a
2959 zombie, return TD_THR_ZOMBIE.
2960 (thread_from_lwp): If thread_get_info_callback returns
2961 TD_THR_ZOMBIE, check if the thread is still on the thread list
2962 and return a -1 ptid if not found.
2963 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2964 change the status to TARGET_WAITKIND_SPURIOUS.
2966 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2968 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2969 double values in little endian mode.
2971 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2973 Committed by Andrew Cagney.
2974 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2975 after last enum constant to avoid error from IBM C
2978 2004-06-02 Jim Blandy <jimb@redhat.com>
2980 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2981 to 'message', and make it local to the lone block that uses it.
2983 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2985 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2987 * ada-exp.y: Update copyright notice.
2990 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2991 SPECIAL_VARIABLE and unify the treatment of these cases.
2993 (write_attribute_call0): Remove.
2994 (write_attribute_call1): Remove.
2995 (write_attribute_calln): Remove.
2996 (save_qualifier): Add missing semicolon.
2998 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2999 temporarily disabled to allow compilation with FSF head version.
3001 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3002 use individual operators (OP_*) for all attributes.
3003 (exp syntax): Use write_int.
3004 Handle STRING literals with OP_STRING.
3005 (variable syntax): Add limit parameter to calls to
3006 write_object_renaming.
3008 (temp_parse_space): New definition to hold entities that need
3009 only live until the next call to ada_parse.
3010 (string_to_operator): Rename fields of ada_opname_table entries.
3012 (write_var_from_sym): Record block.
3013 (write_var_from_name): Minor reformatting.
3014 Make sure saved name is properly encoded in the case of multiple
3015 matches, and set its language to Ada.
3017 Modify to indicate unresolved name as symbol in the UNRESOLVED
3018 namespace, allocated in temp_parse_space.
3019 (write_int): New function.
3021 (write_object_renaming): Add max_depth parameter to limit
3022 chains of object renamings.
3023 Handle case where root of renaming expression is itself a renaming.
3024 Use temp_parse_space for temporary name buffer.
3025 Handle renamings to dereferenced pointers (___XEXA suffices).
3027 (ada_parse, yyerror, string_to_operator,
3028 write_var_from_sym, write_var_from_name, write_attribute_call0,
3029 write_attribute_call1, write_attribute_calln,
3030 write_object_renaming): Protoize.
3032 (_initialize_ada_exp): New function.
3034 * ada-lang.c: Update copyright notice.
3035 General terminology change to conform to GNAT compiler usage:
3036 mangle => encode, demangle => decode
3037 Include gdb_obstack.h.
3046 (ADA_RETAIN_DOTS): Make sure this is defined.
3047 (TRUNCATION_TOWARDS_ZERO): Define.
3048 (struct string_vector): Define.
3049 (unresolved_names): Remove definition.
3050 (xnew_string_vector): New function.
3051 (string_vector_append): New function.
3052 (extract_string): Make static.
3053 (ada_unqualified_name): New function.
3054 (add_angle_brackets): New function.
3055 (function_name_from_pc): New function.
3056 (place_on_stack): Rename to ensure_lval.
3058 (ensure_lval): Renamed from place_on_stack.
3059 Make identity on lvals.
3061 (is_nonfunction): New interface.
3062 Only symbols in LOC_CONST class can be enumerals.
3063 (fill_in_ada_prototype): Remove; now independent of language.
3064 (add_defn_to_vec): Add obstack and symtab arguments.
3065 Use obstack to hold collected definitions.
3066 (num_defns_collected): New function.
3067 (defns_collected): New function.
3068 (ada_resolve_subexp): Rename to resolve_subexp.
3069 (resolve_subexp): Renamed from ada_resolve_subexp.
3070 (ada_op_name): Return non-const result.
3071 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3074 (to_fixed_array_type): Add declaration.
3075 (coerce_unspec_val_to_type): Remove offset parameter.
3076 (find_sal_from_funcs_and_line): New interface.
3077 (find_line_in_linetable): Ditto.
3079 (all_sals_for_line): Rename to ada_sals_for_line and make
3081 Add new parameter. When set, do not ask the user to choose the
3082 instance, but use the first one found instead.
3083 Use given line number in returned sals.
3085 Skip the prologue if funfirstline is set.
3086 Correct for memory leak when 0 lines found.
3088 (value_pos_atr): Use pos_atr.
3089 (pos_atr): New function.
3090 (standard_lookup): Add block parameter.
3092 (makeTimeStart): Remove declaration and uses.
3093 (makeTimeStop): Remove declaration and uses.
3095 (ada_completer_word_break_characters): Allow for VMS.
3096 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3097 (raise_sym_name): New constant.
3098 (raise_unhandled_sym_name): New constant.
3099 (raise_assert_sym_name): New constant.
3100 (process_raise_exception_name): New constant.
3101 (longest_exception_template): New constant.
3102 (warning_limit): New variable to limit warnings during expression
3104 (warnings_issued): New variable to keep track of warnings issued.
3105 (known_runtime_file_name_patterns): New constant.
3106 (known_auxiliary_function_name_patterns): New constant.
3107 (symbol_list_obstack): New variable.
3109 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3110 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3111 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3112 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3113 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3114 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3115 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3116 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3119 (ada_get_field_index): New function.
3120 (lim_warning): New function.
3121 (ada_translate_error_message): New function.
3122 (MAX_OF_SIZE): New function.
3123 (MIN_OF_SIZE): New function.
3124 (UMAX_OF_SIZE): New function.
3125 (UMIN_OF_SIZE): New function.
3126 (discrete_type_high_bound): New function.
3127 (discrete_type_low_bound): New function.
3128 (base_type): New function.
3129 (do_command): Remove.
3131 (ada_update_initial_language): Use language_ada, not language_unknown.
3132 (ada_encode): Renamed from ada_mangle.
3133 Obey ADA_RETAIN_DOTS.
3134 (ada_decode): Renamed from ada_demangle.
3135 Update coding conventions.
3136 (decoded_names_store): New hash table.
3137 (ada_decode_symbol): New function.
3138 (ada_la_decode): New function.
3140 (modify_general_field): Correct computations of offset and bit
3142 (desc_base_type): Handle ref types, too.
3143 (ada_is_direct_array_type): New function.
3145 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3146 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3147 (ada_is_bogus_array_descriptor,ada_type_of_array,
3148 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3149 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3150 ada_is_array_descriptor_type.
3152 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3153 (ada_is_packed_array_type): Handle pointers or
3154 references to packed arrays as well.
3155 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3156 (decode_packed_array_type): Search for the packed array type
3157 symbol in the currently selected block and associated
3159 Use lookup_symbol again.
3161 (decode_packed_array): Handle pointers and references.
3162 Update call to coerce_unspec_val_to_type.
3163 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3164 (ada_value_primitive_packed_val): Improve comment.
3166 (ada_index_type): Substitute int type for "undefined".
3167 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3168 ada_array_langth, ada_is_string_type): Use renamed
3169 ada_is_simple_array_type.
3170 (empty_array): New function.
3172 (ada_resolve): Rename to resolve.
3173 (resolve): Make static.
3174 Call renamed resolve_subexp.
3176 (ada_resolve_subexp): Rename to resolve_subexp.
3177 (resolve_subexp): Update comment.
3178 Decomment disabled code.
3179 Add LOC_COMPUTED* cases.
3180 Modify to use temporary struct symbols (marked as being in
3181 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3182 OP_UNRESOLVED_VALUE.
3183 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3186 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3187 Use new ada_lookup_symbol_list interface.
3188 Use new ada_resolve_function interface.
3189 Remove OP_TYPE case.
3191 (ada_args_match): Idiot proof against null actuals.
3192 Use intermediate variables to clarify.
3193 (ada_resolve_function): Update comment and interface.
3194 (mangled_ordered_before): Rename to encoded_ordered_before and
3196 (sort_choices): Update comment and interface.
3197 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3198 (user_select_syms): New interface.
3199 Use new sort_choices interface.
3200 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3201 (possible_user_operator_p): Idiot-proof against null values.
3202 (ada_simple_renamed_entity): Don't make cleanup; rely on
3203 caller to free result string.
3204 Remove const from return type.
3205 (make_array_descriptor): Rename uses of place_on_stack to
3207 Make sure that arrays are on stack.
3209 (HASH_SIZE): Define.
3210 (struct cache_entry): Define.
3211 (cache_space): Define.
3213 (clear_ada_sym_cache): New function.
3214 (find_entry): New function.
3215 (lookup_cached_symbol): New function.
3216 (defn_vector_size): Define.
3217 (cache_symbol): New function.
3218 (defn_symbols): Remove.
3220 (standard_lookup): Use lookup_symbol_in_language to get effect of
3224 (symbol_completion_match): New function.
3225 (symbol_completion_add): New function.
3226 (ada_make_symbol_completion_list): New function.
3228 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3229 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3230 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3231 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3233 (ada_lookup_simple_minsym): New function.
3234 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3236 (add_symbols_from_enclosing_procs): New interface.
3237 Conditionalize more helpfully.
3238 Don't bother if program isn't running.
3239 Use new interface to get_frame_block.
3240 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3242 (remove_extra_symbols): New interface.
3243 (xget_renaming_scope): New function.
3244 (is_package_name): New function.
3245 (renaming_is_visible): New function.
3246 (remove_out_of_scope_renamings): New function.
3248 (ada_lookup_symbol_list): New interface.
3249 Properly reinitialize the symbol list obstack.
3250 Don't call add_symbols_from_enclosing_procs if we start from a
3251 static or global block.
3252 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3253 add_symbols_from_enclosing_procs.
3254 Add symtab data to cached entries.
3255 Handle symbols prefixed with
3256 "standard__" specially; strip prefix and don't look in local symbols.
3257 Do not include out of scope renaming symbols in list of
3259 Add const to block parameter.
3260 Move check for non-local, non-global symbols earlier.
3261 Remove timing stuff.
3262 (ada_lookup_symbol): New interface.
3263 Find symtab as well.
3264 (ada_lookup_symbol_nonlocal): New function.
3266 (is_name_suffix): Enhance suffix detection to recognize
3267 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3268 (is_dot_digits_suffix): New function.
3269 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3271 (ada_add_block_symbols): New interface. Use obstack to return results
3272 in a vector of struct ada_symbol_infos. Add symtab argument.
3273 Use new interface to add_defn_to_vec.
3274 Remove calls to fill_in_ada_prototype.
3275 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3277 (ada_finish_decode_line_1): Add const qualification to local to fix
3279 Start looking in static block for functions to avoid attempts
3280 to search frame chain for up-level variables.
3281 Adapt to new ada_sals_for_line interface.
3282 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3283 Handle quoting of the function name inside the spec string.
3284 Skip prologue when funfirstline is set and update the
3285 function documentation to that effect.
3287 (debug_print_lines, debug_print_block, debug_print_blocks,
3288 debug_print_symtab): Remove.
3290 (ada_main_name): New function.
3291 (ada_exception_breakpoint_type): New function.
3292 (is_known_support_routine): New function.
3293 (ada_find_printable_frame): Renamed from find_printable_frame and made
3295 Remove level parameter.
3296 Use new interface to select_frame.
3298 (begin_command): Remove.
3299 (ada_adjust_exception_stop): New function.
3300 (ada_print_exception_stop): New function.
3301 (exception_name_from_cond): New function.
3302 (ada_report_exception_break): Replace disabled code with
3303 conditionalization on GNAT_GDB.
3304 Get the exception name from the condition string.
3305 Remove and move functionality into new functions
3306 ada_print_exception_breakpoint_task and
3307 ada_print_exception_breakpoint_nontask.
3308 (error_breakpoint_runtime_sym_not_found): New function.
3309 (is_runtime_sym_defined): New function.
3310 (ada_breakpoint_rewrite): Uncomment suppressed code.
3311 Use symbolic error-message and runtime-symbol names.
3312 Surround runtime symbol names in quotes.
3313 Allow non-specific breakpoints on exceptions and assertions before
3316 (ada_is_tagged_type): Add parameter.
3317 (ada_is_tag_type): New function.
3318 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3319 (ada_variant_discrim_type): Ditto.
3320 (value_tag_from_contents_and_address): New function.
3321 (type_from_tag): New function.
3322 (struct tag_args): New structure used to communicate with
3324 (ada_tag_name_1): New function.
3325 (ada_tag_name): New function.
3327 (ada_scan_number): Update comment.
3328 (find_struct_field): New function.
3329 (ada_search_struct_field): Make static.
3330 (ada_value_struct_elt): New version that returns references when
3331 given pointers or references to structs.
3332 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3333 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3335 (ada_value_ind): Use new ada_to_fixed_value interface.
3336 (ada_coerce_ref): Ditto.
3337 (field_offset): Remove.
3339 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3340 (ada_find_renaming_symbol): New function.
3341 (ada_prefer_type): Prefer named types over unnamed ones.
3342 (variant_field_index): New function.
3343 (contains_variant_part): Removed: subsumed by variant_field_index.
3344 (ada_template_to_fixed_record_type): New function, mostly from
3345 template_to_fixed_record_type.
3346 (template_to_fixed_record_type):
3347 Do not scan the type fields beyond the last one; prevents a
3349 Handle case where variant field is listed BEFORE discriminant it
3351 Fix calculation of record length when bit length is
3352 not evenly divisible by char length.
3353 Move code to ada_template_to_fixed_record_type and call it.
3355 (template_to_static_fixed_type): Revise comment.
3356 Modify to work on ordinary record types as well as templates,
3357 so as to handle fields that use ___XVE or ___XVU encodings.
3358 (to_record_with_fixed_variant_part): Fill out comment.
3359 Initialize C++ stuff in right type.
3360 Allow case where DVAL is null.
3361 Handle case where variant field is not last.
3362 Fix typo concerning record length.
3363 (to_fixed_record_type): Decomment disabled code.
3364 (to_fixed_record_type): Use variant_field_index instead of
3365 contains_variant_part.
3366 (to_fixed_variant_branch_type): Ditto.
3367 (to_fixed_array_type): Decomment disabled code.
3368 (ada_to_fixed_type): Convert tagged types to the specific type.
3369 Deactivate the size-check for array types in order to avoid
3370 some false size alarms.
3371 (to_static_fixed_type): Decomment disabled code.
3372 Modify to call template_to_static_fixed_type
3373 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3374 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3375 Remove valaddr argument, as it is never really used.
3376 (ada_to_fixed_value): Change interface to act on single struct value*
3378 (adjust_pc_past_prologue): New function.
3379 (ada_attribute_name): Modify to take enum exp_opcode argument.
3381 (ada_enum_name): Recognize new homonym-distinguishing convention.
3382 Adjust local variable's type to remove compiler warning.
3383 Fix a small problem in the part that unqualifies the enumeration name.
3384 (ada_value_binop): New function.
3385 (ada_value_equal): New function.
3387 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3388 Don't give error message when not doing normal evaluation
3389 and a tagged type doesn't seem to contain a structure member.
3390 Give error message for packed arrays.
3391 For indexing arrays, handle pointers to packed arrays correctly.
3392 Handle case of 'first and 'last attributes of bare integral type
3393 without encoded subtype info.
3394 Remove some unnecessary casts.
3395 Fix uninitialized value of type in computing 'first, 'last, or 'length
3397 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3398 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3400 Attributes are now exp_opcode values.
3401 Correct treatment of 'modulus.
3402 Better error message for taking 'length of wrong kind of type;
3404 Change EVAL_NORMAL to noside for consistency.
3405 Use ada_value_binop for DIV, MOD, REM.
3406 Make special case out of array of length 0, since an argument
3407 of 0 upsets some platforms' malloc.
3408 Use OP_STRING instead of OP_ARRAY.
3409 For slice, add check that we have an array type before extracting
3410 a slice out of it. Avoids a SEGV.
3411 When evaluating an array slice, if the array type is a reference to
3412 an aligner type, then replace the aligner type by the actual type.
3413 Decomment disabled code.
3414 Remove some dead code.
3415 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3416 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3417 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3418 and UNOP_MBR to UNOP_IN_RANGE.
3419 If an array type has a parallel ___XVE type, then use it.
3420 Turn arrays into pointers for lvalue arrays.
3421 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3422 bounds error and handle 0-length slices.
3424 When selecting fields, apply ada_to_fixed_value (because the fields
3425 might have ___XVU or ___XVE encodings even if not dynamic.)
3426 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3427 (ada_is_system_address_type): New function.
3429 (get_var_value): Use new interface to ada_lookup_symbol_list.
3430 (get_int_var_value): New interface.
3431 (to_fixed_range_type): Allow unknown bound, with warning.
3432 (ada_is_modular_type): Decomment disabled code.
3433 (ADA_OPERATORS): New definition.
3434 (ada_operator_length): New function.
3435 (ada_expr_op_name): New function.
3436 (ada_forward_operator_length): New function.
3437 (ada_dump_subexp_body): New function.
3438 (ada_print_subexp): New function.
3439 (ada_exp_descriptor): New constant.
3440 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3441 (ada_language_defn): Add ada_exp_descriptor entry.
3442 Change ada_parse => parse.
3443 Add post-parser entry.
3444 Use ada-specific non-local symbol lookup.
3445 Don't use C-style arrays.
3446 String lower-bound is 1.
3447 Decomment disabled code.
3448 (parse): New function.
3449 New fields ada_translate_error_message, ada_lookup_symbol,
3450 ada_lookup_minimal_symbol.
3452 * ada-lang.h: Update copyright dates.
3453 Replace the mangle/demangle terminology throughout by the
3454 more appropriate encode/decode one.
3455 Include breakpoint.h.
3456 Forward declare struct partial_symbol, struct block.
3457 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3458 (EXTRACT_ADDRESS): Remove.
3459 (EXTRACT_INT): Remove.
3460 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3461 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3462 (MAX_RENAMING_CHAIN_LENGTH): Define.
3463 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3465 (enum task_states): Remove.
3466 ada_task_states: Remove.
3467 (fat_string): Remove.
3468 (struct entry_call): Remove.
3469 (struct task_fields): Remove.
3470 (struct task_entry): Remove.
3472 (struct ada_symbol_info): Define.
3473 (enum ada_attribute): Remove.
3474 (enum ada_operator): Define.
3476 (ada_get_field_index): Declare.
3477 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3478 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3479 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3480 (ada_lookup_symbol_list): New interface.
3481 (ada_decode_symbol): Declare.
3482 (ada_decode): Declare.
3483 (ada_lookup_symbol): New interface.
3484 (ada_update_initial_language): Declare.
3485 (ada_lookup_simple_minsym): Declare.
3486 (user_select_syms): New interface.
3487 (ada_sals_for_line): Declare.
3488 (ada_is_tagged_type): New interface.
3489 (ada_tag_name): Declare.
3490 (ada_lookup_struct_elt_type): Remove declaration.
3491 (ada_search_struct_field): Remove declaration.
3492 (ada_attribute_name): New interface.
3493 (ada_is_system_address_type): Declare.
3494 (ada_to_fixed_value): Remove declaration.
3495 (ada_template_to_fixed_record_type_1): Declare.
3496 (get_int_var_value): New interface.
3497 (ada_find_any_symbol): Declare.
3498 (ada_find_renaming_symbol): Declare.
3499 (ada_mangle): Rename to ada_encode.
3500 (ada_simple_renamed_entity): Remove const.
3501 (ada_main_name): Declare.
3502 (get_current_task): Rename to ada_get_current_task.
3503 (get_entry_number): Remove declaration.
3504 (ada_report_exception_break): Remove declaration.
3505 (ada_print_exception_breakpoint_nontask): Declare.
3506 (ada_print_exception_breakpoint_task): Declare.
3507 (ada_find_printable_frame): Declare.
3509 * ada-lex.l: Update copyright notices.
3510 Use xmalloc and xfree instead of malloc and free.
3511 Use new interface to name_lookup.
3512 Use new interface to
3513 ada_mangle=>ada_encode.
3514 Redo handling of '$...' variable to parallel current treatment
3516 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3517 digit_to_int, strtoulst, processInt, processReal, processId,
3518 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3521 (processInt): Use cast to remove harmless warning.
3522 (processReal): Modify to get rid of compiler warning on scan formats.
3524 (processId): Replace xmalloc with obstack_alloc for name and remove
3525 call to ada_name_string_cleanup.
3526 Remove obsolete disabled code.
3527 (name_lookup): Ditto.
3529 Use obsavestring on temp_parse_space instead of savestring
3530 on name, and remove call to ada_name_string_cleanup.
3531 Free string returned from ada_simple_renamed_entity.
3532 Use new interface to ada_lookup_symbol_list.
3533 Decomment disabled code.
3534 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3536 When a type name lookup succeeds as a result of
3537 lookup_primitive_typename, check for regular type entry that has not
3539 Limit length of chain of renamed symbols we are willing to follow.
3540 Do not break names beginning with "standard__" into segments.
3541 (block_lookup): Use new interface to ada_lookup_symbol_list.
3543 * ada-typeprint.c: Update copyright notice.
3544 (demangled_type_name): Rename to decoded_type_name.
3545 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3546 (print_range_bound): Correct handling of negative
3547 bounds that make the index type looked unsigned under STABS.
3548 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3549 (print_range_type_named): Use the builtin int type if no type
3550 corresponding to the given type name could be found.
3551 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3552 Add some bullet-proofing.
3553 (print_variant_clauses): Allow for variant branches with ___XVU
3554 encodings that are not dynamic fields.
3555 Use new interface to ada_is_tagged_type.
3556 (print_record_type): Allow for fields with ___XVE encodings that
3557 are not dynamic fields.
3558 Use new interface to ada_is_tagged_type.
3559 (ada_print_type): ada_is_array_descriptor =>
3560 ada_is_array_descriptor_type.
3562 * ada-valprint.c: Update copyright notice.
3563 Include gdb_string.h
3565 (ui_memcpy): New function.
3566 (ada_print_floating): New function.
3567 (ada_print_str): Order arguments correctly.
3568 Correct handling of empty arrays and arrays of 0-length items.
3569 ada_is_array_descriptor => ada_is_array_descriptor_type
3570 Print values of type System.Address in hexadecimal format.
3571 Use ada_print_floating to print floating-point numbers in Ada format.
3572 Print class tag values with type names.
3573 No longer print the address of reference values. Avoids
3574 a potential confusion.
3575 (ada_value_print): Stop printing the object type for reference
3576 values, but preserve that behavior for access types. Avoids
3577 a potential confusion.
3578 Simplify one conditional expression, as the first part is now
3580 ada_is_array_descriptor => ada_is_array_descriptor_type
3581 Add check for arrays for null records, and print them by hand.
3583 2004-06-01 Jim Blandy <jimb@redhat.com>
3585 * ppc-tdep.h: Delete unused 'regoff' member.
3586 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3588 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3591 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3592 (hpread_read_struct_type): Likewise.
3594 2004-06-01 Andrew Cagney <cagney@gnu.org>
3596 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3597 instead of xasprintf.
3598 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3599 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3600 (mi_cmd_data_list_register_names)
3601 (mi_cmd_data_list_changed_registers)
3602 (mi_cmd_data_list_register_values)
3603 (get_register, mi_cmd_data_write_register_values)
3604 (mi_cmd_data_write_register_values)
3605 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3606 (mi_cmd_target_download, mi_cmd_target_select)
3607 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3608 (mi_execute_cli_command, mi_execute_async_cli_command)
3609 (mi_execute_async_cli_command): Ditto.
3610 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3611 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3613 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3614 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3615 error_last_message instead of mi_error_last_message.
3616 * mi/mi-main.c (mi_error_last_message): Delete function.
3618 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3619 "invalid number of columns" error. Delete redundant "out of
3622 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3624 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3625 (gregset_t, fpregset_t): Remove typedefs.
3626 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3627 (REG_OFFSET): Rename argument.
3628 (i386bsd_r_reg_offset): Rename from reg_offset.
3629 (REG_ADDR): Remove macro.
3630 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3632 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3633 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3634 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3635 instead of supply_gregset.
3636 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3637 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3638 instead of fill_gregset.
3639 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3641 * i386bsd-nat.c: Don't include "gregset.h".
3642 (supply_gregset, fill_gregset): Make static.
3643 (supply_fpregset, fill_fpregset): Remove.
3644 * Makefile.in (i386bsd-nat.o): Update dependencies.
3646 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3648 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3649 "gdb_assert.h". Con't include "gregset.h".
3650 (fbsd_make_corefile_notes): Use regset-based core file support
3651 instead off fill_gregset and fill_fpregset.
3652 * Makefile.in (fbsd-proc.o): Update dependencies.
3654 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3656 (m88k_frame_prev_register): Simplify code a bit.
3658 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3659 (amd64_collect_fpregset): New function.
3660 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3662 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3664 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3665 (i386_collect_gregset): New function.
3666 (i386_supply_fpregset): Adjust comment.
3667 (i386_collect_fpregset): New function.
3668 (i386_regset_from_core_section): Use i386_collect_gregset and
3669 i386_collect_fpregset.
3671 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3672 handle VALUEP being null.
3674 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3676 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3678 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3680 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3681 assembler in OpenBSD 3.5-current.
3682 (amd64obsd_sigcontext_addr): Likewise.
3684 2004-05-28 Jim Blandy <jimb@redhat.com>
3686 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3687 register set, so our regcache isn't declared "legacy" and our E500
3688 pseudoregister read and write functions aren't ignored.
3689 (rs6000_register_byte, rs6000_register_raw_size,
3690 rs6000_register_virtual_type, rs6000_register_convertible,
3691 rs6000_register_convert_to_virtual,
3692 rs6000_register_convert_to_raw): Deleted.
3693 (rs6000_register_type, rs6000_convert_register_p,
3694 rs6000_register_to_value, rs6000_value_to_register): New
3696 (rs6000_gdbarch_init): Don't register
3697 gdbarch_deprecated_register_size,
3698 gdbarch_deprecated_register_bytes,
3699 gdbarch_deprecated_register_byte,
3700 gdbarch_deprecated_register_raw_size,
3701 gdbarch_deprecated_register_virtual_type,
3702 gdbarch_deprecated_register_convertible,
3703 gdbarch_deprecated_register_convert_to_virtual, or
3704 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3705 register gdbarch_register_type, gdbarch_convert_register_p,
3706 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3708 2004-05-26 Jim Blandy <jimb@redhat.com>
3710 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3711 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3712 functions, updated to match the register numberings used in GCC.
3713 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3714 rs6000_dwarf2_reg_to_regnum as register number conversions
3715 functions for STABS and Dwarf2.
3717 2004-05-26 Randolph Chung <tausq@debian.org>
3719 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3722 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3724 * NEWS: Document new "start" command.
3726 2004-05-25 Randolph Chung <tausq@debian.org>
3728 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3731 2004-05-25 Randolph Chung <tausq@debian.org>
3733 * hppa-hpux-tdep.c (offsetof): Define.
3734 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3735 (hppa32_hpux_frame_base_before_sigtramp)
3736 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3737 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3738 (hppa64_hpux_frame_base_before_sigtramp)
3739 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3741 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3742 (hppa_hpux_sigtramp_frame_unwind_cache)
3743 (hppa_hpux_sigtramp_frame_this_id)
3744 (hppa_hpux_sigtramp_frame_prev_register)
3745 (hppa_hpux_sigtramp_frame_unwind)
3746 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3747 (hppa_hpux_init_abi): Register sigtramp unwinder.
3748 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3750 2004-05-25 Randolph Chung <tausq@debian.org>
3752 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3753 and multiple stack unwinds.
3754 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3756 2004-05-25 Andrew Cagney <cagney@gnu.org>
3758 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3759 * symfile-mem.h: Delete file.
3760 * symfile-mem.c: Do not include "symfile-mem.h".
3761 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3762 "struct bfd_section". When an error do not bother returning NULL.
3763 (add_symbol_file_from_memory_command): Use "struct bfd" and
3764 "struct bfd_section".
3765 * Makefile.in (symfile_mem_h): Delete.
3766 (symfile-mem.o): Update dependencies.
3768 2004-05-25 Nick Roberts <nickrob@gnu.org>
3770 * gdb-mi.el: New file.
3772 2004-05-25 Andrew Cagney <cagney@gnu.org>
3774 * inftarg.c: Include "observer.h".
3775 (child_attach, child_create_inferior): Notify inferior_created.
3776 * corelow.c: Include "observer.h".
3777 (core_open): Notify inferior_created.
3778 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3780 2004-05-25 Andrew Cagney <cagney@gnu.org>
3782 * target.h (struct target_ops): Add from_tty to
3784 (target_create_inferior, find_default_create_inferior): Update.
3785 * infcmd.c (run_command): Update.
3786 * wince.c (child_create_inferior): Update.
3787 * win32-nat.c (child_create_inferior): Update.
3788 * uw-thread.c (uw_thread_create_inferior): Update.
3789 * thread-db.c (thread_db_create_inferior): Update.
3790 * target.c (debug_to_create_inferior)
3791 (find_default_create_inferior): Update.
3792 (maybe_kill_then_create_inferior): Update.
3793 * sol-thread.c (sol_thread_create_inferior): Update.
3794 * remote.c (extended_remote_async_create_inferior)
3795 (extended_remote_create_inferior): Update.
3796 * remote-vx.c (vx_create_inferior): Update.
3797 * remote-st.c (st2000_create_inferior): Update.
3798 * remote-sim.c (gdbsim_create_inferior): Update.
3799 * remote-sds.c (sds_create_inferior): Update.
3800 * remote-rdp.c (remote_rdp_create_inferior): Update.
3801 * remote-rdi.c (arm_rdi_create_inferior): Update.
3802 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3803 * remote-e7000.c (e7000_create_inferior): Update.
3804 * procfs.c (procfs_create_inferior): Update.
3805 * ocd.c (ocd_create_inferior): Update.
3806 * ocd.h (ocd_create_inferior): Update.
3807 * nto-procfs.c (procfs_create_inferior): Update.
3808 * monitor.c (monitor_create_inferior): Update.
3809 * lin-lwp.c (lin_lwp_create_inferior): Update.
3810 * inftarg.c (child_create_inferior): Update.
3811 * hpux-thread.c (hpux_thread_create_inferior): Update.
3812 * gnu-nat.c (gnu_create_inferior): Update.
3814 2004-05-25 Andrew Cagney <cagney@gnu.com>
3816 * MAINTAINERS: Update e-mail address.
3818 2004-05-24 Randolph Chung <tausq@debian.org>
3820 * thread.c (info_threads_command, thread_apply_all_command)
3821 (thread_apply_command, thread_command, do_captured_thread_select):
3822 Remove HPUXHPPA-specific code.
3824 2004-05-24 Randolph Chung <tausq@debian.org>
3826 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3828 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3831 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3833 * infcmd.c (kill_if_already_running): New function, extracted
3835 (run_command): Replace extracted code by call to
3836 kill_if_already_running().
3837 (start_command): New function.
3838 (_initialize_infcmd): Add "start" command.
3840 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3842 Add OpenBSD/m88k support.
3843 * NEWS (New native configurations): Mention OpenBSD/m88k.
3844 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3845 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3846 * Makefile.in (m88k_tdep_h): New variable.
3847 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3848 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3849 * configure.host: Add m88*-*-openbsd*.
3850 * configure.tgt: Add m88*-*-openbsd*.
3852 2004-05-24 Jim Blandy <jimb@redhat.com>
3854 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3857 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3859 * symtab.c (fixup_section): Search section table when lookup by
3862 2004-05-24 Randolph Chung <tausq@debian.org>
3864 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3867 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3869 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3870 register number in regcache_raw_collect call.
3871 (m68kbsd_collect_fpregset): Likewise.
3872 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3874 * regset.h (struct regset): Add back `regset' member.
3876 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3878 * configure.in: Check for td_pcb in `struct thread'.
3879 * configure, config.in: Regenerated.
3881 * dpx2-nat.c: Remove file.
3882 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3883 (dpx2-nat.o): Remove dependencies.
3885 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3886 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3887 (amd64obsd_supply_pcb): New function.
3888 (_initialize_amd64obsd_nat): Enable libkvm interface.
3889 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3890 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3891 (LOADLIBES): New variable.
3893 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3894 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3895 (sparc32nbsd_supply_pcb): New function.
3896 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3897 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3898 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3899 (LOADLIBES): New variable.
3901 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3903 * bsd-kvm.c, bsd-kvm.h: New files.
3904 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3906 (i386fbsd_supply_pcb): New function.
3907 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3908 (i386fbsd-nat.o): Update dependencies.
3909 (bsd_kvm_h): New variable.
3910 (bsd-kvm.o): New dependency.
3911 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3912 (LOADLIBES): New variable.
3914 * regset.c: Tweak comment.
3915 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3917 * regset.h: Update copyright year.
3918 (struct regset): Remove `descr' member, add `gdbarch' member.
3919 (regset_alloc): Adjust prototype and comment.
3920 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3921 (i386_supply_fpregset): Likewise.
3922 (i386_regset_from_core_section): Update call to regset_alloc.
3923 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3925 (i386obsd_aout_regset_from_core_section): Update call to
3927 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3929 (i386nbsd_aout_regset_from_core_section): Update call to
3931 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3933 (amd64_regset_from_core_section): Update call to regset_alloc.
3934 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3936 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3937 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3938 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3939 (sparc32nbsd_init_abi): Update call to regset_alloc.
3940 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3941 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3942 (sparc64obsd_init_abi): Update call to regset_alloc.
3943 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3944 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3945 (sparc64nbsd_init_abi): Update call to regset_alloc.
3946 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3947 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3948 (sparc64fbsd_init_abi): Update call to regset_alloc.
3950 2004-05-22 Jim Blandy <jimb@redhat.com>
3952 * ppc-tdep.h (spe_register_p): New declaration.
3953 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3955 * rs6000-tdep.c (spe_register_p): New function.
3956 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3958 (rs6000_gdbarch_init): Initialize the new members of the tdep
3961 2004-05-21 Jim Blandy <jimb@redhat.com>
3963 * ppc-linux-nat.c (fetch_register): Move code back to be next
3964 to the comment that describes it. (Moved code, instead of
3965 comment, for symmetry with store_register.)
3967 Allocate regset structures in the gdbarch's obstack, not using
3969 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3970 Add 'arch' argument. Allocate the regset on arch's obstack, not
3972 * regset.h (regset_alloc): Update declaration.
3973 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3975 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3976 * i386-tdep.c (i386_regset_from_core_section): Same.
3977 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3978 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3979 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3980 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3981 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3982 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3984 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3986 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3988 2004-05-21 Jim Blandy <jimb@redhat.com>
3990 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3991 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3993 2004-05-20 Jim Blandy <jimb@redhat.com>
3995 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3997 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3999 * regset.h: Make prototype const-correct.
4000 * regset.c (regset_xmalloc): Make const-correct.
4002 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4004 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4005 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4006 (symbol_search_name): Declare.
4008 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4009 (iter_name_next_hashed): Ditto.
4010 (iter_name_next_linear): Ditto.
4011 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4013 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4014 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4015 (symbol_search_name): New function.
4017 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4019 * minsyms.c (build_minimal_symbol_hash_tables): Change
4020 test for adding to demangled hash table to check for difference
4021 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4023 2004-05-19 Jim Blandy <jimb@redhat.com>
4025 Use a constructor function to create regset structures.
4026 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4027 (struct regset): Use supply_regset_ftype. Add new
4028 'collect_regset' member.
4029 (regset_xmalloc): New declaration.
4030 * regset.c: New file.
4031 * am64-tdep.c (amd64_regset_from_core_section): Use
4032 regset_xmalloc to construct regset structures.
4033 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4034 * i386-tdep.c (i386_regset_from_core_section): Same.
4035 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4036 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4037 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4038 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4039 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4040 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4041 * Makefile.in (COMMON_OBS): Add regset.o.
4042 (regset.o): New rule.
4044 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4046 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4047 and pthread_cond_wait.c.
4049 2004-05-18 Jim Blandy <jimb@redhat.com>
4051 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4052 before the mach-specific switch, and then let the individual cases
4053 override the defaults, rather than leaving them uninitialized
4054 until the switch and then setting them in each case.
4056 2004-05-18 Randolph Chung <tausq@debian.org>
4058 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4059 millicode functions.
4061 2004-05-18 Randolph Chung <tausq@debian.org>
4063 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4064 references to dld_flags_buffer consistent.
4066 2004-05-18 Randolph Chung <tausq@debian.org>
4068 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4069 it for unwinding the stack.
4071 2004-05-18 Randolph Chung <tausq@debian.org>
4073 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4074 Undefine these so we can overide them using gdbarch.
4076 2004-05-18 Randolph Chung <tausq@debian.org>
4078 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4079 handling for 64-bit HPUX (elf).
4081 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4083 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4085 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4086 * ia64-tdep.c (examine_prologue): Likewise.
4087 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4088 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4090 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4092 * vax-tdep.c (vax_return_value): Implement
4093 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4095 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4097 * vax-tdep.c (vax_return_value): Fix typo.
4099 2004-05-17 Andrew Cagney <cagney@redhat.com>
4101 * MAINTAINERS: Mark Salter was also responsible for
4104 * NEWS: Mention signal fixes.
4106 2004-05-17 Randolph Chung <tausq@debian.org>
4108 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4109 check to see if we are unwinding an export stub. Export stubs clobber
4110 the %rp in the call path and stores the original rp in a stack slot.
4112 2004-05-17 Jim Blandy <jimb@redhat.com>
4114 * MAINTAINERS: Update address for J.T. Conklin.
4116 2004-05-17 Randolph Chung <tausq@debian.org>
4118 * hppa-tdep.c: Remove superfluous #include's.
4119 * Makefile.in (hppa-tdep.o): Update dependencies.
4121 2004-05-17 Randolph Chung <tausq@debian.org>
4123 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4124 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4125 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4126 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4127 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4128 Remove static function declarations.
4130 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4132 * alphabsd-nat.c: Update copyright year.
4133 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4135 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4138 * m68k-tdep.c (m68k_svr4_return_value): Implement
4139 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4141 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4143 * sol-thread.c Update copyright year. Fix various coding
4144 standards violations. Tweak a few comments.
4145 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4148 2004-05-15 Randolph Chung <tausq@debian.org>
4150 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4151 as pointer instead of array reference since HPUX compiler does
4152 not accept unsized array arguments.
4153 * somsolib.c (dld_flags_buffer): Use constant array size.
4155 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4157 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4158 offset with decimal offset.
4159 (amd64obsd_sigcontext_addr): Return correct address for entire
4162 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4163 instead of get_frame_base.
4165 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4166 (fill_gregset): Use regcache_raw_collect.
4168 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4171 * config/sparc/tm-nbsd64.h: Remove file.
4172 * config/tm-sunos.h: Remove file.
4174 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4176 * rs6000-tdep.c (store_param_on_stack_p): New function,
4177 an improved version of some code extracted from skip_prologue().
4178 (skip_prologue): Use store_param_on_stack_p() to detect
4179 instructions saving a parameter on the stack. Detect when r0
4180 is used to save a parameter.
4181 Do not mark "li rx, SIMM" instructions as part of the prologue,
4182 unless the following instruction is also part of the prologue.
4184 2004-05-14 Andrew Cagney <cagney@redhat.com>
4186 * infrun.c (handle_inferior_event): Simplify
4187 STEP_OVER_UNDEBUGGABLE.
4189 * infrun.c (handle_step_into_function): Delete function.
4190 (handle_inferior_event): Inline calls to
4191 handle_step_into_function.
4193 2004-05-14 Jerome Guitton <guitton@gnat.com>
4195 * rs6000-nat.c: Fix a comment.
4197 2004-05-12 David Anderson <davea@sgi.com>
4199 Committed by Jim Blandy <jimb@redhat.com>:
4200 * regcache.c (struct regcache_descr): fix comment spelling.
4202 2004-05-13 J. Brobecker <brobecker@gnat.com>
4204 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4205 Fixes a link link failure.
4207 2004-05-13 J. Brobecker <brobecker@gnat.com>
4209 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4210 error that was causing the build to fail.
4212 2004-05-13 J. Brobecker <brobecker@gnat.com>
4214 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4215 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4217 2004-05-13 Andrew Cagney <cagney@redhat.com>
4219 * infrun.c (handle_inferior_event): Check for
4220 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4221 calls. Update comments.
4223 2004-05-13 Jim Blandy <jimb@redhat.com>
4225 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4226 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4227 (store_regs_user_thread, store_regs_kernel_thread): Use
4228 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4229 * ppc-linux-nat.c (fill_gregset): Same.
4230 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4231 (ppc_linux_sigtramp_cache): Same.
4232 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4233 (ppcnbsd_sigtramp_cache_init): Same.
4234 * rs6000-nat.c (fetch_core_registers): Same.
4235 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4236 (rs6000_frame_cache): Same.
4238 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4239 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4240 of assuming that the gprs are numbered starting with zero.
4241 * ppc-linux-nat.c (fill_gregset): Same.
4242 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4243 * ppcnbsd-nat.c (getregs_supplies): Same.
4244 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4245 * rs6000-nat.c (fetch_core_registers): Same.
4246 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4248 2004-05-07 Michael Snyder <msnyder@redhat.com>
4250 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4251 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4253 2004-05-13 Andrew Cagney <cagney@redhat.com>
4255 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4257 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4259 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4260 base_address for shared libraries.
4262 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4264 * MAINTAINERS (write after approval): Add myself.
4266 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4268 * breakpoint.c (bpstat_stop_status): Add new argument
4269 STOPPED_BY_WATCHPOINT. Use it instead of testing
4270 target_stopped_data_address agaist 0 to check whether
4271 or not we stopped due to a hardware watchpoint.
4272 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4273 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4276 2004-05-12 Jim Blandy <jimb@redhat.com>
4278 * configure.in: When checking whether we should use the -bbigtoc
4279 option, don't forget to restore the original value of LDFLAGS.
4280 * configure: Regenerated.
4282 2004-05-12 Andrew Cagney <cagney@redhat.com>
4284 * thread.c (load_infrun_state): Delete step_sp.
4285 * infrun.c (context_switch): Ditto.
4286 * inferior.h (step_sp): Ditto.
4287 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4288 * gdbthread.h (struct thread_info, save_infrun_state)
4289 (restore_infrun_state): Ditto.
4291 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4293 * MAINTAINERS (write after approval): Add myself.
4295 2004-05-12 Andrew Cagney <cagney@redhat.com>
4297 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4298 eliminate reference to step_sp.
4299 (struct execution_control_state, init_execution_control_state)
4300 (handle_inferior_event, keep_going): Delete update_step_sp and
4302 * infcmd.c (step_sp): Note that variable is unused.
4304 2004-05-11 Andrew Cagney <cagney@redhat.com>
4306 * infrun.c (step_over_function): Delete function.
4307 (handle_step_into_function): Use insert_step_resume_breakpoint.
4308 (insert_step_resume_breakpoint): Fix assertion.
4310 2004-05-11 Nick Roberts <nickrob@gnu.org>
4312 * utils.c (defaulted_query): Just use the normal query input type
4313 when printing the annotations.
4315 2004-05-11 Andrew Cagney <cagney@redhat.com>
4317 * infrun.c (handle_inferior_event): Simplify code handling
4318 step-into or return-from a signal trampoline.
4320 2004-05-11 Andrew Cagney <cagney@redhat.com>
4322 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4323 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4325 2004-05-10 Jim Blandy <jimb@redhat.com>
4327 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4328 with a call to internal_error.
4330 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4331 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4332 processor variant lacks those registers.
4333 (ppc_floating_point_unit_p): Change description to make it clear
4334 that this returns info about the ISA, not the ABI.
4335 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4336 return true or false by checking tdep->ppc_fp0_regnum and
4337 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4338 arch/mach switching done in rs6000_gdbarch_init; it's better to
4339 keep that logic there, and just check the results here.
4340 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4341 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4342 floating-point registers.
4343 (ppc_supply_fpregset, ppc_collect_fpregset)
4344 (rs6000_push_dummy_call, rs6000_extract_return_value)
4345 (rs6000_store_return_value): Assert that we have floating-point
4347 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4348 (rs6000_frame_cache): Don't note the locations at which
4349 floating-point registers were saved if we have no fprs.
4350 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4352 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4353 (store_regs_user_thread, store_regs_kernel_thread): Only call
4354 supply_fprs / fill_fprs if we actually have floating-point
4356 (special_register_p): Check ppc_fpscr_regnum before matching
4358 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4359 supply / collect fpscr if we don't have it.
4360 * ppc-bdm.c: #include "gdb_assert.h".
4361 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4362 have floating-point registers, since I can't test this code on
4363 FP-free systems to adapt it.
4364 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4365 fpscr and floating point register numbers if they don't exist.
4366 (fetch_register): Assert that we have floating-point registers
4367 before we reach the code that handles them.
4368 (store_register): Same. And use tdep instead of calling
4370 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4372 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4373 fprs and fpscr if we don't have them.
4374 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4376 * ppcnbsd-nat.c: #include "gdb_assert.h".
4377 (getfpregs_supplies): Assert that we have floating-point registers.
4378 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4379 * ppcobsd-tdep.c: #include "gdb_assert.h".
4380 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4381 have floating-point registers.
4382 * rs6000-nat.c (regmap): Don't match against the fpscr and
4383 floating point register numbers if they don't exist.
4384 (fetch_inferior_registers, store_inferior_registers,
4385 fetch_core_registers): Only fetch / store / supply the
4386 floating-point registers and the fpscr if we have them.
4387 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4388 (ppcobsd-tdep.o): Update dependencies.
4390 2004-05-10 Andrew Cagney <cagney@redhat.com>
4392 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4393 (context_switch): Do not switch through_sigtramp_breakpoint.
4394 * gdbthread.h (save_infrun_state, load_infrun_state)
4395 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4396 and structure member.
4397 * thread.c (load_infrun_state, save_infrun_state): Update.
4399 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4401 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4403 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4405 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4407 * aclocal.m4: Regenerate.
4409 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4411 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4413 2004-05-10 Andrew Cagney <cagney@redhat.com>
4415 * infrun.c (check_sigtramp2): Delete function.
4416 (handle_inferior_event): When single stepping, and taking a
4417 signal, set a breakpoint at the signal return address. Delete
4418 redundant calls to check_sigtramp2.
4419 (insert_step_resume_breakpoint): New function.
4420 (through_sigtramp_breakpoint, handle_inferior_event)
4421 (follow_exec, wait_for_inferior, fetch_inferior_event)
4422 (currently_stepping, keep_going): Delete most uses of
4423 through_sigtramp_breakpoint, not that it should be deleted.
4424 (delete_breakpoint_current_contents): Delete function.
4426 2004-05-10 Randolph Chung <tausq@debian.org>
4428 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4430 * config/pa/tm-linux.h: New file.
4432 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4434 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4435 of prefixes. Don't print the prefix twice in the CLI.
4437 2004-05-10 Jim Blandy <jimb@redhat.com>
4439 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4440 collect all the gprs.
4442 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4443 loop collecting gprs.
4445 2004-05-09 Andrew Cagney <cagney@redhat.com>
4447 * remote-vx.c (net_step): Delete step-range code.
4448 * remote.c (remote_resume, init_all_packet_configs)
4449 (set_remote_protocol_E_packet_cmd)
4450 (show_remote_protocol_E_packet_cmd)
4451 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4452 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4453 (show_remote_protocol_e_packet_cmd): Ditto.
4455 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4457 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4459 * hppa-tdep.h: Update copyright year.
4460 (struct trad_frame_saved_reg): Add opaque declaration.
4462 * amd64-tdep.c (amd64_return_value): Implement
4463 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4465 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4466 (m68k_value_to_register): New functions.
4467 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4470 * defs.h (enum return_value_convention): Add
4471 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4472 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4473 * infcmd.c (legacy_return_value): New function.
4474 (print_return_value): Rwerite to implement
4475 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4476 * values.c (using_struct_return): Check for inequality to
4477 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4478 RETURN_VALUE_STRUCT_CONVENTION.
4479 * i386-tdep.c (i386_return_value): Implement
4480 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4482 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4483 include "symtab.h", "opcode/vax.h" and "inferior.h".
4484 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4485 to read_memory_unsigned_integer.
4486 (vax_gdbarch_init): Reorder.
4487 (_initialize_vax_tdep): Spell out prototype.
4488 * Makefile.in (vax-tdep.o): Update dependencies.
4490 2004-05-08 Andrew Cagney <cagney@redhat.com>
4492 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4493 * target.c (target_detach, target_disconnect): Ditto.
4495 * infcall.c (call_function_by_hand): When no
4496 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4497 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4498 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4499 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4502 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4503 * gdbarch.h, gdbarch.c: Re-generate.
4504 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4505 deprecated_fix_call_dummy.
4506 * v850-tdep.c (v850_gdbarch_init): Ditto.
4507 * infcall.c (call_function_by_hand): Do not call
4508 DEPRECATED_FIX_CALL_DUMMY.
4510 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4511 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4512 * gdbarch.h, gdbarch.c: Re-generate.
4513 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4514 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4515 deprecated_sizeof_call_dummy_words.
4516 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4518 * v850-tdep.c (v850_gdbarch_init): Ditto.
4519 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4520 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4521 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4522 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4523 * arch-utils.h (legacy_call_dummy_words)
4524 (legacy_sizeof_call_dummy_words): Delete declarations.
4525 * arch-utils.c (legacy_call_dummy_words)
4526 (legacy_sizeof_call_dummy_words): Delete variables.
4528 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4529 * gdbarch.h, gdbarch.c: Re-generate.
4530 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4531 * infcall.c (call_function_by_hand): Eliminate call to
4532 DEPRECATED_PUSH_DUMMY_FRAME.
4533 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4535 (ns32k_push_dummy_frame): Delete function.
4537 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4538 deprecated_call_dummy_breakpoint_offset or
4539 deprecated_call_dummy_start_offset.
4540 * dummy-frame.c, arm-tdep.c: Update comments.
4541 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4542 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4543 * gdbarch.h, gdbarch.c: Re-generate.
4545 * infcall.c (legacy_push_dummy_code): Delete function.
4546 (push_dummy_code): Delete call.
4548 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4549 * gdbarch.h, gdbarch.c: Re-generate.
4550 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4551 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4552 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4553 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4555 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4556 (struct frame_info): Delete opaque declaration.
4557 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4558 * frame.c (get_frame_type): Delete call.
4560 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4562 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4563 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4565 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4567 * alphanbsd-tdep.c: Include "gdb_string.h".
4568 * armnbsd-tdep.c: Update copyright year.
4569 Include "gdb_string.h".
4570 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4573 * delta68-nat.c: Remove file.
4574 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4575 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4576 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4577 (delta68-nat.o): Remove dependency.
4579 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4581 (m68k_gdbarch_init): Don't set
4582 deprecated_frameless_function_invocation.
4584 2004-05-07 Randolph Chung <tausq@debian.org>
4586 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4587 read_memory_nobpt for code reading when doing frame unwinding.
4588 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4590 2004-05-07 Randolph Chung <tausq@debian.org>
4592 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4593 instead of sp, handle sigaltstack case.
4594 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4595 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4596 signal handler and not that of the caller.
4597 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4598 hppa_linux_sigtramp_find_sigcontext.
4600 2004-05-07 Randolph Chung <tausq@debian.org>
4602 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4604 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4605 * hppa-linux-nat.c (fetch_register, store_register): Define.
4606 (fetch_inferior_registers, store_inferior_registers): Define.
4607 (supply_gregset): Add comment and clean up some unneeded code.
4608 (fill_gregset): Add comment and fix so that it saves registers in
4609 the right place in the gregset.
4610 (fill_fpregset): Fix buffer overrun problem.
4611 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4613 2004-05-07 Randolph Chung <tausq@debian.org>
4615 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4616 do common handling of the pcoqt register.
4617 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4618 to use helper function.
4619 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4620 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4621 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4622 generic fallback unwinder when all else fails.
4623 (hppa_gdbarch_init): Add fallback sniffer.
4624 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4625 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4626 to use helper function.
4628 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4630 * config/djgpp/fnchange.lst: Add translation rules for
4631 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4633 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4635 * frame.c (get_prev_frame_1): Work around GCC bug.
4636 * frame.h: Add comment about GCC bug.
4638 2004-05-07 Andrew Cagney <cagney@redhat.com>
4640 * observer.c: Include "commands.h" and "gdbcmd.h".
4641 (observer_debug, _initialize_observer): Add the
4642 command "set/show debug observer".
4643 * observer.sh: When observer debugging, log notify calls.
4644 * Makefile.in (observer.o): Update dependencies.
4646 2004-05-07 Jason Molenda (jmolenda@apple.com)
4648 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4650 2004-05-07 Jim Blandy <jimb@redhat.com>
4652 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4653 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4654 to recognize gpr regnums, instead of assuming that
4655 tdep->ppc_fp0_regnum marks the end of the general-purpose
4658 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4659 the given architecture has floating-point registers.
4661 2004-05-07 Andrew Cagney <cagney@redhat.com>
4663 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4667 deprecated_use_generic_dummy_frames.
4669 2004-05-07 Brian Ford <ford@vss.fsi.com>
4671 * NEWS: Mention Cygwin DWARF 2 support.
4673 2004-05-07 Andrew Cagney <cagney@redhat.com>
4675 * objfiles.h (struct entry_info): Delete unused fields
4676 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4677 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4678 * mipsread.c (mipscoff_symfile_read): Update.
4679 * mdebugread.c (parse_partial_symbols): Update.
4680 * dwarfread.c (read_file_scope): Update.
4681 * dwarf2read.c (read_file_scope): Update.
4682 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4683 * coffread.c (complete_symtab): Update.
4685 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4687 * infcall.c (_initialize_infcall): Fix typo.
4689 2004-05-07 Andrew Cagney <cagney@redhat.com>
4691 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4692 * command.h (add_setshow_zinteger_cmd): Declare.
4694 2004-05-06 Randolph Chung <tausq@debian.org>
4696 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4697 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4698 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4699 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4700 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4701 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4702 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4704 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4705 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4706 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4707 (hppa64_hpux_frame_find_saved_regs_in_sig)
4708 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4709 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4710 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4711 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4712 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4713 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4714 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4715 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4716 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4717 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4718 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4719 (hppa32_register_type, hppa_cannot_store_register)
4720 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4721 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4722 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4723 * pa64solib.c (pa64_solib_have_load_event)
4724 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4725 (pa64_solib_unloaded_library_pathname): Likewise.
4726 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4727 (som_solib_library_pathname): Likewise.
4729 2004-05-05 Jim Ingham <jingham@apple.com>
4731 * breakpoint.c (create_breakpoints): Copy the ignore count and
4732 thread id over from the pended breakpoint to the actual
4735 2004-05-05 Andrew Cagney <cagney@redhat.com>
4737 * gdbarch.sh (PARM_BOUNDARY): Delete.
4738 gdbarch.h, gdbarch.c: Re-generate.
4739 * valops.c (PARM_BOUNDARY): Delete macro.
4740 (value_push): Delete PARM_BOUNDARY code.
4741 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4743 2004-05-04 Jim Blandy <jimb@redhat.com>
4745 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4746 Don't assume that the gprs, fprs, and UISA sprs are
4747 contiguous, start at register number zero, and end with fpscr.
4748 Instead, use the numbers from the tdep structure.
4750 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4751 should no longer be used in code specific to the RS6000 and its
4753 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4754 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4755 tdep->ppc_fp0_regnum.
4756 (ppc_supply_fpregset, ppc_collect_fpregset)
4757 (rs6000_push_dummy_call, rs6000_extract_return_value)
4758 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4759 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4761 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4762 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4764 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4765 bdm_ppc_store_registers): Same.
4766 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4767 (store_register, fill_fpregset): Same.
4768 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4769 (ppc_linux_supply_fpregset): Same.
4770 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4771 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4773 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4774 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4775 ppc64_sysv_abi_return_value): Same.
4776 * rs6000-nat.c (regmap, fetch_inferior_registers)
4777 (store_inferior_registers, fetch_core_registers): Same.
4779 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4781 * m68knbsd-nat.c: Remove file.
4782 * m68knbsd-tdep.c: Remove file.
4783 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4785 * configure.host: Add m68k-*-netbsdelf*.
4786 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4787 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4788 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4790 * config/m68k/nbsdelf.mh: New file.
4791 * config/m68k/nbsd.mt: New file.
4792 * config/m68k/nbsdaout.mt: Remove file.
4793 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4794 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4795 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4796 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4797 (use_struct_convention): Remove prototype.
4798 (USE_STRUCT_CONVENTION): Remove define.
4799 * config/m68k/xm-nbsd.h: Remove file.
4801 2004-05-04 Michael Snyder <msnyder@redhat.com>
4803 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4804 reg_struct_return method (as gcc usually does for cross targets).
4806 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4808 Committed by Andrew Cagney.
4809 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4810 alignment padding when accessing ucontext struct members.
4812 2004-05-04 Jim Blandy <jimb@redhat.com>
4814 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4815 'ppc_gplast_regnum' member.
4816 (ppc_num_gprs): New enum constant.
4817 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4818 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4819 * rs6000-nat.c (regmap, fetch_inferior_registers,
4820 store_inferior_registers): Same.
4821 * rs6000-tdep.c (e500_pseudo_register_read)
4822 (e500_pseudo_register_write): Same.
4823 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4825 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4826 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4827 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4828 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4830 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4832 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4833 * rs6000-nat.c (regmap, fetch_inferior_registers)
4834 (store_inferior_registers): Same.
4836 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4839 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4841 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4842 failure detected by recent versions of GCC.
4843 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4844 to be consistent with the usage in dwarf2_create_include_psymtab.
4846 2004-05-03 Michael Snyder <msnyder@redhat.com>
4848 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4849 (heuristic_proc_start): Whitespace cleanup.
4851 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4853 * sun3-nat.c: Remove file.
4854 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4856 (ALLDEPFILES): Remove sun3-nat.c.
4857 (sun3-nat.o): Remove dependencies.
4859 * i386-interix-nat.c, i386-interix-tdep.c,
4860 config/i386/nm-interix.h, config/i386/interix.mh,
4861 config/i386/interix.mt: Remove files.
4862 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4865 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4867 * m68k-tdep.h (struct gdbarch_tdep): Add member
4868 struct_value_regnum.
4869 (m68k_svr4_init_abi): New prototype.
4870 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4871 different calling conventions.
4872 (m68k_extract_return_value): Remove code dealing with single-field
4874 (m68k_store_return_value): Remove code dealing with single-field
4875 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4876 (m68k_extract_struct_value_address): Remove function.
4877 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4878 (m68k_reg_struct_return_p, m68k_return_value)
4879 (m68k_svr4_return_value): New functions.
4880 (m68k_use_struct_convention): Remove function.
4881 (m68k_push_dummy_call): Use new struct_value_regnum member of
4882 `struct gdbarch_tdep' instead of hardcoded register number to
4884 (m68k_svr4_init_abi): New function.
4885 (m68k_gdbarch_init): Don't set extract_return_value,
4886 store_return_values, deprecated_extract_struct_value_address and
4887 use_struct_convention. Set return_value instead. Initialize new
4888 struct_value_regnum member of `struct gdbarch_tdep'.
4889 * m68klinux-tdep.c: Update copyright year.
4890 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4891 (m68k_linux_extract_struct_value_address): Remove function.
4892 (m68k_linux_init_abi): Don't set extract_return_value,
4893 store_return_values, deprecated_extract_struct_value_address and
4894 use_struct_convention. Call m68k_svr4_init_abi but override the
4895 new struct_value_regnum member of `struct gdbarch_tdep'.
4896 * Makefile.in (m68k-tdep.o): Update dependencies.
4898 2004-05-03 J. Brobecker <brobecker@gnat.com>
4900 * dwarf2read.c (line_header): Add new included_p field in
4902 (partial_die_info): New field has_stmt_list. New field line_offset.
4903 (dwarf2_create_include_psymtab): New function.
4904 (dwarf2_build_include_psymtabs): New function.
4905 (add_file_name): Add forward declaration. Initialize new field.
4906 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4907 to be able to determine the list of files included by the
4908 given unit, and build their associated psymtabs.
4909 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4911 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4912 (read_file_scope): Update call to dwarf_decode_lines.
4913 (read_partial_die): Handle DW_AT_stmt_list attributes.
4915 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4918 * configure.in: Revert special case for osf5.*.
4919 * configure: Regenerate.
4921 2004-05-02 Jim Blandy <jimb@redhat.com>
4923 Move the symbol-file-from-memory functions into their own file.
4924 * symfile-mem.c, symfile-mem.h: New files.
4925 * symfile.c (symbol_file_add_from_bfd): New function.
4926 (symbol_file_add): Call symbol_file_add_from_bfd.
4927 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4928 Moved to symfile-mem.c.
4929 (_initialize_symfile): Move definition of
4930 add-symbol-file-from-memory command to symfile-mem.c.
4931 * symfile.h (symbol_file_add_from_bfd): New declaration.
4932 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4933 * config/powerpc/linux.mt (TDEPFILES): Same.
4934 * Makefile.in (SFILES): Add symfile-mem.c.
4935 (symfile_mem_h): New variable.
4936 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4937 (symfile-mem.o): New rule.
4939 2004-05-01 Andrew Cagney <cagney@redhat.com>
4941 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4942 frame_find_by_id instead of frame_relative_level.
4943 (do_enable_breakpoint): Ditto.
4944 * thread.c: Update copyright.
4945 (info_threads_command): Ditto, simplify.
4947 * frame.c (deprecated_generic_get_saved_register): Delete
4948 function, moved to "xstormy16-tdep.c".
4949 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4950 deprecated_generic_get_saved_register from "frame.c".
4951 (xstormy16_frame_saved_register): Call
4952 xstormy16_get_saved_register.
4953 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4955 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4956 * frame.h (deprecated_generic_get_saved_register): Delete.
4958 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4960 * dwarfread.c: Update documentation on the state of dwarf-1.
4962 2004-05-01 Andrew Cagney <cagney@redhat.com>
4964 * stack.c (select_frame_command): Delete call to
4965 frame_relative_level.
4966 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4968 (frame_info): Do not print FRAMELESS.
4969 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4970 (catch_info): Delete #if0 code.
4972 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4973 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4974 of frame_relative_level.
4975 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4977 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4978 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4979 frame_relative_level.
4981 * frame.h (deprecated_set_frame_type): Delete declaration.
4982 * frame.c (deprecated_set_frame_type): Delete function, update
4985 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4986 * gdbarch.h, gdbarch.c: Re-generate.
4987 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4988 (shnbsd_pc_in_sigtramp): Delete.
4989 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4991 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4993 * frame.h: Update comments.
4994 * ppc-linux-tdep.c: Update comments.
4995 * breakpoint.c (bpstat_what): Update comments.
4997 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4998 m68klinux-tdep.o's dependencies, were previously added to
5001 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5002 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5003 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5004 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5005 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5007 * Makefile.in (m68klinux-nat.o): Update dependencies.
5008 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5009 (m68k_linux_sigtramp_frame_cache)
5010 (m68k_linux_sigtramp_frame_this_id)
5011 (m68k_linux_sigtramp_frame_prev_register)
5012 (m68k_linux_sigtramp_frame_unwind)
5013 (m68k_linux_sigtramp_frame_sniffer)
5014 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5015 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5016 names, use trad-frame.h.
5017 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5018 (struct m68k_sigtramp_info): Delete.
5019 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5020 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5021 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5022 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5025 * infrun.c (check_sigtramp2): Delete check for
5026 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5028 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5030 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5032 2004-05-01 Andrew Cagney <cagney@redhat.com>
5034 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5035 (frv_linux_sigtramp_frame_cache)
5036 (frv_linux_sigtramp_frame_this_id)
5037 (frv_linux_sigtramp_frame_prev_register)
5038 (frv_linux_sigtramp_frame_unwind)
5039 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5040 include "linux" in function and variable names, directly call
5041 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5042 the latest trad-frame code.
5043 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5044 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5045 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5046 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5047 * frv-tdep.c (frv_sigtramp_frame_cache)
5048 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5049 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5051 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5052 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5053 (frv_set_sigcontext_reg_addr): Delete function.
5055 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5056 (DEPRECATED_SIGTRAMP_END): Delete.
5057 * gdbarch.h, gdbarch.c: Re-generate.
5058 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5059 * config/vax/tm-vaxbsd.h: Update copyright.
5060 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5061 (DEPRECATED_IN_SIGTRAMP): Define.
5062 * config/m68k/tm-nbsd.h: Update copyright.
5063 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5064 (DEPRECATED_IN_SIGTRAMP): Define.
5066 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5068 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5069 encondings. Fixes PR gdb/1628.
5071 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5072 DW_CFA_restore state without a matching DW_CFA_remember_state
5073 instead of aborting. Fixes PR backtrace/1589.
5075 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5077 * MAINTAINERS: Add self as AIX maintainer.
5078 Update my e-mail address in write-after-approval section.
5080 2004-04-30 Andrew Cagney <cagney@redhat.com>
5082 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5083 (legacy_get_prev_frame): Ditto.
5085 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5086 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5087 * mipsread.c (sigtramp_address): Delete extern variable.
5088 (mipscoff_new_init): Delete reference.
5089 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5090 (fixup_sigtramp): Delete function.
5091 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5092 (fixup_sigtramp): Delete declarations.
5094 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5095 deprecated_pc_in_sigtramp.
5096 (ppcnbsd_pc_in_sigtramp): Delete function.
5098 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5100 * config/m68k/nm-nbsd.h: Tweak comments.
5101 * config/m68k/nm-nbsdaout.h: Likewise.
5103 2004-04-30 Andrew Cagney <cagney@redhat.com>
5105 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5106 legacy_pc_in_sigtramp.
5107 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5109 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5111 Add OpenBSD/m68k support.
5112 * NEWS (New native configurations): Mention OpenBSD/m68k.
5113 * m68kbsd-tdep.c: New file.
5114 * m68kbsd-nat.c: New file.
5115 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5116 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5117 * configure.host: Add m68k-*-openbsd.
5118 * configure.tgt: Add m68k-*-openbsd.
5119 * config/m68k/tm-obsd.h: New file.
5120 * config/m68k/obsd.mt: New file.
5121 * config/m68k/obsd.mh: New file.
5122 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5125 2004-04-30 Andrew Cagney <cagney@redhat.com>
5127 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5128 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5130 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5132 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5133 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5135 2004-04-30 Brian Ford <ford@vss.fsi.com>
5137 Revert 2004-04-16 change.
5138 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5139 (i386_coff_init_abi): Remove.
5140 * i386-tdep.h (i386_coff_init_abi): Remove.
5141 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5143 2004-04-30 Andrew Cagney <cagney@redhat.com>
5145 * blockframe.c (find_pc_partial_function): Delete use of
5146 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5147 DEPRECATED_SIGTRAMP_END.
5149 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5150 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5151 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5152 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5153 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5155 * defs.h (deprecated_inside_entry_file): Delete declaration.
5156 * blockframe.c (deprecated_inside_entry_file): Delete function.
5157 (legacy_frame_chain_valid): Delete call.
5158 * sh64-tdep.c (sh64_frame_chain): Delete call.
5159 * objfiles.h: Update comments.
5160 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5162 * frame.c (get_prev_frame): Delete call, update comments.
5164 2004-04-30 Brian Ford <ford@vss.fsi.com>
5166 * MAINTAINERS (Write After Approval): Add myself.
5168 2004-04-30 Andrew Cagney <cagney@redhat.com>
5170 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5171 * gdbarch.h, gdbarch.c: Re-generate.
5172 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5175 2004-04-30 Andrew Cagney <cagney@redhat.com>
5177 * gdb-events.sh (selected_thread_changed)
5178 (selected_frame_level_changed, target_changed): Delete.
5179 * gdb-events.h, gdb-events.c: Re-generate.
5180 * valops.c (value_assign): Update.
5181 * stack.c (select_frame_command, up_silently_base)
5182 (down_silently_base): Update.
5184 2004-04-29 Andrew Cagney <cagney@redhat.com>
5186 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5187 registers correctly.
5188 (print_gp_register_row, mips32_heuristic_proc_desc)
5189 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5190 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5191 references to mips_isa_regsize.
5193 2004-04-29 Andrew Cagney <cagney@redhat.com>
5195 * mips-tdep.c (struct gdbarch_tdep): Delete
5196 mips_fp_register_double.
5197 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5199 (mips_gdbarch_init): Do not set mips_fp_register_double.
5200 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5202 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5204 Committed by Andrew Cagney.
5205 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5208 2004-04-29 Andrew Cagney <cagney@redhat.com>
5210 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5211 gdbarch, use mips_abi, update callers.
5212 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5213 mips_abi_regsize, update callers.
5214 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5215 mips_default_abi_regsize.
5216 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5217 mips_default_abi_regsize.
5219 2004-04-29 Andrew Cagney <cagney@redhat.com>
5221 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5222 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5223 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5224 mips_default_abi_regsize.
5225 (mips_isa_regsize): Rename mips_regisze.
5226 * mipsnbsd-tdep.c: Update.
5227 * mips-linux-tdep.c: Update.
5228 * irix5-nat.c: Update.
5229 * mips-tdep.h (mips_isa_regsize): Update.
5231 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5232 Delete all disabled code.
5233 * gdb-events.h, gdb-events.c: Re-generate.
5235 2004-04-19 Jerome Guitton <guitton@gnat.com>
5236 Mark Kettenis <kettenis@gnu.org>
5238 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5239 the function begins with a branch instruction.
5241 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5243 * i386-tdep.c: Fix spelling mistakes.
5245 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5246 Andrew Cagney <cagney@redhat.com>
5248 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5250 * acconfig.h: Provide default _KMEMUSER value.
5251 * config.in, configure: Re-generate.
5252 * NEWS: Mention fix.
5254 2004-04-24 Randolph Chung <tausq@debian.org>
5256 * configure.host (hppa*-*-linux*): New target.
5257 * configure.tgt (hppa*-*-linux*): Likewise.
5258 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5259 gdbarch_init_osabi() call earlier so that osabi-specific frame
5260 unwinders can be registered first.
5261 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5263 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5264 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5265 * config/pa/linux.mh: New file.
5266 * config/pa/linux.mt: New file.
5267 * config/pa/nm-linux.h: New file.
5268 * config/pa/xm-linux.h: New file.
5269 * hppa-linux-nat.c: New file.
5270 * hppa-linux-tdep.c: New file.
5272 2004-04-28 Randolph Chung <tausq@debian.org>
5274 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5276 (hppa32_push_dummy_call): Fix small struct and floating point argument
5277 passing, and make sure the stack frame is properly aligned.
5279 2004-04-28 Andrew Cagney <cagney@redhat.com>
5281 * stack.c (print_stack_frame): Fix description.
5283 * NEWS: Mention gdb/gdbserver/configure execute permission
5284 changed. PR server/519.
5286 2004-04-28 Andrew Cagney <cagney@redhat.com>
5288 * stack.c (print_stack_frame_stub): Delete declaration.
5289 (struct print_stack_frame_args, print_stack_frame)
5290 (print_frame_info, print_frame): Replace "source" with print what.
5291 Replace "print" with "print_level". Replace "args" with
5293 * frame.h (show_and_print_stack_frame, print_stack_frame)
5294 (print_frame_info): Update declarations.
5295 * stack.c (select_and_print_frame, frame_command)
5296 (current_frame_command, up_command, down_command): Update calls -
5297 use get_selected_frame, pass "enum print_what" for source, do not
5298 call frame_relative_level.
5299 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5300 * remote-rdp.c (remote_rdp_open): Ditto.
5301 * remote-mips.c (common_open): Ditto.
5302 * remote-e7000.c (e7000_start_remote): Ditto.
5303 * ocd.c (ocd_start_remote): Ditto.
5304 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5305 * infrun.c (normal_stop): Ditto.
5306 * inflow.c (kill_command): Ditto.
5307 * infcmd.c (finish_command): Ditto.
5308 * corelow.c (core_open): Ditto.
5309 * tracepoint.c (finish_tfind_command): Ditto.
5310 * thread.c (info_threads_command, info_threads_command)
5311 (restore_current_thread, do_captured_thread_select): Ditto.
5312 * ada-tasks.c (task_command): Ditto.
5314 2004-04-26 Orjan Friberg <orjanf@axis.com>
5316 * frame.c: Include "observer.h".
5317 (frame_observer_target_changed): New function.
5318 (_initialize_frame): Attach target_changed observer.
5319 * regcache.c: Include "observer.h".
5320 (regcache_observer_target_changed): New function.
5321 (_initialize_regcache): Attach target_changed observer.
5322 * valops.c: Include "observer.h".
5323 (value_assign): Notify target_changed event when modifying register.
5324 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5326 2004-04-26 Orjan Friberg <orjanf@axis.com>
5328 From Paul Koning <pkoning@equallogic.com>:
5329 * breakpoint.c (free_valchain): New function.
5330 (insert_bp_location, delete_breakpoint): Use free_valchain.
5331 (remove_breakpoint): Do not remove the valchain.
5332 (bpstat_stop_status): If not stopped by watchpoint, skip
5333 watchpoints when generating stop status list.
5334 * infrun.c (handle_inferior_event): Make
5335 stepped_after_stopped_by_watchpoint a global variable.
5336 * remote.c (remote_stopped_data_address): Return watch data
5337 address rather than zero if stepped_after_stopped_by_watchpoint is
5340 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5343 * configure.in: Check for curses after termcap.
5344 On osf5.*, do not check for ncurses.
5345 * configure: Regenerate.
5347 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5349 * ppcobsd-nat.c: Include "ppc-tdep.h".
5350 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5352 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5353 Fixes PR tdep/1623 and PR tdep/1624.
5355 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5357 * xmodem.h, xmodem.c: Remove files.
5358 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5360 2004-04-23 Randolph Chung <tausq@debian.org>
5362 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5363 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5364 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5365 for handling stackless frames.
5366 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5368 2004-04-23 Randolph Chung <tausq@debian.org>
5370 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5371 starts at a pc before the frame is created.
5373 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5375 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5377 2004-04-23 Jerome Guitton <guitton@gnat.com>
5379 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5380 use convert_typed_floating to get the appropriate format.
5382 2004-04-22 Randolph Chung <tausq@debian.org>
5384 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5385 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5386 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5387 (hppa_sign_extend): Add prototype.
5388 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5389 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5390 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5391 hppa targets will also use these functions.
5392 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5393 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5394 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5395 (hppa_gdbarch_init): Remove gdbarch setting of
5396 skip_trampoline_code, in_solib_call_trampoline and
5397 in_solib_return_trampoline.
5398 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5399 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5400 hppa_in_solib_call_trampoline.
5401 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5402 Moved from hppa-tdep.c.
5403 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5404 in_solib_call_trampoline and in_solib_return_trampoline.
5406 2004-04-22 Randolph Chung <tausq@debian.org>
5408 * hppa-tdep.c (hppa_debug): New variable.
5409 (find_unwind_entry, hppa_frame_cache): Add debug output.
5410 (_initialize_hppa_tdep): Add command to set debug flag.
5412 2004-04-22 Andrew Cagney <cagney@redhat.com>
5414 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5416 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5417 signal trampoline unwinder.
5418 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5420 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5422 Add OpenBSD/powerpc support.
5423 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5424 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5425 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5426 (ppc_collect_fpregset): New prototypes.
5427 * ppcobsd-nat.c: New file.
5428 * ppcobsd-tdep.c: New file.
5429 * ppcobsd-tdep.h: New file.
5430 * rs6000-tdep.c: Include "regset.h".
5431 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5432 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5434 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5435 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5436 (rs6000-tdep.o): Update dependencies.
5437 * configure.host: Add powerpc-*-openbsd.
5438 * configure.tgt: Add powerpc-*-openbsd.
5439 * config/powerpc/obsd.mh: New file.
5440 * config/powerpc/nm-obsd.h: New file.
5441 * config/powerpc/obsd.mt: New file.
5443 2004-04-22 Andrew Cagney <cagney@redhat.com>
5445 * frame.h (show_frame_info): Delete declaration.
5447 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5448 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5449 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5450 * frv-tdep.c (frv_frame_this_id): Ditto.
5451 * avr-tdep.c (avr_frame_this_id): Ditto.
5453 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5455 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5457 2004-04-22 Jim Blandy <jimb@redhat.com>
5459 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5460 register number zero.
5462 2004-04-21 Michael Snyder <msnyder@redhat.com>
5464 * mips-tdep.c (heuristic_proc_start):
5465 Warning() already prefixes "Warning: ".
5467 2004-04-21 Andrew Cagney <cagney@redhat.com>
5469 * annotate.h (deprecated_annotate_starting_hook)
5470 (deprecated_annotate_stopped_hook)
5471 (deprecated_annotate_exited_hook)
5472 (deprecated_annotate_signal_hook)
5473 (deprecated_annotate_signalled_hook): Deprecate.
5474 * tracepoint.h (deprecated_create_tracepoint_hook)
5475 (deprecated_delete_tracepoint_hook)
5476 (deprecated_modify_tracepoint_hook)
5477 (deprecated_trace_find_hook)
5478 (deprecated_trace_start_stop_hook): Deprecate.
5479 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5480 * remote.h (deprecated_target_resume_hook)
5481 (deprecated_target_wait_loop_hook): Deprecate.
5482 * gdbcore.h (deprecated_exec_file_display_hook)
5483 (deprecated_file_changed_hook): Deprecate.
5484 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5485 * defs.h (deprecated_modify_breakpoint_hook)
5486 (deprecated_command_loop_hook, deprecated_show_load_progress)
5487 (deprecated_print_frame_info_listing_hook)
5488 (deprecated_query_hook, deprecated_warning_hook)
5489 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5490 (deprecated_delete_breakpoint_hook)
5491 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5492 (deprecated_readline_begin_hook, deprecated_readline_hook)
5493 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5494 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5495 (deprecated_context_hook, deprecated_target_wait_hook)
5496 (deprecated_attach_hook, deprecated_detach_hook)
5497 (deprecated_call_command_hook, deprecated_set_hook)
5498 (deprecated_error_hook, deprecated_error_begin_hook)
5499 (deprecated_ui_load_progress_hook): Deprecate.
5500 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5501 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5502 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5503 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5504 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5505 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5506 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5507 * annotate.c, aix-thread.c: Update.
5509 2004-04-21 Andrew Cagney <cagney@redhat.com>
5511 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5512 * vaxnbsd-tdep.c: Include "gdb_string.h".
5514 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5515 (add_symbol_file_from_memory_command): #if 0 function body, call
5518 2004-04-21 Andrew Cagney <cagney@redhat.com>
5520 * gdbcore.h: Update copyright.
5521 (deprecated_add_core_fns): Rename add_core_fns.
5522 * win32-nat.c (_initialize_core_win32): Update.
5523 * sun3-nat.c (_initialize_core_sun3): Update.
5524 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5525 * rs6000-nat.c (_initialize_core_rs6000): Update.
5526 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5527 * nto-tdep.c (_initialize_nto_tdep): Update.
5528 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5529 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5530 * mips-nat.c (_initialize_core_mips): Update.
5531 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5532 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5533 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5534 * lynx-nat.c (_initialize_core_lynx): Update.
5535 * irix5-nat.c (_initialize_core_irix5): Update.
5536 * i386-interix-nat.c (_initialize_core_interix): Update.
5537 * cris-tdep.c (_initialize_cris_tdep): Update.
5538 * corelow.c (deprecated_add_core_fns): Update.
5539 * core-regset.c (_initialize_core_regset): Update.
5540 * core-aout.c (_initialize_core_aout): Update.
5541 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5542 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5543 * alpha-nat.c (_initialize_core_alpha): Update.
5545 2004-04-21 Jim Blandy <jimb@redhat.com>
5547 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5549 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5551 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5553 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5554 (read_attribute_value): Update calls to dwarf_alloc_block.
5555 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5557 (psymtab_to_symtab_1): Likewise. Clean up using
5558 free_stack_comp_unit.
5559 (add_to_cu_func_list): Use the comp_unit_obstack.
5561 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5563 * dwarf2read.c (dwarf2_flag_true_p): New function.
5564 (die_is_declaration): Use the function above. Add some comments.
5566 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5568 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5569 architecture when registering sparcnbsd_core_osabi_sniffer.
5572 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5574 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5577 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5578 * i386-tdep.c: Correct register numbering scheme comments
5580 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5581 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5582 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5583 (i386_gdb_arch_init): Likewise.
5585 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5586 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5589 * m68k-tdep.h: Tweak comments.
5590 * m68k-tdep.c: Tweak comment.
5592 2004-04-17 Randolph Chung <tausq@debian.org>
5594 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5595 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5596 (hppa_hpux_som_init_abi): Set is_elf to 0.
5597 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5598 * hppa-tdep.c (low_text_segment_address): Remove global.
5599 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5600 section offset to calculate segment address.
5601 (internalize_unwinds): Define low_text_segment_address as local and
5602 pass to record_text_segment_lowaddr for ELF targets.
5603 (hppa_gdbarch_init): Zero fill tdep structure.
5604 (hppa_dump_tdep): Print tdep structure.
5605 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5607 2004-04-17 Randolph Chung <tausq@debian.org>
5609 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5610 (hppa_gdbarch_init): Set pseudo_register_read.
5611 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5612 * regcache.c (supply_register): Remove check for
5613 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5615 2004-04-17 Randolph Chung <tausq@debian.org>
5617 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5618 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5619 (hpread_adjust_stack_address): Move to hpread.c.
5620 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5621 obj_private_struct): Move from tm-hppa.h.
5622 * hpread.c (hppa-tdep.h): Include.
5623 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5624 (hpread_read_function_type, hpread_read_doc_function_type)
5625 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5627 * pa64solib.c (hppa-tdep.h): Include.
5628 * somsolib.c (hppa-tdep.h): Include.
5629 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5630 inferior_status): Remove unused forward declarations.
5631 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5632 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5633 obj_private_struct): Move to hppa-tdep.h.
5634 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5636 2004-04-17 Randolph Chung <tausq@debian.org>
5638 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5639 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5640 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5641 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5642 Remove forward declaration and make static.
5643 (hppa_reg_struct_has_addr): Remove.
5645 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5647 * observer.sh: Move comments in sed command to first column.
5649 2004-04-16 Jason Molenda (jmolenda@apple.com)
5651 * frame.c: Minor typeo corrections in comments.
5653 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5655 * observer.c (observer_test_first_notification_function): Update
5657 (observer_test_second_notification_function): Likewise.
5658 (observer_test_third_notification_function): Likewise.
5660 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5662 From Brian Ford <ford@vss.fsi.com>:
5663 * i386-tdep.c (i386_coff_init_abi): New function.
5664 * i386-tdep.h (i386_coff_init_abi): New prototype.
5665 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5666 register number translation functions for DWARF and DWARF 2.
5668 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5670 * dwarf2read.c: Back out my previous change, it was incorrect.
5672 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5674 * dwarf2read.c: Include "hashtab.h".
5675 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5677 (struct partial_die_info): Add comments. Use bitfields to reduce
5678 memory footprint. Add scope, scope_set, has_specification,
5679 spec_offset, die_parent, die_child, and die_sibling.
5680 (peek_die_abbrev): Add prototype.
5681 (partial_read_comp_unit_head): New function, broken out from
5682 dwarf2_build_psymtabs_hard.
5683 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5684 Use partial_read_comp_unit_head. Initialize the CU and
5685 comp_unit_obstack. Update calls to read_partial_die and
5686 scan_partial_symbols. Use free_stack_comp_unit and
5688 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5689 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5690 Update calls to helper functions. Remove NAMESPACE argument.
5692 (partial_die_parent_scope, partial_die_full_name): New functions.
5693 (add_partial_symbol): Remove namespace argument. Update call to
5694 pdi_needs_namespace. Use partial_die_full_name. Handle
5695 DW_TAG_namespace. Check has_namespace_info flag.
5696 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5697 tag. Handle namespaces.
5698 (add_partial_namespace, add_partial_enumeration): Simplify.
5699 (guess_structure_name): New function, derived from
5700 add_partial_structure.
5701 (add_partial_structure): Remove.
5702 (determine_class_name): Update comment.
5703 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5704 (is_type_tag_for_partial, load_partial_dies): New functions.
5705 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5706 Record specifications instead of following them immediately.
5707 (find_partial_die_in_comp_unit, find_partial_die)
5708 (fixup_partial_die, free_stack_comp_unit)
5709 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5710 (partial_die_hash, partial_die_eq): New functions.
5711 * Makefile.in (hashtab_h): Define.
5712 (dwarf2read.o): Update dependencies.
5713 (observer_inc, observer_h): Move to the correct section.
5715 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5717 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5718 (die_is_declaration): Use the function above. Add comment.
5720 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5722 * dwarf2read.c (read_structure_scope): Identify stub types
5723 using die_is_declaration() only.
5725 2004-04-15 Roland McGrath <roland@redhat.com>
5727 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5728 argument instead of NAME.
5729 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5730 in call to symbol_file_add_with_addrs_or_offsets.
5731 (build_addr_info): New function, helper for ...
5732 (symbol_file_add_from_memory): New function.
5733 (add_symbol_file_from_memory_command): New function using that.
5734 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5735 (pre_add_symbol_hook): Add const to argument type.
5736 * symfile.h (symbol_file_add_from_memory): Declare it.
5738 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5740 * NEWS (New native configurations): Mention OpenBSD/vax.
5741 * configure.host: Add vax-*-openbsd*.
5742 * config/vax/obsd.mh: New file.
5743 * config/vax/nm-obsd.h: New file.
5745 * vax-tdep.c: Include "regset.h".
5746 (vax_supply_gregset): New function.
5747 (vax_gregset): New variable.
5748 (vax_regset_from_core_section): New function.
5749 (vax_gdbarch_init): Set regset_from_core_section.
5750 * Makefile.in (vax-tdep.o): Update dependencies.
5752 2004-04-15 Andrew Cagney <cagney@redhat.com>
5754 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5755 (observer_normal_stop_notification_stub)
5756 (observer_attach_normal_stop, observer_detach_normal_stop):
5757 Delete, replaced by #include "observer.inc".
5758 * infrun.c (normal_stop): Pass "stop_bpstat" to
5759 observer_notify_normal_stop.
5760 * Makefile.in (observer_inc): Define.
5761 (observer.o): Update dependencies.
5762 (observer.h, observer.inc): New rules.
5763 * observer.h: Delete file.
5764 * observer.sh: New file.
5766 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5768 * vax-tdep.c (vax_frame_cache): Fix typo.
5770 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5772 * NEWS (New native configurations): Mention NetBSD/vax.
5773 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5774 * config/vax/nbsdelf.mh: New file.
5775 * config/vax/nbsdaout.mh: New file.
5776 * config/vax/nm-nbsd.h: New file.
5777 * config/vax/nm-nbsdaout.h: New file.
5779 * vaxnbsd-tdep.c: New file.
5780 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5781 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5782 * config/vax/nbsd.mt: New file.
5783 * config/vax/tm-nbsd.h: New file.
5785 * Makefile.in (vaxbsd-nat.o): New dependency.
5787 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5788 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5789 struct_addr arguments. Don't push return value address.
5790 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5791 arguments to vax_store_arguments. Store return value address in
5793 (vax_store_struct_return, vax_extract_return_value)
5794 (vax_store_return_value): Remove functions.
5795 (vax_return_value): New function.
5796 (vax_gdbarch_init): Set return value. Don't set
5797 deprecated_store_struct_return, deprecated_extract_struct_return
5798 and deprecated_store_return_value.
5800 2004-04-14 Andreas Schwab <schwab@suse.de>
5802 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5804 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5806 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5808 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5809 (vax_unwind_dummy_id): New functions.
5810 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5811 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5813 (vax_fix_call_dummy): Remove function.
5814 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5815 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5816 call_dummy_location, deprecated_call_dummy_words,
5817 deprecated_sizeof_call_dummy_words,
5818 deprecated_call_dummy_breakpoint_offset,
5819 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5820 and deprecated_dummy_write_sp.
5822 2004-04-13 David Carlton <carlton@kealia.com>
5824 * MAINTAINERS: Move myself to "paper trail" section.
5826 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5828 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5830 (vax_frame_init_saved_regs): Remove function.
5831 (vax_sigtramp_saved_pc): Remove function.
5832 (vax_frame_saved_pc): Remove function.
5833 (vax_frame_args_address): Remove function.
5834 (vax_frame_num_args): Rewrite.
5835 (vax_frame_chain): Remove function.
5836 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5838 (vax_pop_frame): Likewise.
5839 (vax_saved_pc_after_call): Remove function.
5840 (struct vax_frame_cache): New structure.
5841 (vax_frame_cache): New function.
5842 (vax_frame_this_id): New function.
5843 (vax_frame_prev_register): New function.
5844 (vax_frame_unwind): New variable.
5845 (vax_frame_sniffer): New function.
5846 (vax_frame_base_address): New function.
5847 (vax_frame_args_address): New function.
5848 (vax_frame_base): New variable.
5849 (vax_unwind_pc): New function.
5850 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5851 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5852 deprecated_frame_chain, deprecated_frame_saved_pc,
5853 deprecated_frame_args_address and
5854 deprecated_frame_init_saved_regs.
5855 * Makefile.in (vax-tdep.o): Update dependencies.
5857 * vaxbsd-nat.c: New file.
5859 * vax-tdep.h: Update copyright year. Adjust comments.
5860 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5861 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5862 (vax_regnum): New enum. Replacing...
5863 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5864 (VAX_PS_REGNUM): ... these removed macros.
5865 * vax-tdep.c (vax_register_name): Remove prototype.
5866 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5867 (vax_register_byte, vax_register_raw_size,
5868 vax_register_virtual_size, vax_register_virtual_type): Remove
5870 (vax_register_type): New function.
5871 (vax_breakpoint_from_pc): Reorganize.
5872 (vax_gdbarch_init): Set register_type. Don't set
5873 deprecated_register_size, deprecated_register_bytes,
5874 deprecated_register_byte, deprecated_register_raw_size,
5875 deprecated_max_register_raw_size,
5876 deprecated_register_virtual_size,
5877 deprecated_max_register_virtual_size and
5878 deprecated_register_virtual_type. Add comment on stack direction.
5880 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5882 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5883 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5884 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5886 2004-04-10 Randolph Chung <tausq@debian.org>
5888 * MAINTAINERS (write after approval): Add myself.
5890 2004-04-07 Randolph Chung <tausq@debian.org>
5892 * hppa-tdep.c (hppa_inner_than): Remove.
5893 (is_pa_2): Remove unused static variable.
5894 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5896 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5898 * language.h (language_defn): Add new la_post_parser field.
5899 * parser-defs.h (null_post_parser): New declaration (default for
5902 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5903 insert call to that function.
5904 (parse_exp_in_context): New function, including code formerly in
5905 parse_exp_1. Calls language-dependent post-parser after
5907 (parse_expression_in_context): New exported function.
5908 (null_post_parser): New definition.
5909 * expression.h (parse_expression_in_context): Add declaration.
5911 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5912 * c-lang.c (c_language_defn): Ditto.
5913 (cplus_language_defn): Ditto.
5914 (asm_language_defn): Ditto.
5915 (minimal_language_defn): Ditto.
5916 * f-lang.c (f_language_defn): Ditto.
5917 * jv-lang.c (java_language_defn): Ditto.
5918 * language.c (unknown_language_defn): Ditto.
5919 (auto_language_defn): Ditto.
5920 (local_language_defn): Ditto.
5921 * m2-lang.c (m2_language_defn): Ditto.
5922 * scm-lang.c (scm_language_defn): Ditto.
5923 * obj-lang.c (objc_language_defn): Ditto.
5925 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5927 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5928 (amd64nbsd_mcontext_addr): New function.
5929 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5930 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5931 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5933 * corelow.c (core_xfer_partial): Fix coding standards violation.
5934 Add support for TARGET_OBJECT_WCOOKIE.
5936 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5937 deprecated_pc_in_sigtramp.
5938 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5939 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5940 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5941 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5942 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5943 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5944 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5946 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5947 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5950 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5951 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5952 (amd64_collect_fxsave): Likewise.
5954 * i386-sol2-tdep.c: Include "gdb_string.h".
5955 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5957 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5959 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5961 * i386-sol2-tdep.c: Include "solib-svr4.h".
5962 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5963 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5964 * config/i386/tm-i386sol2.h: Include :solib.h".
5965 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5966 solib-svr4.o and solib-legacy.o.
5967 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5970 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5972 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5973 whether a register is supplied by PTRACE_GETFPREGS.
5974 (store_inferior_registers): Likewise.
5975 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5976 whether a register is supplied by PT_GETFPREGS.
5977 (store_inferior_registers): Likewise.
5979 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5980 * config/i386/linux64.mt (TDEPFILES): Likewise.
5982 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5984 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5985 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5986 the program counter is in the range specified by `struct
5988 * amd64-linux-tdep.c: Include "symtab.h".
5989 (amd64_linux_pc_in_sigtramp): Remove function.
5990 (amd64_linux_sigtramp_p): New function.
5991 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5992 deprecated_pc_in_sigtramp.
5993 * amd64nbsd-tdep.c: Include "symtab.h".
5994 (amd64nbsd_sigtramp_p): New function.
5995 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5996 deprecated_pc_in_sigtramp.
5997 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5999 (amd64obsd_pc_in_sigtramp): Remove function.
6000 (amd64obsd_sigtramp_p): New function.
6001 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6002 deprecated_pc_in_sigtramp.
6003 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6004 (i386bsd_pc_ins_sigtramp): Remove prototype.
6005 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6006 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6007 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6008 the program counter is in the range specified by `struct
6010 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6011 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6012 (i386_go32_pc_in_sigtramp): Remove function.
6013 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6014 Initialize TDEP->sigtramp_p.
6015 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6016 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6017 deprecated_pc_in_sigtramp.
6018 * i386-linux-tdep.c: Adjust comments.
6019 (i386_linux_pc_in_sigtramp): Remove function.
6020 (i386_linux_sigtramp_p): New function.
6021 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6022 deprecated_pc_in_sigtramp.
6023 * i386-nto-tdep.c: Update copyright year.
6024 (i386nto_pc_in_sigtramp): Remove function.
6025 (i386nto_sigtramp_p): New function.
6026 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6028 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6029 deprecated_pc_in_sigtramp.
6030 * i386-sol2-tdep.c: Update copyright year.
6031 (i386_sol2_pc_in_sigtramp): Remove function.
6032 (i386_sol2_sigtramp_p): New function.
6033 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6034 deprecated_pc_in_sigtramp.
6035 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6036 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6037 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6038 deprecated_sigtramp_start and deprecated_sigtramp_end.
6039 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6040 (i386nbsd_pc_in_sigtramp): Remove function.
6041 (i386nbsd_sigtramp_p): New function.
6042 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6043 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6044 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6045 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6046 (i386obsd_pc_in_sigtramp): Remove function.
6047 (i386obsd_sigtramp_p): New function.
6048 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6050 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6051 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6053 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6054 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6057 * config/i386/i386aout.mt: Remove file.
6059 * configure.tgt: Remove i[34567]86-*-go32*,
6060 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6061 and i[34567]86-*-isc*. Set gdb_target to i386 for
6062 i[34567]86-*-netware* and i[34567]86-*-*.
6063 * config/i386/i386.mt: New file.
6064 * config/i386/embed.mt: Remove file.
6065 * config/i386/go32.mt: Remove file.
6066 * config/i386/i386nw.mt: Remove file.
6067 * config/i386/i386v.mt: Remove file.
6068 * config/i386/tm-go32.h: Remove file.
6070 * tui/tui-hooks.c: Include "readline/readline.h" after
6071 "gdb_curses.h" instead of before.
6072 * tui/tui-io.c: Likewise.
6074 * tui/tui.c: Fix typo in comment.
6076 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6078 2004-04-08 Andrew Cagney <cagney@redhat.com>
6080 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6081 (deprecated_exception_support_initialized): Declare.
6082 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6083 (initialize_hp_cxx_exception_support)
6084 (child_enable_exception_callback): Update.
6085 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6086 (deprecated_exception_support_initialized): Rename
6087 deprecated_exception_catchpoints_are_fragile and
6088 deprecated_exception_support_initialized.
6089 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6091 * symtab.c (deprecated_hp_som_som_object_present): Rename
6092 hp_som_som_object_present.
6093 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6094 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6095 Update. Delete extern declaration.
6096 * valops.c (hp_som_som_object_present): Ditto.
6097 * parse.c (deprecated_hp_som_som_object_present)
6098 (parse_nested_classes_for_hpacc): Ditto.
6099 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6100 * hppa-hpux-tdep.c (hp_som_som_object_present)
6101 (initialize_hp_cxx_exception_support): Ditto.
6102 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6103 * cp-valprint.c (hp_som_som_object_present)
6104 (cp_print_class_method): Ditto.
6105 * c-typeprint.c (hp_som_som_object_present):
6106 (c_type_print_base): Ditto.
6107 * c-exp.y (hp_som_som_object_present): Ditto.
6109 2004-04-08 Andrew Cagney <cagney@redhat.com>
6111 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6112 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6113 (frame_unwind_find_by_frame): Re-implement the unwind code so
6114 that it can both prepend and append sniffers. Replace
6115 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6116 * tramp-frame.c (tramp_frame_append): Use
6117 frame_unwind_prepend_unwinder.
6118 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6119 frame_unwind_register_unwinder.
6120 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6122 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6123 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6124 (mips_linux_init_abi): Update.
6126 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6128 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6129 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6132 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6134 * ia64-tdep.c (elf.h): Don't include.
6135 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6137 2004-04-07 Jason Molenda (jmolenda@apple.com)
6139 * frame.h: Typeo corrections in comments.
6141 2004-04-07 Jim Blandy <jimb@redhat.com>
6143 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6146 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6148 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6149 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6150 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6151 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6153 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6155 * config/sparc/tm-sol2.h: Update copyright year. Include
6158 * sparc-sol2-tdep.c: Update copyright year. Include
6160 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6161 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6162 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6163 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6166 2004-04-06 Andrew Cagney <cagney@redhat.com>
6168 * infttrace.c: Include "infttrace.h".
6169 * infttrace.h: Include "target.h".
6170 * Makefile.in (infttrace_h): Update.
6171 (infttrace.o): Update.
6173 2004-04-06 Andrew Cagney <cagney@redhat.com>
6175 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6176 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6177 move extern declarations from here ...
6178 * infttrace.h: ... to here.
6179 * Makefile.in (hppah-nat.o): Update dependencies.
6181 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6182 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6183 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6184 (hppa_breakpoint_from_pc): Delete.
6186 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6188 2004-04-05 Andrew Cagney <cagney@redhat.com>
6190 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6191 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6194 2004-04-06 Randolph Chung <tausq@debian.org>
6196 Committed by Andrew Cagney (mechanical change).
6197 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6198 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6199 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6200 child_enable_exception_callback, current_ex_event,
6201 null_symtab_and_line, child_get_current_exception_event,
6202 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6203 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6204 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6205 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6206 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6207 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6208 Move hpux-specific definitions ...
6209 * hppa-hpux-tdep.c: ... to here.
6211 2004-04-05 Andrew Cagney <cagney@redhat.com>
6213 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6214 skip_prologue_using_sal.
6216 2004-04-05 Andrew Cagney <cagney@redhat.com>
6218 * config/i386/tm-i386.h: Delete file.
6219 * config/i386/tm-vxworks.h: Update copyright, do not include
6221 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6222 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6223 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6224 * config/i386/ncr3000.mt (TM_FILE): Delete.
6225 * config/i386/interix.mt (TM_FILE): Delete.
6226 * config/i386/i386v.mt (TM_FILE): Delete.
6227 * config/i386/i386nw.mt (TM_FILE): Delete.
6228 * config/i386/i386gnu.mt (TM_FILE): Delete.
6229 * config/i386/i386aout.mt (TM_FILE): Delete.
6230 * config/i386/embed.mt (TM_FILE): Delete.
6232 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6234 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6235 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6236 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6237 (accg7_regnum): New constants.
6238 (last_spr_regnum, last_pseudo_regnum): Update.
6239 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6240 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6241 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6243 (frv_register_sim_regno): Update spr_map[].
6245 2004-04-04 Andrew Cagney <cagney@redhat.com>
6247 * config/mips/xm-riscos.h: Delete.
6248 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6249 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6250 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6251 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6252 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6253 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6254 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6255 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6256 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6257 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6258 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6259 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6260 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6261 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6262 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6263 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6264 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6265 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6266 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6267 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6268 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6269 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6270 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6271 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6272 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6273 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6275 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6276 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6277 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6278 * configure.host: Remove m680[01]0-sun-sunos3*,
6279 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6280 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6281 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6282 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6284 * NEWS: Mention removed systems.
6286 2004-04-04 Andrew Cagney <cagney@redhat.com>
6288 GDB 6.1 release created from 6.1 branch.
6290 2004-04-04 Andrew Cagney <cagney@redhat.com>
6292 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6293 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6294 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6296 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6297 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6298 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6300 2004-04-03 Jim Blandy <jimb@redhat.com>
6302 * MAINTAINERS: Chris Faylor has changed employers; add him to
6303 "paper trail" section, and update his E-mail address.
6305 2004-04-03 Andrew Cagney <cagney@redhat.com>
6307 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6308 generic dummy frames.
6309 * dummy-frame.c: Update copyright.
6310 (dummy_frame_sniffer): Delete check for generic dummy frames.
6312 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6313 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6314 (REG_PARM_STACK_SPACE): Delete.
6315 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6316 Inline reference to REG_PARM_STACK_SPACE.
6318 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6319 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6320 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6321 (FRAME_BASE_BEFORE_SIGTRAMP)
6322 (hppa32_hpux_frame_base_before_sigtramp)
6323 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6324 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6325 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6326 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6327 (FRAME_BASE_BEFORE_SIGTRAMP)
6328 (hppa64_hpux_frame_base_before_sigtramp)
6329 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6331 2004-04-03 Andrew Cagney <cagney@redhat.com>
6333 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6335 2004-04-02 Andrew Cagney <cagney@redhat.com>
6337 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6338 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6339 * dummy-frame.h: Delete out-of-date comments.
6340 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6341 * gdbarch.h, gdbarch.c: Re-generate.
6343 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6345 Committed by Andrew Cagney <cagney@redhat.com>.
6346 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6347 into account an instruction saving a register if we have already
6348 seen an earlier instruction saving that same register.
6350 2004-04-02 Andrew Cagney <cagney@redhat.com>
6352 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6353 * gdbarch.h, gdbarch.c: Re-generate.
6354 * frame.c (legacy_get_prev_frame): Delete references to
6355 DEPRECATED_INIT_FRAME_PC_FIRST.
6357 * infrun.c (pc_in_sigtramp): Delete function.
6358 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6361 2004-04-02 Andrew Cagney <cagney@redhat.com>
6363 * infrun.c (handle_step_into_function): Delete code conditional on
6365 (handle_inferior_event, step_over_function): Ditto.
6367 2004-04-02 Andrew Cagney <cagney@redhat.com>
6369 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6370 "previous frame inner to this frame" test.
6372 2004-04-02 Andrew Cagney <cagney@redhat.com>
6374 * frame.c (safe_frame_unwind_memory): New function.
6375 * frame.h (safe_frame_unwind_memory): Declare. Update description
6377 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6378 "next_frame". Use safe_frame_unwind_memory.
6379 (tramp_frame_sniffer): Update call to tramp_frame_start.
6381 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6383 * dwarf2read.c (dwarf2_objfile_data_key): New.
6384 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6385 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6386 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6387 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6388 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6389 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6390 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6392 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6393 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6394 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6395 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6396 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6397 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6399 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6401 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6402 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6403 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6404 (read_partial_die, read_full_die, read_indirect_string)
6405 (dwarf_decode_line_header, dwarf_decode_macros)
6406 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6407 Update uses of removed variables.
6408 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6410 (_initialize_dwarf2_read): New function.
6411 * symfile.h (dwarf2_has_info): Update prototype.
6412 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6413 * elfread.c (elf_symfile_read): Likewise.
6415 2004-04-01 Jim Blandy <jimb@redhat.com>
6417 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6418 function for register numbers on all the rs6000-derived targets.
6419 (rs6000_gdbarch_init): Don't register a separate
6420 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6421 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6424 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6427 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6429 * valarith.c: Update copyright notice.
6430 (value_add): Handle range types.
6432 (value_equal): Ditto.
6433 (value_less): Ditto.
6435 (value_complement): Ditto.
6436 (value_binop): Simplify slightly by using is_integral_type and
6437 eliminiating unnecessary COERCE_ENUMs.
6439 2004-03-31 Andrew Cagney <cagney@redhat.com>
6441 * frame.h (frame_unwind_id): Declare.
6442 * frame.c (frame_unwind_id): New function.
6443 (get_prev_frame_1): New function.
6444 (frame_debug_got_null_frame): New function.
6445 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6446 code proper to prev_frame, update description.
6447 * infrun.c (step_over_function): Use frame_unwind_id.
6449 2004-04-31 J. Brobecker <brobecker@gnat.com>
6451 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6452 (hppa64_push_dummy_call): Likewise.
6454 2004-03-30 Jim Blandy <jimb@redhat.com>
6456 From Ulrich Weigand:
6457 * utils.c (query): Do not use a va_list variable multiple times.
6459 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6461 * Makefile.in (linux_nat_h): Update dependencies.
6462 * configure.in: Check for <gnu/libc-version.h>.
6463 * configure: Regenerate.
6464 * config.in: Regenerate.
6465 * linux-nat.h: Include "target.h". Add waitstatus field to
6467 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6468 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6470 (lin_lwp_handle_extended): New function. Handle clone events.
6471 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6473 (child_wait): Handle clone events.
6474 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6475 * linux-nat.c (linux_enable_event_reporting): Turn on
6476 PTRACE_O_TRACECLONE.
6477 (linux_handle_extended_wait): Handle clone events.
6478 * thread-db.c: Include <gnu/libc-version.h>.
6479 (struct private_thread_info): Add dying flag.
6480 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6482 (attach_thread): Update comments. Handle dying threads.
6483 (detach_thread): Set the dying flag.
6484 (check_event): Always call attach_thread.
6486 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6488 * mips-tdep.c (mips_pdr_data): New.
6489 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6490 (_initialize_mips_tdep): Initialize mips_pdr_data.
6492 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6494 * minsyms.c (install_minimal_symbols): Move dropping leading
6495 char from linkage name from here...
6496 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6497 test for "__gnu_compiled*" symbols.
6499 2004-03-28 Jim Blandy <jimb@redhat.com>
6501 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6502 registers to temp register r0 and byte stores as prologue
6505 2004-03-28 Andrew Cagney <cagney@redhat.com>
6507 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6510 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6512 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6513 and switch the layout to force a display of register window.
6515 2004-02-26 J. Brobecker <brobecker@gnat.com>
6517 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6518 of the INTEGER class.
6520 2004-03-26 Jim Blandy <jimb@redhat.com>
6522 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6523 bytes long on PPC GNU/Linux.
6525 2004-03-26 David Carlton <carlton@kealia.com>
6527 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6529 2004-03-25 Andrew Cagney <cagney@redhat.com>
6531 * PROBLEMS: Add general section titles, remove references to
6534 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6536 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6538 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6539 FP_REGISTER_VIRTUAL_SIZE.
6540 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6541 of DEPRECATED_REGISTER_RAW_SIZE.
6542 (arm_register_type): Add gdbarch argument.
6543 (arm_register_raw_size, arm_register_virtual_size): Delete.
6544 (arm_register_byte, arm_extract_return_value)
6545 (arm_store_return_value, arm_get_longjmp_target): Update references
6546 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6547 (arm_gdbarch_init): Likewise. Don't set
6548 deprecated_register_raw_size, deprecated_register_virtual_size,
6549 deprecated_max_register_raw_size,
6550 deprecated_max_register_virtual_size, or
6551 deprecated_max_register_virtual_type. Do set register_type.
6552 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6553 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6554 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6555 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6556 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6557 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6559 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6560 (remote_rdp_store_register): Likewise.
6562 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6564 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6565 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6566 to after osabi initialization.
6567 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6568 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6570 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6571 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6573 (mips_linux_init_abi): Append signal trampoline unwinders.
6575 2004-03-24 Andrew Cagney <cagney@redhat.com>
6577 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6578 * tramp-frame.c: Include "gdb_assert.h".
6579 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6581 (tramp_frame_append): Validate the tramp frame's instructions.
6582 * Makefile.in (tramp-frame.o): Update dependencies.
6584 2004-03-23 Andrew Cagney <cagney@redhat.com>
6586 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6588 2004-03-23 Andrew Cagney <cagney@redhat.com>
6590 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6591 Nasser as past testsuite/lib/ (and other) maintainers.
6593 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6595 * infcmd.c (attach_command): Reread symbols if we already have
6598 2004-03-23 Andrew Cagney <cagney@redhat.com>
6600 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6602 2004-03-23 Andrew Cagney <cagney@redhat.com>
6604 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6605 * gdbarch.h, gdbarch.c: Re-generate.
6606 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6607 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6608 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6609 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6610 (DEPRECATED_SIGTRAMP_START): Update.
6611 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6612 (DEPRECATED_SIGTRAMP_START): Update.
6613 * blockframe.c (find_pc_sect_partial_function): Update.
6614 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6616 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6618 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6621 2004-03-23 Andrew Cagney <cagney@redhat.com>
6623 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6624 predicate, deprecate.
6625 * gdbarch.h, gdbarch.c: Re-generate.
6626 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6627 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6628 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6629 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6630 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6631 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6632 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6633 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6634 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6635 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6636 * blockframe.c (find_pc_partial_function): Update.
6637 * breakpoint.c (bpstat_what): Update.
6638 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6639 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6640 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6641 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6642 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6643 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6644 * i386-nto-tdep.c (i386nto_init_abi): Update.
6645 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6646 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6647 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6648 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6649 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6650 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6651 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6652 * infrun.c (pc_in_sigtramp): Update.
6653 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6654 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6655 * mips-tdep.c (mips_gdbarch_init): Update.
6656 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6657 * ppc-linux-tdep.c: Update comment.
6658 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6659 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6660 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6661 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6662 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6663 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6664 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6665 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6666 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6667 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6669 2004-03-23 Andrew Cagney <cagney@redhat.com>
6671 * tramp-frame.h, tramp-frame.h: New files.
6672 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6673 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6675 * Makefile.in: Update all dependencies.
6677 2004-03-23 Andrew Cagney <cagney@redhat.com>
6679 * Makefile.in (trad_frame_h): Add $(frame_h).
6680 * trad-frame.h: Update copyright. Include "frame.h".
6681 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6682 (trad_frame_set_id, trad_frame_get_id): Declare.
6683 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6684 * trad-frame.c: Update copyright.
6685 (struct trad_frame_cache): Define.
6686 (trad_frame_cache_zalloc): New function.
6687 (trad_frame_set_id, trad_frame_get_id): New functions.
6688 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6690 2004-03-22 Andrew Cagney <cagney@redhat.com>
6692 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6693 s390_pltstub_unwind_cache.
6694 (s390_stub_frame_unwind_cache): Rename
6695 s390_pltstub_frame_unwind_cache.
6696 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6697 (s390_stub_frame_prev_register): Rename
6698 s390_pltstub_frame_prev_register.
6699 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6700 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6702 From Ulrich Weigand:
6703 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6704 pointer calls like PLT calls.
6706 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6708 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6709 PC rather than the partial function start address. Use the start
6710 address to sanity check the found PDR.
6712 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6714 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6715 linux_handle_extended_wait.
6717 2004-03-22 Andrew Cagney <cagney@redhat.com>
6719 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6722 * frame.h (generic_pop_current_frame): Delete declaration.
6723 (deprecate_pop_dummy_frame): Deprecate
6724 generic_pop_dummy_frame.
6725 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6726 (generic_pop_current_frame): Delete function.
6727 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6728 generic_pop_current_frame.
6729 * v850-tdep.c (v850_pop_frame): Update.
6730 * mcore-tdep.c (mcore_pop_frame): Update.
6731 * sh64-tdep.c (sh64_pop_frame): Update.
6732 * h8300-tdep.c (h8300_pop_frame): Update.
6734 2004-03-22 Andrew Cagney <cagney@redhat.com>
6736 * frame.h (deprecated_pc_in_call_dummy): Rename
6737 generic_pc_in_call_dummy.
6738 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6739 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6740 generic_pc_in_call_dummy.
6741 (pc_in_dummy_frame): Make static.
6742 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6743 * gdbarch.h, gdbarch.c: Re-generate.
6744 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6745 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6746 (legacy_get_prev_frame): Ditto.
6747 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6750 2004-03-21 Andrew Cagney <cagney@redhat.com>
6752 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6753 declaration and out-of-date comment.
6754 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6756 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6757 deprecated_pc_in_call_dummy.
6759 * infrun.c (handle_inferior_event): For non legacy frames, use the
6760 frame ID and frame type to identify a signal trampoline. Update
6763 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6765 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6766 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6768 2004-03-21 Andrew Cagney <cagney@redhat.com>
6770 * frame-unwind.h: Update copyright.
6771 (struct frame_data): Add opaque declaration.
6772 (frame_sniffer_ftype): Declare.
6773 (struct frame_unwind): Add "unwind_data" and "sniffer".
6774 (frame_unwind_register_unwinder): Declare.
6775 (frame_unwind_find_by_frame): Add parameter "this_cache".
6776 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6777 (legacy_get_prev_frame, legacy_get_prev_frame)
6778 (get_frame_type): Pass the prologue_cache to
6779 frame_unwind_find_by_frame.
6780 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6782 (frame_unwind_register_unwinder): New function.
6783 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6785 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6787 * bcache.c (print_percentage): Use floating point to avoid
6788 incorrect results when portion*100 overflows.
6790 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6792 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6793 (ppc_linux_init_extra_frame_info)
6794 (ppc_linux_frameless_function_invocation)
6795 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6796 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6797 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6798 (rs6000_frame_chain): Delete declarations.
6799 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6800 (ppc_linux_init_extra_frame_info)
6801 (ppc_linux_frameless_function_invocation)
6802 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6803 (ppc_linux_init_abi): Remove registration of above deleted functions.
6804 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6805 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6806 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6807 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6808 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6809 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6810 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6811 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6812 frame management for all OSABIs.
6814 2004-03-19 Andrew Cagney <cagney@redhat.com>
6816 Committed by Kevin Buettner <kevinb@redhat.com>.
6818 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6820 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6821 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6822 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6823 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6824 unwinders. #ifdef legacy frame code.
6825 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6827 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6828 (struct rs6000_frame_cache, rs6000_frame_cache)
6829 (rs6000_frame_this_id, rs6000_frame_prev_register)
6830 (rs6000_frame_sniffer, rs6000_frame_unwind)
6831 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6832 (rs6000_frame_base): Implement a traditional frame unwinder.
6833 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6836 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6838 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6839 breakpoint address for watchpoints or the catch eventpoints.
6840 Add new paramter ``bptype''. Adjust all callers.
6842 2004-03-19 Andrew Cagney <cagney@redhat.com>
6844 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6846 * PROBLEMS: Delete note that ARM does not use frame code, problem
6849 2004-03-18 Andrew Cagney <cagney@redhat.com>
6851 * stack.c (return_command): Delete code wrapped in #ifdef
6852 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6854 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6856 2004-03-18 Andrew Cagney <cagney@redhat.com>
6858 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6859 DEPRECATED_IN_SIGTRAMP.
6860 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6861 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6862 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6863 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6864 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6865 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6866 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6867 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6868 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6869 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6871 2004-03-18 Andrew Cagney <cagney@redhat.com>
6873 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6874 (struct frame_base_table_entry): Define.
6875 (struct frame_base_table): Re-implement as a linked list.
6876 (frame_base_init): Re-implement.
6877 (frame_base_table): Delete function.
6878 (append_predicate): Delete function.
6879 (frame_base_append_sniffer): Update.
6880 (frame_base_set_default): Update.
6881 (frame_base_find_by_frame): Update.
6882 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6883 * Makefile.in (frame-base.o): Update dependencies.
6885 2004-03-17 Andrew Cagney <cagney@redhat.com>
6887 * frame.c (legacy_get_prev_frame): Pass correct frame to
6888 frame_unwind_find_by_frame.
6890 2004-03-17 David Carlton <carlton@kealia.com>
6892 * NEWS: Mention C++ nested types and namespaces
6894 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6896 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6897 and "Regressions since gdb 5.3.". Add known regressions since
6900 2004-03-16 David Carlton <carlton@kealia.com>
6902 * dwarf2read.c (process_structure_scope): Process children even
6903 when we're a declaration.
6905 2004-03-16 Andrew Cagney <cagney@redhat.com>
6907 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6908 * blockframe.c (find_pc_partial_function)
6909 (find_pc_sect_partial_function): Merge into a single
6910 find_pc_partial_function.
6912 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6914 * i386bsd-nat.c: s/regno/regnum/g.
6915 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6917 (store_inferior_registers): Likewise.
6919 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6921 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6923 (store_inferior_registers): Call i387_collect_fsave and
6924 i387_collect_fxsave instead of i387_fill_fsave and
6927 2004-03-15 Andrew Cagney <cagney@redhat.com>
6929 * Makefile.in (frame-unwind.o): Update dependencies.
6930 * frame-unwind.c: Include "gdb_obstack.h".
6931 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6933 (append_predicate): Delete function.
6934 (struct frame_unwind_table_entry): New structure.
6935 (struct frame_unwind_table): Replace "sniffer" with "head" and
6937 (frame_unwind_append_sniffer): Update.
6938 (frame_unwind_find_by_frame): Update.
6939 (_initialize_frame_unwind): Registe frame_unwind_init using
6940 gdbarch_data_register_pre_init.
6942 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6944 * i386bsd-nat.c: Update copyright year.
6945 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6946 define unconditionally.
6948 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6950 * i387-tdep.h (i387_collect_fsave): New prototype.
6951 * i387-tdep.c (i387_collect_fsave): New function containing most
6952 of the code from i387_fill_fsave.
6953 (i387_fill_fsave): Call i387_collect_fsave.
6955 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6957 * i386-linux-tdep.c: Update copyright year.
6958 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6959 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6960 svr4_ilp32_link_map_offsets instead of
6961 i386_linux_svr4_fetch_link_map_offsets.
6963 2004-03-15 David Carlton <carlton@kealia.com>
6965 Fix for PR c++/1553:
6966 * dwarf2read.c (read_structure_type): Determine type name by
6967 calling determine_class_name.
6968 (determine_class_name): New.
6969 (determine_prefix): Look at TYPE_TAG_NAME and call
6970 determine_class_name when appropriate.
6971 (determine_prefix_aux, class_name): Delete.
6972 (read_namespace): Set die->type.
6974 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6976 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6977 unused macro definition. The definition in target.h (or perhaps
6978 elsewhere) takes precedence.
6980 2004-03-15 Andrew Cagney <cagney@redhat.com>
6982 * ppc-tdep.h: Update copyright.
6983 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6984 function signatures to match "regsets.h".
6985 * ppc-linux-tdep.c: Include "regset.h".
6986 (ELF_GREGSET_SIZE): Delete.
6987 (right_supply_register): New function.
6988 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6989 using right_supply_register.
6990 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6992 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6993 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6994 (_initialize_ppc_linux_tdep): Do not register
6995 ppc_linux_regset_core_fns.
6996 (ppc_linux_regset_from_core_section): Replace
6997 fetch_core_registers.
6998 (ppc_linux_regset_core_fns): Delete.
6999 * ppc-linux-nat.c: (right_fill_reg): New function.
7000 (supply_gregset): Update call to ppc_linux_supply_gregset.
7001 (fill_gregset): Clear the register set, use right_fill_reg.
7002 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7003 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7005 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7008 2004-03-15 Andrew Cagney <cagney@redhat.com>
7010 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7011 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7012 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7013 and register_gdbarch_data.
7014 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7015 (struct gdbarch_data): Replace "init" by "pre_init" and
7017 * gdbarch.h, gdbarch.c: Re-generate.
7018 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7019 with"obstack", use OBSTACK_ZALLOC.
7020 (dwarf2_frame_ops): Delete.
7021 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7022 (dwarf2_frame_init_reg): Use gdbarch_data.
7023 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7024 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7025 (_initialize_svr4_solib): Update.
7026 * user-regs.c (_initialize_user_regs): Update.
7027 * reggroups.c (_initialize_reggroup): Update.
7028 * regcache.c (_initialize_regcache): Update.
7029 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7030 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7031 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7032 * frame-unwind.c (_initialize_frame_unwind): Update.
7033 * frame-base.c (_initialize_frame_base): Update.
7034 * user-regs.c (user_reg_add): Update.
7035 * reggroups.c (reggroup_add): Update.
7036 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7037 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7038 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7039 * frame-base.c (frame_base_table): Update.
7040 * remote.c (_initialize_remote): Update.
7041 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7043 2004-03-15 Andrew Cagney <cagney@redhat.com>
7045 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7047 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7049 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7050 * frv-linux-tdep.c: New file.
7051 * frv-tdep.c (struct gdbarch_tdep): Add new field
7052 ``sigcontext_reg_addr''.
7053 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7054 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7055 (frv_sigramp_frame_sniffer): New functions.
7056 (frv_sigtramp_frame_unwind): New static global.
7057 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7059 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7060 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7062 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7064 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7065 but not via a call to error(), when unable to read memory.
7067 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7069 * frv-tdep.c (frv_call_dummy_words): Delete.
7070 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7072 2004-03-15 Andrew Cagney <cagney@redhat.com>
7074 * infrun.c (handle_step_into_function, step_over_function): Only
7075 update and use STEP_FRAME_ID when the system is using legacy
7076 frames. Update comments.
7078 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7080 * amd64-linux-tdep.h: Remove file.
7081 * amd64-linux-tdep.c: Don't include "inferior.h" and
7082 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7083 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7084 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7085 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7086 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7088 (user_to_gdb_regmap): Remove variable.
7089 (amd64_linux_gregset_reg_offset): New variable.
7090 (amd64_core_fns): Remove variable.
7091 (fetch_core_registers): Remove function.
7092 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7094 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7095 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7096 * Makefile.in (amd64_linux_tdep_h): Remove.
7097 (amd64-linux-nat.o): Update dependencies.
7098 (amd64-linux-tdep.o): Update dependencies.
7100 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7101 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7103 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7105 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7106 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7108 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7110 * dwarf2read.c (read_structure_type): Rename from
7111 read_structure_scope. Don't create a symbol or call process_die.
7112 Return immediately if die->type is set. Call read_type_die before
7113 dwarf2_add_member_fn.
7114 (process_structure_scope): New function.
7115 (read_enumeration_type, process_enumeration_scope): New functions,
7116 broken out from read_enumeration. Don't create the enumeration
7117 type if it has already been created.
7118 (read_enumeration): Removed.
7119 (process_die): Call read_structure_type, process_structure_scope,
7120 read_enumeration_type, and process_enumeration_scope. Just call
7121 new_symbol for base and subrange types. Add a comment about other
7123 (read_type_die): Call read_enumeration_type.
7124 (add_partial_structure, new_symbol): Update comments.
7126 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7128 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7130 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7132 * tui/tui-win.h (tui_get_cmd_list): Declare.
7133 * tui/tui-win.c (tui_command): New function.
7134 (tui_get_cmd_list): New function.
7135 (_initialize_tui_win): Moved initialization of tui command in
7138 * tui/tui-data.c (init_content_element): Setup new data members.
7139 (init_win_info): Likewise.
7140 (free_content_elements): Free it.
7141 * tui/tui-data.h (struct tui_data_element): Store the register
7143 (struct tui_data_info): Keep the current register group.
7145 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7147 * tui/tui-regs.h (tui_show_registers): Update prototype.
7148 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7149 (tui_resize_all): No need to calculate anything for register window.
7150 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7151 (tui_set_register_element, tui_set_general_regs_content): Remove.
7152 (tui_set_special_regs_content): Remove.
7153 (tui_set_general_and_special_regs_content): Remove.
7154 (tui_set_float_regs_content): Remove.
7155 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7156 (tui_set_regs_content): Remove.
7157 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7158 (tui_v_show_registers_command_support): Remove.
7159 (tui_show_registers): Use a reggroup to specify the registers to show.
7160 (tui_show_register_group): New function.
7161 (tui_display_registers_from): Compute the layout of register window
7162 and refresh with new API; be sure to delete old register windows.
7163 (tui_check_register_values): Update to use tui_get_register and
7165 (tui_display_register): Just refresh the register window part.
7166 (tui_register_format): Format registers and save in tui_data_element.
7167 (tui_get_register): New to combine tui_reg_value_has_changed and
7168 tui_get_register_raw_value; fix to use the new gdb API.
7169 (tui_show_float_command): Renamed tui_reg_float_command.
7170 (tui_show_general_command): Renamed tui_reg_general_command.
7171 (tui_show_special_command): Renamed tui_reg_system_command.
7172 (_initialize_tui_regs): Remove unused commands.
7174 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7176 * NEWS (New native configurations): Mention OpenBSD/amd64.
7178 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7179 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7181 * config/i386/nm-fbsd64.h: Likewise.
7182 * config/i386/nm-obsd.h: Likewise.
7183 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7184 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7186 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7188 * frv-tdep.c (set_variant_scratch_registers): New function.
7189 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7192 From Richard Sandiford <rsandifo@redhat.com>:
7193 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7195 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7197 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7198 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7199 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7200 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7201 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7202 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7203 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7204 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7205 definitions from frv-tdep.c to frv-tdep.h.
7207 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7209 Add shared library support for FR-V FDPIC ABI:
7210 * Makefile.in (solib-frv.o): Add dependencies.
7211 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7213 (frv_push_dummy_call): Add support for FDPIC ABI.
7214 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7216 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7217 (frv_fdpic_find_canonical_descriptor): Declare.
7218 * solib-frv.c: New file.
7219 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7220 * config/frv/tm-frv.h (solib.h): Include.
7222 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7224 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7225 (frv-tdep.o): Update dependencies.
7226 * frv-tdep.h: New file.
7227 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7228 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7230 (struct gdbarch_tdep): Add new member ``frv_abi''.
7231 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7233 (new_variant): Set ``frv_abi'' field.
7234 (gdb_arch_init): Detect FDPIC executables.
7236 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7238 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7241 2004-03-11 Andrew Cagney <cagney@redhat.com>
7243 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7245 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7247 * solist.h (master_so_list): New function.
7248 * solib.c (master_so_list): Likewise.
7249 * solib-svr4.c (enable_break): Iterate over so_list entries
7250 obtained from master list instead of entries obtained directly
7251 via svr4_current_sos().
7253 2004-03-10 Ben Elliston <bje@gnu.org>
7255 * MAINTAINERS: Update my mail address.
7257 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7259 * remote-m32r-sdi.c: Support hardware watchpoint.
7261 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7263 * user-regs.c: Update copyright years.
7264 (struct user_regs): Rename to gdb_user_regs.
7265 (append_user_reg, builtin_user_regs, user_regs_init)
7266 (user_reg_add, user_reg_map_name_to_regnum)
7267 (usernum_to_user_reg): Update.
7269 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7271 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7272 (skip_children): New functions.
7273 (locate_pdi_sibling): Call skip_children.
7275 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7277 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7278 * gdbtypes.c (check_typedef): Update comments.
7280 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7282 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7283 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7284 pointer. Update comment about comp_unit_head.
7285 (struct abbrev_info): Shorten two int flags.
7286 (dwarf_alloc_abbrev): Take a CU argument.
7287 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7288 each time through the loop. Update cleanup argument.
7289 (psymtab_to_symtab_1): Update cleanup call.
7290 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7292 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7293 Just call obstack_free and clear the pointer.
7295 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7297 * infrun.c (handle_inferior_event): Remove short-circuit code for
7298 events in a different thread.
7300 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7302 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7303 print the whole transfer.
7304 (initialize_targets): Update description of "set debug target".
7306 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7308 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7310 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7312 * MAINTAINERS (write after approval): Add myself.
7314 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7316 * sh-tdep.c (sh_print_registers_info): Use for loop.
7317 Don't skip multiple registers when a float register is encountered.
7319 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7322 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7323 to official SH documentation.
7325 2004-03-07 Andrew Cagney <cagney@redhat.com>
7327 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7330 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7332 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7333 (arm_get_next_pc): Handle BX and BLX.
7335 2004-03-07 Andrew Cagney <cagney@redhat.com>
7337 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7338 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7340 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7341 (hppa_target_read_fp): Delete.
7342 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7343 register_virtual_size, max_register_raw_size,
7344 max_register_virtual_size, register_byte, register_size,
7345 target_read_fp, fp_regnum, and register_bytes. Set register_type
7346 instead of register_virtual_type.
7347 (hppa32_register_type, hppa64_register_type): Replace
7348 hppa32_register_virtual_type and hppa64_register_virtual_type.
7349 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7350 (HPPA_FP_REGNUM): Define.
7352 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7354 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7355 (pa_do_registers_info): Delete.
7356 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7357 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7358 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7360 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7361 GDB_TARGET_IS_HPPA code.
7362 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7363 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7364 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7365 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7366 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7367 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7368 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7369 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7370 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7371 (hppa_frameless_function_invocation, hppa64_store_return_value)
7372 (hppa_store_struct_return, hppa64_extract_return_value)
7373 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7374 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7375 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7376 (find_proc_framesize, deposit_21, restore_pc_queue)
7377 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7378 (rp_saved, pc_in_linker_stub): Delete.
7380 Unconditionally enable 64-bit frame and ABI code.
7381 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7382 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7383 push_dummy_frame, fix_call_dummy, push_arguments,
7384 call_dummy_location, extract_return_value, use_struct_convention,
7385 store_return_value, store_struct_return, saved_pc_after_call,
7386 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7387 frame_chain, frame_chain_valid, frameless_function_invocation,
7388 frame_saved_pc, and pop_frame.
7390 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7391 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7392 (hppa_gdbarch_init): Do not set PC_REGNUM.
7394 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7396 * config/alpha/tm-fbsd.h: Remove file.
7397 * config/alpha/fbsd.mt: Tweak comment.
7398 (TM_FILE): Set to tm-alpha.h.
7400 2004-03-05 Andrew Cagney <cagney@redhat.com>
7402 * infrun.c (step_over_function): When non-legacy code, and no
7403 step_frame_id, use the unwinder to get the caller's frame ID.
7405 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7407 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7408 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7409 bfd_arch_unknown. Adjust comment.
7411 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7412 * i386obsd-tdep.c: Correct spelling in comment.
7413 * i386nbsd-tdep.c: Correct spelling in comment.
7414 * sparc-tdep.c: Correct spelling in comments.
7416 2004-03-05 David Carlton <carlton@kealia.com>
7418 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7421 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7423 * sparc-tdep.c: Fix typo in comment.
7425 2004-03-04 J. Brobecker <brobecker@gnat.com>
7427 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7429 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7431 * dwarf2read.c: Add comment describing memory lifetimes.
7432 (struct dwarf2_pinfo): Update comment.
7433 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7434 (read_enumeration, new_symbol): Don't use obsavestring.
7436 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7438 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7439 instead of amd64_fill_fxsave.
7440 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7441 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7443 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7444 Reorganize code a bit.
7446 2004-03-04 Orjan Friberg <orjanf@axis.com>
7448 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7449 when the frame pointer is pushed. Don't set the frame pointer's
7450 address on the stack unless it's actually located there.
7451 Set the SRP's address on the stack correctly when the PC is still in
7453 (cris_return_value): New function.
7454 (cris_gdbarch_init): Clear deprecated store_return_value,
7455 extract_return_value.
7457 2004-03-02 Jim Blandy <jimb@redhat.com>
7459 * stabsread.c (reg_value_complaint): The maximum register number
7460 is one less than the number of registers.
7462 2004-03-02 Andrew Cagney <cagney@redhat.com>
7464 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7465 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7466 trailing comma and redundant assignment of I386_ST0_REGNUM.
7467 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7468 32-bit segment registers.
7470 2004-03-01 Andrew Cagney <cagney@redhat.com>
7472 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7473 use frame_relative_level and get_next_frame.
7475 2004-02-29 Andrew Cagney <cagney@redhat.com>
7477 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7478 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7479 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7482 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7484 * inflow.c (terminal_inferior): Don't give up the terminal if we
7485 previously couldn't get the inferior's terminal state.
7487 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7489 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7492 2004-02-28 Andrew Cagney <cagney@redhat.com>
7494 * NEWS: Refer to GDB 6.1.
7495 * README: Refer to GDB 6.1.
7496 * PROBLEMS: Refer to GDB 6.1.
7498 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7500 * thread-db.c (disable_thread_signals): Remove unused function.
7502 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7504 * amd64-nat.c: Include "gdb_string.h".
7505 (amd64_collect_native_gregset): Zero-extend the 32-bit
7506 general-purpose registers and %eip.
7508 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7509 * amd64-tdep.c (amd64_collect_fxsave): New function.
7510 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7512 * i387-tdep.h: Update copyright year.
7513 (i387_collect_fxsave): New prototype.
7514 * i387-tdep.c: Update copyright year.
7515 (i387_collect_fxsave): New function containing most of the code
7516 from i387_fill_fxsave.
7517 (i387_fill_fxsave): Call i387_collect_fxsave.
7519 2004-02-28 Andrew Cagney <cagney@redhat.com>
7521 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7522 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7524 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7526 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7528 2004-02-28 Andrew Cagney <cagney@redhat.com>
7530 * utils.c: Use "", instead of <>, to include readline.
7531 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7532 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7533 * source.c, solib.c, exec.c, event-top.c: Ditto.
7534 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7535 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7536 * Makefile.in: Update all dependencies.
7537 (readline_tilde_h, readline_history_h): Define.
7538 (readline_headers): Delete.
7540 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7542 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7543 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7544 "config/i386/tm-lx64.h".
7546 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7547 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7548 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7550 2004-02-28 Andrew Cagney <cagney@redhat.com>
7552 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7554 * breakpoint.c (_initialize_breakpoint): Use
7555 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7556 Add help to show command.
7558 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7560 * i386-nat.c: Reformat to be closer to coding standards.
7561 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7562 `retval'. Make variables `align' and `size' local to while-loop.
7563 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7564 (_initialize_i386_nat): New prototype.
7566 * tui/tui.c: Include <readline/readline.h> instead of
7567 "readline/readline.h". Include it after <term.h> and
7570 2004-02-27 Andrew Cagney <cagney@redhat.com>
7572 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7573 the new frame unwind code.
7574 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7575 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7578 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7579 "return_value" and "push_dummy_call".
7580 (hppa32_use_struct_convention): Delete unused function.
7581 (hppa32_store_return_value): Delete unused function.
7582 (hppa32_extract_return_value): Delete unused function.
7583 (hppa32_stack_align): Delete function.
7585 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7587 * coffread.c (enter_linenos): Don't let rawptr reference memory
7588 outside linetab[]'s limits.
7590 2004-02-27 Andrew Cagney <cagney@redhat.com>
7592 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7593 inferior stack space - the stack needs to grow upwards.
7594 (hppa32_frame_align): New function.
7595 (hppa64_frame_align): Replace hppa_frame_align.
7596 (hppa_gdbarch_init): Update.
7598 2004-02-26 Orjan Friberg <orjanf@axis.com>
7600 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7601 (dwarf2-frame.h): Include.
7602 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7603 Remove static variables related to ABI setting.
7604 (struct gdbarch_tdep): Remove cris_abi member.
7605 (struct frame_extra_info): Remove.
7606 (cris_unwind_cache, stack_item): New structs.
7607 (cris_frame_unwind, cris_frame_base): New variables.
7608 (push_stack_item, pop_stack_item)
7609 (cris_frame_unwind_cache, cris_frame_this_id)
7610 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7611 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7612 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7613 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7614 (cris_reg_struct_has_addr): New functions.
7615 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7616 (cris_frame_saved_pc, cris_saved_pc_after_call,
7617 (cris_store_struct_return, cris_frameless_function_invocation)
7618 (cris_pop_frame, cris_skip_prologue_main)
7619 (cris_abi_original_store_return_value)
7620 (cris_abi_v2_store_return_value)
7621 (cris_abi_original_extract_return_value)
7622 (cris_abi_v2_extract_return_value)
7623 (cris_abi_original_reg_struct_has_addr)
7624 (cris_abi_v2_reg_struct_has_addr)
7625 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7626 (cris_push_return_address, cris_abi_update): Remove.
7627 (_initialize_cris_tdep): Remove ABI command.
7628 (cris_dump_tdep): Ditto.
7629 (cris_gdbarch_init): Remove ABI command.
7630 Set store_return_value, extract_return_value, push_dummy_code,
7631 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7632 frame_unwind_append_sniffer, frame_base_set_default.
7633 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7634 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7635 sizeof_call_dummy_words, get_saved_register, push_return_address,
7636 pop_frame, store_struct_return, frame_init_saved_regs,
7637 init_extra_frame_info, frameless_function_invocation, frame_chain,
7638 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7641 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7643 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7644 * valprint.c (print_hex_chars): Change from static to external.
7645 (print_char_chars): New function.
7646 * printcmd.c (print_scalar_formatted): For integer and enum types
7647 that are longer than LONGEST, perform processing via appropriate
7648 print_*_chars routines.
7650 2004-02-26 Andrew Cagney <cagney@redhat.com>
7652 * Makefile.in: Update dependencies.
7653 Changes from Ulrich Weigand,
7654 * s390-tdep.c: Include "dwarf2-frame.h".
7655 (s390_dwarf2_frame_init_reg): New function.
7656 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7657 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7659 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7661 * breakpoint.c (pending_break_support): New setting variable.
7662 (break_command_1): Account for pending_break_support setting
7663 when creating pending breakpoints.
7664 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7665 (_initialize_breakpoint): Add "set breakpoint pending" and
7666 "show breakpoint pending" commands.
7668 2004-02-26 Andrew Cagney <cagney@redhat.com>
7671 * charset.c (backslashable, backslashed, represented): Remove 'e'
7672 from list of escaped characters, not part of ISO-C.
7674 2004-02-25 J. Brobecker <brobecker@gnat.com>
7676 From Peter Schauer <schauer@pdf.de>:
7677 * tui/tui.c: Move system header includes after local includes.
7678 Fixes a build failure on solaris systems.
7680 2004-02-25 J. Brobecker <brobecker@gnat.com>
7682 * configure.in: Refine the previous change.
7683 * configure: Regenerate.
7685 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7687 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7688 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7689 "amd64-tdep.h" instead of "x86-64-tdep.h".
7690 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7691 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7692 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7693 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7694 and "x86-64-tdep.c".
7695 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7696 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7697 and "x86-64-tdep.c".
7698 * amd64bsd-nat.c: Update copyright year.
7699 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7700 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7702 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7704 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7706 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7708 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7710 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7712 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7713 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7714 * Makefile.in (amd64_linux_tdep_h): Renamed from
7715 x86_64_linux_tdep_h.
7716 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7717 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7718 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7719 (amd64obsd-tdep.o): Update dependencies.
7720 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7722 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7724 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7725 amd64-linux-nat.c amd64-linux-tdep.c.
7726 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7727 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7728 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7729 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7730 amd64-tdep.o and amd64-linux-tdep.o.
7731 (TM_FILE): Set to tm-linux64.h.
7732 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7733 (NAT_FILE): Set to nm-linux64.h.
7734 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7735 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7737 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7739 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7742 2004-02-25 Roland McGrath <roland@redhat.com>
7744 * remote.c (remote_protocol_qPart_auxv): New variable.
7745 (init_all_packet_configs): Initialize it.
7746 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7747 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7748 (show_remote_cmd): Call it.
7749 (_initialize_remote): Initialize commands.
7750 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7751 service TARGET_OBJECT_AUXV requests.
7753 2004-02-25 J. Brobecker <brobecker@gnat.com>
7755 * configure.in: Make sure that the wborder function is available.
7756 Otherwise, search for it in the cur_colr library.
7757 * configure: Regenerate.
7759 2004-02-25 Andrew Cagney <cagney@redhat.com>
7761 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7763 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7765 * config/i386/tm-x86-64linux.h: Tweak comments.
7767 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7769 * MAINTAINERS: Add self to write-after-approval list.
7771 2004-02-25 Andrew Cagney <cagney@redhat.com>
7773 PR cli/1566. Problem found, and fix suggested by David Allan.
7774 * cli/cli-script.c (execute_control_command): Unconditionally
7775 install a cleanup. Default "ret" to "invalid_control". Use
7776 "break" instead of "return" to escape from the switch.
7778 2004-02-24 J. Brobecker <brobecker@gnat.com>
7780 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7781 with the lines macro defined in term.h on AiX.
7782 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7783 a collision with the label_width macro defined in term.h on AiX.
7785 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7787 Committed by Kevin Buettner <kevinb@redhat.com>.
7789 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7790 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7791 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7792 instead of ia64_write_pc().
7793 * ia64-linux-tdep.c (regcache.h): Include.
7794 (ia64_linux_write_pc): New function.
7796 2004-02-23 Roland McGrath <roland@redhat.com>
7798 * auxv.c (info_auxv_command): Fix typos in error messages.
7800 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7802 * x86-64-tdep.h: Tweak comment.
7803 (enum amd64_regnum): New.
7804 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7805 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7806 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7807 (X86_64_XMM1_REGNUM): Removed.
7808 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7809 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7810 prototypes for renamed functions.
7811 * x86-64-tdep.c: Fix typo.
7812 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7814 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7815 Use constants from `enum amd64_regnum' for register numbers.
7816 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7817 (amd64_analyze_prologue, amd64_frame_cache,
7818 amd64_sigtramp_frame_cache): Use constants from `enum
7819 amd64_regnum' for register numbers.
7820 (amd64_supply_fpregset): Adjust for renamed functions.
7821 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7822 `enum amd64_regnum' for register numbers.
7823 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7824 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7825 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7826 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7827 (amd64_linux_fill_gregset): Adjust for renamed macros.
7828 (fetch_core_registers): Adjust for renamed functions.
7829 (amd64_linux_init_abi): Adjust for renamed functions.
7830 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7832 * amd64-nat.c: Adjust for renamed macros.
7833 * amd64bsd-nat.c (fetch_inferior_registers)
7834 (store_inferior_registers): Use constants from `enum amd64_regnum'
7835 for register numbers. Adjust for renamed variables.
7836 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7838 (_initialize_amd64fbsd_nat): Use constants from `enum
7839 amd64_regnum' for register numbers.
7840 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7841 `enum amd64_regnum' for register numbers.
7842 (amd64fbsd_init_abi): Adjust for renamed functions.
7843 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7844 `enum amd64_regnum' for register numbers.
7845 (amd64nbsd_init_abi): Adjust for renamed functions.
7846 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7847 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7848 `enum amd64_regnum' for register numbers.
7849 (amd64obsd_init_abi): Adjust for renamed functions.
7850 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7852 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7854 * breakpoint.c (print_one_breakpoint): Do not output spaces
7855 after printing <PENDING> for a pending breakpoint.
7857 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7859 * printcmd.c (print_scalar_formatted): Initialize val_long
7860 to remove compiler warning message.
7862 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7864 * defs.h (nquery, yquery): New prototypes.
7865 * breakpoint.c (break_command_1): Use new nquery interface.
7866 * utils.c (defaulted_query, nquery, yquery): New functions.
7868 2004-02-23 Andrew Cagney <cagney@redhat.com>
7870 * hppa-tdep.c (hppa_frame_align): New function.
7871 (hppa32_push_dummy_call): New function.
7872 (hppa64_push_dummy_call): New function.
7873 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7876 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7877 FIX_CALL_DUMMY when push_dummy_call is available.
7878 (call_function_by_hand, push_dummy_code): Ditto.
7880 2004-02-22 Andrew Cagney <cagney@redhat.com>
7882 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7883 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7884 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7885 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7886 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7887 call_dummy_location to ON_STACK.
7889 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7891 * x86-64-linux-tdep.c: Tweak comment.
7892 (amd64_linux_supply_gregset): Renamed from
7893 x86_64_linux_supply_gresget.
7894 (amd64_linux_fill_gregset): Renamed from
7895 x86_64_linux_fill_gregset.
7896 (fetch_core_registers): Adjust for renamed functions.
7897 (amd64_core_fns): Renamed from x86_64_core_fns.
7898 (amd64_linux_sigtramp_start): Renamed from
7899 x86_64_linux_sigtramp_start.
7900 (amd64_linux_pc_in_sigtramp): Renamed from
7901 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7902 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7903 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7904 (amd64_linux_sigcontext_addr): Renamed from
7905 x86_64_linux_sigcontext_addr.
7906 (amd64_linux_sc_reg_offset): Renamed from
7907 x86_64_linux_sc_reg_offset.
7908 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7909 Adjust for renamed functions and variables.
7910 (_initialize_amd64_linux_tdep): Renamed from
7911 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7913 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7914 Adjust for renamed functions.
7916 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7917 from x86_64_linux_gregset64_reg_offset.
7918 (amd64_linux_gregset32_reg_offset): Rename from
7919 x86_64_linux_gregset64_reg_offset.
7920 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7921 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7922 (amd64_linux_dr_set_control): Renamed from
7923 x86_64_linux_dr_set_control. Adjust for renamed functions.
7924 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7925 Adjust for renamed functions.
7926 (amd64_linux_dr_reset_addr): Renamed from
7927 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7928 (amd64_linux_dr_get_status): Renamed from
7929 x86_64_linux_dr_get_status. Adjust for renamed functions.
7930 (_initialize_amd64_linux_nat): Renamed from
7931 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7933 * config/i386/nm-x86-64linux.h: Update copyright year.
7934 Adjust for renamed functions.
7936 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7937 amd64fbsd_sigtramp_start.
7938 (amd64fbsd_sigtramp_end_addr): Renamed from
7939 amd64fbsd_sigtramp_end.
7940 (amd64fbsd_init_abi): Adjust for renamed variables.
7941 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7943 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7944 amd64fbsd_sigtramp_start.
7945 (amd64fbsd_sigtramp_end_addr): Renamed from
7946 amd64fbsd_sigtramp_end.
7948 2004-02-22 Andrew Cagney <cagney@redhat.com>
7950 * hppa-tdep.c (hppa32_return_value): New function.
7951 (hppa64_return_value): New function.
7952 (hppa_gdbarch_init): Set return_value; keep disabled.
7954 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7955 struct-return and inferior function call methods.
7957 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7959 (struct hppa_frame_cache): Define.
7960 (hppa_frame_cache, hppa_frame_this_id): New functions.
7961 (hppa_frame_prev_register): New function.
7962 (hppa_frame_unwind, hppa_frame_base): New variables.
7963 (hppa_frame_unwind_sniffer): New function.
7964 (hppa_frame_base_address, hppa_unwind_pc): New function.
7965 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7966 sniffer, and frame base sniffer; keep disabled.
7967 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7968 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7970 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7971 to predicates for "seriously old code".
7973 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7976 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7978 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7980 * config/pa/tm-hppa.h: Update copyright.
7981 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7982 (deprecated_init_frame_pc_default): Delete declaration.
7983 (hppa_frame_init_saved_regs): Delete declaration.
7984 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7985 * hppa-tdep.c: Include "arch-utils.h".
7986 (hppa_gdbarch_init): Set deprecated init_frame_pc
7987 and deprecated frame_init_saved_regs.
7988 (hppa_frame_init_saved_regs): Make static.
7990 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7992 Remove old 386BSD support.
7993 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7994 * configure.host: Remove i[34567]86-*-bsd*.
7995 * configure.tgt: Remove i[34567]86-*-bsd*.
7996 * i386b-nat.c: Removed.
7997 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7998 (i386b-nat.o): Remove dependencies.
8000 * config/i386/i386bsd.mh: Removed.
8001 * config/i386/i386bsd.mt: Removed.
8002 * config/i386/nm-i386bsd.h: Removed.
8003 * config/i386/tm-i386bsd.h: Removed.
8004 * config/i386/xm-i386bsd.h: Removed.
8006 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8008 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8009 (amd64fbsd_init_abi): Set link map offsets.
8010 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8011 (amd64nbsd_init_abi): Set link map offsets.
8012 * amd64obsd-tdep.c: Include "solib-svr4.h".
8013 (amd64obsd_init_abi): Set link map offsets.
8014 * i386fbsd-tdep.c: Include "solib-svr4.h".
8015 (i386fbsd_init_abi): Set link map offsets.
8016 * i386nbsd-tdep.c: Include "solib-svr4.h".
8017 (i386nbsdelf_init_abi): Set link map offsets.
8018 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8019 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8020 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8021 solib-legacy.o and core-aout.o. Reformat.
8022 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8023 solib-svr4.o, solib-legacy.o. Reformat.
8024 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8025 * config/i386/nbsdelf.mh: Reformat.
8026 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8027 solib-svr4.o, solib-legacy.o and corelow.o.
8028 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8029 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8030 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8031 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8032 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8033 (TM_FILE): Set to tm-fbsd.h.
8034 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8035 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8037 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8039 (TM_FILE): Set to nm-nbsd.h.
8040 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8041 Simplify shared library support. Don't include "elf/common.h".
8042 (SVR4_SHARED_LIBS): Don't define.
8043 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8045 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8046 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8047 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8048 Don't include "i386/tm-i386.h". Include "solib.h".
8049 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8050 Don't include "i386/tm-i386.h".
8051 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8052 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8053 Include "i386/xm-i386.h".
8054 (HOST_LONG_DOUBLE_FORMAT): Remove.
8056 Fix OpenBSD/i386 sigtramp recognition.
8057 * i386-tdep.h: Update copyright year.
8058 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8059 (i386bsd_sigtramp_end): New prototypes.
8060 (i386fbsd_sigtramp_start_addr): Renamed from
8061 i386fbsd_sigtramp_start.
8062 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8063 (i386obsd_sigtramp_start_addr): Renamed from
8064 i386obsd_sigtramp_start.
8065 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8066 * i386bsd-tdep.c: Update copyright year.
8067 (i386bsd_pc_in_sigtramp): Make public.
8068 * i386fbsd-nat.c: Update copyright year.
8069 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8070 * i386fbsd-tdep.c: Update copyright year.
8071 (i386fbsd_sigtramp_start_addr): Renamed from
8072 i386fbsd_sigtramp_start.
8073 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8074 (i386fbsdaout_init_abi): Adjust for renamed variables.
8075 * i386obsd-nat.c: Update copyright year.
8076 (_initialize_i386obsd_nat): Adjust for renamed variables.
8077 * i386obsd-tdep.c: Include "target.h".
8078 (i386obsd_page_size): New variable.
8079 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8080 (i386obsd_sigtramp_end): New functions.
8081 (i386obsd_sigtramp_start_addr): Renamed from
8082 i386obsd_sigtramp_start.
8083 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8084 (i386obsd_init_abi): Adjust for renamed variables. Set
8085 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8086 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8088 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8089 trampoline change in OpenBSD kernel.
8091 * amd64-nat.c: Update copyright year.
8092 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8093 architecture from REGCACHE.
8095 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8096 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8098 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8100 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8101 i[34567]86-*-openbsd3.[0-3].
8102 * config/i386/obsdaout.mh: New file.
8104 * config/i386/obsd.mh (MH_FLAGS): Remove.
8107 * i386obsd-tdep.c: Update copyright years. Include
8109 (i386obsd_init_abi): Don't set regset_from_core_section here.
8110 (i386obsd_aout_init_abi): New function. Set
8111 regset_from_core_section here.
8112 (i386obsd_elf_init_abi): New function.
8113 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8114 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8115 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8116 (TM_FILE): Set to tm-nbsd.h.
8118 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8121 * solib-svr4.h: Update copyright year.
8122 (svr4_ilp32_fetch_link_map_offsets)
8123 (svr4_lp64_fetch_link_map_offsets): New prototype.
8124 * solib-svr4.c: Update copyright year.
8125 (svr4_ilp32_fetch_link_map_offsets)
8126 (svr4_lp64_fetch_link_map_offsets): New function.
8128 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8130 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8131 to the partial symbol table.
8133 2004-02-20 J. brobecker <brobecker@gnat.com>
8135 * PROBLEMS: Add description of problem documented under gdb/1560.
8137 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8139 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8141 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8143 (amd64obsd_init_abi): Reorder initializations. Use
8144 amd64obsd_r_reg_offset to initialize the general-purpose register
8145 set details. Set regset_from_core_section.
8146 (_initialize_amd64obsd_tdep): Rename from
8147 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8148 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8149 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8151 * NEWS (New native configurations): Mention OpenBSD/alpha.
8152 * configure.tgt: Add alpha*-*-openbsd*.
8153 * configure.host: Add alpha*-*-openbsd*.
8154 * alphanbsd-tdep.c: Update copyright year.
8155 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8157 2004-02-20 Andrew Cagney <cagney@redhat.com>
8160 * configure.tgt: Delete target "none-*-*".
8161 * configure.host: Delete host "none-*-*".
8162 * config/none/none.mh: Delete file.
8163 * config/none/none.mt: Delete file.
8164 * config/none/xm-none.h: Delete file.
8165 * config/none/tm-none.h: Delete file.
8166 * config/none/nm-none.h: Delete file.
8168 2004-02-19 Fred Fish <fnf@redhat.com>
8170 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8171 cache->uses_fp prior to setting it.
8173 2004-02-19 Fred Fish <fnf@redhat.com>
8175 Fix for PR breakpoint/1558.
8176 * sh-tdep.c (IS_JSR): New macro.
8177 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8179 2004-02-19 Jim Blandy <jimb@redhat.com>
8181 * findvar.c (value_from_register): Doc fix.
8183 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8185 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8186 type being greater than sizeof of host's LONGEST. Always use
8187 unpack_long() unless format 'f' chosen.
8189 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8191 Committed by Elena Zannoni <ezannoni@redhat.com>
8193 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8194 contains a symbol wich is the best, non-exact match for the given
8195 pc. Update comments.
8197 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8199 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8200 macro, which was part of the now removed Mach 3 port.
8201 * utils.c (request_quit): Ditto.
8203 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8205 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8206 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8208 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8210 Committed by Mark Kettenis <kettenis@gnu.org>.
8212 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8215 2004-02-18 Andrew Cagney <cagney@redhat.com>
8217 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8218 CONFIG_INSTALL and CONFIG_UNINSTALL.
8219 * configure: Re-generate.
8220 * interps.h (INTERP_TUI): Define.
8221 * Makefile.in: Update dependencies.
8223 (tui-main.o): Specify dependencies.
8224 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8225 * tui/tui-main.c: New file.
8227 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8229 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8230 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8232 * configure.host: Add x86_64-*-openbsd*.
8233 * configure.tgt: Add x86_64-*-openbsd*.
8234 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8236 * tui/tui.c: Don't include <malloc.h>.
8238 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8239 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8242 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8243 static. Remove extraneous whitespace.
8244 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8247 2004-02-17 Jim Blandy <jimb@redhat.com>
8249 * findvar.c (value_from_register): Doc fix.
8251 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8253 Committed by Jim Blandy <jimb@redhat.com>.
8255 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8256 CORE_ADDR as type for selectors. Correct types for GNU run time
8257 message lookup function to use double indirection.
8258 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8259 * objc-lang.h (lookup_child_selector): Adapt prototype.
8261 * s390-nat.c (SUBOFF): New macro.
8262 (supply_gregset, fill_gregset): Use it to handle debugging
8263 of 32-bit exectuables running under a 64-bit kernel.
8264 * s390-tdep.c: Include "solib-svr4.h".
8265 (s390_svr4_fetch_link_map_offset): New function.
8266 (s390x_svr_fetch_link_map_offset): Likewise.
8267 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8268 * Makefile.in (s390-tdep.o): Update dependencies.
8270 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8272 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8273 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8274 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8275 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8276 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8277 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8278 S390_SIGNAL_FRAMESIZE,
8279 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8280 (struct frame_extra_info): Remove.
8281 (s390_memset_extra_info): Remove.
8282 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8283 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8284 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8285 (is_rse): Renamed to ...
8286 (is_rsy): ... this. Support long displacements.
8287 (is_rxe): Renamed to ...
8288 (is_rxy): ... this. Support long displacements.
8289 (compute_x_addr): Support long displacements.
8290 (struct s390_prologue_data): New data type.
8291 (s390_on_stack): Change API to use struct s390_prologue_data.
8292 (s390_store): Reimplement.
8293 (s390_load): New function.
8294 (s390_get_signal_frame_info): Remove.
8295 (s390_get_frame_info): Remove, replace by ...
8296 (s390_analyze_prolog): ... this new function.
8297 (s390_check_function_end): Remove.
8298 (s390_function_start): Remove.
8299 (s390_frameless_function_invokation): Remove.
8300 (s390_is_sigreturn): Remove.
8301 (s390_init_frame_pc_first): Remove.
8302 (s390_init_frame_extra_info): Remove.
8303 (s390_frame_init_saved_regs): Remove.
8304 (s390_frame_saved_pc_nofix): Remove.
8305 (s390_frame_saved_pc): Remove.
8306 (s390_frame_chain): Remove.
8307 (s390_fp_regnum, s390_read_fp): Remove.
8308 (s390_pop_frame_regular, s390_pop_frame): Remove.
8309 (s390_saved_pc_after_call): Remove.
8310 (s390_skip_prologue): Reimplement.
8311 (s390_in_function_epilogue_p): Support long displacements.
8312 (struct s390_unwind_cache): New data structure.
8313 (s390_frame_unwind_cache): New function.
8314 (s390_prologue_frame_unwind_cache): Likewise.
8315 (s390_backchain_frame_unwind_cache): Likewise.
8316 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8317 (s390_frame_unwind): Define.
8318 (s390_frame_sniffer): New function.
8319 (struct s390_pltstub_unwind_cache): New data structure.
8320 (s390_pltstub_frame_unwind_cache): New function.
8321 (s390_pltstub_frame_this_id): Likewise.
8322 (s390_pltstub_frame_prev_register): Likewise.
8323 (s390_pltstub_frame_unwind): Define.
8324 (s390_pltstub_frame_sniffer): New function.
8325 (struct s390_sigtramp_unwind_cache): New data structure.
8326 (s390_sigtramp_frame_unwind_cache): New function.
8327 (s390_sigtramp_frame_this_id): Likewise.
8328 (s390_sigtramp_frame_prev_register): Likewise.
8329 (s390_sigtramp_frame_unwind): Define.
8330 (s390_sigtramp_frame_sniffer): New function.
8331 (s390_frame_base_address, s390_local_base_address): New functions.
8332 (s390_frame_base): Define.
8333 (s390_unwind_pc, s390_unwind_sp): New function.
8334 (s390_push_dummy_call): Use new frame base location.
8335 (s390_unwind_dummy_id): Likewise.
8336 (s390_gdbarch_init): Remove calls to:
8337 set_gdbarch_frameless_function_invocation,
8338 set_gdbarch_deprecated_init_frame_pc,
8339 set_gdbarch_deprecated_frame_chain,
8340 set_gdbarch_deprecated_frame_init_saved_regs,
8341 set_gdbarch_deprecated_pop_frame,
8342 set_gdbarch_deprecated_init_extra_frame_info,
8343 set_gdbarch_deprecated_init_frame_pc_first,
8344 set_gdbarch_deprecated_target_read_fp,
8345 set_gdbarch_deprecated_frame_saved_pc,
8346 set_gdbarch_deprecated_saved_pc_after_call,
8347 set_gdbarch_deprecated_fp_regnum.
8349 set_gdbarch_in_solib_call_trampoline,
8350 frame_unwind_append_sniffer,
8351 frame_base_set_default,
8352 set_gdbarch_unwind_pc,
8353 set_gdbarch_unwind_sp.
8354 * Makefile.in (s390-tdep.o): Update dependencies.
8356 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8357 (S390_STACK_FRAME_OVERHEAD): Remove.
8358 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8359 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8360 (s390_promote_integer_argument): Remove.
8361 (s390_cannot_extract_struct_value_address): Remove.
8362 (s390_use_struct_convention, s390_store_struct_return): Remove.
8363 (s390_extract_return_value, s390_store_return_value): Remove.
8364 (s390_return_value_convention, s390_return_value): New functions.
8365 (is_float_singleton): Handle typedefs.
8366 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8367 Remove, replace by ...
8368 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8369 s390_function_arg_integer): ... these new functions.
8370 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8371 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8372 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8375 set_gdbarch_deprecated_store_struct_return,
8376 set_gdbarch_deprecated_extract_return_value,
8377 set_gdbarch_deprecated_store_return_value,
8378 set_gdbarch_use_struct_convention,
8379 set_gdbarch_extract_struct_value_address,
8380 set_gdbarch_deprecated_pc_in_call_dummy,
8381 set_gdbarch_deprecated_push_arguments,
8382 set_gdbarch_deprecated_save_dummy_frame_tos,
8383 set_gdbarch_deprecated_push_return_address,
8384 set_gdbarch_deprecated_sizeof_call_dummy_words,
8385 set_gdbarch_deprecated_call_dummy_words,
8386 set_gdbarch_deprecated_dummy_write_sp.
8388 set_gdbarch_push_dummy_call,
8389 set_gdbarch_unwind_dummy_id,
8390 set_gdbarch_return_value.
8392 * config/s390/nm-linux.h: Update comments.
8393 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8394 (STOPPED_BY_WATCHPOINT): Redefine.
8395 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8396 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8397 (s390_stopped_by_watchpoint): Likewise.
8398 (watch_area_cnt): Remove.
8399 * s390-nat.c: Update comments.
8400 (watch_area): Remove typedef.
8401 Global replace watch_area by struct watch_area.
8402 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8403 (s390_stopped_by_watchpoint): Remove pid argument,
8404 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8405 (s390_fix_watch_points): Remove pid argument,
8406 use s390_inferior_tid. Recompute area spanned by watchpoints.
8407 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8408 argument. Reimplement.
8410 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8411 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8412 (FETCH_INFERIOR_REGISTERS): Define.
8413 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8415 * config/s390/s390x.mt: Remove.
8416 * config/s390/tm-s390.h: Remove.
8417 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8418 (TARGET_ELF64): Remove.
8419 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8420 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8421 s390*-*-* case; always set gdb_target to s390.
8422 * regformats/reg-s390.dat: Remove control registers.
8423 * regformats/reg-s390x.dat: Likewise.
8424 * s390-tdep.h: New file.
8425 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8426 Include "inferior.h" and "s390-tdep.h".
8427 Remove private definition of offsetof.
8428 (s390_register_u_addr): Remove.
8429 (regmap_gregset, regmap_fpregset): Define.
8430 (supply_gregset, fill_gregset): Reimplement.
8431 (supply_fpregset, fill_fpregset): Likewise.
8432 (s390_inferior_tid): New function.
8433 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8434 (fetch_inferior_registers, store_inferior_registers): Likewise.
8435 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8436 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8437 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8438 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8439 (struct gdbarch_tdep): Define.
8440 (struct s390_register_info): Define.
8441 (s390_register_info): New variable.
8442 (s390_register_name): Reimplement.
8443 (s390_register_type): New function.
8444 (s390_register_raw_size, s390x_register_raw_size): Remove.
8445 (s390_cannot_fetch_register): Remove.
8446 (s390_register_byte): Remove.
8447 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8448 (s390_dwarf_regmap): New variable.
8449 (s390_dwarf_reg_to_regnum): New function.
8450 (s390_stab_reg_to_regnum): Remove.
8451 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8452 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8453 (s390_convert_register_p): Likewise.
8454 (s390_register_to_value, s390_value_to_register): Likewise.
8455 (s390_register_reggroup_p): Likewise.
8456 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8457 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8458 (s390_supply_regset, s390_regset_from_core_section): New functions.
8459 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8460 (S390_FPR_SIZE): Likewise.
8461 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8462 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8463 (S390_NUM_GPRS): Move here from tm-s390.h.
8464 (S390_NUM_FPRS): Likewise.
8465 (s390_in_function_epilogue_p): New function.
8466 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8467 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8468 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8469 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8470 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8472 set_gdbarch_deprecated_max_register_raw_size,
8473 set_gdbarch_deprecated_max_register_virtual_size,
8474 set_gdbarch_deprecated_register_byte,
8475 set_gdbarch_cannot_fetch_register,
8476 set_gdbarch_cannot_store_register,
8477 set_gdbarch_deprecated_register_size,
8478 set_gdbarch_deprecated_register_raw_size,
8479 set_gdbarch_deprecated_register_virtual_size,
8480 set_gdbarch_deprecated_register_virtual_type,
8481 set_gdbarch_deprecated_register_bytes.
8483 set_gdbarch_num_pseudo_regs,
8484 set_gdbarch_register_type,
8485 set_gdbarch_convert_register_p,
8486 set_gdbarch_register_to_value,
8487 set_gdbarch_value_to_register,
8488 set_gdbarch_register_reggroup_p,
8489 set_gdbarch_regset_from_core_section,
8490 set_gdbarch_pseudo_register_read,
8491 set_gdbarch_pseudo_register_write,
8492 set_gdbarch_in_function_epilogue_p.
8493 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8494 (s390_tdep_h): New variable.
8496 2004-02-17 Jim Blandy <jimb@redhat.com>
8498 * findvar.c (value_from_register): If the type has no length, just
8499 return an acceptable value --- don't report an internal error.
8501 * stabsread.c (read_type): If we find any type numbers that are
8502 forward references, complain if the references aren't resolved by
8503 the time we're finished reading.
8504 (cleanup_undefined_types): Make error message more appropriate for
8507 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8509 * Makefile.in (defs_h): Remove dependency on progress_h.
8510 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8512 * main.c (captured_main): Delete use of START_PROGRESS and
8515 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8517 * objfiles.c (terminate_minimal_symbol_table): Add back
8518 initialization of MSYMBOL_TYPE.
8520 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8522 Committed by Andrew Cagney.
8523 * Makefile.in (ia64_tdep_h): New macro.
8524 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8525 (ia64-tdep.o): Likewise.
8526 * ia64-tdep.h: New file.
8527 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8528 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8529 (ia64_aix_sigcontext_register_address): Likewise.
8530 (ia64_linux_getunwind_table): Delete declaration.
8531 * ia64-linux-tdep.c: Likewise.
8533 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8535 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8536 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8537 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8539 2004-02-17 Andrew Cagney <cagney@redhat.com>
8541 * symtab.c (skip_prologue_using_sal): New function.
8542 * symtab.h (skip_prologue_using_sal): Declare.
8543 * frv-tdep.c: Include "symtab.h".
8544 (skip_prologue_using_sal): Delete function.
8545 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8546 * rs6000-tdep.c (refine_prologue_limit): Mention
8547 skip_prologue_using_sal.
8548 * ia64-tdep.c (refine_prologue_limit): Ditto.
8549 * Makefile.in: Update dependencies.
8551 2004-02-16 Andrew Cagney <cagney@redhat.com>
8553 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8554 START_INFERIOR_TRAPS_EXPECTED.
8555 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8556 START_INFERIOR_TRAPS_EXPECTED.
8557 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8559 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8560 macro, moved to "nm-osf.h". Update copyright.
8561 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8564 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8565 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8566 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8567 frameless_look_for_prologue.
8568 * frame.h (legacy_frameless_look_for_prologue): Rename
8569 frameless_look_for_prologue.
8570 * gdbarch.h, gdbarch.c: Re-generate.
8571 * sh64-tdep.c (sh64_gdbarch_init): Update.
8572 * sh-tdep.c (sh_gdbarch_init): Update.
8573 * s390-tdep.c (s390_gdbarch_init): Update.
8574 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8575 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8576 * m68k-tdep.c (m68k_gdbarch_init): Update.
8577 (delta68_frame_args_address): Update.
8578 * m32r-tdep.c (m32r_gdbarch_init): Update.
8579 * hppa-tdep.c (hppa_gdbarch_init): Update.
8580 * h8300-tdep.c (h8300_gdbarch_init): Update.
8581 * frv-tdep.c (frv_gdbarch_init): Update.
8582 (frv_frameless_function_invocation): Update.
8583 * cris-tdep.c (cris_gdbarch_init): Update.
8584 (cris_frameless_function_invocation): Update.
8585 * avr-tdep.c (avr_gdbarch_init): Update.
8586 * arm-tdep.c (arm_gdbarch_init): Update.
8587 * stack.c (frame_info): Update, call predicate.
8588 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8589 * frame.c (legacy_get_prev_frame): Update, call predicate..
8590 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8591 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8592 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8594 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8595 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8596 * vax-tdep.c (vax_gdbarch_init): Ditto.
8598 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8601 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8603 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8606 2004-02-16 Andrew Cagney <cagney@redhat.com>
8608 * tui/tui-windata.c: Include "gdb_string.h".
8609 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8610 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8611 * Makefile.in: Update dependencies.
8613 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8615 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8616 * infrun.c: Include "gdb_assert.h".
8617 (singlestep_ptid, saved_singlestep_ptid)
8618 (stepping_past_singlestep_breakpoint): New variables.
8619 (resume): Set singlestep_ptid. Check for singlestep thread
8621 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8622 (handle_inferior_event): Handle singlestep thread hop.
8624 2004-02-16 Andrew Cagney <cagney@redhat.com>
8626 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8627 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8628 (dwarf2_frame_init_reg): Ditto.
8630 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8631 suggested by Joshua Neuheisel
8633 * configure.in: Always check for curses, including pdcurses.
8634 Warn, instead of error, when no curses are found. Enable TUI when
8635 curses is available.
8636 * configure: Re-generate.
8638 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8640 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8641 sh_sh4_register_convert_to_virtual.
8642 (sh_register_convert_to_raw): Rename from
8643 sh_sh4_register_convert_to_raw.
8644 (sh_pseudo_register_read): Accomodate above name change.
8645 (sh_pseudo_register_write): Ditto.
8647 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8649 * sh-tdep.c (sh_generic_register_name): Remove.
8650 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8652 2004-02-15 Andrew Cagney <cagney@redhat.com>
8654 * configure.in (build_warnings): Add -Wunused-function.
8655 * configure: Re-generate.
8657 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8658 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8660 * procfs.c (procfs_init_inferior): Assume that
8661 START_INFERIOR_TRAPS_EXPECTED is defined.
8662 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8663 * config/ns32k/tm-nbsd.h: Delete file,
8664 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8666 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8667 * config/vax/tm-vax.h: Delete file.
8669 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8670 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8671 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8672 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8673 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8674 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8675 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8677 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8679 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8680 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8681 (struct dwarf2_frame_ops): New.
8682 (dwarf2_frame_default_init_reg): New function, based on
8683 dwarf2_frame_init_reg.
8684 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8685 (dwarf2_frame_init_reg): Call architecture-specific function.
8686 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8687 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8688 instead of dwarf2_frame_data.
8689 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8690 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8692 2004-02-15 Andrew Cagney <cagney@redhat.com>
8694 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8695 register_gdbarch_swap.
8696 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8697 * f-lang.c (_initialize_f_language): Update, use
8698 DEPRECATED_REGISTER_GDBARCH_SWAP.
8699 * remote.c (_initialize_remote): Ditto.
8700 * regcache.c (_initialize_regcache): Ditto.
8701 * parse.c (_initialize_parse): Ditto.
8702 * infrun.c (_initialize_infrun): Ditto.
8703 * mi/mi-main.c (_initialize_mi_main): Ditto.
8704 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8706 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8707 poking .cacheable directly.
8708 * symfile.c (symfile_bfd_open): Ditto.
8710 * Makefile.in: Update all dependencies.
8712 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8713 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8714 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8715 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8716 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8718 2004-02-14 Andrew Cagney <cagney@redhat.com>
8720 * arch-utils.c (legacy_convert_register_p): Check
8721 DEPRECATED_REGISTER_CONVERTIBLE_P.
8722 * findvar.c (value_of_register): Ditto.
8724 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8725 * gdbarch.h, gdbarch.c: Re-generate.
8726 * arch-utils.c (deprecated_register_convertible_not): Delete.
8727 * arch-utils.h (deprecated_register_convertible_not): Delete.
8728 * mi/mi-main.c (get_register): Update. Update copyright.
8729 * infcmd.c (default_print_registers_info): Update.
8731 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8732 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8733 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8734 * gdbarch.h, gdbarch.c: Re-generate.
8735 * frame.c (deprecated_get_next_frame_hack): Delete function.
8736 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8737 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8739 * infcall.c (call_function_by_hand): Update.
8741 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8743 * symfile.c (init_entry_point_info, entry_point_address): Move
8745 * objfiles.c (init_entry_point_info, entry_point_address):..to
8747 * symfile.h (init_entry_point_info, entry_point_address): Remove
8749 * objfiles.h (init_entry_point_info, entry_point_address):Add
8751 * cris-tdep.c: Remove include of symfile.h. Add include of
8754 * mcore-tdep.c: Ditto.
8755 * mn10300-tdep.c: Ditto.
8756 * sh64-tdep.c: Ditto.
8757 * v850-tdep.c: Ditto.
8758 * arm-tdep.c: Remove include of symfile.h.
8759 * blockframe.c: Ditto.
8760 * coffread.c: Ditto.
8762 * dwarf2read.c: Ditto.
8763 * dwarfread.c: Ditto.
8764 * frv-tdep.c: Ditto.
8765 * ia64-tdep.c: Ditto.
8766 * mdebugread.c: Ditto.
8767 * mipsread.c: Ditto.
8768 * rs6000-tdep.c: Ditto.
8769 * s390-tdep.c: Ditto.
8771 * xstormy16-tdep.c: Ditto.
8772 * gdbarch.sh: Remove include of symfile.h.
8773 * gdbarch.c: Regenerate.
8774 * solib-irix.c (enable_break): Use entry_point_address().
8775 Add comment about include file.
8776 * xcoffread.c: Add comment about include file.
8777 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8778 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8779 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8780 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8781 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8783 2004-02-13 Andrew Cagney <cagney@redhat.com>
8785 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8786 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8788 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8790 2004-02-12 Fred Fish <fnf@redhat.com>
8792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8793 set_gdbarch_store_return_value.
8795 2004-02-12 Andrew Cagney <cagney@redhat.com>
8797 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8798 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8799 (interrupt_query): Ditto.
8800 (ofunc): Delete unused variable.
8801 * cris-tdep.c (cris_abi): Delete unused function.
8802 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8803 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8804 (cris_get_asr_quick_shift_steps): Ditto.
8805 (cris_skip_prologue_frameless_p): Ditto.
8806 * arm-tdep.c (arm_push_return_address): Delete unused function.
8807 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8808 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8809 * s390-tdep.c (s390_function_start): Delete unused function.
8811 2004-02-12 Andrew Cagney <cagney@redhat.com>
8813 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8814 gdbarch.h, gdbarch.c: Re-generate.
8815 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8816 to generic_prologue_frameless_p.
8817 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8818 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8820 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8822 * mips-linux-tdep.c: Include "frame.h".
8823 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8824 (mips_linux_skip_resolver): New functions.
8825 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8826 and set_gdbarch_in_solib_call_trampoline.
8827 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8828 to after set_gdbarch_in_solib_return_trampoline. Only set the
8829 solib hooks to mips16 functions if the OS ABI is unknown.
8830 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8831 including "config/tm-linux.h".
8832 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8833 * Makefile.in (mips-linux-tdep.o): Update.
8835 2004-02-11 David Carlton <carlton@kealia.com>
8837 * linespec.c (decode_compound): Only look for a class symbol when
8838 considering all but the rightmost component.
8840 2004-02-11 Andrew Cagney <cagney@redhat.com>
8842 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8843 abi code are are separatly grouped.
8845 2004-02-11 Andrew Cagney <cagney@redhat.com>
8847 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8848 * gdbarch.h, gdbarch.c: Re-generate.
8849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8850 * v850-tdep.c (v850_gdbarch_init): Update.
8851 * sh64-tdep.c (sh64_gdbarch_init): Update.
8852 * sh-tdep.c (sh_gdbarch_init): Update.
8853 * s390-tdep.c (s390_gdbarch_init): Update.
8854 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8855 * mips-tdep.c (mips_gdbarch_init): Update.
8856 * mcore-tdep.c (mcore_gdbarch_init): Update.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8858 * m32r-tdep.c (m32r_gdbarch_init): Update.
8859 * ia64-tdep.c (ia64_gdbarch_init): Update.
8860 * hppa-tdep.c (hppa_gdbarch_init): Update.
8861 * h8300-tdep.c (h8300_gdbarch_init): Update.
8862 * frv-tdep.c (frv_gdbarch_init): Update.
8863 * d10v-tdep.c (d10v_gdbarch_init): Update.
8864 * cris-tdep.c (cris_gdbarch_init): Update.
8865 * avr-tdep.c (avr_gdbarch_init): Update.
8866 * arm-tdep.c (arm_gdbarch_init): Update.
8867 * alpha-tdep.c (alpha_gdbarch_init): Update.
8869 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8871 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8873 (sh_sh4al_dsp_register_name): Ditto.
8875 2004-02-10 Andrew Cagney <cagney@redhat.com>
8877 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8878 (mips_init_frame_pc_first): Delete function.
8879 (mips_frame_saved_pc): Delete function.
8880 (mips_frame_chain): Delete function.
8881 (mips_init_extra_frame_info): Delete function.
8882 (mips_xfer_register): Delete unused variable "reg".
8883 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8884 (mips_n32n64_return_value): Delete unused variable "reg".
8885 (mips_n32n64_return_value): Delete unused variable "pos".
8886 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8887 (mips_o32_return_value): Delete unused variable "pos".
8888 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8889 (mips_print_fp_register): Delete unused variable "namelen"
8890 (mips_print_fp_register): Delete unused variable "flt2"
8891 (get_frame_pointer): Delete function.
8892 (cached_proc_desc): Delete static variable.
8893 (mips_pop_frame): Delete function.
8894 (mips_find_saved_regs): Delete function.
8895 (mips_get_saved_register): Delete function.
8896 (mips_saved_pc_after_call): Delete function.
8897 (SIGFRAME_BASE): Delete macro.
8898 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8899 (SIGFRAME_PC_OFF): Delete macro.
8900 (SIGFRAME_REGSAVE_OFF): Delete macro.
8901 (mips_dump_tdep): Do not print deleted macro definitions.
8903 2004-02-10 Andrew Cagney <cagney@redhat.com>
8905 * Makefile.in (SFILES): Remove explictly listed tui files.
8906 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8908 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8910 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8911 to use paddr functions to format ia64 addresses and long values.
8912 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8913 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8914 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8915 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8916 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8918 2004-02-10 Andrew Cagney <cagney@redhat.com>
8920 * defs.h: Do not include "tui.h".
8921 * gdb_curses.h: New file.
8922 * tui/tui-hooks.h: New file.
8923 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8924 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8925 (tui_initialize_io): Delete declaration.
8926 (tui_initialize_readline: Delete redundant declaration.
8927 (struct tui_point): Delete definition.
8928 * tui/tui-data.h (struct tui_point): Define.
8929 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8930 * utils.c: Include "tui/tui.h".
8931 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8932 * printcmd.c [TUI]: Include "tui/tui.h".
8933 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8934 * tui/tui-command.c: Include "gdb_curses.h".
8935 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8936 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8937 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8938 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8939 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8940 * Makefile.in: Update all dependencies.
8941 (tui_hooks_h, gdb_curses_h): Define.
8942 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8944 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8946 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8947 auxf2. Add comments about some other rarely used fields.
8949 2004-02-10 Andrew Cagney <cagney@redhat.com>
8951 * Makefile.in (init.c): Fix script removing duplicates. Problem
8952 reported by Peter Schauer.
8954 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8956 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8957 obstack_specify_allocation.
8958 * objfiles.c (allocate_objfile): Ditto.
8959 * solib-sunos.c (solib_add_common_symbols)
8960 (allocate_rt_common_objfile): Ditto.
8961 * symfile.c (reread_symbols): Ditto.
8962 * gdb_obstack.h: Add comment.
8964 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8966 * linespec.c (decode_line_1, locate_first_half)
8967 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8970 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8972 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8975 2004-02-09 Andrew Cagney <cagney@redhat.com>
8977 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8978 fails, try find_pc_section. Fix PR c++/1267.
8979 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8980 instead of find_pc_mapped_section.
8981 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8982 not default to the section containing PC. Fix PR symtab/1519.
8984 2004-02-09 Andrew Cagney <cagney@redhat.com>
8986 * Makefile.in (mips-tdep.o): Update dependencies.
8987 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8989 (mips_unwind_pc): Return the pseudo PC register.
8990 (mips_unwind_dummy_id): New function.
8991 (mips16_fetch_instruction): New function.
8992 (mips32_fetch_instruction): New function.
8993 (struct mips_frame_cache): Define.
8994 (mips_mdebug_frame_cache): New function.
8995 (mips_mdebug_frame_this_id): New function.
8996 (mips_mdebug_frame_prev_register): New function.
8997 (mips_mdebug_frame_unwind): Define.
8998 (mips_mdebug_frame_sniffer): New function.
8999 (mips_mdebug_frame_base_address): New function.
9000 (mips_mdebug_frame_base): Define.
9001 (mips_mdebug_frame_base_sniffer): New function.
9002 (mips_gdbarch_init): Append unwind and base sniffers. Set
9005 2004-02-08 Andrew Cagney <cagney@redhat.com>
9007 * frame.c: Print both the register number and name.
9009 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9010 and a sed into a single sed. Make .c and .o patterns more robust.
9012 (INIT_FILES): Replace OBS with COMMON_OBS.
9013 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9015 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9017 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9018 the PT_WCOOKIE request.
9020 2004-02-08 Andrew Cagney <cagney@redhat.com>
9022 * mips-tdep.c (mips_unwind_pc): New function.
9023 (mips_gdbarch_init): Set mips_unwind_pc.
9025 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9026 (get_frame_id): Allow the UNKNOWN_FRAME.
9027 (frame_register_unwind, get_frame_type): Ditto.
9029 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9030 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9031 unwind_dummy_id indicates a legacy frame.
9033 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9034 * configure: Re-generate.
9036 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9039 2004-02-08 Andrew Cagney <cagney@redhat.com>
9041 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9043 * configure: Re-generate.
9044 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9045 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9046 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9047 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9048 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9049 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9050 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9051 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9052 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9053 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9055 2004-02-07 Andrew Cagney <cagney@redhat.com>
9057 * Makefile.in: Update all dependencies.
9059 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9060 * configure: Re-generate.
9061 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9062 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9063 (COMMON_OBS): Add "main.o" and "annotate.o".
9064 (ANNOTATE_OBS): Delete.
9065 (OBS): Remove ANNOTATE_OBS.
9066 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9068 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9069 against CONFIG_OBS and "main.o".
9070 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9071 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9073 * tui/tui-command.c: Include "gdb_string.h", delete register
9074 attribute, use ISO-C function signatures.
9075 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9076 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9077 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9080 * tui/tui-command.c: Change variable and function names to lower
9082 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9083 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9084 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9085 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9086 * tui/tui-winsource.c, tui/tui.c: Ditto.
9088 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9090 * buildsym.c (free_pending_blocks, finish_block)
9091 (record_pending_block, make_blockvector, end_symtab): Replace
9092 symbol_obstack with objfile_obstack.
9093 * coffread.c (process_coff_symbol, coff_read_struct_type)
9094 (coff_read_enum_type): Ditto.
9095 * cp-namespace.c (initialize_namespace_symtab)
9096 (check_one_possible_namespace_symbol): Ditto.
9097 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9098 (dwarf2_symbol_mark_computed): Ditto.
9099 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9100 * elfread.c (elf_symtab_read): Ditto.
9101 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9102 (hpread_read_enum_type, hpread_read_function_type)
9103 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9105 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9106 (java_link_class_type): Ditto.
9107 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9108 (new_symbol): Ditto.
9109 * minsyms.c (install_minimal_symbols): Ditto.
9110 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9111 (terminate_minimal_symbol_table): Replace symbol_obstack with
9113 (free_objfile): Remove freeing of symbol_obstack.
9114 * objfiles.h: Remove symbol_obstack field.
9115 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9117 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9119 (solib_add_common_symbols): Replace symbol_obstack with
9121 * somsolib.c (som_solib_add): Ditto.
9122 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9123 (common_block_start, common_block_end): Ditto.
9124 * symfile.c (reread_symbols): Remove freeing and init of
9126 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9127 * symfile.h: Update comment.
9128 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9130 * symtab.c (symbol_set_names): Replace symbol_obstack with
9132 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9134 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9135 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9138 2004-02-07 Andrew Cagney <cagney@redhat.com>
9140 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9141 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9142 fields and variables.
9143 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9144 (m_beInvisible): Delete macro.
9145 * tui/tui-data.h: Fix case case fields and variables.
9146 (m_genWinPtrIsNull): Delete macro.
9147 (tui_win_list): Rename winList.
9148 (TUI_SRC_WIN): Rename srcWin.
9149 (TUI_DISASM_WIN): Rename disassemWin.
9150 (TUI_DATA_WIN): Rename dataWin.
9151 (TUI_CMD_WIN): Rename cmdWin.
9152 (m_genWinPtrNotNull): Delete macro.
9153 (m_winPtrIsNull): Delete macro.
9154 (m_winPtrNotNull): Delete macro.
9155 (tui_win_is_source_type): Replace m_winIsSourceType
9156 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9157 (tui_win_has_locator): Replace m_hasLocator.
9158 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9159 m_setWinHighlightOff.
9160 * tui/tui-data.c: Update references.
9161 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9162 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9163 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9164 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9165 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9166 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9167 * tui/tui-winsource.c, tui/tui.c: Ditto.
9169 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9171 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9172 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9175 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9176 variable `i6' to `i7'.
9177 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9179 2004-02-07 Andrew Cagney <cagney@redhat.com>
9181 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9182 (TuiPoint, TuiPointPtr): Ditto.
9183 (TuiStatus, TuiStatusPtr): Ditto.
9184 (TuiWinType, TuiWinTypePtr): Ditto.
9185 (struct tui_point): Rename _TuiPoint.
9186 (tui_get_low_disassembly_address): Rename
9187 tuiGetLowDisassemblyAddress.
9188 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9189 (tuiFree): Delete declaration.
9190 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9191 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9192 * tui/tui.c (tuiFree): Delete function.
9193 * cli/cli-cmds.c (disassemble_command): Update references.
9194 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9195 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9196 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9197 * tui/tui-winsource.c: Ditto.
9199 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9201 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9202 coffstab_build_psymtabs, elfstab_build_psymtabs)
9203 (stabsect_build_psymtabs): Replace psymbol_obstack with
9205 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9206 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9208 * dwarfread.c (scan_compilation_units): Ditto.
9209 * elfread.c (elfstab_offset_sections): Ditto.
9210 * hppa-tdep.c (read_unwind_info): Ditto.
9211 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9212 (hpread_end_psymtab): Ditto.
9213 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9214 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9216 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9217 * objfiles.c (add_to_objfile_sections)
9218 (build_objfile_section_table): Ditto.
9219 (allocate_objfile): Remove init of psymbol_obstack.
9220 (free_objfile): Remove freeing of psymbol_obstack.
9221 * objfiles.h (struct objfile): Remove field
9222 psymbol_obstack. Update comments.
9223 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9224 psymbol_obstack with objfile_obstack.
9225 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9227 * somread.c (som_symfile_offsets, init_import_symbols)
9228 (init_export_symbols): Replace psymbol_obstack with
9230 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9231 * symfile.c (default_symfile_offsets, syms_from_objfile)
9232 (reread_symbols): Remove freeing and init of psymbol_obstack.
9233 (cashier_psymtab): Update comment.
9234 * symmisc.c (print_objfile_statistics): Don't report stats for
9236 * symtab.h (struct general_symbol_info, struct partial_symtab):
9238 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9239 (xcoff_symfile_offsets): Replace psymbol_obstack with
9242 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9244 * objfiles.h (struct objfile): Add objfile_obstack field.
9245 Remove type_obstack field.
9247 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9248 read_structure_scope read_enumeration, new_symbol): Replace
9249 type_obstack with objfile_obstack.
9250 * dwarfread.c (struct_type, enum_type): Ditto.
9251 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9252 (lookup_fundamental_type): Ditto.
9253 * gdbtypes.h (TYPE_ALLOC): Ditto.
9254 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9255 (hpread_read_doc_function_type, hpread_read_struct_type)
9256 (fix_static_member_physnames, hpread_read_array_type)
9257 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9258 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9259 (java_link_class_type): Ditto.
9260 * mdebugread.c (parse_type): Ditto.
9261 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9262 * solib-sunos.c (solib_add_common_symbols): Ditto.
9263 * stabsread.c (define_symbol, read_type, read_member_functions,
9264 read_cpp_abbrev, read_one_struct_field): Ditto.
9265 * symfile.c (reread_symbols): Ditto.
9266 * symmisc.c (print_objfile_statistics): Ditto.
9268 2004-02-07 Andrew Cagney <cagney@redhat.com>
9270 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9271 (tui_exec_info_content): Rename TuiExecInfoContent.
9272 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9273 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9274 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9275 (TuiList, TuiListPtr): Ditto.
9276 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9277 (TuiDataType, TuiDataTypePtr): Ditto.
9278 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9279 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9280 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9281 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9282 (TuiDataElement, TuiDataElementPtr): Ditto.
9283 (TuiWinElement, TuiWinElementPtr): Ditto.
9284 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9285 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9286 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9287 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9288 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9289 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9290 * tui/tui-command.c, tui/tui-data.c: Update references.
9291 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9292 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9293 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9294 * tui/tui-winsource.c, tui/tui.c: Ditto.
9296 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9298 * dwarf2-frame.h: Update copyright.
9299 (enum dwarf2_frame_reg_rule): New.
9300 (struct dwarf2_frame_state_reg): New.
9301 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9302 * dwarf2-frame.c: Update copyright.
9303 (enum dwarf2_reg_rule): Remove.
9304 (struct dwarf2_frame_state): Remove defenition of `struct
9305 dwarf2_frame_state_reg'.
9306 (read_reg): Call get_frame_arch to get the architecture instead of
9307 using CURRENT_GDBARCH.
9308 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9310 (dwarf2_frame_init_reg): New function.
9311 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9312 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9313 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9314 tags with DWARF2_FRAME_.
9315 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9316 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9317 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9319 2004-02-06 Andrew Cagney <cagney@redhat.com>
9321 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9322 (enum tui_data_type): Rename _TuiDataType.
9323 (struct tui_layout_def): Rename _TuiLayoutDef.
9324 (struct tui_source_element): Rename _TuiSourceElement.
9325 (struct tui_data_element): Rename _TuiDataElement.
9326 (struct tui_command_element): Rename _TuiCommandElement.
9327 (struct tui_locator_element): Rename _TuiLocatorElement.
9328 (union tui_which_element): Define.
9329 (struct tui_win_element): Rename _TuiWinElement.
9330 (struct tui_data_info): Rename _TuiDataInfo.
9331 (struct tui_source_info): Rename _TuiSourceInfo.
9332 (struct tui_command_info): Rename _TuiCommandInfo.
9333 (tui_initialize_static_data): Rename initializeStaticData.
9334 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9335 (tui_alloc_win_info): Rename allocWinInfo.
9336 (tui_init_generic_part): Rename initGenericPart.
9337 (tui_init_win_info): Rename initWinInfo.
9338 (tui_alloc_content): Rename allocContent.
9339 (tui_add_content_elements): Rename addContentElements.
9340 (tui_init_content_element): Rename initContentElement.
9341 (tui_free_window): Rename freeWindow.
9342 (tui_free_win_content): Rename freeWinContent.
9343 (tui_free_data_content): Rename freeDataContent.
9344 (tui_free_all_source_wins_content): Rename
9345 freeAllSourceWinsContent.
9346 (tui_del_window): Rename tuiDelWindow.
9347 (tui_del_data_windows): Rename tuiDelDataWindows.
9348 (tui_partial_win_by_name): Rename partialWinByName.
9349 (tui_win_name): Rename winName.
9350 (tui_current_layout): Rename currentLayout.
9351 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9352 (tui_term_height): Rename termHeight.
9353 (tui_set_term_height_to): Rename setTermHeightTo.
9354 (tui_term_width): Rename termWidth.
9355 (tui_set_term_width_to): Rename setTermWidthTo.
9356 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9357 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9358 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9359 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9360 (tui_source_windows): Rename sourceWindows.
9361 (tui_clear_source_windows): Rename clearSourceWindows.
9362 (tui_clear_source_windows_detail): Rename
9363 clearSourceWindowsDetail.
9364 (tui_clear_win_detail): Rename clearWinDetail.
9365 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9366 (tui_default_tab_len): Rename tuiDefaultTabLen.
9367 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9368 (tui_win_with_focus): Rename tuiWinWithFocus.
9369 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9370 (tui_layout_def): Rename tuiLayoutDef.
9371 (tui_win_resized): Rename tuiWinResized.
9372 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9373 (tui_next_win): Rename tuiNextWin.
9374 (tui_prev_win): Rename tuiPrevWin.
9375 (tui_add_to_source_windows): Rename addToSourceWindows.
9376 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9377 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9378 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9379 * tui/tui.c, tui/tui-data.c: Ditto.
9380 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9381 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9383 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9384 (struct symtab): Declare.
9385 (tui_set_source_content): Rename tuiSetSourceContent.
9386 (tui_show_symtab_source): Rename tuiShowSource.
9387 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9388 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9389 * tui/tui-source.c: Update copyright. Update references.
9390 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9391 * tui/tui-stack.c: Update references.
9393 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9394 (struct tui_win_info): Declare.
9395 (tui_scroll_forward): Rename tuiScrollForward.
9396 (tui_scroll_backward): Rename tuiScrollBackward.
9397 (tui_scroll_left): Rename tuiScrollLeft.
9398 (tui_scroll_right): Rename tuiScrollRight.
9399 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9400 (tui_resize_all): Rename tuiResizeAll.
9401 (tui_refresh_all_win): Rename tuiRefreshAll.
9402 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9403 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9404 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9405 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9407 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9408 (tui_erase_data_content): Rename tuiEraseDataContent.
9409 (tui_display_all_data): Rename tuiDisplayAllData.
9410 (tui_check_data_values): Rename tuiCheckDataValues.
9411 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9412 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9413 (tui_first_data_element_no_in_line): Rename
9414 tuiFirstDataElementNoInLine.
9415 (tui_delete_data_content_windows): Rename
9416 tuiDeleteDataContentWindows.
9417 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9418 (tui_display_data_from): Rename tuiDisplayDataFrom.
9419 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9420 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9421 * tui/tui-win.c, tui/tui-regs.c: Update references.
9422 * tui/tui-layout.c, tui/tui.c: Update references.
9424 * tui/tui-wingeneral.h: Update copyright.
9425 (m_allBeVisible): Delete macro.
9426 (m_allBeInvisible): Delete macro.
9427 (struct tui_gen_win_info): Declare.
9428 (struct tui_win_info): Declare.
9429 (tui_unhighlight_win): Rename unhighlightWin.
9430 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9431 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9432 (tui_make_window): Rename makeWindow.
9433 (tui_copy_win): Rename copyWin.
9434 (tui_box_win): Rename boxWin.
9435 (tui_highlight_win): Rename highlightWin.
9436 (tui_check_and_display_highlight_if_needed): Rename
9437 checkAndDisplayHighlightIfNeeded.
9438 (tui_refresh_all): Rename refreshAll.
9439 (tui_delete_win): Rename tuiDelwin.
9440 (tui_refresh_win): Rename tuiRefreshWin.
9441 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9442 (tui_make_visible, tui_make_invisible): New functions.
9443 (tui_make_all_visible, tui_make_all_invisible): New functions.
9444 (make_all_visible): Rename makeAllVisible.
9445 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9446 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9447 * tui/tui-windata.c, tui/tui-win.c: Update references.
9448 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9449 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9451 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9453 * proc-api.c (write_with_trace): Initialize local variable to
9454 silence compiler warning.
9456 2004-02-06 Andrew Cagney <cagney@redhat.com>
9458 * tui/tui-source.h: Do not include "defs.h".
9459 (struct tui_win_info): Declare.
9460 (tui_set_source_content_nil): Declare.
9461 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9462 (union tui_line_or_address): Rename _TuiLineOrAddress.
9463 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9464 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9465 (tui_update_source_window_as_is): Rename
9466 tuiUpdateSourceWindowAsIs.
9467 (tui_update_source_windows_with_addr): Rename
9468 tuiUpdateSourceWindowsWithAddr.
9469 (tui_update_source_windows_with_line): Rename
9470 tuiUpdateSourceWindowsWithLine.
9471 (tui_clear_source_content): Rename tuiClearSourceContent.
9472 (tui_erase_source_content): Rename tuiEraseSourceContent.
9473 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9474 (tui_show_source_content): Rename tuiShowSourceContent.
9475 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9476 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9477 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9478 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9479 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9480 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9481 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9482 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9483 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9484 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9485 (struct tui_win_info): Declare.
9486 * tui/tui-stack.c: Update references.
9487 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9488 * tui/tui-win.c, tui/tui-source.c: Ditto.
9489 * tui/tui.c, tui/tui-disasm.c: Ditto.
9491 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9493 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9494 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9496 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9498 * infrun.c (handle_inferior_event): Allow for breakpoint
9499 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9500 and SIGEMT. Update comments.
9501 * NEWS (Revised SPARC target): Mention support for non-executable
9504 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9506 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9507 * inftarg.c: Update copyright year.
9508 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9509 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9510 (sparc_xfer_wcookie): New function.
9511 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9512 * Makefile.in (sparc-nat.o): Update dependencies.
9513 * config/sparc/nm-nbsd.h: Include "target.h".
9514 (NATIVE_XFER_WCOOKIE): New define.
9515 (sparc_xfer_wcookie): New prototype.
9517 2004-02-04 Andrew Cagney <cagney@redhat.com>
9519 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9520 SYSCALL_TRAP function.
9521 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9523 2004-02-04 Andrew Cagney <cagney@redhat.com>
9524 Daniel Jacobowitz <drow@mvista.com>
9526 * objfiles.h: Delete comments refering to inside_entry_func and
9527 DEPRECATED_FRAME_CHAIN_VALID.
9528 * defs.h (inside_entry_func): Update prototype..
9529 * blockframe.c (inside_entry_func): Rename to
9530 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9531 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9533 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9535 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9536 outside of #ifdef SOLIB_ADD region.
9537 (do_restore_lang_radix_cleanup): Ditto.
9538 (resolve_pending_breakpoint): Ditto.
9540 2004-02-03 Andrew Cagney <cagney@redhat.com>
9542 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9543 (process_note_abi_tag_sections): Delete unused function.
9544 (ia64_read_fp): Delete unused function.
9545 (gdbarch_extract_struct_value_address): Delete declaration.
9547 2004-02-02 Andrew Cagney <cagney@redhat.com>
9549 * vax-tdep.c (vax_frame_chain): Delete call to
9550 deprecated_inside_entry_file.
9551 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9553 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9555 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9556 column that's "empty" or "same value" when eliminating REG_RA
9559 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9561 * NEWS: Add information about new pending breakpoint support.
9563 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9565 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9566 and pending fields for pending breakpoint support.
9567 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9568 (condition_command): Only parse condition if not a pending
9570 (print_one_breakpoint): Add support for pending breakpoints.
9571 (describe_other_breakpoints): Add checks to verify we are not
9572 dealing with pending breakpoints.
9573 (check_duplicates): Don't check pending breakpoints.
9574 (set_raw_breakpoint): Initialize pending flag.
9575 (do_restore_lang_radix_cleanup): New cleanup routine.
9576 (resolve_pending_breakpoint): New function.
9577 (re_enable_breakpoints_in_shlibs): Try and resolve any
9578 pending breakpoints via resolve_pending_breakpoint.
9579 (mention): Add pending breakpoint support.
9580 (parse_breakpoint_sals): Add new parameter to pass to
9581 decode_line_1 to indicate silent errors when files or functions
9582 are not found. Change all callers.
9583 (do_captured_parse_breakpoint): New function.
9584 (break_command_1): Change prototype to return an rc value and to
9585 take an optional pending breakpoint pointer. Support creating
9586 a pending breakpoint if a "not found" form of error occurs when
9587 parsing the breakpoint. Also support resolving an existing pending
9588 breakpoint and be silent if the resolution fails.
9589 (create_breakpoints): Change prototype to take pending breakpoint
9590 pointer. When resolving a pending breakpoint, use the new pointer
9591 to provide a conditional or commands added by the end-user.
9592 (delete_breakpoint): Add appropriate check for pending.
9593 (breakpoint_re_set_one): Ditto.
9594 (do_enable_breakpoint): Ditto.
9596 2004-02-02 David Carlton <carlton@kealia.com>
9598 * valops.c (enum oload_classification): New.
9599 (find_overload_match): Break implementation into separate
9600 functions; delete #if 0'd code; look for symbols within
9602 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9603 (find_oload_champ,oload_method_static,classify_oload_match): New.
9604 * cp-support.h: Add declaration for cp_func_name; update
9605 declaration for make_symbol_overload_list.
9606 * cp-support.c (cp_func_name): New.
9607 (overload_list_add_symbol): Fix comment, use
9608 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9609 (make_symbol_overload_list): Take a function name and a namespace
9610 instead of a symbol; change implementation.
9611 (make_symbol_overload_list_using): New.
9612 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9614 2004-02-02 Fred Fish <fnf@redhat.com>
9616 * main.c (gdb_stdtarg): Move definition to group with other
9617 gdb_stdtarg definitions and update copyright years.
9618 * remote-sim.c (gdb_os_write_stderr): Write output to
9619 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9620 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9621 gdb_stderr stream and update copyright years.
9623 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9625 * Makefile.in (mips-linux-nat.o): Update dependencies.
9626 * mips-linux-nat.c: Include mips-tdep.h.
9628 2004-02-01 Roland McGrath <roland@redhat.com>
9630 * sol-thread.c (sol_thread_xfer_partial): New function.
9631 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9632 (init_sol_core_ops): Likewise.
9634 * procfs.c (procfs_xfer_partial): New function.
9635 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9636 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9638 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9639 procfs_xfer_auxv function.
9641 * procfs.c (procfs_make_note_section): If we can read
9642 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9643 * linux-proc.c (linux_make_note_section): Likewise.
9647 * Makefile.in (auxv_h): New variable.
9648 (COMMON_OBS): Add auxv.o here.
9649 (auxv.o): New target.
9651 * corelow.c (core_xfer_partial): New function.
9652 (init_core_ops): Use it for core_ops.to_xfer_partial.
9654 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9655 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9656 macro if that is defined.
9658 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9660 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9661 and check the specified thread for each breakpoint.
9662 * breakpoint.h (bpstat_stop_status): Update prototype.
9663 * infrun.c (handle_inferior_event): Update calls to
9666 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9668 * Makefile.in (cli-cmds.o): Add $(readline_h).
9670 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9672 * cli/cli-cmds.c: Include readline.h.
9673 (complete_command): Pass the start of the last word to
9676 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9678 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9679 argument, and change first argument to a CORE_ADDR.
9680 * breakpoint.h (bpstat_stop_status): Update prototype.
9681 * infrun.c (adjust_pc_after_break): Add a new comment.
9682 (handle_inferior_event): Update calls to bpstat_stop_status.
9684 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9686 * breakpoint.h: Update copyright years.
9688 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9690 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9691 (bpstat_stop_status): Don't decrement PC.
9692 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9694 * infrun.c (adjust_pc_after_break): New function.
9695 (handle_inferior_event): Call it, early. Remove later references
9696 to DECR_PC_AFTER_BREAK.
9697 (normal_stop): Add commentary.
9699 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9701 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9702 2004-01-27 double-free fix.
9704 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9706 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9707 (sparc32_frame_prev_register): Handle StackGhost.
9708 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9710 2004-01-29 Roland McGrath <roland@redhat.com>
9712 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9713 * configure: Regenerated.
9715 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9716 * Makefile.in (procfs.o): Add dep.
9718 2004-01-28 Andrew Cagney <cagney@redhat.com>
9720 * tui/tui-stack.h: Update copyright.
9721 (struct frame_info): Add opaque declaration.
9722 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9723 (tui_show_locator_content): Rename tuiShowLocatorContent.
9724 (tui_show_frame_info): Rename tuiShowFrameInfo.
9725 * tui/tui-stack.c: Update copyright. Update references.
9726 * tui/tui-winsource.c: Update references.
9727 * tui/tui-win.c: Update references.
9728 * tui/tui-layout.c: Update references.
9729 * tui/tui-hooks.c: Update copyright, update references.
9730 * tui/tui.c: Update copyright, update references.
9731 * tui/tui-disasm.c: Update references.
9733 2004-01-28 David Carlton <carlton@kealia.com>
9735 * dwarf2read.c (add_partial_structure): Use demangled name if
9736 namespace equals "".
9738 2004-01-27 Jim Blandy <jimb@redhat.com>
9740 Clean up misapplied patch:
9741 * dwarf2read.c (determine_prefix): Change one of the two forward
9742 declarations for 'determine_prefix_aux' to a declaration for this.
9743 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9744 argument to 'die_specification'.
9746 * dwarf2read.c (read_func_scope): Re-indent comment.
9748 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9750 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9751 b->exp to NULL after freeing so that error during re-parsing or
9752 evaluation of expressions associated with breakpoint don't
9753 eventually lead to re-freeing of storage.
9754 Committed by Andrew Cagney.
9756 2004-01-27 Andrew Cagney <cagney@redhat.com>
9758 * source.c (ambiguous_line_spec): Delete undefined declaration.
9759 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9760 (m32r_set_server_address, m32r_set_download_path): Ditto.
9761 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9763 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9765 * dwarf2read.c: Update calls to changed and renamed functions, and
9766 references to moved variables.
9768 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9769 language, language_defn, list_in_scope, and ftypes members.
9770 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9771 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9772 (baseaddr): Remove globals.
9774 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9775 (set_cu_language, die_is_declaration, die_specification)
9776 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9777 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9778 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9779 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9781 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9782 cu.list_in_scope. Don't initialize cu_header_offset.
9783 (add_partial_symbol): Add local baseaddr.
9784 (psymtab_to_symtab_1): Add local baseaddr. Use
9785 objfile->section_offsets for consistency. Don't initialize
9786 cu_header_offset; do initialize cu.header.offset and
9788 (read_file_scope, read_func_scope, read_lexical_block_scope)
9789 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9791 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9793 * PROBLEMS: Add gdb/1516.
9795 2003-12-29 Robert Millan <robertmh@gnu.org>
9797 Patch committed by Andrw Cagney.
9798 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9799 * configure.tgt: Match knetbsd*-gnu.
9801 2004-01-26 Andrew Cagney <cagney@redhat.com>
9803 * breakpoint.c (catch_command_1): Delete #ifdef code.
9804 (catch_fork_command_1): Delete #ifdef wrapper.
9805 (catch_exec_command_1): Ditto.
9806 (catch_load_command_1): Ditto.
9807 (catch_unload_command_1): Ditto.
9809 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9810 (catch_breakpoint): Delete #if0ed function.
9811 (disable_catch_breakpoint): Ditto.
9812 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9813 (disable_catch, enable_catch, delete_catch): Ditto.
9815 2004-01-26 Andrew Cagney <cagney@redhat.com>
9817 * remote.c (echo_check, quit_flag): Delete variables.
9818 (cisco_kernel_mode): Delete variable.
9819 (minitelnet_return, tty_input, escape_count): Delete variables.
9820 (remote_cisco_mode): Delete variable.
9821 (remote_cisco_open, remote_cisco_close): Delete function.
9822 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9823 (init_remote_cisco_ops): Delete function.
9824 (_initialize_remote): Do not install "remote cisco" code.
9825 (read_frame): Delete cisco specific code.
9826 (remote_info_process): Delete function.
9827 (remote_wait): Delete cisco specific code.
9828 (remote_cisco_section_offsets): Delete function.
9829 (remote_cisco_objfile_relocate): Delete function.
9830 (remote_async_wait): Delete cisco specific code.
9831 (minitelnet, readtty, readsocket): Delete function.
9833 2004-01-26 Andrew Cagney <cagney@redhat.com>
9835 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9836 comments mentioning extract_returned_value_address.
9837 * infcmd.c (print_return_value): Update. Add comments on
9838 extract_returned_value_address.
9839 * stack.c (return_command): Add comments on
9840 extract_returned_value_address.
9841 * values.c: Update comment.
9842 * m32r-tdep.c: Update comment.
9843 * sparc-tdep.c: Update comment.
9844 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9846 * sh64-tdep.c (sh64_gdbarch_init): Update.
9847 * sh-tdep.c (sh_gdbarch_init): Update.
9848 * s390-tdep.c (s390_gdbarch_init): Update.
9849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9850 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9851 * m68k-tdep.c (m68k_gdbarch_init): Update.
9852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9853 * m32r-tdep.c (m32r_gdbarch_init): Update.
9854 * ia64-tdep.c (ia64_gdbarch_init): Update.
9855 * h8300-tdep.c (h8300_gdbarch_init): Update.
9856 * frv-tdep.c (frv_gdbarch_init): Update.
9857 * arm-tdep.c (arm_gdbarch_init): Update.
9858 * alpha-tdep.c (alpha_gdbarch_init): Update.
9860 2004-01-26 Andrew Cagney <cagney@redhat.com>
9862 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9863 SYMBOL_LOCATION_FUNCS
9864 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9865 "struct symbol_ops".
9866 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9867 type to "struct symbol_ops".
9868 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9869 (struct symbol): Replace ".aux_value.loc.funcs" and
9870 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9871 (SYMBOL_OBJFILE): Delete macro.
9872 (SYMBOL_LOCATION_FUNCS): Delete macro.
9873 (SYMBOL_LOCATION_BATON): Update.
9874 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9875 intead of SYMBOL_LOCATION_FUNCS.
9876 * ax-gdb.c (gen_var_ref): Ditto.
9877 * printcmd.c (address_info): Ditto.
9878 * findvar.c (read_var_value): Ditto.
9879 (symbol_read_needs_frame): Ditto.
9881 2004-01-26 Andrew Cagney <cagney@redhat.com>
9883 * dwarf2read.c (read_func_scope): Document frame-base hack.
9885 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9887 * infcmd.c (print_return_value): Plug memory leak; delete
9888 ui_stream object. Rename argument `structure_return' to
9891 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9893 * infcmd.c (print_return_value): Wrap long lines.
9894 (finish_command_continuation, finish_command): Remove unused
9895 variable `funcaddr'. Fix some coding-standards problems.
9897 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9898 SECT_SIZE is large enough, not whether it's exactly the right size.
9899 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9900 TDEP->fpregset to zero.
9902 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9903 floating-point registers for traditional NetBSD core files.
9904 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9905 TDEP->sizeof_fpregset here.
9907 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9909 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9910 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9911 function with code split out from
9912 sparc32nbsd_sigcontext_frame_cache.
9913 (sparc32nbsd_sigcontext_frame_cache): Use
9914 sparc32nbsd_sigcontext_saved_regs.
9915 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9917 * sparcobsd-tdep.c: New file.
9918 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9919 (sparcobsd-tdep.o): New dependency.
9920 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9921 * config/sparc/obsd.mt: New file.
9923 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9924 TDEP->fpregset to be initialized to enable core file register
9927 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9929 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9930 Add opaque declarations.
9931 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9932 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9933 function with code split out from
9934 sparc64nbsd_sigcontext_frame_cache.
9935 (sparc64nbsd_sigcontext_frame_cache): Use
9936 sparc64nbsd_sigcontext_saved_regs.
9937 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9939 * sparc64obsd-tdep.c: New file.
9940 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9941 (sparc64obsd-tdep.o): New dependency.
9942 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9943 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9944 * config/sparc/obsd64.mt: New file.
9946 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9947 read the instruction at PC.
9949 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9950 value of GDB_OSABI_DEFAULT.
9951 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9952 instead of GDB_OSABI_NETBSD_AOUT.
9954 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9956 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9959 2004-01-23 Andrew Cagney <cagney@redhat.com>
9961 * printcmd.c (display_command): Replace tui_set_display call with
9962 tui_set_layout_for_display_command.
9963 * tui/tui.h (enum tui_win_type): Define.
9964 (tui_set_layout): Delete declaration.
9965 (tui_set_layout_for_display_command): Rename set_tui_layout.
9966 * tui/tui-data.h (enum tui_layout_type): Define.
9967 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9969 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9970 (tui_default_win_height): Rename tuiDefaultWinHeight.
9971 (tui_default_win_viewport_height): Rename
9972 tuiDefaultWinViewportHeight.
9973 (tui_set_layout): RenametuiSetLayout.
9974 * tui/tui-layout.c: Update references.
9975 * tui/tui.c: Update references.
9976 * tui/tui-disasm.c: Update references.
9978 2004-01-23 David Carlton <carlton@kealia.com>
9980 Partial workaround for PR c++/1511:
9981 * cp-namespace.c: Include frame.h.
9982 (cp_lookup_transparent_type): New
9983 (cp_lookup_transparent_type_loop): New.
9984 * cp-support.h: Declare cp_lookup_transparent_type.
9985 * symtab.c (basic_lookup_transparent_type): Renamed from
9986 lookup_transparent_type.
9987 (lookup_transparent_type): Replace old body by a call to
9988 current_language->la_lookup_transparent_type.
9989 * symtab.h: Update copyright. Declare
9990 basic_lookup_transparent_type.
9991 * language.h: Update copyright.
9992 (struct language_defn): Add la_lookup_transparent_type.
9993 * language.c: Update copyright.
9994 (unknown_language_defn): Add basic_lookup_transparent_type.
9995 (auto_language_defn): Add basic_lookup_transparent_type.
9996 (local_language_defn): Add basic_lookup_transparent_type.
9997 * ada-lang.c: Update copyright.
9998 (ada_language_defn): Add basic_lookup_transparent_type.
9999 * c-lang.c: Update copyright.
10000 (c_language_defn): Add basic_lookup_transparent_type.
10001 (cplus_language_defn): Add basic_lookup_transparent_type.
10002 (asm_language_defn): Add basic_lookup_transparent_type.
10003 (minimal_language_defn): Add basic_lookup_transparent_type.
10004 * f-lang.c: Update copyright.
10005 (f_language_defn): Add basic_lookup_transparent_type.
10006 * jv-lang.c: Update copyright.
10007 (java_language_defn): Add basic_lookup_transparent_type.
10008 * m2-lang.c: Update copyright.
10009 (m2_language_defn): Add basic_lookup_transparent_type.
10010 * objc-lang.c: Update copyright.
10011 (objc_language_defn): Add basic_lookup_transparent_type.
10012 * p-lang.c: Update copyright.
10013 (p_language_defn): Add basic_lookup_transparent_type.
10014 * scm-lang.c: Update copyright.
10015 (scm_language_defn): Add basic_lookup_transparent_type.
10016 * Makefile.in (cp-namespace.o): Depend on frame.h.
10018 2004-01-23 David Carlton <carlton@kealia.com>
10020 Patch for PR c++/1520:
10021 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10022 properly if we have a specification die.
10023 (determine_prefix_aux): Rename from determine_prefix.
10024 (determine_prefix): Like the old determine_prefix, but never
10027 2004-01-23 Theodore A. Roth <troth@openavr.org>
10029 * avr-tdep.c: Update copyright.
10030 (avr_iaddr_p): Delete unused function.
10031 (avr_saddr_p): Delete unused function.
10033 2004-01-23 David Carlton <carlton@kealia.com>
10035 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10036 Fix for PR symtab/1534.
10038 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10040 * NEWS (New native configurations): Mention OpenBSD/sparc and
10042 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10043 * configure.host: Likewise.
10044 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10045 handler for OpenBSD.
10046 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10048 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10050 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10051 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10053 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10054 * cli/cli-cmds.c (shell_escape): Likewise.
10056 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10057 OpenBSD .note.openbsd.ident sections.
10059 2004-01-22 David Carlton <carlton@kealia.com>
10061 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10062 get_scope_pc_bounds.
10063 (read_file_scope): Ditto.
10064 (get_scope_pc_bounds): New function, produced by extracting code
10065 from the above two functions, consolidating it, and adding support
10066 for DW_TAG_namespace.
10068 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10070 * osabi.c (MAX_NOTESZ): New define.
10071 (check_note): New function.
10072 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10075 2004-01-21 Roland McGrath <roland@redhat.com>
10077 * MAINTAINERS (write after approval): Add myself.
10079 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10081 * utils.c (init_page_info): Move declarations of `rows' and
10082 `cols' before the __GO32__-specific code. Move the closing brace
10083 outside the #ifdef __GO32__..#endif block.
10084 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10086 2004-01-21 Paul Brook <paul@codesourcery.com>
10088 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10089 BPSTAT_WHAT_CHECK_SHLIBS.
10091 2004-01-21 Paul Brook <paul@codesourcery.com>
10093 * MAINTAINERS: Add myself to write-after-approval.
10095 2004-01-20 Andrew Cagney <cagney@redhat.com>
10097 * ax-gdb.c (print_axs_value): Delete unused function.
10098 * jv-lang.c (java_lookup_type): Delete unused function.
10099 * cli/cli-dump.c (dump_filetype): Delete unused function.
10100 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10101 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10102 (mips_getstring): Delete unused function.
10103 (pmon_insert_breakpoint): Delete #if0ed function.
10104 (PMON_MAX_BP): Delete #if0ed MACRO.
10105 (mips_pmon_bp_info): Delete #if0ed variable.
10106 (pmon_remove_breakpoint): Delete #if0ed function.
10107 * monitor.c (monitor_write_even_block): Delete unused function.
10108 (monitor_write_memory_block): Delete #if0ed code.
10109 * dink32-rom.c (dink32_load): Delete unused function.
10110 (_initialize_dink32_rom): Delete #if0ed code.
10111 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10113 * tui/tui-command.c: Update references.
10114 * tui/tui-io.c: Update references.
10115 * tui/tui-command.h: Update copyright.
10116 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10118 * source.c (ambiguous_line_spec): Delete never-defined function.
10119 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10120 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10121 * cli/cli-cmds.c (validate_comname): Ditto.
10123 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10125 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10126 (tui_show_disassem): Rename tuiShowDisassem.
10127 (tui_show_disassem_and_update_source): Rename
10128 tuiVerticalDisassemScroll.
10129 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10130 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10131 * tui/tui.h: Update copyright.
10132 (enum tui_status): Define.
10133 * tui/tui-data.h (enum tui_scroll_direction): Define.
10134 * tui/tui-disasm.c: Update copyright. Update references.
10135 * tui/tui-winsource.c: Update copyright. Update references.
10136 * tui/tui-win.c: Update references.
10137 * tui/tui-layout.c: Update references.
10139 2004-01-20 Andrew Cagney <cagney@redhat.com>
10141 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10142 sym2 to start of block.
10144 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10146 * MAINTAINERS: Delete mmalloc.
10147 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10148 * NEWS: Mention removal of --with-malloc.
10149 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10150 * config.in: Regenerate.
10151 * configure: Regenerate.
10152 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10153 USE_MMALLOC, MMCHECK_FORCE.
10154 * gdbinit.in: Remove mmalloc.
10155 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10156 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10157 * config/i386/go32.mh: Likewise.
10158 * config/i386/interix.mh: Likewise.
10159 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10161 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10163 * linespec.c (decode_variable, symtab_from_filename): Call
10164 error_silent with error message instead of throwing an exception
10166 * defs.h (error_silent, error_output_message): Add prototypes.
10167 (catch_exceptions_with_msg): Ditto.
10168 * utils.c (error_silent, error_output_message): New functions.
10169 * top.c (catch_exceptions_with_msg): New function.
10171 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10173 * mi/mi-cmds.h (enum print_values): Add definition.
10175 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10176 type and value for simple data types and just the name and type
10177 for complex ones, if required.
10179 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10180 children, if required.
10182 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10184 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10185 unused declarations.
10187 2004-01-19 Andrew Cagney <cagney@redhat.com>
10189 * top.h (mapped_symbol_files): Delete declaration.
10190 * main.c (captured_main): Delete option "m" and "mapped".
10191 * objfiles.c (mapped_symbol_files): Delete variable.
10192 * symfile.c (symbol_file_command): Delete mmap code.
10193 (symbol_file_add_with_addrs_or_offsets): Ditto.
10194 (add_symbol_file_command, reread_separate_symbols): Ditto.
10195 * objfiles.h (OBJF_MAPPED): Delete.
10196 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10197 (free_objfile) [USE_MMALLOC]: Ditto.
10198 (open_existing_mapped_file): Delete function.
10199 (open_mapped_file): Delete function.
10200 (map_to_file): Delete function.
10202 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10204 * infrun.c (step_into_function): Account for possible breakpoint
10205 adjustment when computing ``stop_func_start''.
10207 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10209 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10210 the region size against the size of a pointer, not the size of
10211 a register as given by DEPRECATED_REGISTER_SIZE.
10213 2004-01-19 Andrew Cagney <cagney@redhat.com>
10215 * tui/tui-regs.h: Include "tui-data.h".
10216 (tuiFirstRegElementNoInLine): Delete declaration.
10217 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10218 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10219 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10220 (tui_calculate_regs_column_count): Rename
10221 tuiCalculateRegsColumnCount.
10222 (tui_check_register_values): Rename tuiCheckRegisterValues.
10223 (tui_show_registers): Rename tuiShowRegisters.
10224 (tui_display_registers_from_line): Rename
10225 tuiDisplayRegistersFromLine.
10226 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10227 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10228 (tui_first_reg_element_no_inline): Rename
10229 tuiFirstRegElementNoInLine.
10230 * tui/tui-data.h: Update copyright.
10231 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10232 * tui/tui-windata.c: Update copyright, update references.
10233 * tui/tui-regs.c: Update copyright, update references.
10234 * tui/tui-win.c: Update copyright, update references.
10235 * tui/tui-layout.c: Update copyright, update references.
10237 2004-01-18 Andrew Cagney <cagney@redhat.com>
10239 * tui/tui-io.c: Update copyright.
10240 (key_is_end_sequence, key_is_backspace): New functions.
10241 (key_is_command_char, key_is_start_sequence): New function.
10242 (tui_getc): Update references.
10243 * tui/tui-io.h: Update copyright.
10244 (m_tuiStartNewLine): Delete macro.
10245 (m_isBackspace, m_isDeleteChar): Delete macros.
10246 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10247 (m_isNextPage, m_isPrevPage): Delete macros.
10248 (m_isLeftArrow, m_isRightArrow): Delete macros.
10249 (m_isXdbStyleCommandChar): Delete macro.
10250 (key_is_start_sequence): Declare, replace m_isStartSequence.
10251 (key_is_end_sequence): Declare, replace m_isEndSequence.
10252 (key_is_backspace): Declare ,replace m_isBackspace.
10253 (key_is_command_char): Declare, replace m_isCommandChar.
10254 * tui/tui-command.c: Update copyright.
10255 (tuiDispatchCtrlChar): Update references.
10257 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10260 * tui/tui-command.c: Rename tui/tuiCommand.c.
10261 * tui/tui-command.h: Rename tui/tuiCommand.h.
10262 * tui/tui-data.c: Rename tui/tuiData.c.
10263 * tui/tui-data.h: Rename tui/tuiData.h.
10264 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10265 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10266 * tui/tui-io.c: Rename tui/tuiIO.c.
10267 * tui/tui-io.h: Rename tui/tuiIO.h.
10268 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10269 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10270 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10271 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10272 * tui/tui-source.c: Rename tui/tuiSource.c.
10273 * tui/tui-source.h: Rename tui/tuiSource.h.
10274 * tui/tui-stack.c: Rename tui/tuiStack.c.
10275 * tui/tui-stack.h: Rename tui/tuiStack.h.
10276 * tui/tui-win.c: Rename tui/tuiWin.c.
10277 * tui/tui-win.h: Rename tui/tuiWin.h.
10278 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10279 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10280 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10281 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10282 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10283 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10284 * tui/tui-file.c: Update includes.
10285 * tui/tui-hooks.c: Update includes.
10286 * tui/tui-interp.c: Update includes.
10287 * tui/tui.c: Update includes.
10288 * Makefile.in: Update all tui/ dependencies.
10289 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10291 * Makefile.in: Update copyright. Update dependencies.
10293 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10296 2004-01-18 Andrew Cagney <cagney@redhat.com>
10298 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10299 instead of register_gdbarch_init.
10301 * remote-sds.c (tohex): Delete unused function. Update copyright.
10302 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10303 * v850-tdep.c (v850_register_virtual_size): Ditto.
10304 * target.c (normal_target_post_startup_inferior): Ditto.
10305 * source.c (ambiguous_line_spec): Ditto.
10306 * remote.c (adapt_remote_get_threadinfo): Ditto.
10307 * mi/mi-out.c (out_field_fmt): Ditto.
10308 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10309 (output_control_change_notification): Ditto.
10310 * m68k-tdep.c (m68k_register_byte): Ditto.
10311 (m68k_remote_breakpoint_from_pc): Ditto.
10312 * ui-out.c (init_ui_out_state): Delete unused declaration.
10313 * stabsread.c (search_value): Ditto.
10314 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10315 * maint.c (print_section_table): Ditto.
10316 * infrun.c (set_follow_fork_mode_command): Ditto.
10318 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10320 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10321 DW_CFA_def_cfa_exporession. Add support for
10322 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10323 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10325 2004-01-18 Andrew Cagney <cagney@redhat.com>
10327 * ocd.c: Update copyright.
10328 (bdm_read_register_command): Delete unused function.
10329 (_initialize_remote_ocd): Delete commented out reference.
10330 (get_quoted_char, reset_packet): Delete #if0ed function.
10331 (output_packet, put_quoted_char): Delete #if0ed function.
10332 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10333 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10334 (BDM_BREAKPOINT): Delete #if0ed macro.
10335 (remote_timeout): Delete #if0ed variable.
10337 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10339 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10340 (core-sol2.o): Remove dependency.
10341 * core-sol2.c: Remove file.
10343 2004-01-17 Andrew Cagney <cagney@redhat.com>
10345 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10346 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10349 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10351 * remote.c: Update copyright years.
10353 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10355 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10357 2004-01-17 Andrew Cagney <cagney@redhat.com>
10359 * mdebugread.c: Update copyright.
10360 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10361 (parse_type, parse_procedure): Ditto.
10362 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10364 * cris-tdep.c (cris_store_struct_return): Put back accidently
10367 * gdbarch.sh: Update copyright year.
10368 * gdbarch.h, gdbarch.c: Re-generate.
10370 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10372 Suggested by George Anzinger.
10373 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10374 correct stack offset. Include unknown opcode numbers in the error
10377 2004-01-17 Andrew Cagney <cagney@redhat.com>
10379 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10380 extract_struct_value_address, i386 does not set it.
10381 * sparc64-tdep.c (sparc64_init_abi): Do not set
10382 extract_struct_value_address, never called.
10383 (sparc64_extract_struct_value_address): Delete function.
10384 * m68hc11-tdep.c: Update copyright.
10385 (m68hc11_gdbarch_init): Delete redundant assignment of
10386 extract_struct_value_address.
10387 * i386-tdep.c: Update copyright.
10388 (i386_gdbarch_init): Do not set extract_struct_value_address,
10390 (i386_extract_struct_value_address): Delete function.
10391 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10392 extract_struct_value_address, never called.
10393 (sparc32_extract_struct_value_address): #if 0 function. Add
10394 comments explaining its future.
10396 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10398 * arm-tdep.c (arm_write_pc): New function.
10399 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10401 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10403 * breakpoint.c (must_shift_inst_regs): Delete.
10404 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10405 and SHIFT_INST_REGS.
10406 * infcmd.c (step_1, step_1_continuation): Delete references to
10408 * infrun.c (keep_going): Likewise.
10409 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10410 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10412 2004-01-17 Andrew Cagney <cagney@redhat.com>
10414 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10415 * gdbarch.h, gdbarch.c: Re-generate.
10416 * infcmd.c (print_return_value): Delete reference to
10417 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10419 * cris-tdep.c (cris_gdbarch_init): Do not set
10420 deprecated_extract_struct_value_address.
10422 * xstormy16-tdep.c: Update copyright.
10423 (xstormy16_extract_struct_value_address): Update to current
10424 extract struct value address interface.
10425 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10426 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10427 current extract struct value address interface.
10428 (sh64_gdbarch_init): Set extract_struct_value_address.
10430 * cris-tdep.c: Update copyright.
10431 (cris_extract_struct_value_address): Delete function.
10432 (struct_return_address): Delete variable.
10433 (cris_store_struct_return): Do not set struct_return_address.
10435 * mcore-tdep.c: Update copyright.
10436 (mcore_extract_struct_value_address): Delete function. Update
10438 (mcore_gdbarch_init): Update.
10439 * mn10300-tdep.c: Update copyright.
10440 (mn10300_extract_struct_value_address): Delete function.
10441 (mn10300_gdbarch_init): Update.
10442 * v850-tdep.c: Update copyright.
10443 (v850_extract_struct_value_address): Delete.
10444 (v850_gdbarch_init): Update.
10445 * ns32k-tdep.c: Update copyright.
10446 (ns32k_extract_struct_value_address): Delete.
10447 (ns32k_gdbarch_init): Update.
10448 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10449 (hppa_gdbarch_init): Update.
10450 * vax-tdep.c: Update copyright.
10451 (vax_extract_struct_value_address): Delete.
10452 (vax_gdbarch_init): Update.
10454 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10455 * gdbarch.h, gdbarch.c: Re-generate.
10456 * procfs.c (procfs_fetch_registers): Delete reference to
10457 DEPRECATED_NPC_REGNUM.
10458 (procfs_store_registers): Ditto.
10459 * regcache.c (generic_target_write_pc): Simplify.
10460 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10462 * core-sol2.c (fetch_core_registers): Replace
10463 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10465 * hppa-tdep.c: Update copyright year.
10466 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10468 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10470 * mips-tdep.c (mips_write_pc): New function.
10471 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10472 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10473 (mips_find_saved_regs, mips_software_single_step: Ditto.
10474 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10475 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10477 2004-01-17 Andrew Cagney <cagney@redhat.com>
10479 * mips-tdep.c: Re-indent. Group functions by ABI.
10481 2004-01-17 Andrew Cagney <cagney@redhat.com>
10483 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10484 * gdbarch.c: Re-generate.
10485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10486 DECR_PC_AFTER_BREAK to zero.
10487 * vax-tdep.c (vax_gdbarch_init): Ditto.
10488 * v850-tdep.c (v850_gdbarch_init): Ditto.
10489 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10490 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10491 * sh-tdep.c (sh_gdbarch_init): Ditto.
10492 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10493 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10494 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10495 * mips-tdep.c (mips_gdbarch_init): Ditto.
10496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10498 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10499 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10500 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10501 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10502 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10503 * frv-tdep.c (frv_gdbarch_init): Ditto.
10504 * cris-tdep.c (cris_gdbarch_init): Ditto.
10505 * avr-tdep.c (avr_gdbarch_init): Ditto.
10506 * arm-tdep.c (arm_gdbarch_init): Ditto.
10507 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10509 2004-01-17 J. Brobecker <brobecker@gnat.com>
10511 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10512 Delete, no longer used.
10513 (read_subrange_type): New function, mostly extracted from
10515 (read_array_type): Replace extracted code by call to
10516 read_subrange_type().
10517 (dwarf2_get_attr_constant_value): New function.
10518 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10519 (add_partial_symbol): Likewise.
10520 (process_die): Likewise.
10521 (new_symbol): Likewise.
10522 (read_type_die): Likewise.
10524 2004-01-16 Andrew Cagney <cagney@redhat.com>
10526 * symfile.c: Update copyright year.
10527 (compare_symbols): Delete unused function.
10528 * stabsread.c: Update copyright year.
10529 (lrs_general_complaint): Delete unused function.
10530 (ref_search_value): Ditto.
10531 (get_substring): Delete declaration.
10532 * sh64-tdep.c: Update copyright year.
10533 (sh64_get_gdb_regnum): Delete unused function.
10534 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10535 Delete unused function.
10537 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10539 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10540 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10542 2004-01-16 Andrew Cagney <cagney@redhat.com>
10544 Changes from Peter Schauer.
10545 * rs6000-tdep.c: Update copyright year.
10546 (rs6000_push_dummy_call): Update the stack pointer before
10547 accessing the corresponding stack region.
10548 * rs6000-nat.c: Update copyright year.
10549 (set_host_arch): Set "info.abfd" to "exec_bfd".
10551 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10553 * blockframe.c: Update copyright year.
10554 (inside_entry_func): Don't treat a zero PC specially.
10556 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10558 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10560 (gcore_create_callback): Ditto. Skip any memory segment that has
10561 no permissions set.
10563 2004-01-14 David Carlton <carlton@kealia.com>
10565 Change symbols for C++ nested types to contain the fully qualified
10566 name, if possible. (At least in the DWARF-2 case.) Partial fix
10567 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10569 * c-exp.y (qualified_type): Handle types nested within classes.
10570 * cp-namespace.c: Update comments.
10571 (cp_set_block_scope): Delete #if 0.
10572 (cp_lookup_nested_type): Handle types nested within classes.
10573 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10575 (add_partial_symbol): Add the name of the enclosing namespace to
10577 (pdi_needs_namespace): New.
10578 (add_partial_namespace): Tweak comment.
10579 (add_partial_structure): New.
10580 (psymtab_to_symtab_1): Initialize processing_current_prefix
10582 (process_die): instead of here.
10583 (read_structure_scope): Try to figure out the name of the class or
10584 namespace that the structure might be defined within.
10585 (read_enumeration): Generate fully-qualified names, if possible.
10586 (read_namespace): Don't set name to NULL.
10587 (die_specification): New.
10588 (new_symbol): Generate fully-qualified names for types.
10589 (read_type_die): Determine appropriate prefix.
10590 (determine_prefix): New.
10591 (typename_concat): New.
10593 * valops.c (value_aggregate_elt): Pass NOSIDE to
10594 value_struct_elt_for_reference.
10595 (value_struct_elt_for_reference): Make static, add NOSIDE
10596 parameter, call value_maybe_namespace_elt as a last resort.
10597 (value_namespace_elt): Break out code into
10598 value_maybe_namespace_elt.
10599 (value_maybe_namespace_elt): New.
10601 2004-01-12 Andrew Cagney <cagney@redhat.com>
10603 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10604 cooked floating-point registers.
10605 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10606 and value_to_register.
10608 2004-01-13 Andrew Cagney <cagney@redhat.com>
10610 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10611 * gdbarch.c: Re-generate.
10612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10613 FUNCTION_START_OFFSET.
10614 * v850-tdep.c (v850_gdbarch_init): Ditto.
10615 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10616 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10617 * sh-tdep.c (sh_gdbarch_init): Ditto.
10618 * s390-tdep.c (s390_gdbarch_init): Ditto.
10619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10620 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10622 * mips-tdep.c (mips_gdbarch_init): Ditto.
10623 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10624 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10626 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10627 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10628 * i386-tdep.c (i386_gdbarch_init): Ditto.
10629 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10630 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10631 * frv-tdep.c (frv_gdbarch_init): Ditto.
10632 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10633 * cris-tdep.c (cris_gdbarch_init): Ditto.
10634 * avr-tdep.c (avr_gdbarch_init): Ditto.
10635 * arm-tdep.c (arm_gdbarch_init): Ditto.
10636 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10638 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10640 * infrun.c (follow_fork_mode_ask): Remove.
10641 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10642 (follow_fork): Simplify and remove internal error for
10643 follow_fork_mode_ask.
10644 (_initialize_infrun): Update "set follow-fork-mode" help text.
10646 2004-01-13 Andrew Cagney <cagney@redhat.com>
10648 * configure.in: Update copyright year.
10649 (build_warnings): Add -Wunused-label.
10650 * configure: Re-generate.
10652 2004-01-12 Andrew Cagney <cagney@redhat.com>
10654 * exec.h (exec_ops): Make "extern".
10656 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10657 the function is void.
10658 (mips_pseudo_register_write): Ditto.
10660 2004-01-12 Andrew Cagney <cagney@redhat.com>
10662 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10663 call. Never defined.
10664 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10665 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10666 (struct sparc_gregset, struct regcache): Ditto.
10667 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10669 2004-01-12 Andrew Cagney <cagney@redhat.com>
10671 * mi/ChangeLog: Delete file. Renamed to ...
10672 * mi/ChangeLog-1999-2003: New file.
10673 * tui/ChangeLog: Delete file. Renamed to ...
10674 * tui/ChangeLog-1998-2003: New file.
10676 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10678 * sparc64nbsd-tdep.c: Include "regset.h".
10679 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10681 (fetch_core_registers): Remove function.
10682 (sparc64nbsd_core_fns): Remove variable.
10683 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10685 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10686 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10687 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10689 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10690 sparc_extract_struct_value_address.
10691 (sparc32_gdbarch_init): Set extract_struct_value_address.
10692 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10694 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10695 return_value_on_stack.
10697 * NEWS: Mention that %cs and %ss have been added to the AMD64
10700 * frame.c: Update copyright year.
10701 (get_prev_frame): Improve comment.
10703 * sparc64fbsd-tdep.c: Include "regset.h".
10704 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10706 (fetch_core_registers): Remove function.
10707 (sparc64fbsd_core_fns): Remove variable.
10708 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10710 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10711 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10712 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10714 * sparcnbsd-tdep.c: Include "regset.h".
10715 (fetch_core_registers): Remove function.
10716 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10717 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10719 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10721 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10723 * sparc-tdep.h (struct regset): Provide opaque declaration.
10724 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10725 fpregset and sizeof_fpregset members.
10726 * sparc-tdep.c (struct regset): Provide opaque declaration.
10727 (sparc_regset_from_core_section): New function.
10728 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10729 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10730 Set regset_from_core_section when appropriate.
10732 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10734 * x86-64-tdep.c (amd64_non_pod_p): New function.
10735 (amd64_classify_aggregate): Return class memory for non-POD
10736 C++ structure types.
10738 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10739 argument. Use it to reserve a register if necessary.
10740 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10741 amd64_push_arguments.
10743 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10745 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10746 register numbers in comments.
10747 * x86-64-tdep.h: Update copyright year.
10748 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10749 Adjust for addition of %cs and %ss.
10750 * amd64fbsd-nat.c: Update copyright year.
10751 (reg_offset): Add register offsets for %cs and %ss.
10752 * amd64fbsd-tdep.c: Update copyright year.
10753 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10754 (amd64fbsd_sc_reg_offset): Likewise.
10755 * x86-64-linux-nat.c: Update copyright year.
10756 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10758 * amd64nbsd-nat.c: Update copyright year.
10759 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10760 * amd64nbsd-tdep.c: Update copyright year.
10761 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10762 * x86-64-linux-tdep.c: Update copyright year.
10763 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10764 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10765 * regformats/reg-x86-64.dat: Add %cs and %ss.
10767 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10768 variables to prevent long lines. Update comments to reflect
10771 2004-01-09 David Carlton <carlton@kealia.com>
10773 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10774 * dwarf2read.c (read_namespace): Pull out name-generating code
10775 into namespace_name. Rename previous_namespace to previous_prefix
10776 and processing_current_namespace to processing_current_prefix..
10777 (namespace_name): New function.
10778 (add_partial_symbol): Substitute uses of pdi->name with
10780 * cp-support.h: Rename processing_current_namespace to
10781 processing_current_prefix.
10782 Update copyright year.
10783 * cp-namespace.c: Rename processing_current_namespace to
10784 processing_current_prefix.
10785 Update copyright year.
10787 2004-01-09 Andrew Cagney <cagney@redhat.com>
10789 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10791 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10793 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10795 (process_one_symbol): Deal with N_PATCH stabs.
10797 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10799 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10801 Update copyright year.
10803 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10805 * config/pa/tm-hppa.h: Update extern declarations for
10806 hppa32_hpux_frame_saved_pc_in_sigtramp,
10807 hppa32_hpux_frame_base_before_sigtramp, and
10808 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10810 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10812 * config/pa/tm-hppah.h: Update copyright years.
10814 2004-01-08 Andrew Cagney <cagney@redhat.com>
10816 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10817 (mips_o32_reg_struct_has_addr): Delete function.
10818 (mips_gdbarch_init): Update.
10819 (mips_extract_struct_value_address): Delete function.
10821 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10823 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10826 2004-01-07 Andrew Cagney <cagney@redhat.com>
10828 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10829 architecture's elf flags (when available).
10831 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10832 FPU to the start, check the MIPS FPU when looking for an old
10834 (set_mipsfpu_single_command): Update the architecture.
10835 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10837 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10838 (mips_mask_address_p): Add "tdep" parameter.
10839 (show_mask_address, mips_addr_bits_remove): Update.
10840 (mips_dump_tdep): Update.
10841 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10842 (MIPS_STACK_ARGSIZE): Delete macro.
10843 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10844 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10845 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10846 (mips_dump_tdep): Update.
10847 (MIPS_SAVED_REGSIZE): Delete macro.
10848 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10849 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10850 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10851 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10852 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10853 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10854 (mips_pop_frame, return_value_location): Update.
10855 (mips_n32n64_return_value, mips_dump_tdep): Update.
10857 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10860 * mips-tdep.c: Update copyright.
10861 (mips_gdbarch_init): Merge two code blocks handling the register
10862 name and number layout.
10864 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10866 * tracepoint.c (validate_actionline): Fix segv at EOF
10868 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10870 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10871 properly for static fields.
10873 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10874 Jason Molenda <jmolenda@apple.com>
10876 * disasm.c: Update copyright to include 2004.
10877 (do_mixed_source_and_assembly): For uiout asm list
10878 and tuple cleanups, initialize to null_cleanup instead of
10879 NULL and do so prior to loop. Only reset when we close off
10880 the tuple/list. Move check for whether to close off the
10881 asm tuple/list to after dump_insns call where it will be run
10882 on each loop iteration.
10884 2004-01-05 Andrew Cagney <cagney@redhat.com>
10886 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10887 should be a switch case and not a label.
10888 * mips-tdep.c (mips32_next_pc): Delete unused labels
10889 "greater_equal_branch" and "less_zero_branch".
10890 * jv-valprint.c (java_print_value_fields): Delete unused label
10893 * target.c (unpush_target): Only close a target that is in the
10896 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10898 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10899 address from [sp + 64] instead of %o2.
10901 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10902 fixes PR backtrace/1476.
10904 2004-01-05 Andrew Cagney <cagney@redhat.com>
10906 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10907 move to start of file.
10908 * i386-tdep.h (struct regcache): Add opaque declaration.
10909 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10911 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10912 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10913 * win32-nat.c (fake_create_process): Use ISO C style definition.
10914 * stabsread.c (define_symbol): Delete #ifndef
10915 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10916 stabs_argument_has_addr call, macro never defined.
10918 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10920 * op50-rom.c: Delete.
10921 * w89k-rom.c: Delete.
10922 * Makefile.in: Remove references.
10924 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10926 * x86-64-tdep.c: Update copyright year.
10927 (struct amd64_register_info): Rename from x86_64_register_info.
10928 (amd64_register_info): Rename from x86_64_register_info.
10929 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10930 (amd64_register_name): Rename from x86_64_register_name.
10931 (amd64_register_type): Rename from x86_64_register_type.
10932 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10933 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10934 (amd64_dwarf_reg_to_regnum): Rename from
10935 x86_64_dwarf_reg_to_regnum.
10936 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10937 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10938 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10939 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10940 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10941 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10942 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10943 (amd64_frame_cache): Rename from x86_64_frame_cache.
10944 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10945 (amd64_frame_prev_register): Rename from
10946 x86_64_frame_prev_register.
10947 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10948 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10949 (amd64_sigtramp_frame_cache): Rename from
10950 x86_64_sigtramp_frame_cache.
10951 (amd64_sigtramp_frame_prev_register): Rename from
10952 x86_64_sigtramp_frame_prev_register.
10953 (amd64_sigtramp_frame_unwind): Rename from
10954 x86_64_sigtramp_frame_unwind.
10955 (amd64_sigtramp_frame_sniffer): Rename from
10956 x86_64_sigtramp_frame_sniffer.
10957 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10958 (amd64_frame_base): Rename from x86_64_frame_base.
10959 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10960 (amd64_frame_align): Rename from x86_64_frame_align.
10961 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10962 (amd64_regset_from_core_section): Rename from
10963 x86_64_regset_from_core_section.
10964 (x86_64_init_abi): Update comments.
10966 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10968 * MAINTAINERS (write after approval): Add myself.
10970 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10972 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10975 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10977 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10978 such that it mentions a specific version of GCC that exhibits this
10981 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10983 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10984 structure that has a single `float' member, store it in %f1 in
10987 * sparc-sol2-nat.c: Add missing '\'.
10989 * sparc-tdep.c (sparc32_return_value): New function.
10990 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10992 (sparc32_gdbarch_init): Set return_value, don't set
10993 extract_return_value, store_return_value, use_struct_convention
10994 and return_value_on_stack.
10996 * sparc-sol2-nat.c: Add missing ')'.
10998 2004-01-03 J. Brobecker <brobecker@gnat.com>
11000 * infrun.c (handle_step_into_function): New function.
11001 (handle_inferior_event): Extract out some code into the new
11004 2004-01-03 J. Brobecker <brobecker@gnat.com>
11006 * infrun.c (handle_inferior_event): Move the declaration of
11007 real_stop_pc inside the if blocks where it is used.
11009 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11011 * sparc64-tdep.c (sparc64_16_byte_align_p)
11012 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11013 Use check_typedef to get subtypes of structures and unions.
11014 (sparc64_store_return_value): Fix calculation of the appropriate
11015 offset into VALBUF when storing a structure or union.
11016 (sparc64_return_value): New function.
11017 (sparc64_use_struct_convention): Remove function.
11018 (sparc64_init_abi): Set return_value, don't set
11019 extract_return_value, store_return_value and
11020 use_struct_convention.
11022 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11024 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11025 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11026 gdb/config/alpha/xm-alphaosf.h,
11027 gdb/config/powerpc/tm-ppcle-eabi.h,
11028 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11029 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11030 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11031 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11032 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11033 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11034 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11035 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11036 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11037 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11038 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11039 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11040 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11041 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11042 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11043 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11044 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11045 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11046 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11047 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11048 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11049 Remove lines for .cvsignore files.
11051 2004-01-03 J. Brobecker <brobecker@gnat.com>
11053 * infrun.c: Back out the previous change.
11055 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11057 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11058 sparc-*-sunos4* to the list of REMOVED configurations.
11060 * configure.tgt: Add back sparc-*-vxworks*.
11061 * remote-vxsparc.c: Remove all includes except for "defs.h",
11062 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11063 Include "sparc-tdep.h".
11064 (SPARC_R_G1): New define.
11065 (vxsparc_gregset): New variable.
11066 (ext_format_sparc): Remove extern declaration.
11067 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11068 sparc32_supply_fpregset.
11069 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11070 sparc_collect_rwindow and sparc32_collect_fpregset.
11071 * config/sparc/tm-vxworks.h: New file, based on recently removed
11073 * config/sparc/vxworks.mt: New file, based on recently removed
11076 2004-01-03 J. Brobecker <brobecker@gnat.com>
11078 * infrun.c (handle_step_into_function): New function.
11079 (handle_inferior_event): Extract out some code into the new
11082 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11084 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11085 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11086 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11087 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11088 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11089 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11090 (sparc_nat_h): New variable.
11091 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11092 (tm-sun4os4.h): Remove dependency.
11093 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11094 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11095 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11096 sparc-tdep.o): Update dependencies.
11097 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11098 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11099 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11101 * configure.host: Remove existing sparc-*-lynxos*,
11102 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11103 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11104 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11105 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11107 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11108 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11109 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11110 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11111 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11112 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11113 sparc64-*-solaris2* and sparc64-*-* triplets.
11114 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11115 "symtab.h" and "objfiles.h".
11116 (BIAS): Remove define.
11117 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11118 (X_DISP19): Remove macros.
11119 (sparc_fetch_instruction): Remove function.
11120 (struct gdbarch_tdep): Remove definition.
11121 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11122 (sparc_breakpoint_from_pc): Remove function.
11123 (struct sparc64_frame_cache): Remove definition.
11124 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11125 sparc64_unwind_pc): Remove functions.
11126 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11127 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11128 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11129 (sparc64_frame_cache): Change return type to `struct
11130 sparc_frame_cache *'. Simply call sparc_frame_cache.
11131 (sparc64_frame_this_id, sparc64_frame_prev_register,
11132 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11133 instead of `struct sparc64_frame_cache.
11134 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11135 sparc_analyze_control_transfer, sparc_software_single_step,
11136 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11137 _initialize_sparc64_tdep): Remove functions.
11138 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11139 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11141 (sparc64_supply_gregset, sparc64_collect_gregset,
11142 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11143 (sparc64_init_abi): New function.
11144 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11145 inclusion guard. Include "sparc-tdep.h".
11147 (r_tstate_offset, r_fprs_offset): New defines.
11148 (enum sparc_regnum): Remove defenition.
11149 (enum sparc64_regnum): Reformat.
11150 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11151 (sparc64_init_abi, sparc64_supply_gregset,
11152 sparc64_collect_gregset, sparc64_supply_fpregset,
11153 sparc64_collect_fpregset): New prototypes.
11154 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11155 Add extern declarations.
11156 (sparc64_sol2_init_abi): New prototype.
11157 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11158 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11160 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11162 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11164 (_initialize_sparc64fbsd_nat): Remove initialization of
11165 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11166 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11167 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11168 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11169 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11170 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11171 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11172 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11173 (sparc64fbsd_r_y_offset): Remove variables.
11174 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11175 Make static and const.
11176 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11177 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11179 (sparc64fbsd_gregset): New variable.
11180 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11181 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11182 and sparc64_supply_fpregset.
11183 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11184 (sparc64fbsd_sigtramp_frame_this_id)
11185 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11186 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11187 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11188 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11189 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11190 * sparcnbsd-tdep.c: Update copyright year. Include
11191 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11192 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11193 "value.h" and "sparcnbsd-tdep.h".
11194 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11195 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11196 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11197 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11199 (sparcnbsd_gregset): New variable.
11200 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11201 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11202 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11203 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11204 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11206 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11207 (sparc32nbsd_sigcontext_frame_this_id)
11208 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11209 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11210 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11211 (sparcnbsd_get_longjmp_target_32,
11212 sparcnbsd_get_longjmp_target_64): Remove functions.
11213 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11214 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11215 sparcnbsd_init_elf): Remove.
11216 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11217 (sparcnbsd_elf_init_abi): New functions.
11218 (_initialize_sparcnbsd_tdep): New prototype.
11219 (_initialize_sparnbsd_tdep): Update.
11220 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11221 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11222 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11223 * config/sparc/linux.mh: Update comment.
11224 (XM_FILE, HOST_IPC): Remove variables.
11225 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11227 * config/sparc/linux.mt: Update comment.
11228 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11229 * config/sparc/nbsd.mt: Reformat.
11230 * config/sparc/nbsd64.mh: Update comment.
11231 (NATDEPFILES): Add sparc-nat.o.
11232 * config/sparc/nbsd64.mt: Update comment.
11233 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11234 (TM_FILE): Set to tm-nbsd.h.
11235 * config/sparc/nbsdelf.mh: Update comment.
11236 (NATDEPFILES): Add sparc-nat.o.
11238 * config/sparc/nbsdaout.mh: Update comment.
11239 (NATDEPFILES): Add sparc-nat.o
11241 * config/sparc/nm-linux.h: Update copyright year. Don't include
11242 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11244 (KERNEL_U_SIZE): Remove define.
11245 (kernel_u_size): Remove prototype.
11246 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11247 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11249 (CHILD_PREPARE_TO_STORE): Remove define.
11250 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11251 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11252 sparcnbsd-nat.c: Rewrite files.
11253 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11254 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11255 sparcnbsd-tdep.h: Remove files.
11256 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11257 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11258 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11259 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11260 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11261 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11262 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11263 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11264 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11265 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11266 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11267 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11268 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11269 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11270 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11271 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11272 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11273 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11274 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11276 2004-01-02 Andrew Cagney <cagney@redhat.com>
11278 From 2003-12-18 Kazuhiro Inaoka:
11279 * configure.host: Add m32r-linux target.
11281 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11283 * top.c (print_gdb_version): Update year to 2004.
11285 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11287 * MAINTAINERS: Add myself to the write-after-approval category.
11289 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11291 From Bernardo Innocenti <bernie@develer.com>:
11292 * configure.tgt: Add uClinux target.
11294 2004-01-02 Andrew Cagney <cagney@redhat.com>
11296 * utils.c (do_my_cleanups): Make static, add forward declaration.
11297 * defs.h (do_my_cleanups): Delete declaration.
11299 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11301 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11302 bfd/ChangeLog-0203.
11304 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11306 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11307 in <machine/reg.h>.
11308 * configure, config.in: Regenerate.
11310 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11311 tui/ChangeLog-1998-2003.
11317 version-control: never