1 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3 * PROBLEMS: Mention build/1411.
5 2004-08-09 Robert Millan <robertmh@gnu.org>
7 Committed by Nathanael Nerode.
8 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
9 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
11 2004-08-12 Andrew Cagney <cagney@gnu.org>
13 * NEWS: Mention fixes in GDB 6.2.1.
14 * PROBLEMS: Remove mention of mips-irix.
16 2004-08-11 Joel Brobecker <brobecker@gnat.com>
18 * config/powerpc/xm-aix.h: Delete.
19 * config/powerpc/aix.mh (MH_FILE): Remove.
20 * config/powerpc/aix432.mh (MH_FILE): Remove.
22 2004-08-11 Joel Brobecker <brobecker@gnat.com>
24 * config/powerpc/aix.mh: Remove obsolete comment.
25 * config/powerpc/aix432.mh: Likewise.
27 2004-08-11 Joel Brobecker <brobecker@gnat.com>
29 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
31 2004-08-11 Joel Brobecker <brobecker@gnat.com>
33 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
34 this file is now empty.
35 * config/xm-aix4.h: Remove, this file is no longer included
38 2004-08-11 Joel Brobecker <brobecker@gnat.com>
40 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
41 that file is now empty.
42 (termdef): Remove prototype, function no longer used.
44 2004-08-11 Joel Brobecker <brobecker@gnat.com>
46 * doc/gdbint.texinfo (Host Definition): Remove documentation
47 for USE_O_NOCTTY, no longer used.
48 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
49 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
51 2004-08-11 Joel Brobecker <brobecker@gnat.com>
53 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
54 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
55 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
57 2004-08-11 Mark Kettenis <kettenis@gnu.org>
59 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
60 instead of FIVE_ARG_PTRACE.
62 * inflow.c (O_NOCTTY): Define to zero if not already defined.
63 (new_tty): Use O_NOCTTY unconditionally.
65 2004-08-10 Mark Kettenis <kettenis@gnu.org>
67 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
68 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
71 2004-08-10 Joel Brobecker <brobecker@gnat.com>
73 * xcoff_symfile_finish: Replace last call to xmfree by call
76 2004-08-10 Andrew Cagney <cagney@gnu.org>
78 * main.c (captured_main): Delete call to init_malloc.
79 * defs.h (init_malloc): Delete declaration.
80 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
81 (init_malloc): Delete functions.
83 * defs.h (xmfree): Delete.
84 * utils.c (xmfree): Delete function.
85 (xfree): Inline calls to xmfree and mfree.
86 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
87 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
88 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
89 * somread.c (som_symfile_finish): Ditto.
90 * objfiles.c (allocate_objfile, free_objfile):
91 * nlmread.c (nlm_symfile_finish): Ditto.
92 * hpread.c (hpread_symfile_finish): Ditto.
93 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
94 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
95 * coffread.c (coff_symfile_finish): Ditto.
97 * defs.h (xmcalloc): Delete declaration.
98 * utils.c (xmcalloc): Delete.
99 (xcalloc): Inline calls to xmcalloc and mcalloc.
100 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
102 * symtab.c (create_demangled_names_hash): Ditto.
104 * defs.h (xmrealloc): Delete.
105 * utils.c (xmrealloc): Delete.
106 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
107 * symmisc.c (extend_psymbol_list): Use xrealloc.
108 * source.c (find_source_lines): Ditto.
109 * hpread.c (hpread_lookup_type): Ditto.
110 * dbxread.c (add_bincl_to_list): Ditto.
112 * utils.c (xmmalloc): Delete.
113 (xmalloc): Inline xmmalloc and mmalloc calls.
114 (msavestring): Use xmalloc.
115 * defs.h (xmmalloc): Delete declaration.
116 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
118 * symmisc.c (extend_psymbol_list): Ditto.
119 * symfile.c (init_psymbol_list): Ditto.
120 * source.c (find_source_lines): Ditto.
121 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
122 * elfread.c (elf_symtab_read): Ditto.
123 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
124 * coffread.c (coff_symfile_init): Ditto.
126 2004-08-10 David Carlton <carlton@bactrian.org>
128 * MAINTAINERS: Remove David Carlton from c++ testsuite
131 2004-08-10 Jerome Guitton <guitton@gnat.com>
133 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
134 print a line feed before the prompt.
136 2004-08-10 Mark Kettenis <kettenis@gnu.org>
138 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
140 2004-08-09 Joel Brobecker <brobecker@gnat.com>
142 General cleanup of the AIX xm include file:
143 * config/xm-aix4.h (fd_set): Remove undefine.
144 Remove include of <sys/select.h>.
145 (HAVE_TERMIO): Remove define.
147 (NULL): Remove redefine.
148 (alloca): Remove #pragma.
149 (vfork): Remove define.
151 (SIGWINCH_HANDLER): Remove.
152 (SIGWINCH_HANDLER_BODY): Remove.
154 2004-08-09 Mark Kettenis <kettenis@gnu.org>
156 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
157 GDB_OSABI_OPENBSD_ELF.
159 2004-08-07 Robert Millan <robertmh@gnu.org>
161 * bsd-kvm.c: Check for nlist.h before including it.
163 2004-08-09 Mark Kettenis <kettenis@gnu.org>
165 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
166 sigcontext' offset consistency checks for ancient BSD.
168 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
170 * configure.in: Check for <sys/types.h>. Check return and
171 argument types of ptrace.
172 * configure, config.in: Regenerate.
174 2004-08-09 Jim Blandy <jimb@redhat.com>
176 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
177 rs6000_register_sim_regno): Doc fixes.
179 2004-08-08 Joel Brobecker <brobecker@gnat.com>
181 * mips-tdep.c: Include "floatformat.h".
182 (n32n64_floatformat_always_valid): New function.
183 (floatformat_n32n64_long_double_big): New constant.
184 (mips_gdbarch_init): Set size and format of long double
185 for N32 and N64 ABIs.
186 * Makefile.in (mips-tdep.o): Update dependencies.
188 2004-08-08 Andrew Cagney <cagney@gnu.org>
190 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
191 print. Improve script's error messages.
192 * gdbarch.h: Re-generate.
194 * gdbarch.sh (pformat): New function.
195 (float_format, double_format, long_double_format): List with bit
196 members. Use pformat when printing.
197 * gdbarch.c, gdbarch.h: Re-generate.
199 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
201 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
202 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
203 (ppcnbsd_supply_pcb): New function.
204 (_initialize_ppcnbsd_nat): New prototype and function.
205 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
206 (LOADLIBES): New variable.
207 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
209 2004-08-08 Andrew Cagney <cagney@gnu.org>
211 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
212 (builtin_type_ieee_double, builtin_type_ia64_quad)
213 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
214 BE/LE floating-point types.
215 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
216 (builtin_type_ieee_double, builtin_type_ia64_quad)
217 (builtin_type_ia64_spill): Declare.
218 * doublest.c (_initialize_doublest, floatformat_ieee_single)
219 (floatformat_ieee_double, floatformat_arm_ext)
220 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
221 of LE/BE floatformats.
222 * doublest.h: (struct floatformat, floatformat_ieee_single)
223 (floatformat_ieee_double, floatformat_arm_ext)
224 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
226 2004-08-08 Mark Kettenis <kettenis@gnu.org>
228 * i386gnu-nat.c (gnu_store_registers): Fix typo.
230 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
231 instead of regcache_raw_supply when storing the registers.
233 * i386gnu-nat.c: Update copyright year.
234 (gnu_store_registers): Don't use deprecated_registers and
235 deprecated_registers_valid. Use regcache_valid_p and
236 regcache_raw_supply instead.
238 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
241 * procfs.c (procfs_pid_to_str): Remove redundant and unused
242 variables. Incapitalized "process".
244 * configure.in: Add cursesX to the list of possible curses libs.
245 Add cursesX.h to the list of possible curses headers.
246 * configure, config.in: Regenerate.
248 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
250 * configure.in: Test for struct lwp in <sys/lwp.h>.
251 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
252 the offset of l_addr in struct lwp.
254 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
256 * bsd-kvm.c: Include "gdbcore.h"
257 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
259 2004-08-07 Andrew Cagney <cagney@gnu.org>
261 * gdbtypes.c (build_flt, build_complex): New functions.
262 (gdbtypes_post_init): Use.
264 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
266 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
267 through to builtin_type_uint128.
269 * c-exp.y: Use builtin_type function to obtain builtin types.
271 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
273 * gdbtypes.c (gdbtypes_post_init): Update.
274 (build_gdbtypes): Move initialization of builtin_type_int0
275 through to builtin_type_uint128 from here ...
276 (_initialize_gdbtypes): ... to here.
277 * d10v-tdep.c (d10v_register_type): Update.
279 * doublest.c: Update copyright.
280 (floatformat_from_length): Call error when floatformat is NULL.
281 (extract_floating_by_length): Remove NULL fmt check.
282 (store_floating_by_length): Ditto.
284 2004-08-07 Andrew Cagney <cagney@gnu.org>
286 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
287 that the register is valid.
289 2004-08-05 Mark Kettenis <kettenis@chello.nl>
291 * i386-linux-tdep.c (i386_linux_sigtramp_start)
292 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
293 struct frame_info *. Use safe_frame_unwind_memory instead of
294 deprecated_read_memory_nobpt.
295 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
296 changed signature of i386_linux_sigtramp_start and
297 i386_linux_rt_sigtramp_start.
299 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
300 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
301 instead of deprecated_read_memory_nobpt.
302 (i386nbsd_sigtramp_p): Adjust for changed signature of
303 i386nbsd_sigtramp_offset.
305 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
306 safe_frame_unwind_memory instead of target_read_memory.
308 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
310 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
311 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
312 (_initialize_kernel_u_addr): Remove prototype and function.
313 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
315 * xcoffread.c: Likewise.
317 2004-08-06 Mark Kettenis <kettenis@gnu.org>
319 * vax-nat.c: New file.
320 * vaxbsd-nat.c: Tweak comment.
321 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
323 (vax-nat.o): New dependency.
324 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
325 (vax-*-ultrix2*): Remove.
326 * config/vax/vax.mh: New file.
327 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
328 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
329 (vax_register_u_addr): New prototype.
330 (REGISTER_U_ADDR): Define using vax_register_u_addr.
331 * config/vax/vaxult2.mh: Remove file.
332 * config/vax/vaxult.mh: Remove file.
333 * config/vax/vaxbsd.mh: Remove file.
334 * config/vax/vax.mt (TM_FILE): Remove.
335 * config/vax/tm-vaxbsd.h: Remove file.
337 2004-08-06 Joel Brobecker <brobecker@gnat.com>
339 * aix-thread.c (get_signaled_thread): New function.
340 (iter_trap): Delete, no longer used.
341 (iter_tid): New function.
342 (pd_update): Find the thread that received the SIGTRAP signal
343 by first locating the kernel thread, and then finding its
346 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
348 * lin-lwp.c (child_wait): Continue inferior after processing
349 PTRACE_EVENT_CLONE event.
351 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
353 * MAINTAINERS: Add self to Write-After-Approval.
355 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
357 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
358 libunwind-xxxx.so" where xxxx is UNW_TARGET.
360 2004-08-05 Andrew Cagney <cagney@gnu.org>
362 * config/xm-sysv4.h: Delete file.
363 * config/mips/xm-irix5.h: Delete file.
364 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
365 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
366 * config/ia64/xm-aix.h: Delete file.
367 * config/ia64/aix.mh (XM_FILE): Delete.
368 * config/pa/xm-hppah.h: Delete file.
369 * config/pa/hpux11w.mh (XM_FILE): Delete.
370 * config/pa/hpux11.mh (XM_FILE): Delete.
371 * config/pa/hpux1020.mh (XM_FILE): Delete.
372 * config/pa/hppahpux.mh (XM_FILE): Delete.
374 * config/alpha/xm-alphalinux.h: Delete file.
375 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
376 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
377 * config/alpha/xm-alphaosf.h: Delete file.
378 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
379 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
380 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
381 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
383 * config/i386/xm-i386v.h: Delete file.
384 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
385 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
386 * config/i386/xm-i386sco.h: Delete file.
387 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
388 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
389 * config/i386/xm-i386v4.h: Delete file.
390 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
391 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
392 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
393 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
395 * config/vax/xm-vax.h: Delete file.
396 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
397 * config/vax/xm-vaxult2.h: Delete file.
398 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
399 * config/vax/vaxult2.mh (XM_FILE): Delete.
400 * config/vax/xm-vaxult.h: Delete file.
401 * config/vax/vaxult.mh (XM_FILE): Delete.
402 * config/vax/xm-vaxbsd.h: Delete file.
403 * config/vax/vaxbsd.mh (XM_FILE): Delete.
405 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
406 * gdbarch.h, gdbarch.c: Re-generate.
407 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
408 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
409 * frame.h: Delete deprecated_read_fp from comments.
410 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
411 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
413 2004-08-04 Mark Kettenis <kettenis@gnu.org>
415 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
416 trampoline in OpenBSD 3.5-current.
418 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
421 * Makefile.in: Remove embedded page breaks.
423 2004-08-04 Jim Blandy <jimb@redhat.com>
425 * regcache.c (regcache_raw_read): Assert that, after calling
426 target_fetch_registers, the register we're reading is cached.
428 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
429 a call to 'internal_error', with a more helpful error message.
430 * rs6000-tdep.c (e500_pseudo_register_read,
431 e500_pseudo_register_write, rs6000_store_return_value): Same.
433 2004-08-04 Andrew Cagney <cagney@gnu.org>
435 * Makefile.in: Update dependencies.
437 2004-08-04 Jim Blandy <jimb@redhat.com>
439 Change the layout of the PowerPC E500 raw register cache to allow
440 the lower 32-bit halves of the GPRS to be their own raw registers,
442 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
443 add ppc_ev0_upper_regnum flag.
444 * rs6000-tdep.c: #include "reggroups.h".
445 (spe_register_p): Recognize the ev upper half registers as SPE
447 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
449 (e500_move_ev_register): New function.
450 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
451 vector registers are the pseudo-registers now, formed by splicing
452 together the gprs and the upper-half registers.
453 (e500_register_reggroup_p): New function.
456 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
457 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
459 (registers_e500): Rearrange register set so that the raw register
460 set contains 32-bit GPRs and upper-half registers, and the SPE
461 vector registers become pseudo-registers.
462 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
463 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
464 register numbers are now the same for the E500 as they are for
465 other PowerPC variants. Register e500_register_reggroup_p as the
466 register group function for the E500.
467 * Makefile.in (rs6000-tdep.o): Update dependencies.
469 Adapt PPC E500 native support to the new raw regcache layout.
470 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
471 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
472 (fetch_spe_register, store_spe_register): Handle fetching/storing
473 all the SPE registers at once, if regno == -1. These now take
474 over the job of fetch_spe_registers and store_spe_registers.
475 (fetch_spe_registers, store_spe_registers): Deleted.
476 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
477 unconditionally; they're always raw. Fetch/store SPE upper half
478 registers, if present, instead of ev registers.
479 (fetch_register, store_register): Remove sanity checks: gprs are
480 never pseudo-registers now, so we never need to even mention any
481 registers that are ever pseudoregisters.
483 Use a fixed register numbering when communicating with the PowerPC
485 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
486 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
487 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
489 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
490 init_sim_regno_table.
491 * Makefile.in (gdb_sim_ppc_h): New variable.
492 (rs6000-tdep.o): Update dependencies.
494 2004-08-02 Andrew Cagney <cagney@gnu.org>
496 * cris-tdep.c (cris_register_size): Restore function, still used
499 * gdbarch.sh (deprecated_target_read_fp)
500 (deprecated_frame_locals_address, deprecated_frame_args_address)
501 (deprecated_frame_chain_valid, deprecated_frame_chain)
502 (deprecated_init_extra_frame_info, deprecated_pop_frame)
503 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
504 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
505 * gdbarch.h, gdbarch.c: Re-generate.
506 * regcache.c (deprecated_read_fp): Do not call
507 DEPRECATED_TARGET_READ_FP_P.
508 * infcmd.c (default_print_registers_info): Do not call
509 DEPRECATED_DO_REGISTERS_INFO.
510 * frame-base.c (default_frame_locals_address): Do not call
511 DEPRECATED_FRAME_LOCALS_ADDRESS.
512 (default_frame_args_address): Do not call
513 DEPRECATED_FRAME_ARGS_ADDRESS.
515 * gdbarch.sh (deprecated_register_raw_size)
516 (deprecated_register_virtual_size:int): Delete.
517 * gdbarch.h, gdbarch.c: Re-generate.
518 * cris-tdep.c (cris_register_size): Delete.
519 (cris_gdbarch_init): Update.
520 * alpha-tdep.c (alpha_register_raw_size)
521 (alpha_register_virtual_size): Delete.
522 (alpha_gdbarch_init): Update.
524 * gdbarch.sh (deprecated_register_virtual_type)
525 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
526 (deprecated_dummy_write_sp): Delete.
527 * gdbarch.h, gdbarch.c: Re-generate.
529 * gdbarch.sh (deprecated_register_bytes): Delete.
530 * gdbarch.h, gdbarch.c: Re-generate.
531 * regcache.c (deprecated_register_bytes): New function.
532 * regcache.h (deprecated_register_bytes): Declare.
533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
534 * v850-tdep.c (v850_gdbarch_init): Update.
535 * sh64-tdep.c (sh64_gdbarch_init): Update.
536 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
538 * mcore-tdep.c (mcore_gdbarch_init): Update.
539 * cris-tdep.c (cris_gdbarch_init): Update.
540 * arm-tdep.c (arm_gdbarch_init): Update.
541 * remote.c (init_remote_state): Update.
542 * remote-vx.c (vx_prepare_to_store): Update.
543 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
544 * irix5-nat.c (fetch_core_registers): Update.
545 * cris-tdep.c (cris_register_bytes_ok): Update.
546 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
548 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
549 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
550 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
551 (mips_insn16_frame_base_address, mips_insn16_frame_base)
552 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
553 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
554 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
555 (mips_insn32_frame_base_address, mips_insn32_frame_base)
556 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
557 with mips_insn16 and mips_insn32.
559 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
560 * rs6000-tdep.c (rs6000_push_dummy_call)
561 (rs6000_extract_return_value): Use register_size.
562 * xstormy16-tdep.c (xstormy16_get_saved_register)
563 (xstormy16_extract_return_value): Ditto.
564 * valops.c (value_assign): Ditto.
565 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
566 * v850-tdep.c (v850_extract_return_value): Ditto.
567 * tracepoint.c (collect_symbol): Ditto.
568 * target.c (debug_print_register): Ditto.
569 * stack.c (frame_info): Ditto.
570 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
571 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
572 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
573 (store_register_using_P): Ditto.
574 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
575 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
576 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
577 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
578 * regcache.c (deprecated_read_register_bytes)
579 (deprecated_write_register_bytes, read_register)
580 (write_register): Ditto.
581 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
582 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
583 * monitor.c (monitor_supply_register, monitor_fetch_register)
584 (monitor_store_register): Ditto.
585 * mn10300-tdep.c (mn10300_pop_frame_regular)
586 (mn10300_print_register): Ditto.
587 * mipsv4-nat.c (fill_fpregset): Ditto.
588 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
589 (mips64_fill_fpregset): Ditto.
590 * mi/mi-main.c (register_changed_p, get_register)
591 (mi_cmd_data_write_register_values): Ditto.
592 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
593 * irix5-nat.c (fill_gregset, fetch_core_registers):
594 * infrun.c (write_inferior_status_register): Ditto.
595 * infptrace.c (fetch_register, store_register): Ditto.
596 * infcmd.c (default_print_registers_info): Ditto.
597 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
598 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
599 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
600 * hpux-thread.c (hpux_thread_fetch_registers)
601 (hpux_thread_store_registers): Ditto.
602 * hppah-nat.c (store_inferior_registers, fetch_register):
603 * findvar.c (value_from_register): Ditto.
604 * dve3900-rom.c (fetch_bitmapped_register):
605 * cris-tdep.c (cris_gdbarch_init): Ditto.
606 * alpha-tdep.h: Ditto.
607 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
609 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
610 DEPRECATED_REGISTER_RAW_SIZE from comments.
611 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
612 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
613 DEPRECATED_REGISTER_RAW_SIZE.
614 * findvar.c (value_of_register): Simplify by assuming that the
615 registers raw and virtual sizes are identical.
616 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
618 * arch-utils.c (generic_register_size): Simplify by assuming
621 * regcache.c (legacy_read_register_gen, real_register)
622 (legacy_write_register_gen): Delete, not used.
624 * regcache.c (struct regcache_descr): Delete legacy_p.
625 (init_legacy_regcache_descr): Delete function.
626 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
627 Do not use deprecated register functions.
628 (regcache_raw_read, deprecated_write_register_gen):
629 (deprecated_read_register_gen, regcache_raw_write): Delete code
630 predicated on legacy_p.
631 (register_size): Delete check against register raw size.
633 * cris-tdep.c (cris_register_type): Replace
634 cris_register_virtual_type.
635 (cris_gdbarch_init): Update, set register_type.
637 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
638 * gdbarch.h, gdbarch.c: Re-generate.
639 * arm-tdep.c (arm_frameless_function_invocation): Delete.
640 (arm_gdbarch_init) Do not set frameless function invocation.
641 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
642 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
643 * frv-tdep.c (frv_frameless_function_invocation): Delete.
644 (frv_gdbarch_init): Do not set frameless function invocation.
645 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
646 * sh-tdep.c (sh_gdbarch_init): Ditto.
647 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
649 * avr-tdep.c (avr_gdbarch_init): Ditto.
651 * blockframe.c (legacy_frame_chain_valid): Delete function.
653 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
654 and pc. Update comments.
655 (pc_in_dummy_frame): Delete function.
656 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
658 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
659 call_hi, top and pc, use the id.
660 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
662 * dummy-frame.c: Include "gdb_string.h".
663 (generic_save_call_dummy_addr, generic_push_dummy_frame)
664 (generic_save_dummy_frame_tos): Delete.
665 (dummy_frame_push): New function, replaces above.
666 * dummy-frame.h: Update copyright.
667 (dummy_frame_push): Declare.
668 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
669 (generic_save_call_dummy_addr): Delete declarations.
670 * infcall.c: Include "dummy-frame.h".
671 (call_function_by_hand): Add locals caller_regcache,
672 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
673 with call to frame_save_as_regcache plus cleanup. Delete calls to
674 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
675 Move clear_proceed_status to just before the resume, add call to
676 dummy_frame_push (discard cleanup).
677 * Makefile.in (infcall.o): Add $(dummy_frame_h).
678 (dummy-frame.o): Add $(gdb_string_h).
680 2004-08-01 Andrew Cagney <cagney@gnu.org>
682 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
683 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
684 * dummy-frame.c (find_dummy_frame): Delete.
685 (struct dummy_frame_cache, dummy_frame_sniffer)
686 (dummy_frame_prev_register, dummy_frame_this_id)
687 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
688 frame unwinder using a dummy_frame_cache.
690 2004-08-01 Andrew Cagney <cagney@gnu.org>
692 * frame.h (frame_save_as_regcache): Declare.
693 * frame.c (frame_save_as_regcache): New function.
694 (do_frame_read_register): Replace do_frame_unwind_register.
695 (frame_pop): Use frame_save_as_regcache.
696 * dummy-frame.c (generic_push_dummy_frame): Use
697 frame_save_as_regcache.
699 2004-08-01 Joel Brobecker <brobecker@gnat.com>
701 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
702 file as included until we record the first line in the linetable.
704 2004-08-01 Andrew Cagney <cagney@gnu.org>
706 * frame.h (deprecated_pop_dummy_frame)
707 (deprecated_read_register_dummy)
708 (deprecated_generic_find_dummy_frame): Delete.
709 * dummy-frame.c (deprecated_generic_find_dummy_frame)
710 (deprecated_read_register_dummy)
711 (deprecated_find_dummy_frame_regcache)
712 (discard_innermost_dummy)
713 (deprecated_pop_dummy_frame): Delete.
714 (dummy_frame_this_id): Simplify.
715 (struct dummy_frame): Delete "fp" and "sp".
716 (find_dummy_frame): Simplify.
717 (generic_push_dummy_frame): Do not set "fp" or "sp".
718 (fprint_dummy_frames): Do not print "fp" and "sp"
720 2004-08-01 Mark Kettenis <kettenis@gnu.org>
722 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
723 (struct i386_insn): New structure.
724 (i386_match_insn): New function.
725 (i386_frame_setup_skip_insns): New variable.
726 (i386_analyze_frame_setup): Change to use i386_match_insn and the
727 array i386_frame_setup_insns of instructions that should be
728 skipped inside the frame setup sequence.
730 2004-08-01 Andrew Cagney <cagney@gnu.org>
732 * frame.h (deprecated_frame_xmalloc_with_cleanup)
733 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
734 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
735 * stack.c (frame_info): Delete references to
736 DEPRECATED_FRAME_INIT_SAVED_REGS and
737 deprecated_get_frame_saved_regs.
738 * frame.c (struct frame_info): Delete saved_regs and extra_info.
739 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
740 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
741 (frame_unwind_register_signed)
742 (frame_unwind_register_unsigned)
743 (frame_unwind_unsigned_register): Use register_size.
744 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
745 (deprecated_frame_xmalloc_with_cleanup)
746 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
747 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
749 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
750 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
751 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
752 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
754 * infcall.c (call_function_by_hand): Do not use
755 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
756 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
757 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
758 DEPRECATED_STACK_ALIGN.
760 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
762 Committed by Andrew Cagney.
763 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
765 2004-08-01 Andrew Cagney <cagney@gnu.org>
767 * mips-tdep.c (mips16_frame_cache)
768 (mips16_frame_this_id, mips16_frame_prev_register)
769 (mips16_frame_unwind, mips16_frame_sniffer)
770 (mips16_frame_base_address, mips16_frame_base)
771 (mips16_frame_base_sniffer, mips32_frame_cache)
772 (mips32_frame_this_id, mips32_frame_prev_register)
773 (mips32_frame_unwind, mips32_frame_sniffer)
774 (mips32_frame_base_address, mips32_frame_base)
775 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
776 separate heuristic mips16 and mips32 unwinders.
777 (mips_stub_frame_cache, mips_stub_frame_this_id)
778 (mips_stub_frame_prev_register)
779 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
780 (mips_stub_frame_base_address, mips_stub_frame_base)
781 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
782 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
783 match true mdebug frames.
784 (non_heuristic_proc_desc): Add forward declaration.
786 2004-08-01 Andrew Cagney <cagney@gnu.org>
788 * config/mips/tm-irix6.h: Delete file.
789 * config/mips/tm-irix5.h: Delete file.
790 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
791 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
793 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
794 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
795 * config/nm-gnu.h (NO_CORE_OPS): Delete.
796 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
797 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
798 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
799 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
800 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
801 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
802 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
803 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
804 (TARGET_SIGNAL_RAW_VALUES): Delete.
805 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
807 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
808 (TARGET_HW_WATCH_LIMIT): Delete.
809 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
810 * minimon.h: Delete file.
812 * trad-frame.c (trad_frame_get_this_base)
813 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
815 * trad-frame.h (trad_frame_set_this_base)
816 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
818 2004-07-31 Andrew Cagney <cagney@gnu.org>
820 * trad-frame.c (trad_frame_get_prev_register): Rename
821 trad_frame_get_prev_register.
822 * vax-tdep.c (vax_frame_prev_register): Update.
823 * trad-frame.h: Update.
824 * trad-frame.c (trad_frame_get_register): Update.
825 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
826 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
828 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
829 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
831 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
833 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
835 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
837 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
839 * s390-tdep.c (s390_frame_prev_register)
840 (s390_stub_frame_prev_register)
841 (s390_sigtramp_frame_prev_register): Update.
842 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
843 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
844 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
845 * m88k-tdep.c (m88k_frame_prev_register)
846 * m68hc11-tdep.c (m68hc11_frame_prev_register)
847 * m32r-tdep.c (m32r_frame_prev_register): Update.
848 * hppa-tdep.c (hppa_frame_prev_register_helper)
849 * frv-tdep.c (frv_frame_prev_register): Update.
850 * d10v-tdep.c (d10v_frame_prev_register): Update.
851 * cris-tdep.c (cris_frame_prev_register): Update.
852 * avr-tdep.c (avr_frame_prev_register): Update.
853 * arm-tdep.c (arm_prologue_prev_register)
854 (arm_sigtramp_prev_register): Update.
856 2004-07-31 Andrew Cagney <cagney@gnu.org>
858 * frame.h (legacy_saved_regs_unwind)
859 (legacy_frame_chain_valid, legacy_frame_p)
860 (enum frame_type): Delete UNKNOWN_FRAME.
861 * dummy-frame.c (dummy_frame_this_id): Simplify.
862 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
863 * frame.c (struct frame_info): Delete the field "type".
864 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
865 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
866 (legacy_saved_regs_unwind, legacy_frame_p)
867 (frame_type_from_pc): Delete.
868 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
869 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
871 2004-07-31 Mark Kettenis <kettenis@gnu.org>
873 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
876 * mips-nat.c: Remove file.
877 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
878 (mips-nat.o): Remove dependency.
880 * infptrace.c: Update copyright year.
881 (fetch_register): Pass NULL in regcache_raw_supply call instead of
882 explicitly setting the buffer to all zeroes.
884 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
885 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
887 2004-07-30 Andrew Cagney <cagney@gnu.org>
889 * GDB 6.2 released from gdb_6_2-branch.
891 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
893 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
895 * exec.c (exec_file_attach):
896 * nto-tdep.c (nto_find_and_open_solib):
897 * pa64solib.c (pa64_solib_sizeof_symbol_table):
898 * solib.c (solib_open):
899 * somsolib.c (som_solib_sizeof_symbol_table):
900 * source.c (is_regular_file, openp, open_source_file):
901 * symfile.c (symfile_bfd_open):
902 * wince.c (upload_to_device): Differentiate between the search for
903 binary and source files.
905 2004-07-30 Andrew Cagney <cagney@gnu.org>
907 * complaints.c (_initialize_complaints): Pass NULL to
908 add_setshow_zinteger_cmd for help_doc.
909 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
911 2004-07-30 Andrew Cagney <cagney@gnu.org>
914 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
915 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
916 $(PACKAGE).pot and update-po.
917 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
918 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
919 (update-po): New rules.
920 (localedir): Define using autoconf.
921 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
922 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
923 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
924 * configure.in: Generate CATALOGS and LINGUAS from contents of
925 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
926 * configure: Re-generate.
927 * po/gdbtext: New file
929 2004-07-30 Jerome Guitton <guitton@gnat.com>
931 * MAINTAINERS: Reorder Write After Approval list in alphabetical
934 2004-07-30 David Lecomber <dsl@sources.redhat.com>
936 * dwarf2read.c (read_file_scope): Set producer if attribute
938 (struct dwarf2_cu): Added new member producer.
940 2004-07-30 Jerome Guitton <guitton@gnat.com>
942 * inflow.c (kill_command): release file handles in BFD.
943 * exec.c (exec_file_attach): Ditto.
944 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
946 2004-07-29 Andrew Cagney <cagney@gnu.org>
948 * PROBLEMS (mips-irix): Note that it is broken.
950 2004-07-29 Andrew Cagney <cagney@gnu.org>
952 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
953 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
955 * config/xm-nbsd.h: Delete file.
956 * config/arm/xm-nbsd.h: Delete file.
957 * config/i386/xm-nbsd.h: Delete file.
958 * config/ns32k/xm-nbsd.h: Delete file.
959 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
960 * config/i386/nbsdelf.mh (XM_FILE): Delete.
961 * config/i386/nbsdaout.mh (XM_FILE): Delete.
962 * config/arm/nbsdelf.mh (XM_FILE): Delete.
963 * config/arm/nbsdaout.mh (XM_FILE): Delete.
965 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
966 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
967 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
968 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
969 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
970 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
972 * config/powerpc/xm-linux.h: Delete empty file.
973 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
974 * config/powerpc/linux.mh (XM_FILE): Delete.
975 * config/m68k/xm-linux.h: Delete empty file.
976 * config/m68k/linux.mh (XM_FILE): Delete.
977 * config/ia64/xm-linux.h: Delete empty file.
978 * config/ia64/linux.mh (XM_FILE): Delete.
979 * config/arm/xm-linux.h: Delete empty file.
980 * config/arm/linux.mh (XM_FILE): Delete.
982 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
983 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
984 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
985 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
986 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
987 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
988 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
989 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
991 * config/m68k/xm-m68k.h: Delete file.
992 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
994 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
995 * config/pa/xm-linux.h: Delete empty file.
996 * config/pa/linux.mh (XM_FILE): Delete.
997 * config/i386/xm-i386.h: Delete empty file.
998 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1000 * config/i386/obsdaout.mh (XM_FILE): Delete.
1001 * config/i386/obsd64.mh (XM_FILE): Delete.
1002 * config/i386/fbsd64.mh (XM_FILE): Delete.
1003 * config/i386/nto.mh (XM_FILE): Delete.
1004 * config/i386/obsd.mh (XM_FILE): Delete.
1005 * config/i386/linux64.mh (XM_FILE): Delete.
1006 * config/i386/linux.mh (XM_FILE): Delete.
1007 * config/i386/i386sol2.mh (XM_FILE): Delete.
1008 * config/i386/i386gnu.mh (XM_FILE): Delete.
1009 * config/i386/fbsd.mh (XM_FILE): Delete.
1010 * config/i386/nbsd64.mh (XM_FILE): Delete.
1012 2004-07-29 Andrew Cagney <cagney@gnu.org>
1014 * config/pa/xm-linux.h: Do not include "floatformat.h".
1015 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1016 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1017 * config/i386/xm-i386.h: Do not include "floatformat.h".
1018 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1019 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1020 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1021 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1022 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1023 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1024 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1025 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1026 * configure, config.in: Regenerate.
1027 * configure.host (gdb_host_float_format, gdb_host_double_format)
1028 (gdb_host_long_double_format): Set according to the host.
1030 2004-07-29 Andrew Cagney <cagney@gnu.org>
1032 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1034 2004-07-28 Andrew Cagney <cagney@gnu.org>
1036 * PROBLEMS: Mention threads/1650.
1037 * NEWS: Mention the NPTL fix.
1039 2004-07-28 Andrew Cagney <cagney@gnu.org>
1041 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1042 (add_setshow_cmd_full): Make static.
1043 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1044 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1045 * cli/cli-decode.c (add_setshow_filename_cmd)
1046 (add_setshow_string_cmd): New functions.
1047 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1048 * mips-tdep.c (_initialize_mips_tdep): Update.
1049 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1050 * cli/cli-logging.c (_initialize_cli_logging): Update.
1051 * complaints.c (_initialize_complaints): Update.
1052 * remote.c (_initialize_remote): Update.
1054 2004-07-28 Andrew Cagney <cagney@gnu.org>
1056 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1057 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1058 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1059 print parameters. Make string parameters constant.
1060 * command.h: Update. Update copyright.
1061 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1062 * observer.c (_initialize_observer): Ditto.
1063 * frame.c (_initialize_frame): Ditto.
1064 * complaints.c (_initialize_complaints): Ditto.
1065 * maint.c (_initialize_maint_cmds): Ditto.
1066 * target.c (initialize_targets): Ditto.
1067 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1068 * infcall.c (_initialize_infcall): Ditto.
1069 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1070 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1071 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1072 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1073 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1075 2004-07-28 Andrew Cagney <cagney@gnu.org>
1077 * gdbtypes.c (lookup_primitive_typename): Delete function.
1078 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1079 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1080 * gdbtypes.c (lookup_typename): Ditto.
1081 * f-exp.y (yylex): Ditto.
1082 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1084 * scm-lang.c (c_builtin_types): Delete extern declaration.
1085 (scm_language_defn): Replace
1086 string_char_type and primitive_type_vector with
1087 la_language_arch_info.
1088 * jv-lang.c (java_language_defn): Replace
1089 string_char_type and primitive_type_vector with
1090 la_language_arch_info.
1091 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1092 c_builtin_types in comment.
1093 * c-lang.h (struct language_arch_info): Declare opaque.
1094 (c_language_arch_info): Declare.
1095 (c_builtin_types): Delete declaration.
1096 * c-lang.c (c_language_arch_info): Set string_char_type to
1097 builtin_char, not builtin_true_char. Make global.
1098 (c_builtin_types): Delete array.
1099 (asm_language_defn, minimal_language_defn): Replace
1100 string_char_type and primitive_type_vector with
1101 la_language_arch_info.
1103 2004-07-28 Andrew Cagney <cagney@gnu.org>
1105 * gdbtypes.h (struct builtin_type): Rename true_char to
1107 * gdbtypes.c (gdbtypes_post_init): Update.
1108 * c-lang.c (arch_info): New function.
1109 (enum c_primitive_types): New enum.
1110 (c_language_defn): Instead of string_char_type and
1111 primitive_type_vector set la_language_arch_info.
1113 2004-07-28 Andrew Cagney <cagney@gnu.org>
1115 * language.h (struct language_arch_info): Fix typo
1116 s/primative/primitive/.
1117 * gdbtypes.c (lookup_primitive_typename): Ditto.
1118 * language.c (language_lookup_primitive_type_by_name)
1119 (unknown_language_arch_info): Ditto.
1121 2004-07-27 Andrew Cagney <cagney@gnu.org>
1123 * defs.h (enum language): Add nr_languages.
1124 * language.h (struct language_arch_info): Define.
1125 (struct language_defn): Add la_language_arch_info.
1126 (language_lookup_primative_type_by_name): Declare.
1127 (language_string_char_type): Declare.
1128 * language.c (_initialize_language, language_gdbarch_post_init)
1129 (struct language_gdbarch, language_gdbarch_data): Implement
1130 per-architecture language information.
1131 (unknown_language_arch_info, language_string_char_type)
1132 (language_lookup_primative_type_by_name): New functions.
1133 (unknown_language_defn, auto_language_defn)
1134 (local_language_defn): Set la_language_arch_info to
1135 unknown_language_arch_info.
1136 (unknown_builtin_types): Delete.
1137 * gdbtypes.c (lookup_primitive_typename): Use
1138 language_lookup_primative_type_by_name.
1139 (create_string_type): Use language_string_char_type.
1140 * values.c (value_from_string): Use language_string_char_type.
1141 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1142 * p-lang.c (pascal_language_defn): Ditto.
1143 * m2-lang.c (m2_language_defn): Ditto.
1144 * jv-lang.c (java_language_defn): Ditto.
1145 * objc-lang.c (objc_language_defn): Ditto.
1146 * f-lang.c (f_language_defn): Ditto.
1147 * c-lang.c (c_language_defn, cplus_language_defn)
1148 (asm_language_defn, minimal_language_defn): Ditto.
1150 2004-07-27 Andrew Cagney <cagney@gnu.org>
1152 * gdbtypes.h (struct builtin_type): Declare.
1153 (builtin_type): Declare.
1154 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1155 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1156 (gdbtypes_post_init): New function.
1157 (builtin_type): New function.
1159 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1161 * remote-m32r-sdi.c: Fix breakpoint bug.
1162 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1163 recv_char_data, recv_long_data): New functions to replace communication
1166 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1168 Document PR threads/1650.
1169 * PROBLEMS (Threads): Document problem with many threads
1171 2004-07-26 Andrew Cagney <cagney@gnu.org>
1173 * gdb-mi.el: Move from here ...
1174 * mi/gdb-mi.el: ... to here.
1176 2004-07-26 Andrew Cagney <cagney@gnu.org>
1178 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1179 * main.c (captured_main): When in batch mode always detach.
1181 2004-07-26 Andrew Cagney <cagney@gnu.org>
1183 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1184 and h8300 as broken.
1185 * NEWS: END-OF-LIFE frame compatibility module.
1186 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1189 2004-07-26 Andrew Cagney <cagney@gnu.org>
1191 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1192 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1193 * wince.c (_initialize_wince): Update.
1194 * win32-nat.c (_initialize_win32_nat): Update.
1195 * varobj.c (_initialize_varobj): Update.
1196 * valops.c (_initialize_valops): Update.
1197 * utils.c (initialize_utils, initialize_utils): Update.
1198 * tui/tui-win.c (_initialize_tui_win): Update.
1199 * top.c (init_main): Update.
1200 * symfile.c (_initialize_symfile): Update.
1201 * source.c (_initialize_source): Update.
1202 * somsolib.c (_initialize_som_solib): Update.
1203 * solib.c (_initialize_solib): Update.
1204 * solib-frv.c (_initialize_frv_solib): Update.
1205 * serial.c (_initialize_serial): Update.
1206 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1207 * remote.c (_initialize_remote, _initialize_remote): Update.
1208 * remote-vx.c (_initialize_vx): Update.
1209 * remote-utils.c (_initialize_sr_support): Update.
1210 * remote-sds.c (_initialize_remote_sds): Update.
1211 * remote-mips.c (_initialize_remote_mips): Update.
1212 * remote-e7000.c (_initialize_remote_e7000): Update.
1213 * proc-api.c (_initialize_proc_api): Update.
1214 * printcmd.c: Update.
1215 * parse.c (_initialize_parse): Update.
1216 * pa64solib.c (_initialize_pa64_solib): Update.
1217 * p-valprint.c (_initialize_pascal_valprint): Update.
1218 * monitor.c (_initialize_remote_monitors): Update.
1219 * mips-tdep.c (_initialize_mips_tdep): Update.
1220 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1221 * maint.c (_initialize_maint_cmds): Update.
1222 * lin-lwp.c (_initialize_lin_lwp): Update.
1223 * language.c (_initialize_language): Update.
1224 * kod.c (_initialize_kod): Update.
1225 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1226 * i386-tdep.c (_initialize_i386_tdep): Update.
1227 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1228 * gdbarch.sh: Update.
1229 * gdbarch.c: Re-generate.
1230 * gdb-events.sh: Update.
1231 * gdb-events.c: Re-generate.
1232 * frame.c (_initialize_frame): Update.
1234 * demangle.c (_initialize_demangler): Update.
1235 * dcache.c (_initialize_dcache): Update.
1236 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1237 * cp-valprint.c (_initialize_cp_valprint): Update.
1238 * corefile.c (_initialize_core): Update.
1239 * command.h: Update.
1240 * cli/cli-decode.h: Update.
1241 * cli/cli-cmds.c (init_cli_cmds): Update.
1242 * charset.c (_initialize_charset): Update.
1243 * breakpoint.c (_initialize_breakpoint): Update.
1244 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1245 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1246 * aix-thread.c (_initialize_aix_thread): Update.
1248 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1250 Partial fix for PR backtrace/1718.
1251 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1252 that GCC migrates into the prolugue. Don't handle any
1253 instructions that clobber %ebx.
1255 2004-07-23 Andrew Cagney <cagney@gnu.org>
1257 Use regcache_raw_collect instead of regcache_collect.
1258 * regcache.h (regcache_collect): Delete declaration.
1259 * regcache.c (regcache_colect): Delete function.
1260 * win32-nat.c (do_child_store_inferior_registers): Update.
1261 * sol-thread.c (sol_thread_store_registers): Update.
1262 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1263 * rs6000-nat.c (store_register): Update.
1264 * remote.c (store_register_using_P, remote_store_registers): Update.
1265 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1266 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1267 (fill_vrregset, store_spe_registers, fill_gregset)
1268 (fill_gregset): Update.
1269 * nto-procfs.c (procfs_store_registers): Update.
1270 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1271 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1272 * m68klinux-nat.c (store_register, fill_gregset): Update.
1273 * m68k-tdep.c (fill_gregset): Update.
1274 * infptrace.c (store_register): Update.
1275 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1276 * i386-linux-nat.c (store_register, fill_gregset): Update.
1277 * hppa-linux-nat.c (fill_gregset): Update.
1278 * go32-nat.c (store_register): Update.
1279 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1280 (store_fp_regs): Update.
1281 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1282 (store_nwfpe_extended, store_fpregister, store_fpregs)
1283 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1284 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1285 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1286 (store_regs_user_thread, store_regs_kernel_thread): Update.
1288 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1290 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1291 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1293 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1294 member of `struct comp_unit'.
1296 2004-07-23 Andrew Cagney <cagney@gnu.org>
1298 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1299 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1301 2004-07-23 Martin Hunt <hunt@redhat.com>
1302 Kevin Buettner <kevinb@redhat.com>
1304 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1305 alignment was being added to the offset instead of multiplied.
1307 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1309 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1310 changed signal trampoline in OpenBSD 3.5-current.
1312 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1313 <machine/pcb.h> and "bsd-kvm.h".
1314 (sparc64nbsd_supply_pcb): New function.
1315 (_initialize_sparc64nbsd_nat): Renamed from
1316 _initialize_sparcnbsd_nat. Enable libkvm interface.
1317 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1318 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1319 (LOADLIBES): New variable.
1321 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1323 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1325 2004-07-21 Andrew Cagney <cagney@gnu.org>
1327 Use regcache_raw_supply instead of supply_register.
1328 * regcache.h (supply_register): Delete declaration.
1329 * regcache.c (supply_register): Delete function.
1330 * wince.c (do_child_fetch_inferior_registers): Update.
1331 * win32-nat.c (do_child_fetch_inferior_registers)
1332 (fetch_elf_core_registers): Update.
1333 * v850ice.c (v850ice_fetch_registers): Update.
1334 * thread-db.c (thread_db_store_registers): Update.
1335 * sol-thread.c (sol_thread_store_registers): Update.
1336 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1337 * rs6000-nat.c (fetch_register): Update.
1338 * rom68k-rom.c (rom68k_supply_one_register): Update.
1339 * remote.c (remote_wait, remote_async_wait): Update.
1340 * remote-st.c (get_hex_regs): Update.
1341 * remote-sim.c (gdbsim_fetch_register): Update.
1342 * remote-sds.c (sds_fetch_registers): Update.
1343 * remote-rdp.c (remote_rdp_fetch_register): Update.
1344 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1345 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1346 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1347 * remote-hms.c (init_hms_cmds): Update.
1348 * remote-est.c (init_est_cmds): Update.
1349 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1350 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1351 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1352 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1353 (fetch_register, supply_vrregset, supply_vrregset)
1354 (fetch_spe_registers): Update.
1355 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1356 * monitor.c (monitor_supply_register): Update.
1357 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1358 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1359 (mipsnbsd_supply_fpreg): Update.
1360 * mips-nat.c (fetch_inferior_registers)
1361 (fetch_core_registers): Update.
1362 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1363 (supply_fpregset, mips64_supply_gregset)
1364 (mips64_supply_fpregset): Update.
1365 * m68klinux-nat.c (fetch_register, supply_gregset)
1366 (supply_fpregset): Update.
1367 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1368 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1369 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1370 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1371 * infptrace.c (fetch_register): Update.
1372 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1373 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1374 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1375 (gnu_fetch_registers, gnu_store_registers): Update.
1376 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1377 * i386-linux-nat.c (fetch_register, supply_gregset)
1378 (dummy_sse_values): Update.
1379 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1380 * hppah-nat.c (fetch_register): Update.
1381 * hppa-linux-nat.c (fetch_register, supply_gregset)
1382 (supply_fpregset): Update.
1383 * go32-nat.c (fetch_register): Update.
1384 * dve3900-rom.c (fetch_bitmapped_register)
1385 (_initialize_r3900_rom): Update.
1386 * cris-tdep.c (supply_gregset): Update.
1387 * abug-rom.c (init_abug_cmds): Update.
1388 * core-aout.c (fetch_core_registers): Update.
1389 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1390 (fetch_register, fetch_fp_register): Update.
1391 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1392 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1393 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1394 * alphanbsd-tdep.c (fetch_core_registers): Update.
1395 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1396 * alpha-nat.c (fetch_osf_core_registers)
1397 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1398 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1399 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1401 2004-07-21 Andrew Cagney <cagney@gnu.org>
1403 * PROBLEMS: Mention breakpoints/1702.
1404 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1405 that is known to work.
1407 2004-07-21 Andrew Cagney <cagney@gnu.org>
1409 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1410 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1411 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1412 (handle_inferior_event): Wrap call to deprecated
1413 IGNORE_HELPER_CALL in #ifdef.
1414 * config/mips/tm-nbsd.h: Update.
1416 2004-07-20 Jim Blandy <jimb@redhat.com>
1418 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1419 bfd_mach_ppc has no segment registers.
1421 Include PowerPC SPR numbers for special-purpose registers.
1422 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1423 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1424 new member in initializer.
1425 (S, S4, SN4, S64): New macros for defining special-purpose
1427 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1428 registers_403, registers_403GC, registers_505, registers_860,
1429 registers_601, registers_602, registers_603, registers_604,
1430 registers_750, registers_e500): Use them.
1432 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1433 replace references with expression used to initialize variable.
1435 2004-07-20 Andrew Cagney <cagney@gnu.org>
1437 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1439 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1440 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1441 (s390_sigtramp_frame_sniffer): Update.
1442 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1443 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1444 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1445 (mips32_fetch_instruction): Update.
1446 * mcore-tdep.c (get_insn): Update.
1447 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1448 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1449 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1450 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1451 (i386_linux_rt_sigtramp_start): Update.
1452 * i386-linux-nat.c (child_resume): Update.
1453 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1454 * hppa-linux-tdep.c (insns_match_pattern): Update.
1455 * gdbcore.h: Update.
1456 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1457 * frame.c (safe_frame_unwind_memory): Update.
1458 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1459 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1460 * alpha-tdep.c (alpha_read_insn): Update.
1462 2004-07-20 Andrew Cagney <cagney@gnu.org>
1464 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1465 containing both bytes and mask. Add "frame_type".
1466 * tramp-frame.c (tramp_frame_start): Update.
1467 (tramp_frame_prepend_unwinder): Update.
1468 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1469 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1470 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1471 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1473 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1475 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1476 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1477 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1478 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1480 2004-07-17 Andrew Cagney <cagney@gnu.org>
1482 * NEWS, PROBLEMS: Update for 6.2.
1484 * README: Update to 6.2.
1486 * utils.c (xvasprintf): Call xstrvprintf.
1488 * parse.c: Update copyright.
1489 (null_post_parser): Eliminate ARGSUSED.
1491 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1492 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1493 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1495 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1496 * ppc-linux-nat.c: Use "Linux kernel".
1497 * hppa-linux-tdep.c: Use GNU/Linux.
1498 * hppa-linux-nat.c: Use GNU/Linux.
1499 * dwarfread.c: Add [sic] to use of Linux.
1501 * hppa-linux-nat.c: Do not include <string.h>.
1502 (supply_fpregset): Remove "register" attribute.
1504 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1506 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1508 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1509 * configure, config.in: Regenerated.
1511 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1513 (vaxbsd_supply_pcb): New function.
1514 (_initialize_vaxbsd_nat): New prototype and function.
1515 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1517 (LOADLIBES): New variable.
1518 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1519 (LOADLIBES): New variable.
1520 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1521 (LOADLIBES): New variable.
1522 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1524 2004-07-16 Andrew Cagney <cagney@gnu.org>
1526 * defs.h (event_loop_p): Replace variable declaration with macro,
1528 * main.c (captured_main): Delete options "-async" and "-noasync".
1529 (event_loop_p): Delete variable.
1530 * NEWS: Mention that "-async" and "-noasync" were removed.
1532 2004-07-16 Andrew Cagney <cagney@gnu.org>
1534 * remote-m32r-sdi.c: Re-indent.
1536 2004-07-16 Jim Blandy <jimb@redhat.com>
1538 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1539 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1540 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1541 missing MPC823 SPRs.
1542 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1543 incorrect. (This was corrected in GDB's register name tables on
1546 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1547 should be "esasrr" ("ESA Save and Restore Register").
1549 2004-07-16 Andrew Cagney <cagney@gnu.org>
1551 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1552 calls, no longer applicable. Update comments and rename parameter
1553 "step_frame" to "return_frame".
1555 2004-07-16 Andrew Cagney <cagney@gnu.org>
1557 * frame.c (fprint_field): New function.
1558 (fprint_frame_id): Use fprint_field.
1560 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1562 * ada-lang.c (ada_language_defn): Remove commented out code.
1564 2004-07-15 Jim Blandy <jimb@redhat.com>
1566 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1567 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1569 2004-07-14 Jim Blandy <jimb@redhat.com>
1571 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1573 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1575 * ppc-tdep.h (ppc_num_srs): New enum constant.
1577 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1578 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1579 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1580 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1581 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1582 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1583 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1584 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1585 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1586 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1587 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1588 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1589 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1590 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1591 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1592 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1593 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1594 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1595 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1596 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1597 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1598 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1599 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1600 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1601 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1602 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1603 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1604 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1605 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1606 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1607 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1608 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1609 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1610 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1611 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1612 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1613 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1614 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1615 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1616 special-purpose register numbers.
1618 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1619 manual mentions 'md_twb', but many mention 'm_twb', and at that
1620 point in the register list.)
1622 2004-07-14 Andrew Cagney <cagney@gnu.org>
1624 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1625 instead of "internal-error".
1627 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1629 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1630 that was inserted inside a comment.
1632 2004-07-10 Randolph Chung <tausq@debian.org>
1634 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1636 (hppa_hpux_push_dummy_code): New function.
1637 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1638 Set find_global_pointer method.
1640 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1642 * NEWS: Mention BSD libkvm interface.
1644 2004-07-10 Michael Snyder <msnyder@redhat.com>
1646 * symfile.c (generic_load): Comment typo.
1647 * stack.c (get_selected_block): Ditto.
1648 * regcache.c (regcache_cooked_read): Ditto.
1649 * monitor.c (monitor_debug): Ditto.
1650 * mips-tdep.c (mips_read_pc): Ditto.
1651 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1652 * gdb_mbuild.sh: Ditto.
1653 * gdbarch.sh: Ditto.
1656 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1658 * ada-tasks.c: Remove file.
1660 Remove ARI problems:
1662 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1665 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1667 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1668 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1669 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1670 (UMIN_OF_SIZE): Remove.
1671 (max_of_type): New function to replace orphan macro in gdbtypes.h
1672 (min_of_type): Ditto.
1673 (discrete_type_high_bound): Use max_of_type.
1674 (discrete_type_low_bound): Use min_of_type.
1675 (possible_user_operator_p): Move operator to beginning of line.
1676 (ada_is_variant_part): Ditto.
1677 (ensure_lval): Rewrite to avoid deprecated operations.
1678 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1679 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1680 (ada_enum_name): Remove assignments in 'if' statements.
1681 (build_ada_types): Add gdbarch parameter.
1682 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1683 with gdbarch_data_register_post_init.
1684 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1687 * ada-valprint.c (inspect_it): Remove declaration.
1688 (repeat_count_threshold): Remove declaration.
1689 (ada_print_floating): Remove assignments in 'if' statements.
1690 (print_str): Move operator to beginning of line.
1692 2004-07-08 Jim Blandy <jimb@redhat.com>
1694 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1696 2004-07-08 Bob Rossi <bob@brasko.net>
1698 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1700 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1702 * language.h (struct_language_defn): Add new function pointer:
1703 la_class_name_from_physname. Also add new prototype for
1704 language_class_name_from_physname.
1705 * language.c (language_class_name_from_physname): New function.
1706 (unk_lang_class_name): Ditto.
1707 (unknown_language_defn, auto_language_defn): Change
1708 to add unk_lang_class_name function pointer for
1709 la_class_name_from_physname.
1710 (local_language_defn): Ditto.
1711 * dwarf2read.c (guess_structure_name): Change to call
1712 language_class_name_from_physname.
1713 (determine_class_name): Ditto.
1714 * cp-support.c (class_name_from_physname): Renamed.
1715 (cp_class_name_from_physname): New name of function.
1716 * cp-support.h: Ditto.
1717 * c-lang.c (c_language_defn): Change to add NULL
1718 for class_name_from_physname function pointer.
1719 (cplus_language_defn): Change to add cp_class_name_from_physname.
1720 * jv-lang.c (java_class_name_physname): New function.
1721 (java_find_last_component): New static routine.
1722 (java_language_defn): Add java_class_name_from_physname pointer.
1723 * ada-lang.c (ada_language_defn): Change to add NULL
1724 for class_name_from_physname function pointer.
1725 * f-lang.c (f_language_defn): Ditto.
1726 * m2-lang.c (m2_language_defn): Ditto.
1727 * objc-lang.c (objc_language_defn): Ditto.
1728 * p-lang.c (pascal_language_defn): Ditto.
1729 * scm-lang.c (scm_language_defn): Ditto.
1731 2004-07-06 Andrew Cagney <cagney@gnu.org>
1733 Patch from Bart Robinson.
1734 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1735 (O_LARGEFILE): Define to 0, if not defined.
1737 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1739 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1740 <machine/pcb.h> and "bsd-kvm.h".
1741 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1742 (m68kbsd_supply_pcb): New function.
1743 (_initialize_m68kbsd_nat): New prototype and function.
1744 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1745 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1746 (LOADLIBES): New variable.
1747 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1748 (LOADLIBES): New variable.
1750 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1752 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1754 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1756 (bsd_kvm_cmdlist): New variable.
1757 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1758 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1759 command and "kvm proc" command.
1760 * Makefile.in (bsd-kvm.o): Update dependencies.
1762 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1764 * osabi.c: Update copyright year.
1765 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1766 notes if EI_OSABI is set to ELFOSABI_HPUX.
1768 2004-07-01 Michael Snyder <msnyder@redhat.com>
1770 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1771 that seems to have gotten whacked out of line.
1773 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1775 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1778 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1780 * ada-lang.c (decode_packed_array): Minor change to comment.
1781 (ada_value_slice_ptr): New function.
1782 (ada_value_slice): New function.
1783 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1784 test. Don't know why it is there.
1785 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1786 to avoid dereferencing huge arrays from which one is slicing.
1787 (empty_array): Correct to return an array rather than
1789 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1790 on empty arrays (let'em use 'FIRST instead).
1792 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1794 Address complaints from gdb_ari.sh:
1796 * ada-exp.y: Include gdb_string.h rather than string.h.
1797 (convert_char_literal): Reformat declaration.
1798 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1799 * ada-lex.l: Change use of free to xfree (the macro would do so
1800 anyway, but this is harmless).
1801 Include gdb_string.h rather than string.h.
1802 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1804 * ada-lang.c (parse): Remove K&Rism in parameter list.
1805 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1807 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1809 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1812 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1814 * alphabsd-nat.c: Update copyright year.
1815 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1817 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1819 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1820 (i386_cygwin_in_solib_call_trampoline): New function.
1821 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1822 and skip_trampoline_code gdbarch methods.
1824 2004-06-29 Jim Blandy <jimb@redhat.com>
1826 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1827 name actually used in the dependency lists.
1829 2004-06-29 Randolph Chung <tausq@debian.org>
1831 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1833 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1835 * win32-nat.c (child_pid_to_exec_file): New function.
1836 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1839 2004-06-28 Andrew Cagney <cagney@gnu.org>
1841 * defs.h (xstrvprintf): Declare.
1842 * utils.c (xstrvprintf): New function.
1843 (internal_vproblem, xstrprintf, xasprintf)
1844 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1845 * serial.c (serial_printf): Ditto.
1846 * complaints.c (vcomplaint): Ditto.
1848 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1850 * infcmd.c (attach_command): Move call to target_terminal_inferior
1851 behind loading symbol table.
1853 2004-06-28 Andrew Cagney <cagney@gnu.org>
1855 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1856 change - add back extern deprecated_ui_loop_hook declaration.
1858 2004-06-28 Andrew Cagney <cagney@gnu.org>
1860 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1862 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1863 (c_value_of_variable): Ditto.
1864 * utils.c (internal_vproblem): Ditto.
1865 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1866 * remote.c (add_packet_config_cmd): Ditto.
1867 * remote-rdp.c (rdp_set_command_line): Ditto.
1868 * regcache.c (regcache_dump): Ditto.
1869 * frv-tdep.c (new_variant, new_variant): Ditto.
1870 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1871 (fbsd_find_memory_regions): Ditto.
1872 * breakpoint.c (create_thread_event_breakpoint)
1873 (create_breakpoints): Ditto.
1874 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1875 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1877 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1879 * ada-lang.c: Re-indent file, with some massaging to help indent
1880 a bit when the result is otherwise really too ugly.
1882 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1884 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1885 code_addr_p and special_addr_p to 'unsigned int'.
1887 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1889 * i386v4-nat.c: Update copyright year and tweak comment.
1890 (regmap): Remove trailing comma.
1891 (supply_gregset): Rename local variable i to regnum. Call
1892 regcache_raw_supply instead of supply_register.
1893 (fill_gregset): Rename argument regno to regnum. Call
1894 regcache_raw_collect instead of regcache_collect.
1896 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1898 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1900 (frame_id_build, frame_id_build_special): Update comments.
1901 (frame_id_build_wild): New prototype.
1902 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1903 struct frame_id fields.
1904 (frame_id_build_wild): New function.
1905 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1907 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1909 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1912 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1914 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1916 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1918 * ada-lang.c: Re-indent file.
1920 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1922 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1923 (no_symtab_msg): Likewise.
1925 2004-06-27 Andreas Schwab <schwab@suse.de>
1927 * source.c: Fix whitespace.
1929 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1931 * configure.in: Include <sys/param.h> for td_pcb test.
1932 * configure: Regenerated.
1934 * i386nbsd-nat.c: New file.
1935 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1936 i386obsd-nat.c and i386obsd-tdep.c.
1937 (i386nbsd-nat.o): New dependency.
1938 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1940 (LOADLIBES): New variable.
1941 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1943 (LOADLIBES): New variable.
1945 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1946 (LOADLIBES): New variable.
1948 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1949 fetching from BSD_KVM_PADDR. Correctly lookup address for
1952 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1954 (amd64fbsd_supply_pcb): New funcion.
1955 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1957 2004-06-27 <david@streamline-computing.com>
1959 Partial fix for PR cli/1056.
1960 * valarith.c: Check for zero in division and remainder
1963 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1965 * i387-tdep.c: Remove excessive whitespace.
1967 2004-06-26 Andrew Cagney <cagney@gnu.org>
1969 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1970 * gdb-events.h, gdb-events.c: Re-generate.
1971 * tui/tui-hooks.c (tui_install_hooks): Update.
1972 (tui_remove_hooks): Update.
1973 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1975 2004-06-26 Mark Kettenis <kettenis@gnu.org>
1977 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1978 (gregset_t, fpregset_t): Remove typedefs.
1979 (REG_OFFSET): Rename argument.
1980 (amd64bsd_r_reg_offset): Rename from reg_offset.
1981 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1983 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1985 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1987 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1989 * vax-tdep.c: Tweak comment.
1991 Add OpenBSD/hppa support.
1992 * NEWS (New native configurations): Mention OpenBSD/hppa.
1993 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1994 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1996 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1997 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1998 * configure.host: Add hppa*-*-openbsd*.
1999 * configure.tgt: Add hppa*-*-openbsd*.
2001 2004-06-25 Andrew Cagney <cagney@gnu.org>
2003 * defs.h (deprecated_ui_loop_hook): Deprecated.
2004 * wince.c (child_wait): Update.
2005 * win32-nat.c (child_wait): Update.
2006 * v850ice.c (v850ice_wait): Update.
2007 * top.c (deprecated_ui_loop_hook): Update.
2009 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2010 (do_unix_readchar): Update.
2011 * ser-tcp.c (net_open): Update.
2012 * remote-sim.c (gdb_os_poll_quit): Update.
2013 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2015 2004-06-24 Andrew Cagney <cagney@gnu.org>
2017 * defs.h (deprecated_pre_add_symbol_hook)
2018 (deprecated_post_add_symbol_hook): Deprecated.
2019 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2020 (symbol_file_add_with_addrs_or_offsets): Update references.
2022 2004-06-24 Andrew Cagney <cagney@gnu.org>
2024 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2025 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2026 * wince.c (ui_loop_hook): Delete extern declaration.
2027 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2028 * v850ice.c (ui_loop_hook): Delete extern declaration..
2029 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2030 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2031 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2032 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2033 ui_loop_hook declaration.
2035 2004-06-24 Andrew Cagney <cagney@gnu.org>
2037 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2038 entry_func_highpc fields.
2039 * objfiles.c (init_entry_point_info): Do not clear
2040 entry_func_lowpc and entry_func_highpc.
2041 (objfile_relocate): Do not relocate entry_func_lowpc and
2043 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2045 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2047 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2048 entry_func_lowpc and entry_func_highpc with call to
2051 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2053 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2054 quad-precision floating point arguments in registers.
2056 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2058 From Michael Mueller <m.mueller99@kay-mueller.de>:
2059 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2062 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2064 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2066 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2067 untriggered watchpoints to a separate if clause. Update function
2068 comment regarding STOPPED_BY_WATCHPOINT argument.
2070 2004-06-22 Jim Blandy <jimb@redhat.com>
2072 * gdbarch.sh: Doc fix.
2074 2004-06-21 Martin Hunt <hunt@redhat.com>
2075 Kevin Buettner <kevinb@redhat.com>
2077 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2078 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2079 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2080 to set_gdbarch_sp_regnum(). Use cooked register number.
2081 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2083 2004-06-21 Andrew Cagney <cagney@gnu.org>
2085 * gdbarch.sh: When the macro field is empty, do not generate a
2086 macro definition. When the macro field is "=", generate the macro
2087 name from the upper-case function name.
2088 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2089 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2090 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2091 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2092 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2093 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2094 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2095 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2096 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2097 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2098 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2099 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2100 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2101 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2102 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2103 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2104 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2105 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2106 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2107 (DEPRECATED_USE_STRUCT_CONVENTION)
2108 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2109 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2110 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2111 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2112 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2113 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2114 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2115 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2116 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2117 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2118 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2119 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2120 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2121 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2122 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2123 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2124 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2125 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2127 2004-06-21 Andrew Cagney <cagney@gnu.org>
2129 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2130 macro name, and the function rather than macro value. Only wrap
2131 macro print statements in #ifdef. Move format logic to where it
2133 * gdbarch.c: Re-generate.
2135 * gdbarch.sh (read): Delete "print_p" and "description", add
2136 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2137 Delete references to print_p.
2138 (TARGET_ARCHITECTURE): Delete print predicate.
2139 * gdbarch.c: Re-generate.
2141 * gdbarch.sh: Check that multi-arch methods do not provide a
2143 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2144 (print_registers_info, print_float_info, print_vector_info)
2145 (adjust_breakpoint_address, remote_translate_xfer_address)
2146 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2147 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2148 name from the multi-arch definition.
2150 2004-06-20 Andrew Cagney <cagney@gnu.org>
2152 * gdbarch.sh: Sort by the function, instead of macro name.
2153 * gdbarch.c: Re-generate.
2155 2004-06-20 Andrew Cagney <cagney@gnu.org>
2157 * gdbarch.sh: Use the function, instead of macro name in
2158 errors and the log file.
2159 (return_value): Remove stray ":" in spec.
2161 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2162 * gdbarch.h, gdbarch.c: Re-generate.
2163 * Makefile.in (arch-utils.o): Update dependencies.
2164 * values.c (using_struct_return): Move code calling
2165 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2166 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2167 to legacy_return_value, simplify.
2168 * infcmd.c (print_return_value): Move code calling
2169 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2170 to legacy_return_value, simplify.
2171 * infcall.c (call_function_by_hand): Move code calling
2172 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2173 * arch-utils.c: Update copyright. Include "gdbcore.h".
2174 (legacy_return_value): New function.
2175 * arch-utils.h: Update copyright.
2176 (legacy_return_value): Declare.
2178 2004-06-20 Andrew Cagney <cagney@gnu.org>
2180 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2181 * gdbarch.h, gdbarch.c: Re-generate.
2182 * values.c (using_struct_return): Update call.
2183 * mcore-tdep.c: Update comment.
2184 * infcall.c (call_function_by_hand): Update comment.
2185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2186 * arch-utils.h (always_use_struct_convention): Update.
2187 * v850-tdep.c (v850_gdbarch_init): Update.
2188 * sh64-tdep.c (sh64_gdbarch_init): Update.
2189 * sh-tdep.c (sh_gdbarch_init): Update.
2190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2191 * mips-tdep.c (mips_gdbarch_init): Update.
2192 * mcore-tdep.c (mcore_gdbarch_init): Update.
2193 * m32r-tdep.c (m32r_gdbarch_init): Update.
2194 * ia64-tdep.c (ia64_gdbarch_init): Update.
2195 * h8300-tdep.c (h8300_gdbarch_init): Update.
2196 * frv-tdep.c (frv_gdbarch_init): Update.
2197 * cris-tdep.c (cris_gdbarch_init): Update.
2198 * arm-tdep.c (arm_gdbarch_init): Update.
2199 * alpha-tdep.c (alpha_gdbarch_init): Update.
2201 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2203 * PROBLEMS: Add more specific information, and a work-around,
2206 2004-06-18 Andrew Cagney <cagney@gnu.org>
2208 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2209 * gdbarch.h, gdbarch.c: Re-generate.
2210 * ada-lang.c (ada_finish_decode_line_1): Update.
2211 * infrun.c (handle_inferior_event): Update.
2212 * infcall.c (find_function_addr): Update.
2213 * linespec.c (minsym_found): Update.
2214 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2216 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2217 * cli/cli-cmds.c (disassemble_command): Update.
2218 * vax-tdep.c (vax_gdbarch_init): Update.
2220 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2222 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2224 2004-06-17 Andrew Cagney <cagney@gnu.org>
2226 GDB 6.1.1 released from the GDB 6.1 branch.
2227 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2230 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2233 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2234 operation as a uleb128. Found by Michael Coulter.
2236 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2238 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2240 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2241 to ada-lang.h; this is needed to be able to implement the kill command
2244 (task_entry): Ditto.
2246 (ada_build_task_list): Ditto.
2248 * ada-lang.c: Conditionalize routines and data structures related
2249 to breakpoints, exceptions, completion, and symbol caching on
2250 GNAT_GDB, since these are not yet used in the submitted public sources.
2251 (ada_main_name): Editorial: Move definition out of exception-related
2254 2004-06-15 Andrew Cagney <cagney@gnu.org>
2256 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2257 deprecated_pc_in_call_dummy.
2259 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2261 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2262 bfd_get_section_size_before_reloc or _raw_size.
2263 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2264 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2265 (dwarf2_read_section): Likewise.
2266 * elfread.c (elf_locate_sections): Likewise.
2267 * gcore.c (derive_heap_segment): Likewise.
2268 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2269 * remote-e7000.c (e7000_load): Likewise.
2270 * remote-m32r-sdi.c (m32r_load): Likewise.
2271 * remote-mips.c (mips_load_srec): Likewise.
2272 (pmon_load_fast): Likewise.
2273 * remote.c (compare_sections_command): Likewise.
2274 * symfile.c (add_section_size_callback): Likewise.
2275 (load_section_callback): Likewise.
2276 (pc_in_unmapped_range): Likewise.
2277 (pc_in_mapped_range): Likewise.
2278 (sections_overlap): Likewise.
2279 (list_overlays_command): Likewise.
2280 (simple_overlay_update_1): Likewise.
2281 (simple_overlay_update): Likewise.
2282 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2283 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2285 2004-06-14 Randolph Chung <tausq@debian.org>
2287 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2288 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2290 (hppa_hpux_inferior_created): New function.
2291 (hppa_hpux_init_abi): Register observer.
2292 * symfile.c (hp_cxx_exception_support_initialized)
2293 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2294 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2296 2004-06-14 Randolph Chung <tausq@debian.org>
2298 * MAINTAINERS (Write After Approval): Alphabetize my entry
2301 2004-06-14 Andrew Cagney <cagney@gnu.org>
2303 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2304 testsuite maintainer.
2306 2004-06-13 Andrew Cagney <cagney@gnu.org>
2308 * infcmd.c (print_return_value): Fix logic, allow
2309 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2311 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2312 defining any macros.
2313 * gdbarch.h: Re-generate.
2315 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2316 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2317 * gdbarch.h: Re-generate.
2319 * values.c (generic_use_struct_convention): Don't check gcc_p.
2321 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2322 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2323 * gdbarch.h, gdbarch.c: Regenerate.
2324 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2325 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2327 deprecated_max_register_raw_size and
2328 deprecated_max_register_virtual_size.
2329 * v850-tdep.c (v850_gdbarch_init): Ditto.
2330 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2332 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2333 * cris-tdep.c (cris_gdbarch_init): Ditto.
2335 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2336 * gdbarch.h, gdbarch.c: Re-generate.
2337 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2338 (m68hc11_use_struct_convention): Delete function.
2339 (m68hc11_extract_struct_value_address): Delete function.
2340 (m68hc11_return_value): New function.
2341 (m68hc11_gdbarch_init): Instead of store_return_value,
2342 extract_return_value, return_value_on_stack,
2343 deprecated_extract_struct_value_address and use_struct_convention,
2345 * values.c (using_struct_return): Do not call
2346 RETURN_VALUE_ON_STACK.
2347 * arch-utils.h (generic_return_value_on_stack_not): Delete
2349 * arch-utils.c (generic_return_value_on_stack_not): Delete
2352 2004-06-12 Andrew Cagney <cagney@gnu.org>
2354 * values.c (register_value_being_returned): Delete function.
2355 * infcmd.c (legacy_return_value): Delete function.
2356 * infcall.c (call_function_by_hand): Inline
2357 "register_value_being_returned", simplify.
2358 * values.c (using_struct_return): Update comment, refer to
2359 print_return_value instead of register_value_being_returned.
2360 * infcmd.c (print_return_value): Inline calls to
2361 register_value_being_returned and legacy_return_value. Simplify.
2363 2004-06-11 Randolph Chung <tausq@debian.org>
2365 * somread.c (som_symtab_read): Exclude gcc local symbols.
2367 2004-06-11 Randolph Chung <tausq@debian.org>
2369 * infrun.c (handle_inferior_event): Handle the case when a
2370 trampoline ends up in the runtime resolver, and if the trampoline
2371 has no name. Rearrange the code so that all the trampoline
2372 processing happens before other step-out-of-range handling.
2374 2004-06-11 Martin Hunt <hunt@redhat.com>
2376 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2379 2004-06-10 Andrew Cagney <cagney@gnu.org>
2381 * blockframe.c (legacy_inside_entry_func): Delete.
2382 (legacy_frame_chain_valid): Inline call to
2383 legacy_inside_entry_func, simplify.
2385 2004-06-10 Bob Rossi <bob@brasko.net>
2387 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2388 * dwarf2read.c (partial_die_info): Add dirname field.
2389 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2390 (read_partial_die): Save away DW_AT_comp_dir.
2391 * defs.h (symtab_to_filename): Removed.
2392 * source.c (find_and_open_source): Added.
2393 (open_source_file): Just calls find_and_open_source.
2394 (symtab_to_filename): Removed.
2395 (symtab_to_fullname, psymtab_to_fullname): Added.
2396 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2397 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2399 * symtab.h (partial_symtab): Add dirname field.
2400 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2401 (mi_cmd_file_list_exec_source_file): Call new function
2402 symtab_to_fullname to find fullname.
2403 (mi_cmd_file_list_exec_source_files): Added.
2404 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2405 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2407 2004-06-10 Andrew Cagney <cagney@gnu.org>
2409 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2410 to generic_use_struct_convention, the default value.
2412 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2415 * ns32k-tdep.c (ns32k_push_arguments): New function.
2416 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2417 * infcall.c (call_function_by_hand): Call error instead of
2418 legacy_push_arguments.
2419 * value.h (legacy_push_arguments): Delete declaration.
2420 * valops.c (legacy_push_arguments): Delete function.
2421 (value_push): Delete function.
2423 2004-06-10 Brian Ford <ford@vss.fsi.com>
2425 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2426 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2428 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2430 2004-06-10 Andrew Cagney <cagney@gnu.org>
2432 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2433 * gdbarch.h, gdbarch.c: Re-generate.
2434 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2436 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2437 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2438 deprecated_pc_in_call_dummy instead of
2439 DEPRECATED_PC_IN_CALL_DUMMY.
2440 (arm_skip_prologue): Ditto.
2441 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2442 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2443 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2444 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2446 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2447 (sh64_init_extra_frame_info, sh64_get_saved_register)
2448 (sh64_pop_frame): Ditto.
2449 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2450 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2451 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2452 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2453 (h8300_pop_frame): Ditto.
2454 * blockframe.c (legacy_inside_entry_func)
2455 (legacy_frame_chain_valid): Ditto.
2456 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2457 to deprecated_pc_in_call_dummy.
2459 2004-06-09 Andrew Cagney <cagney@gnu.org>
2461 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2462 provide a default value.
2463 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2464 * gdbarch.h, gdbarch.c: Re-generate.
2465 * arch-utils.c (generic_convert_register_p): Rename
2466 legacy_convert_register_p
2467 (legacy_register_to_value, legacy_value_to_register): Delete
2469 * arch-utils.h (generic_convert_register_p): Rename
2470 legacy_convert_register_p.
2471 (legacy_register_to_value, legacy_value_to_register): Delete
2474 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2475 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2476 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2477 * gdbarch.h, gdbarch.c: Re-generate.
2478 * infcmd.c (default_print_registers_info): Simplify.
2479 * findvar.c (value_of_register): Simplify.
2480 * mi/mi-main.c (get_register): Simplify.
2481 * arch-utils.c (legacy_convert_register_p): Always return 0.
2482 (legacy_register_to_value, legacy_value_to_register): Always call
2485 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2486 #ifdef CLEAR_INSN_CACHE code.
2487 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2488 Delete #ifdef CLEAR_DEFERRED_STORES code.
2490 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2492 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2494 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2496 * config/mips/mipsv4.mh: Delete file.
2498 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2500 (hpread_adjust_stack_address): Delete declaration.
2502 2004-06-08 Andrew Cagney <cagney@gnu.org>
2504 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2505 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2506 PTRACE_ATTACH / PTRACE_DETACH available call error.
2507 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2508 * infttrace.c (update_thread_state_after_attach, attach, detach):
2509 Remove #ifdef wrappers.
2510 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2511 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2512 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2513 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2514 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2515 * config/nm-linux.h (ATTACH_DETACH): Delete.
2516 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2517 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2518 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2519 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2520 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2522 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2524 * configure.in: Set $configdir to the right OS specific value.
2525 Use value when setting $tcldir and $tkdir.
2526 * configure: Regenerate.
2528 2004-06-06 Paul Brook <paul@codesourcery.com>
2530 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2533 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2535 * ada-lang.c (lookup_symbol_in_language): New function to allow
2536 re-use of another language's symbol lookup code. (Placed here
2537 temporarily while Ada support is being integrated into the public
2539 (restore_language): New auxiliary function for
2540 lookup_symbol_in_language.
2541 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2542 temporarily while Ada support is being integrated into the public
2545 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2547 * Makefile.in (check//%): New.
2549 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2550 (mn10300_store_return_value): Rewrite.
2551 (mn10300_type_align): New.
2552 (mn10300_use_struct_convention): Rewrite.
2553 (mn10300_return_value): New, using all of the above.
2554 (mn10300_pop_frame_regular): Add saved_regs_size.
2555 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2557 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2558 regs if PC is on movm.
2560 2004-06-07 Jim Blandy <jimb@redhat.com>
2562 Add native Linux support for the PowerPC E500.
2563 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2564 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2565 all architectures except the E500.
2566 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2568 (struct gdb_evrregset_t): New type.
2569 (have_ptrace_getsetevrregs): New variable.
2570 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2571 fetch_spe_registers): New functions.
2572 (fetch_register): Call fetch_spe_register as appropriate.
2573 Assert that we're only passed raw register numbers.
2574 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2575 Don't fetch gprs if they're pseudoregisters.
2576 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2577 store_spe_registers): New functions.
2578 (store_register): Call store_spe_register as appropriate.
2579 Assert that we're only passed raw register numbers.
2580 (store_ppc_registers): Call store_spe_registers as appropriate.
2581 Don't store gprs if they're pseudoregisters.
2583 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2585 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2586 struct if one exists, even if we are dealing with a zombie thread.
2588 2004-06-07 Andrew Cagney <cagney@gnu.org>
2590 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2591 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2592 Rename PC_REQUIRES_RUN_BEFORE_USE.
2593 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2596 2004-06-07 Randolph Chung <tausq@debian.org>
2598 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2599 unwinding after sp has been saved to the stack but before the end
2600 of the prologue, and after the fp has been modified but before it has
2601 been saved to the stack.
2602 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2603 Remove superfluous definitions.
2604 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2606 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2608 Committed by Randolph Chung.
2609 * hppa-linux-nat.c: Include the correct version of the header file
2610 depending on the kernel version.
2612 2004-06-06 Randolph Chung <tausq@debian.org>
2614 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2615 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2617 2004-06-06 Randolph Chung <tausq@debian.org>
2619 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2620 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2621 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2622 * hppa-tdep.c (hppa_symbol_address): New function definition.
2623 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2625 2004-06-06 Randolph Chung <tausq@debian.org>
2627 * hppa-tdep.h (struct value): Forward declaration.
2628 (gdbarch_tdep): Define tdep find_global_pointer method.
2629 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2630 associated with the function we are trying to call, and write it
2632 (hppa32_convert_from_funct_ptr_addr): New function.
2633 (hppa_find_global_pointer): New function.
2634 (hppa_gdbarch_init): Set default find_global_pointer method; set
2635 convert_from_func_ptr_addr method.
2636 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2637 (hppa_linux_init_abi): Set find_global_pointer method.
2638 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2640 2004-06-06 Randolph Chung <tausq@debian.org>
2642 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2643 to struct value *function.
2644 * gdbarch.c: Regenerate.
2645 * gdbarch.h: Likewise.
2646 * infcall.c (call_function_by_hand): Pass entire function value
2649 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2650 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2651 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2652 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2653 * arm-tdep.c (arm_push_dummy_call): Likewise.
2654 * avr-tdep.c (avr_push_dummy_call): Likewise.
2655 * cris-tdep.c (cris_push_dummy_call): Likewise.
2656 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2657 * frv-tdep.c (frv_push_dummy_call): Likewise.
2658 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2659 * hppa-tdep.c (hppa32_push_dummy_call)
2660 (hppa64_push_dummy_call): Likewise.
2661 * i386-tdep.c (i386_push_dummy_call): Likewise.
2662 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2663 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2664 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2665 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2666 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2667 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2668 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2669 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2670 (ppc64_sysv_abi_push_dummy_call): Likewise.
2671 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2672 (ppc64_sysv_abi_push_dummy_call): Likewise.
2673 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2674 * s390-tdep.c (s390_push_dummy_call): Likewise.
2675 * sh-tdep.c (sh_push_dummy_call_fpu)
2676 (sh_push_dummy_call_nofpu): Likewise.
2677 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2678 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2679 * vax-tdep.c (vax_push_dummy_call): Likewise.
2681 2004-06-04 Jim Blandy <jimb@redhat.com>
2683 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2684 gdbarch argument to register_size.
2686 * rs6000-tdep.c (rs6000_store_return_value): Use
2687 regcache_cooked_write_part instead of
2688 deprecated_write_register_bytes.
2689 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2690 not gdbarch_deprecated_store_return_value.
2692 * ppc-linux-nat.c (store_register, fetch_register): Remove
2693 incorrect assertions. Simplify and generalize handling of
2694 transfers whose sizes are not multiples of, or less than, sizeof
2697 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2699 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2700 as a new thread event.
2701 * thread-db.c (thread_get_info_callback): If the thread is a
2702 zombie, return TD_THR_ZOMBIE.
2703 (thread_from_lwp): If thread_get_info_callback returns
2704 TD_THR_ZOMBIE, check if the thread is still on the thread list
2705 and return a -1 ptid if not found.
2706 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2707 change the status to TARGET_WAITKIND_SPURIOUS.
2709 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2711 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2712 double values in little endian mode.
2714 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2716 Committed by Andrew Cagney.
2717 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2718 after last enum constant to avoid error from IBM C
2721 2004-06-02 Jim Blandy <jimb@redhat.com>
2723 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2724 to 'message', and make it local to the lone block that uses it.
2726 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2728 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2730 * ada-exp.y: Update copyright notice.
2733 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2734 SPECIAL_VARIABLE and unify the treatment of these cases.
2736 (write_attribute_call0): Remove.
2737 (write_attribute_call1): Remove.
2738 (write_attribute_calln): Remove.
2739 (save_qualifier): Add missing semicolon.
2741 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2742 temporarily disabled to allow compilation with FSF head version.
2744 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2745 use individual operators (OP_*) for all attributes.
2746 (exp syntax): Use write_int.
2747 Handle STRING literals with OP_STRING.
2748 (variable syntax): Add limit parameter to calls to
2749 write_object_renaming.
2751 (temp_parse_space): New definition to hold entities that need
2752 only live until the next call to ada_parse.
2753 (string_to_operator): Rename fields of ada_opname_table entries.
2755 (write_var_from_sym): Record block.
2756 (write_var_from_name): Minor reformatting.
2757 Make sure saved name is properly encoded in the case of multiple
2758 matches, and set its language to Ada.
2760 Modify to indicate unresolved name as symbol in the UNRESOLVED
2761 namespace, allocated in temp_parse_space.
2762 (write_int): New function.
2764 (write_object_renaming): Add max_depth parameter to limit
2765 chains of object renamings.
2766 Handle case where root of renaming expression is itself a renaming.
2767 Use temp_parse_space for temporary name buffer.
2768 Handle renamings to dereferenced pointers (___XEXA suffices).
2770 (ada_parse, yyerror, string_to_operator,
2771 write_var_from_sym, write_var_from_name, write_attribute_call0,
2772 write_attribute_call1, write_attribute_calln,
2773 write_object_renaming): Protoize.
2775 (_initialize_ada_exp): New function.
2777 * ada-lang.c: Update copyright notice.
2778 General terminology change to conform to GNAT compiler usage:
2779 mangle => encode, demangle => decode
2780 Include gdb_obstack.h.
2789 (ADA_RETAIN_DOTS): Make sure this is defined.
2790 (TRUNCATION_TOWARDS_ZERO): Define.
2791 (struct string_vector): Define.
2792 (unresolved_names): Remove definition.
2793 (xnew_string_vector): New function.
2794 (string_vector_append): New function.
2795 (extract_string): Make static.
2796 (ada_unqualified_name): New function.
2797 (add_angle_brackets): New function.
2798 (function_name_from_pc): New function.
2799 (place_on_stack): Rename to ensure_lval.
2801 (ensure_lval): Renamed from place_on_stack.
2802 Make identity on lvals.
2804 (is_nonfunction): New interface.
2805 Only symbols in LOC_CONST class can be enumerals.
2806 (fill_in_ada_prototype): Remove; now independent of language.
2807 (add_defn_to_vec): Add obstack and symtab arguments.
2808 Use obstack to hold collected definitions.
2809 (num_defns_collected): New function.
2810 (defns_collected): New function.
2811 (ada_resolve_subexp): Rename to resolve_subexp.
2812 (resolve_subexp): Renamed from ada_resolve_subexp.
2813 (ada_op_name): Return non-const result.
2814 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2817 (to_fixed_array_type): Add declaration.
2818 (coerce_unspec_val_to_type): Remove offset parameter.
2819 (find_sal_from_funcs_and_line): New interface.
2820 (find_line_in_linetable): Ditto.
2822 (all_sals_for_line): Rename to ada_sals_for_line and make
2824 Add new parameter. When set, do not ask the user to choose the
2825 instance, but use the first one found instead.
2826 Use given line number in returned sals.
2828 Skip the prologue if funfirstline is set.
2829 Correct for memory leak when 0 lines found.
2831 (value_pos_atr): Use pos_atr.
2832 (pos_atr): New function.
2833 (standard_lookup): Add block parameter.
2835 (makeTimeStart): Remove declaration and uses.
2836 (makeTimeStop): Remove declaration and uses.
2838 (ada_completer_word_break_characters): Allow for VMS.
2839 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2840 (raise_sym_name): New constant.
2841 (raise_unhandled_sym_name): New constant.
2842 (raise_assert_sym_name): New constant.
2843 (process_raise_exception_name): New constant.
2844 (longest_exception_template): New constant.
2845 (warning_limit): New variable to limit warnings during expression
2847 (warnings_issued): New variable to keep track of warnings issued.
2848 (known_runtime_file_name_patterns): New constant.
2849 (known_auxiliary_function_name_patterns): New constant.
2850 (symbol_list_obstack): New variable.
2852 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2853 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2854 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2855 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2856 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2857 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2858 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2859 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2862 (ada_get_field_index): New function.
2863 (lim_warning): New function.
2864 (ada_translate_error_message): New function.
2865 (MAX_OF_SIZE): New function.
2866 (MIN_OF_SIZE): New function.
2867 (UMAX_OF_SIZE): New function.
2868 (UMIN_OF_SIZE): New function.
2869 (discrete_type_high_bound): New function.
2870 (discrete_type_low_bound): New function.
2871 (base_type): New function.
2872 (do_command): Remove.
2874 (ada_update_initial_language): Use language_ada, not language_unknown.
2875 (ada_encode): Renamed from ada_mangle.
2876 Obey ADA_RETAIN_DOTS.
2877 (ada_decode): Renamed from ada_demangle.
2878 Update coding conventions.
2879 (decoded_names_store): New hash table.
2880 (ada_decode_symbol): New function.
2881 (ada_la_decode): New function.
2883 (modify_general_field): Correct computations of offset and bit
2885 (desc_base_type): Handle ref types, too.
2886 (ada_is_direct_array_type): New function.
2888 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2889 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2890 (ada_is_bogus_array_descriptor,ada_type_of_array,
2891 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2892 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2893 ada_is_array_descriptor_type.
2895 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2896 (ada_is_packed_array_type): Handle pointers or
2897 references to packed arrays as well.
2898 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2899 (decode_packed_array_type): Search for the packed array type
2900 symbol in the currently selected block and associated
2902 Use lookup_symbol again.
2904 (decode_packed_array): Handle pointers and references.
2905 Update call to coerce_unspec_val_to_type.
2906 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2907 (ada_value_primitive_packed_val): Improve comment.
2909 (ada_index_type): Substitute int type for "undefined".
2910 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2911 ada_array_langth, ada_is_string_type): Use renamed
2912 ada_is_simple_array_type.
2913 (empty_array): New function.
2915 (ada_resolve): Rename to resolve.
2916 (resolve): Make static.
2917 Call renamed resolve_subexp.
2919 (ada_resolve_subexp): Rename to resolve_subexp.
2920 (resolve_subexp): Update comment.
2921 Decomment disabled code.
2922 Add LOC_COMPUTED* cases.
2923 Modify to use temporary struct symbols (marked as being in
2924 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2925 OP_UNRESOLVED_VALUE.
2926 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2929 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2930 Use new ada_lookup_symbol_list interface.
2931 Use new ada_resolve_function interface.
2932 Remove OP_TYPE case.
2934 (ada_args_match): Idiot proof against null actuals.
2935 Use intermediate variables to clarify.
2936 (ada_resolve_function): Update comment and interface.
2937 (mangled_ordered_before): Rename to encoded_ordered_before and
2939 (sort_choices): Update comment and interface.
2940 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2941 (user_select_syms): New interface.
2942 Use new sort_choices interface.
2943 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2944 (possible_user_operator_p): Idiot-proof against null values.
2945 (ada_simple_renamed_entity): Don't make cleanup; rely on
2946 caller to free result string.
2947 Remove const from return type.
2948 (make_array_descriptor): Rename uses of place_on_stack to
2950 Make sure that arrays are on stack.
2952 (HASH_SIZE): Define.
2953 (struct cache_entry): Define.
2954 (cache_space): Define.
2956 (clear_ada_sym_cache): New function.
2957 (find_entry): New function.
2958 (lookup_cached_symbol): New function.
2959 (defn_vector_size): Define.
2960 (cache_symbol): New function.
2961 (defn_symbols): Remove.
2963 (standard_lookup): Use lookup_symbol_in_language to get effect of
2967 (symbol_completion_match): New function.
2968 (symbol_completion_add): New function.
2969 (ada_make_symbol_completion_list): New function.
2971 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2972 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2973 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2974 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2976 (ada_lookup_simple_minsym): New function.
2977 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2979 (add_symbols_from_enclosing_procs): New interface.
2980 Conditionalize more helpfully.
2981 Don't bother if program isn't running.
2982 Use new interface to get_frame_block.
2983 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2985 (remove_extra_symbols): New interface.
2986 (xget_renaming_scope): New function.
2987 (is_package_name): New function.
2988 (renaming_is_visible): New function.
2989 (remove_out_of_scope_renamings): New function.
2991 (ada_lookup_symbol_list): New interface.
2992 Properly reinitialize the symbol list obstack.
2993 Don't call add_symbols_from_enclosing_procs if we start from a
2994 static or global block.
2995 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2996 add_symbols_from_enclosing_procs.
2997 Add symtab data to cached entries.
2998 Handle symbols prefixed with
2999 "standard__" specially; strip prefix and don't look in local symbols.
3000 Do not include out of scope renaming symbols in list of
3002 Add const to block parameter.
3003 Move check for non-local, non-global symbols earlier.
3004 Remove timing stuff.
3005 (ada_lookup_symbol): New interface.
3006 Find symtab as well.
3007 (ada_lookup_symbol_nonlocal): New function.
3009 (is_name_suffix): Enhance suffix detection to recognize
3010 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3011 (is_dot_digits_suffix): New function.
3012 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3014 (ada_add_block_symbols): New interface. Use obstack to return results
3015 in a vector of struct ada_symbol_infos. Add symtab argument.
3016 Use new interface to add_defn_to_vec.
3017 Remove calls to fill_in_ada_prototype.
3018 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3020 (ada_finish_decode_line_1): Add const qualification to local to fix
3022 Start looking in static block for functions to avoid attempts
3023 to search frame chain for up-level variables.
3024 Adapt to new ada_sals_for_line interface.
3025 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3026 Handle quoting of the function name inside the spec string.
3027 Skip prologue when funfirstline is set and update the
3028 function documentation to that effect.
3030 (debug_print_lines, debug_print_block, debug_print_blocks,
3031 debug_print_symtab): Remove.
3033 (ada_main_name): New function.
3034 (ada_exception_breakpoint_type): New function.
3035 (is_known_support_routine): New function.
3036 (ada_find_printable_frame): Renamed from find_printable_frame and made
3038 Remove level parameter.
3039 Use new interface to select_frame.
3041 (begin_command): Remove.
3042 (ada_adjust_exception_stop): New function.
3043 (ada_print_exception_stop): New function.
3044 (exception_name_from_cond): New function.
3045 (ada_report_exception_break): Replace disabled code with
3046 conditionalization on GNAT_GDB.
3047 Get the exception name from the condition string.
3048 Remove and move functionality into new functions
3049 ada_print_exception_breakpoint_task and
3050 ada_print_exception_breakpoint_nontask.
3051 (error_breakpoint_runtime_sym_not_found): New function.
3052 (is_runtime_sym_defined): New function.
3053 (ada_breakpoint_rewrite): Uncomment suppressed code.
3054 Use symbolic error-message and runtime-symbol names.
3055 Surround runtime symbol names in quotes.
3056 Allow non-specific breakpoints on exceptions and assertions before
3059 (ada_is_tagged_type): Add parameter.
3060 (ada_is_tag_type): New function.
3061 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3062 (ada_variant_discrim_type): Ditto.
3063 (value_tag_from_contents_and_address): New function.
3064 (type_from_tag): New function.
3065 (struct tag_args): New structure used to communicate with
3067 (ada_tag_name_1): New function.
3068 (ada_tag_name): New function.
3070 (ada_scan_number): Update comment.
3071 (find_struct_field): New function.
3072 (ada_search_struct_field): Make static.
3073 (ada_value_struct_elt): New version that returns references when
3074 given pointers or references to structs.
3075 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3076 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3078 (ada_value_ind): Use new ada_to_fixed_value interface.
3079 (ada_coerce_ref): Ditto.
3080 (field_offset): Remove.
3082 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3083 (ada_find_renaming_symbol): New function.
3084 (ada_prefer_type): Prefer named types over unnamed ones.
3085 (variant_field_index): New function.
3086 (contains_variant_part): Removed: subsumed by variant_field_index.
3087 (ada_template_to_fixed_record_type): New function, mostly from
3088 template_to_fixed_record_type.
3089 (template_to_fixed_record_type):
3090 Do not scan the type fields beyond the last one; prevents a
3092 Handle case where variant field is listed BEFORE discriminant it
3094 Fix calculation of record length when bit length is
3095 not evenly divisible by char length.
3096 Move code to ada_template_to_fixed_record_type and call it.
3098 (template_to_static_fixed_type): Revise comment.
3099 Modify to work on ordinary record types as well as templates,
3100 so as to handle fields that use ___XVE or ___XVU encodings.
3101 (to_record_with_fixed_variant_part): Fill out comment.
3102 Initialize C++ stuff in right type.
3103 Allow case where DVAL is null.
3104 Handle case where variant field is not last.
3105 Fix typo concerning record length.
3106 (to_fixed_record_type): Decomment disabled code.
3107 (to_fixed_record_type): Use variant_field_index instead of
3108 contains_variant_part.
3109 (to_fixed_variant_branch_type): Ditto.
3110 (to_fixed_array_type): Decomment disabled code.
3111 (ada_to_fixed_type): Convert tagged types to the specific type.
3112 Deactivate the size-check for array types in order to avoid
3113 some false size alarms.
3114 (to_static_fixed_type): Decomment disabled code.
3115 Modify to call template_to_static_fixed_type
3116 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3117 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3118 Remove valaddr argument, as it is never really used.
3119 (ada_to_fixed_value): Change interface to act on single struct value*
3121 (adjust_pc_past_prologue): New function.
3122 (ada_attribute_name): Modify to take enum exp_opcode argument.
3124 (ada_enum_name): Recognize new homonym-distinguishing convention.
3125 Adjust local variable's type to remove compiler warning.
3126 Fix a small problem in the part that unqualifies the enumeration name.
3127 (ada_value_binop): New function.
3128 (ada_value_equal): New function.
3130 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3131 Don't give error message when not doing normal evaluation
3132 and a tagged type doesn't seem to contain a structure member.
3133 Give error message for packed arrays.
3134 For indexing arrays, handle pointers to packed arrays correctly.
3135 Handle case of 'first and 'last attributes of bare integral type
3136 without encoded subtype info.
3137 Remove some unnecessary casts.
3138 Fix uninitialized value of type in computing 'first, 'last, or 'length
3140 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3141 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3143 Attributes are now exp_opcode values.
3144 Correct treatment of 'modulus.
3145 Better error message for taking 'length of wrong kind of type;
3147 Change EVAL_NORMAL to noside for consistency.
3148 Use ada_value_binop for DIV, MOD, REM.
3149 Make special case out of array of length 0, since an argument
3150 of 0 upsets some platforms' malloc.
3151 Use OP_STRING instead of OP_ARRAY.
3152 For slice, add check that we have an array type before extracting
3153 a slice out of it. Avoids a SEGV.
3154 When evaluating an array slice, if the array type is a reference to
3155 an aligner type, then replace the aligner type by the actual type.
3156 Decomment disabled code.
3157 Remove some dead code.
3158 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3159 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3160 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3161 and UNOP_MBR to UNOP_IN_RANGE.
3162 If an array type has a parallel ___XVE type, then use it.
3163 Turn arrays into pointers for lvalue arrays.
3164 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3165 bounds error and handle 0-length slices.
3167 When selecting fields, apply ada_to_fixed_value (because the fields
3168 might have ___XVU or ___XVE encodings even if not dynamic.)
3169 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3170 (ada_is_system_address_type): New function.
3172 (get_var_value): Use new interface to ada_lookup_symbol_list.
3173 (get_int_var_value): New interface.
3174 (to_fixed_range_type): Allow unknown bound, with warning.
3175 (ada_is_modular_type): Decomment disabled code.
3176 (ADA_OPERATORS): New definition.
3177 (ada_operator_length): New function.
3178 (ada_expr_op_name): New function.
3179 (ada_forward_operator_length): New function.
3180 (ada_dump_subexp_body): New function.
3181 (ada_print_subexp): New function.
3182 (ada_exp_descriptor): New constant.
3183 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3184 (ada_language_defn): Add ada_exp_descriptor entry.
3185 Change ada_parse => parse.
3186 Add post-parser entry.
3187 Use ada-specific non-local symbol lookup.
3188 Don't use C-style arrays.
3189 String lower-bound is 1.
3190 Decomment disabled code.
3191 (parse): New function.
3192 New fields ada_translate_error_message, ada_lookup_symbol,
3193 ada_lookup_minimal_symbol.
3195 * ada-lang.h: Update copyright dates.
3196 Replace the mangle/demangle terminology throughout by the
3197 more appropriate encode/decode one.
3198 Include breakpoint.h.
3199 Forward declare struct partial_symbol, struct block.
3200 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3201 (EXTRACT_ADDRESS): Remove.
3202 (EXTRACT_INT): Remove.
3203 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3204 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3205 (MAX_RENAMING_CHAIN_LENGTH): Define.
3206 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3208 (enum task_states): Remove.
3209 ada_task_states: Remove.
3210 (fat_string): Remove.
3211 (struct entry_call): Remove.
3212 (struct task_fields): Remove.
3213 (struct task_entry): Remove.
3215 (struct ada_symbol_info): Define.
3216 (enum ada_attribute): Remove.
3217 (enum ada_operator): Define.
3219 (ada_get_field_index): Declare.
3220 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3221 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3222 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3223 (ada_lookup_symbol_list): New interface.
3224 (ada_decode_symbol): Declare.
3225 (ada_decode): Declare.
3226 (ada_lookup_symbol): New interface.
3227 (ada_update_initial_language): Declare.
3228 (ada_lookup_simple_minsym): Declare.
3229 (user_select_syms): New interface.
3230 (ada_sals_for_line): Declare.
3231 (ada_is_tagged_type): New interface.
3232 (ada_tag_name): Declare.
3233 (ada_lookup_struct_elt_type): Remove declaration.
3234 (ada_search_struct_field): Remove declaration.
3235 (ada_attribute_name): New interface.
3236 (ada_is_system_address_type): Declare.
3237 (ada_to_fixed_value): Remove declaration.
3238 (ada_template_to_fixed_record_type_1): Declare.
3239 (get_int_var_value): New interface.
3240 (ada_find_any_symbol): Declare.
3241 (ada_find_renaming_symbol): Declare.
3242 (ada_mangle): Rename to ada_encode.
3243 (ada_simple_renamed_entity): Remove const.
3244 (ada_main_name): Declare.
3245 (get_current_task): Rename to ada_get_current_task.
3246 (get_entry_number): Remove declaration.
3247 (ada_report_exception_break): Remove declaration.
3248 (ada_print_exception_breakpoint_nontask): Declare.
3249 (ada_print_exception_breakpoint_task): Declare.
3250 (ada_find_printable_frame): Declare.
3252 * ada-lex.l: Update copyright notices.
3253 Use xmalloc and xfree instead of malloc and free.
3254 Use new interface to name_lookup.
3255 Use new interface to
3256 ada_mangle=>ada_encode.
3257 Redo handling of '$...' variable to parallel current treatment
3259 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3260 digit_to_int, strtoulst, processInt, processReal, processId,
3261 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3264 (processInt): Use cast to remove harmless warning.
3265 (processReal): Modify to get rid of compiler warning on scan formats.
3267 (processId): Replace xmalloc with obstack_alloc for name and remove
3268 call to ada_name_string_cleanup.
3269 Remove obsolete disabled code.
3270 (name_lookup): Ditto.
3272 Use obsavestring on temp_parse_space instead of savestring
3273 on name, and remove call to ada_name_string_cleanup.
3274 Free string returned from ada_simple_renamed_entity.
3275 Use new interface to ada_lookup_symbol_list.
3276 Decomment disabled code.
3277 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3279 When a type name lookup succeeds as a result of
3280 lookup_primitive_typename, check for regular type entry that has not
3282 Limit length of chain of renamed symbols we are willing to follow.
3283 Do not break names beginning with "standard__" into segments.
3284 (block_lookup): Use new interface to ada_lookup_symbol_list.
3286 * ada-typeprint.c: Update copyright notice.
3287 (demangled_type_name): Rename to decoded_type_name.
3288 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3289 (print_range_bound): Correct handling of negative
3290 bounds that make the index type looked unsigned under STABS.
3291 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3292 (print_range_type_named): Use the builtin int type if no type
3293 corresponding to the given type name could be found.
3294 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3295 Add some bullet-proofing.
3296 (print_variant_clauses): Allow for variant branches with ___XVU
3297 encodings that are not dynamic fields.
3298 Use new interface to ada_is_tagged_type.
3299 (print_record_type): Allow for fields with ___XVE encodings that
3300 are not dynamic fields.
3301 Use new interface to ada_is_tagged_type.
3302 (ada_print_type): ada_is_array_descriptor =>
3303 ada_is_array_descriptor_type.
3305 * ada-valprint.c: Update copyright notice.
3306 Include gdb_string.h
3308 (ui_memcpy): New function.
3309 (ada_print_floating): New function.
3310 (ada_print_str): Order arguments correctly.
3311 Correct handling of empty arrays and arrays of 0-length items.
3312 ada_is_array_descriptor => ada_is_array_descriptor_type
3313 Print values of type System.Address in hexadecimal format.
3314 Use ada_print_floating to print floating-point numbers in Ada format.
3315 Print class tag values with type names.
3316 No longer print the address of reference values. Avoids
3317 a potential confusion.
3318 (ada_value_print): Stop printing the object type for reference
3319 values, but preserve that behavior for access types. Avoids
3320 a potential confusion.
3321 Simplify one conditional expression, as the first part is now
3323 ada_is_array_descriptor => ada_is_array_descriptor_type
3324 Add check for arrays for null records, and print them by hand.
3326 2004-06-01 Jim Blandy <jimb@redhat.com>
3328 * ppc-tdep.h: Delete unused 'regoff' member.
3329 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3331 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3334 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3335 (hpread_read_struct_type): Likewise.
3337 2004-06-01 Andrew Cagney <cagney@gnu.org>
3339 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3340 instead of xasprintf.
3341 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3342 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3343 (mi_cmd_data_list_register_names)
3344 (mi_cmd_data_list_changed_registers)
3345 (mi_cmd_data_list_register_values)
3346 (get_register, mi_cmd_data_write_register_values)
3347 (mi_cmd_data_write_register_values)
3348 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3349 (mi_cmd_target_download, mi_cmd_target_select)
3350 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3351 (mi_execute_cli_command, mi_execute_async_cli_command)
3352 (mi_execute_async_cli_command): Ditto.
3353 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3354 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3356 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3357 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3358 error_last_message instead of mi_error_last_message.
3359 * mi/mi-main.c (mi_error_last_message): Delete function.
3361 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3362 "invalid number of columns" error. Delete redundant "out of
3365 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3367 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3368 (gregset_t, fpregset_t): Remove typedefs.
3369 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3370 (REG_OFFSET): Rename argument.
3371 (i386bsd_r_reg_offset): Rename from reg_offset.
3372 (REG_ADDR): Remove macro.
3373 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3375 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3376 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3377 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3378 instead of supply_gregset.
3379 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3380 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3381 instead of fill_gregset.
3382 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3384 * i386bsd-nat.c: Don't include "gregset.h".
3385 (supply_gregset, fill_gregset): Make static.
3386 (supply_fpregset, fill_fpregset): Remove.
3387 * Makefile.in (i386bsd-nat.o): Update dependencies.
3389 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3391 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3392 "gdb_assert.h". Con't include "gregset.h".
3393 (fbsd_make_corefile_notes): Use regset-based core file support
3394 instead off fill_gregset and fill_fpregset.
3395 * Makefile.in (fbsd-proc.o): Update dependencies.
3397 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3399 (m88k_frame_prev_register): Simplify code a bit.
3401 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3402 (amd64_collect_fpregset): New function.
3403 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3405 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3407 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3408 (i386_collect_gregset): New function.
3409 (i386_supply_fpregset): Adjust comment.
3410 (i386_collect_fpregset): New function.
3411 (i386_regset_from_core_section): Use i386_collect_gregset and
3412 i386_collect_fpregset.
3414 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3415 handle VALUEP being null.
3417 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3419 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3421 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3423 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3424 assembler in OpenBSD 3.5-current.
3425 (amd64obsd_sigcontext_addr): Likewise.
3427 2004-05-28 Jim Blandy <jimb@redhat.com>
3429 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3430 register set, so our regcache isn't declared "legacy" and our E500
3431 pseudoregister read and write functions aren't ignored.
3432 (rs6000_register_byte, rs6000_register_raw_size,
3433 rs6000_register_virtual_type, rs6000_register_convertible,
3434 rs6000_register_convert_to_virtual,
3435 rs6000_register_convert_to_raw): Deleted.
3436 (rs6000_register_type, rs6000_convert_register_p,
3437 rs6000_register_to_value, rs6000_value_to_register): New
3439 (rs6000_gdbarch_init): Don't register
3440 gdbarch_deprecated_register_size,
3441 gdbarch_deprecated_register_bytes,
3442 gdbarch_deprecated_register_byte,
3443 gdbarch_deprecated_register_raw_size,
3444 gdbarch_deprecated_register_virtual_type,
3445 gdbarch_deprecated_register_convertible,
3446 gdbarch_deprecated_register_convert_to_virtual, or
3447 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3448 register gdbarch_register_type, gdbarch_convert_register_p,
3449 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3451 2004-05-26 Jim Blandy <jimb@redhat.com>
3453 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3454 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3455 functions, updated to match the register numberings used in GCC.
3456 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3457 rs6000_dwarf2_reg_to_regnum as register number conversions
3458 functions for STABS and Dwarf2.
3460 2004-05-26 Randolph Chung <tausq@debian.org>
3462 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3465 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3467 * NEWS: Document new "start" command.
3469 2004-05-25 Randolph Chung <tausq@debian.org>
3471 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3474 2004-05-25 Randolph Chung <tausq@debian.org>
3476 * hppa-hpux-tdep.c (offsetof): Define.
3477 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3478 (hppa32_hpux_frame_base_before_sigtramp)
3479 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3480 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3481 (hppa64_hpux_frame_base_before_sigtramp)
3482 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3484 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3485 (hppa_hpux_sigtramp_frame_unwind_cache)
3486 (hppa_hpux_sigtramp_frame_this_id)
3487 (hppa_hpux_sigtramp_frame_prev_register)
3488 (hppa_hpux_sigtramp_frame_unwind)
3489 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3490 (hppa_hpux_init_abi): Register sigtramp unwinder.
3491 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3493 2004-05-25 Randolph Chung <tausq@debian.org>
3495 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3496 and multiple stack unwinds.
3497 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3499 2004-05-25 Andrew Cagney <cagney@gnu.org>
3501 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3502 * symfile-mem.h: Delete file.
3503 * symfile-mem.c: Do not include "symfile-mem.h".
3504 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3505 "struct bfd_section". When an error do not bother returning NULL.
3506 (add_symbol_file_from_memory_command): Use "struct bfd" and
3507 "struct bfd_section".
3508 * Makefile.in (symfile_mem_h): Delete.
3509 (symfile-mem.o): Update dependencies.
3511 2004-05-25 Nick Roberts <nickrob@gnu.org>
3513 * gdb-mi.el: New file.
3515 2004-05-25 Andrew Cagney <cagney@gnu.org>
3517 * inftarg.c: Include "observer.h".
3518 (child_attach, child_create_inferior): Notify inferior_created.
3519 * corelow.c: Include "observer.h".
3520 (core_open): Notify inferior_created.
3521 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3523 2004-05-25 Andrew Cagney <cagney@gnu.org>
3525 * target.h (struct target_ops): Add from_tty to
3527 (target_create_inferior, find_default_create_inferior): Update.
3528 * infcmd.c (run_command): Update.
3529 * wince.c (child_create_inferior): Update.
3530 * win32-nat.c (child_create_inferior): Update.
3531 * uw-thread.c (uw_thread_create_inferior): Update.
3532 * thread-db.c (thread_db_create_inferior): Update.
3533 * target.c (debug_to_create_inferior)
3534 (find_default_create_inferior): Update.
3535 (maybe_kill_then_create_inferior): Update.
3536 * sol-thread.c (sol_thread_create_inferior): Update.
3537 * remote.c (extended_remote_async_create_inferior)
3538 (extended_remote_create_inferior): Update.
3539 * remote-vx.c (vx_create_inferior): Update.
3540 * remote-st.c (st2000_create_inferior): Update.
3541 * remote-sim.c (gdbsim_create_inferior): Update.
3542 * remote-sds.c (sds_create_inferior): Update.
3543 * remote-rdp.c (remote_rdp_create_inferior): Update.
3544 * remote-rdi.c (arm_rdi_create_inferior): Update.
3545 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3546 * remote-e7000.c (e7000_create_inferior): Update.
3547 * procfs.c (procfs_create_inferior): Update.
3548 * ocd.c (ocd_create_inferior): Update.
3549 * ocd.h (ocd_create_inferior): Update.
3550 * nto-procfs.c (procfs_create_inferior): Update.
3551 * monitor.c (monitor_create_inferior): Update.
3552 * lin-lwp.c (lin_lwp_create_inferior): Update.
3553 * inftarg.c (child_create_inferior): Update.
3554 * hpux-thread.c (hpux_thread_create_inferior): Update.
3555 * gnu-nat.c (gnu_create_inferior): Update.
3557 2004-05-25 Andrew Cagney <cagney@gnu.com>
3559 * MAINTAINERS: Update e-mail address.
3561 2004-05-24 Randolph Chung <tausq@debian.org>
3563 * thread.c (info_threads_command, thread_apply_all_command)
3564 (thread_apply_command, thread_command, do_captured_thread_select):
3565 Remove HPUXHPPA-specific code.
3567 2004-05-24 Randolph Chung <tausq@debian.org>
3569 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3571 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3574 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3576 * infcmd.c (kill_if_already_running): New function, extracted
3578 (run_command): Replace extracted code by call to
3579 kill_if_already_running().
3580 (start_command): New function.
3581 (_initialize_infcmd): Add "start" command.
3583 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3585 Add OpenBSD/m88k support.
3586 * NEWS (New native configurations): Mention OpenBSD/m88k.
3587 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3588 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3589 * Makefile.in (m88k_tdep_h): New variable.
3590 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3591 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3592 * configure.host: Add m88*-*-openbsd*.
3593 * configure.tgt: Add m88*-*-openbsd*.
3595 2004-05-24 Jim Blandy <jimb@redhat.com>
3597 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3600 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3602 * symtab.c (fixup_section): Search section table when lookup by
3605 2004-05-24 Randolph Chung <tausq@debian.org>
3607 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3610 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3612 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3613 register number in regcache_raw_collect call.
3614 (m68kbsd_collect_fpregset): Likewise.
3615 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3617 * regset.h (struct regset): Add back `regset' member.
3619 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3621 * configure.in: Check for td_pcb in `struct thread'.
3622 * configure, config.in: Regenerated.
3624 * dpx2-nat.c: Remove file.
3625 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3626 (dpx2-nat.o): Remove dependencies.
3628 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3629 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3630 (amd64obsd_supply_pcb): New function.
3631 (_initialize_amd64obsd_nat): Enable libkvm interface.
3632 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3633 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3634 (LOADLIBES): New variable.
3636 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3637 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3638 (sparc32nbsd_supply_pcb): New function.
3639 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3640 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3641 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3642 (LOADLIBES): New variable.
3644 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3646 * bsd-kvm.c, bsd-kvm.h: New files.
3647 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3649 (i386fbsd_supply_pcb): New function.
3650 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3651 (i386fbsd-nat.o): Update dependencies.
3652 (bsd_kvm_h): New variable.
3653 (bsd-kvm.o): New dependency.
3654 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3655 (LOADLIBES): New variable.
3657 * regset.c: Tweak comment.
3658 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3660 * regset.h: Update copyright year.
3661 (struct regset): Remove `descr' member, add `gdbarch' member.
3662 (regset_alloc): Adjust prototype and comment.
3663 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3664 (i386_supply_fpregset): Likewise.
3665 (i386_regset_from_core_section): Update call to regset_alloc.
3666 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3668 (i386obsd_aout_regset_from_core_section): Update call to
3670 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3672 (i386nbsd_aout_regset_from_core_section): Update call to
3674 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3676 (amd64_regset_from_core_section): Update call to regset_alloc.
3677 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3679 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3680 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3681 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3682 (sparc32nbsd_init_abi): Update call to regset_alloc.
3683 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3684 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3685 (sparc64obsd_init_abi): Update call to regset_alloc.
3686 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3687 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3688 (sparc64nbsd_init_abi): Update call to regset_alloc.
3689 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3690 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3691 (sparc64fbsd_init_abi): Update call to regset_alloc.
3693 2004-05-22 Jim Blandy <jimb@redhat.com>
3695 * ppc-tdep.h (spe_register_p): New declaration.
3696 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3698 * rs6000-tdep.c (spe_register_p): New function.
3699 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3701 (rs6000_gdbarch_init): Initialize the new members of the tdep
3704 2004-05-21 Jim Blandy <jimb@redhat.com>
3706 * ppc-linux-nat.c (fetch_register): Move code back to be next
3707 to the comment that describes it. (Moved code, instead of
3708 comment, for symmetry with store_register.)
3710 Allocate regset structures in the gdbarch's obstack, not using
3712 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3713 Add 'arch' argument. Allocate the regset on arch's obstack, not
3715 * regset.h (regset_alloc): Update declaration.
3716 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3718 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3719 * i386-tdep.c (i386_regset_from_core_section): Same.
3720 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3721 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3722 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3723 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3724 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3725 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3727 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3729 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3731 2004-05-21 Jim Blandy <jimb@redhat.com>
3733 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3734 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3736 2004-05-20 Jim Blandy <jimb@redhat.com>
3738 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3740 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3742 * regset.h: Make prototype const-correct.
3743 * regset.c (regset_xmalloc): Make const-correct.
3745 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3747 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3748 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3749 (symbol_search_name): Declare.
3751 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3752 (iter_name_next_hashed): Ditto.
3753 (iter_name_next_linear): Ditto.
3754 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3756 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3757 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3758 (symbol_search_name): New function.
3760 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3762 * minsyms.c (build_minimal_symbol_hash_tables): Change
3763 test for adding to demangled hash table to check for difference
3764 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3766 2004-05-19 Jim Blandy <jimb@redhat.com>
3768 Use a constructor function to create regset structures.
3769 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3770 (struct regset): Use supply_regset_ftype. Add new
3771 'collect_regset' member.
3772 (regset_xmalloc): New declaration.
3773 * regset.c: New file.
3774 * am64-tdep.c (amd64_regset_from_core_section): Use
3775 regset_xmalloc to construct regset structures.
3776 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3777 * i386-tdep.c (i386_regset_from_core_section): Same.
3778 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3779 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3780 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3781 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3782 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3783 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3784 * Makefile.in (COMMON_OBS): Add regset.o.
3785 (regset.o): New rule.
3787 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3789 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3790 and pthread_cond_wait.c.
3792 2004-05-18 Jim Blandy <jimb@redhat.com>
3794 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3795 before the mach-specific switch, and then let the individual cases
3796 override the defaults, rather than leaving them uninitialized
3797 until the switch and then setting them in each case.
3799 2004-05-18 Randolph Chung <tausq@debian.org>
3801 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3802 millicode functions.
3804 2004-05-18 Randolph Chung <tausq@debian.org>
3806 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3807 references to dld_flags_buffer consistent.
3809 2004-05-18 Randolph Chung <tausq@debian.org>
3811 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3812 it for unwinding the stack.
3814 2004-05-18 Randolph Chung <tausq@debian.org>
3816 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3817 Undefine these so we can overide them using gdbarch.
3819 2004-05-18 Randolph Chung <tausq@debian.org>
3821 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3822 handling for 64-bit HPUX (elf).
3824 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3826 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3828 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3829 * ia64-tdep.c (examine_prologue): Likewise.
3830 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3831 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3833 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3835 * vax-tdep.c (vax_return_value): Implement
3836 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3838 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3840 * vax-tdep.c (vax_return_value): Fix typo.
3842 2004-05-17 Andrew Cagney <cagney@redhat.com>
3844 * MAINTAINERS: Mark Salter was also responsible for
3847 * NEWS: Mention signal fixes.
3849 2004-05-17 Randolph Chung <tausq@debian.org>
3851 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3852 check to see if we are unwinding an export stub. Export stubs clobber
3853 the %rp in the call path and stores the original rp in a stack slot.
3855 2004-05-17 Jim Blandy <jimb@redhat.com>
3857 * MAINTAINERS: Update address for J.T. Conklin.
3859 2004-05-17 Randolph Chung <tausq@debian.org>
3861 * hppa-tdep.c: Remove superfluous #include's.
3862 * Makefile.in (hppa-tdep.o): Update dependencies.
3864 2004-05-17 Randolph Chung <tausq@debian.org>
3866 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3867 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3868 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3869 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3870 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3871 Remove static function declarations.
3873 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3875 * alphabsd-nat.c: Update copyright year.
3876 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3878 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3881 * m68k-tdep.c (m68k_svr4_return_value): Implement
3882 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3884 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3886 * sol-thread.c Update copyright year. Fix various coding
3887 standards violations. Tweak a few comments.
3888 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3891 2004-05-15 Randolph Chung <tausq@debian.org>
3893 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3894 as pointer instead of array reference since HPUX compiler does
3895 not accept unsized array arguments.
3896 * somsolib.c (dld_flags_buffer): Use constant array size.
3898 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3900 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3901 offset with decimal offset.
3902 (amd64obsd_sigcontext_addr): Return correct address for entire
3905 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3906 instead of get_frame_base.
3908 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3909 (fill_gregset): Use regcache_raw_collect.
3911 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3914 * config/sparc/tm-nbsd64.h: Remove file.
3915 * config/tm-sunos.h: Remove file.
3917 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3919 * rs6000-tdep.c (store_param_on_stack_p): New function,
3920 an improved version of some code extracted from skip_prologue().
3921 (skip_prologue): Use store_param_on_stack_p() to detect
3922 instructions saving a parameter on the stack. Detect when r0
3923 is used to save a parameter.
3924 Do not mark "li rx, SIMM" instructions as part of the prologue,
3925 unless the following instruction is also part of the prologue.
3927 2004-05-14 Andrew Cagney <cagney@redhat.com>
3929 * infrun.c (handle_inferior_event): Simplify
3930 STEP_OVER_UNDEBUGGABLE.
3932 * infrun.c (handle_step_into_function): Delete function.
3933 (handle_inferior_event): Inline calls to
3934 handle_step_into_function.
3936 2004-05-14 Jerome Guitton <guitton@gnat.com>
3938 * rs6000-nat.c: Fix a comment.
3940 2004-05-12 David Anderson <davea@sgi.com>
3942 Committed by Jim Blandy <jimb@redhat.com>:
3943 * regcache.c (struct regcache_descr): fix comment spelling.
3945 2004-05-13 J. Brobecker <brobecker@gnat.com>
3947 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3948 Fixes a link link failure.
3950 2004-05-13 J. Brobecker <brobecker@gnat.com>
3952 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3953 error that was causing the build to fail.
3955 2004-05-13 J. Brobecker <brobecker@gnat.com>
3957 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3958 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3960 2004-05-13 Andrew Cagney <cagney@redhat.com>
3962 * infrun.c (handle_inferior_event): Check for
3963 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3964 calls. Update comments.
3966 2004-05-13 Jim Blandy <jimb@redhat.com>
3968 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3969 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3970 (store_regs_user_thread, store_regs_kernel_thread): Use
3971 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3972 * ppc-linux-nat.c (fill_gregset): Same.
3973 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3974 (ppc_linux_sigtramp_cache): Same.
3975 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3976 (ppcnbsd_sigtramp_cache_init): Same.
3977 * rs6000-nat.c (fetch_core_registers): Same.
3978 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3979 (rs6000_frame_cache): Same.
3981 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3982 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3983 of assuming that the gprs are numbered starting with zero.
3984 * ppc-linux-nat.c (fill_gregset): Same.
3985 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3986 * ppcnbsd-nat.c (getregs_supplies): Same.
3987 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3988 * rs6000-nat.c (fetch_core_registers): Same.
3989 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3991 2004-05-07 Michael Snyder <msnyder@redhat.com>
3993 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3994 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3996 2004-05-13 Andrew Cagney <cagney@redhat.com>
3998 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4000 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4002 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4003 base_address for shared libraries.
4005 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4007 * MAINTAINERS (write after approval): Add myself.
4009 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4011 * breakpoint.c (bpstat_stop_status): Add new argument
4012 STOPPED_BY_WATCHPOINT. Use it instead of testing
4013 target_stopped_data_address agaist 0 to check whether
4014 or not we stopped due to a hardware watchpoint.
4015 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4016 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4019 2004-05-12 Jim Blandy <jimb@redhat.com>
4021 * configure.in: When checking whether we should use the -bbigtoc
4022 option, don't forget to restore the original value of LDFLAGS.
4023 * configure: Regenerated.
4025 2004-05-12 Andrew Cagney <cagney@redhat.com>
4027 * thread.c (load_infrun_state): Delete step_sp.
4028 * infrun.c (context_switch): Ditto.
4029 * inferior.h (step_sp): Ditto.
4030 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4031 * gdbthread.h (struct thread_info, save_infrun_state)
4032 (restore_infrun_state): Ditto.
4034 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4036 * MAINTAINERS (write after approval): Add myself.
4038 2004-05-12 Andrew Cagney <cagney@redhat.com>
4040 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4041 eliminate reference to step_sp.
4042 (struct execution_control_state, init_execution_control_state)
4043 (handle_inferior_event, keep_going): Delete update_step_sp and
4045 * infcmd.c (step_sp): Note that variable is unused.
4047 2004-05-11 Andrew Cagney <cagney@redhat.com>
4049 * infrun.c (step_over_function): Delete function.
4050 (handle_step_into_function): Use insert_step_resume_breakpoint.
4051 (insert_step_resume_breakpoint): Fix assertion.
4053 2004-05-11 Nick Roberts <nickrob@gnu.org>
4055 * utils.c (defaulted_query): Just use the normal query input type
4056 when printing the annotations.
4058 2004-05-11 Andrew Cagney <cagney@redhat.com>
4060 * infrun.c (handle_inferior_event): Simplify code handling
4061 step-into or return-from a signal trampoline.
4063 2004-05-11 Andrew Cagney <cagney@redhat.com>
4065 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4066 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4068 2004-05-10 Jim Blandy <jimb@redhat.com>
4070 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4071 with a call to internal_error.
4073 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4074 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4075 processor variant lacks those registers.
4076 (ppc_floating_point_unit_p): Change description to make it clear
4077 that this returns info about the ISA, not the ABI.
4078 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4079 return true or false by checking tdep->ppc_fp0_regnum and
4080 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4081 arch/mach switching done in rs6000_gdbarch_init; it's better to
4082 keep that logic there, and just check the results here.
4083 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4084 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4085 floating-point registers.
4086 (ppc_supply_fpregset, ppc_collect_fpregset)
4087 (rs6000_push_dummy_call, rs6000_extract_return_value)
4088 (rs6000_store_return_value): Assert that we have floating-point
4090 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4091 (rs6000_frame_cache): Don't note the locations at which
4092 floating-point registers were saved if we have no fprs.
4093 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4095 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4096 (store_regs_user_thread, store_regs_kernel_thread): Only call
4097 supply_fprs / fill_fprs if we actually have floating-point
4099 (special_register_p): Check ppc_fpscr_regnum before matching
4101 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4102 supply / collect fpscr if we don't have it.
4103 * ppc-bdm.c: #include "gdb_assert.h".
4104 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4105 have floating-point registers, since I can't test this code on
4106 FP-free systems to adapt it.
4107 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4108 fpscr and floating point register numbers if they don't exist.
4109 (fetch_register): Assert that we have floating-point registers
4110 before we reach the code that handles them.
4111 (store_register): Same. And use tdep instead of calling
4113 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4115 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4116 fprs and fpscr if we don't have them.
4117 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4119 * ppcnbsd-nat.c: #include "gdb_assert.h".
4120 (getfpregs_supplies): Assert that we have floating-point registers.
4121 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4122 * ppcobsd-tdep.c: #include "gdb_assert.h".
4123 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4124 have floating-point registers.
4125 * rs6000-nat.c (regmap): Don't match against the fpscr and
4126 floating point register numbers if they don't exist.
4127 (fetch_inferior_registers, store_inferior_registers,
4128 fetch_core_registers): Only fetch / store / supply the
4129 floating-point registers and the fpscr if we have them.
4130 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4131 (ppcobsd-tdep.o): Update dependencies.
4133 2004-05-10 Andrew Cagney <cagney@redhat.com>
4135 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4136 (context_switch): Do not switch through_sigtramp_breakpoint.
4137 * gdbthread.h (save_infrun_state, load_infrun_state)
4138 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4139 and structure member.
4140 * thread.c (load_infrun_state, save_infrun_state): Update.
4142 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4144 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4146 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4148 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4150 * aclocal.m4: Regenerate.
4152 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4154 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4156 2004-05-10 Andrew Cagney <cagney@redhat.com>
4158 * infrun.c (check_sigtramp2): Delete function.
4159 (handle_inferior_event): When single stepping, and taking a
4160 signal, set a breakpoint at the signal return address. Delete
4161 redundant calls to check_sigtramp2.
4162 (insert_step_resume_breakpoint): New function.
4163 (through_sigtramp_breakpoint, handle_inferior_event)
4164 (follow_exec, wait_for_inferior, fetch_inferior_event)
4165 (currently_stepping, keep_going): Delete most uses of
4166 through_sigtramp_breakpoint, not that it should be deleted.
4167 (delete_breakpoint_current_contents): Delete function.
4169 2004-05-10 Randolph Chung <tausq@debian.org>
4171 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4173 * config/pa/tm-linux.h: New file.
4175 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4177 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4178 of prefixes. Don't print the prefix twice in the CLI.
4180 2004-05-10 Jim Blandy <jimb@redhat.com>
4182 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4183 collect all the gprs.
4185 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4186 loop collecting gprs.
4188 2004-05-09 Andrew Cagney <cagney@redhat.com>
4190 * remote-vx.c (net_step): Delete step-range code.
4191 * remote.c (remote_resume, init_all_packet_configs)
4192 (set_remote_protocol_E_packet_cmd)
4193 (show_remote_protocol_E_packet_cmd)
4194 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4195 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4196 (show_remote_protocol_e_packet_cmd): Ditto.
4198 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4200 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4202 * hppa-tdep.h: Update copyright year.
4203 (struct trad_frame_saved_reg): Add opaque declaration.
4205 * amd64-tdep.c (amd64_return_value): Implement
4206 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4208 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4209 (m68k_value_to_register): New functions.
4210 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4213 * defs.h (enum return_value_convention): Add
4214 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4215 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4216 * infcmd.c (legacy_return_value): New function.
4217 (print_return_value): Rwerite to implement
4218 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4219 * values.c (using_struct_return): Check for inequality to
4220 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4221 RETURN_VALUE_STRUCT_CONVENTION.
4222 * i386-tdep.c (i386_return_value): Implement
4223 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4225 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4226 include "symtab.h", "opcode/vax.h" and "inferior.h".
4227 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4228 to read_memory_unsigned_integer.
4229 (vax_gdbarch_init): Reorder.
4230 (_initialize_vax_tdep): Spell out prototype.
4231 * Makefile.in (vax-tdep.o): Update dependencies.
4233 2004-05-08 Andrew Cagney <cagney@redhat.com>
4235 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4236 * target.c (target_detach, target_disconnect): Ditto.
4238 * infcall.c (call_function_by_hand): When no
4239 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4240 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4241 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4243 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4245 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4246 * gdbarch.h, gdbarch.c: Re-generate.
4247 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4248 deprecated_fix_call_dummy.
4249 * v850-tdep.c (v850_gdbarch_init): Ditto.
4250 * infcall.c (call_function_by_hand): Do not call
4251 DEPRECATED_FIX_CALL_DUMMY.
4253 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4254 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4255 * gdbarch.h, gdbarch.c: Re-generate.
4256 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4257 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4258 deprecated_sizeof_call_dummy_words.
4259 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4261 * v850-tdep.c (v850_gdbarch_init): Ditto.
4262 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4263 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4266 * arch-utils.h (legacy_call_dummy_words)
4267 (legacy_sizeof_call_dummy_words): Delete declarations.
4268 * arch-utils.c (legacy_call_dummy_words)
4269 (legacy_sizeof_call_dummy_words): Delete variables.
4271 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4272 * gdbarch.h, gdbarch.c: Re-generate.
4273 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4274 * infcall.c (call_function_by_hand): Eliminate call to
4275 DEPRECATED_PUSH_DUMMY_FRAME.
4276 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4278 (ns32k_push_dummy_frame): Delete function.
4280 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4281 deprecated_call_dummy_breakpoint_offset or
4282 deprecated_call_dummy_start_offset.
4283 * dummy-frame.c, arm-tdep.c: Update comments.
4284 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4285 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4286 * gdbarch.h, gdbarch.c: Re-generate.
4288 * infcall.c (legacy_push_dummy_code): Delete function.
4289 (push_dummy_code): Delete call.
4291 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4292 * gdbarch.h, gdbarch.c: Re-generate.
4293 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4294 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4295 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4296 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4298 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4299 (struct frame_info): Delete opaque declaration.
4300 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4301 * frame.c (get_frame_type): Delete call.
4303 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4305 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4306 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4308 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4310 * alphanbsd-tdep.c: Include "gdb_string.h".
4311 * armnbsd-tdep.c: Update copyright year.
4312 Include "gdb_string.h".
4313 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4316 * delta68-nat.c: Remove file.
4317 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4318 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4319 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4320 (delta68-nat.o): Remove dependency.
4322 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4324 (m68k_gdbarch_init): Don't set
4325 deprecated_frameless_function_invocation.
4327 2004-05-07 Randolph Chung <tausq@debian.org>
4329 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4330 read_memory_nobpt for code reading when doing frame unwinding.
4331 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4333 2004-05-07 Randolph Chung <tausq@debian.org>
4335 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4336 instead of sp, handle sigaltstack case.
4337 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4338 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4339 signal handler and not that of the caller.
4340 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4341 hppa_linux_sigtramp_find_sigcontext.
4343 2004-05-07 Randolph Chung <tausq@debian.org>
4345 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4347 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4348 * hppa-linux-nat.c (fetch_register, store_register): Define.
4349 (fetch_inferior_registers, store_inferior_registers): Define.
4350 (supply_gregset): Add comment and clean up some unneeded code.
4351 (fill_gregset): Add comment and fix so that it saves registers in
4352 the right place in the gregset.
4353 (fill_fpregset): Fix buffer overrun problem.
4354 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4356 2004-05-07 Randolph Chung <tausq@debian.org>
4358 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4359 do common handling of the pcoqt register.
4360 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4361 to use helper function.
4362 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4363 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4364 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4365 generic fallback unwinder when all else fails.
4366 (hppa_gdbarch_init): Add fallback sniffer.
4367 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4368 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4369 to use helper function.
4371 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4373 * config/djgpp/fnchange.lst: Add translation rules for
4374 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4376 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4378 * frame.c (get_prev_frame_1): Work around GCC bug.
4379 * frame.h: Add comment about GCC bug.
4381 2004-05-07 Andrew Cagney <cagney@redhat.com>
4383 * observer.c: Include "commands.h" and "gdbcmd.h".
4384 (observer_debug, _initialize_observer): Add the
4385 command "set/show debug observer".
4386 * observer.sh: When observer debugging, log notify calls.
4387 * Makefile.in (observer.o): Update dependencies.
4389 2004-05-07 Jason Molenda (jmolenda@apple.com)
4391 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4393 2004-05-07 Jim Blandy <jimb@redhat.com>
4395 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4396 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4397 to recognize gpr regnums, instead of assuming that
4398 tdep->ppc_fp0_regnum marks the end of the general-purpose
4401 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4402 the given architecture has floating-point registers.
4404 2004-05-07 Andrew Cagney <cagney@redhat.com>
4406 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4408 * gdbarch.h, gdbarch.c: Re-generate.
4409 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4410 deprecated_use_generic_dummy_frames.
4412 2004-05-07 Brian Ford <ford@vss.fsi.com>
4414 * NEWS: Mention Cygwin DWARF 2 support.
4416 2004-05-07 Andrew Cagney <cagney@redhat.com>
4418 * objfiles.h (struct entry_info): Delete unused fields
4419 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4420 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4421 * mipsread.c (mipscoff_symfile_read): Update.
4422 * mdebugread.c (parse_partial_symbols): Update.
4423 * dwarfread.c (read_file_scope): Update.
4424 * dwarf2read.c (read_file_scope): Update.
4425 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4426 * coffread.c (complete_symtab): Update.
4428 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4430 * infcall.c (_initialize_infcall): Fix typo.
4432 2004-05-07 Andrew Cagney <cagney@redhat.com>
4434 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4435 * command.h (add_setshow_zinteger_cmd): Declare.
4437 2004-05-06 Randolph Chung <tausq@debian.org>
4439 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4440 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4441 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4442 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4443 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4444 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4445 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4447 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4448 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4449 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4450 (hppa64_hpux_frame_find_saved_regs_in_sig)
4451 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4452 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4453 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4454 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4455 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4456 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4457 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4458 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4459 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4460 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4461 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4462 (hppa32_register_type, hppa_cannot_store_register)
4463 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4464 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4465 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4466 * pa64solib.c (pa64_solib_have_load_event)
4467 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4468 (pa64_solib_unloaded_library_pathname): Likewise.
4469 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4470 (som_solib_library_pathname): Likewise.
4472 2004-05-05 Jim Ingham <jingham@apple.com>
4474 * breakpoint.c (create_breakpoints): Copy the ignore count and
4475 thread id over from the pended breakpoint to the actual
4478 2004-05-05 Andrew Cagney <cagney@redhat.com>
4480 * gdbarch.sh (PARM_BOUNDARY): Delete.
4481 gdbarch.h, gdbarch.c: Re-generate.
4482 * valops.c (PARM_BOUNDARY): Delete macro.
4483 (value_push): Delete PARM_BOUNDARY code.
4484 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4486 2004-05-04 Jim Blandy <jimb@redhat.com>
4488 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4489 Don't assume that the gprs, fprs, and UISA sprs are
4490 contiguous, start at register number zero, and end with fpscr.
4491 Instead, use the numbers from the tdep structure.
4493 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4494 should no longer be used in code specific to the RS6000 and its
4496 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4497 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4498 tdep->ppc_fp0_regnum.
4499 (ppc_supply_fpregset, ppc_collect_fpregset)
4500 (rs6000_push_dummy_call, rs6000_extract_return_value)
4501 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4502 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4504 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4505 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4507 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4508 bdm_ppc_store_registers): Same.
4509 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4510 (store_register, fill_fpregset): Same.
4511 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4512 (ppc_linux_supply_fpregset): Same.
4513 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4514 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4516 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4517 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4518 ppc64_sysv_abi_return_value): Same.
4519 * rs6000-nat.c (regmap, fetch_inferior_registers)
4520 (store_inferior_registers, fetch_core_registers): Same.
4522 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4524 * m68knbsd-nat.c: Remove file.
4525 * m68knbsd-tdep.c: Remove file.
4526 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4528 * configure.host: Add m68k-*-netbsdelf*.
4529 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4530 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4531 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4533 * config/m68k/nbsdelf.mh: New file.
4534 * config/m68k/nbsd.mt: New file.
4535 * config/m68k/nbsdaout.mt: Remove file.
4536 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4537 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4538 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4539 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4540 (use_struct_convention): Remove prototype.
4541 (USE_STRUCT_CONVENTION): Remove define.
4542 * config/m68k/xm-nbsd.h: Remove file.
4544 2004-05-04 Michael Snyder <msnyder@redhat.com>
4546 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4547 reg_struct_return method (as gcc usually does for cross targets).
4549 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4551 Committed by Andrew Cagney.
4552 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4553 alignment padding when accessing ucontext struct members.
4555 2004-05-04 Jim Blandy <jimb@redhat.com>
4557 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4558 'ppc_gplast_regnum' member.
4559 (ppc_num_gprs): New enum constant.
4560 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4561 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4562 * rs6000-nat.c (regmap, fetch_inferior_registers,
4563 store_inferior_registers): Same.
4564 * rs6000-tdep.c (e500_pseudo_register_read)
4565 (e500_pseudo_register_write): Same.
4566 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4568 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4569 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4570 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4571 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4573 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4575 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4576 * rs6000-nat.c (regmap, fetch_inferior_registers)
4577 (store_inferior_registers): Same.
4579 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4582 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4584 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4585 failure detected by recent versions of GCC.
4586 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4587 to be consistent with the usage in dwarf2_create_include_psymtab.
4589 2004-05-03 Michael Snyder <msnyder@redhat.com>
4591 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4592 (heuristic_proc_start): Whitespace cleanup.
4594 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4596 * sun3-nat.c: Remove file.
4597 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4599 (ALLDEPFILES): Remove sun3-nat.c.
4600 (sun3-nat.o): Remove dependencies.
4602 * i386-interix-nat.c, i386-interix-tdep.c,
4603 config/i386/nm-interix.h, config/i386/interix.mh,
4604 config/i386/interix.mt: Remove files.
4605 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4608 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4610 * m68k-tdep.h (struct gdbarch_tdep): Add member
4611 struct_value_regnum.
4612 (m68k_svr4_init_abi): New prototype.
4613 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4614 different calling conventions.
4615 (m68k_extract_return_value): Remove code dealing with single-field
4617 (m68k_store_return_value): Remove code dealing with single-field
4618 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4619 (m68k_extract_struct_value_address): Remove function.
4620 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4621 (m68k_reg_struct_return_p, m68k_return_value)
4622 (m68k_svr4_return_value): New functions.
4623 (m68k_use_struct_convention): Remove function.
4624 (m68k_push_dummy_call): Use new struct_value_regnum member of
4625 `struct gdbarch_tdep' instead of hardcoded register number to
4627 (m68k_svr4_init_abi): New function.
4628 (m68k_gdbarch_init): Don't set extract_return_value,
4629 store_return_values, deprecated_extract_struct_value_address and
4630 use_struct_convention. Set return_value instead. Initialize new
4631 struct_value_regnum member of `struct gdbarch_tdep'.
4632 * m68klinux-tdep.c: Update copyright year.
4633 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4634 (m68k_linux_extract_struct_value_address): Remove function.
4635 (m68k_linux_init_abi): Don't set extract_return_value,
4636 store_return_values, deprecated_extract_struct_value_address and
4637 use_struct_convention. Call m68k_svr4_init_abi but override the
4638 new struct_value_regnum member of `struct gdbarch_tdep'.
4639 * Makefile.in (m68k-tdep.o): Update dependencies.
4641 2004-05-03 J. Brobecker <brobecker@gnat.com>
4643 * dwarf2read.c (line_header): Add new included_p field in
4645 (partial_die_info): New field has_stmt_list. New field line_offset.
4646 (dwarf2_create_include_psymtab): New function.
4647 (dwarf2_build_include_psymtabs): New function.
4648 (add_file_name): Add forward declaration. Initialize new field.
4649 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4650 to be able to determine the list of files included by the
4651 given unit, and build their associated psymtabs.
4652 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4654 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4655 (read_file_scope): Update call to dwarf_decode_lines.
4656 (read_partial_die): Handle DW_AT_stmt_list attributes.
4658 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4661 * configure.in: Revert special case for osf5.*.
4662 * configure: Regenerate.
4664 2004-05-02 Jim Blandy <jimb@redhat.com>
4666 Move the symbol-file-from-memory functions into their own file.
4667 * symfile-mem.c, symfile-mem.h: New files.
4668 * symfile.c (symbol_file_add_from_bfd): New function.
4669 (symbol_file_add): Call symbol_file_add_from_bfd.
4670 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4671 Moved to symfile-mem.c.
4672 (_initialize_symfile): Move definition of
4673 add-symbol-file-from-memory command to symfile-mem.c.
4674 * symfile.h (symbol_file_add_from_bfd): New declaration.
4675 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4676 * config/powerpc/linux.mt (TDEPFILES): Same.
4677 * Makefile.in (SFILES): Add symfile-mem.c.
4678 (symfile_mem_h): New variable.
4679 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4680 (symfile-mem.o): New rule.
4682 2004-05-01 Andrew Cagney <cagney@redhat.com>
4684 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4685 frame_find_by_id instead of frame_relative_level.
4686 (do_enable_breakpoint): Ditto.
4687 * thread.c: Update copyright.
4688 (info_threads_command): Ditto, simplify.
4690 * frame.c (deprecated_generic_get_saved_register): Delete
4691 function, moved to "xstormy16-tdep.c".
4692 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4693 deprecated_generic_get_saved_register from "frame.c".
4694 (xstormy16_frame_saved_register): Call
4695 xstormy16_get_saved_register.
4696 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4698 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4699 * frame.h (deprecated_generic_get_saved_register): Delete.
4701 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4703 * dwarfread.c: Update documentation on the state of dwarf-1.
4705 2004-05-01 Andrew Cagney <cagney@redhat.com>
4707 * stack.c (select_frame_command): Delete call to
4708 frame_relative_level.
4709 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4711 (frame_info): Do not print FRAMELESS.
4712 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4713 (catch_info): Delete #if0 code.
4715 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4716 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4717 of frame_relative_level.
4718 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4720 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4721 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4722 frame_relative_level.
4724 * frame.h (deprecated_set_frame_type): Delete declaration.
4725 * frame.c (deprecated_set_frame_type): Delete function, update
4728 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4729 * gdbarch.h, gdbarch.c: Re-generate.
4730 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4731 (shnbsd_pc_in_sigtramp): Delete.
4732 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4734 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4736 * frame.h: Update comments.
4737 * ppc-linux-tdep.c: Update comments.
4738 * breakpoint.c (bpstat_what): Update comments.
4740 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4741 m68klinux-tdep.o's dependencies, were previously added to
4744 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4745 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4746 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4747 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4748 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4750 * Makefile.in (m68klinux-nat.o): Update dependencies.
4751 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4752 (m68k_linux_sigtramp_frame_cache)
4753 (m68k_linux_sigtramp_frame_this_id)
4754 (m68k_linux_sigtramp_frame_prev_register)
4755 (m68k_linux_sigtramp_frame_unwind)
4756 (m68k_linux_sigtramp_frame_sniffer)
4757 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4758 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4759 names, use trad-frame.h.
4760 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4761 (struct m68k_sigtramp_info): Delete.
4762 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4763 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4764 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4765 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4768 * infrun.c (check_sigtramp2): Delete check for
4769 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4771 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4773 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4775 2004-05-01 Andrew Cagney <cagney@redhat.com>
4777 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4778 (frv_linux_sigtramp_frame_cache)
4779 (frv_linux_sigtramp_frame_this_id)
4780 (frv_linux_sigtramp_frame_prev_register)
4781 (frv_linux_sigtramp_frame_unwind)
4782 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4783 include "linux" in function and variable names, directly call
4784 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4785 the latest trad-frame code.
4786 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4787 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4788 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4789 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4790 * frv-tdep.c (frv_sigtramp_frame_cache)
4791 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4792 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4794 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4795 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4796 (frv_set_sigcontext_reg_addr): Delete function.
4798 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4799 (DEPRECATED_SIGTRAMP_END): Delete.
4800 * gdbarch.h, gdbarch.c: Re-generate.
4801 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4802 * config/vax/tm-vaxbsd.h: Update copyright.
4803 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4804 (DEPRECATED_IN_SIGTRAMP): Define.
4805 * config/m68k/tm-nbsd.h: Update copyright.
4806 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4807 (DEPRECATED_IN_SIGTRAMP): Define.
4809 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4811 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4812 encondings. Fixes PR gdb/1628.
4814 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4815 DW_CFA_restore state without a matching DW_CFA_remember_state
4816 instead of aborting. Fixes PR backtrace/1589.
4818 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4820 * MAINTAINERS: Add self as AIX maintainer.
4821 Update my e-mail address in write-after-approval section.
4823 2004-04-30 Andrew Cagney <cagney@redhat.com>
4825 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4826 (legacy_get_prev_frame): Ditto.
4828 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4829 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4830 * mipsread.c (sigtramp_address): Delete extern variable.
4831 (mipscoff_new_init): Delete reference.
4832 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4833 (fixup_sigtramp): Delete function.
4834 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4835 (fixup_sigtramp): Delete declarations.
4837 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4838 deprecated_pc_in_sigtramp.
4839 (ppcnbsd_pc_in_sigtramp): Delete function.
4841 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4843 * config/m68k/nm-nbsd.h: Tweak comments.
4844 * config/m68k/nm-nbsdaout.h: Likewise.
4846 2004-04-30 Andrew Cagney <cagney@redhat.com>
4848 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4849 legacy_pc_in_sigtramp.
4850 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4852 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4854 Add OpenBSD/m68k support.
4855 * NEWS (New native configurations): Mention OpenBSD/m68k.
4856 * m68kbsd-tdep.c: New file.
4857 * m68kbsd-nat.c: New file.
4858 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4859 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4860 * configure.host: Add m68k-*-openbsd.
4861 * configure.tgt: Add m68k-*-openbsd.
4862 * config/m68k/tm-obsd.h: New file.
4863 * config/m68k/obsd.mt: New file.
4864 * config/m68k/obsd.mh: New file.
4865 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4868 2004-04-30 Andrew Cagney <cagney@redhat.com>
4870 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4871 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4873 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4875 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4876 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4878 2004-04-30 Brian Ford <ford@vss.fsi.com>
4880 Revert 2004-04-16 change.
4881 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4882 (i386_coff_init_abi): Remove.
4883 * i386-tdep.h (i386_coff_init_abi): Remove.
4884 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4886 2004-04-30 Andrew Cagney <cagney@redhat.com>
4888 * blockframe.c (find_pc_partial_function): Delete use of
4889 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4890 DEPRECATED_SIGTRAMP_END.
4892 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4893 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4894 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4895 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4896 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4898 * defs.h (deprecated_inside_entry_file): Delete declaration.
4899 * blockframe.c (deprecated_inside_entry_file): Delete function.
4900 (legacy_frame_chain_valid): Delete call.
4901 * sh64-tdep.c (sh64_frame_chain): Delete call.
4902 * objfiles.h: Update comments.
4903 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4905 * frame.c (get_prev_frame): Delete call, update comments.
4907 2004-04-30 Brian Ford <ford@vss.fsi.com>
4909 * MAINTAINERS (Write After Approval): Add myself.
4911 2004-04-30 Andrew Cagney <cagney@redhat.com>
4913 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4914 * gdbarch.h, gdbarch.c: Re-generate.
4915 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4918 2004-04-30 Andrew Cagney <cagney@redhat.com>
4920 * gdb-events.sh (selected_thread_changed)
4921 (selected_frame_level_changed, target_changed): Delete.
4922 * gdb-events.h, gdb-events.c: Re-generate.
4923 * valops.c (value_assign): Update.
4924 * stack.c (select_frame_command, up_silently_base)
4925 (down_silently_base): Update.
4927 2004-04-29 Andrew Cagney <cagney@redhat.com>
4929 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4930 registers correctly.
4931 (print_gp_register_row, mips32_heuristic_proc_desc)
4932 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4933 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4934 references to mips_isa_regsize.
4936 2004-04-29 Andrew Cagney <cagney@redhat.com>
4938 * mips-tdep.c (struct gdbarch_tdep): Delete
4939 mips_fp_register_double.
4940 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4942 (mips_gdbarch_init): Do not set mips_fp_register_double.
4943 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4945 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4947 Committed by Andrew Cagney.
4948 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4951 2004-04-29 Andrew Cagney <cagney@redhat.com>
4953 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4954 gdbarch, use mips_abi, update callers.
4955 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4956 mips_abi_regsize, update callers.
4957 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4958 mips_default_abi_regsize.
4959 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4960 mips_default_abi_regsize.
4962 2004-04-29 Andrew Cagney <cagney@redhat.com>
4964 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4965 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4966 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4967 mips_default_abi_regsize.
4968 (mips_isa_regsize): Rename mips_regisze.
4969 * mipsnbsd-tdep.c: Update.
4970 * mips-linux-tdep.c: Update.
4971 * irix5-nat.c: Update.
4972 * mips-tdep.h (mips_isa_regsize): Update.
4974 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4975 Delete all disabled code.
4976 * gdb-events.h, gdb-events.c: Re-generate.
4978 2004-04-19 Jerome Guitton <guitton@gnat.com>
4979 Mark Kettenis <kettenis@gnu.org>
4981 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4982 the function begins with a branch instruction.
4984 2004-04-29 Mark Kettenis <kettenis@gnu.org>
4986 * i386-tdep.c: Fix spelling mistakes.
4988 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4989 Andrew Cagney <cagney@redhat.com>
4991 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4993 * acconfig.h: Provide default _KMEMUSER value.
4994 * config.in, configure: Re-generate.
4995 * NEWS: Mention fix.
4997 2004-04-24 Randolph Chung <tausq@debian.org>
4999 * configure.host (hppa*-*-linux*): New target.
5000 * configure.tgt (hppa*-*-linux*): Likewise.
5001 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5002 gdbarch_init_osabi() call earlier so that osabi-specific frame
5003 unwinders can be registered first.
5004 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5006 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5007 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5008 * config/pa/linux.mh: New file.
5009 * config/pa/linux.mt: New file.
5010 * config/pa/nm-linux.h: New file.
5011 * config/pa/xm-linux.h: New file.
5012 * hppa-linux-nat.c: New file.
5013 * hppa-linux-tdep.c: New file.
5015 2004-04-28 Randolph Chung <tausq@debian.org>
5017 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5019 (hppa32_push_dummy_call): Fix small struct and floating point argument
5020 passing, and make sure the stack frame is properly aligned.
5022 2004-04-28 Andrew Cagney <cagney@redhat.com>
5024 * stack.c (print_stack_frame): Fix description.
5026 * NEWS: Mention gdb/gdbserver/configure execute permission
5027 changed. PR server/519.
5029 2004-04-28 Andrew Cagney <cagney@redhat.com>
5031 * stack.c (print_stack_frame_stub): Delete declaration.
5032 (struct print_stack_frame_args, print_stack_frame)
5033 (print_frame_info, print_frame): Replace "source" with print what.
5034 Replace "print" with "print_level". Replace "args" with
5036 * frame.h (show_and_print_stack_frame, print_stack_frame)
5037 (print_frame_info): Update declarations.
5038 * stack.c (select_and_print_frame, frame_command)
5039 (current_frame_command, up_command, down_command): Update calls -
5040 use get_selected_frame, pass "enum print_what" for source, do not
5041 call frame_relative_level.
5042 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5043 * remote-rdp.c (remote_rdp_open): Ditto.
5044 * remote-mips.c (common_open): Ditto.
5045 * remote-e7000.c (e7000_start_remote): Ditto.
5046 * ocd.c (ocd_start_remote): Ditto.
5047 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5048 * infrun.c (normal_stop): Ditto.
5049 * inflow.c (kill_command): Ditto.
5050 * infcmd.c (finish_command): Ditto.
5051 * corelow.c (core_open): Ditto.
5052 * tracepoint.c (finish_tfind_command): Ditto.
5053 * thread.c (info_threads_command, info_threads_command)
5054 (restore_current_thread, do_captured_thread_select): Ditto.
5055 * ada-tasks.c (task_command): Ditto.
5057 2004-04-26 Orjan Friberg <orjanf@axis.com>
5059 * frame.c: Include "observer.h".
5060 (frame_observer_target_changed): New function.
5061 (_initialize_frame): Attach target_changed observer.
5062 * regcache.c: Include "observer.h".
5063 (regcache_observer_target_changed): New function.
5064 (_initialize_regcache): Attach target_changed observer.
5065 * valops.c: Include "observer.h".
5066 (value_assign): Notify target_changed event when modifying register.
5067 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5069 2004-04-26 Orjan Friberg <orjanf@axis.com>
5071 From Paul Koning <pkoning@equallogic.com>:
5072 * breakpoint.c (free_valchain): New function.
5073 (insert_bp_location, delete_breakpoint): Use free_valchain.
5074 (remove_breakpoint): Do not remove the valchain.
5075 (bpstat_stop_status): If not stopped by watchpoint, skip
5076 watchpoints when generating stop status list.
5077 * infrun.c (handle_inferior_event): Make
5078 stepped_after_stopped_by_watchpoint a global variable.
5079 * remote.c (remote_stopped_data_address): Return watch data
5080 address rather than zero if stepped_after_stopped_by_watchpoint is
5083 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5086 * configure.in: Check for curses after termcap.
5087 On osf5.*, do not check for ncurses.
5088 * configure: Regenerate.
5090 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5092 * ppcobsd-nat.c: Include "ppc-tdep.h".
5093 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5095 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5096 Fixes PR tdep/1623 and PR tdep/1624.
5098 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5100 * xmodem.h, xmodem.c: Remove files.
5101 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5103 2004-04-23 Randolph Chung <tausq@debian.org>
5105 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5106 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5107 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5108 for handling stackless frames.
5109 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5111 2004-04-23 Randolph Chung <tausq@debian.org>
5113 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5114 starts at a pc before the frame is created.
5116 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5118 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5120 2004-04-23 Jerome Guitton <guitton@gnat.com>
5122 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5123 use convert_typed_floating to get the appropriate format.
5125 2004-04-22 Randolph Chung <tausq@debian.org>
5127 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5128 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5129 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5130 (hppa_sign_extend): Add prototype.
5131 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5132 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5133 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5134 hppa targets will also use these functions.
5135 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5136 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5137 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5138 (hppa_gdbarch_init): Remove gdbarch setting of
5139 skip_trampoline_code, in_solib_call_trampoline and
5140 in_solib_return_trampoline.
5141 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5142 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5143 hppa_in_solib_call_trampoline.
5144 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5145 Moved from hppa-tdep.c.
5146 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5147 in_solib_call_trampoline and in_solib_return_trampoline.
5149 2004-04-22 Randolph Chung <tausq@debian.org>
5151 * hppa-tdep.c (hppa_debug): New variable.
5152 (find_unwind_entry, hppa_frame_cache): Add debug output.
5153 (_initialize_hppa_tdep): Add command to set debug flag.
5155 2004-04-22 Andrew Cagney <cagney@redhat.com>
5157 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5159 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5160 signal trampoline unwinder.
5161 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5163 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5165 Add OpenBSD/powerpc support.
5166 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5167 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5168 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5169 (ppc_collect_fpregset): New prototypes.
5170 * ppcobsd-nat.c: New file.
5171 * ppcobsd-tdep.c: New file.
5172 * ppcobsd-tdep.h: New file.
5173 * rs6000-tdep.c: Include "regset.h".
5174 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5175 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5177 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5178 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5179 (rs6000-tdep.o): Update dependencies.
5180 * configure.host: Add powerpc-*-openbsd.
5181 * configure.tgt: Add powerpc-*-openbsd.
5182 * config/powerpc/obsd.mh: New file.
5183 * config/powerpc/nm-obsd.h: New file.
5184 * config/powerpc/obsd.mt: New file.
5186 2004-04-22 Andrew Cagney <cagney@redhat.com>
5188 * frame.h (show_frame_info): Delete declaration.
5190 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5191 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5192 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5193 * frv-tdep.c (frv_frame_this_id): Ditto.
5194 * avr-tdep.c (avr_frame_this_id): Ditto.
5196 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5198 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5200 2004-04-22 Jim Blandy <jimb@redhat.com>
5202 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5203 register number zero.
5205 2004-04-21 Michael Snyder <msnyder@redhat.com>
5207 * mips-tdep.c (heuristic_proc_start):
5208 Warning() already prefixes "Warning: ".
5210 2004-04-21 Andrew Cagney <cagney@redhat.com>
5212 * annotate.h (deprecated_annotate_starting_hook)
5213 (deprecated_annotate_stopped_hook)
5214 (deprecated_annotate_exited_hook)
5215 (deprecated_annotate_signal_hook)
5216 (deprecated_annotate_signalled_hook): Deprecate.
5217 * tracepoint.h (deprecated_create_tracepoint_hook)
5218 (deprecated_delete_tracepoint_hook)
5219 (deprecated_modify_tracepoint_hook)
5220 (deprecated_trace_find_hook)
5221 (deprecated_trace_start_stop_hook): Deprecate.
5222 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5223 * remote.h (deprecated_target_resume_hook)
5224 (deprecated_target_wait_loop_hook): Deprecate.
5225 * gdbcore.h (deprecated_exec_file_display_hook)
5226 (deprecated_file_changed_hook): Deprecate.
5227 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5228 * defs.h (deprecated_modify_breakpoint_hook)
5229 (deprecated_command_loop_hook, deprecated_show_load_progress)
5230 (deprecated_print_frame_info_listing_hook)
5231 (deprecated_query_hook, deprecated_warning_hook)
5232 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5233 (deprecated_delete_breakpoint_hook)
5234 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5235 (deprecated_readline_begin_hook, deprecated_readline_hook)
5236 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5237 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5238 (deprecated_context_hook, deprecated_target_wait_hook)
5239 (deprecated_attach_hook, deprecated_detach_hook)
5240 (deprecated_call_command_hook, deprecated_set_hook)
5241 (deprecated_error_hook, deprecated_error_begin_hook)
5242 (deprecated_ui_load_progress_hook): Deprecate.
5243 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5244 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5245 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5246 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5247 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5248 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5249 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5250 * annotate.c, aix-thread.c: Update.
5252 2004-04-21 Andrew Cagney <cagney@redhat.com>
5254 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5255 * vaxnbsd-tdep.c: Include "gdb_string.h".
5257 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5258 (add_symbol_file_from_memory_command): #if 0 function body, call
5261 2004-04-21 Andrew Cagney <cagney@redhat.com>
5263 * gdbcore.h: Update copyright.
5264 (deprecated_add_core_fns): Rename add_core_fns.
5265 * win32-nat.c (_initialize_core_win32): Update.
5266 * sun3-nat.c (_initialize_core_sun3): Update.
5267 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5268 * rs6000-nat.c (_initialize_core_rs6000): Update.
5269 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5270 * nto-tdep.c (_initialize_nto_tdep): Update.
5271 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5272 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5273 * mips-nat.c (_initialize_core_mips): Update.
5274 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5275 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5276 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5277 * lynx-nat.c (_initialize_core_lynx): Update.
5278 * irix5-nat.c (_initialize_core_irix5): Update.
5279 * i386-interix-nat.c (_initialize_core_interix): Update.
5280 * cris-tdep.c (_initialize_cris_tdep): Update.
5281 * corelow.c (deprecated_add_core_fns): Update.
5282 * core-regset.c (_initialize_core_regset): Update.
5283 * core-aout.c (_initialize_core_aout): Update.
5284 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5285 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5286 * alpha-nat.c (_initialize_core_alpha): Update.
5288 2004-04-21 Jim Blandy <jimb@redhat.com>
5290 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5292 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5294 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5296 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5297 (read_attribute_value): Update calls to dwarf_alloc_block.
5298 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5300 (psymtab_to_symtab_1): Likewise. Clean up using
5301 free_stack_comp_unit.
5302 (add_to_cu_func_list): Use the comp_unit_obstack.
5304 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5306 * dwarf2read.c (dwarf2_flag_true_p): New function.
5307 (die_is_declaration): Use the function above. Add some comments.
5309 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5311 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5312 architecture when registering sparcnbsd_core_osabi_sniffer.
5315 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5317 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5320 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5321 * i386-tdep.c: Correct register numbering scheme comments
5323 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5324 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5325 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5326 (i386_gdb_arch_init): Likewise.
5328 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5329 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5332 * m68k-tdep.h: Tweak comments.
5333 * m68k-tdep.c: Tweak comment.
5335 2004-04-17 Randolph Chung <tausq@debian.org>
5337 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5338 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5339 (hppa_hpux_som_init_abi): Set is_elf to 0.
5340 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5341 * hppa-tdep.c (low_text_segment_address): Remove global.
5342 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5343 section offset to calculate segment address.
5344 (internalize_unwinds): Define low_text_segment_address as local and
5345 pass to record_text_segment_lowaddr for ELF targets.
5346 (hppa_gdbarch_init): Zero fill tdep structure.
5347 (hppa_dump_tdep): Print tdep structure.
5348 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5350 2004-04-17 Randolph Chung <tausq@debian.org>
5352 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5353 (hppa_gdbarch_init): Set pseudo_register_read.
5354 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5355 * regcache.c (supply_register): Remove check for
5356 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5358 2004-04-17 Randolph Chung <tausq@debian.org>
5360 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5361 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5362 (hpread_adjust_stack_address): Move to hpread.c.
5363 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5364 obj_private_struct): Move from tm-hppa.h.
5365 * hpread.c (hppa-tdep.h): Include.
5366 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5367 (hpread_read_function_type, hpread_read_doc_function_type)
5368 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5370 * pa64solib.c (hppa-tdep.h): Include.
5371 * somsolib.c (hppa-tdep.h): Include.
5372 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5373 inferior_status): Remove unused forward declarations.
5374 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5375 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5376 obj_private_struct): Move to hppa-tdep.h.
5377 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5379 2004-04-17 Randolph Chung <tausq@debian.org>
5381 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5382 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5383 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5384 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5385 Remove forward declaration and make static.
5386 (hppa_reg_struct_has_addr): Remove.
5388 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5390 * observer.sh: Move comments in sed command to first column.
5392 2004-04-16 Jason Molenda (jmolenda@apple.com)
5394 * frame.c: Minor typeo corrections in comments.
5396 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5398 * observer.c (observer_test_first_notification_function): Update
5400 (observer_test_second_notification_function): Likewise.
5401 (observer_test_third_notification_function): Likewise.
5403 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5405 From Brian Ford <ford@vss.fsi.com>:
5406 * i386-tdep.c (i386_coff_init_abi): New function.
5407 * i386-tdep.h (i386_coff_init_abi): New prototype.
5408 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5409 register number translation functions for DWARF and DWARF 2.
5411 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5413 * dwarf2read.c: Back out my previous change, it was incorrect.
5415 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5417 * dwarf2read.c: Include "hashtab.h".
5418 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5420 (struct partial_die_info): Add comments. Use bitfields to reduce
5421 memory footprint. Add scope, scope_set, has_specification,
5422 spec_offset, die_parent, die_child, and die_sibling.
5423 (peek_die_abbrev): Add prototype.
5424 (partial_read_comp_unit_head): New function, broken out from
5425 dwarf2_build_psymtabs_hard.
5426 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5427 Use partial_read_comp_unit_head. Initialize the CU and
5428 comp_unit_obstack. Update calls to read_partial_die and
5429 scan_partial_symbols. Use free_stack_comp_unit and
5431 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5432 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5433 Update calls to helper functions. Remove NAMESPACE argument.
5435 (partial_die_parent_scope, partial_die_full_name): New functions.
5436 (add_partial_symbol): Remove namespace argument. Update call to
5437 pdi_needs_namespace. Use partial_die_full_name. Handle
5438 DW_TAG_namespace. Check has_namespace_info flag.
5439 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5440 tag. Handle namespaces.
5441 (add_partial_namespace, add_partial_enumeration): Simplify.
5442 (guess_structure_name): New function, derived from
5443 add_partial_structure.
5444 (add_partial_structure): Remove.
5445 (determine_class_name): Update comment.
5446 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5447 (is_type_tag_for_partial, load_partial_dies): New functions.
5448 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5449 Record specifications instead of following them immediately.
5450 (find_partial_die_in_comp_unit, find_partial_die)
5451 (fixup_partial_die, free_stack_comp_unit)
5452 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5453 (partial_die_hash, partial_die_eq): New functions.
5454 * Makefile.in (hashtab_h): Define.
5455 (dwarf2read.o): Update dependencies.
5456 (observer_inc, observer_h): Move to the correct section.
5458 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5460 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5461 (die_is_declaration): Use the function above. Add comment.
5463 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5465 * dwarf2read.c (read_structure_scope): Identify stub types
5466 using die_is_declaration() only.
5468 2004-04-15 Roland McGrath <roland@redhat.com>
5470 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5471 argument instead of NAME.
5472 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5473 in call to symbol_file_add_with_addrs_or_offsets.
5474 (build_addr_info): New function, helper for ...
5475 (symbol_file_add_from_memory): New function.
5476 (add_symbol_file_from_memory_command): New function using that.
5477 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5478 (pre_add_symbol_hook): Add const to argument type.
5479 * symfile.h (symbol_file_add_from_memory): Declare it.
5481 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5483 * NEWS (New native configurations): Mention OpenBSD/vax.
5484 * configure.host: Add vax-*-openbsd*.
5485 * config/vax/obsd.mh: New file.
5486 * config/vax/nm-obsd.h: New file.
5488 * vax-tdep.c: Include "regset.h".
5489 (vax_supply_gregset): New function.
5490 (vax_gregset): New variable.
5491 (vax_regset_from_core_section): New function.
5492 (vax_gdbarch_init): Set regset_from_core_section.
5493 * Makefile.in (vax-tdep.o): Update dependencies.
5495 2004-04-15 Andrew Cagney <cagney@redhat.com>
5497 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5498 (observer_normal_stop_notification_stub)
5499 (observer_attach_normal_stop, observer_detach_normal_stop):
5500 Delete, replaced by #include "observer.inc".
5501 * infrun.c (normal_stop): Pass "stop_bpstat" to
5502 observer_notify_normal_stop.
5503 * Makefile.in (observer_inc): Define.
5504 (observer.o): Update dependencies.
5505 (observer.h, observer.inc): New rules.
5506 * observer.h: Delete file.
5507 * observer.sh: New file.
5509 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5511 * vax-tdep.c (vax_frame_cache): Fix typo.
5513 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5515 * NEWS (New native configurations): Mention NetBSD/vax.
5516 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5517 * config/vax/nbsdelf.mh: New file.
5518 * config/vax/nbsdaout.mh: New file.
5519 * config/vax/nm-nbsd.h: New file.
5520 * config/vax/nm-nbsdaout.h: New file.
5522 * vaxnbsd-tdep.c: New file.
5523 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5524 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5525 * config/vax/nbsd.mt: New file.
5526 * config/vax/tm-nbsd.h: New file.
5528 * Makefile.in (vaxbsd-nat.o): New dependency.
5530 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5531 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5532 struct_addr arguments. Don't push return value address.
5533 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5534 arguments to vax_store_arguments. Store return value address in
5536 (vax_store_struct_return, vax_extract_return_value)
5537 (vax_store_return_value): Remove functions.
5538 (vax_return_value): New function.
5539 (vax_gdbarch_init): Set return value. Don't set
5540 deprecated_store_struct_return, deprecated_extract_struct_return
5541 and deprecated_store_return_value.
5543 2004-04-14 Andreas Schwab <schwab@suse.de>
5545 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5547 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5549 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5551 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5552 (vax_unwind_dummy_id): New functions.
5553 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5554 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5556 (vax_fix_call_dummy): Remove function.
5557 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5558 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5559 call_dummy_location, deprecated_call_dummy_words,
5560 deprecated_sizeof_call_dummy_words,
5561 deprecated_call_dummy_breakpoint_offset,
5562 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5563 and deprecated_dummy_write_sp.
5565 2004-04-13 David Carlton <carlton@kealia.com>
5567 * MAINTAINERS: Move myself to "paper trail" section.
5569 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5571 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5573 (vax_frame_init_saved_regs): Remove function.
5574 (vax_sigtramp_saved_pc): Remove function.
5575 (vax_frame_saved_pc): Remove function.
5576 (vax_frame_args_address): Remove function.
5577 (vax_frame_num_args): Rewrite.
5578 (vax_frame_chain): Remove function.
5579 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5581 (vax_pop_frame): Likewise.
5582 (vax_saved_pc_after_call): Remove function.
5583 (struct vax_frame_cache): New structure.
5584 (vax_frame_cache): New function.
5585 (vax_frame_this_id): New function.
5586 (vax_frame_prev_register): New function.
5587 (vax_frame_unwind): New variable.
5588 (vax_frame_sniffer): New function.
5589 (vax_frame_base_address): New function.
5590 (vax_frame_args_address): New function.
5591 (vax_frame_base): New variable.
5592 (vax_unwind_pc): New function.
5593 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5594 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5595 deprecated_frame_chain, deprecated_frame_saved_pc,
5596 deprecated_frame_args_address and
5597 deprecated_frame_init_saved_regs.
5598 * Makefile.in (vax-tdep.o): Update dependencies.
5600 * vaxbsd-nat.c: New file.
5602 * vax-tdep.h: Update copyright year. Adjust comments.
5603 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5604 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5605 (vax_regnum): New enum. Replacing...
5606 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5607 (VAX_PS_REGNUM): ... these removed macros.
5608 * vax-tdep.c (vax_register_name): Remove prototype.
5609 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5610 (vax_register_byte, vax_register_raw_size,
5611 vax_register_virtual_size, vax_register_virtual_type): Remove
5613 (vax_register_type): New function.
5614 (vax_breakpoint_from_pc): Reorganize.
5615 (vax_gdbarch_init): Set register_type. Don't set
5616 deprecated_register_size, deprecated_register_bytes,
5617 deprecated_register_byte, deprecated_register_raw_size,
5618 deprecated_max_register_raw_size,
5619 deprecated_register_virtual_size,
5620 deprecated_max_register_virtual_size and
5621 deprecated_register_virtual_type. Add comment on stack direction.
5623 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5625 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5626 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5627 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5629 2004-04-10 Randolph Chung <tausq@debian.org>
5631 * MAINTAINERS (write after approval): Add myself.
5633 2004-04-07 Randolph Chung <tausq@debian.org>
5635 * hppa-tdep.c (hppa_inner_than): Remove.
5636 (is_pa_2): Remove unused static variable.
5637 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5639 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5641 * language.h (language_defn): Add new la_post_parser field.
5642 * parser-defs.h (null_post_parser): New declaration (default for
5645 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5646 insert call to that function.
5647 (parse_exp_in_context): New function, including code formerly in
5648 parse_exp_1. Calls language-dependent post-parser after
5650 (parse_expression_in_context): New exported function.
5651 (null_post_parser): New definition.
5652 * expression.h (parse_expression_in_context): Add declaration.
5654 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5655 * c-lang.c (c_language_defn): Ditto.
5656 (cplus_language_defn): Ditto.
5657 (asm_language_defn): Ditto.
5658 (minimal_language_defn): Ditto.
5659 * f-lang.c (f_language_defn): Ditto.
5660 * jv-lang.c (java_language_defn): Ditto.
5661 * language.c (unknown_language_defn): Ditto.
5662 (auto_language_defn): Ditto.
5663 (local_language_defn): Ditto.
5664 * m2-lang.c (m2_language_defn): Ditto.
5665 * scm-lang.c (scm_language_defn): Ditto.
5666 * obj-lang.c (objc_language_defn): Ditto.
5668 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5670 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5671 (amd64nbsd_mcontext_addr): New function.
5672 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5673 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5674 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5676 * corelow.c (core_xfer_partial): Fix coding standards violation.
5677 Add support for TARGET_OBJECT_WCOOKIE.
5679 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5680 deprecated_pc_in_sigtramp.
5681 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5682 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5683 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5684 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5685 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5686 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5687 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5689 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5690 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5693 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5694 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5695 (amd64_collect_fxsave): Likewise.
5697 * i386-sol2-tdep.c: Include "gdb_string.h".
5698 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5700 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5702 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5704 * i386-sol2-tdep.c: Include "solib-svr4.h".
5705 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5706 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5707 * config/i386/tm-i386sol2.h: Include :solib.h".
5708 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5709 solib-svr4.o and solib-legacy.o.
5710 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5713 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5715 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5716 whether a register is supplied by PTRACE_GETFPREGS.
5717 (store_inferior_registers): Likewise.
5718 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5719 whether a register is supplied by PT_GETFPREGS.
5720 (store_inferior_registers): Likewise.
5722 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5723 * config/i386/linux64.mt (TDEPFILES): Likewise.
5725 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5727 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5728 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5729 the program counter is in the range specified by `struct
5731 * amd64-linux-tdep.c: Include "symtab.h".
5732 (amd64_linux_pc_in_sigtramp): Remove function.
5733 (amd64_linux_sigtramp_p): New function.
5734 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5735 deprecated_pc_in_sigtramp.
5736 * amd64nbsd-tdep.c: Include "symtab.h".
5737 (amd64nbsd_sigtramp_p): New function.
5738 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5739 deprecated_pc_in_sigtramp.
5740 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5742 (amd64obsd_pc_in_sigtramp): Remove function.
5743 (amd64obsd_sigtramp_p): New function.
5744 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5745 deprecated_pc_in_sigtramp.
5746 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5747 (i386bsd_pc_ins_sigtramp): Remove prototype.
5748 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5749 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5750 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5751 the program counter is in the range specified by `struct
5753 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5754 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5755 (i386_go32_pc_in_sigtramp): Remove function.
5756 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5757 Initialize TDEP->sigtramp_p.
5758 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5759 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5760 deprecated_pc_in_sigtramp.
5761 * i386-linux-tdep.c: Adjust comments.
5762 (i386_linux_pc_in_sigtramp): Remove function.
5763 (i386_linux_sigtramp_p): New function.
5764 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5765 deprecated_pc_in_sigtramp.
5766 * i386-nto-tdep.c: Update copyright year.
5767 (i386nto_pc_in_sigtramp): Remove function.
5768 (i386nto_sigtramp_p): New function.
5769 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5771 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5772 deprecated_pc_in_sigtramp.
5773 * i386-sol2-tdep.c: Update copyright year.
5774 (i386_sol2_pc_in_sigtramp): Remove function.
5775 (i386_sol2_sigtramp_p): New function.
5776 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5777 deprecated_pc_in_sigtramp.
5778 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5779 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5780 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5781 deprecated_sigtramp_start and deprecated_sigtramp_end.
5782 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5783 (i386nbsd_pc_in_sigtramp): Remove function.
5784 (i386nbsd_sigtramp_p): New function.
5785 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5786 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5787 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5788 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5789 (i386obsd_pc_in_sigtramp): Remove function.
5790 (i386obsd_sigtramp_p): New function.
5791 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5793 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5794 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5796 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5797 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5800 * config/i386/i386aout.mt: Remove file.
5802 * configure.tgt: Remove i[34567]86-*-go32*,
5803 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5804 and i[34567]86-*-isc*. Set gdb_target to i386 for
5805 i[34567]86-*-netware* and i[34567]86-*-*.
5806 * config/i386/i386.mt: New file.
5807 * config/i386/embed.mt: Remove file.
5808 * config/i386/go32.mt: Remove file.
5809 * config/i386/i386nw.mt: Remove file.
5810 * config/i386/i386v.mt: Remove file.
5811 * config/i386/tm-go32.h: Remove file.
5813 * tui/tui-hooks.c: Include "readline/readline.h" after
5814 "gdb_curses.h" instead of before.
5815 * tui/tui-io.c: Likewise.
5817 * tui/tui.c: Fix typo in comment.
5819 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5821 2004-04-08 Andrew Cagney <cagney@redhat.com>
5823 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5824 (deprecated_exception_support_initialized): Declare.
5825 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5826 (initialize_hp_cxx_exception_support)
5827 (child_enable_exception_callback): Update.
5828 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5829 (deprecated_exception_support_initialized): Rename
5830 deprecated_exception_catchpoints_are_fragile and
5831 deprecated_exception_support_initialized.
5832 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5834 * symtab.c (deprecated_hp_som_som_object_present): Rename
5835 hp_som_som_object_present.
5836 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5837 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5838 Update. Delete extern declaration.
5839 * valops.c (hp_som_som_object_present): Ditto.
5840 * parse.c (deprecated_hp_som_som_object_present)
5841 (parse_nested_classes_for_hpacc): Ditto.
5842 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5843 * hppa-hpux-tdep.c (hp_som_som_object_present)
5844 (initialize_hp_cxx_exception_support): Ditto.
5845 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5846 * cp-valprint.c (hp_som_som_object_present)
5847 (cp_print_class_method): Ditto.
5848 * c-typeprint.c (hp_som_som_object_present):
5849 (c_type_print_base): Ditto.
5850 * c-exp.y (hp_som_som_object_present): Ditto.
5852 2004-04-08 Andrew Cagney <cagney@redhat.com>
5854 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5855 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5856 (frame_unwind_find_by_frame): Re-implement the unwind code so
5857 that it can both prepend and append sniffers. Replace
5858 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5859 * tramp-frame.c (tramp_frame_append): Use
5860 frame_unwind_prepend_unwinder.
5861 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5862 frame_unwind_register_unwinder.
5863 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5865 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5866 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5867 (mips_linux_init_abi): Update.
5869 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5871 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5872 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5875 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5877 * ia64-tdep.c (elf.h): Don't include.
5878 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5880 2004-04-07 Jason Molenda (jmolenda@apple.com)
5882 * frame.h: Typeo corrections in comments.
5884 2004-04-07 Jim Blandy <jimb@redhat.com>
5886 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5889 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5891 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5892 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5893 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5894 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5896 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5898 * config/sparc/tm-sol2.h: Update copyright year. Include
5901 * sparc-sol2-tdep.c: Update copyright year. Include
5903 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5904 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5905 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5906 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5909 2004-04-06 Andrew Cagney <cagney@redhat.com>
5911 * infttrace.c: Include "infttrace.h".
5912 * infttrace.h: Include "target.h".
5913 * Makefile.in (infttrace_h): Update.
5914 (infttrace.o): Update.
5916 2004-04-06 Andrew Cagney <cagney@redhat.com>
5918 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5919 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5920 move extern declarations from here ...
5921 * infttrace.h: ... to here.
5922 * Makefile.in (hppah-nat.o): Update dependencies.
5924 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5925 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5926 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5927 (hppa_breakpoint_from_pc): Delete.
5929 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5931 2004-04-05 Andrew Cagney <cagney@redhat.com>
5933 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5934 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5937 2004-04-06 Randolph Chung <tausq@debian.org>
5939 Committed by Andrew Cagney (mechanical change).
5940 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5941 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5942 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5943 child_enable_exception_callback, current_ex_event,
5944 null_symtab_and_line, child_get_current_exception_event,
5945 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5946 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5947 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5948 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5949 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5950 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5951 Move hpux-specific definitions ...
5952 * hppa-hpux-tdep.c: ... to here.
5954 2004-04-05 Andrew Cagney <cagney@redhat.com>
5956 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5957 skip_prologue_using_sal.
5959 2004-04-05 Andrew Cagney <cagney@redhat.com>
5961 * config/i386/tm-i386.h: Delete file.
5962 * config/i386/tm-vxworks.h: Update copyright, do not include
5964 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5965 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5966 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5967 * config/i386/ncr3000.mt (TM_FILE): Delete.
5968 * config/i386/interix.mt (TM_FILE): Delete.
5969 * config/i386/i386v.mt (TM_FILE): Delete.
5970 * config/i386/i386nw.mt (TM_FILE): Delete.
5971 * config/i386/i386gnu.mt (TM_FILE): Delete.
5972 * config/i386/i386aout.mt (TM_FILE): Delete.
5973 * config/i386/embed.mt (TM_FILE): Delete.
5975 2004-04-05 Kevin Buettner <kevinb@redhat.com>
5977 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5978 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5979 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5980 (accg7_regnum): New constants.
5981 (last_spr_regnum, last_pseudo_regnum): Update.
5982 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5983 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
5984 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5986 (frv_register_sim_regno): Update spr_map[].
5988 2004-04-04 Andrew Cagney <cagney@redhat.com>
5990 * config/mips/xm-riscos.h: Delete.
5991 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5992 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5993 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5994 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5995 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5996 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5997 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5998 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5999 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6000 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6001 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6002 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6003 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6004 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6005 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6006 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6007 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6008 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6009 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6010 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6011 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6012 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6013 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6014 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6015 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6016 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6018 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6019 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6020 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6021 * configure.host: Remove m680[01]0-sun-sunos3*,
6022 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6023 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6024 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6025 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6027 * NEWS: Mention removed systems.
6029 2004-04-04 Andrew Cagney <cagney@redhat.com>
6031 GDB 6.1 release created from 6.1 branch.
6033 2004-04-04 Andrew Cagney <cagney@redhat.com>
6035 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6036 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6037 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6039 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6040 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6041 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6043 2004-04-03 Jim Blandy <jimb@redhat.com>
6045 * MAINTAINERS: Chris Faylor has changed employers; add him to
6046 "paper trail" section, and update his E-mail address.
6048 2004-04-03 Andrew Cagney <cagney@redhat.com>
6050 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6051 generic dummy frames.
6052 * dummy-frame.c: Update copyright.
6053 (dummy_frame_sniffer): Delete check for generic dummy frames.
6055 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6056 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6057 (REG_PARM_STACK_SPACE): Delete.
6058 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6059 Inline reference to REG_PARM_STACK_SPACE.
6061 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6062 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6063 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6064 (FRAME_BASE_BEFORE_SIGTRAMP)
6065 (hppa32_hpux_frame_base_before_sigtramp)
6066 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6067 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6068 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6069 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6070 (FRAME_BASE_BEFORE_SIGTRAMP)
6071 (hppa64_hpux_frame_base_before_sigtramp)
6072 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6074 2004-04-03 Andrew Cagney <cagney@redhat.com>
6076 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6078 2004-04-02 Andrew Cagney <cagney@redhat.com>
6080 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6081 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6082 * dummy-frame.h: Delete out-of-date comments.
6083 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6084 * gdbarch.h, gdbarch.c: Re-generate.
6086 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6088 Committed by Andrew Cagney <cagney@redhat.com>.
6089 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6090 into account an instruction saving a register if we have already
6091 seen an earlier instruction saving that same register.
6093 2004-04-02 Andrew Cagney <cagney@redhat.com>
6095 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6096 * gdbarch.h, gdbarch.c: Re-generate.
6097 * frame.c (legacy_get_prev_frame): Delete references to
6098 DEPRECATED_INIT_FRAME_PC_FIRST.
6100 * infrun.c (pc_in_sigtramp): Delete function.
6101 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6104 2004-04-02 Andrew Cagney <cagney@redhat.com>
6106 * infrun.c (handle_step_into_function): Delete code conditional on
6108 (handle_inferior_event, step_over_function): Ditto.
6110 2004-04-02 Andrew Cagney <cagney@redhat.com>
6112 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6113 "previous frame inner to this frame" test.
6115 2004-04-02 Andrew Cagney <cagney@redhat.com>
6117 * frame.c (safe_frame_unwind_memory): New function.
6118 * frame.h (safe_frame_unwind_memory): Declare. Update description
6120 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6121 "next_frame". Use safe_frame_unwind_memory.
6122 (tramp_frame_sniffer): Update call to tramp_frame_start.
6124 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6126 * dwarf2read.c (dwarf2_objfile_data_key): New.
6127 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6128 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6129 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6130 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6131 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6132 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6133 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6135 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6136 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6137 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6138 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6139 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6140 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6142 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6144 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6145 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6146 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6147 (read_partial_die, read_full_die, read_indirect_string)
6148 (dwarf_decode_line_header, dwarf_decode_macros)
6149 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6150 Update uses of removed variables.
6151 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6153 (_initialize_dwarf2_read): New function.
6154 * symfile.h (dwarf2_has_info): Update prototype.
6155 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6156 * elfread.c (elf_symfile_read): Likewise.
6158 2004-04-01 Jim Blandy <jimb@redhat.com>
6160 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6161 function for register numbers on all the rs6000-derived targets.
6162 (rs6000_gdbarch_init): Don't register a separate
6163 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6164 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6167 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6170 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6172 * valarith.c: Update copyright notice.
6173 (value_add): Handle range types.
6175 (value_equal): Ditto.
6176 (value_less): Ditto.
6178 (value_complement): Ditto.
6179 (value_binop): Simplify slightly by using is_integral_type and
6180 eliminiating unnecessary COERCE_ENUMs.
6182 2004-03-31 Andrew Cagney <cagney@redhat.com>
6184 * frame.h (frame_unwind_id): Declare.
6185 * frame.c (frame_unwind_id): New function.
6186 (get_prev_frame_1): New function.
6187 (frame_debug_got_null_frame): New function.
6188 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6189 code proper to prev_frame, update description.
6190 * infrun.c (step_over_function): Use frame_unwind_id.
6192 2004-04-31 J. Brobecker <brobecker@gnat.com>
6194 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6195 (hppa64_push_dummy_call): Likewise.
6197 2004-03-30 Jim Blandy <jimb@redhat.com>
6199 From Ulrich Weigand:
6200 * utils.c (query): Do not use a va_list variable multiple times.
6202 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6204 * Makefile.in (linux_nat_h): Update dependencies.
6205 * configure.in: Check for <gnu/libc-version.h>.
6206 * configure: Regenerate.
6207 * config.in: Regenerate.
6208 * linux-nat.h: Include "target.h". Add waitstatus field to
6210 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6211 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6213 (lin_lwp_handle_extended): New function. Handle clone events.
6214 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6216 (child_wait): Handle clone events.
6217 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6218 * linux-nat.c (linux_enable_event_reporting): Turn on
6219 PTRACE_O_TRACECLONE.
6220 (linux_handle_extended_wait): Handle clone events.
6221 * thread-db.c: Include <gnu/libc-version.h>.
6222 (struct private_thread_info): Add dying flag.
6223 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6225 (attach_thread): Update comments. Handle dying threads.
6226 (detach_thread): Set the dying flag.
6227 (check_event): Always call attach_thread.
6229 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6231 * mips-tdep.c (mips_pdr_data): New.
6232 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6233 (_initialize_mips_tdep): Initialize mips_pdr_data.
6235 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6237 * minsyms.c (install_minimal_symbols): Move dropping leading
6238 char from linkage name from here...
6239 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6240 test for "__gnu_compiled*" symbols.
6242 2004-03-28 Jim Blandy <jimb@redhat.com>
6244 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6245 registers to temp register r0 and byte stores as prologue
6248 2004-03-28 Andrew Cagney <cagney@redhat.com>
6250 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6253 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6255 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6256 and switch the layout to force a display of register window.
6258 2004-02-26 J. Brobecker <brobecker@gnat.com>
6260 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6261 of the INTEGER class.
6263 2004-03-26 Jim Blandy <jimb@redhat.com>
6265 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6266 bytes long on PPC GNU/Linux.
6268 2004-03-26 David Carlton <carlton@kealia.com>
6270 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6272 2004-03-25 Andrew Cagney <cagney@redhat.com>
6274 * PROBLEMS: Add general section titles, remove references to
6277 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6279 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6281 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6282 FP_REGISTER_VIRTUAL_SIZE.
6283 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6284 of DEPRECATED_REGISTER_RAW_SIZE.
6285 (arm_register_type): Add gdbarch argument.
6286 (arm_register_raw_size, arm_register_virtual_size): Delete.
6287 (arm_register_byte, arm_extract_return_value)
6288 (arm_store_return_value, arm_get_longjmp_target): Update references
6289 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6290 (arm_gdbarch_init): Likewise. Don't set
6291 deprecated_register_raw_size, deprecated_register_virtual_size,
6292 deprecated_max_register_raw_size,
6293 deprecated_max_register_virtual_size, or
6294 deprecated_max_register_virtual_type. Do set register_type.
6295 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6296 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6297 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6298 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6299 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6300 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6302 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6303 (remote_rdp_store_register): Likewise.
6305 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6307 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6308 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6309 to after osabi initialization.
6310 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6311 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6313 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6314 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6316 (mips_linux_init_abi): Append signal trampoline unwinders.
6318 2004-03-24 Andrew Cagney <cagney@redhat.com>
6320 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6321 * tramp-frame.c: Include "gdb_assert.h".
6322 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6324 (tramp_frame_append): Validate the tramp frame's instructions.
6325 * Makefile.in (tramp-frame.o): Update dependencies.
6327 2004-03-23 Andrew Cagney <cagney@redhat.com>
6329 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6331 2004-03-23 Andrew Cagney <cagney@redhat.com>
6333 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6334 Nasser as past testsuite/lib/ (and other) maintainers.
6336 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6338 * infcmd.c (attach_command): Reread symbols if we already have
6341 2004-03-23 Andrew Cagney <cagney@redhat.com>
6343 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6345 2004-03-23 Andrew Cagney <cagney@redhat.com>
6347 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6348 * gdbarch.h, gdbarch.c: Re-generate.
6349 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6350 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6351 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6352 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6353 (DEPRECATED_SIGTRAMP_START): Update.
6354 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6355 (DEPRECATED_SIGTRAMP_START): Update.
6356 * blockframe.c (find_pc_sect_partial_function): Update.
6357 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6359 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6361 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6364 2004-03-23 Andrew Cagney <cagney@redhat.com>
6366 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6367 predicate, deprecate.
6368 * gdbarch.h, gdbarch.c: Re-generate.
6369 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6370 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6371 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6372 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6373 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6374 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6375 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6376 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6377 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6378 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6379 * blockframe.c (find_pc_partial_function): Update.
6380 * breakpoint.c (bpstat_what): Update.
6381 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6382 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6383 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6384 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6385 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6386 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6387 * i386-nto-tdep.c (i386nto_init_abi): Update.
6388 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6389 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6390 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6391 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6392 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6393 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6394 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6395 * infrun.c (pc_in_sigtramp): Update.
6396 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6397 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6398 * mips-tdep.c (mips_gdbarch_init): Update.
6399 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6400 * ppc-linux-tdep.c: Update comment.
6401 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6402 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6403 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6404 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6405 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6406 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6407 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6408 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6409 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6410 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6412 2004-03-23 Andrew Cagney <cagney@redhat.com>
6414 * tramp-frame.h, tramp-frame.h: New files.
6415 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6416 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6418 * Makefile.in: Update all dependencies.
6420 2004-03-23 Andrew Cagney <cagney@redhat.com>
6422 * Makefile.in (trad_frame_h): Add $(frame_h).
6423 * trad-frame.h: Update copyright. Include "frame.h".
6424 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6425 (trad_frame_set_id, trad_frame_get_id): Declare.
6426 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6427 * trad-frame.c: Update copyright.
6428 (struct trad_frame_cache): Define.
6429 (trad_frame_cache_zalloc): New function.
6430 (trad_frame_set_id, trad_frame_get_id): New functions.
6431 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6433 2004-03-22 Andrew Cagney <cagney@redhat.com>
6435 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6436 s390_pltstub_unwind_cache.
6437 (s390_stub_frame_unwind_cache): Rename
6438 s390_pltstub_frame_unwind_cache.
6439 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6440 (s390_stub_frame_prev_register): Rename
6441 s390_pltstub_frame_prev_register.
6442 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6443 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6445 From Ulrich Weigand:
6446 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6447 pointer calls like PLT calls.
6449 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6451 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6452 PC rather than the partial function start address. Use the start
6453 address to sanity check the found PDR.
6455 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6457 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6458 linux_handle_extended_wait.
6460 2004-03-22 Andrew Cagney <cagney@redhat.com>
6462 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6465 * frame.h (generic_pop_current_frame): Delete declaration.
6466 (deprecate_pop_dummy_frame): Deprecate
6467 generic_pop_dummy_frame.
6468 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6469 (generic_pop_current_frame): Delete function.
6470 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6471 generic_pop_current_frame.
6472 * v850-tdep.c (v850_pop_frame): Update.
6473 * mcore-tdep.c (mcore_pop_frame): Update.
6474 * sh64-tdep.c (sh64_pop_frame): Update.
6475 * h8300-tdep.c (h8300_pop_frame): Update.
6477 2004-03-22 Andrew Cagney <cagney@redhat.com>
6479 * frame.h (deprecated_pc_in_call_dummy): Rename
6480 generic_pc_in_call_dummy.
6481 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6482 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6483 generic_pc_in_call_dummy.
6484 (pc_in_dummy_frame): Make static.
6485 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6486 * gdbarch.h, gdbarch.c: Re-generate.
6487 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6488 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6489 (legacy_get_prev_frame): Ditto.
6490 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6493 2004-03-21 Andrew Cagney <cagney@redhat.com>
6495 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6496 declaration and out-of-date comment.
6497 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6499 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6500 deprecated_pc_in_call_dummy.
6502 * infrun.c (handle_inferior_event): For non legacy frames, use the
6503 frame ID and frame type to identify a signal trampoline. Update
6506 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6508 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6509 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6511 2004-03-21 Andrew Cagney <cagney@redhat.com>
6513 * frame-unwind.h: Update copyright.
6514 (struct frame_data): Add opaque declaration.
6515 (frame_sniffer_ftype): Declare.
6516 (struct frame_unwind): Add "unwind_data" and "sniffer".
6517 (frame_unwind_register_unwinder): Declare.
6518 (frame_unwind_find_by_frame): Add parameter "this_cache".
6519 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6520 (legacy_get_prev_frame, legacy_get_prev_frame)
6521 (get_frame_type): Pass the prologue_cache to
6522 frame_unwind_find_by_frame.
6523 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6525 (frame_unwind_register_unwinder): New function.
6526 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6528 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6530 * bcache.c (print_percentage): Use floating point to avoid
6531 incorrect results when portion*100 overflows.
6533 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6535 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6536 (ppc_linux_init_extra_frame_info)
6537 (ppc_linux_frameless_function_invocation)
6538 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6539 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6540 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6541 (rs6000_frame_chain): Delete declarations.
6542 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6543 (ppc_linux_init_extra_frame_info)
6544 (ppc_linux_frameless_function_invocation)
6545 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6546 (ppc_linux_init_abi): Remove registration of above deleted functions.
6547 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6548 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6549 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6550 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6551 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6552 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6553 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6554 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6555 frame management for all OSABIs.
6557 2004-03-19 Andrew Cagney <cagney@redhat.com>
6559 Committed by Kevin Buettner <kevinb@redhat.com>.
6561 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6563 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6564 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6565 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6566 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6567 unwinders. #ifdef legacy frame code.
6568 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6570 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6571 (struct rs6000_frame_cache, rs6000_frame_cache)
6572 (rs6000_frame_this_id, rs6000_frame_prev_register)
6573 (rs6000_frame_sniffer, rs6000_frame_unwind)
6574 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6575 (rs6000_frame_base): Implement a traditional frame unwinder.
6576 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6579 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6581 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6582 breakpoint address for watchpoints or the catch eventpoints.
6583 Add new paramter ``bptype''. Adjust all callers.
6585 2004-03-19 Andrew Cagney <cagney@redhat.com>
6587 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6589 * PROBLEMS: Delete note that ARM does not use frame code, problem
6592 2004-03-18 Andrew Cagney <cagney@redhat.com>
6594 * stack.c (return_command): Delete code wrapped in #ifdef
6595 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6597 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6599 2004-03-18 Andrew Cagney <cagney@redhat.com>
6601 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6602 DEPRECATED_IN_SIGTRAMP.
6603 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6604 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6605 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6606 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6607 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6608 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6609 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6610 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6611 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6612 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6614 2004-03-18 Andrew Cagney <cagney@redhat.com>
6616 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6617 (struct frame_base_table_entry): Define.
6618 (struct frame_base_table): Re-implement as a linked list.
6619 (frame_base_init): Re-implement.
6620 (frame_base_table): Delete function.
6621 (append_predicate): Delete function.
6622 (frame_base_append_sniffer): Update.
6623 (frame_base_set_default): Update.
6624 (frame_base_find_by_frame): Update.
6625 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6626 * Makefile.in (frame-base.o): Update dependencies.
6628 2004-03-17 Andrew Cagney <cagney@redhat.com>
6630 * frame.c (legacy_get_prev_frame): Pass correct frame to
6631 frame_unwind_find_by_frame.
6633 2004-03-17 David Carlton <carlton@kealia.com>
6635 * NEWS: Mention C++ nested types and namespaces
6637 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6639 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6640 and "Regressions since gdb 5.3.". Add known regressions since
6643 2004-03-16 David Carlton <carlton@kealia.com>
6645 * dwarf2read.c (process_structure_scope): Process children even
6646 when we're a declaration.
6648 2004-03-16 Andrew Cagney <cagney@redhat.com>
6650 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6651 * blockframe.c (find_pc_partial_function)
6652 (find_pc_sect_partial_function): Merge into a single
6653 find_pc_partial_function.
6655 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6657 * i386bsd-nat.c: s/regno/regnum/g.
6658 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6660 (store_inferior_registers): Likewise.
6662 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6664 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6666 (store_inferior_registers): Call i387_collect_fsave and
6667 i387_collect_fxsave instead of i387_fill_fsave and
6670 2004-03-15 Andrew Cagney <cagney@redhat.com>
6672 * Makefile.in (frame-unwind.o): Update dependencies.
6673 * frame-unwind.c: Include "gdb_obstack.h".
6674 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6676 (append_predicate): Delete function.
6677 (struct frame_unwind_table_entry): New structure.
6678 (struct frame_unwind_table): Replace "sniffer" with "head" and
6680 (frame_unwind_append_sniffer): Update.
6681 (frame_unwind_find_by_frame): Update.
6682 (_initialize_frame_unwind): Registe frame_unwind_init using
6683 gdbarch_data_register_pre_init.
6685 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6687 * i386bsd-nat.c: Update copyright year.
6688 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6689 define unconditionally.
6691 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6693 * i387-tdep.h (i387_collect_fsave): New prototype.
6694 * i387-tdep.c (i387_collect_fsave): New function containing most
6695 of the code from i387_fill_fsave.
6696 (i387_fill_fsave): Call i387_collect_fsave.
6698 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6700 * i386-linux-tdep.c: Update copyright year.
6701 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6702 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6703 svr4_ilp32_link_map_offsets instead of
6704 i386_linux_svr4_fetch_link_map_offsets.
6706 2004-03-15 David Carlton <carlton@kealia.com>
6708 Fix for PR c++/1553:
6709 * dwarf2read.c (read_structure_type): Determine type name by
6710 calling determine_class_name.
6711 (determine_class_name): New.
6712 (determine_prefix): Look at TYPE_TAG_NAME and call
6713 determine_class_name when appropriate.
6714 (determine_prefix_aux, class_name): Delete.
6715 (read_namespace): Set die->type.
6717 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6719 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6720 unused macro definition. The definition in target.h (or perhaps
6721 elsewhere) takes precedence.
6723 2004-03-15 Andrew Cagney <cagney@redhat.com>
6725 * ppc-tdep.h: Update copyright.
6726 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6727 function signatures to match "regsets.h".
6728 * ppc-linux-tdep.c: Include "regset.h".
6729 (ELF_GREGSET_SIZE): Delete.
6730 (right_supply_register): New function.
6731 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6732 using right_supply_register.
6733 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6735 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6736 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6737 (_initialize_ppc_linux_tdep): Do not register
6738 ppc_linux_regset_core_fns.
6739 (ppc_linux_regset_from_core_section): Replace
6740 fetch_core_registers.
6741 (ppc_linux_regset_core_fns): Delete.
6742 * ppc-linux-nat.c: (right_fill_reg): New function.
6743 (supply_gregset): Update call to ppc_linux_supply_gregset.
6744 (fill_gregset): Clear the register set, use right_fill_reg.
6745 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6746 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6748 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6751 2004-03-15 Andrew Cagney <cagney@redhat.com>
6753 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6754 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6755 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6756 and register_gdbarch_data.
6757 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6758 (struct gdbarch_data): Replace "init" by "pre_init" and
6760 * gdbarch.h, gdbarch.c: Re-generate.
6761 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6762 with"obstack", use OBSTACK_ZALLOC.
6763 (dwarf2_frame_ops): Delete.
6764 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6765 (dwarf2_frame_init_reg): Use gdbarch_data.
6766 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6767 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6768 (_initialize_svr4_solib): Update.
6769 * user-regs.c (_initialize_user_regs): Update.
6770 * reggroups.c (_initialize_reggroup): Update.
6771 * regcache.c (_initialize_regcache): Update.
6772 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6773 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6774 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6775 * frame-unwind.c (_initialize_frame_unwind): Update.
6776 * frame-base.c (_initialize_frame_base): Update.
6777 * user-regs.c (user_reg_add): Update.
6778 * reggroups.c (reggroup_add): Update.
6779 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6780 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6781 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6782 * frame-base.c (frame_base_table): Update.
6783 * remote.c (_initialize_remote): Update.
6784 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6786 2004-03-15 Andrew Cagney <cagney@redhat.com>
6788 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6790 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6792 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6793 * frv-linux-tdep.c: New file.
6794 * frv-tdep.c (struct gdbarch_tdep): Add new field
6795 ``sigcontext_reg_addr''.
6796 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6797 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6798 (frv_sigramp_frame_sniffer): New functions.
6799 (frv_sigtramp_frame_unwind): New static global.
6800 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6802 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6803 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6805 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6807 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6808 but not via a call to error(), when unable to read memory.
6810 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6812 * frv-tdep.c (frv_call_dummy_words): Delete.
6813 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6815 2004-03-15 Andrew Cagney <cagney@redhat.com>
6817 * infrun.c (handle_step_into_function, step_over_function): Only
6818 update and use STEP_FRAME_ID when the system is using legacy
6819 frames. Update comments.
6821 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6823 * amd64-linux-tdep.h: Remove file.
6824 * amd64-linux-tdep.c: Don't include "inferior.h" and
6825 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6826 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6827 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6828 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6829 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6831 (user_to_gdb_regmap): Remove variable.
6832 (amd64_linux_gregset_reg_offset): New variable.
6833 (amd64_core_fns): Remove variable.
6834 (fetch_core_registers): Remove function.
6835 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6837 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6838 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6839 * Makefile.in (amd64_linux_tdep_h): Remove.
6840 (amd64-linux-nat.o): Update dependencies.
6841 (amd64-linux-tdep.o): Update dependencies.
6843 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6844 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6846 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6848 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6849 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6851 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6853 * dwarf2read.c (read_structure_type): Rename from
6854 read_structure_scope. Don't create a symbol or call process_die.
6855 Return immediately if die->type is set. Call read_type_die before
6856 dwarf2_add_member_fn.
6857 (process_structure_scope): New function.
6858 (read_enumeration_type, process_enumeration_scope): New functions,
6859 broken out from read_enumeration. Don't create the enumeration
6860 type if it has already been created.
6861 (read_enumeration): Removed.
6862 (process_die): Call read_structure_type, process_structure_scope,
6863 read_enumeration_type, and process_enumeration_scope. Just call
6864 new_symbol for base and subrange types. Add a comment about other
6866 (read_type_die): Call read_enumeration_type.
6867 (add_partial_structure, new_symbol): Update comments.
6869 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6871 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6873 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6875 * tui/tui-win.h (tui_get_cmd_list): Declare.
6876 * tui/tui-win.c (tui_command): New function.
6877 (tui_get_cmd_list): New function.
6878 (_initialize_tui_win): Moved initialization of tui command in
6881 * tui/tui-data.c (init_content_element): Setup new data members.
6882 (init_win_info): Likewise.
6883 (free_content_elements): Free it.
6884 * tui/tui-data.h (struct tui_data_element): Store the register
6886 (struct tui_data_info): Keep the current register group.
6888 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6890 * tui/tui-regs.h (tui_show_registers): Update prototype.
6891 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6892 (tui_resize_all): No need to calculate anything for register window.
6893 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6894 (tui_set_register_element, tui_set_general_regs_content): Remove.
6895 (tui_set_special_regs_content): Remove.
6896 (tui_set_general_and_special_regs_content): Remove.
6897 (tui_set_float_regs_content): Remove.
6898 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6899 (tui_set_regs_content): Remove.
6900 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6901 (tui_v_show_registers_command_support): Remove.
6902 (tui_show_registers): Use a reggroup to specify the registers to show.
6903 (tui_show_register_group): New function.
6904 (tui_display_registers_from): Compute the layout of register window
6905 and refresh with new API; be sure to delete old register windows.
6906 (tui_check_register_values): Update to use tui_get_register and
6908 (tui_display_register): Just refresh the register window part.
6909 (tui_register_format): Format registers and save in tui_data_element.
6910 (tui_get_register): New to combine tui_reg_value_has_changed and
6911 tui_get_register_raw_value; fix to use the new gdb API.
6912 (tui_show_float_command): Renamed tui_reg_float_command.
6913 (tui_show_general_command): Renamed tui_reg_general_command.
6914 (tui_show_special_command): Renamed tui_reg_system_command.
6915 (_initialize_tui_regs): Remove unused commands.
6917 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6919 * NEWS (New native configurations): Mention OpenBSD/amd64.
6921 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6922 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6924 * config/i386/nm-fbsd64.h: Likewise.
6925 * config/i386/nm-obsd.h: Likewise.
6926 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6927 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6929 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6931 * frv-tdep.c (set_variant_scratch_registers): New function.
6932 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6935 From Richard Sandiford <rsandifo@redhat.com>:
6936 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6938 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6940 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6941 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6942 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6943 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6944 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6945 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6946 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6947 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6948 definitions from frv-tdep.c to frv-tdep.h.
6950 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6952 Add shared library support for FR-V FDPIC ABI:
6953 * Makefile.in (solib-frv.o): Add dependencies.
6954 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6956 (frv_push_dummy_call): Add support for FDPIC ABI.
6957 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6959 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6960 (frv_fdpic_find_canonical_descriptor): Declare.
6961 * solib-frv.c: New file.
6962 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6963 * config/frv/tm-frv.h (solib.h): Include.
6965 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6967 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6968 (frv-tdep.o): Update dependencies.
6969 * frv-tdep.h: New file.
6970 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6971 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6973 (struct gdbarch_tdep): Add new member ``frv_abi''.
6974 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6976 (new_variant): Set ``frv_abi'' field.
6977 (gdb_arch_init): Detect FDPIC executables.
6979 2004-03-12 Mark Kettenis <kettenis@gnu.org>
6981 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6984 2004-03-11 Andrew Cagney <cagney@redhat.com>
6986 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6988 2004-03-11 Kevin Buettner <kevinb@redhat.com>
6990 * solist.h (master_so_list): New function.
6991 * solib.c (master_so_list): Likewise.
6992 * solib-svr4.c (enable_break): Iterate over so_list entries
6993 obtained from master list instead of entries obtained directly
6994 via svr4_current_sos().
6996 2004-03-10 Ben Elliston <bje@gnu.org>
6998 * MAINTAINERS: Update my mail address.
7000 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7002 * remote-m32r-sdi.c: Support hardware watchpoint.
7004 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7006 * user-regs.c: Update copyright years.
7007 (struct user_regs): Rename to gdb_user_regs.
7008 (append_user_reg, builtin_user_regs, user_regs_init)
7009 (user_reg_add, user_reg_map_name_to_regnum)
7010 (usernum_to_user_reg): Update.
7012 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7014 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7015 (skip_children): New functions.
7016 (locate_pdi_sibling): Call skip_children.
7018 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7020 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7021 * gdbtypes.c (check_typedef): Update comments.
7023 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7025 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7026 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7027 pointer. Update comment about comp_unit_head.
7028 (struct abbrev_info): Shorten two int flags.
7029 (dwarf_alloc_abbrev): Take a CU argument.
7030 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7031 each time through the loop. Update cleanup argument.
7032 (psymtab_to_symtab_1): Update cleanup call.
7033 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7035 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7036 Just call obstack_free and clear the pointer.
7038 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7040 * infrun.c (handle_inferior_event): Remove short-circuit code for
7041 events in a different thread.
7043 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7045 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7046 print the whole transfer.
7047 (initialize_targets): Update description of "set debug target".
7049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7051 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7053 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7055 * MAINTAINERS (write after approval): Add myself.
7057 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7059 * sh-tdep.c (sh_print_registers_info): Use for loop.
7060 Don't skip multiple registers when a float register is encountered.
7062 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7065 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7066 to official SH documentation.
7068 2004-03-07 Andrew Cagney <cagney@redhat.com>
7070 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7073 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7075 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7076 (arm_get_next_pc): Handle BX and BLX.
7078 2004-03-07 Andrew Cagney <cagney@redhat.com>
7080 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7081 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7083 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7084 (hppa_target_read_fp): Delete.
7085 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7086 register_virtual_size, max_register_raw_size,
7087 max_register_virtual_size, register_byte, register_size,
7088 target_read_fp, fp_regnum, and register_bytes. Set register_type
7089 instead of register_virtual_type.
7090 (hppa32_register_type, hppa64_register_type): Replace
7091 hppa32_register_virtual_type and hppa64_register_virtual_type.
7092 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7093 (HPPA_FP_REGNUM): Define.
7095 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7097 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7098 (pa_do_registers_info): Delete.
7099 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7100 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7101 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7103 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7104 GDB_TARGET_IS_HPPA code.
7105 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7106 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7107 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7108 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7109 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7110 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7111 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7112 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7113 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7114 (hppa_frameless_function_invocation, hppa64_store_return_value)
7115 (hppa_store_struct_return, hppa64_extract_return_value)
7116 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7117 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7118 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7119 (find_proc_framesize, deposit_21, restore_pc_queue)
7120 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7121 (rp_saved, pc_in_linker_stub): Delete.
7123 Unconditionally enable 64-bit frame and ABI code.
7124 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7125 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7126 push_dummy_frame, fix_call_dummy, push_arguments,
7127 call_dummy_location, extract_return_value, use_struct_convention,
7128 store_return_value, store_struct_return, saved_pc_after_call,
7129 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7130 frame_chain, frame_chain_valid, frameless_function_invocation,
7131 frame_saved_pc, and pop_frame.
7133 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7134 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7135 (hppa_gdbarch_init): Do not set PC_REGNUM.
7137 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7139 * config/alpha/tm-fbsd.h: Remove file.
7140 * config/alpha/fbsd.mt: Tweak comment.
7141 (TM_FILE): Set to tm-alpha.h.
7143 2004-03-05 Andrew Cagney <cagney@redhat.com>
7145 * infrun.c (step_over_function): When non-legacy code, and no
7146 step_frame_id, use the unwinder to get the caller's frame ID.
7148 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7150 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7151 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7152 bfd_arch_unknown. Adjust comment.
7154 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7155 * i386obsd-tdep.c: Correct spelling in comment.
7156 * i386nbsd-tdep.c: Correct spelling in comment.
7157 * sparc-tdep.c: Correct spelling in comments.
7159 2004-03-05 David Carlton <carlton@kealia.com>
7161 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7164 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7166 * sparc-tdep.c: Fix typo in comment.
7168 2004-03-04 J. Brobecker <brobecker@gnat.com>
7170 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7172 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7174 * dwarf2read.c: Add comment describing memory lifetimes.
7175 (struct dwarf2_pinfo): Update comment.
7176 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7177 (read_enumeration, new_symbol): Don't use obsavestring.
7179 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7181 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7182 instead of amd64_fill_fxsave.
7183 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7184 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7186 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7187 Reorganize code a bit.
7189 2004-03-04 Orjan Friberg <orjanf@axis.com>
7191 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7192 when the frame pointer is pushed. Don't set the frame pointer's
7193 address on the stack unless it's actually located there.
7194 Set the SRP's address on the stack correctly when the PC is still in
7196 (cris_return_value): New function.
7197 (cris_gdbarch_init): Clear deprecated store_return_value,
7198 extract_return_value.
7200 2004-03-02 Jim Blandy <jimb@redhat.com>
7202 * stabsread.c (reg_value_complaint): The maximum register number
7203 is one less than the number of registers.
7205 2004-03-02 Andrew Cagney <cagney@redhat.com>
7207 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7208 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7209 trailing comma and redundant assignment of I386_ST0_REGNUM.
7210 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7211 32-bit segment registers.
7213 2004-03-01 Andrew Cagney <cagney@redhat.com>
7215 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7216 use frame_relative_level and get_next_frame.
7218 2004-02-29 Andrew Cagney <cagney@redhat.com>
7220 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7221 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7222 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7225 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7227 * inflow.c (terminal_inferior): Don't give up the terminal if we
7228 previously couldn't get the inferior's terminal state.
7230 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7232 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7235 2004-02-28 Andrew Cagney <cagney@redhat.com>
7237 * NEWS: Refer to GDB 6.1.
7238 * README: Refer to GDB 6.1.
7239 * PROBLEMS: Refer to GDB 6.1.
7241 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7243 * thread-db.c (disable_thread_signals): Remove unused function.
7245 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7247 * amd64-nat.c: Include "gdb_string.h".
7248 (amd64_collect_native_gregset): Zero-extend the 32-bit
7249 general-purpose registers and %eip.
7251 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7252 * amd64-tdep.c (amd64_collect_fxsave): New function.
7253 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7255 * i387-tdep.h: Update copyright year.
7256 (i387_collect_fxsave): New prototype.
7257 * i387-tdep.c: Update copyright year.
7258 (i387_collect_fxsave): New function containing most of the code
7259 from i387_fill_fxsave.
7260 (i387_fill_fxsave): Call i387_collect_fxsave.
7262 2004-02-28 Andrew Cagney <cagney@redhat.com>
7264 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7265 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7267 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7269 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7271 2004-02-28 Andrew Cagney <cagney@redhat.com>
7273 * utils.c: Use "", instead of <>, to include readline.
7274 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7275 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7276 * source.c, solib.c, exec.c, event-top.c: Ditto.
7277 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7278 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7279 * Makefile.in: Update all dependencies.
7280 (readline_tilde_h, readline_history_h): Define.
7281 (readline_headers): Delete.
7283 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7285 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7286 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7287 "config/i386/tm-lx64.h".
7289 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7290 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7291 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7293 2004-02-28 Andrew Cagney <cagney@redhat.com>
7295 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7297 * breakpoint.c (_initialize_breakpoint): Use
7298 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7299 Add help to show command.
7301 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7303 * i386-nat.c: Reformat to be closer to coding standards.
7304 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7305 `retval'. Make variables `align' and `size' local to while-loop.
7306 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7307 (_initialize_i386_nat): New prototype.
7309 * tui/tui.c: Include <readline/readline.h> instead of
7310 "readline/readline.h". Include it after <term.h> and
7313 2004-02-27 Andrew Cagney <cagney@redhat.com>
7315 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7316 the new frame unwind code.
7317 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7318 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7321 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7322 "return_value" and "push_dummy_call".
7323 (hppa32_use_struct_convention): Delete unused function.
7324 (hppa32_store_return_value): Delete unused function.
7325 (hppa32_extract_return_value): Delete unused function.
7326 (hppa32_stack_align): Delete function.
7328 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7330 * coffread.c (enter_linenos): Don't let rawptr reference memory
7331 outside linetab[]'s limits.
7333 2004-02-27 Andrew Cagney <cagney@redhat.com>
7335 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7336 inferior stack space - the stack needs to grow upwards.
7337 (hppa32_frame_align): New function.
7338 (hppa64_frame_align): Replace hppa_frame_align.
7339 (hppa_gdbarch_init): Update.
7341 2004-02-26 Orjan Friberg <orjanf@axis.com>
7343 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7344 (dwarf2-frame.h): Include.
7345 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7346 Remove static variables related to ABI setting.
7347 (struct gdbarch_tdep): Remove cris_abi member.
7348 (struct frame_extra_info): Remove.
7349 (cris_unwind_cache, stack_item): New structs.
7350 (cris_frame_unwind, cris_frame_base): New variables.
7351 (push_stack_item, pop_stack_item)
7352 (cris_frame_unwind_cache, cris_frame_this_id)
7353 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7354 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7355 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7356 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7357 (cris_reg_struct_has_addr): New functions.
7358 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7359 (cris_frame_saved_pc, cris_saved_pc_after_call,
7360 (cris_store_struct_return, cris_frameless_function_invocation)
7361 (cris_pop_frame, cris_skip_prologue_main)
7362 (cris_abi_original_store_return_value)
7363 (cris_abi_v2_store_return_value)
7364 (cris_abi_original_extract_return_value)
7365 (cris_abi_v2_extract_return_value)
7366 (cris_abi_original_reg_struct_has_addr)
7367 (cris_abi_v2_reg_struct_has_addr)
7368 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7369 (cris_push_return_address, cris_abi_update): Remove.
7370 (_initialize_cris_tdep): Remove ABI command.
7371 (cris_dump_tdep): Ditto.
7372 (cris_gdbarch_init): Remove ABI command.
7373 Set store_return_value, extract_return_value, push_dummy_code,
7374 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7375 frame_unwind_append_sniffer, frame_base_set_default.
7376 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7377 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7378 sizeof_call_dummy_words, get_saved_register, push_return_address,
7379 pop_frame, store_struct_return, frame_init_saved_regs,
7380 init_extra_frame_info, frameless_function_invocation, frame_chain,
7381 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7384 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7386 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7387 * valprint.c (print_hex_chars): Change from static to external.
7388 (print_char_chars): New function.
7389 * printcmd.c (print_scalar_formatted): For integer and enum types
7390 that are longer than LONGEST, perform processing via appropriate
7391 print_*_chars routines.
7393 2004-02-26 Andrew Cagney <cagney@redhat.com>
7395 * Makefile.in: Update dependencies.
7396 Changes from Ulrich Weigand,
7397 * s390-tdep.c: Include "dwarf2-frame.h".
7398 (s390_dwarf2_frame_init_reg): New function.
7399 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7400 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7402 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7404 * breakpoint.c (pending_break_support): New setting variable.
7405 (break_command_1): Account for pending_break_support setting
7406 when creating pending breakpoints.
7407 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7408 (_initialize_breakpoint): Add "set breakpoint pending" and
7409 "show breakpoint pending" commands.
7411 2004-02-26 Andrew Cagney <cagney@redhat.com>
7414 * charset.c (backslashable, backslashed, represented): Remove 'e'
7415 from list of escaped characters, not part of ISO-C.
7417 2004-02-25 J. Brobecker <brobecker@gnat.com>
7419 From Peter Schauer <schauer@pdf.de>:
7420 * tui/tui.c: Move system header includes after local includes.
7421 Fixes a build failure on solaris systems.
7423 2004-02-25 J. Brobecker <brobecker@gnat.com>
7425 * configure.in: Refine the previous change.
7426 * configure: Regenerate.
7428 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7430 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7431 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7432 "amd64-tdep.h" instead of "x86-64-tdep.h".
7433 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7434 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7435 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7436 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7437 and "x86-64-tdep.c".
7438 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7439 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7440 and "x86-64-tdep.c".
7441 * amd64bsd-nat.c: Update copyright year.
7442 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7443 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7445 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7447 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7449 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7451 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7453 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7455 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7456 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7457 * Makefile.in (amd64_linux_tdep_h): Renamed from
7458 x86_64_linux_tdep_h.
7459 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7460 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7461 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7462 (amd64obsd-tdep.o): Update dependencies.
7463 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7465 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7467 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7468 amd64-linux-nat.c amd64-linux-tdep.c.
7469 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7470 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7471 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7472 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7473 amd64-tdep.o and amd64-linux-tdep.o.
7474 (TM_FILE): Set to tm-linux64.h.
7475 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7476 (NAT_FILE): Set to nm-linux64.h.
7477 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7478 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7480 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7482 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7485 2004-02-25 Roland McGrath <roland@redhat.com>
7487 * remote.c (remote_protocol_qPart_auxv): New variable.
7488 (init_all_packet_configs): Initialize it.
7489 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7490 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7491 (show_remote_cmd): Call it.
7492 (_initialize_remote): Initialize commands.
7493 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7494 service TARGET_OBJECT_AUXV requests.
7496 2004-02-25 J. Brobecker <brobecker@gnat.com>
7498 * configure.in: Make sure that the wborder function is available.
7499 Otherwise, search for it in the cur_colr library.
7500 * configure: Regenerate.
7502 2004-02-25 Andrew Cagney <cagney@redhat.com>
7504 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7506 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7508 * config/i386/tm-x86-64linux.h: Tweak comments.
7510 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7512 * MAINTAINERS: Add self to write-after-approval list.
7514 2004-02-25 Andrew Cagney <cagney@redhat.com>
7516 PR cli/1566. Problem found, and fix suggested by David Allan.
7517 * cli/cli-script.c (execute_control_command): Unconditionally
7518 install a cleanup. Default "ret" to "invalid_control". Use
7519 "break" instead of "return" to escape from the switch.
7521 2004-02-24 J. Brobecker <brobecker@gnat.com>
7523 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7524 with the lines macro defined in term.h on AiX.
7525 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7526 a collision with the label_width macro defined in term.h on AiX.
7528 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7530 Committed by Kevin Buettner <kevinb@redhat.com>.
7532 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7533 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7534 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7535 instead of ia64_write_pc().
7536 * ia64-linux-tdep.c (regcache.h): Include.
7537 (ia64_linux_write_pc): New function.
7539 2004-02-23 Roland McGrath <roland@redhat.com>
7541 * auxv.c (info_auxv_command): Fix typos in error messages.
7543 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7545 * x86-64-tdep.h: Tweak comment.
7546 (enum amd64_regnum): New.
7547 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7548 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7549 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7550 (X86_64_XMM1_REGNUM): Removed.
7551 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7552 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7553 prototypes for renamed functions.
7554 * x86-64-tdep.c: Fix typo.
7555 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7557 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7558 Use constants from `enum amd64_regnum' for register numbers.
7559 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7560 (amd64_analyze_prologue, amd64_frame_cache,
7561 amd64_sigtramp_frame_cache): Use constants from `enum
7562 amd64_regnum' for register numbers.
7563 (amd64_supply_fpregset): Adjust for renamed functions.
7564 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7565 `enum amd64_regnum' for register numbers.
7566 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7567 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7568 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7569 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7570 (amd64_linux_fill_gregset): Adjust for renamed macros.
7571 (fetch_core_registers): Adjust for renamed functions.
7572 (amd64_linux_init_abi): Adjust for renamed functions.
7573 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7575 * amd64-nat.c: Adjust for renamed macros.
7576 * amd64bsd-nat.c (fetch_inferior_registers)
7577 (store_inferior_registers): Use constants from `enum amd64_regnum'
7578 for register numbers. Adjust for renamed variables.
7579 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7581 (_initialize_amd64fbsd_nat): Use constants from `enum
7582 amd64_regnum' for register numbers.
7583 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7584 `enum amd64_regnum' for register numbers.
7585 (amd64fbsd_init_abi): Adjust for renamed functions.
7586 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7587 `enum amd64_regnum' for register numbers.
7588 (amd64nbsd_init_abi): Adjust for renamed functions.
7589 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7590 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7591 `enum amd64_regnum' for register numbers.
7592 (amd64obsd_init_abi): Adjust for renamed functions.
7593 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7595 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7597 * breakpoint.c (print_one_breakpoint): Do not output spaces
7598 after printing <PENDING> for a pending breakpoint.
7600 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7602 * printcmd.c (print_scalar_formatted): Initialize val_long
7603 to remove compiler warning message.
7605 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7607 * defs.h (nquery, yquery): New prototypes.
7608 * breakpoint.c (break_command_1): Use new nquery interface.
7609 * utils.c (defaulted_query, nquery, yquery): New functions.
7611 2004-02-23 Andrew Cagney <cagney@redhat.com>
7613 * hppa-tdep.c (hppa_frame_align): New function.
7614 (hppa32_push_dummy_call): New function.
7615 (hppa64_push_dummy_call): New function.
7616 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7619 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7620 FIX_CALL_DUMMY when push_dummy_call is available.
7621 (call_function_by_hand, push_dummy_code): Ditto.
7623 2004-02-22 Andrew Cagney <cagney@redhat.com>
7625 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7626 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7627 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7628 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7629 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7630 call_dummy_location to ON_STACK.
7632 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7634 * x86-64-linux-tdep.c: Tweak comment.
7635 (amd64_linux_supply_gregset): Renamed from
7636 x86_64_linux_supply_gresget.
7637 (amd64_linux_fill_gregset): Renamed from
7638 x86_64_linux_fill_gregset.
7639 (fetch_core_registers): Adjust for renamed functions.
7640 (amd64_core_fns): Renamed from x86_64_core_fns.
7641 (amd64_linux_sigtramp_start): Renamed from
7642 x86_64_linux_sigtramp_start.
7643 (amd64_linux_pc_in_sigtramp): Renamed from
7644 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7645 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7646 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7647 (amd64_linux_sigcontext_addr): Renamed from
7648 x86_64_linux_sigcontext_addr.
7649 (amd64_linux_sc_reg_offset): Renamed from
7650 x86_64_linux_sc_reg_offset.
7651 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7652 Adjust for renamed functions and variables.
7653 (_initialize_amd64_linux_tdep): Renamed from
7654 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7656 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7657 Adjust for renamed functions.
7659 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7660 from x86_64_linux_gregset64_reg_offset.
7661 (amd64_linux_gregset32_reg_offset): Rename from
7662 x86_64_linux_gregset64_reg_offset.
7663 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7664 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7665 (amd64_linux_dr_set_control): Renamed from
7666 x86_64_linux_dr_set_control. Adjust for renamed functions.
7667 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7668 Adjust for renamed functions.
7669 (amd64_linux_dr_reset_addr): Renamed from
7670 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7671 (amd64_linux_dr_get_status): Renamed from
7672 x86_64_linux_dr_get_status. Adjust for renamed functions.
7673 (_initialize_amd64_linux_nat): Renamed from
7674 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7676 * config/i386/nm-x86-64linux.h: Update copyright year.
7677 Adjust for renamed functions.
7679 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7680 amd64fbsd_sigtramp_start.
7681 (amd64fbsd_sigtramp_end_addr): Renamed from
7682 amd64fbsd_sigtramp_end.
7683 (amd64fbsd_init_abi): Adjust for renamed variables.
7684 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7686 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7687 amd64fbsd_sigtramp_start.
7688 (amd64fbsd_sigtramp_end_addr): Renamed from
7689 amd64fbsd_sigtramp_end.
7691 2004-02-22 Andrew Cagney <cagney@redhat.com>
7693 * hppa-tdep.c (hppa32_return_value): New function.
7694 (hppa64_return_value): New function.
7695 (hppa_gdbarch_init): Set return_value; keep disabled.
7697 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7698 struct-return and inferior function call methods.
7700 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7702 (struct hppa_frame_cache): Define.
7703 (hppa_frame_cache, hppa_frame_this_id): New functions.
7704 (hppa_frame_prev_register): New function.
7705 (hppa_frame_unwind, hppa_frame_base): New variables.
7706 (hppa_frame_unwind_sniffer): New function.
7707 (hppa_frame_base_address, hppa_unwind_pc): New function.
7708 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7709 sniffer, and frame base sniffer; keep disabled.
7710 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7711 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7713 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7714 to predicates for "seriously old code".
7716 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7719 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7721 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7723 * config/pa/tm-hppa.h: Update copyright.
7724 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7725 (deprecated_init_frame_pc_default): Delete declaration.
7726 (hppa_frame_init_saved_regs): Delete declaration.
7727 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7728 * hppa-tdep.c: Include "arch-utils.h".
7729 (hppa_gdbarch_init): Set deprecated init_frame_pc
7730 and deprecated frame_init_saved_regs.
7731 (hppa_frame_init_saved_regs): Make static.
7733 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7735 Remove old 386BSD support.
7736 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7737 * configure.host: Remove i[34567]86-*-bsd*.
7738 * configure.tgt: Remove i[34567]86-*-bsd*.
7739 * i386b-nat.c: Removed.
7740 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7741 (i386b-nat.o): Remove dependencies.
7743 * config/i386/i386bsd.mh: Removed.
7744 * config/i386/i386bsd.mt: Removed.
7745 * config/i386/nm-i386bsd.h: Removed.
7746 * config/i386/tm-i386bsd.h: Removed.
7747 * config/i386/xm-i386bsd.h: Removed.
7749 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7751 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7752 (amd64fbsd_init_abi): Set link map offsets.
7753 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7754 (amd64nbsd_init_abi): Set link map offsets.
7755 * amd64obsd-tdep.c: Include "solib-svr4.h".
7756 (amd64obsd_init_abi): Set link map offsets.
7757 * i386fbsd-tdep.c: Include "solib-svr4.h".
7758 (i386fbsd_init_abi): Set link map offsets.
7759 * i386nbsd-tdep.c: Include "solib-svr4.h".
7760 (i386nbsdelf_init_abi): Set link map offsets.
7761 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7762 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7763 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7764 solib-legacy.o and core-aout.o. Reformat.
7765 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7766 solib-svr4.o, solib-legacy.o. Reformat.
7767 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7768 * config/i386/nbsdelf.mh: Reformat.
7769 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7770 solib-svr4.o, solib-legacy.o and corelow.o.
7771 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7772 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7773 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7774 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7775 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7776 (TM_FILE): Set to tm-fbsd.h.
7777 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7778 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7780 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7782 (TM_FILE): Set to nm-nbsd.h.
7783 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7784 Simplify shared library support. Don't include "elf/common.h".
7785 (SVR4_SHARED_LIBS): Don't define.
7786 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7788 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7789 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7790 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7791 Don't include "i386/tm-i386.h". Include "solib.h".
7792 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7793 Don't include "i386/tm-i386.h".
7794 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7795 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7796 Include "i386/xm-i386.h".
7797 (HOST_LONG_DOUBLE_FORMAT): Remove.
7799 Fix OpenBSD/i386 sigtramp recognition.
7800 * i386-tdep.h: Update copyright year.
7801 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7802 (i386bsd_sigtramp_end): New prototypes.
7803 (i386fbsd_sigtramp_start_addr): Renamed from
7804 i386fbsd_sigtramp_start.
7805 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7806 (i386obsd_sigtramp_start_addr): Renamed from
7807 i386obsd_sigtramp_start.
7808 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7809 * i386bsd-tdep.c: Update copyright year.
7810 (i386bsd_pc_in_sigtramp): Make public.
7811 * i386fbsd-nat.c: Update copyright year.
7812 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7813 * i386fbsd-tdep.c: Update copyright year.
7814 (i386fbsd_sigtramp_start_addr): Renamed from
7815 i386fbsd_sigtramp_start.
7816 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7817 (i386fbsdaout_init_abi): Adjust for renamed variables.
7818 * i386obsd-nat.c: Update copyright year.
7819 (_initialize_i386obsd_nat): Adjust for renamed variables.
7820 * i386obsd-tdep.c: Include "target.h".
7821 (i386obsd_page_size): New variable.
7822 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7823 (i386obsd_sigtramp_end): New functions.
7824 (i386obsd_sigtramp_start_addr): Renamed from
7825 i386obsd_sigtramp_start.
7826 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7827 (i386obsd_init_abi): Adjust for renamed variables. Set
7828 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7829 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7831 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7832 trampoline change in OpenBSD kernel.
7834 * amd64-nat.c: Update copyright year.
7835 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7836 architecture from REGCACHE.
7838 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7839 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7841 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7843 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7844 i[34567]86-*-openbsd3.[0-3].
7845 * config/i386/obsdaout.mh: New file.
7847 * config/i386/obsd.mh (MH_FLAGS): Remove.
7850 * i386obsd-tdep.c: Update copyright years. Include
7852 (i386obsd_init_abi): Don't set regset_from_core_section here.
7853 (i386obsd_aout_init_abi): New function. Set
7854 regset_from_core_section here.
7855 (i386obsd_elf_init_abi): New function.
7856 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7857 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7858 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7859 (TM_FILE): Set to tm-nbsd.h.
7861 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7864 * solib-svr4.h: Update copyright year.
7865 (svr4_ilp32_fetch_link_map_offsets)
7866 (svr4_lp64_fetch_link_map_offsets): New prototype.
7867 * solib-svr4.c: Update copyright year.
7868 (svr4_ilp32_fetch_link_map_offsets)
7869 (svr4_lp64_fetch_link_map_offsets): New function.
7871 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7873 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7874 to the partial symbol table.
7876 2004-02-20 J. brobecker <brobecker@gnat.com>
7878 * PROBLEMS: Add description of problem documented under gdb/1560.
7880 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7882 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7884 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7886 (amd64obsd_init_abi): Reorder initializations. Use
7887 amd64obsd_r_reg_offset to initialize the general-purpose register
7888 set details. Set regset_from_core_section.
7889 (_initialize_amd64obsd_tdep): Rename from
7890 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7891 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7892 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7894 * NEWS (New native configurations): Mention OpenBSD/alpha.
7895 * configure.tgt: Add alpha*-*-openbsd*.
7896 * configure.host: Add alpha*-*-openbsd*.
7897 * alphanbsd-tdep.c: Update copyright year.
7898 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7900 2004-02-20 Andrew Cagney <cagney@redhat.com>
7903 * configure.tgt: Delete target "none-*-*".
7904 * configure.host: Delete host "none-*-*".
7905 * config/none/none.mh: Delete file.
7906 * config/none/none.mt: Delete file.
7907 * config/none/xm-none.h: Delete file.
7908 * config/none/tm-none.h: Delete file.
7909 * config/none/nm-none.h: Delete file.
7911 2004-02-19 Fred Fish <fnf@redhat.com>
7913 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7914 cache->uses_fp prior to setting it.
7916 2004-02-19 Fred Fish <fnf@redhat.com>
7918 Fix for PR breakpoint/1558.
7919 * sh-tdep.c (IS_JSR): New macro.
7920 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7922 2004-02-19 Jim Blandy <jimb@redhat.com>
7924 * findvar.c (value_from_register): Doc fix.
7926 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7928 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7929 type being greater than sizeof of host's LONGEST. Always use
7930 unpack_long() unless format 'f' chosen.
7932 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7934 Committed by Elena Zannoni <ezannoni@redhat.com>
7936 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7937 contains a symbol wich is the best, non-exact match for the given
7938 pc. Update comments.
7940 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7942 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7943 macro, which was part of the now removed Mach 3 port.
7944 * utils.c (request_quit): Ditto.
7946 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7948 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7949 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7951 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7953 Committed by Mark Kettenis <kettenis@gnu.org>.
7955 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7958 2004-02-18 Andrew Cagney <cagney@redhat.com>
7960 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7961 CONFIG_INSTALL and CONFIG_UNINSTALL.
7962 * configure: Re-generate.
7963 * interps.h (INTERP_TUI): Define.
7964 * Makefile.in: Update dependencies.
7966 (tui-main.o): Specify dependencies.
7967 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7968 * tui/tui-main.c: New file.
7970 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7972 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7973 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7975 * configure.host: Add x86_64-*-openbsd*.
7976 * configure.tgt: Add x86_64-*-openbsd*.
7977 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7979 * tui/tui.c: Don't include <malloc.h>.
7981 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7982 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7985 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
7986 static. Remove extraneous whitespace.
7987 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7990 2004-02-17 Jim Blandy <jimb@redhat.com>
7992 * findvar.c (value_from_register): Doc fix.
7994 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7996 Committed by Jim Blandy <jimb@redhat.com>.
7998 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
7999 CORE_ADDR as type for selectors. Correct types for GNU run time
8000 message lookup function to use double indirection.
8001 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8002 * objc-lang.h (lookup_child_selector): Adapt prototype.
8004 * s390-nat.c (SUBOFF): New macro.
8005 (supply_gregset, fill_gregset): Use it to handle debugging
8006 of 32-bit exectuables running under a 64-bit kernel.
8007 * s390-tdep.c: Include "solib-svr4.h".
8008 (s390_svr4_fetch_link_map_offset): New function.
8009 (s390x_svr_fetch_link_map_offset): Likewise.
8010 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8011 * Makefile.in (s390-tdep.o): Update dependencies.
8013 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8015 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8016 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8017 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8018 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8019 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8020 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8021 S390_SIGNAL_FRAMESIZE,
8022 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8023 (struct frame_extra_info): Remove.
8024 (s390_memset_extra_info): Remove.
8025 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8026 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8027 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8028 (is_rse): Renamed to ...
8029 (is_rsy): ... this. Support long displacements.
8030 (is_rxe): Renamed to ...
8031 (is_rxy): ... this. Support long displacements.
8032 (compute_x_addr): Support long displacements.
8033 (struct s390_prologue_data): New data type.
8034 (s390_on_stack): Change API to use struct s390_prologue_data.
8035 (s390_store): Reimplement.
8036 (s390_load): New function.
8037 (s390_get_signal_frame_info): Remove.
8038 (s390_get_frame_info): Remove, replace by ...
8039 (s390_analyze_prolog): ... this new function.
8040 (s390_check_function_end): Remove.
8041 (s390_function_start): Remove.
8042 (s390_frameless_function_invokation): Remove.
8043 (s390_is_sigreturn): Remove.
8044 (s390_init_frame_pc_first): Remove.
8045 (s390_init_frame_extra_info): Remove.
8046 (s390_frame_init_saved_regs): Remove.
8047 (s390_frame_saved_pc_nofix): Remove.
8048 (s390_frame_saved_pc): Remove.
8049 (s390_frame_chain): Remove.
8050 (s390_fp_regnum, s390_read_fp): Remove.
8051 (s390_pop_frame_regular, s390_pop_frame): Remove.
8052 (s390_saved_pc_after_call): Remove.
8053 (s390_skip_prologue): Reimplement.
8054 (s390_in_function_epilogue_p): Support long displacements.
8055 (struct s390_unwind_cache): New data structure.
8056 (s390_frame_unwind_cache): New function.
8057 (s390_prologue_frame_unwind_cache): Likewise.
8058 (s390_backchain_frame_unwind_cache): Likewise.
8059 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8060 (s390_frame_unwind): Define.
8061 (s390_frame_sniffer): New function.
8062 (struct s390_pltstub_unwind_cache): New data structure.
8063 (s390_pltstub_frame_unwind_cache): New function.
8064 (s390_pltstub_frame_this_id): Likewise.
8065 (s390_pltstub_frame_prev_register): Likewise.
8066 (s390_pltstub_frame_unwind): Define.
8067 (s390_pltstub_frame_sniffer): New function.
8068 (struct s390_sigtramp_unwind_cache): New data structure.
8069 (s390_sigtramp_frame_unwind_cache): New function.
8070 (s390_sigtramp_frame_this_id): Likewise.
8071 (s390_sigtramp_frame_prev_register): Likewise.
8072 (s390_sigtramp_frame_unwind): Define.
8073 (s390_sigtramp_frame_sniffer): New function.
8074 (s390_frame_base_address, s390_local_base_address): New functions.
8075 (s390_frame_base): Define.
8076 (s390_unwind_pc, s390_unwind_sp): New function.
8077 (s390_push_dummy_call): Use new frame base location.
8078 (s390_unwind_dummy_id): Likewise.
8079 (s390_gdbarch_init): Remove calls to:
8080 set_gdbarch_frameless_function_invocation,
8081 set_gdbarch_deprecated_init_frame_pc,
8082 set_gdbarch_deprecated_frame_chain,
8083 set_gdbarch_deprecated_frame_init_saved_regs,
8084 set_gdbarch_deprecated_pop_frame,
8085 set_gdbarch_deprecated_init_extra_frame_info,
8086 set_gdbarch_deprecated_init_frame_pc_first,
8087 set_gdbarch_deprecated_target_read_fp,
8088 set_gdbarch_deprecated_frame_saved_pc,
8089 set_gdbarch_deprecated_saved_pc_after_call,
8090 set_gdbarch_deprecated_fp_regnum.
8092 set_gdbarch_in_solib_call_trampoline,
8093 frame_unwind_append_sniffer,
8094 frame_base_set_default,
8095 set_gdbarch_unwind_pc,
8096 set_gdbarch_unwind_sp.
8097 * Makefile.in (s390-tdep.o): Update dependencies.
8099 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8100 (S390_STACK_FRAME_OVERHEAD): Remove.
8101 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8102 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8103 (s390_promote_integer_argument): Remove.
8104 (s390_cannot_extract_struct_value_address): Remove.
8105 (s390_use_struct_convention, s390_store_struct_return): Remove.
8106 (s390_extract_return_value, s390_store_return_value): Remove.
8107 (s390_return_value_convention, s390_return_value): New functions.
8108 (is_float_singleton): Handle typedefs.
8109 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8110 Remove, replace by ...
8111 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8112 s390_function_arg_integer): ... these new functions.
8113 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8114 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8115 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8118 set_gdbarch_deprecated_store_struct_return,
8119 set_gdbarch_deprecated_extract_return_value,
8120 set_gdbarch_deprecated_store_return_value,
8121 set_gdbarch_use_struct_convention,
8122 set_gdbarch_extract_struct_value_address,
8123 set_gdbarch_deprecated_pc_in_call_dummy,
8124 set_gdbarch_deprecated_push_arguments,
8125 set_gdbarch_deprecated_save_dummy_frame_tos,
8126 set_gdbarch_deprecated_push_return_address,
8127 set_gdbarch_deprecated_sizeof_call_dummy_words,
8128 set_gdbarch_deprecated_call_dummy_words,
8129 set_gdbarch_deprecated_dummy_write_sp.
8131 set_gdbarch_push_dummy_call,
8132 set_gdbarch_unwind_dummy_id,
8133 set_gdbarch_return_value.
8135 * config/s390/nm-linux.h: Update comments.
8136 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8137 (STOPPED_BY_WATCHPOINT): Redefine.
8138 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8139 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8140 (s390_stopped_by_watchpoint): Likewise.
8141 (watch_area_cnt): Remove.
8142 * s390-nat.c: Update comments.
8143 (watch_area): Remove typedef.
8144 Global replace watch_area by struct watch_area.
8145 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8146 (s390_stopped_by_watchpoint): Remove pid argument,
8147 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8148 (s390_fix_watch_points): Remove pid argument,
8149 use s390_inferior_tid. Recompute area spanned by watchpoints.
8150 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8151 argument. Reimplement.
8153 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8154 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8155 (FETCH_INFERIOR_REGISTERS): Define.
8156 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8158 * config/s390/s390x.mt: Remove.
8159 * config/s390/tm-s390.h: Remove.
8160 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8161 (TARGET_ELF64): Remove.
8162 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8163 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8164 s390*-*-* case; always set gdb_target to s390.
8165 * regformats/reg-s390.dat: Remove control registers.
8166 * regformats/reg-s390x.dat: Likewise.
8167 * s390-tdep.h: New file.
8168 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8169 Include "inferior.h" and "s390-tdep.h".
8170 Remove private definition of offsetof.
8171 (s390_register_u_addr): Remove.
8172 (regmap_gregset, regmap_fpregset): Define.
8173 (supply_gregset, fill_gregset): Reimplement.
8174 (supply_fpregset, fill_fpregset): Likewise.
8175 (s390_inferior_tid): New function.
8176 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8177 (fetch_inferior_registers, store_inferior_registers): Likewise.
8178 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8179 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8180 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8181 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8182 (struct gdbarch_tdep): Define.
8183 (struct s390_register_info): Define.
8184 (s390_register_info): New variable.
8185 (s390_register_name): Reimplement.
8186 (s390_register_type): New function.
8187 (s390_register_raw_size, s390x_register_raw_size): Remove.
8188 (s390_cannot_fetch_register): Remove.
8189 (s390_register_byte): Remove.
8190 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8191 (s390_dwarf_regmap): New variable.
8192 (s390_dwarf_reg_to_regnum): New function.
8193 (s390_stab_reg_to_regnum): Remove.
8194 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8195 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8196 (s390_convert_register_p): Likewise.
8197 (s390_register_to_value, s390_value_to_register): Likewise.
8198 (s390_register_reggroup_p): Likewise.
8199 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8200 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8201 (s390_supply_regset, s390_regset_from_core_section): New functions.
8202 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8203 (S390_FPR_SIZE): Likewise.
8204 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8205 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8206 (S390_NUM_GPRS): Move here from tm-s390.h.
8207 (S390_NUM_FPRS): Likewise.
8208 (s390_in_function_epilogue_p): New function.
8209 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8210 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8211 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8212 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8213 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8215 set_gdbarch_deprecated_max_register_raw_size,
8216 set_gdbarch_deprecated_max_register_virtual_size,
8217 set_gdbarch_deprecated_register_byte,
8218 set_gdbarch_cannot_fetch_register,
8219 set_gdbarch_cannot_store_register,
8220 set_gdbarch_deprecated_register_size,
8221 set_gdbarch_deprecated_register_raw_size,
8222 set_gdbarch_deprecated_register_virtual_size,
8223 set_gdbarch_deprecated_register_virtual_type,
8224 set_gdbarch_deprecated_register_bytes.
8226 set_gdbarch_num_pseudo_regs,
8227 set_gdbarch_register_type,
8228 set_gdbarch_convert_register_p,
8229 set_gdbarch_register_to_value,
8230 set_gdbarch_value_to_register,
8231 set_gdbarch_register_reggroup_p,
8232 set_gdbarch_regset_from_core_section,
8233 set_gdbarch_pseudo_register_read,
8234 set_gdbarch_pseudo_register_write,
8235 set_gdbarch_in_function_epilogue_p.
8236 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8237 (s390_tdep_h): New variable.
8239 2004-02-17 Jim Blandy <jimb@redhat.com>
8241 * findvar.c (value_from_register): If the type has no length, just
8242 return an acceptable value --- don't report an internal error.
8244 * stabsread.c (read_type): If we find any type numbers that are
8245 forward references, complain if the references aren't resolved by
8246 the time we're finished reading.
8247 (cleanup_undefined_types): Make error message more appropriate for
8250 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8252 * Makefile.in (defs_h): Remove dependency on progress_h.
8253 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8255 * main.c (captured_main): Delete use of START_PROGRESS and
8258 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8260 * objfiles.c (terminate_minimal_symbol_table): Add back
8261 initialization of MSYMBOL_TYPE.
8263 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8265 Committed by Andrew Cagney.
8266 * Makefile.in (ia64_tdep_h): New macro.
8267 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8268 (ia64-tdep.o): Likewise.
8269 * ia64-tdep.h: New file.
8270 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8271 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8272 (ia64_aix_sigcontext_register_address): Likewise.
8273 (ia64_linux_getunwind_table): Delete declaration.
8274 * ia64-linux-tdep.c: Likewise.
8276 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8278 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8279 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8280 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8282 2004-02-17 Andrew Cagney <cagney@redhat.com>
8284 * symtab.c (skip_prologue_using_sal): New function.
8285 * symtab.h (skip_prologue_using_sal): Declare.
8286 * frv-tdep.c: Include "symtab.h".
8287 (skip_prologue_using_sal): Delete function.
8288 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8289 * rs6000-tdep.c (refine_prologue_limit): Mention
8290 skip_prologue_using_sal.
8291 * ia64-tdep.c (refine_prologue_limit): Ditto.
8292 * Makefile.in: Update dependencies.
8294 2004-02-16 Andrew Cagney <cagney@redhat.com>
8296 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8297 START_INFERIOR_TRAPS_EXPECTED.
8298 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8299 START_INFERIOR_TRAPS_EXPECTED.
8300 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8302 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8303 macro, moved to "nm-osf.h". Update copyright.
8304 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8307 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8308 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8309 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8310 frameless_look_for_prologue.
8311 * frame.h (legacy_frameless_look_for_prologue): Rename
8312 frameless_look_for_prologue.
8313 * gdbarch.h, gdbarch.c: Re-generate.
8314 * sh64-tdep.c (sh64_gdbarch_init): Update.
8315 * sh-tdep.c (sh_gdbarch_init): Update.
8316 * s390-tdep.c (s390_gdbarch_init): Update.
8317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8318 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8319 * m68k-tdep.c (m68k_gdbarch_init): Update.
8320 (delta68_frame_args_address): Update.
8321 * m32r-tdep.c (m32r_gdbarch_init): Update.
8322 * hppa-tdep.c (hppa_gdbarch_init): Update.
8323 * h8300-tdep.c (h8300_gdbarch_init): Update.
8324 * frv-tdep.c (frv_gdbarch_init): Update.
8325 (frv_frameless_function_invocation): Update.
8326 * cris-tdep.c (cris_gdbarch_init): Update.
8327 (cris_frameless_function_invocation): Update.
8328 * avr-tdep.c (avr_gdbarch_init): Update.
8329 * arm-tdep.c (arm_gdbarch_init): Update.
8330 * stack.c (frame_info): Update, call predicate.
8331 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8332 * frame.c (legacy_get_prev_frame): Update, call predicate..
8333 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8334 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8335 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8338 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8339 * vax-tdep.c (vax_gdbarch_init): Ditto.
8341 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8344 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8346 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8349 2004-02-16 Andrew Cagney <cagney@redhat.com>
8351 * tui/tui-windata.c: Include "gdb_string.h".
8352 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8353 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8354 * Makefile.in: Update dependencies.
8356 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8358 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8359 * infrun.c: Include "gdb_assert.h".
8360 (singlestep_ptid, saved_singlestep_ptid)
8361 (stepping_past_singlestep_breakpoint): New variables.
8362 (resume): Set singlestep_ptid. Check for singlestep thread
8364 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8365 (handle_inferior_event): Handle singlestep thread hop.
8367 2004-02-16 Andrew Cagney <cagney@redhat.com>
8369 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8370 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8371 (dwarf2_frame_init_reg): Ditto.
8373 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8374 suggested by Joshua Neuheisel
8376 * configure.in: Always check for curses, including pdcurses.
8377 Warn, instead of error, when no curses are found. Enable TUI when
8378 curses is available.
8379 * configure: Re-generate.
8381 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8383 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8384 sh_sh4_register_convert_to_virtual.
8385 (sh_register_convert_to_raw): Rename from
8386 sh_sh4_register_convert_to_raw.
8387 (sh_pseudo_register_read): Accomodate above name change.
8388 (sh_pseudo_register_write): Ditto.
8390 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8392 * sh-tdep.c (sh_generic_register_name): Remove.
8393 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8395 2004-02-15 Andrew Cagney <cagney@redhat.com>
8397 * configure.in (build_warnings): Add -Wunused-function.
8398 * configure: Re-generate.
8400 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8401 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8403 * procfs.c (procfs_init_inferior): Assume that
8404 START_INFERIOR_TRAPS_EXPECTED is defined.
8405 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8406 * config/ns32k/tm-nbsd.h: Delete file,
8407 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8409 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8410 * config/vax/tm-vax.h: Delete file.
8412 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8413 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8414 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8415 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8416 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8417 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8418 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8420 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8422 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8423 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8424 (struct dwarf2_frame_ops): New.
8425 (dwarf2_frame_default_init_reg): New function, based on
8426 dwarf2_frame_init_reg.
8427 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8428 (dwarf2_frame_init_reg): Call architecture-specific function.
8429 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8430 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8431 instead of dwarf2_frame_data.
8432 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8433 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8435 2004-02-15 Andrew Cagney <cagney@redhat.com>
8437 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8438 register_gdbarch_swap.
8439 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8440 * f-lang.c (_initialize_f_language): Update, use
8441 DEPRECATED_REGISTER_GDBARCH_SWAP.
8442 * remote.c (_initialize_remote): Ditto.
8443 * regcache.c (_initialize_regcache): Ditto.
8444 * parse.c (_initialize_parse): Ditto.
8445 * infrun.c (_initialize_infrun): Ditto.
8446 * mi/mi-main.c (_initialize_mi_main): Ditto.
8447 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8449 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8450 poking .cacheable directly.
8451 * symfile.c (symfile_bfd_open): Ditto.
8453 * Makefile.in: Update all dependencies.
8455 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8456 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8457 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8458 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8459 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8461 2004-02-14 Andrew Cagney <cagney@redhat.com>
8463 * arch-utils.c (legacy_convert_register_p): Check
8464 DEPRECATED_REGISTER_CONVERTIBLE_P.
8465 * findvar.c (value_of_register): Ditto.
8467 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8468 * gdbarch.h, gdbarch.c: Re-generate.
8469 * arch-utils.c (deprecated_register_convertible_not): Delete.
8470 * arch-utils.h (deprecated_register_convertible_not): Delete.
8471 * mi/mi-main.c (get_register): Update. Update copyright.
8472 * infcmd.c (default_print_registers_info): Update.
8474 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8475 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8476 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8477 * gdbarch.h, gdbarch.c: Re-generate.
8478 * frame.c (deprecated_get_next_frame_hack): Delete function.
8479 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8480 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8482 * infcall.c (call_function_by_hand): Update.
8484 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8486 * symfile.c (init_entry_point_info, entry_point_address): Move
8488 * objfiles.c (init_entry_point_info, entry_point_address):..to
8490 * symfile.h (init_entry_point_info, entry_point_address): Remove
8492 * objfiles.h (init_entry_point_info, entry_point_address):Add
8494 * cris-tdep.c: Remove include of symfile.h. Add include of
8497 * mcore-tdep.c: Ditto.
8498 * mn10300-tdep.c: Ditto.
8499 * sh64-tdep.c: Ditto.
8500 * v850-tdep.c: Ditto.
8501 * arm-tdep.c: Remove include of symfile.h.
8502 * blockframe.c: Ditto.
8503 * coffread.c: Ditto.
8505 * dwarf2read.c: Ditto.
8506 * dwarfread.c: Ditto.
8507 * frv-tdep.c: Ditto.
8508 * ia64-tdep.c: Ditto.
8509 * mdebugread.c: Ditto.
8510 * mipsread.c: Ditto.
8511 * rs6000-tdep.c: Ditto.
8512 * s390-tdep.c: Ditto.
8514 * xstormy16-tdep.c: Ditto.
8515 * gdbarch.sh: Remove include of symfile.h.
8516 * gdbarch.c: Regenerate.
8517 * solib-irix.c (enable_break): Use entry_point_address().
8518 Add comment about include file.
8519 * xcoffread.c: Add comment about include file.
8520 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8521 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8522 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8523 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8524 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8526 2004-02-13 Andrew Cagney <cagney@redhat.com>
8528 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8529 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8531 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8533 2004-02-12 Fred Fish <fnf@redhat.com>
8535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8536 set_gdbarch_store_return_value.
8538 2004-02-12 Andrew Cagney <cagney@redhat.com>
8540 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8541 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8542 (interrupt_query): Ditto.
8543 (ofunc): Delete unused variable.
8544 * cris-tdep.c (cris_abi): Delete unused function.
8545 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8546 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8547 (cris_get_asr_quick_shift_steps): Ditto.
8548 (cris_skip_prologue_frameless_p): Ditto.
8549 * arm-tdep.c (arm_push_return_address): Delete unused function.
8550 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8551 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8552 * s390-tdep.c (s390_function_start): Delete unused function.
8554 2004-02-12 Andrew Cagney <cagney@redhat.com>
8556 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8557 gdbarch.h, gdbarch.c: Re-generate.
8558 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8559 to generic_prologue_frameless_p.
8560 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8561 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8563 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8565 * mips-linux-tdep.c: Include "frame.h".
8566 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8567 (mips_linux_skip_resolver): New functions.
8568 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8569 and set_gdbarch_in_solib_call_trampoline.
8570 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8571 to after set_gdbarch_in_solib_return_trampoline. Only set the
8572 solib hooks to mips16 functions if the OS ABI is unknown.
8573 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8574 including "config/tm-linux.h".
8575 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8576 * Makefile.in (mips-linux-tdep.o): Update.
8578 2004-02-11 David Carlton <carlton@kealia.com>
8580 * linespec.c (decode_compound): Only look for a class symbol when
8581 considering all but the rightmost component.
8583 2004-02-11 Andrew Cagney <cagney@redhat.com>
8585 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8586 abi code are are separatly grouped.
8588 2004-02-11 Andrew Cagney <cagney@redhat.com>
8590 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8591 * gdbarch.h, gdbarch.c: Re-generate.
8592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8593 * v850-tdep.c (v850_gdbarch_init): Update.
8594 * sh64-tdep.c (sh64_gdbarch_init): Update.
8595 * sh-tdep.c (sh_gdbarch_init): Update.
8596 * s390-tdep.c (s390_gdbarch_init): Update.
8597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8598 * mips-tdep.c (mips_gdbarch_init): Update.
8599 * mcore-tdep.c (mcore_gdbarch_init): Update.
8600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8601 * m32r-tdep.c (m32r_gdbarch_init): Update.
8602 * ia64-tdep.c (ia64_gdbarch_init): Update.
8603 * hppa-tdep.c (hppa_gdbarch_init): Update.
8604 * h8300-tdep.c (h8300_gdbarch_init): Update.
8605 * frv-tdep.c (frv_gdbarch_init): Update.
8606 * d10v-tdep.c (d10v_gdbarch_init): Update.
8607 * cris-tdep.c (cris_gdbarch_init): Update.
8608 * avr-tdep.c (avr_gdbarch_init): Update.
8609 * arm-tdep.c (arm_gdbarch_init): Update.
8610 * alpha-tdep.c (alpha_gdbarch_init): Update.
8612 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8614 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8616 (sh_sh4al_dsp_register_name): Ditto.
8618 2004-02-10 Andrew Cagney <cagney@redhat.com>
8620 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8621 (mips_init_frame_pc_first): Delete function.
8622 (mips_frame_saved_pc): Delete function.
8623 (mips_frame_chain): Delete function.
8624 (mips_init_extra_frame_info): Delete function.
8625 (mips_xfer_register): Delete unused variable "reg".
8626 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8627 (mips_n32n64_return_value): Delete unused variable "reg".
8628 (mips_n32n64_return_value): Delete unused variable "pos".
8629 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8630 (mips_o32_return_value): Delete unused variable "pos".
8631 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8632 (mips_print_fp_register): Delete unused variable "namelen"
8633 (mips_print_fp_register): Delete unused variable "flt2"
8634 (get_frame_pointer): Delete function.
8635 (cached_proc_desc): Delete static variable.
8636 (mips_pop_frame): Delete function.
8637 (mips_find_saved_regs): Delete function.
8638 (mips_get_saved_register): Delete function.
8639 (mips_saved_pc_after_call): Delete function.
8640 (SIGFRAME_BASE): Delete macro.
8641 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8642 (SIGFRAME_PC_OFF): Delete macro.
8643 (SIGFRAME_REGSAVE_OFF): Delete macro.
8644 (mips_dump_tdep): Do not print deleted macro definitions.
8646 2004-02-10 Andrew Cagney <cagney@redhat.com>
8648 * Makefile.in (SFILES): Remove explictly listed tui files.
8649 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8651 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8653 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8654 to use paddr functions to format ia64 addresses and long values.
8655 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8656 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8657 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8658 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8659 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8661 2004-02-10 Andrew Cagney <cagney@redhat.com>
8663 * defs.h: Do not include "tui.h".
8664 * gdb_curses.h: New file.
8665 * tui/tui-hooks.h: New file.
8666 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8667 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8668 (tui_initialize_io): Delete declaration.
8669 (tui_initialize_readline: Delete redundant declaration.
8670 (struct tui_point): Delete definition.
8671 * tui/tui-data.h (struct tui_point): Define.
8672 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8673 * utils.c: Include "tui/tui.h".
8674 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8675 * printcmd.c [TUI]: Include "tui/tui.h".
8676 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8677 * tui/tui-command.c: Include "gdb_curses.h".
8678 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8679 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8680 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8681 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8682 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8683 * Makefile.in: Update all dependencies.
8684 (tui_hooks_h, gdb_curses_h): Define.
8685 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8687 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8689 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8690 auxf2. Add comments about some other rarely used fields.
8692 2004-02-10 Andrew Cagney <cagney@redhat.com>
8694 * Makefile.in (init.c): Fix script removing duplicates. Problem
8695 reported by Peter Schauer.
8697 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8699 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8700 obstack_specify_allocation.
8701 * objfiles.c (allocate_objfile): Ditto.
8702 * solib-sunos.c (solib_add_common_symbols)
8703 (allocate_rt_common_objfile): Ditto.
8704 * symfile.c (reread_symbols): Ditto.
8705 * gdb_obstack.h: Add comment.
8707 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8709 * linespec.c (decode_line_1, locate_first_half)
8710 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8713 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8715 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8718 2004-02-09 Andrew Cagney <cagney@redhat.com>
8720 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8721 fails, try find_pc_section. Fix PR c++/1267.
8722 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8723 instead of find_pc_mapped_section.
8724 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8725 not default to the section containing PC. Fix PR symtab/1519.
8727 2004-02-09 Andrew Cagney <cagney@redhat.com>
8729 * Makefile.in (mips-tdep.o): Update dependencies.
8730 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8732 (mips_unwind_pc): Return the pseudo PC register.
8733 (mips_unwind_dummy_id): New function.
8734 (mips16_fetch_instruction): New function.
8735 (mips32_fetch_instruction): New function.
8736 (struct mips_frame_cache): Define.
8737 (mips_mdebug_frame_cache): New function.
8738 (mips_mdebug_frame_this_id): New function.
8739 (mips_mdebug_frame_prev_register): New function.
8740 (mips_mdebug_frame_unwind): Define.
8741 (mips_mdebug_frame_sniffer): New function.
8742 (mips_mdebug_frame_base_address): New function.
8743 (mips_mdebug_frame_base): Define.
8744 (mips_mdebug_frame_base_sniffer): New function.
8745 (mips_gdbarch_init): Append unwind and base sniffers. Set
8748 2004-02-08 Andrew Cagney <cagney@redhat.com>
8750 * frame.c: Print both the register number and name.
8752 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8753 and a sed into a single sed. Make .c and .o patterns more robust.
8755 (INIT_FILES): Replace OBS with COMMON_OBS.
8756 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8758 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8760 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8761 the PT_WCOOKIE request.
8763 2004-02-08 Andrew Cagney <cagney@redhat.com>
8765 * mips-tdep.c (mips_unwind_pc): New function.
8766 (mips_gdbarch_init): Set mips_unwind_pc.
8768 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8769 (get_frame_id): Allow the UNKNOWN_FRAME.
8770 (frame_register_unwind, get_frame_type): Ditto.
8772 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8773 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8774 unwind_dummy_id indicates a legacy frame.
8776 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8777 * configure: Re-generate.
8779 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8782 2004-02-08 Andrew Cagney <cagney@redhat.com>
8784 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8786 * configure: Re-generate.
8787 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8788 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8789 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8790 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8791 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8792 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8793 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8794 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8795 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8796 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8798 2004-02-07 Andrew Cagney <cagney@redhat.com>
8800 * Makefile.in: Update all dependencies.
8802 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8803 * configure: Re-generate.
8804 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8805 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8806 (COMMON_OBS): Add "main.o" and "annotate.o".
8807 (ANNOTATE_OBS): Delete.
8808 (OBS): Remove ANNOTATE_OBS.
8809 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8811 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8812 against CONFIG_OBS and "main.o".
8813 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8814 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8816 * tui/tui-command.c: Include "gdb_string.h", delete register
8817 attribute, use ISO-C function signatures.
8818 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8819 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8820 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8823 * tui/tui-command.c: Change variable and function names to lower
8825 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8826 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8827 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8828 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8829 * tui/tui-winsource.c, tui/tui.c: Ditto.
8831 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8833 * buildsym.c (free_pending_blocks, finish_block)
8834 (record_pending_block, make_blockvector, end_symtab): Replace
8835 symbol_obstack with objfile_obstack.
8836 * coffread.c (process_coff_symbol, coff_read_struct_type)
8837 (coff_read_enum_type): Ditto.
8838 * cp-namespace.c (initialize_namespace_symtab)
8839 (check_one_possible_namespace_symbol): Ditto.
8840 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8841 (dwarf2_symbol_mark_computed): Ditto.
8842 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8843 * elfread.c (elf_symtab_read): Ditto.
8844 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8845 (hpread_read_enum_type, hpread_read_function_type)
8846 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8848 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8849 (java_link_class_type): Ditto.
8850 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8851 (new_symbol): Ditto.
8852 * minsyms.c (install_minimal_symbols): Ditto.
8853 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8854 (terminate_minimal_symbol_table): Replace symbol_obstack with
8856 (free_objfile): Remove freeing of symbol_obstack.
8857 * objfiles.h: Remove symbol_obstack field.
8858 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8860 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8862 (solib_add_common_symbols): Replace symbol_obstack with
8864 * somsolib.c (som_solib_add): Ditto.
8865 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8866 (common_block_start, common_block_end): Ditto.
8867 * symfile.c (reread_symbols): Remove freeing and init of
8869 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8870 * symfile.h: Update comment.
8871 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8873 * symtab.c (symbol_set_names): Replace symbol_obstack with
8875 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8877 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8878 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8881 2004-02-07 Andrew Cagney <cagney@redhat.com>
8883 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8884 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8885 fields and variables.
8886 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8887 (m_beInvisible): Delete macro.
8888 * tui/tui-data.h: Fix case case fields and variables.
8889 (m_genWinPtrIsNull): Delete macro.
8890 (tui_win_list): Rename winList.
8891 (TUI_SRC_WIN): Rename srcWin.
8892 (TUI_DISASM_WIN): Rename disassemWin.
8893 (TUI_DATA_WIN): Rename dataWin.
8894 (TUI_CMD_WIN): Rename cmdWin.
8895 (m_genWinPtrNotNull): Delete macro.
8896 (m_winPtrIsNull): Delete macro.
8897 (m_winPtrNotNull): Delete macro.
8898 (tui_win_is_source_type): Replace m_winIsSourceType
8899 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8900 (tui_win_has_locator): Replace m_hasLocator.
8901 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8902 m_setWinHighlightOff.
8903 * tui/tui-data.c: Update references.
8904 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8905 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8906 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8907 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8908 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8909 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8910 * tui/tui-winsource.c, tui/tui.c: Ditto.
8912 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8914 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8915 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8918 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8919 variable `i6' to `i7'.
8920 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8922 2004-02-07 Andrew Cagney <cagney@redhat.com>
8924 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8925 (TuiPoint, TuiPointPtr): Ditto.
8926 (TuiStatus, TuiStatusPtr): Ditto.
8927 (TuiWinType, TuiWinTypePtr): Ditto.
8928 (struct tui_point): Rename _TuiPoint.
8929 (tui_get_low_disassembly_address): Rename
8930 tuiGetLowDisassemblyAddress.
8931 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8932 (tuiFree): Delete declaration.
8933 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8934 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8935 * tui/tui.c (tuiFree): Delete function.
8936 * cli/cli-cmds.c (disassemble_command): Update references.
8937 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8938 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8939 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8940 * tui/tui-winsource.c: Ditto.
8942 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8944 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8945 coffstab_build_psymtabs, elfstab_build_psymtabs)
8946 (stabsect_build_psymtabs): Replace psymbol_obstack with
8948 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8949 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8951 * dwarfread.c (scan_compilation_units): Ditto.
8952 * elfread.c (elfstab_offset_sections): Ditto.
8953 * hppa-tdep.c (read_unwind_info): Ditto.
8954 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8955 (hpread_end_psymtab): Ditto.
8956 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8957 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8959 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8960 * objfiles.c (add_to_objfile_sections)
8961 (build_objfile_section_table): Ditto.
8962 (allocate_objfile): Remove init of psymbol_obstack.
8963 (free_objfile): Remove freeing of psymbol_obstack.
8964 * objfiles.h (struct objfile): Remove field
8965 psymbol_obstack. Update comments.
8966 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8967 psymbol_obstack with objfile_obstack.
8968 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8970 * somread.c (som_symfile_offsets, init_import_symbols)
8971 (init_export_symbols): Replace psymbol_obstack with
8973 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8974 * symfile.c (default_symfile_offsets, syms_from_objfile)
8975 (reread_symbols): Remove freeing and init of psymbol_obstack.
8976 (cashier_psymtab): Update comment.
8977 * symmisc.c (print_objfile_statistics): Don't report stats for
8979 * symtab.h (struct general_symbol_info, struct partial_symtab):
8981 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8982 (xcoff_symfile_offsets): Replace psymbol_obstack with
8985 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8987 * objfiles.h (struct objfile): Add objfile_obstack field.
8988 Remove type_obstack field.
8990 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8991 read_structure_scope read_enumeration, new_symbol): Replace
8992 type_obstack with objfile_obstack.
8993 * dwarfread.c (struct_type, enum_type): Ditto.
8994 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
8995 (lookup_fundamental_type): Ditto.
8996 * gdbtypes.h (TYPE_ALLOC): Ditto.
8997 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8998 (hpread_read_doc_function_type, hpread_read_struct_type)
8999 (fix_static_member_physnames, hpread_read_array_type)
9000 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9001 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9002 (java_link_class_type): Ditto.
9003 * mdebugread.c (parse_type): Ditto.
9004 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9005 * solib-sunos.c (solib_add_common_symbols): Ditto.
9006 * stabsread.c (define_symbol, read_type, read_member_functions,
9007 read_cpp_abbrev, read_one_struct_field): Ditto.
9008 * symfile.c (reread_symbols): Ditto.
9009 * symmisc.c (print_objfile_statistics): Ditto.
9011 2004-02-07 Andrew Cagney <cagney@redhat.com>
9013 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9014 (tui_exec_info_content): Rename TuiExecInfoContent.
9015 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9016 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9017 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9018 (TuiList, TuiListPtr): Ditto.
9019 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9020 (TuiDataType, TuiDataTypePtr): Ditto.
9021 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9022 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9023 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9024 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9025 (TuiDataElement, TuiDataElementPtr): Ditto.
9026 (TuiWinElement, TuiWinElementPtr): Ditto.
9027 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9028 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9029 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9030 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9031 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9032 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9033 * tui/tui-command.c, tui/tui-data.c: Update references.
9034 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9035 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9036 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9037 * tui/tui-winsource.c, tui/tui.c: Ditto.
9039 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9041 * dwarf2-frame.h: Update copyright.
9042 (enum dwarf2_frame_reg_rule): New.
9043 (struct dwarf2_frame_state_reg): New.
9044 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9045 * dwarf2-frame.c: Update copyright.
9046 (enum dwarf2_reg_rule): Remove.
9047 (struct dwarf2_frame_state): Remove defenition of `struct
9048 dwarf2_frame_state_reg'.
9049 (read_reg): Call get_frame_arch to get the architecture instead of
9050 using CURRENT_GDBARCH.
9051 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9053 (dwarf2_frame_init_reg): New function.
9054 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9055 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9056 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9057 tags with DWARF2_FRAME_.
9058 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9059 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9060 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9062 2004-02-06 Andrew Cagney <cagney@redhat.com>
9064 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9065 (enum tui_data_type): Rename _TuiDataType.
9066 (struct tui_layout_def): Rename _TuiLayoutDef.
9067 (struct tui_source_element): Rename _TuiSourceElement.
9068 (struct tui_data_element): Rename _TuiDataElement.
9069 (struct tui_command_element): Rename _TuiCommandElement.
9070 (struct tui_locator_element): Rename _TuiLocatorElement.
9071 (union tui_which_element): Define.
9072 (struct tui_win_element): Rename _TuiWinElement.
9073 (struct tui_data_info): Rename _TuiDataInfo.
9074 (struct tui_source_info): Rename _TuiSourceInfo.
9075 (struct tui_command_info): Rename _TuiCommandInfo.
9076 (tui_initialize_static_data): Rename initializeStaticData.
9077 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9078 (tui_alloc_win_info): Rename allocWinInfo.
9079 (tui_init_generic_part): Rename initGenericPart.
9080 (tui_init_win_info): Rename initWinInfo.
9081 (tui_alloc_content): Rename allocContent.
9082 (tui_add_content_elements): Rename addContentElements.
9083 (tui_init_content_element): Rename initContentElement.
9084 (tui_free_window): Rename freeWindow.
9085 (tui_free_win_content): Rename freeWinContent.
9086 (tui_free_data_content): Rename freeDataContent.
9087 (tui_free_all_source_wins_content): Rename
9088 freeAllSourceWinsContent.
9089 (tui_del_window): Rename tuiDelWindow.
9090 (tui_del_data_windows): Rename tuiDelDataWindows.
9091 (tui_partial_win_by_name): Rename partialWinByName.
9092 (tui_win_name): Rename winName.
9093 (tui_current_layout): Rename currentLayout.
9094 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9095 (tui_term_height): Rename termHeight.
9096 (tui_set_term_height_to): Rename setTermHeightTo.
9097 (tui_term_width): Rename termWidth.
9098 (tui_set_term_width_to): Rename setTermWidthTo.
9099 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9100 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9101 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9102 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9103 (tui_source_windows): Rename sourceWindows.
9104 (tui_clear_source_windows): Rename clearSourceWindows.
9105 (tui_clear_source_windows_detail): Rename
9106 clearSourceWindowsDetail.
9107 (tui_clear_win_detail): Rename clearWinDetail.
9108 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9109 (tui_default_tab_len): Rename tuiDefaultTabLen.
9110 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9111 (tui_win_with_focus): Rename tuiWinWithFocus.
9112 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9113 (tui_layout_def): Rename tuiLayoutDef.
9114 (tui_win_resized): Rename tuiWinResized.
9115 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9116 (tui_next_win): Rename tuiNextWin.
9117 (tui_prev_win): Rename tuiPrevWin.
9118 (tui_add_to_source_windows): Rename addToSourceWindows.
9119 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9120 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9121 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9122 * tui/tui.c, tui/tui-data.c: Ditto.
9123 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9124 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9126 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9127 (struct symtab): Declare.
9128 (tui_set_source_content): Rename tuiSetSourceContent.
9129 (tui_show_symtab_source): Rename tuiShowSource.
9130 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9131 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9132 * tui/tui-source.c: Update copyright. Update references.
9133 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9134 * tui/tui-stack.c: Update references.
9136 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9137 (struct tui_win_info): Declare.
9138 (tui_scroll_forward): Rename tuiScrollForward.
9139 (tui_scroll_backward): Rename tuiScrollBackward.
9140 (tui_scroll_left): Rename tuiScrollLeft.
9141 (tui_scroll_right): Rename tuiScrollRight.
9142 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9143 (tui_resize_all): Rename tuiResizeAll.
9144 (tui_refresh_all_win): Rename tuiRefreshAll.
9145 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9146 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9147 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9148 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9150 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9151 (tui_erase_data_content): Rename tuiEraseDataContent.
9152 (tui_display_all_data): Rename tuiDisplayAllData.
9153 (tui_check_data_values): Rename tuiCheckDataValues.
9154 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9155 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9156 (tui_first_data_element_no_in_line): Rename
9157 tuiFirstDataElementNoInLine.
9158 (tui_delete_data_content_windows): Rename
9159 tuiDeleteDataContentWindows.
9160 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9161 (tui_display_data_from): Rename tuiDisplayDataFrom.
9162 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9163 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9164 * tui/tui-win.c, tui/tui-regs.c: Update references.
9165 * tui/tui-layout.c, tui/tui.c: Update references.
9167 * tui/tui-wingeneral.h: Update copyright.
9168 (m_allBeVisible): Delete macro.
9169 (m_allBeInvisible): Delete macro.
9170 (struct tui_gen_win_info): Declare.
9171 (struct tui_win_info): Declare.
9172 (tui_unhighlight_win): Rename unhighlightWin.
9173 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9174 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9175 (tui_make_window): Rename makeWindow.
9176 (tui_copy_win): Rename copyWin.
9177 (tui_box_win): Rename boxWin.
9178 (tui_highlight_win): Rename highlightWin.
9179 (tui_check_and_display_highlight_if_needed): Rename
9180 checkAndDisplayHighlightIfNeeded.
9181 (tui_refresh_all): Rename refreshAll.
9182 (tui_delete_win): Rename tuiDelwin.
9183 (tui_refresh_win): Rename tuiRefreshWin.
9184 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9185 (tui_make_visible, tui_make_invisible): New functions.
9186 (tui_make_all_visible, tui_make_all_invisible): New functions.
9187 (make_all_visible): Rename makeAllVisible.
9188 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9189 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9190 * tui/tui-windata.c, tui/tui-win.c: Update references.
9191 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9192 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9194 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9196 * proc-api.c (write_with_trace): Initialize local variable to
9197 silence compiler warning.
9199 2004-02-06 Andrew Cagney <cagney@redhat.com>
9201 * tui/tui-source.h: Do not include "defs.h".
9202 (struct tui_win_info): Declare.
9203 (tui_set_source_content_nil): Declare.
9204 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9205 (union tui_line_or_address): Rename _TuiLineOrAddress.
9206 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9207 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9208 (tui_update_source_window_as_is): Rename
9209 tuiUpdateSourceWindowAsIs.
9210 (tui_update_source_windows_with_addr): Rename
9211 tuiUpdateSourceWindowsWithAddr.
9212 (tui_update_source_windows_with_line): Rename
9213 tuiUpdateSourceWindowsWithLine.
9214 (tui_clear_source_content): Rename tuiClearSourceContent.
9215 (tui_erase_source_content): Rename tuiEraseSourceContent.
9216 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9217 (tui_show_source_content): Rename tuiShowSourceContent.
9218 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9219 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9220 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9221 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9222 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9223 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9224 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9225 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9226 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9227 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9228 (struct tui_win_info): Declare.
9229 * tui/tui-stack.c: Update references.
9230 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9231 * tui/tui-win.c, tui/tui-source.c: Ditto.
9232 * tui/tui.c, tui/tui-disasm.c: Ditto.
9234 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9236 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9237 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9239 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9241 * infrun.c (handle_inferior_event): Allow for breakpoint
9242 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9243 and SIGEMT. Update comments.
9244 * NEWS (Revised SPARC target): Mention support for non-executable
9247 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9249 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9250 * inftarg.c: Update copyright year.
9251 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9252 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9253 (sparc_xfer_wcookie): New function.
9254 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9255 * Makefile.in (sparc-nat.o): Update dependencies.
9256 * config/sparc/nm-nbsd.h: Include "target.h".
9257 (NATIVE_XFER_WCOOKIE): New define.
9258 (sparc_xfer_wcookie): New prototype.
9260 2004-02-04 Andrew Cagney <cagney@redhat.com>
9262 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9263 SYSCALL_TRAP function.
9264 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9266 2004-02-04 Andrew Cagney <cagney@redhat.com>
9267 Daniel Jacobowitz <drow@mvista.com>
9269 * objfiles.h: Delete comments refering to inside_entry_func and
9270 DEPRECATED_FRAME_CHAIN_VALID.
9271 * defs.h (inside_entry_func): Update prototype..
9272 * blockframe.c (inside_entry_func): Rename to
9273 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9274 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9276 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9278 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9279 outside of #ifdef SOLIB_ADD region.
9280 (do_restore_lang_radix_cleanup): Ditto.
9281 (resolve_pending_breakpoint): Ditto.
9283 2004-02-03 Andrew Cagney <cagney@redhat.com>
9285 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9286 (process_note_abi_tag_sections): Delete unused function.
9287 (ia64_read_fp): Delete unused function.
9288 (gdbarch_extract_struct_value_address): Delete declaration.
9290 2004-02-02 Andrew Cagney <cagney@redhat.com>
9292 * vax-tdep.c (vax_frame_chain): Delete call to
9293 deprecated_inside_entry_file.
9294 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9296 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9298 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9299 column that's "empty" or "same value" when eliminating REG_RA
9302 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9304 * NEWS: Add information about new pending breakpoint support.
9306 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9308 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9309 and pending fields for pending breakpoint support.
9310 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9311 (condition_command): Only parse condition if not a pending
9313 (print_one_breakpoint): Add support for pending breakpoints.
9314 (describe_other_breakpoints): Add checks to verify we are not
9315 dealing with pending breakpoints.
9316 (check_duplicates): Don't check pending breakpoints.
9317 (set_raw_breakpoint): Initialize pending flag.
9318 (do_restore_lang_radix_cleanup): New cleanup routine.
9319 (resolve_pending_breakpoint): New function.
9320 (re_enable_breakpoints_in_shlibs): Try and resolve any
9321 pending breakpoints via resolve_pending_breakpoint.
9322 (mention): Add pending breakpoint support.
9323 (parse_breakpoint_sals): Add new parameter to pass to
9324 decode_line_1 to indicate silent errors when files or functions
9325 are not found. Change all callers.
9326 (do_captured_parse_breakpoint): New function.
9327 (break_command_1): Change prototype to return an rc value and to
9328 take an optional pending breakpoint pointer. Support creating
9329 a pending breakpoint if a "not found" form of error occurs when
9330 parsing the breakpoint. Also support resolving an existing pending
9331 breakpoint and be silent if the resolution fails.
9332 (create_breakpoints): Change prototype to take pending breakpoint
9333 pointer. When resolving a pending breakpoint, use the new pointer
9334 to provide a conditional or commands added by the end-user.
9335 (delete_breakpoint): Add appropriate check for pending.
9336 (breakpoint_re_set_one): Ditto.
9337 (do_enable_breakpoint): Ditto.
9339 2004-02-02 David Carlton <carlton@kealia.com>
9341 * valops.c (enum oload_classification): New.
9342 (find_overload_match): Break implementation into separate
9343 functions; delete #if 0'd code; look for symbols within
9345 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9346 (find_oload_champ,oload_method_static,classify_oload_match): New.
9347 * cp-support.h: Add declaration for cp_func_name; update
9348 declaration for make_symbol_overload_list.
9349 * cp-support.c (cp_func_name): New.
9350 (overload_list_add_symbol): Fix comment, use
9351 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9352 (make_symbol_overload_list): Take a function name and a namespace
9353 instead of a symbol; change implementation.
9354 (make_symbol_overload_list_using): New.
9355 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9357 2004-02-02 Fred Fish <fnf@redhat.com>
9359 * main.c (gdb_stdtarg): Move definition to group with other
9360 gdb_stdtarg definitions and update copyright years.
9361 * remote-sim.c (gdb_os_write_stderr): Write output to
9362 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9363 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9364 gdb_stderr stream and update copyright years.
9366 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9368 * Makefile.in (mips-linux-nat.o): Update dependencies.
9369 * mips-linux-nat.c: Include mips-tdep.h.
9371 2004-02-01 Roland McGrath <roland@redhat.com>
9373 * sol-thread.c (sol_thread_xfer_partial): New function.
9374 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9375 (init_sol_core_ops): Likewise.
9377 * procfs.c (procfs_xfer_partial): New function.
9378 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9379 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9381 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9382 procfs_xfer_auxv function.
9384 * procfs.c (procfs_make_note_section): If we can read
9385 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9386 * linux-proc.c (linux_make_note_section): Likewise.
9390 * Makefile.in (auxv_h): New variable.
9391 (COMMON_OBS): Add auxv.o here.
9392 (auxv.o): New target.
9394 * corelow.c (core_xfer_partial): New function.
9395 (init_core_ops): Use it for core_ops.to_xfer_partial.
9397 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9398 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9399 macro if that is defined.
9401 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9403 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9404 and check the specified thread for each breakpoint.
9405 * breakpoint.h (bpstat_stop_status): Update prototype.
9406 * infrun.c (handle_inferior_event): Update calls to
9409 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9411 * Makefile.in (cli-cmds.o): Add $(readline_h).
9413 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9415 * cli/cli-cmds.c: Include readline.h.
9416 (complete_command): Pass the start of the last word to
9419 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9421 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9422 argument, and change first argument to a CORE_ADDR.
9423 * breakpoint.h (bpstat_stop_status): Update prototype.
9424 * infrun.c (adjust_pc_after_break): Add a new comment.
9425 (handle_inferior_event): Update calls to bpstat_stop_status.
9427 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9429 * breakpoint.h: Update copyright years.
9431 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9433 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9434 (bpstat_stop_status): Don't decrement PC.
9435 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9437 * infrun.c (adjust_pc_after_break): New function.
9438 (handle_inferior_event): Call it, early. Remove later references
9439 to DECR_PC_AFTER_BREAK.
9440 (normal_stop): Add commentary.
9442 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9444 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9445 2004-01-27 double-free fix.
9447 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9449 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9450 (sparc32_frame_prev_register): Handle StackGhost.
9451 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9453 2004-01-29 Roland McGrath <roland@redhat.com>
9455 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9456 * configure: Regenerated.
9458 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9459 * Makefile.in (procfs.o): Add dep.
9461 2004-01-28 Andrew Cagney <cagney@redhat.com>
9463 * tui/tui-stack.h: Update copyright.
9464 (struct frame_info): Add opaque declaration.
9465 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9466 (tui_show_locator_content): Rename tuiShowLocatorContent.
9467 (tui_show_frame_info): Rename tuiShowFrameInfo.
9468 * tui/tui-stack.c: Update copyright. Update references.
9469 * tui/tui-winsource.c: Update references.
9470 * tui/tui-win.c: Update references.
9471 * tui/tui-layout.c: Update references.
9472 * tui/tui-hooks.c: Update copyright, update references.
9473 * tui/tui.c: Update copyright, update references.
9474 * tui/tui-disasm.c: Update references.
9476 2004-01-28 David Carlton <carlton@kealia.com>
9478 * dwarf2read.c (add_partial_structure): Use demangled name if
9479 namespace equals "".
9481 2004-01-27 Jim Blandy <jimb@redhat.com>
9483 Clean up misapplied patch:
9484 * dwarf2read.c (determine_prefix): Change one of the two forward
9485 declarations for 'determine_prefix_aux' to a declaration for this.
9486 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9487 argument to 'die_specification'.
9489 * dwarf2read.c (read_func_scope): Re-indent comment.
9491 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9493 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9494 b->exp to NULL after freeing so that error during re-parsing or
9495 evaluation of expressions associated with breakpoint don't
9496 eventually lead to re-freeing of storage.
9497 Committed by Andrew Cagney.
9499 2004-01-27 Andrew Cagney <cagney@redhat.com>
9501 * source.c (ambiguous_line_spec): Delete undefined declaration.
9502 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9503 (m32r_set_server_address, m32r_set_download_path): Ditto.
9504 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9506 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9508 * dwarf2read.c: Update calls to changed and renamed functions, and
9509 references to moved variables.
9511 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9512 language, language_defn, list_in_scope, and ftypes members.
9513 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9514 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9515 (baseaddr): Remove globals.
9517 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9518 (set_cu_language, die_is_declaration, die_specification)
9519 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9520 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9521 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9522 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9524 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9525 cu.list_in_scope. Don't initialize cu_header_offset.
9526 (add_partial_symbol): Add local baseaddr.
9527 (psymtab_to_symtab_1): Add local baseaddr. Use
9528 objfile->section_offsets for consistency. Don't initialize
9529 cu_header_offset; do initialize cu.header.offset and
9531 (read_file_scope, read_func_scope, read_lexical_block_scope)
9532 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9534 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9536 * PROBLEMS: Add gdb/1516.
9538 2003-12-29 Robert Millan <robertmh@gnu.org>
9540 Patch committed by Andrw Cagney.
9541 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9542 * configure.tgt: Match knetbsd*-gnu.
9544 2004-01-26 Andrew Cagney <cagney@redhat.com>
9546 * breakpoint.c (catch_command_1): Delete #ifdef code.
9547 (catch_fork_command_1): Delete #ifdef wrapper.
9548 (catch_exec_command_1): Ditto.
9549 (catch_load_command_1): Ditto.
9550 (catch_unload_command_1): Ditto.
9552 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9553 (catch_breakpoint): Delete #if0ed function.
9554 (disable_catch_breakpoint): Ditto.
9555 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9556 (disable_catch, enable_catch, delete_catch): Ditto.
9558 2004-01-26 Andrew Cagney <cagney@redhat.com>
9560 * remote.c (echo_check, quit_flag): Delete variables.
9561 (cisco_kernel_mode): Delete variable.
9562 (minitelnet_return, tty_input, escape_count): Delete variables.
9563 (remote_cisco_mode): Delete variable.
9564 (remote_cisco_open, remote_cisco_close): Delete function.
9565 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9566 (init_remote_cisco_ops): Delete function.
9567 (_initialize_remote): Do not install "remote cisco" code.
9568 (read_frame): Delete cisco specific code.
9569 (remote_info_process): Delete function.
9570 (remote_wait): Delete cisco specific code.
9571 (remote_cisco_section_offsets): Delete function.
9572 (remote_cisco_objfile_relocate): Delete function.
9573 (remote_async_wait): Delete cisco specific code.
9574 (minitelnet, readtty, readsocket): Delete function.
9576 2004-01-26 Andrew Cagney <cagney@redhat.com>
9578 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9579 comments mentioning extract_returned_value_address.
9580 * infcmd.c (print_return_value): Update. Add comments on
9581 extract_returned_value_address.
9582 * stack.c (return_command): Add comments on
9583 extract_returned_value_address.
9584 * values.c: Update comment.
9585 * m32r-tdep.c: Update comment.
9586 * sparc-tdep.c: Update comment.
9587 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9589 * sh64-tdep.c (sh64_gdbarch_init): Update.
9590 * sh-tdep.c (sh_gdbarch_init): Update.
9591 * s390-tdep.c (s390_gdbarch_init): Update.
9592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9593 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9594 * m68k-tdep.c (m68k_gdbarch_init): Update.
9595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9596 * m32r-tdep.c (m32r_gdbarch_init): Update.
9597 * ia64-tdep.c (ia64_gdbarch_init): Update.
9598 * h8300-tdep.c (h8300_gdbarch_init): Update.
9599 * frv-tdep.c (frv_gdbarch_init): Update.
9600 * arm-tdep.c (arm_gdbarch_init): Update.
9601 * alpha-tdep.c (alpha_gdbarch_init): Update.
9603 2004-01-26 Andrew Cagney <cagney@redhat.com>
9605 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9606 SYMBOL_LOCATION_FUNCS
9607 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9608 "struct symbol_ops".
9609 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9610 type to "struct symbol_ops".
9611 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9612 (struct symbol): Replace ".aux_value.loc.funcs" and
9613 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9614 (SYMBOL_OBJFILE): Delete macro.
9615 (SYMBOL_LOCATION_FUNCS): Delete macro.
9616 (SYMBOL_LOCATION_BATON): Update.
9617 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9618 intead of SYMBOL_LOCATION_FUNCS.
9619 * ax-gdb.c (gen_var_ref): Ditto.
9620 * printcmd.c (address_info): Ditto.
9621 * findvar.c (read_var_value): Ditto.
9622 (symbol_read_needs_frame): Ditto.
9624 2004-01-26 Andrew Cagney <cagney@redhat.com>
9626 * dwarf2read.c (read_func_scope): Document frame-base hack.
9628 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9630 * infcmd.c (print_return_value): Plug memory leak; delete
9631 ui_stream object. Rename argument `structure_return' to
9634 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9636 * infcmd.c (print_return_value): Wrap long lines.
9637 (finish_command_continuation, finish_command): Remove unused
9638 variable `funcaddr'. Fix some coding-standards problems.
9640 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9641 SECT_SIZE is large enough, not whether it's exactly the right size.
9642 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9643 TDEP->fpregset to zero.
9645 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9646 floating-point registers for traditional NetBSD core files.
9647 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9648 TDEP->sizeof_fpregset here.
9650 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9652 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9653 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9654 function with code split out from
9655 sparc32nbsd_sigcontext_frame_cache.
9656 (sparc32nbsd_sigcontext_frame_cache): Use
9657 sparc32nbsd_sigcontext_saved_regs.
9658 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9660 * sparcobsd-tdep.c: New file.
9661 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9662 (sparcobsd-tdep.o): New dependency.
9663 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9664 * config/sparc/obsd.mt: New file.
9666 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9667 TDEP->fpregset to be initialized to enable core file register
9670 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9672 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9673 Add opaque declarations.
9674 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9675 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9676 function with code split out from
9677 sparc64nbsd_sigcontext_frame_cache.
9678 (sparc64nbsd_sigcontext_frame_cache): Use
9679 sparc64nbsd_sigcontext_saved_regs.
9680 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9682 * sparc64obsd-tdep.c: New file.
9683 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9684 (sparc64obsd-tdep.o): New dependency.
9685 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9686 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9687 * config/sparc/obsd64.mt: New file.
9689 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9690 read the instruction at PC.
9692 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9693 value of GDB_OSABI_DEFAULT.
9694 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9695 instead of GDB_OSABI_NETBSD_AOUT.
9697 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9699 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9702 2004-01-23 Andrew Cagney <cagney@redhat.com>
9704 * printcmd.c (display_command): Replace tui_set_display call with
9705 tui_set_layout_for_display_command.
9706 * tui/tui.h (enum tui_win_type): Define.
9707 (tui_set_layout): Delete declaration.
9708 (tui_set_layout_for_display_command): Rename set_tui_layout.
9709 * tui/tui-data.h (enum tui_layout_type): Define.
9710 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9712 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9713 (tui_default_win_height): Rename tuiDefaultWinHeight.
9714 (tui_default_win_viewport_height): Rename
9715 tuiDefaultWinViewportHeight.
9716 (tui_set_layout): RenametuiSetLayout.
9717 * tui/tui-layout.c: Update references.
9718 * tui/tui.c: Update references.
9719 * tui/tui-disasm.c: Update references.
9721 2004-01-23 David Carlton <carlton@kealia.com>
9723 Partial workaround for PR c++/1511:
9724 * cp-namespace.c: Include frame.h.
9725 (cp_lookup_transparent_type): New
9726 (cp_lookup_transparent_type_loop): New.
9727 * cp-support.h: Declare cp_lookup_transparent_type.
9728 * symtab.c (basic_lookup_transparent_type): Renamed from
9729 lookup_transparent_type.
9730 (lookup_transparent_type): Replace old body by a call to
9731 current_language->la_lookup_transparent_type.
9732 * symtab.h: Update copyright. Declare
9733 basic_lookup_transparent_type.
9734 * language.h: Update copyright.
9735 (struct language_defn): Add la_lookup_transparent_type.
9736 * language.c: Update copyright.
9737 (unknown_language_defn): Add basic_lookup_transparent_type.
9738 (auto_language_defn): Add basic_lookup_transparent_type.
9739 (local_language_defn): Add basic_lookup_transparent_type.
9740 * ada-lang.c: Update copyright.
9741 (ada_language_defn): Add basic_lookup_transparent_type.
9742 * c-lang.c: Update copyright.
9743 (c_language_defn): Add basic_lookup_transparent_type.
9744 (cplus_language_defn): Add basic_lookup_transparent_type.
9745 (asm_language_defn): Add basic_lookup_transparent_type.
9746 (minimal_language_defn): Add basic_lookup_transparent_type.
9747 * f-lang.c: Update copyright.
9748 (f_language_defn): Add basic_lookup_transparent_type.
9749 * jv-lang.c: Update copyright.
9750 (java_language_defn): Add basic_lookup_transparent_type.
9751 * m2-lang.c: Update copyright.
9752 (m2_language_defn): Add basic_lookup_transparent_type.
9753 * objc-lang.c: Update copyright.
9754 (objc_language_defn): Add basic_lookup_transparent_type.
9755 * p-lang.c: Update copyright.
9756 (p_language_defn): Add basic_lookup_transparent_type.
9757 * scm-lang.c: Update copyright.
9758 (scm_language_defn): Add basic_lookup_transparent_type.
9759 * Makefile.in (cp-namespace.o): Depend on frame.h.
9761 2004-01-23 David Carlton <carlton@kealia.com>
9763 Patch for PR c++/1520:
9764 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9765 properly if we have a specification die.
9766 (determine_prefix_aux): Rename from determine_prefix.
9767 (determine_prefix): Like the old determine_prefix, but never
9770 2004-01-23 Theodore A. Roth <troth@openavr.org>
9772 * avr-tdep.c: Update copyright.
9773 (avr_iaddr_p): Delete unused function.
9774 (avr_saddr_p): Delete unused function.
9776 2004-01-23 David Carlton <carlton@kealia.com>
9778 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9779 Fix for PR symtab/1534.
9781 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9783 * NEWS (New native configurations): Mention OpenBSD/sparc and
9785 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9786 * configure.host: Likewise.
9787 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9788 handler for OpenBSD.
9789 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9791 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9793 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9794 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9796 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9797 * cli/cli-cmds.c (shell_escape): Likewise.
9799 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9800 OpenBSD .note.openbsd.ident sections.
9802 2004-01-22 David Carlton <carlton@kealia.com>
9804 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9805 get_scope_pc_bounds.
9806 (read_file_scope): Ditto.
9807 (get_scope_pc_bounds): New function, produced by extracting code
9808 from the above two functions, consolidating it, and adding support
9809 for DW_TAG_namespace.
9811 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9813 * osabi.c (MAX_NOTESZ): New define.
9814 (check_note): New function.
9815 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9818 2004-01-21 Roland McGrath <roland@redhat.com>
9820 * MAINTAINERS (write after approval): Add myself.
9822 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9824 * utils.c (init_page_info): Move declarations of `rows' and
9825 `cols' before the __GO32__-specific code. Move the closing brace
9826 outside the #ifdef __GO32__..#endif block.
9827 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9829 2004-01-21 Paul Brook <paul@codesourcery.com>
9831 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9832 BPSTAT_WHAT_CHECK_SHLIBS.
9834 2004-01-21 Paul Brook <paul@codesourcery.com>
9836 * MAINTAINERS: Add myself to write-after-approval.
9838 2004-01-20 Andrew Cagney <cagney@redhat.com>
9840 * ax-gdb.c (print_axs_value): Delete unused function.
9841 * jv-lang.c (java_lookup_type): Delete unused function.
9842 * cli/cli-dump.c (dump_filetype): Delete unused function.
9843 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9844 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9845 (mips_getstring): Delete unused function.
9846 (pmon_insert_breakpoint): Delete #if0ed function.
9847 (PMON_MAX_BP): Delete #if0ed MACRO.
9848 (mips_pmon_bp_info): Delete #if0ed variable.
9849 (pmon_remove_breakpoint): Delete #if0ed function.
9850 * monitor.c (monitor_write_even_block): Delete unused function.
9851 (monitor_write_memory_block): Delete #if0ed code.
9852 * dink32-rom.c (dink32_load): Delete unused function.
9853 (_initialize_dink32_rom): Delete #if0ed code.
9854 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9856 * tui/tui-command.c: Update references.
9857 * tui/tui-io.c: Update references.
9858 * tui/tui-command.h: Update copyright.
9859 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9861 * source.c (ambiguous_line_spec): Delete never-defined function.
9862 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9863 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9864 * cli/cli-cmds.c (validate_comname): Ditto.
9866 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9868 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9869 (tui_show_disassem): Rename tuiShowDisassem.
9870 (tui_show_disassem_and_update_source): Rename
9871 tuiVerticalDisassemScroll.
9872 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9873 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9874 * tui/tui.h: Update copyright.
9875 (enum tui_status): Define.
9876 * tui/tui-data.h (enum tui_scroll_direction): Define.
9877 * tui/tui-disasm.c: Update copyright. Update references.
9878 * tui/tui-winsource.c: Update copyright. Update references.
9879 * tui/tui-win.c: Update references.
9880 * tui/tui-layout.c: Update references.
9882 2004-01-20 Andrew Cagney <cagney@redhat.com>
9884 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9885 sym2 to start of block.
9887 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9889 * MAINTAINERS: Delete mmalloc.
9890 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9891 * NEWS: Mention removal of --with-malloc.
9892 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9893 * config.in: Regenerate.
9894 * configure: Regenerate.
9895 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9896 USE_MMALLOC, MMCHECK_FORCE.
9897 * gdbinit.in: Remove mmalloc.
9898 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9899 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9900 * config/i386/go32.mh: Likewise.
9901 * config/i386/interix.mh: Likewise.
9902 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9904 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9906 * linespec.c (decode_variable, symtab_from_filename): Call
9907 error_silent with error message instead of throwing an exception
9909 * defs.h (error_silent, error_output_message): Add prototypes.
9910 (catch_exceptions_with_msg): Ditto.
9911 * utils.c (error_silent, error_output_message): New functions.
9912 * top.c (catch_exceptions_with_msg): New function.
9914 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9916 * mi/mi-cmds.h (enum print_values): Add definition.
9918 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9919 type and value for simple data types and just the name and type
9920 for complex ones, if required.
9922 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9923 children, if required.
9925 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9927 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9928 unused declarations.
9930 2004-01-19 Andrew Cagney <cagney@redhat.com>
9932 * top.h (mapped_symbol_files): Delete declaration.
9933 * main.c (captured_main): Delete option "m" and "mapped".
9934 * objfiles.c (mapped_symbol_files): Delete variable.
9935 * symfile.c (symbol_file_command): Delete mmap code.
9936 (symbol_file_add_with_addrs_or_offsets): Ditto.
9937 (add_symbol_file_command, reread_separate_symbols): Ditto.
9938 * objfiles.h (OBJF_MAPPED): Delete.
9939 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9940 (free_objfile) [USE_MMALLOC]: Ditto.
9941 (open_existing_mapped_file): Delete function.
9942 (open_mapped_file): Delete function.
9943 (map_to_file): Delete function.
9945 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9947 * infrun.c (step_into_function): Account for possible breakpoint
9948 adjustment when computing ``stop_func_start''.
9950 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9952 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9953 the region size against the size of a pointer, not the size of
9954 a register as given by DEPRECATED_REGISTER_SIZE.
9956 2004-01-19 Andrew Cagney <cagney@redhat.com>
9958 * tui/tui-regs.h: Include "tui-data.h".
9959 (tuiFirstRegElementNoInLine): Delete declaration.
9960 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9961 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9962 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9963 (tui_calculate_regs_column_count): Rename
9964 tuiCalculateRegsColumnCount.
9965 (tui_check_register_values): Rename tuiCheckRegisterValues.
9966 (tui_show_registers): Rename tuiShowRegisters.
9967 (tui_display_registers_from_line): Rename
9968 tuiDisplayRegistersFromLine.
9969 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9970 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9971 (tui_first_reg_element_no_inline): Rename
9972 tuiFirstRegElementNoInLine.
9973 * tui/tui-data.h: Update copyright.
9974 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9975 * tui/tui-windata.c: Update copyright, update references.
9976 * tui/tui-regs.c: Update copyright, update references.
9977 * tui/tui-win.c: Update copyright, update references.
9978 * tui/tui-layout.c: Update copyright, update references.
9980 2004-01-18 Andrew Cagney <cagney@redhat.com>
9982 * tui/tui-io.c: Update copyright.
9983 (key_is_end_sequence, key_is_backspace): New functions.
9984 (key_is_command_char, key_is_start_sequence): New function.
9985 (tui_getc): Update references.
9986 * tui/tui-io.h: Update copyright.
9987 (m_tuiStartNewLine): Delete macro.
9988 (m_isBackspace, m_isDeleteChar): Delete macros.
9989 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9990 (m_isNextPage, m_isPrevPage): Delete macros.
9991 (m_isLeftArrow, m_isRightArrow): Delete macros.
9992 (m_isXdbStyleCommandChar): Delete macro.
9993 (key_is_start_sequence): Declare, replace m_isStartSequence.
9994 (key_is_end_sequence): Declare, replace m_isEndSequence.
9995 (key_is_backspace): Declare ,replace m_isBackspace.
9996 (key_is_command_char): Declare, replace m_isCommandChar.
9997 * tui/tui-command.c: Update copyright.
9998 (tuiDispatchCtrlChar): Update references.
10000 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10003 * tui/tui-command.c: Rename tui/tuiCommand.c.
10004 * tui/tui-command.h: Rename tui/tuiCommand.h.
10005 * tui/tui-data.c: Rename tui/tuiData.c.
10006 * tui/tui-data.h: Rename tui/tuiData.h.
10007 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10008 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10009 * tui/tui-io.c: Rename tui/tuiIO.c.
10010 * tui/tui-io.h: Rename tui/tuiIO.h.
10011 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10012 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10013 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10014 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10015 * tui/tui-source.c: Rename tui/tuiSource.c.
10016 * tui/tui-source.h: Rename tui/tuiSource.h.
10017 * tui/tui-stack.c: Rename tui/tuiStack.c.
10018 * tui/tui-stack.h: Rename tui/tuiStack.h.
10019 * tui/tui-win.c: Rename tui/tuiWin.c.
10020 * tui/tui-win.h: Rename tui/tuiWin.h.
10021 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10022 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10023 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10024 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10025 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10026 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10027 * tui/tui-file.c: Update includes.
10028 * tui/tui-hooks.c: Update includes.
10029 * tui/tui-interp.c: Update includes.
10030 * tui/tui.c: Update includes.
10031 * Makefile.in: Update all tui/ dependencies.
10032 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10034 * Makefile.in: Update copyright. Update dependencies.
10036 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10039 2004-01-18 Andrew Cagney <cagney@redhat.com>
10041 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10042 instead of register_gdbarch_init.
10044 * remote-sds.c (tohex): Delete unused function. Update copyright.
10045 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10046 * v850-tdep.c (v850_register_virtual_size): Ditto.
10047 * target.c (normal_target_post_startup_inferior): Ditto.
10048 * source.c (ambiguous_line_spec): Ditto.
10049 * remote.c (adapt_remote_get_threadinfo): Ditto.
10050 * mi/mi-out.c (out_field_fmt): Ditto.
10051 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10052 (output_control_change_notification): Ditto.
10053 * m68k-tdep.c (m68k_register_byte): Ditto.
10054 (m68k_remote_breakpoint_from_pc): Ditto.
10055 * ui-out.c (init_ui_out_state): Delete unused declaration.
10056 * stabsread.c (search_value): Ditto.
10057 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10058 * maint.c (print_section_table): Ditto.
10059 * infrun.c (set_follow_fork_mode_command): Ditto.
10061 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10063 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10064 DW_CFA_def_cfa_exporession. Add support for
10065 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10066 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10068 2004-01-18 Andrew Cagney <cagney@redhat.com>
10070 * ocd.c: Update copyright.
10071 (bdm_read_register_command): Delete unused function.
10072 (_initialize_remote_ocd): Delete commented out reference.
10073 (get_quoted_char, reset_packet): Delete #if0ed function.
10074 (output_packet, put_quoted_char): Delete #if0ed function.
10075 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10076 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10077 (BDM_BREAKPOINT): Delete #if0ed macro.
10078 (remote_timeout): Delete #if0ed variable.
10080 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10082 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10083 (core-sol2.o): Remove dependency.
10084 * core-sol2.c: Remove file.
10086 2004-01-17 Andrew Cagney <cagney@redhat.com>
10088 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10089 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10092 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10094 * remote.c: Update copyright years.
10096 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10098 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10100 2004-01-17 Andrew Cagney <cagney@redhat.com>
10102 * mdebugread.c: Update copyright.
10103 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10104 (parse_type, parse_procedure): Ditto.
10105 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10107 * cris-tdep.c (cris_store_struct_return): Put back accidently
10110 * gdbarch.sh: Update copyright year.
10111 * gdbarch.h, gdbarch.c: Re-generate.
10113 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10115 Suggested by George Anzinger.
10116 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10117 correct stack offset. Include unknown opcode numbers in the error
10120 2004-01-17 Andrew Cagney <cagney@redhat.com>
10122 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10123 extract_struct_value_address, i386 does not set it.
10124 * sparc64-tdep.c (sparc64_init_abi): Do not set
10125 extract_struct_value_address, never called.
10126 (sparc64_extract_struct_value_address): Delete function.
10127 * m68hc11-tdep.c: Update copyright.
10128 (m68hc11_gdbarch_init): Delete redundant assignment of
10129 extract_struct_value_address.
10130 * i386-tdep.c: Update copyright.
10131 (i386_gdbarch_init): Do not set extract_struct_value_address,
10133 (i386_extract_struct_value_address): Delete function.
10134 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10135 extract_struct_value_address, never called.
10136 (sparc32_extract_struct_value_address): #if 0 function. Add
10137 comments explaining its future.
10139 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10141 * arm-tdep.c (arm_write_pc): New function.
10142 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10144 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10146 * breakpoint.c (must_shift_inst_regs): Delete.
10147 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10148 and SHIFT_INST_REGS.
10149 * infcmd.c (step_1, step_1_continuation): Delete references to
10151 * infrun.c (keep_going): Likewise.
10152 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10153 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10155 2004-01-17 Andrew Cagney <cagney@redhat.com>
10157 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10158 * gdbarch.h, gdbarch.c: Re-generate.
10159 * infcmd.c (print_return_value): Delete reference to
10160 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10162 * cris-tdep.c (cris_gdbarch_init): Do not set
10163 deprecated_extract_struct_value_address.
10165 * xstormy16-tdep.c: Update copyright.
10166 (xstormy16_extract_struct_value_address): Update to current
10167 extract struct value address interface.
10168 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10169 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10170 current extract struct value address interface.
10171 (sh64_gdbarch_init): Set extract_struct_value_address.
10173 * cris-tdep.c: Update copyright.
10174 (cris_extract_struct_value_address): Delete function.
10175 (struct_return_address): Delete variable.
10176 (cris_store_struct_return): Do not set struct_return_address.
10178 * mcore-tdep.c: Update copyright.
10179 (mcore_extract_struct_value_address): Delete function. Update
10181 (mcore_gdbarch_init): Update.
10182 * mn10300-tdep.c: Update copyright.
10183 (mn10300_extract_struct_value_address): Delete function.
10184 (mn10300_gdbarch_init): Update.
10185 * v850-tdep.c: Update copyright.
10186 (v850_extract_struct_value_address): Delete.
10187 (v850_gdbarch_init): Update.
10188 * ns32k-tdep.c: Update copyright.
10189 (ns32k_extract_struct_value_address): Delete.
10190 (ns32k_gdbarch_init): Update.
10191 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10192 (hppa_gdbarch_init): Update.
10193 * vax-tdep.c: Update copyright.
10194 (vax_extract_struct_value_address): Delete.
10195 (vax_gdbarch_init): Update.
10197 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10198 * gdbarch.h, gdbarch.c: Re-generate.
10199 * procfs.c (procfs_fetch_registers): Delete reference to
10200 DEPRECATED_NPC_REGNUM.
10201 (procfs_store_registers): Ditto.
10202 * regcache.c (generic_target_write_pc): Simplify.
10203 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10205 * core-sol2.c (fetch_core_registers): Replace
10206 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10208 * hppa-tdep.c: Update copyright year.
10209 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10211 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10213 * mips-tdep.c (mips_write_pc): New function.
10214 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10215 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10216 (mips_find_saved_regs, mips_software_single_step: Ditto.
10217 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10218 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10220 2004-01-17 Andrew Cagney <cagney@redhat.com>
10222 * mips-tdep.c: Re-indent. Group functions by ABI.
10224 2004-01-17 Andrew Cagney <cagney@redhat.com>
10226 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10227 * gdbarch.c: Re-generate.
10228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10229 DECR_PC_AFTER_BREAK to zero.
10230 * vax-tdep.c (vax_gdbarch_init): Ditto.
10231 * v850-tdep.c (v850_gdbarch_init): Ditto.
10232 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10233 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10234 * sh-tdep.c (sh_gdbarch_init): Ditto.
10235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10236 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10238 * mips-tdep.c (mips_gdbarch_init): Ditto.
10239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10241 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10243 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10244 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10246 * frv-tdep.c (frv_gdbarch_init): Ditto.
10247 * cris-tdep.c (cris_gdbarch_init): Ditto.
10248 * avr-tdep.c (avr_gdbarch_init): Ditto.
10249 * arm-tdep.c (arm_gdbarch_init): Ditto.
10250 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10252 2004-01-17 J. Brobecker <brobecker@gnat.com>
10254 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10255 Delete, no longer used.
10256 (read_subrange_type): New function, mostly extracted from
10258 (read_array_type): Replace extracted code by call to
10259 read_subrange_type().
10260 (dwarf2_get_attr_constant_value): New function.
10261 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10262 (add_partial_symbol): Likewise.
10263 (process_die): Likewise.
10264 (new_symbol): Likewise.
10265 (read_type_die): Likewise.
10267 2004-01-16 Andrew Cagney <cagney@redhat.com>
10269 * symfile.c: Update copyright year.
10270 (compare_symbols): Delete unused function.
10271 * stabsread.c: Update copyright year.
10272 (lrs_general_complaint): Delete unused function.
10273 (ref_search_value): Ditto.
10274 (get_substring): Delete declaration.
10275 * sh64-tdep.c: Update copyright year.
10276 (sh64_get_gdb_regnum): Delete unused function.
10277 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10278 Delete unused function.
10280 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10282 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10283 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10285 2004-01-16 Andrew Cagney <cagney@redhat.com>
10287 Changes from Peter Schauer.
10288 * rs6000-tdep.c: Update copyright year.
10289 (rs6000_push_dummy_call): Update the stack pointer before
10290 accessing the corresponding stack region.
10291 * rs6000-nat.c: Update copyright year.
10292 (set_host_arch): Set "info.abfd" to "exec_bfd".
10294 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10296 * blockframe.c: Update copyright year.
10297 (inside_entry_func): Don't treat a zero PC specially.
10299 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10301 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10303 (gcore_create_callback): Ditto. Skip any memory segment that has
10304 no permissions set.
10306 2004-01-14 David Carlton <carlton@kealia.com>
10308 Change symbols for C++ nested types to contain the fully qualified
10309 name, if possible. (At least in the DWARF-2 case.) Partial fix
10310 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10312 * c-exp.y (qualified_type): Handle types nested within classes.
10313 * cp-namespace.c: Update comments.
10314 (cp_set_block_scope): Delete #if 0.
10315 (cp_lookup_nested_type): Handle types nested within classes.
10316 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10318 (add_partial_symbol): Add the name of the enclosing namespace to
10320 (pdi_needs_namespace): New.
10321 (add_partial_namespace): Tweak comment.
10322 (add_partial_structure): New.
10323 (psymtab_to_symtab_1): Initialize processing_current_prefix
10325 (process_die): instead of here.
10326 (read_structure_scope): Try to figure out the name of the class or
10327 namespace that the structure might be defined within.
10328 (read_enumeration): Generate fully-qualified names, if possible.
10329 (read_namespace): Don't set name to NULL.
10330 (die_specification): New.
10331 (new_symbol): Generate fully-qualified names for types.
10332 (read_type_die): Determine appropriate prefix.
10333 (determine_prefix): New.
10334 (typename_concat): New.
10336 * valops.c (value_aggregate_elt): Pass NOSIDE to
10337 value_struct_elt_for_reference.
10338 (value_struct_elt_for_reference): Make static, add NOSIDE
10339 parameter, call value_maybe_namespace_elt as a last resort.
10340 (value_namespace_elt): Break out code into
10341 value_maybe_namespace_elt.
10342 (value_maybe_namespace_elt): New.
10344 2004-01-12 Andrew Cagney <cagney@redhat.com>
10346 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10347 cooked floating-point registers.
10348 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10349 and value_to_register.
10351 2004-01-13 Andrew Cagney <cagney@redhat.com>
10353 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10354 * gdbarch.c: Re-generate.
10355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10356 FUNCTION_START_OFFSET.
10357 * v850-tdep.c (v850_gdbarch_init): Ditto.
10358 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10359 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10360 * sh-tdep.c (sh_gdbarch_init): Ditto.
10361 * s390-tdep.c (s390_gdbarch_init): Ditto.
10362 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10363 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10364 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10365 * mips-tdep.c (mips_gdbarch_init): Ditto.
10366 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10367 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10369 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10370 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10371 * i386-tdep.c (i386_gdbarch_init): Ditto.
10372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10374 * frv-tdep.c (frv_gdbarch_init): Ditto.
10375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10376 * cris-tdep.c (cris_gdbarch_init): Ditto.
10377 * avr-tdep.c (avr_gdbarch_init): Ditto.
10378 * arm-tdep.c (arm_gdbarch_init): Ditto.
10379 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10381 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10383 * infrun.c (follow_fork_mode_ask): Remove.
10384 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10385 (follow_fork): Simplify and remove internal error for
10386 follow_fork_mode_ask.
10387 (_initialize_infrun): Update "set follow-fork-mode" help text.
10389 2004-01-13 Andrew Cagney <cagney@redhat.com>
10391 * configure.in: Update copyright year.
10392 (build_warnings): Add -Wunused-label.
10393 * configure: Re-generate.
10395 2004-01-12 Andrew Cagney <cagney@redhat.com>
10397 * exec.h (exec_ops): Make "extern".
10399 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10400 the function is void.
10401 (mips_pseudo_register_write): Ditto.
10403 2004-01-12 Andrew Cagney <cagney@redhat.com>
10405 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10406 call. Never defined.
10407 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10408 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10409 (struct sparc_gregset, struct regcache): Ditto.
10410 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10412 2004-01-12 Andrew Cagney <cagney@redhat.com>
10414 * mi/ChangeLog: Delete file. Renamed to ...
10415 * mi/ChangeLog-1999-2003: New file.
10416 * tui/ChangeLog: Delete file. Renamed to ...
10417 * tui/ChangeLog-1998-2003: New file.
10419 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10421 * sparc64nbsd-tdep.c: Include "regset.h".
10422 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10424 (fetch_core_registers): Remove function.
10425 (sparc64nbsd_core_fns): Remove variable.
10426 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10428 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10429 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10430 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10432 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10433 sparc_extract_struct_value_address.
10434 (sparc32_gdbarch_init): Set extract_struct_value_address.
10435 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10437 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10438 return_value_on_stack.
10440 * NEWS: Mention that %cs and %ss have been added to the AMD64
10443 * frame.c: Update copyright year.
10444 (get_prev_frame): Improve comment.
10446 * sparc64fbsd-tdep.c: Include "regset.h".
10447 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10449 (fetch_core_registers): Remove function.
10450 (sparc64fbsd_core_fns): Remove variable.
10451 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10453 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10454 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10455 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10457 * sparcnbsd-tdep.c: Include "regset.h".
10458 (fetch_core_registers): Remove function.
10459 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10460 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10462 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10464 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10466 * sparc-tdep.h (struct regset): Provide opaque declaration.
10467 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10468 fpregset and sizeof_fpregset members.
10469 * sparc-tdep.c (struct regset): Provide opaque declaration.
10470 (sparc_regset_from_core_section): New function.
10471 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10472 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10473 Set regset_from_core_section when appropriate.
10475 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10477 * x86-64-tdep.c (amd64_non_pod_p): New function.
10478 (amd64_classify_aggregate): Return class memory for non-POD
10479 C++ structure types.
10481 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10482 argument. Use it to reserve a register if necessary.
10483 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10484 amd64_push_arguments.
10486 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10488 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10489 register numbers in comments.
10490 * x86-64-tdep.h: Update copyright year.
10491 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10492 Adjust for addition of %cs and %ss.
10493 * amd64fbsd-nat.c: Update copyright year.
10494 (reg_offset): Add register offsets for %cs and %ss.
10495 * amd64fbsd-tdep.c: Update copyright year.
10496 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10497 (amd64fbsd_sc_reg_offset): Likewise.
10498 * x86-64-linux-nat.c: Update copyright year.
10499 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10501 * amd64nbsd-nat.c: Update copyright year.
10502 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10503 * amd64nbsd-tdep.c: Update copyright year.
10504 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10505 * x86-64-linux-tdep.c: Update copyright year.
10506 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10507 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10508 * regformats/reg-x86-64.dat: Add %cs and %ss.
10510 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10511 variables to prevent long lines. Update comments to reflect
10514 2004-01-09 David Carlton <carlton@kealia.com>
10516 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10517 * dwarf2read.c (read_namespace): Pull out name-generating code
10518 into namespace_name. Rename previous_namespace to previous_prefix
10519 and processing_current_namespace to processing_current_prefix..
10520 (namespace_name): New function.
10521 (add_partial_symbol): Substitute uses of pdi->name with
10523 * cp-support.h: Rename processing_current_namespace to
10524 processing_current_prefix.
10525 Update copyright year.
10526 * cp-namespace.c: Rename processing_current_namespace to
10527 processing_current_prefix.
10528 Update copyright year.
10530 2004-01-09 Andrew Cagney <cagney@redhat.com>
10532 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10534 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10536 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10538 (process_one_symbol): Deal with N_PATCH stabs.
10540 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10542 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10544 Update copyright year.
10546 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10548 * config/pa/tm-hppa.h: Update extern declarations for
10549 hppa32_hpux_frame_saved_pc_in_sigtramp,
10550 hppa32_hpux_frame_base_before_sigtramp, and
10551 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10553 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10555 * config/pa/tm-hppah.h: Update copyright years.
10557 2004-01-08 Andrew Cagney <cagney@redhat.com>
10559 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10560 (mips_o32_reg_struct_has_addr): Delete function.
10561 (mips_gdbarch_init): Update.
10562 (mips_extract_struct_value_address): Delete function.
10564 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10566 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10569 2004-01-07 Andrew Cagney <cagney@redhat.com>
10571 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10572 architecture's elf flags (when available).
10574 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10575 FPU to the start, check the MIPS FPU when looking for an old
10577 (set_mipsfpu_single_command): Update the architecture.
10578 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10580 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10581 (mips_mask_address_p): Add "tdep" parameter.
10582 (show_mask_address, mips_addr_bits_remove): Update.
10583 (mips_dump_tdep): Update.
10584 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10585 (MIPS_STACK_ARGSIZE): Delete macro.
10586 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10587 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10588 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10589 (mips_dump_tdep): Update.
10590 (MIPS_SAVED_REGSIZE): Delete macro.
10591 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10592 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10593 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10594 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10595 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10596 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10597 (mips_pop_frame, return_value_location): Update.
10598 (mips_n32n64_return_value, mips_dump_tdep): Update.
10600 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10603 * mips-tdep.c: Update copyright.
10604 (mips_gdbarch_init): Merge two code blocks handling the register
10605 name and number layout.
10607 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10609 * tracepoint.c (validate_actionline): Fix segv at EOF
10611 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10613 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10614 properly for static fields.
10616 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10617 Jason Molenda <jmolenda@apple.com>
10619 * disasm.c: Update copyright to include 2004.
10620 (do_mixed_source_and_assembly): For uiout asm list
10621 and tuple cleanups, initialize to null_cleanup instead of
10622 NULL and do so prior to loop. Only reset when we close off
10623 the tuple/list. Move check for whether to close off the
10624 asm tuple/list to after dump_insns call where it will be run
10625 on each loop iteration.
10627 2004-01-05 Andrew Cagney <cagney@redhat.com>
10629 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10630 should be a switch case and not a label.
10631 * mips-tdep.c (mips32_next_pc): Delete unused labels
10632 "greater_equal_branch" and "less_zero_branch".
10633 * jv-valprint.c (java_print_value_fields): Delete unused label
10636 * target.c (unpush_target): Only close a target that is in the
10639 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10641 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10642 address from [sp + 64] instead of %o2.
10644 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10645 fixes PR backtrace/1476.
10647 2004-01-05 Andrew Cagney <cagney@redhat.com>
10649 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10650 move to start of file.
10651 * i386-tdep.h (struct regcache): Add opaque declaration.
10652 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10654 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10655 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10656 * win32-nat.c (fake_create_process): Use ISO C style definition.
10657 * stabsread.c (define_symbol): Delete #ifndef
10658 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10659 stabs_argument_has_addr call, macro never defined.
10661 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10663 * op50-rom.c: Delete.
10664 * w89k-rom.c: Delete.
10665 * Makefile.in: Remove references.
10667 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10669 * x86-64-tdep.c: Update copyright year.
10670 (struct amd64_register_info): Rename from x86_64_register_info.
10671 (amd64_register_info): Rename from x86_64_register_info.
10672 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10673 (amd64_register_name): Rename from x86_64_register_name.
10674 (amd64_register_type): Rename from x86_64_register_type.
10675 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10676 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10677 (amd64_dwarf_reg_to_regnum): Rename from
10678 x86_64_dwarf_reg_to_regnum.
10679 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10680 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10681 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10682 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10683 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10684 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10685 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10686 (amd64_frame_cache): Rename from x86_64_frame_cache.
10687 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10688 (amd64_frame_prev_register): Rename from
10689 x86_64_frame_prev_register.
10690 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10691 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10692 (amd64_sigtramp_frame_cache): Rename from
10693 x86_64_sigtramp_frame_cache.
10694 (amd64_sigtramp_frame_prev_register): Rename from
10695 x86_64_sigtramp_frame_prev_register.
10696 (amd64_sigtramp_frame_unwind): Rename from
10697 x86_64_sigtramp_frame_unwind.
10698 (amd64_sigtramp_frame_sniffer): Rename from
10699 x86_64_sigtramp_frame_sniffer.
10700 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10701 (amd64_frame_base): Rename from x86_64_frame_base.
10702 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10703 (amd64_frame_align): Rename from x86_64_frame_align.
10704 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10705 (amd64_regset_from_core_section): Rename from
10706 x86_64_regset_from_core_section.
10707 (x86_64_init_abi): Update comments.
10709 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10711 * MAINTAINERS (write after approval): Add myself.
10713 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10715 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10718 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10720 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10721 such that it mentions a specific version of GCC that exhibits this
10724 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10726 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10727 structure that has a single `float' member, store it in %f1 in
10730 * sparc-sol2-nat.c: Add missing '\'.
10732 * sparc-tdep.c (sparc32_return_value): New function.
10733 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10735 (sparc32_gdbarch_init): Set return_value, don't set
10736 extract_return_value, store_return_value, use_struct_convention
10737 and return_value_on_stack.
10739 * sparc-sol2-nat.c: Add missing ')'.
10741 2004-01-03 J. Brobecker <brobecker@gnat.com>
10743 * infrun.c (handle_step_into_function): New function.
10744 (handle_inferior_event): Extract out some code into the new
10747 2004-01-03 J. Brobecker <brobecker@gnat.com>
10749 * infrun.c (handle_inferior_event): Move the declaration of
10750 real_stop_pc inside the if blocks where it is used.
10752 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10754 * sparc64-tdep.c (sparc64_16_byte_align_p)
10755 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10756 Use check_typedef to get subtypes of structures and unions.
10757 (sparc64_store_return_value): Fix calculation of the appropriate
10758 offset into VALBUF when storing a structure or union.
10759 (sparc64_return_value): New function.
10760 (sparc64_use_struct_convention): Remove function.
10761 (sparc64_init_abi): Set return_value, don't set
10762 extract_return_value, store_return_value and
10763 use_struct_convention.
10765 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10767 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10768 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10769 gdb/config/alpha/xm-alphaosf.h,
10770 gdb/config/powerpc/tm-ppcle-eabi.h,
10771 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10772 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10773 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10774 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10775 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10776 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10777 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10778 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10779 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10780 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10781 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10782 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10783 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10784 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10785 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10786 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10787 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10788 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10789 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10790 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10791 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10792 Remove lines for .cvsignore files.
10794 2004-01-03 J. Brobecker <brobecker@gnat.com>
10796 * infrun.c: Back out the previous change.
10798 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10800 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10801 sparc-*-sunos4* to the list of REMOVED configurations.
10803 * configure.tgt: Add back sparc-*-vxworks*.
10804 * remote-vxsparc.c: Remove all includes except for "defs.h",
10805 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10806 Include "sparc-tdep.h".
10807 (SPARC_R_G1): New define.
10808 (vxsparc_gregset): New variable.
10809 (ext_format_sparc): Remove extern declaration.
10810 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10811 sparc32_supply_fpregset.
10812 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10813 sparc_collect_rwindow and sparc32_collect_fpregset.
10814 * config/sparc/tm-vxworks.h: New file, based on recently removed
10816 * config/sparc/vxworks.mt: New file, based on recently removed
10819 2004-01-03 J. Brobecker <brobecker@gnat.com>
10821 * infrun.c (handle_step_into_function): New function.
10822 (handle_inferior_event): Extract out some code into the new
10825 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10827 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10828 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10829 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10830 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10831 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10832 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10833 (sparc_nat_h): New variable.
10834 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10835 (tm-sun4os4.h): Remove dependency.
10836 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10837 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10838 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10839 sparc-tdep.o): Update dependencies.
10840 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10841 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10842 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10844 * configure.host: Remove existing sparc-*-lynxos*,
10845 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10846 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10847 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10848 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10850 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10851 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10852 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10853 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10854 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10855 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10856 sparc64-*-solaris2* and sparc64-*-* triplets.
10857 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10858 "symtab.h" and "objfiles.h".
10859 (BIAS): Remove define.
10860 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10861 (X_DISP19): Remove macros.
10862 (sparc_fetch_instruction): Remove function.
10863 (struct gdbarch_tdep): Remove definition.
10864 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10865 (sparc_breakpoint_from_pc): Remove function.
10866 (struct sparc64_frame_cache): Remove definition.
10867 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10868 sparc64_unwind_pc): Remove functions.
10869 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10870 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10871 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10872 (sparc64_frame_cache): Change return type to `struct
10873 sparc_frame_cache *'. Simply call sparc_frame_cache.
10874 (sparc64_frame_this_id, sparc64_frame_prev_register,
10875 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10876 instead of `struct sparc64_frame_cache.
10877 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10878 sparc_analyze_control_transfer, sparc_software_single_step,
10879 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10880 _initialize_sparc64_tdep): Remove functions.
10881 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10882 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10884 (sparc64_supply_gregset, sparc64_collect_gregset,
10885 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10886 (sparc64_init_abi): New function.
10887 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10888 inclusion guard. Include "sparc-tdep.h".
10890 (r_tstate_offset, r_fprs_offset): New defines.
10891 (enum sparc_regnum): Remove defenition.
10892 (enum sparc64_regnum): Reformat.
10893 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10894 (sparc64_init_abi, sparc64_supply_gregset,
10895 sparc64_collect_gregset, sparc64_supply_fpregset,
10896 sparc64_collect_fpregset): New prototypes.
10897 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10898 Add extern declarations.
10899 (sparc64_sol2_init_abi): New prototype.
10900 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10901 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10903 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10905 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10907 (_initialize_sparc64fbsd_nat): Remove initialization of
10908 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10909 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10910 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10911 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10912 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10913 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10914 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10915 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10916 (sparc64fbsd_r_y_offset): Remove variables.
10917 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10918 Make static and const.
10919 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10920 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10922 (sparc64fbsd_gregset): New variable.
10923 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10924 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10925 and sparc64_supply_fpregset.
10926 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10927 (sparc64fbsd_sigtramp_frame_this_id)
10928 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10929 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10930 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10931 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10932 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10933 * sparcnbsd-tdep.c: Update copyright year. Include
10934 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10935 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10936 "value.h" and "sparcnbsd-tdep.h".
10937 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10938 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10939 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10940 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10942 (sparcnbsd_gregset): New variable.
10943 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10944 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10945 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10946 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10947 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10949 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10950 (sparc32nbsd_sigcontext_frame_this_id)
10951 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10952 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10953 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10954 (sparcnbsd_get_longjmp_target_32,
10955 sparcnbsd_get_longjmp_target_64): Remove functions.
10956 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10957 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10958 sparcnbsd_init_elf): Remove.
10959 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10960 (sparcnbsd_elf_init_abi): New functions.
10961 (_initialize_sparcnbsd_tdep): New prototype.
10962 (_initialize_sparnbsd_tdep): Update.
10963 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10964 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10965 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10966 * config/sparc/linux.mh: Update comment.
10967 (XM_FILE, HOST_IPC): Remove variables.
10968 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10970 * config/sparc/linux.mt: Update comment.
10971 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10972 * config/sparc/nbsd.mt: Reformat.
10973 * config/sparc/nbsd64.mh: Update comment.
10974 (NATDEPFILES): Add sparc-nat.o.
10975 * config/sparc/nbsd64.mt: Update comment.
10976 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10977 (TM_FILE): Set to tm-nbsd.h.
10978 * config/sparc/nbsdelf.mh: Update comment.
10979 (NATDEPFILES): Add sparc-nat.o.
10981 * config/sparc/nbsdaout.mh: Update comment.
10982 (NATDEPFILES): Add sparc-nat.o
10984 * config/sparc/nm-linux.h: Update copyright year. Don't include
10985 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10987 (KERNEL_U_SIZE): Remove define.
10988 (kernel_u_size): Remove prototype.
10989 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10990 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10992 (CHILD_PREPARE_TO_STORE): Remove define.
10993 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10994 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10995 sparcnbsd-nat.c: Rewrite files.
10996 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10997 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10998 sparcnbsd-tdep.h: Remove files.
10999 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11000 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11001 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11002 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11003 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11004 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11005 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11006 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11007 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11008 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11009 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11010 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11011 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11012 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11013 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11014 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11015 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11016 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11017 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11019 2004-01-02 Andrew Cagney <cagney@redhat.com>
11021 From 2003-12-18 Kazuhiro Inaoka:
11022 * configure.host: Add m32r-linux target.
11024 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11026 * top.c (print_gdb_version): Update year to 2004.
11028 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11030 * MAINTAINERS: Add myself to the write-after-approval category.
11032 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11034 From Bernardo Innocenti <bernie@develer.com>:
11035 * configure.tgt: Add uClinux target.
11037 2004-01-02 Andrew Cagney <cagney@redhat.com>
11039 * utils.c (do_my_cleanups): Make static, add forward declaration.
11040 * defs.h (do_my_cleanups): Delete declaration.
11042 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11044 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11045 bfd/ChangeLog-0203.
11047 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11049 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11050 in <machine/reg.h>.
11051 * configure, config.in: Regenerate.
11053 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11054 tui/ChangeLog-1998-2003.
11060 version-control: never