1 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3 * defs.h: Remove out-of-date comment.
4 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
5 [!GETENV_PROVIDED] (getenv): Remove prototype.
7 * standalone.c: Remove file.
8 * Makefile.in (standalone.o): Remove dependency.
10 * i386-linux-nat.c (dummy_sse_values): Remove function and
12 (i386_linux_dr_get): Fix typo in comment.
13 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
15 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
17 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
19 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
22 2004-08-13 Mark Kettenis <kettenis@gnu.org>
24 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
25 parenthesis in definition.
26 * configure: Regenerated.
28 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
30 * PROBLEMS: Mention build/1411.
32 2004-08-09 Robert Millan <robertmh@gnu.org>
34 Committed by Nathanael Nerode.
35 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
36 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
38 2004-08-12 Andrew Cagney <cagney@gnu.org>
40 * NEWS: Mention fixes in GDB 6.2.1.
41 * PROBLEMS: Remove mention of mips-irix.
43 2004-08-11 Joel Brobecker <brobecker@gnat.com>
45 * config/powerpc/xm-aix.h: Delete.
46 * config/powerpc/aix.mh (MH_FILE): Remove.
47 * config/powerpc/aix432.mh (MH_FILE): Remove.
49 2004-08-11 Joel Brobecker <brobecker@gnat.com>
51 * config/powerpc/aix.mh: Remove obsolete comment.
52 * config/powerpc/aix432.mh: Likewise.
54 2004-08-11 Joel Brobecker <brobecker@gnat.com>
56 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
58 2004-08-11 Joel Brobecker <brobecker@gnat.com>
60 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
61 this file is now empty.
62 * config/xm-aix4.h: Remove, this file is no longer included
65 2004-08-11 Joel Brobecker <brobecker@gnat.com>
67 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
68 that file is now empty.
69 (termdef): Remove prototype, function no longer used.
71 2004-08-11 Joel Brobecker <brobecker@gnat.com>
73 * doc/gdbint.texinfo (Host Definition): Remove documentation
74 for USE_O_NOCTTY, no longer used.
75 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
76 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
78 2004-08-11 Joel Brobecker <brobecker@gnat.com>
80 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
81 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
82 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
84 2004-08-11 Mark Kettenis <kettenis@gnu.org>
86 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
87 instead of FIVE_ARG_PTRACE.
89 * inflow.c (O_NOCTTY): Define to zero if not already defined.
90 (new_tty): Use O_NOCTTY unconditionally.
92 2004-08-10 Mark Kettenis <kettenis@gnu.org>
94 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
95 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
98 2004-08-10 Joel Brobecker <brobecker@gnat.com>
100 * xcoff_symfile_finish: Replace last call to xmfree by call
103 2004-08-10 Andrew Cagney <cagney@gnu.org>
105 * main.c (captured_main): Delete call to init_malloc.
106 * defs.h (init_malloc): Delete declaration.
107 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
108 (init_malloc): Delete functions.
110 * defs.h (xmfree): Delete.
111 * utils.c (xmfree): Delete function.
112 (xfree): Inline calls to xmfree and mfree.
113 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
114 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
115 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
116 * somread.c (som_symfile_finish): Ditto.
117 * objfiles.c (allocate_objfile, free_objfile):
118 * nlmread.c (nlm_symfile_finish): Ditto.
119 * hpread.c (hpread_symfile_finish): Ditto.
120 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
121 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
122 * coffread.c (coff_symfile_finish): Ditto.
124 * defs.h (xmcalloc): Delete declaration.
125 * utils.c (xmcalloc): Delete.
126 (xcalloc): Inline calls to xmcalloc and mcalloc.
127 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
129 * symtab.c (create_demangled_names_hash): Ditto.
131 * defs.h (xmrealloc): Delete.
132 * utils.c (xmrealloc): Delete.
133 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
134 * symmisc.c (extend_psymbol_list): Use xrealloc.
135 * source.c (find_source_lines): Ditto.
136 * hpread.c (hpread_lookup_type): Ditto.
137 * dbxread.c (add_bincl_to_list): Ditto.
139 * utils.c (xmmalloc): Delete.
140 (xmalloc): Inline xmmalloc and mmalloc calls.
141 (msavestring): Use xmalloc.
142 * defs.h (xmmalloc): Delete declaration.
143 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
145 * symmisc.c (extend_psymbol_list): Ditto.
146 * symfile.c (init_psymbol_list): Ditto.
147 * source.c (find_source_lines): Ditto.
148 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
149 * elfread.c (elf_symtab_read): Ditto.
150 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
151 * coffread.c (coff_symfile_init): Ditto.
153 2004-08-10 David Carlton <carlton@bactrian.org>
155 * MAINTAINERS: Remove David Carlton from c++ testsuite
158 2004-08-10 Jerome Guitton <guitton@gnat.com>
160 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
161 print a line feed before the prompt.
163 2004-08-10 Mark Kettenis <kettenis@gnu.org>
165 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
167 2004-08-09 Joel Brobecker <brobecker@gnat.com>
169 General cleanup of the AIX xm include file:
170 * config/xm-aix4.h (fd_set): Remove undefine.
171 Remove include of <sys/select.h>.
172 (HAVE_TERMIO): Remove define.
174 (NULL): Remove redefine.
175 (alloca): Remove #pragma.
176 (vfork): Remove define.
178 (SIGWINCH_HANDLER): Remove.
179 (SIGWINCH_HANDLER_BODY): Remove.
181 2004-08-09 Mark Kettenis <kettenis@gnu.org>
183 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
184 GDB_OSABI_OPENBSD_ELF.
186 2004-08-07 Robert Millan <robertmh@gnu.org>
188 * bsd-kvm.c: Check for nlist.h before including it.
190 2004-08-09 Mark Kettenis <kettenis@gnu.org>
192 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
193 sigcontext' offset consistency checks for ancient BSD.
195 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
197 * configure.in: Check for <sys/types.h>. Check return and
198 argument types of ptrace.
199 * configure, config.in: Regenerate.
201 2004-08-09 Jim Blandy <jimb@redhat.com>
203 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
204 rs6000_register_sim_regno): Doc fixes.
206 2004-08-08 Joel Brobecker <brobecker@gnat.com>
208 * mips-tdep.c: Include "floatformat.h".
209 (n32n64_floatformat_always_valid): New function.
210 (floatformat_n32n64_long_double_big): New constant.
211 (mips_gdbarch_init): Set size and format of long double
212 for N32 and N64 ABIs.
213 * Makefile.in (mips-tdep.o): Update dependencies.
215 2004-08-08 Andrew Cagney <cagney@gnu.org>
217 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
218 print. Improve script's error messages.
219 * gdbarch.h: Re-generate.
221 * gdbarch.sh (pformat): New function.
222 (float_format, double_format, long_double_format): List with bit
223 members. Use pformat when printing.
224 * gdbarch.c, gdbarch.h: Re-generate.
226 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
228 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
229 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
230 (ppcnbsd_supply_pcb): New function.
231 (_initialize_ppcnbsd_nat): New prototype and function.
232 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
233 (LOADLIBES): New variable.
234 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
236 2004-08-08 Andrew Cagney <cagney@gnu.org>
238 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
239 (builtin_type_ieee_double, builtin_type_ia64_quad)
240 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
241 BE/LE floating-point types.
242 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
243 (builtin_type_ieee_double, builtin_type_ia64_quad)
244 (builtin_type_ia64_spill): Declare.
245 * doublest.c (_initialize_doublest, floatformat_ieee_single)
246 (floatformat_ieee_double, floatformat_arm_ext)
247 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
248 of LE/BE floatformats.
249 * doublest.h: (struct floatformat, floatformat_ieee_single)
250 (floatformat_ieee_double, floatformat_arm_ext)
251 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
253 2004-08-08 Mark Kettenis <kettenis@gnu.org>
255 * i386gnu-nat.c (gnu_store_registers): Fix typo.
257 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
258 instead of regcache_raw_supply when storing the registers.
260 * i386gnu-nat.c: Update copyright year.
261 (gnu_store_registers): Don't use deprecated_registers and
262 deprecated_registers_valid. Use regcache_valid_p and
263 regcache_raw_supply instead.
265 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
268 * procfs.c (procfs_pid_to_str): Remove redundant and unused
269 variables. Incapitalized "process".
271 * configure.in: Add cursesX to the list of possible curses libs.
272 Add cursesX.h to the list of possible curses headers.
273 * configure, config.in: Regenerate.
275 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
277 * configure.in: Test for struct lwp in <sys/lwp.h>.
278 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
279 the offset of l_addr in struct lwp.
281 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
283 * bsd-kvm.c: Include "gdbcore.h"
284 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
286 2004-08-07 Andrew Cagney <cagney@gnu.org>
288 * gdbtypes.c (build_flt, build_complex): New functions.
289 (gdbtypes_post_init): Use.
291 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
293 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
294 through to builtin_type_uint128.
296 * c-exp.y: Use builtin_type function to obtain builtin types.
298 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
300 * gdbtypes.c (gdbtypes_post_init): Update.
301 (build_gdbtypes): Move initialization of builtin_type_int0
302 through to builtin_type_uint128 from here ...
303 (_initialize_gdbtypes): ... to here.
304 * d10v-tdep.c (d10v_register_type): Update.
306 * doublest.c: Update copyright.
307 (floatformat_from_length): Call error when floatformat is NULL.
308 (extract_floating_by_length): Remove NULL fmt check.
309 (store_floating_by_length): Ditto.
311 2004-08-07 Andrew Cagney <cagney@gnu.org>
313 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
314 that the register is valid.
316 2004-08-05 Mark Kettenis <kettenis@chello.nl>
318 * i386-linux-tdep.c (i386_linux_sigtramp_start)
319 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
320 struct frame_info *. Use safe_frame_unwind_memory instead of
321 deprecated_read_memory_nobpt.
322 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
323 changed signature of i386_linux_sigtramp_start and
324 i386_linux_rt_sigtramp_start.
326 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
327 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
328 instead of deprecated_read_memory_nobpt.
329 (i386nbsd_sigtramp_p): Adjust for changed signature of
330 i386nbsd_sigtramp_offset.
332 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
333 safe_frame_unwind_memory instead of target_read_memory.
335 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
337 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
338 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
339 (_initialize_kernel_u_addr): Remove prototype and function.
340 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
342 * xcoffread.c: Likewise.
344 2004-08-06 Mark Kettenis <kettenis@gnu.org>
346 * vax-nat.c: New file.
347 * vaxbsd-nat.c: Tweak comment.
348 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
350 (vax-nat.o): New dependency.
351 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
352 (vax-*-ultrix2*): Remove.
353 * config/vax/vax.mh: New file.
354 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
355 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
356 (vax_register_u_addr): New prototype.
357 (REGISTER_U_ADDR): Define using vax_register_u_addr.
358 * config/vax/vaxult2.mh: Remove file.
359 * config/vax/vaxult.mh: Remove file.
360 * config/vax/vaxbsd.mh: Remove file.
361 * config/vax/vax.mt (TM_FILE): Remove.
362 * config/vax/tm-vaxbsd.h: Remove file.
364 2004-08-06 Joel Brobecker <brobecker@gnat.com>
366 * aix-thread.c (get_signaled_thread): New function.
367 (iter_trap): Delete, no longer used.
368 (iter_tid): New function.
369 (pd_update): Find the thread that received the SIGTRAP signal
370 by first locating the kernel thread, and then finding its
373 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
375 * lin-lwp.c (child_wait): Continue inferior after processing
376 PTRACE_EVENT_CLONE event.
378 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
380 * MAINTAINERS: Add self to Write-After-Approval.
382 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
384 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
385 libunwind-xxxx.so" where xxxx is UNW_TARGET.
387 2004-08-05 Andrew Cagney <cagney@gnu.org>
389 * config/xm-sysv4.h: Delete file.
390 * config/mips/xm-irix5.h: Delete file.
391 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
392 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
393 * config/ia64/xm-aix.h: Delete file.
394 * config/ia64/aix.mh (XM_FILE): Delete.
395 * config/pa/xm-hppah.h: Delete file.
396 * config/pa/hpux11w.mh (XM_FILE): Delete.
397 * config/pa/hpux11.mh (XM_FILE): Delete.
398 * config/pa/hpux1020.mh (XM_FILE): Delete.
399 * config/pa/hppahpux.mh (XM_FILE): Delete.
401 * config/alpha/xm-alphalinux.h: Delete file.
402 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
403 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
404 * config/alpha/xm-alphaosf.h: Delete file.
405 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
406 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
407 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
408 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
410 * config/i386/xm-i386v.h: Delete file.
411 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
412 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
413 * config/i386/xm-i386sco.h: Delete file.
414 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
415 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
416 * config/i386/xm-i386v4.h: Delete file.
417 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
418 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
419 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
420 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
422 * config/vax/xm-vax.h: Delete file.
423 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
424 * config/vax/xm-vaxult2.h: Delete file.
425 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
426 * config/vax/vaxult2.mh (XM_FILE): Delete.
427 * config/vax/xm-vaxult.h: Delete file.
428 * config/vax/vaxult.mh (XM_FILE): Delete.
429 * config/vax/xm-vaxbsd.h: Delete file.
430 * config/vax/vaxbsd.mh (XM_FILE): Delete.
432 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
433 * gdbarch.h, gdbarch.c: Re-generate.
434 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
435 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
436 * frame.h: Delete deprecated_read_fp from comments.
437 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
438 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
440 2004-08-04 Mark Kettenis <kettenis@gnu.org>
442 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
443 trampoline in OpenBSD 3.5-current.
445 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
448 * Makefile.in: Remove embedded page breaks.
450 2004-08-04 Jim Blandy <jimb@redhat.com>
452 * regcache.c (regcache_raw_read): Assert that, after calling
453 target_fetch_registers, the register we're reading is cached.
455 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
456 a call to 'internal_error', with a more helpful error message.
457 * rs6000-tdep.c (e500_pseudo_register_read,
458 e500_pseudo_register_write, rs6000_store_return_value): Same.
460 2004-08-04 Andrew Cagney <cagney@gnu.org>
462 * Makefile.in: Update dependencies.
464 2004-08-04 Jim Blandy <jimb@redhat.com>
466 Change the layout of the PowerPC E500 raw register cache to allow
467 the lower 32-bit halves of the GPRS to be their own raw registers,
469 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
470 add ppc_ev0_upper_regnum flag.
471 * rs6000-tdep.c: #include "reggroups.h".
472 (spe_register_p): Recognize the ev upper half registers as SPE
474 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
476 (e500_move_ev_register): New function.
477 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
478 vector registers are the pseudo-registers now, formed by splicing
479 together the gprs and the upper-half registers.
480 (e500_register_reggroup_p): New function.
483 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
484 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
486 (registers_e500): Rearrange register set so that the raw register
487 set contains 32-bit GPRs and upper-half registers, and the SPE
488 vector registers become pseudo-registers.
489 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
490 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
491 register numbers are now the same for the E500 as they are for
492 other PowerPC variants. Register e500_register_reggroup_p as the
493 register group function for the E500.
494 * Makefile.in (rs6000-tdep.o): Update dependencies.
496 Adapt PPC E500 native support to the new raw regcache layout.
497 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
498 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
499 (fetch_spe_register, store_spe_register): Handle fetching/storing
500 all the SPE registers at once, if regno == -1. These now take
501 over the job of fetch_spe_registers and store_spe_registers.
502 (fetch_spe_registers, store_spe_registers): Deleted.
503 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
504 unconditionally; they're always raw. Fetch/store SPE upper half
505 registers, if present, instead of ev registers.
506 (fetch_register, store_register): Remove sanity checks: gprs are
507 never pseudo-registers now, so we never need to even mention any
508 registers that are ever pseudoregisters.
510 Use a fixed register numbering when communicating with the PowerPC
512 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
513 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
514 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
516 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
517 init_sim_regno_table.
518 * Makefile.in (gdb_sim_ppc_h): New variable.
519 (rs6000-tdep.o): Update dependencies.
521 2004-08-02 Andrew Cagney <cagney@gnu.org>
523 * cris-tdep.c (cris_register_size): Restore function, still used
526 * gdbarch.sh (deprecated_target_read_fp)
527 (deprecated_frame_locals_address, deprecated_frame_args_address)
528 (deprecated_frame_chain_valid, deprecated_frame_chain)
529 (deprecated_init_extra_frame_info, deprecated_pop_frame)
530 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
531 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
532 * gdbarch.h, gdbarch.c: Re-generate.
533 * regcache.c (deprecated_read_fp): Do not call
534 DEPRECATED_TARGET_READ_FP_P.
535 * infcmd.c (default_print_registers_info): Do not call
536 DEPRECATED_DO_REGISTERS_INFO.
537 * frame-base.c (default_frame_locals_address): Do not call
538 DEPRECATED_FRAME_LOCALS_ADDRESS.
539 (default_frame_args_address): Do not call
540 DEPRECATED_FRAME_ARGS_ADDRESS.
542 * gdbarch.sh (deprecated_register_raw_size)
543 (deprecated_register_virtual_size:int): Delete.
544 * gdbarch.h, gdbarch.c: Re-generate.
545 * cris-tdep.c (cris_register_size): Delete.
546 (cris_gdbarch_init): Update.
547 * alpha-tdep.c (alpha_register_raw_size)
548 (alpha_register_virtual_size): Delete.
549 (alpha_gdbarch_init): Update.
551 * gdbarch.sh (deprecated_register_virtual_type)
552 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
553 (deprecated_dummy_write_sp): Delete.
554 * gdbarch.h, gdbarch.c: Re-generate.
556 * gdbarch.sh (deprecated_register_bytes): Delete.
557 * gdbarch.h, gdbarch.c: Re-generate.
558 * regcache.c (deprecated_register_bytes): New function.
559 * regcache.h (deprecated_register_bytes): Declare.
560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
561 * v850-tdep.c (v850_gdbarch_init): Update.
562 * sh64-tdep.c (sh64_gdbarch_init): Update.
563 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
565 * mcore-tdep.c (mcore_gdbarch_init): Update.
566 * cris-tdep.c (cris_gdbarch_init): Update.
567 * arm-tdep.c (arm_gdbarch_init): Update.
568 * remote.c (init_remote_state): Update.
569 * remote-vx.c (vx_prepare_to_store): Update.
570 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
571 * irix5-nat.c (fetch_core_registers): Update.
572 * cris-tdep.c (cris_register_bytes_ok): Update.
573 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
575 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
576 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
577 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
578 (mips_insn16_frame_base_address, mips_insn16_frame_base)
579 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
580 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
581 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
582 (mips_insn32_frame_base_address, mips_insn32_frame_base)
583 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
584 with mips_insn16 and mips_insn32.
586 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
587 * rs6000-tdep.c (rs6000_push_dummy_call)
588 (rs6000_extract_return_value): Use register_size.
589 * xstormy16-tdep.c (xstormy16_get_saved_register)
590 (xstormy16_extract_return_value): Ditto.
591 * valops.c (value_assign): Ditto.
592 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
593 * v850-tdep.c (v850_extract_return_value): Ditto.
594 * tracepoint.c (collect_symbol): Ditto.
595 * target.c (debug_print_register): Ditto.
596 * stack.c (frame_info): Ditto.
597 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
598 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
599 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
600 (store_register_using_P): Ditto.
601 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
602 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
603 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
604 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
605 * regcache.c (deprecated_read_register_bytes)
606 (deprecated_write_register_bytes, read_register)
607 (write_register): Ditto.
608 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
609 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
610 * monitor.c (monitor_supply_register, monitor_fetch_register)
611 (monitor_store_register): Ditto.
612 * mn10300-tdep.c (mn10300_pop_frame_regular)
613 (mn10300_print_register): Ditto.
614 * mipsv4-nat.c (fill_fpregset): Ditto.
615 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
616 (mips64_fill_fpregset): Ditto.
617 * mi/mi-main.c (register_changed_p, get_register)
618 (mi_cmd_data_write_register_values): Ditto.
619 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
620 * irix5-nat.c (fill_gregset, fetch_core_registers):
621 * infrun.c (write_inferior_status_register): Ditto.
622 * infptrace.c (fetch_register, store_register): Ditto.
623 * infcmd.c (default_print_registers_info): Ditto.
624 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
625 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
626 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
627 * hpux-thread.c (hpux_thread_fetch_registers)
628 (hpux_thread_store_registers): Ditto.
629 * hppah-nat.c (store_inferior_registers, fetch_register):
630 * findvar.c (value_from_register): Ditto.
631 * dve3900-rom.c (fetch_bitmapped_register):
632 * cris-tdep.c (cris_gdbarch_init): Ditto.
633 * alpha-tdep.h: Ditto.
634 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
636 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
637 DEPRECATED_REGISTER_RAW_SIZE from comments.
638 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
639 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
640 DEPRECATED_REGISTER_RAW_SIZE.
641 * findvar.c (value_of_register): Simplify by assuming that the
642 registers raw and virtual sizes are identical.
643 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
645 * arch-utils.c (generic_register_size): Simplify by assuming
648 * regcache.c (legacy_read_register_gen, real_register)
649 (legacy_write_register_gen): Delete, not used.
651 * regcache.c (struct regcache_descr): Delete legacy_p.
652 (init_legacy_regcache_descr): Delete function.
653 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
654 Do not use deprecated register functions.
655 (regcache_raw_read, deprecated_write_register_gen):
656 (deprecated_read_register_gen, regcache_raw_write): Delete code
657 predicated on legacy_p.
658 (register_size): Delete check against register raw size.
660 * cris-tdep.c (cris_register_type): Replace
661 cris_register_virtual_type.
662 (cris_gdbarch_init): Update, set register_type.
664 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
665 * gdbarch.h, gdbarch.c: Re-generate.
666 * arm-tdep.c (arm_frameless_function_invocation): Delete.
667 (arm_gdbarch_init) Do not set frameless function invocation.
668 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
669 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
670 * frv-tdep.c (frv_frameless_function_invocation): Delete.
671 (frv_gdbarch_init): Do not set frameless function invocation.
672 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
673 * sh-tdep.c (sh_gdbarch_init): Ditto.
674 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
675 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
676 * avr-tdep.c (avr_gdbarch_init): Ditto.
678 * blockframe.c (legacy_frame_chain_valid): Delete function.
680 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
681 and pc. Update comments.
682 (pc_in_dummy_frame): Delete function.
683 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
685 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
686 call_hi, top and pc, use the id.
687 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
689 * dummy-frame.c: Include "gdb_string.h".
690 (generic_save_call_dummy_addr, generic_push_dummy_frame)
691 (generic_save_dummy_frame_tos): Delete.
692 (dummy_frame_push): New function, replaces above.
693 * dummy-frame.h: Update copyright.
694 (dummy_frame_push): Declare.
695 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
696 (generic_save_call_dummy_addr): Delete declarations.
697 * infcall.c: Include "dummy-frame.h".
698 (call_function_by_hand): Add locals caller_regcache,
699 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
700 with call to frame_save_as_regcache plus cleanup. Delete calls to
701 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
702 Move clear_proceed_status to just before the resume, add call to
703 dummy_frame_push (discard cleanup).
704 * Makefile.in (infcall.o): Add $(dummy_frame_h).
705 (dummy-frame.o): Add $(gdb_string_h).
707 2004-08-01 Andrew Cagney <cagney@gnu.org>
709 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
710 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
711 * dummy-frame.c (find_dummy_frame): Delete.
712 (struct dummy_frame_cache, dummy_frame_sniffer)
713 (dummy_frame_prev_register, dummy_frame_this_id)
714 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
715 frame unwinder using a dummy_frame_cache.
717 2004-08-01 Andrew Cagney <cagney@gnu.org>
719 * frame.h (frame_save_as_regcache): Declare.
720 * frame.c (frame_save_as_regcache): New function.
721 (do_frame_read_register): Replace do_frame_unwind_register.
722 (frame_pop): Use frame_save_as_regcache.
723 * dummy-frame.c (generic_push_dummy_frame): Use
724 frame_save_as_regcache.
726 2004-08-01 Joel Brobecker <brobecker@gnat.com>
728 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
729 file as included until we record the first line in the linetable.
731 2004-08-01 Andrew Cagney <cagney@gnu.org>
733 * frame.h (deprecated_pop_dummy_frame)
734 (deprecated_read_register_dummy)
735 (deprecated_generic_find_dummy_frame): Delete.
736 * dummy-frame.c (deprecated_generic_find_dummy_frame)
737 (deprecated_read_register_dummy)
738 (deprecated_find_dummy_frame_regcache)
739 (discard_innermost_dummy)
740 (deprecated_pop_dummy_frame): Delete.
741 (dummy_frame_this_id): Simplify.
742 (struct dummy_frame): Delete "fp" and "sp".
743 (find_dummy_frame): Simplify.
744 (generic_push_dummy_frame): Do not set "fp" or "sp".
745 (fprint_dummy_frames): Do not print "fp" and "sp"
747 2004-08-01 Mark Kettenis <kettenis@gnu.org>
749 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
750 (struct i386_insn): New structure.
751 (i386_match_insn): New function.
752 (i386_frame_setup_skip_insns): New variable.
753 (i386_analyze_frame_setup): Change to use i386_match_insn and the
754 array i386_frame_setup_insns of instructions that should be
755 skipped inside the frame setup sequence.
757 2004-08-01 Andrew Cagney <cagney@gnu.org>
759 * frame.h (deprecated_frame_xmalloc_with_cleanup)
760 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
761 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
762 * stack.c (frame_info): Delete references to
763 DEPRECATED_FRAME_INIT_SAVED_REGS and
764 deprecated_get_frame_saved_regs.
765 * frame.c (struct frame_info): Delete saved_regs and extra_info.
766 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
767 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
768 (frame_unwind_register_signed)
769 (frame_unwind_register_unsigned)
770 (frame_unwind_unsigned_register): Use register_size.
771 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
772 (deprecated_frame_xmalloc_with_cleanup)
773 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
774 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
776 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
777 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
778 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
779 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
781 * infcall.c (call_function_by_hand): Do not use
782 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
783 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
784 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
785 DEPRECATED_STACK_ALIGN.
787 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
789 Committed by Andrew Cagney.
790 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
792 2004-08-01 Andrew Cagney <cagney@gnu.org>
794 * mips-tdep.c (mips16_frame_cache)
795 (mips16_frame_this_id, mips16_frame_prev_register)
796 (mips16_frame_unwind, mips16_frame_sniffer)
797 (mips16_frame_base_address, mips16_frame_base)
798 (mips16_frame_base_sniffer, mips32_frame_cache)
799 (mips32_frame_this_id, mips32_frame_prev_register)
800 (mips32_frame_unwind, mips32_frame_sniffer)
801 (mips32_frame_base_address, mips32_frame_base)
802 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
803 separate heuristic mips16 and mips32 unwinders.
804 (mips_stub_frame_cache, mips_stub_frame_this_id)
805 (mips_stub_frame_prev_register)
806 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
807 (mips_stub_frame_base_address, mips_stub_frame_base)
808 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
809 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
810 match true mdebug frames.
811 (non_heuristic_proc_desc): Add forward declaration.
813 2004-08-01 Andrew Cagney <cagney@gnu.org>
815 * config/mips/tm-irix6.h: Delete file.
816 * config/mips/tm-irix5.h: Delete file.
817 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
818 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
820 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
821 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
822 * config/nm-gnu.h (NO_CORE_OPS): Delete.
823 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
824 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
825 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
826 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
827 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
828 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
829 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
830 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
831 (TARGET_SIGNAL_RAW_VALUES): Delete.
832 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
834 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
835 (TARGET_HW_WATCH_LIMIT): Delete.
836 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
837 * minimon.h: Delete file.
839 * trad-frame.c (trad_frame_get_this_base)
840 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
842 * trad-frame.h (trad_frame_set_this_base)
843 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
845 2004-07-31 Andrew Cagney <cagney@gnu.org>
847 * trad-frame.c (trad_frame_get_prev_register): Rename
848 trad_frame_get_prev_register.
849 * vax-tdep.c (vax_frame_prev_register): Update.
850 * trad-frame.h: Update.
851 * trad-frame.c (trad_frame_get_register): Update.
852 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
853 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
855 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
856 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
858 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
860 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
862 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
864 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
866 * s390-tdep.c (s390_frame_prev_register)
867 (s390_stub_frame_prev_register)
868 (s390_sigtramp_frame_prev_register): Update.
869 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
870 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
871 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
872 * m88k-tdep.c (m88k_frame_prev_register)
873 * m68hc11-tdep.c (m68hc11_frame_prev_register)
874 * m32r-tdep.c (m32r_frame_prev_register): Update.
875 * hppa-tdep.c (hppa_frame_prev_register_helper)
876 * frv-tdep.c (frv_frame_prev_register): Update.
877 * d10v-tdep.c (d10v_frame_prev_register): Update.
878 * cris-tdep.c (cris_frame_prev_register): Update.
879 * avr-tdep.c (avr_frame_prev_register): Update.
880 * arm-tdep.c (arm_prologue_prev_register)
881 (arm_sigtramp_prev_register): Update.
883 2004-07-31 Andrew Cagney <cagney@gnu.org>
885 * frame.h (legacy_saved_regs_unwind)
886 (legacy_frame_chain_valid, legacy_frame_p)
887 (enum frame_type): Delete UNKNOWN_FRAME.
888 * dummy-frame.c (dummy_frame_this_id): Simplify.
889 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
890 * frame.c (struct frame_info): Delete the field "type".
891 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
892 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
893 (legacy_saved_regs_unwind, legacy_frame_p)
894 (frame_type_from_pc): Delete.
895 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
896 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
898 2004-07-31 Mark Kettenis <kettenis@gnu.org>
900 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
903 * mips-nat.c: Remove file.
904 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
905 (mips-nat.o): Remove dependency.
907 * infptrace.c: Update copyright year.
908 (fetch_register): Pass NULL in regcache_raw_supply call instead of
909 explicitly setting the buffer to all zeroes.
911 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
912 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
914 2004-07-30 Andrew Cagney <cagney@gnu.org>
916 * GDB 6.2 released from gdb_6_2-branch.
918 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
920 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
922 * exec.c (exec_file_attach):
923 * nto-tdep.c (nto_find_and_open_solib):
924 * pa64solib.c (pa64_solib_sizeof_symbol_table):
925 * solib.c (solib_open):
926 * somsolib.c (som_solib_sizeof_symbol_table):
927 * source.c (is_regular_file, openp, open_source_file):
928 * symfile.c (symfile_bfd_open):
929 * wince.c (upload_to_device): Differentiate between the search for
930 binary and source files.
932 2004-07-30 Andrew Cagney <cagney@gnu.org>
934 * complaints.c (_initialize_complaints): Pass NULL to
935 add_setshow_zinteger_cmd for help_doc.
936 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
938 2004-07-30 Andrew Cagney <cagney@gnu.org>
941 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
942 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
943 $(PACKAGE).pot and update-po.
944 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
945 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
946 (update-po): New rules.
947 (localedir): Define using autoconf.
948 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
949 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
950 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
951 * configure.in: Generate CATALOGS and LINGUAS from contents of
952 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
953 * configure: Re-generate.
954 * po/gdbtext: New file
956 2004-07-30 Jerome Guitton <guitton@gnat.com>
958 * MAINTAINERS: Reorder Write After Approval list in alphabetical
961 2004-07-30 David Lecomber <dsl@sources.redhat.com>
963 * dwarf2read.c (read_file_scope): Set producer if attribute
965 (struct dwarf2_cu): Added new member producer.
967 2004-07-30 Jerome Guitton <guitton@gnat.com>
969 * inflow.c (kill_command): release file handles in BFD.
970 * exec.c (exec_file_attach): Ditto.
971 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
973 2004-07-29 Andrew Cagney <cagney@gnu.org>
975 * PROBLEMS (mips-irix): Note that it is broken.
977 2004-07-29 Andrew Cagney <cagney@gnu.org>
979 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
980 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
982 * config/xm-nbsd.h: Delete file.
983 * config/arm/xm-nbsd.h: Delete file.
984 * config/i386/xm-nbsd.h: Delete file.
985 * config/ns32k/xm-nbsd.h: Delete file.
986 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
987 * config/i386/nbsdelf.mh (XM_FILE): Delete.
988 * config/i386/nbsdaout.mh (XM_FILE): Delete.
989 * config/arm/nbsdelf.mh (XM_FILE): Delete.
990 * config/arm/nbsdaout.mh (XM_FILE): Delete.
992 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
993 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
994 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
995 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
996 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
997 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
999 * config/powerpc/xm-linux.h: Delete empty file.
1000 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1001 * config/powerpc/linux.mh (XM_FILE): Delete.
1002 * config/m68k/xm-linux.h: Delete empty file.
1003 * config/m68k/linux.mh (XM_FILE): Delete.
1004 * config/ia64/xm-linux.h: Delete empty file.
1005 * config/ia64/linux.mh (XM_FILE): Delete.
1006 * config/arm/xm-linux.h: Delete empty file.
1007 * config/arm/linux.mh (XM_FILE): Delete.
1009 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1010 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1011 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1012 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1013 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1014 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1015 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1016 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1018 * config/m68k/xm-m68k.h: Delete file.
1019 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1021 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1022 * config/pa/xm-linux.h: Delete empty file.
1023 * config/pa/linux.mh (XM_FILE): Delete.
1024 * config/i386/xm-i386.h: Delete empty file.
1025 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1027 * config/i386/obsdaout.mh (XM_FILE): Delete.
1028 * config/i386/obsd64.mh (XM_FILE): Delete.
1029 * config/i386/fbsd64.mh (XM_FILE): Delete.
1030 * config/i386/nto.mh (XM_FILE): Delete.
1031 * config/i386/obsd.mh (XM_FILE): Delete.
1032 * config/i386/linux64.mh (XM_FILE): Delete.
1033 * config/i386/linux.mh (XM_FILE): Delete.
1034 * config/i386/i386sol2.mh (XM_FILE): Delete.
1035 * config/i386/i386gnu.mh (XM_FILE): Delete.
1036 * config/i386/fbsd.mh (XM_FILE): Delete.
1037 * config/i386/nbsd64.mh (XM_FILE): Delete.
1039 2004-07-29 Andrew Cagney <cagney@gnu.org>
1041 * config/pa/xm-linux.h: Do not include "floatformat.h".
1042 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1043 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1044 * config/i386/xm-i386.h: Do not include "floatformat.h".
1045 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1046 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1047 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1048 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1049 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1050 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1051 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1052 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1053 * configure, config.in: Regenerate.
1054 * configure.host (gdb_host_float_format, gdb_host_double_format)
1055 (gdb_host_long_double_format): Set according to the host.
1057 2004-07-29 Andrew Cagney <cagney@gnu.org>
1059 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1061 2004-07-28 Andrew Cagney <cagney@gnu.org>
1063 * PROBLEMS: Mention threads/1650.
1064 * NEWS: Mention the NPTL fix.
1066 2004-07-28 Andrew Cagney <cagney@gnu.org>
1068 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1069 (add_setshow_cmd_full): Make static.
1070 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1071 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1072 * cli/cli-decode.c (add_setshow_filename_cmd)
1073 (add_setshow_string_cmd): New functions.
1074 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1075 * mips-tdep.c (_initialize_mips_tdep): Update.
1076 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1077 * cli/cli-logging.c (_initialize_cli_logging): Update.
1078 * complaints.c (_initialize_complaints): Update.
1079 * remote.c (_initialize_remote): Update.
1081 2004-07-28 Andrew Cagney <cagney@gnu.org>
1083 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1084 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1085 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1086 print parameters. Make string parameters constant.
1087 * command.h: Update. Update copyright.
1088 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1089 * observer.c (_initialize_observer): Ditto.
1090 * frame.c (_initialize_frame): Ditto.
1091 * complaints.c (_initialize_complaints): Ditto.
1092 * maint.c (_initialize_maint_cmds): Ditto.
1093 * target.c (initialize_targets): Ditto.
1094 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1095 * infcall.c (_initialize_infcall): Ditto.
1096 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1097 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1098 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1099 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1100 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1102 2004-07-28 Andrew Cagney <cagney@gnu.org>
1104 * gdbtypes.c (lookup_primitive_typename): Delete function.
1105 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1106 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1107 * gdbtypes.c (lookup_typename): Ditto.
1108 * f-exp.y (yylex): Ditto.
1109 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1111 * scm-lang.c (c_builtin_types): Delete extern declaration.
1112 (scm_language_defn): Replace
1113 string_char_type and primitive_type_vector with
1114 la_language_arch_info.
1115 * jv-lang.c (java_language_defn): Replace
1116 string_char_type and primitive_type_vector with
1117 la_language_arch_info.
1118 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1119 c_builtin_types in comment.
1120 * c-lang.h (struct language_arch_info): Declare opaque.
1121 (c_language_arch_info): Declare.
1122 (c_builtin_types): Delete declaration.
1123 * c-lang.c (c_language_arch_info): Set string_char_type to
1124 builtin_char, not builtin_true_char. Make global.
1125 (c_builtin_types): Delete array.
1126 (asm_language_defn, minimal_language_defn): Replace
1127 string_char_type and primitive_type_vector with
1128 la_language_arch_info.
1130 2004-07-28 Andrew Cagney <cagney@gnu.org>
1132 * gdbtypes.h (struct builtin_type): Rename true_char to
1134 * gdbtypes.c (gdbtypes_post_init): Update.
1135 * c-lang.c (arch_info): New function.
1136 (enum c_primitive_types): New enum.
1137 (c_language_defn): Instead of string_char_type and
1138 primitive_type_vector set la_language_arch_info.
1140 2004-07-28 Andrew Cagney <cagney@gnu.org>
1142 * language.h (struct language_arch_info): Fix typo
1143 s/primative/primitive/.
1144 * gdbtypes.c (lookup_primitive_typename): Ditto.
1145 * language.c (language_lookup_primitive_type_by_name)
1146 (unknown_language_arch_info): Ditto.
1148 2004-07-27 Andrew Cagney <cagney@gnu.org>
1150 * defs.h (enum language): Add nr_languages.
1151 * language.h (struct language_arch_info): Define.
1152 (struct language_defn): Add la_language_arch_info.
1153 (language_lookup_primative_type_by_name): Declare.
1154 (language_string_char_type): Declare.
1155 * language.c (_initialize_language, language_gdbarch_post_init)
1156 (struct language_gdbarch, language_gdbarch_data): Implement
1157 per-architecture language information.
1158 (unknown_language_arch_info, language_string_char_type)
1159 (language_lookup_primative_type_by_name): New functions.
1160 (unknown_language_defn, auto_language_defn)
1161 (local_language_defn): Set la_language_arch_info to
1162 unknown_language_arch_info.
1163 (unknown_builtin_types): Delete.
1164 * gdbtypes.c (lookup_primitive_typename): Use
1165 language_lookup_primative_type_by_name.
1166 (create_string_type): Use language_string_char_type.
1167 * values.c (value_from_string): Use language_string_char_type.
1168 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1169 * p-lang.c (pascal_language_defn): Ditto.
1170 * m2-lang.c (m2_language_defn): Ditto.
1171 * jv-lang.c (java_language_defn): Ditto.
1172 * objc-lang.c (objc_language_defn): Ditto.
1173 * f-lang.c (f_language_defn): Ditto.
1174 * c-lang.c (c_language_defn, cplus_language_defn)
1175 (asm_language_defn, minimal_language_defn): Ditto.
1177 2004-07-27 Andrew Cagney <cagney@gnu.org>
1179 * gdbtypes.h (struct builtin_type): Declare.
1180 (builtin_type): Declare.
1181 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1182 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1183 (gdbtypes_post_init): New function.
1184 (builtin_type): New function.
1186 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1188 * remote-m32r-sdi.c: Fix breakpoint bug.
1189 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1190 recv_char_data, recv_long_data): New functions to replace communication
1193 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1195 Document PR threads/1650.
1196 * PROBLEMS (Threads): Document problem with many threads
1198 2004-07-26 Andrew Cagney <cagney@gnu.org>
1200 * gdb-mi.el: Move from here ...
1201 * mi/gdb-mi.el: ... to here.
1203 2004-07-26 Andrew Cagney <cagney@gnu.org>
1205 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1206 * main.c (captured_main): When in batch mode always detach.
1208 2004-07-26 Andrew Cagney <cagney@gnu.org>
1210 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1211 and h8300 as broken.
1212 * NEWS: END-OF-LIFE frame compatibility module.
1213 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1216 2004-07-26 Andrew Cagney <cagney@gnu.org>
1218 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1219 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1220 * wince.c (_initialize_wince): Update.
1221 * win32-nat.c (_initialize_win32_nat): Update.
1222 * varobj.c (_initialize_varobj): Update.
1223 * valops.c (_initialize_valops): Update.
1224 * utils.c (initialize_utils, initialize_utils): Update.
1225 * tui/tui-win.c (_initialize_tui_win): Update.
1226 * top.c (init_main): Update.
1227 * symfile.c (_initialize_symfile): Update.
1228 * source.c (_initialize_source): Update.
1229 * somsolib.c (_initialize_som_solib): Update.
1230 * solib.c (_initialize_solib): Update.
1231 * solib-frv.c (_initialize_frv_solib): Update.
1232 * serial.c (_initialize_serial): Update.
1233 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1234 * remote.c (_initialize_remote, _initialize_remote): Update.
1235 * remote-vx.c (_initialize_vx): Update.
1236 * remote-utils.c (_initialize_sr_support): Update.
1237 * remote-sds.c (_initialize_remote_sds): Update.
1238 * remote-mips.c (_initialize_remote_mips): Update.
1239 * remote-e7000.c (_initialize_remote_e7000): Update.
1240 * proc-api.c (_initialize_proc_api): Update.
1241 * printcmd.c: Update.
1242 * parse.c (_initialize_parse): Update.
1243 * pa64solib.c (_initialize_pa64_solib): Update.
1244 * p-valprint.c (_initialize_pascal_valprint): Update.
1245 * monitor.c (_initialize_remote_monitors): Update.
1246 * mips-tdep.c (_initialize_mips_tdep): Update.
1247 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1248 * maint.c (_initialize_maint_cmds): Update.
1249 * lin-lwp.c (_initialize_lin_lwp): Update.
1250 * language.c (_initialize_language): Update.
1251 * kod.c (_initialize_kod): Update.
1252 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1253 * i386-tdep.c (_initialize_i386_tdep): Update.
1254 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1255 * gdbarch.sh: Update.
1256 * gdbarch.c: Re-generate.
1257 * gdb-events.sh: Update.
1258 * gdb-events.c: Re-generate.
1259 * frame.c (_initialize_frame): Update.
1261 * demangle.c (_initialize_demangler): Update.
1262 * dcache.c (_initialize_dcache): Update.
1263 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1264 * cp-valprint.c (_initialize_cp_valprint): Update.
1265 * corefile.c (_initialize_core): Update.
1266 * command.h: Update.
1267 * cli/cli-decode.h: Update.
1268 * cli/cli-cmds.c (init_cli_cmds): Update.
1269 * charset.c (_initialize_charset): Update.
1270 * breakpoint.c (_initialize_breakpoint): Update.
1271 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1272 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1273 * aix-thread.c (_initialize_aix_thread): Update.
1275 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1277 Partial fix for PR backtrace/1718.
1278 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1279 that GCC migrates into the prolugue. Don't handle any
1280 instructions that clobber %ebx.
1282 2004-07-23 Andrew Cagney <cagney@gnu.org>
1284 Use regcache_raw_collect instead of regcache_collect.
1285 * regcache.h (regcache_collect): Delete declaration.
1286 * regcache.c (regcache_colect): Delete function.
1287 * win32-nat.c (do_child_store_inferior_registers): Update.
1288 * sol-thread.c (sol_thread_store_registers): Update.
1289 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1290 * rs6000-nat.c (store_register): Update.
1291 * remote.c (store_register_using_P, remote_store_registers): Update.
1292 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1293 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1294 (fill_vrregset, store_spe_registers, fill_gregset)
1295 (fill_gregset): Update.
1296 * nto-procfs.c (procfs_store_registers): Update.
1297 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1298 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1299 * m68klinux-nat.c (store_register, fill_gregset): Update.
1300 * m68k-tdep.c (fill_gregset): Update.
1301 * infptrace.c (store_register): Update.
1302 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1303 * i386-linux-nat.c (store_register, fill_gregset): Update.
1304 * hppa-linux-nat.c (fill_gregset): Update.
1305 * go32-nat.c (store_register): Update.
1306 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1307 (store_fp_regs): Update.
1308 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1309 (store_nwfpe_extended, store_fpregister, store_fpregs)
1310 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1311 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1312 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1313 (store_regs_user_thread, store_regs_kernel_thread): Update.
1315 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1317 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1318 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1320 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1321 member of `struct comp_unit'.
1323 2004-07-23 Andrew Cagney <cagney@gnu.org>
1325 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1326 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1328 2004-07-23 Martin Hunt <hunt@redhat.com>
1329 Kevin Buettner <kevinb@redhat.com>
1331 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1332 alignment was being added to the offset instead of multiplied.
1334 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1336 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1337 changed signal trampoline in OpenBSD 3.5-current.
1339 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1340 <machine/pcb.h> and "bsd-kvm.h".
1341 (sparc64nbsd_supply_pcb): New function.
1342 (_initialize_sparc64nbsd_nat): Renamed from
1343 _initialize_sparcnbsd_nat. Enable libkvm interface.
1344 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1345 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1346 (LOADLIBES): New variable.
1348 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1350 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1352 2004-07-21 Andrew Cagney <cagney@gnu.org>
1354 Use regcache_raw_supply instead of supply_register.
1355 * regcache.h (supply_register): Delete declaration.
1356 * regcache.c (supply_register): Delete function.
1357 * wince.c (do_child_fetch_inferior_registers): Update.
1358 * win32-nat.c (do_child_fetch_inferior_registers)
1359 (fetch_elf_core_registers): Update.
1360 * v850ice.c (v850ice_fetch_registers): Update.
1361 * thread-db.c (thread_db_store_registers): Update.
1362 * sol-thread.c (sol_thread_store_registers): Update.
1363 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1364 * rs6000-nat.c (fetch_register): Update.
1365 * rom68k-rom.c (rom68k_supply_one_register): Update.
1366 * remote.c (remote_wait, remote_async_wait): Update.
1367 * remote-st.c (get_hex_regs): Update.
1368 * remote-sim.c (gdbsim_fetch_register): Update.
1369 * remote-sds.c (sds_fetch_registers): Update.
1370 * remote-rdp.c (remote_rdp_fetch_register): Update.
1371 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1372 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1373 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1374 * remote-hms.c (init_hms_cmds): Update.
1375 * remote-est.c (init_est_cmds): Update.
1376 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1377 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1378 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1379 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1380 (fetch_register, supply_vrregset, supply_vrregset)
1381 (fetch_spe_registers): Update.
1382 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1383 * monitor.c (monitor_supply_register): Update.
1384 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1385 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1386 (mipsnbsd_supply_fpreg): Update.
1387 * mips-nat.c (fetch_inferior_registers)
1388 (fetch_core_registers): Update.
1389 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1390 (supply_fpregset, mips64_supply_gregset)
1391 (mips64_supply_fpregset): Update.
1392 * m68klinux-nat.c (fetch_register, supply_gregset)
1393 (supply_fpregset): Update.
1394 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1395 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1396 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1397 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1398 * infptrace.c (fetch_register): Update.
1399 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1400 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1401 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1402 (gnu_fetch_registers, gnu_store_registers): Update.
1403 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1404 * i386-linux-nat.c (fetch_register, supply_gregset)
1405 (dummy_sse_values): Update.
1406 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1407 * hppah-nat.c (fetch_register): Update.
1408 * hppa-linux-nat.c (fetch_register, supply_gregset)
1409 (supply_fpregset): Update.
1410 * go32-nat.c (fetch_register): Update.
1411 * dve3900-rom.c (fetch_bitmapped_register)
1412 (_initialize_r3900_rom): Update.
1413 * cris-tdep.c (supply_gregset): Update.
1414 * abug-rom.c (init_abug_cmds): Update.
1415 * core-aout.c (fetch_core_registers): Update.
1416 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1417 (fetch_register, fetch_fp_register): Update.
1418 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1419 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1420 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1421 * alphanbsd-tdep.c (fetch_core_registers): Update.
1422 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1423 * alpha-nat.c (fetch_osf_core_registers)
1424 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1425 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1426 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1428 2004-07-21 Andrew Cagney <cagney@gnu.org>
1430 * PROBLEMS: Mention breakpoints/1702.
1431 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1432 that is known to work.
1434 2004-07-21 Andrew Cagney <cagney@gnu.org>
1436 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1437 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1438 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1439 (handle_inferior_event): Wrap call to deprecated
1440 IGNORE_HELPER_CALL in #ifdef.
1441 * config/mips/tm-nbsd.h: Update.
1443 2004-07-20 Jim Blandy <jimb@redhat.com>
1445 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1446 bfd_mach_ppc has no segment registers.
1448 Include PowerPC SPR numbers for special-purpose registers.
1449 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1450 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1451 new member in initializer.
1452 (S, S4, SN4, S64): New macros for defining special-purpose
1454 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1455 registers_403, registers_403GC, registers_505, registers_860,
1456 registers_601, registers_602, registers_603, registers_604,
1457 registers_750, registers_e500): Use them.
1459 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1460 replace references with expression used to initialize variable.
1462 2004-07-20 Andrew Cagney <cagney@gnu.org>
1464 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1466 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1467 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1468 (s390_sigtramp_frame_sniffer): Update.
1469 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1470 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1471 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1472 (mips32_fetch_instruction): Update.
1473 * mcore-tdep.c (get_insn): Update.
1474 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1475 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1476 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1477 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1478 (i386_linux_rt_sigtramp_start): Update.
1479 * i386-linux-nat.c (child_resume): Update.
1480 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1481 * hppa-linux-tdep.c (insns_match_pattern): Update.
1482 * gdbcore.h: Update.
1483 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1484 * frame.c (safe_frame_unwind_memory): Update.
1485 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1486 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1487 * alpha-tdep.c (alpha_read_insn): Update.
1489 2004-07-20 Andrew Cagney <cagney@gnu.org>
1491 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1492 containing both bytes and mask. Add "frame_type".
1493 * tramp-frame.c (tramp_frame_start): Update.
1494 (tramp_frame_prepend_unwinder): Update.
1495 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1496 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1497 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1498 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1500 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1502 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1503 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1504 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1505 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1507 2004-07-17 Andrew Cagney <cagney@gnu.org>
1509 * NEWS, PROBLEMS: Update for 6.2.
1511 * README: Update to 6.2.
1513 * utils.c (xvasprintf): Call xstrvprintf.
1515 * parse.c: Update copyright.
1516 (null_post_parser): Eliminate ARGSUSED.
1518 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1519 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1520 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1522 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1523 * ppc-linux-nat.c: Use "Linux kernel".
1524 * hppa-linux-tdep.c: Use GNU/Linux.
1525 * hppa-linux-nat.c: Use GNU/Linux.
1526 * dwarfread.c: Add [sic] to use of Linux.
1528 * hppa-linux-nat.c: Do not include <string.h>.
1529 (supply_fpregset): Remove "register" attribute.
1531 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1533 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1535 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1536 * configure, config.in: Regenerated.
1538 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1540 (vaxbsd_supply_pcb): New function.
1541 (_initialize_vaxbsd_nat): New prototype and function.
1542 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1544 (LOADLIBES): New variable.
1545 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1546 (LOADLIBES): New variable.
1547 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1548 (LOADLIBES): New variable.
1549 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1551 2004-07-16 Andrew Cagney <cagney@gnu.org>
1553 * defs.h (event_loop_p): Replace variable declaration with macro,
1555 * main.c (captured_main): Delete options "-async" and "-noasync".
1556 (event_loop_p): Delete variable.
1557 * NEWS: Mention that "-async" and "-noasync" were removed.
1559 2004-07-16 Andrew Cagney <cagney@gnu.org>
1561 * remote-m32r-sdi.c: Re-indent.
1563 2004-07-16 Jim Blandy <jimb@redhat.com>
1565 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1566 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1567 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1568 missing MPC823 SPRs.
1569 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1570 incorrect. (This was corrected in GDB's register name tables on
1573 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1574 should be "esasrr" ("ESA Save and Restore Register").
1576 2004-07-16 Andrew Cagney <cagney@gnu.org>
1578 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1579 calls, no longer applicable. Update comments and rename parameter
1580 "step_frame" to "return_frame".
1582 2004-07-16 Andrew Cagney <cagney@gnu.org>
1584 * frame.c (fprint_field): New function.
1585 (fprint_frame_id): Use fprint_field.
1587 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1589 * ada-lang.c (ada_language_defn): Remove commented out code.
1591 2004-07-15 Jim Blandy <jimb@redhat.com>
1593 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1594 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1596 2004-07-14 Jim Blandy <jimb@redhat.com>
1598 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1600 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1602 * ppc-tdep.h (ppc_num_srs): New enum constant.
1604 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1605 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1606 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1607 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1608 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1609 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1610 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1611 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1612 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1613 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1614 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1615 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1616 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1617 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1618 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1619 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1620 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1621 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1622 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1623 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1624 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1625 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1626 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1627 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1628 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1629 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1630 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1631 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1632 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1633 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1634 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1635 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1636 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1637 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1638 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1639 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1640 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1641 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1642 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1643 special-purpose register numbers.
1645 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1646 manual mentions 'md_twb', but many mention 'm_twb', and at that
1647 point in the register list.)
1649 2004-07-14 Andrew Cagney <cagney@gnu.org>
1651 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1652 instead of "internal-error".
1654 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1656 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1657 that was inserted inside a comment.
1659 2004-07-10 Randolph Chung <tausq@debian.org>
1661 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1663 (hppa_hpux_push_dummy_code): New function.
1664 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1665 Set find_global_pointer method.
1667 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1669 * NEWS: Mention BSD libkvm interface.
1671 2004-07-10 Michael Snyder <msnyder@redhat.com>
1673 * symfile.c (generic_load): Comment typo.
1674 * stack.c (get_selected_block): Ditto.
1675 * regcache.c (regcache_cooked_read): Ditto.
1676 * monitor.c (monitor_debug): Ditto.
1677 * mips-tdep.c (mips_read_pc): Ditto.
1678 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1679 * gdb_mbuild.sh: Ditto.
1680 * gdbarch.sh: Ditto.
1683 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1685 * ada-tasks.c: Remove file.
1687 Remove ARI problems:
1689 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1692 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1694 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1695 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1696 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1697 (UMIN_OF_SIZE): Remove.
1698 (max_of_type): New function to replace orphan macro in gdbtypes.h
1699 (min_of_type): Ditto.
1700 (discrete_type_high_bound): Use max_of_type.
1701 (discrete_type_low_bound): Use min_of_type.
1702 (possible_user_operator_p): Move operator to beginning of line.
1703 (ada_is_variant_part): Ditto.
1704 (ensure_lval): Rewrite to avoid deprecated operations.
1705 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1706 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1707 (ada_enum_name): Remove assignments in 'if' statements.
1708 (build_ada_types): Add gdbarch parameter.
1709 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1710 with gdbarch_data_register_post_init.
1711 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1714 * ada-valprint.c (inspect_it): Remove declaration.
1715 (repeat_count_threshold): Remove declaration.
1716 (ada_print_floating): Remove assignments in 'if' statements.
1717 (print_str): Move operator to beginning of line.
1719 2004-07-08 Jim Blandy <jimb@redhat.com>
1721 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1723 2004-07-08 Bob Rossi <bob@brasko.net>
1725 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1727 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1729 * language.h (struct_language_defn): Add new function pointer:
1730 la_class_name_from_physname. Also add new prototype for
1731 language_class_name_from_physname.
1732 * language.c (language_class_name_from_physname): New function.
1733 (unk_lang_class_name): Ditto.
1734 (unknown_language_defn, auto_language_defn): Change
1735 to add unk_lang_class_name function pointer for
1736 la_class_name_from_physname.
1737 (local_language_defn): Ditto.
1738 * dwarf2read.c (guess_structure_name): Change to call
1739 language_class_name_from_physname.
1740 (determine_class_name): Ditto.
1741 * cp-support.c (class_name_from_physname): Renamed.
1742 (cp_class_name_from_physname): New name of function.
1743 * cp-support.h: Ditto.
1744 * c-lang.c (c_language_defn): Change to add NULL
1745 for class_name_from_physname function pointer.
1746 (cplus_language_defn): Change to add cp_class_name_from_physname.
1747 * jv-lang.c (java_class_name_physname): New function.
1748 (java_find_last_component): New static routine.
1749 (java_language_defn): Add java_class_name_from_physname pointer.
1750 * ada-lang.c (ada_language_defn): Change to add NULL
1751 for class_name_from_physname function pointer.
1752 * f-lang.c (f_language_defn): Ditto.
1753 * m2-lang.c (m2_language_defn): Ditto.
1754 * objc-lang.c (objc_language_defn): Ditto.
1755 * p-lang.c (pascal_language_defn): Ditto.
1756 * scm-lang.c (scm_language_defn): Ditto.
1758 2004-07-06 Andrew Cagney <cagney@gnu.org>
1760 Patch from Bart Robinson.
1761 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1762 (O_LARGEFILE): Define to 0, if not defined.
1764 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1766 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1767 <machine/pcb.h> and "bsd-kvm.h".
1768 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1769 (m68kbsd_supply_pcb): New function.
1770 (_initialize_m68kbsd_nat): New prototype and function.
1771 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1772 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1773 (LOADLIBES): New variable.
1774 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1775 (LOADLIBES): New variable.
1777 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1779 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1781 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1783 (bsd_kvm_cmdlist): New variable.
1784 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1785 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1786 command and "kvm proc" command.
1787 * Makefile.in (bsd-kvm.o): Update dependencies.
1789 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1791 * osabi.c: Update copyright year.
1792 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1793 notes if EI_OSABI is set to ELFOSABI_HPUX.
1795 2004-07-01 Michael Snyder <msnyder@redhat.com>
1797 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1798 that seems to have gotten whacked out of line.
1800 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1802 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1805 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1807 * ada-lang.c (decode_packed_array): Minor change to comment.
1808 (ada_value_slice_ptr): New function.
1809 (ada_value_slice): New function.
1810 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1811 test. Don't know why it is there.
1812 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1813 to avoid dereferencing huge arrays from which one is slicing.
1814 (empty_array): Correct to return an array rather than
1816 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1817 on empty arrays (let'em use 'FIRST instead).
1819 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1821 Address complaints from gdb_ari.sh:
1823 * ada-exp.y: Include gdb_string.h rather than string.h.
1824 (convert_char_literal): Reformat declaration.
1825 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1826 * ada-lex.l: Change use of free to xfree (the macro would do so
1827 anyway, but this is harmless).
1828 Include gdb_string.h rather than string.h.
1829 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1831 * ada-lang.c (parse): Remove K&Rism in parameter list.
1832 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1834 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1836 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1839 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1841 * alphabsd-nat.c: Update copyright year.
1842 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1844 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1846 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1847 (i386_cygwin_in_solib_call_trampoline): New function.
1848 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1849 and skip_trampoline_code gdbarch methods.
1851 2004-06-29 Jim Blandy <jimb@redhat.com>
1853 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1854 name actually used in the dependency lists.
1856 2004-06-29 Randolph Chung <tausq@debian.org>
1858 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1860 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1862 * win32-nat.c (child_pid_to_exec_file): New function.
1863 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1866 2004-06-28 Andrew Cagney <cagney@gnu.org>
1868 * defs.h (xstrvprintf): Declare.
1869 * utils.c (xstrvprintf): New function.
1870 (internal_vproblem, xstrprintf, xasprintf)
1871 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1872 * serial.c (serial_printf): Ditto.
1873 * complaints.c (vcomplaint): Ditto.
1875 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1877 * infcmd.c (attach_command): Move call to target_terminal_inferior
1878 behind loading symbol table.
1880 2004-06-28 Andrew Cagney <cagney@gnu.org>
1882 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1883 change - add back extern deprecated_ui_loop_hook declaration.
1885 2004-06-28 Andrew Cagney <cagney@gnu.org>
1887 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1889 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1890 (c_value_of_variable): Ditto.
1891 * utils.c (internal_vproblem): Ditto.
1892 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1893 * remote.c (add_packet_config_cmd): Ditto.
1894 * remote-rdp.c (rdp_set_command_line): Ditto.
1895 * regcache.c (regcache_dump): Ditto.
1896 * frv-tdep.c (new_variant, new_variant): Ditto.
1897 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1898 (fbsd_find_memory_regions): Ditto.
1899 * breakpoint.c (create_thread_event_breakpoint)
1900 (create_breakpoints): Ditto.
1901 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1902 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1904 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1906 * ada-lang.c: Re-indent file, with some massaging to help indent
1907 a bit when the result is otherwise really too ugly.
1909 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1911 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1912 code_addr_p and special_addr_p to 'unsigned int'.
1914 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1916 * i386v4-nat.c: Update copyright year and tweak comment.
1917 (regmap): Remove trailing comma.
1918 (supply_gregset): Rename local variable i to regnum. Call
1919 regcache_raw_supply instead of supply_register.
1920 (fill_gregset): Rename argument regno to regnum. Call
1921 regcache_raw_collect instead of regcache_collect.
1923 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1925 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1927 (frame_id_build, frame_id_build_special): Update comments.
1928 (frame_id_build_wild): New prototype.
1929 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1930 struct frame_id fields.
1931 (frame_id_build_wild): New function.
1932 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1934 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1936 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1939 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1941 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1943 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1945 * ada-lang.c: Re-indent file.
1947 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1949 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1950 (no_symtab_msg): Likewise.
1952 2004-06-27 Andreas Schwab <schwab@suse.de>
1954 * source.c: Fix whitespace.
1956 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1958 * configure.in: Include <sys/param.h> for td_pcb test.
1959 * configure: Regenerated.
1961 * i386nbsd-nat.c: New file.
1962 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1963 i386obsd-nat.c and i386obsd-tdep.c.
1964 (i386nbsd-nat.o): New dependency.
1965 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1967 (LOADLIBES): New variable.
1968 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1970 (LOADLIBES): New variable.
1972 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1973 (LOADLIBES): New variable.
1975 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1976 fetching from BSD_KVM_PADDR. Correctly lookup address for
1979 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1981 (amd64fbsd_supply_pcb): New funcion.
1982 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1984 2004-06-27 <david@streamline-computing.com>
1986 Partial fix for PR cli/1056.
1987 * valarith.c: Check for zero in division and remainder
1990 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1992 * i387-tdep.c: Remove excessive whitespace.
1994 2004-06-26 Andrew Cagney <cagney@gnu.org>
1996 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1997 * gdb-events.h, gdb-events.c: Re-generate.
1998 * tui/tui-hooks.c (tui_install_hooks): Update.
1999 (tui_remove_hooks): Update.
2000 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2002 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2004 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2005 (gregset_t, fpregset_t): Remove typedefs.
2006 (REG_OFFSET): Rename argument.
2007 (amd64bsd_r_reg_offset): Rename from reg_offset.
2008 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2010 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2012 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2014 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2016 * vax-tdep.c: Tweak comment.
2018 Add OpenBSD/hppa support.
2019 * NEWS (New native configurations): Mention OpenBSD/hppa.
2020 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2021 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2023 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2024 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2025 * configure.host: Add hppa*-*-openbsd*.
2026 * configure.tgt: Add hppa*-*-openbsd*.
2028 2004-06-25 Andrew Cagney <cagney@gnu.org>
2030 * defs.h (deprecated_ui_loop_hook): Deprecated.
2031 * wince.c (child_wait): Update.
2032 * win32-nat.c (child_wait): Update.
2033 * v850ice.c (v850ice_wait): Update.
2034 * top.c (deprecated_ui_loop_hook): Update.
2036 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2037 (do_unix_readchar): Update.
2038 * ser-tcp.c (net_open): Update.
2039 * remote-sim.c (gdb_os_poll_quit): Update.
2040 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2042 2004-06-24 Andrew Cagney <cagney@gnu.org>
2044 * defs.h (deprecated_pre_add_symbol_hook)
2045 (deprecated_post_add_symbol_hook): Deprecated.
2046 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2047 (symbol_file_add_with_addrs_or_offsets): Update references.
2049 2004-06-24 Andrew Cagney <cagney@gnu.org>
2051 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2052 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2053 * wince.c (ui_loop_hook): Delete extern declaration.
2054 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2055 * v850ice.c (ui_loop_hook): Delete extern declaration..
2056 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2057 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2058 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2059 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2060 ui_loop_hook declaration.
2062 2004-06-24 Andrew Cagney <cagney@gnu.org>
2064 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2065 entry_func_highpc fields.
2066 * objfiles.c (init_entry_point_info): Do not clear
2067 entry_func_lowpc and entry_func_highpc.
2068 (objfile_relocate): Do not relocate entry_func_lowpc and
2070 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2072 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2074 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2075 entry_func_lowpc and entry_func_highpc with call to
2078 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2080 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2081 quad-precision floating point arguments in registers.
2083 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2085 From Michael Mueller <m.mueller99@kay-mueller.de>:
2086 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2089 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2091 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2093 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2094 untriggered watchpoints to a separate if clause. Update function
2095 comment regarding STOPPED_BY_WATCHPOINT argument.
2097 2004-06-22 Jim Blandy <jimb@redhat.com>
2099 * gdbarch.sh: Doc fix.
2101 2004-06-21 Martin Hunt <hunt@redhat.com>
2102 Kevin Buettner <kevinb@redhat.com>
2104 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2105 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2106 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2107 to set_gdbarch_sp_regnum(). Use cooked register number.
2108 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2110 2004-06-21 Andrew Cagney <cagney@gnu.org>
2112 * gdbarch.sh: When the macro field is empty, do not generate a
2113 macro definition. When the macro field is "=", generate the macro
2114 name from the upper-case function name.
2115 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2116 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2117 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2118 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2119 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2120 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2121 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2122 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2123 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2124 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2125 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2126 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2127 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2128 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2129 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2130 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2131 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2132 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2133 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2134 (DEPRECATED_USE_STRUCT_CONVENTION)
2135 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2136 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2137 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2138 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2139 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2140 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2141 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2142 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2143 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2144 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2145 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2146 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2147 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2148 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2149 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2150 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2151 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2152 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2154 2004-06-21 Andrew Cagney <cagney@gnu.org>
2156 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2157 macro name, and the function rather than macro value. Only wrap
2158 macro print statements in #ifdef. Move format logic to where it
2160 * gdbarch.c: Re-generate.
2162 * gdbarch.sh (read): Delete "print_p" and "description", add
2163 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2164 Delete references to print_p.
2165 (TARGET_ARCHITECTURE): Delete print predicate.
2166 * gdbarch.c: Re-generate.
2168 * gdbarch.sh: Check that multi-arch methods do not provide a
2170 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2171 (print_registers_info, print_float_info, print_vector_info)
2172 (adjust_breakpoint_address, remote_translate_xfer_address)
2173 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2174 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2175 name from the multi-arch definition.
2177 2004-06-20 Andrew Cagney <cagney@gnu.org>
2179 * gdbarch.sh: Sort by the function, instead of macro name.
2180 * gdbarch.c: Re-generate.
2182 2004-06-20 Andrew Cagney <cagney@gnu.org>
2184 * gdbarch.sh: Use the function, instead of macro name in
2185 errors and the log file.
2186 (return_value): Remove stray ":" in spec.
2188 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2189 * gdbarch.h, gdbarch.c: Re-generate.
2190 * Makefile.in (arch-utils.o): Update dependencies.
2191 * values.c (using_struct_return): Move code calling
2192 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2193 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2194 to legacy_return_value, simplify.
2195 * infcmd.c (print_return_value): Move code calling
2196 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2197 to legacy_return_value, simplify.
2198 * infcall.c (call_function_by_hand): Move code calling
2199 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2200 * arch-utils.c: Update copyright. Include "gdbcore.h".
2201 (legacy_return_value): New function.
2202 * arch-utils.h: Update copyright.
2203 (legacy_return_value): Declare.
2205 2004-06-20 Andrew Cagney <cagney@gnu.org>
2207 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2208 * gdbarch.h, gdbarch.c: Re-generate.
2209 * values.c (using_struct_return): Update call.
2210 * mcore-tdep.c: Update comment.
2211 * infcall.c (call_function_by_hand): Update comment.
2212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2213 * arch-utils.h (always_use_struct_convention): Update.
2214 * v850-tdep.c (v850_gdbarch_init): Update.
2215 * sh64-tdep.c (sh64_gdbarch_init): Update.
2216 * sh-tdep.c (sh_gdbarch_init): Update.
2217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2218 * mips-tdep.c (mips_gdbarch_init): Update.
2219 * mcore-tdep.c (mcore_gdbarch_init): Update.
2220 * m32r-tdep.c (m32r_gdbarch_init): Update.
2221 * ia64-tdep.c (ia64_gdbarch_init): Update.
2222 * h8300-tdep.c (h8300_gdbarch_init): Update.
2223 * frv-tdep.c (frv_gdbarch_init): Update.
2224 * cris-tdep.c (cris_gdbarch_init): Update.
2225 * arm-tdep.c (arm_gdbarch_init): Update.
2226 * alpha-tdep.c (alpha_gdbarch_init): Update.
2228 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2230 * PROBLEMS: Add more specific information, and a work-around,
2233 2004-06-18 Andrew Cagney <cagney@gnu.org>
2235 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2236 * gdbarch.h, gdbarch.c: Re-generate.
2237 * ada-lang.c (ada_finish_decode_line_1): Update.
2238 * infrun.c (handle_inferior_event): Update.
2239 * infcall.c (find_function_addr): Update.
2240 * linespec.c (minsym_found): Update.
2241 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2243 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2244 * cli/cli-cmds.c (disassemble_command): Update.
2245 * vax-tdep.c (vax_gdbarch_init): Update.
2247 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2249 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2251 2004-06-17 Andrew Cagney <cagney@gnu.org>
2253 GDB 6.1.1 released from the GDB 6.1 branch.
2254 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2257 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2260 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2261 operation as a uleb128. Found by Michael Coulter.
2263 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2265 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2267 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2268 to ada-lang.h; this is needed to be able to implement the kill command
2271 (task_entry): Ditto.
2273 (ada_build_task_list): Ditto.
2275 * ada-lang.c: Conditionalize routines and data structures related
2276 to breakpoints, exceptions, completion, and symbol caching on
2277 GNAT_GDB, since these are not yet used in the submitted public sources.
2278 (ada_main_name): Editorial: Move definition out of exception-related
2281 2004-06-15 Andrew Cagney <cagney@gnu.org>
2283 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2284 deprecated_pc_in_call_dummy.
2286 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2288 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2289 bfd_get_section_size_before_reloc or _raw_size.
2290 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2291 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2292 (dwarf2_read_section): Likewise.
2293 * elfread.c (elf_locate_sections): Likewise.
2294 * gcore.c (derive_heap_segment): Likewise.
2295 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2296 * remote-e7000.c (e7000_load): Likewise.
2297 * remote-m32r-sdi.c (m32r_load): Likewise.
2298 * remote-mips.c (mips_load_srec): Likewise.
2299 (pmon_load_fast): Likewise.
2300 * remote.c (compare_sections_command): Likewise.
2301 * symfile.c (add_section_size_callback): Likewise.
2302 (load_section_callback): Likewise.
2303 (pc_in_unmapped_range): Likewise.
2304 (pc_in_mapped_range): Likewise.
2305 (sections_overlap): Likewise.
2306 (list_overlays_command): Likewise.
2307 (simple_overlay_update_1): Likewise.
2308 (simple_overlay_update): Likewise.
2309 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2310 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2312 2004-06-14 Randolph Chung <tausq@debian.org>
2314 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2315 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2317 (hppa_hpux_inferior_created): New function.
2318 (hppa_hpux_init_abi): Register observer.
2319 * symfile.c (hp_cxx_exception_support_initialized)
2320 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2321 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2323 2004-06-14 Randolph Chung <tausq@debian.org>
2325 * MAINTAINERS (Write After Approval): Alphabetize my entry
2328 2004-06-14 Andrew Cagney <cagney@gnu.org>
2330 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2331 testsuite maintainer.
2333 2004-06-13 Andrew Cagney <cagney@gnu.org>
2335 * infcmd.c (print_return_value): Fix logic, allow
2336 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2338 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2339 defining any macros.
2340 * gdbarch.h: Re-generate.
2342 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2343 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2344 * gdbarch.h: Re-generate.
2346 * values.c (generic_use_struct_convention): Don't check gcc_p.
2348 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2349 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2350 * gdbarch.h, gdbarch.c: Regenerate.
2351 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2352 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2354 deprecated_max_register_raw_size and
2355 deprecated_max_register_virtual_size.
2356 * v850-tdep.c (v850_gdbarch_init): Ditto.
2357 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2358 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2360 * cris-tdep.c (cris_gdbarch_init): Ditto.
2362 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2363 * gdbarch.h, gdbarch.c: Re-generate.
2364 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2365 (m68hc11_use_struct_convention): Delete function.
2366 (m68hc11_extract_struct_value_address): Delete function.
2367 (m68hc11_return_value): New function.
2368 (m68hc11_gdbarch_init): Instead of store_return_value,
2369 extract_return_value, return_value_on_stack,
2370 deprecated_extract_struct_value_address and use_struct_convention,
2372 * values.c (using_struct_return): Do not call
2373 RETURN_VALUE_ON_STACK.
2374 * arch-utils.h (generic_return_value_on_stack_not): Delete
2376 * arch-utils.c (generic_return_value_on_stack_not): Delete
2379 2004-06-12 Andrew Cagney <cagney@gnu.org>
2381 * values.c (register_value_being_returned): Delete function.
2382 * infcmd.c (legacy_return_value): Delete function.
2383 * infcall.c (call_function_by_hand): Inline
2384 "register_value_being_returned", simplify.
2385 * values.c (using_struct_return): Update comment, refer to
2386 print_return_value instead of register_value_being_returned.
2387 * infcmd.c (print_return_value): Inline calls to
2388 register_value_being_returned and legacy_return_value. Simplify.
2390 2004-06-11 Randolph Chung <tausq@debian.org>
2392 * somread.c (som_symtab_read): Exclude gcc local symbols.
2394 2004-06-11 Randolph Chung <tausq@debian.org>
2396 * infrun.c (handle_inferior_event): Handle the case when a
2397 trampoline ends up in the runtime resolver, and if the trampoline
2398 has no name. Rearrange the code so that all the trampoline
2399 processing happens before other step-out-of-range handling.
2401 2004-06-11 Martin Hunt <hunt@redhat.com>
2403 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2406 2004-06-10 Andrew Cagney <cagney@gnu.org>
2408 * blockframe.c (legacy_inside_entry_func): Delete.
2409 (legacy_frame_chain_valid): Inline call to
2410 legacy_inside_entry_func, simplify.
2412 2004-06-10 Bob Rossi <bob@brasko.net>
2414 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2415 * dwarf2read.c (partial_die_info): Add dirname field.
2416 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2417 (read_partial_die): Save away DW_AT_comp_dir.
2418 * defs.h (symtab_to_filename): Removed.
2419 * source.c (find_and_open_source): Added.
2420 (open_source_file): Just calls find_and_open_source.
2421 (symtab_to_filename): Removed.
2422 (symtab_to_fullname, psymtab_to_fullname): Added.
2423 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2424 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2426 * symtab.h (partial_symtab): Add dirname field.
2427 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2428 (mi_cmd_file_list_exec_source_file): Call new function
2429 symtab_to_fullname to find fullname.
2430 (mi_cmd_file_list_exec_source_files): Added.
2431 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2432 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2434 2004-06-10 Andrew Cagney <cagney@gnu.org>
2436 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2437 to generic_use_struct_convention, the default value.
2439 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2442 * ns32k-tdep.c (ns32k_push_arguments): New function.
2443 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2444 * infcall.c (call_function_by_hand): Call error instead of
2445 legacy_push_arguments.
2446 * value.h (legacy_push_arguments): Delete declaration.
2447 * valops.c (legacy_push_arguments): Delete function.
2448 (value_push): Delete function.
2450 2004-06-10 Brian Ford <ford@vss.fsi.com>
2452 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2453 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2455 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2457 2004-06-10 Andrew Cagney <cagney@gnu.org>
2459 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2460 * gdbarch.h, gdbarch.c: Re-generate.
2461 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2463 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2464 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2465 deprecated_pc_in_call_dummy instead of
2466 DEPRECATED_PC_IN_CALL_DUMMY.
2467 (arm_skip_prologue): Ditto.
2468 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2469 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2470 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2471 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2473 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2474 (sh64_init_extra_frame_info, sh64_get_saved_register)
2475 (sh64_pop_frame): Ditto.
2476 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2477 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2478 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2479 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2480 (h8300_pop_frame): Ditto.
2481 * blockframe.c (legacy_inside_entry_func)
2482 (legacy_frame_chain_valid): Ditto.
2483 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2484 to deprecated_pc_in_call_dummy.
2486 2004-06-09 Andrew Cagney <cagney@gnu.org>
2488 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2489 provide a default value.
2490 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2491 * gdbarch.h, gdbarch.c: Re-generate.
2492 * arch-utils.c (generic_convert_register_p): Rename
2493 legacy_convert_register_p
2494 (legacy_register_to_value, legacy_value_to_register): Delete
2496 * arch-utils.h (generic_convert_register_p): Rename
2497 legacy_convert_register_p.
2498 (legacy_register_to_value, legacy_value_to_register): Delete
2501 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2502 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2503 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2504 * gdbarch.h, gdbarch.c: Re-generate.
2505 * infcmd.c (default_print_registers_info): Simplify.
2506 * findvar.c (value_of_register): Simplify.
2507 * mi/mi-main.c (get_register): Simplify.
2508 * arch-utils.c (legacy_convert_register_p): Always return 0.
2509 (legacy_register_to_value, legacy_value_to_register): Always call
2512 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2513 #ifdef CLEAR_INSN_CACHE code.
2514 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2515 Delete #ifdef CLEAR_DEFERRED_STORES code.
2517 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2519 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2521 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2523 * config/mips/mipsv4.mh: Delete file.
2525 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2527 (hpread_adjust_stack_address): Delete declaration.
2529 2004-06-08 Andrew Cagney <cagney@gnu.org>
2531 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2532 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2533 PTRACE_ATTACH / PTRACE_DETACH available call error.
2534 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2535 * infttrace.c (update_thread_state_after_attach, attach, detach):
2536 Remove #ifdef wrappers.
2537 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2538 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2539 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2540 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2541 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2542 * config/nm-linux.h (ATTACH_DETACH): Delete.
2543 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2544 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2545 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2546 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2547 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2549 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2551 * configure.in: Set $configdir to the right OS specific value.
2552 Use value when setting $tcldir and $tkdir.
2553 * configure: Regenerate.
2555 2004-06-06 Paul Brook <paul@codesourcery.com>
2557 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2560 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2562 * ada-lang.c (lookup_symbol_in_language): New function to allow
2563 re-use of another language's symbol lookup code. (Placed here
2564 temporarily while Ada support is being integrated into the public
2566 (restore_language): New auxiliary function for
2567 lookup_symbol_in_language.
2568 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2569 temporarily while Ada support is being integrated into the public
2572 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2574 * Makefile.in (check//%): New.
2576 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2577 (mn10300_store_return_value): Rewrite.
2578 (mn10300_type_align): New.
2579 (mn10300_use_struct_convention): Rewrite.
2580 (mn10300_return_value): New, using all of the above.
2581 (mn10300_pop_frame_regular): Add saved_regs_size.
2582 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2584 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2585 regs if PC is on movm.
2587 2004-06-07 Jim Blandy <jimb@redhat.com>
2589 Add native Linux support for the PowerPC E500.
2590 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2591 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2592 all architectures except the E500.
2593 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2595 (struct gdb_evrregset_t): New type.
2596 (have_ptrace_getsetevrregs): New variable.
2597 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2598 fetch_spe_registers): New functions.
2599 (fetch_register): Call fetch_spe_register as appropriate.
2600 Assert that we're only passed raw register numbers.
2601 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2602 Don't fetch gprs if they're pseudoregisters.
2603 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2604 store_spe_registers): New functions.
2605 (store_register): Call store_spe_register as appropriate.
2606 Assert that we're only passed raw register numbers.
2607 (store_ppc_registers): Call store_spe_registers as appropriate.
2608 Don't store gprs if they're pseudoregisters.
2610 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2612 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2613 struct if one exists, even if we are dealing with a zombie thread.
2615 2004-06-07 Andrew Cagney <cagney@gnu.org>
2617 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2618 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2619 Rename PC_REQUIRES_RUN_BEFORE_USE.
2620 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2623 2004-06-07 Randolph Chung <tausq@debian.org>
2625 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2626 unwinding after sp has been saved to the stack but before the end
2627 of the prologue, and after the fp has been modified but before it has
2628 been saved to the stack.
2629 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2630 Remove superfluous definitions.
2631 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2633 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2635 Committed by Randolph Chung.
2636 * hppa-linux-nat.c: Include the correct version of the header file
2637 depending on the kernel version.
2639 2004-06-06 Randolph Chung <tausq@debian.org>
2641 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2642 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2644 2004-06-06 Randolph Chung <tausq@debian.org>
2646 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2647 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2648 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2649 * hppa-tdep.c (hppa_symbol_address): New function definition.
2650 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2652 2004-06-06 Randolph Chung <tausq@debian.org>
2654 * hppa-tdep.h (struct value): Forward declaration.
2655 (gdbarch_tdep): Define tdep find_global_pointer method.
2656 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2657 associated with the function we are trying to call, and write it
2659 (hppa32_convert_from_funct_ptr_addr): New function.
2660 (hppa_find_global_pointer): New function.
2661 (hppa_gdbarch_init): Set default find_global_pointer method; set
2662 convert_from_func_ptr_addr method.
2663 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2664 (hppa_linux_init_abi): Set find_global_pointer method.
2665 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2667 2004-06-06 Randolph Chung <tausq@debian.org>
2669 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2670 to struct value *function.
2671 * gdbarch.c: Regenerate.
2672 * gdbarch.h: Likewise.
2673 * infcall.c (call_function_by_hand): Pass entire function value
2676 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2677 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2678 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2679 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2680 * arm-tdep.c (arm_push_dummy_call): Likewise.
2681 * avr-tdep.c (avr_push_dummy_call): Likewise.
2682 * cris-tdep.c (cris_push_dummy_call): Likewise.
2683 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2684 * frv-tdep.c (frv_push_dummy_call): Likewise.
2685 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2686 * hppa-tdep.c (hppa32_push_dummy_call)
2687 (hppa64_push_dummy_call): Likewise.
2688 * i386-tdep.c (i386_push_dummy_call): Likewise.
2689 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2690 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2691 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2692 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2693 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2694 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2695 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2696 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2697 (ppc64_sysv_abi_push_dummy_call): Likewise.
2698 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2699 (ppc64_sysv_abi_push_dummy_call): Likewise.
2700 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2701 * s390-tdep.c (s390_push_dummy_call): Likewise.
2702 * sh-tdep.c (sh_push_dummy_call_fpu)
2703 (sh_push_dummy_call_nofpu): Likewise.
2704 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2705 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2706 * vax-tdep.c (vax_push_dummy_call): Likewise.
2708 2004-06-04 Jim Blandy <jimb@redhat.com>
2710 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2711 gdbarch argument to register_size.
2713 * rs6000-tdep.c (rs6000_store_return_value): Use
2714 regcache_cooked_write_part instead of
2715 deprecated_write_register_bytes.
2716 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2717 not gdbarch_deprecated_store_return_value.
2719 * ppc-linux-nat.c (store_register, fetch_register): Remove
2720 incorrect assertions. Simplify and generalize handling of
2721 transfers whose sizes are not multiples of, or less than, sizeof
2724 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2726 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2727 as a new thread event.
2728 * thread-db.c (thread_get_info_callback): If the thread is a
2729 zombie, return TD_THR_ZOMBIE.
2730 (thread_from_lwp): If thread_get_info_callback returns
2731 TD_THR_ZOMBIE, check if the thread is still on the thread list
2732 and return a -1 ptid if not found.
2733 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2734 change the status to TARGET_WAITKIND_SPURIOUS.
2736 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2738 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2739 double values in little endian mode.
2741 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2743 Committed by Andrew Cagney.
2744 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2745 after last enum constant to avoid error from IBM C
2748 2004-06-02 Jim Blandy <jimb@redhat.com>
2750 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2751 to 'message', and make it local to the lone block that uses it.
2753 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2755 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2757 * ada-exp.y: Update copyright notice.
2760 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2761 SPECIAL_VARIABLE and unify the treatment of these cases.
2763 (write_attribute_call0): Remove.
2764 (write_attribute_call1): Remove.
2765 (write_attribute_calln): Remove.
2766 (save_qualifier): Add missing semicolon.
2768 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2769 temporarily disabled to allow compilation with FSF head version.
2771 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2772 use individual operators (OP_*) for all attributes.
2773 (exp syntax): Use write_int.
2774 Handle STRING literals with OP_STRING.
2775 (variable syntax): Add limit parameter to calls to
2776 write_object_renaming.
2778 (temp_parse_space): New definition to hold entities that need
2779 only live until the next call to ada_parse.
2780 (string_to_operator): Rename fields of ada_opname_table entries.
2782 (write_var_from_sym): Record block.
2783 (write_var_from_name): Minor reformatting.
2784 Make sure saved name is properly encoded in the case of multiple
2785 matches, and set its language to Ada.
2787 Modify to indicate unresolved name as symbol in the UNRESOLVED
2788 namespace, allocated in temp_parse_space.
2789 (write_int): New function.
2791 (write_object_renaming): Add max_depth parameter to limit
2792 chains of object renamings.
2793 Handle case where root of renaming expression is itself a renaming.
2794 Use temp_parse_space for temporary name buffer.
2795 Handle renamings to dereferenced pointers (___XEXA suffices).
2797 (ada_parse, yyerror, string_to_operator,
2798 write_var_from_sym, write_var_from_name, write_attribute_call0,
2799 write_attribute_call1, write_attribute_calln,
2800 write_object_renaming): Protoize.
2802 (_initialize_ada_exp): New function.
2804 * ada-lang.c: Update copyright notice.
2805 General terminology change to conform to GNAT compiler usage:
2806 mangle => encode, demangle => decode
2807 Include gdb_obstack.h.
2816 (ADA_RETAIN_DOTS): Make sure this is defined.
2817 (TRUNCATION_TOWARDS_ZERO): Define.
2818 (struct string_vector): Define.
2819 (unresolved_names): Remove definition.
2820 (xnew_string_vector): New function.
2821 (string_vector_append): New function.
2822 (extract_string): Make static.
2823 (ada_unqualified_name): New function.
2824 (add_angle_brackets): New function.
2825 (function_name_from_pc): New function.
2826 (place_on_stack): Rename to ensure_lval.
2828 (ensure_lval): Renamed from place_on_stack.
2829 Make identity on lvals.
2831 (is_nonfunction): New interface.
2832 Only symbols in LOC_CONST class can be enumerals.
2833 (fill_in_ada_prototype): Remove; now independent of language.
2834 (add_defn_to_vec): Add obstack and symtab arguments.
2835 Use obstack to hold collected definitions.
2836 (num_defns_collected): New function.
2837 (defns_collected): New function.
2838 (ada_resolve_subexp): Rename to resolve_subexp.
2839 (resolve_subexp): Renamed from ada_resolve_subexp.
2840 (ada_op_name): Return non-const result.
2841 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2844 (to_fixed_array_type): Add declaration.
2845 (coerce_unspec_val_to_type): Remove offset parameter.
2846 (find_sal_from_funcs_and_line): New interface.
2847 (find_line_in_linetable): Ditto.
2849 (all_sals_for_line): Rename to ada_sals_for_line and make
2851 Add new parameter. When set, do not ask the user to choose the
2852 instance, but use the first one found instead.
2853 Use given line number in returned sals.
2855 Skip the prologue if funfirstline is set.
2856 Correct for memory leak when 0 lines found.
2858 (value_pos_atr): Use pos_atr.
2859 (pos_atr): New function.
2860 (standard_lookup): Add block parameter.
2862 (makeTimeStart): Remove declaration and uses.
2863 (makeTimeStop): Remove declaration and uses.
2865 (ada_completer_word_break_characters): Allow for VMS.
2866 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2867 (raise_sym_name): New constant.
2868 (raise_unhandled_sym_name): New constant.
2869 (raise_assert_sym_name): New constant.
2870 (process_raise_exception_name): New constant.
2871 (longest_exception_template): New constant.
2872 (warning_limit): New variable to limit warnings during expression
2874 (warnings_issued): New variable to keep track of warnings issued.
2875 (known_runtime_file_name_patterns): New constant.
2876 (known_auxiliary_function_name_patterns): New constant.
2877 (symbol_list_obstack): New variable.
2879 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2880 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2881 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2882 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2883 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2884 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2885 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2886 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2889 (ada_get_field_index): New function.
2890 (lim_warning): New function.
2891 (ada_translate_error_message): New function.
2892 (MAX_OF_SIZE): New function.
2893 (MIN_OF_SIZE): New function.
2894 (UMAX_OF_SIZE): New function.
2895 (UMIN_OF_SIZE): New function.
2896 (discrete_type_high_bound): New function.
2897 (discrete_type_low_bound): New function.
2898 (base_type): New function.
2899 (do_command): Remove.
2901 (ada_update_initial_language): Use language_ada, not language_unknown.
2902 (ada_encode): Renamed from ada_mangle.
2903 Obey ADA_RETAIN_DOTS.
2904 (ada_decode): Renamed from ada_demangle.
2905 Update coding conventions.
2906 (decoded_names_store): New hash table.
2907 (ada_decode_symbol): New function.
2908 (ada_la_decode): New function.
2910 (modify_general_field): Correct computations of offset and bit
2912 (desc_base_type): Handle ref types, too.
2913 (ada_is_direct_array_type): New function.
2915 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2916 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2917 (ada_is_bogus_array_descriptor,ada_type_of_array,
2918 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2919 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2920 ada_is_array_descriptor_type.
2922 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2923 (ada_is_packed_array_type): Handle pointers or
2924 references to packed arrays as well.
2925 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2926 (decode_packed_array_type): Search for the packed array type
2927 symbol in the currently selected block and associated
2929 Use lookup_symbol again.
2931 (decode_packed_array): Handle pointers and references.
2932 Update call to coerce_unspec_val_to_type.
2933 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2934 (ada_value_primitive_packed_val): Improve comment.
2936 (ada_index_type): Substitute int type for "undefined".
2937 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2938 ada_array_langth, ada_is_string_type): Use renamed
2939 ada_is_simple_array_type.
2940 (empty_array): New function.
2942 (ada_resolve): Rename to resolve.
2943 (resolve): Make static.
2944 Call renamed resolve_subexp.
2946 (ada_resolve_subexp): Rename to resolve_subexp.
2947 (resolve_subexp): Update comment.
2948 Decomment disabled code.
2949 Add LOC_COMPUTED* cases.
2950 Modify to use temporary struct symbols (marked as being in
2951 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2952 OP_UNRESOLVED_VALUE.
2953 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2956 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2957 Use new ada_lookup_symbol_list interface.
2958 Use new ada_resolve_function interface.
2959 Remove OP_TYPE case.
2961 (ada_args_match): Idiot proof against null actuals.
2962 Use intermediate variables to clarify.
2963 (ada_resolve_function): Update comment and interface.
2964 (mangled_ordered_before): Rename to encoded_ordered_before and
2966 (sort_choices): Update comment and interface.
2967 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2968 (user_select_syms): New interface.
2969 Use new sort_choices interface.
2970 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2971 (possible_user_operator_p): Idiot-proof against null values.
2972 (ada_simple_renamed_entity): Don't make cleanup; rely on
2973 caller to free result string.
2974 Remove const from return type.
2975 (make_array_descriptor): Rename uses of place_on_stack to
2977 Make sure that arrays are on stack.
2979 (HASH_SIZE): Define.
2980 (struct cache_entry): Define.
2981 (cache_space): Define.
2983 (clear_ada_sym_cache): New function.
2984 (find_entry): New function.
2985 (lookup_cached_symbol): New function.
2986 (defn_vector_size): Define.
2987 (cache_symbol): New function.
2988 (defn_symbols): Remove.
2990 (standard_lookup): Use lookup_symbol_in_language to get effect of
2994 (symbol_completion_match): New function.
2995 (symbol_completion_add): New function.
2996 (ada_make_symbol_completion_list): New function.
2998 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2999 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3000 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3001 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3003 (ada_lookup_simple_minsym): New function.
3004 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3006 (add_symbols_from_enclosing_procs): New interface.
3007 Conditionalize more helpfully.
3008 Don't bother if program isn't running.
3009 Use new interface to get_frame_block.
3010 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3012 (remove_extra_symbols): New interface.
3013 (xget_renaming_scope): New function.
3014 (is_package_name): New function.
3015 (renaming_is_visible): New function.
3016 (remove_out_of_scope_renamings): New function.
3018 (ada_lookup_symbol_list): New interface.
3019 Properly reinitialize the symbol list obstack.
3020 Don't call add_symbols_from_enclosing_procs if we start from a
3021 static or global block.
3022 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3023 add_symbols_from_enclosing_procs.
3024 Add symtab data to cached entries.
3025 Handle symbols prefixed with
3026 "standard__" specially; strip prefix and don't look in local symbols.
3027 Do not include out of scope renaming symbols in list of
3029 Add const to block parameter.
3030 Move check for non-local, non-global symbols earlier.
3031 Remove timing stuff.
3032 (ada_lookup_symbol): New interface.
3033 Find symtab as well.
3034 (ada_lookup_symbol_nonlocal): New function.
3036 (is_name_suffix): Enhance suffix detection to recognize
3037 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3038 (is_dot_digits_suffix): New function.
3039 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3041 (ada_add_block_symbols): New interface. Use obstack to return results
3042 in a vector of struct ada_symbol_infos. Add symtab argument.
3043 Use new interface to add_defn_to_vec.
3044 Remove calls to fill_in_ada_prototype.
3045 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3047 (ada_finish_decode_line_1): Add const qualification to local to fix
3049 Start looking in static block for functions to avoid attempts
3050 to search frame chain for up-level variables.
3051 Adapt to new ada_sals_for_line interface.
3052 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3053 Handle quoting of the function name inside the spec string.
3054 Skip prologue when funfirstline is set and update the
3055 function documentation to that effect.
3057 (debug_print_lines, debug_print_block, debug_print_blocks,
3058 debug_print_symtab): Remove.
3060 (ada_main_name): New function.
3061 (ada_exception_breakpoint_type): New function.
3062 (is_known_support_routine): New function.
3063 (ada_find_printable_frame): Renamed from find_printable_frame and made
3065 Remove level parameter.
3066 Use new interface to select_frame.
3068 (begin_command): Remove.
3069 (ada_adjust_exception_stop): New function.
3070 (ada_print_exception_stop): New function.
3071 (exception_name_from_cond): New function.
3072 (ada_report_exception_break): Replace disabled code with
3073 conditionalization on GNAT_GDB.
3074 Get the exception name from the condition string.
3075 Remove and move functionality into new functions
3076 ada_print_exception_breakpoint_task and
3077 ada_print_exception_breakpoint_nontask.
3078 (error_breakpoint_runtime_sym_not_found): New function.
3079 (is_runtime_sym_defined): New function.
3080 (ada_breakpoint_rewrite): Uncomment suppressed code.
3081 Use symbolic error-message and runtime-symbol names.
3082 Surround runtime symbol names in quotes.
3083 Allow non-specific breakpoints on exceptions and assertions before
3086 (ada_is_tagged_type): Add parameter.
3087 (ada_is_tag_type): New function.
3088 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3089 (ada_variant_discrim_type): Ditto.
3090 (value_tag_from_contents_and_address): New function.
3091 (type_from_tag): New function.
3092 (struct tag_args): New structure used to communicate with
3094 (ada_tag_name_1): New function.
3095 (ada_tag_name): New function.
3097 (ada_scan_number): Update comment.
3098 (find_struct_field): New function.
3099 (ada_search_struct_field): Make static.
3100 (ada_value_struct_elt): New version that returns references when
3101 given pointers or references to structs.
3102 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3103 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3105 (ada_value_ind): Use new ada_to_fixed_value interface.
3106 (ada_coerce_ref): Ditto.
3107 (field_offset): Remove.
3109 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3110 (ada_find_renaming_symbol): New function.
3111 (ada_prefer_type): Prefer named types over unnamed ones.
3112 (variant_field_index): New function.
3113 (contains_variant_part): Removed: subsumed by variant_field_index.
3114 (ada_template_to_fixed_record_type): New function, mostly from
3115 template_to_fixed_record_type.
3116 (template_to_fixed_record_type):
3117 Do not scan the type fields beyond the last one; prevents a
3119 Handle case where variant field is listed BEFORE discriminant it
3121 Fix calculation of record length when bit length is
3122 not evenly divisible by char length.
3123 Move code to ada_template_to_fixed_record_type and call it.
3125 (template_to_static_fixed_type): Revise comment.
3126 Modify to work on ordinary record types as well as templates,
3127 so as to handle fields that use ___XVE or ___XVU encodings.
3128 (to_record_with_fixed_variant_part): Fill out comment.
3129 Initialize C++ stuff in right type.
3130 Allow case where DVAL is null.
3131 Handle case where variant field is not last.
3132 Fix typo concerning record length.
3133 (to_fixed_record_type): Decomment disabled code.
3134 (to_fixed_record_type): Use variant_field_index instead of
3135 contains_variant_part.
3136 (to_fixed_variant_branch_type): Ditto.
3137 (to_fixed_array_type): Decomment disabled code.
3138 (ada_to_fixed_type): Convert tagged types to the specific type.
3139 Deactivate the size-check for array types in order to avoid
3140 some false size alarms.
3141 (to_static_fixed_type): Decomment disabled code.
3142 Modify to call template_to_static_fixed_type
3143 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3144 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3145 Remove valaddr argument, as it is never really used.
3146 (ada_to_fixed_value): Change interface to act on single struct value*
3148 (adjust_pc_past_prologue): New function.
3149 (ada_attribute_name): Modify to take enum exp_opcode argument.
3151 (ada_enum_name): Recognize new homonym-distinguishing convention.
3152 Adjust local variable's type to remove compiler warning.
3153 Fix a small problem in the part that unqualifies the enumeration name.
3154 (ada_value_binop): New function.
3155 (ada_value_equal): New function.
3157 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3158 Don't give error message when not doing normal evaluation
3159 and a tagged type doesn't seem to contain a structure member.
3160 Give error message for packed arrays.
3161 For indexing arrays, handle pointers to packed arrays correctly.
3162 Handle case of 'first and 'last attributes of bare integral type
3163 without encoded subtype info.
3164 Remove some unnecessary casts.
3165 Fix uninitialized value of type in computing 'first, 'last, or 'length
3167 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3168 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3170 Attributes are now exp_opcode values.
3171 Correct treatment of 'modulus.
3172 Better error message for taking 'length of wrong kind of type;
3174 Change EVAL_NORMAL to noside for consistency.
3175 Use ada_value_binop for DIV, MOD, REM.
3176 Make special case out of array of length 0, since an argument
3177 of 0 upsets some platforms' malloc.
3178 Use OP_STRING instead of OP_ARRAY.
3179 For slice, add check that we have an array type before extracting
3180 a slice out of it. Avoids a SEGV.
3181 When evaluating an array slice, if the array type is a reference to
3182 an aligner type, then replace the aligner type by the actual type.
3183 Decomment disabled code.
3184 Remove some dead code.
3185 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3186 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3187 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3188 and UNOP_MBR to UNOP_IN_RANGE.
3189 If an array type has a parallel ___XVE type, then use it.
3190 Turn arrays into pointers for lvalue arrays.
3191 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3192 bounds error and handle 0-length slices.
3194 When selecting fields, apply ada_to_fixed_value (because the fields
3195 might have ___XVU or ___XVE encodings even if not dynamic.)
3196 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3197 (ada_is_system_address_type): New function.
3199 (get_var_value): Use new interface to ada_lookup_symbol_list.
3200 (get_int_var_value): New interface.
3201 (to_fixed_range_type): Allow unknown bound, with warning.
3202 (ada_is_modular_type): Decomment disabled code.
3203 (ADA_OPERATORS): New definition.
3204 (ada_operator_length): New function.
3205 (ada_expr_op_name): New function.
3206 (ada_forward_operator_length): New function.
3207 (ada_dump_subexp_body): New function.
3208 (ada_print_subexp): New function.
3209 (ada_exp_descriptor): New constant.
3210 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3211 (ada_language_defn): Add ada_exp_descriptor entry.
3212 Change ada_parse => parse.
3213 Add post-parser entry.
3214 Use ada-specific non-local symbol lookup.
3215 Don't use C-style arrays.
3216 String lower-bound is 1.
3217 Decomment disabled code.
3218 (parse): New function.
3219 New fields ada_translate_error_message, ada_lookup_symbol,
3220 ada_lookup_minimal_symbol.
3222 * ada-lang.h: Update copyright dates.
3223 Replace the mangle/demangle terminology throughout by the
3224 more appropriate encode/decode one.
3225 Include breakpoint.h.
3226 Forward declare struct partial_symbol, struct block.
3227 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3228 (EXTRACT_ADDRESS): Remove.
3229 (EXTRACT_INT): Remove.
3230 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3231 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3232 (MAX_RENAMING_CHAIN_LENGTH): Define.
3233 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3235 (enum task_states): Remove.
3236 ada_task_states: Remove.
3237 (fat_string): Remove.
3238 (struct entry_call): Remove.
3239 (struct task_fields): Remove.
3240 (struct task_entry): Remove.
3242 (struct ada_symbol_info): Define.
3243 (enum ada_attribute): Remove.
3244 (enum ada_operator): Define.
3246 (ada_get_field_index): Declare.
3247 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3248 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3249 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3250 (ada_lookup_symbol_list): New interface.
3251 (ada_decode_symbol): Declare.
3252 (ada_decode): Declare.
3253 (ada_lookup_symbol): New interface.
3254 (ada_update_initial_language): Declare.
3255 (ada_lookup_simple_minsym): Declare.
3256 (user_select_syms): New interface.
3257 (ada_sals_for_line): Declare.
3258 (ada_is_tagged_type): New interface.
3259 (ada_tag_name): Declare.
3260 (ada_lookup_struct_elt_type): Remove declaration.
3261 (ada_search_struct_field): Remove declaration.
3262 (ada_attribute_name): New interface.
3263 (ada_is_system_address_type): Declare.
3264 (ada_to_fixed_value): Remove declaration.
3265 (ada_template_to_fixed_record_type_1): Declare.
3266 (get_int_var_value): New interface.
3267 (ada_find_any_symbol): Declare.
3268 (ada_find_renaming_symbol): Declare.
3269 (ada_mangle): Rename to ada_encode.
3270 (ada_simple_renamed_entity): Remove const.
3271 (ada_main_name): Declare.
3272 (get_current_task): Rename to ada_get_current_task.
3273 (get_entry_number): Remove declaration.
3274 (ada_report_exception_break): Remove declaration.
3275 (ada_print_exception_breakpoint_nontask): Declare.
3276 (ada_print_exception_breakpoint_task): Declare.
3277 (ada_find_printable_frame): Declare.
3279 * ada-lex.l: Update copyright notices.
3280 Use xmalloc and xfree instead of malloc and free.
3281 Use new interface to name_lookup.
3282 Use new interface to
3283 ada_mangle=>ada_encode.
3284 Redo handling of '$...' variable to parallel current treatment
3286 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3287 digit_to_int, strtoulst, processInt, processReal, processId,
3288 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3291 (processInt): Use cast to remove harmless warning.
3292 (processReal): Modify to get rid of compiler warning on scan formats.
3294 (processId): Replace xmalloc with obstack_alloc for name and remove
3295 call to ada_name_string_cleanup.
3296 Remove obsolete disabled code.
3297 (name_lookup): Ditto.
3299 Use obsavestring on temp_parse_space instead of savestring
3300 on name, and remove call to ada_name_string_cleanup.
3301 Free string returned from ada_simple_renamed_entity.
3302 Use new interface to ada_lookup_symbol_list.
3303 Decomment disabled code.
3304 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3306 When a type name lookup succeeds as a result of
3307 lookup_primitive_typename, check for regular type entry that has not
3309 Limit length of chain of renamed symbols we are willing to follow.
3310 Do not break names beginning with "standard__" into segments.
3311 (block_lookup): Use new interface to ada_lookup_symbol_list.
3313 * ada-typeprint.c: Update copyright notice.
3314 (demangled_type_name): Rename to decoded_type_name.
3315 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3316 (print_range_bound): Correct handling of negative
3317 bounds that make the index type looked unsigned under STABS.
3318 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3319 (print_range_type_named): Use the builtin int type if no type
3320 corresponding to the given type name could be found.
3321 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3322 Add some bullet-proofing.
3323 (print_variant_clauses): Allow for variant branches with ___XVU
3324 encodings that are not dynamic fields.
3325 Use new interface to ada_is_tagged_type.
3326 (print_record_type): Allow for fields with ___XVE encodings that
3327 are not dynamic fields.
3328 Use new interface to ada_is_tagged_type.
3329 (ada_print_type): ada_is_array_descriptor =>
3330 ada_is_array_descriptor_type.
3332 * ada-valprint.c: Update copyright notice.
3333 Include gdb_string.h
3335 (ui_memcpy): New function.
3336 (ada_print_floating): New function.
3337 (ada_print_str): Order arguments correctly.
3338 Correct handling of empty arrays and arrays of 0-length items.
3339 ada_is_array_descriptor => ada_is_array_descriptor_type
3340 Print values of type System.Address in hexadecimal format.
3341 Use ada_print_floating to print floating-point numbers in Ada format.
3342 Print class tag values with type names.
3343 No longer print the address of reference values. Avoids
3344 a potential confusion.
3345 (ada_value_print): Stop printing the object type for reference
3346 values, but preserve that behavior for access types. Avoids
3347 a potential confusion.
3348 Simplify one conditional expression, as the first part is now
3350 ada_is_array_descriptor => ada_is_array_descriptor_type
3351 Add check for arrays for null records, and print them by hand.
3353 2004-06-01 Jim Blandy <jimb@redhat.com>
3355 * ppc-tdep.h: Delete unused 'regoff' member.
3356 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3358 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3361 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3362 (hpread_read_struct_type): Likewise.
3364 2004-06-01 Andrew Cagney <cagney@gnu.org>
3366 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3367 instead of xasprintf.
3368 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3369 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3370 (mi_cmd_data_list_register_names)
3371 (mi_cmd_data_list_changed_registers)
3372 (mi_cmd_data_list_register_values)
3373 (get_register, mi_cmd_data_write_register_values)
3374 (mi_cmd_data_write_register_values)
3375 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3376 (mi_cmd_target_download, mi_cmd_target_select)
3377 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3378 (mi_execute_cli_command, mi_execute_async_cli_command)
3379 (mi_execute_async_cli_command): Ditto.
3380 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3381 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3383 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3384 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3385 error_last_message instead of mi_error_last_message.
3386 * mi/mi-main.c (mi_error_last_message): Delete function.
3388 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3389 "invalid number of columns" error. Delete redundant "out of
3392 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3394 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3395 (gregset_t, fpregset_t): Remove typedefs.
3396 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3397 (REG_OFFSET): Rename argument.
3398 (i386bsd_r_reg_offset): Rename from reg_offset.
3399 (REG_ADDR): Remove macro.
3400 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3402 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3403 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3404 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3405 instead of supply_gregset.
3406 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3407 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3408 instead of fill_gregset.
3409 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3411 * i386bsd-nat.c: Don't include "gregset.h".
3412 (supply_gregset, fill_gregset): Make static.
3413 (supply_fpregset, fill_fpregset): Remove.
3414 * Makefile.in (i386bsd-nat.o): Update dependencies.
3416 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3418 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3419 "gdb_assert.h". Con't include "gregset.h".
3420 (fbsd_make_corefile_notes): Use regset-based core file support
3421 instead off fill_gregset and fill_fpregset.
3422 * Makefile.in (fbsd-proc.o): Update dependencies.
3424 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3426 (m88k_frame_prev_register): Simplify code a bit.
3428 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3429 (amd64_collect_fpregset): New function.
3430 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3432 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3434 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3435 (i386_collect_gregset): New function.
3436 (i386_supply_fpregset): Adjust comment.
3437 (i386_collect_fpregset): New function.
3438 (i386_regset_from_core_section): Use i386_collect_gregset and
3439 i386_collect_fpregset.
3441 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3442 handle VALUEP being null.
3444 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3446 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3448 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3450 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3451 assembler in OpenBSD 3.5-current.
3452 (amd64obsd_sigcontext_addr): Likewise.
3454 2004-05-28 Jim Blandy <jimb@redhat.com>
3456 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3457 register set, so our regcache isn't declared "legacy" and our E500
3458 pseudoregister read and write functions aren't ignored.
3459 (rs6000_register_byte, rs6000_register_raw_size,
3460 rs6000_register_virtual_type, rs6000_register_convertible,
3461 rs6000_register_convert_to_virtual,
3462 rs6000_register_convert_to_raw): Deleted.
3463 (rs6000_register_type, rs6000_convert_register_p,
3464 rs6000_register_to_value, rs6000_value_to_register): New
3466 (rs6000_gdbarch_init): Don't register
3467 gdbarch_deprecated_register_size,
3468 gdbarch_deprecated_register_bytes,
3469 gdbarch_deprecated_register_byte,
3470 gdbarch_deprecated_register_raw_size,
3471 gdbarch_deprecated_register_virtual_type,
3472 gdbarch_deprecated_register_convertible,
3473 gdbarch_deprecated_register_convert_to_virtual, or
3474 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3475 register gdbarch_register_type, gdbarch_convert_register_p,
3476 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3478 2004-05-26 Jim Blandy <jimb@redhat.com>
3480 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3481 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3482 functions, updated to match the register numberings used in GCC.
3483 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3484 rs6000_dwarf2_reg_to_regnum as register number conversions
3485 functions for STABS and Dwarf2.
3487 2004-05-26 Randolph Chung <tausq@debian.org>
3489 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3492 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3494 * NEWS: Document new "start" command.
3496 2004-05-25 Randolph Chung <tausq@debian.org>
3498 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3501 2004-05-25 Randolph Chung <tausq@debian.org>
3503 * hppa-hpux-tdep.c (offsetof): Define.
3504 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3505 (hppa32_hpux_frame_base_before_sigtramp)
3506 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3507 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3508 (hppa64_hpux_frame_base_before_sigtramp)
3509 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3511 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3512 (hppa_hpux_sigtramp_frame_unwind_cache)
3513 (hppa_hpux_sigtramp_frame_this_id)
3514 (hppa_hpux_sigtramp_frame_prev_register)
3515 (hppa_hpux_sigtramp_frame_unwind)
3516 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3517 (hppa_hpux_init_abi): Register sigtramp unwinder.
3518 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3520 2004-05-25 Randolph Chung <tausq@debian.org>
3522 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3523 and multiple stack unwinds.
3524 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3526 2004-05-25 Andrew Cagney <cagney@gnu.org>
3528 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3529 * symfile-mem.h: Delete file.
3530 * symfile-mem.c: Do not include "symfile-mem.h".
3531 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3532 "struct bfd_section". When an error do not bother returning NULL.
3533 (add_symbol_file_from_memory_command): Use "struct bfd" and
3534 "struct bfd_section".
3535 * Makefile.in (symfile_mem_h): Delete.
3536 (symfile-mem.o): Update dependencies.
3538 2004-05-25 Nick Roberts <nickrob@gnu.org>
3540 * gdb-mi.el: New file.
3542 2004-05-25 Andrew Cagney <cagney@gnu.org>
3544 * inftarg.c: Include "observer.h".
3545 (child_attach, child_create_inferior): Notify inferior_created.
3546 * corelow.c: Include "observer.h".
3547 (core_open): Notify inferior_created.
3548 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3550 2004-05-25 Andrew Cagney <cagney@gnu.org>
3552 * target.h (struct target_ops): Add from_tty to
3554 (target_create_inferior, find_default_create_inferior): Update.
3555 * infcmd.c (run_command): Update.
3556 * wince.c (child_create_inferior): Update.
3557 * win32-nat.c (child_create_inferior): Update.
3558 * uw-thread.c (uw_thread_create_inferior): Update.
3559 * thread-db.c (thread_db_create_inferior): Update.
3560 * target.c (debug_to_create_inferior)
3561 (find_default_create_inferior): Update.
3562 (maybe_kill_then_create_inferior): Update.
3563 * sol-thread.c (sol_thread_create_inferior): Update.
3564 * remote.c (extended_remote_async_create_inferior)
3565 (extended_remote_create_inferior): Update.
3566 * remote-vx.c (vx_create_inferior): Update.
3567 * remote-st.c (st2000_create_inferior): Update.
3568 * remote-sim.c (gdbsim_create_inferior): Update.
3569 * remote-sds.c (sds_create_inferior): Update.
3570 * remote-rdp.c (remote_rdp_create_inferior): Update.
3571 * remote-rdi.c (arm_rdi_create_inferior): Update.
3572 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3573 * remote-e7000.c (e7000_create_inferior): Update.
3574 * procfs.c (procfs_create_inferior): Update.
3575 * ocd.c (ocd_create_inferior): Update.
3576 * ocd.h (ocd_create_inferior): Update.
3577 * nto-procfs.c (procfs_create_inferior): Update.
3578 * monitor.c (monitor_create_inferior): Update.
3579 * lin-lwp.c (lin_lwp_create_inferior): Update.
3580 * inftarg.c (child_create_inferior): Update.
3581 * hpux-thread.c (hpux_thread_create_inferior): Update.
3582 * gnu-nat.c (gnu_create_inferior): Update.
3584 2004-05-25 Andrew Cagney <cagney@gnu.com>
3586 * MAINTAINERS: Update e-mail address.
3588 2004-05-24 Randolph Chung <tausq@debian.org>
3590 * thread.c (info_threads_command, thread_apply_all_command)
3591 (thread_apply_command, thread_command, do_captured_thread_select):
3592 Remove HPUXHPPA-specific code.
3594 2004-05-24 Randolph Chung <tausq@debian.org>
3596 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3598 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3601 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3603 * infcmd.c (kill_if_already_running): New function, extracted
3605 (run_command): Replace extracted code by call to
3606 kill_if_already_running().
3607 (start_command): New function.
3608 (_initialize_infcmd): Add "start" command.
3610 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3612 Add OpenBSD/m88k support.
3613 * NEWS (New native configurations): Mention OpenBSD/m88k.
3614 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3615 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3616 * Makefile.in (m88k_tdep_h): New variable.
3617 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3618 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3619 * configure.host: Add m88*-*-openbsd*.
3620 * configure.tgt: Add m88*-*-openbsd*.
3622 2004-05-24 Jim Blandy <jimb@redhat.com>
3624 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3627 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3629 * symtab.c (fixup_section): Search section table when lookup by
3632 2004-05-24 Randolph Chung <tausq@debian.org>
3634 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3637 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3639 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3640 register number in regcache_raw_collect call.
3641 (m68kbsd_collect_fpregset): Likewise.
3642 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3644 * regset.h (struct regset): Add back `regset' member.
3646 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3648 * configure.in: Check for td_pcb in `struct thread'.
3649 * configure, config.in: Regenerated.
3651 * dpx2-nat.c: Remove file.
3652 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3653 (dpx2-nat.o): Remove dependencies.
3655 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3656 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3657 (amd64obsd_supply_pcb): New function.
3658 (_initialize_amd64obsd_nat): Enable libkvm interface.
3659 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3660 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3661 (LOADLIBES): New variable.
3663 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3664 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3665 (sparc32nbsd_supply_pcb): New function.
3666 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3667 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3668 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3669 (LOADLIBES): New variable.
3671 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3673 * bsd-kvm.c, bsd-kvm.h: New files.
3674 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3676 (i386fbsd_supply_pcb): New function.
3677 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3678 (i386fbsd-nat.o): Update dependencies.
3679 (bsd_kvm_h): New variable.
3680 (bsd-kvm.o): New dependency.
3681 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3682 (LOADLIBES): New variable.
3684 * regset.c: Tweak comment.
3685 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3687 * regset.h: Update copyright year.
3688 (struct regset): Remove `descr' member, add `gdbarch' member.
3689 (regset_alloc): Adjust prototype and comment.
3690 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3691 (i386_supply_fpregset): Likewise.
3692 (i386_regset_from_core_section): Update call to regset_alloc.
3693 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3695 (i386obsd_aout_regset_from_core_section): Update call to
3697 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3699 (i386nbsd_aout_regset_from_core_section): Update call to
3701 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3703 (amd64_regset_from_core_section): Update call to regset_alloc.
3704 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3706 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3707 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3708 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3709 (sparc32nbsd_init_abi): Update call to regset_alloc.
3710 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3711 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3712 (sparc64obsd_init_abi): Update call to regset_alloc.
3713 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3714 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3715 (sparc64nbsd_init_abi): Update call to regset_alloc.
3716 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3717 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3718 (sparc64fbsd_init_abi): Update call to regset_alloc.
3720 2004-05-22 Jim Blandy <jimb@redhat.com>
3722 * ppc-tdep.h (spe_register_p): New declaration.
3723 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3725 * rs6000-tdep.c (spe_register_p): New function.
3726 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3728 (rs6000_gdbarch_init): Initialize the new members of the tdep
3731 2004-05-21 Jim Blandy <jimb@redhat.com>
3733 * ppc-linux-nat.c (fetch_register): Move code back to be next
3734 to the comment that describes it. (Moved code, instead of
3735 comment, for symmetry with store_register.)
3737 Allocate regset structures in the gdbarch's obstack, not using
3739 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3740 Add 'arch' argument. Allocate the regset on arch's obstack, not
3742 * regset.h (regset_alloc): Update declaration.
3743 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3745 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3746 * i386-tdep.c (i386_regset_from_core_section): Same.
3747 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3748 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3749 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3750 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3751 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3752 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3754 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3756 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3758 2004-05-21 Jim Blandy <jimb@redhat.com>
3760 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3761 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3763 2004-05-20 Jim Blandy <jimb@redhat.com>
3765 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3767 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3769 * regset.h: Make prototype const-correct.
3770 * regset.c (regset_xmalloc): Make const-correct.
3772 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3774 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3775 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3776 (symbol_search_name): Declare.
3778 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3779 (iter_name_next_hashed): Ditto.
3780 (iter_name_next_linear): Ditto.
3781 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3783 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3784 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3785 (symbol_search_name): New function.
3787 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3789 * minsyms.c (build_minimal_symbol_hash_tables): Change
3790 test for adding to demangled hash table to check for difference
3791 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3793 2004-05-19 Jim Blandy <jimb@redhat.com>
3795 Use a constructor function to create regset structures.
3796 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3797 (struct regset): Use supply_regset_ftype. Add new
3798 'collect_regset' member.
3799 (regset_xmalloc): New declaration.
3800 * regset.c: New file.
3801 * am64-tdep.c (amd64_regset_from_core_section): Use
3802 regset_xmalloc to construct regset structures.
3803 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3804 * i386-tdep.c (i386_regset_from_core_section): Same.
3805 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3806 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3807 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3808 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3809 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3810 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3811 * Makefile.in (COMMON_OBS): Add regset.o.
3812 (regset.o): New rule.
3814 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3816 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3817 and pthread_cond_wait.c.
3819 2004-05-18 Jim Blandy <jimb@redhat.com>
3821 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3822 before the mach-specific switch, and then let the individual cases
3823 override the defaults, rather than leaving them uninitialized
3824 until the switch and then setting them in each case.
3826 2004-05-18 Randolph Chung <tausq@debian.org>
3828 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3829 millicode functions.
3831 2004-05-18 Randolph Chung <tausq@debian.org>
3833 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3834 references to dld_flags_buffer consistent.
3836 2004-05-18 Randolph Chung <tausq@debian.org>
3838 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3839 it for unwinding the stack.
3841 2004-05-18 Randolph Chung <tausq@debian.org>
3843 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3844 Undefine these so we can overide them using gdbarch.
3846 2004-05-18 Randolph Chung <tausq@debian.org>
3848 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3849 handling for 64-bit HPUX (elf).
3851 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3853 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3855 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3856 * ia64-tdep.c (examine_prologue): Likewise.
3857 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3858 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3860 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3862 * vax-tdep.c (vax_return_value): Implement
3863 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3865 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3867 * vax-tdep.c (vax_return_value): Fix typo.
3869 2004-05-17 Andrew Cagney <cagney@redhat.com>
3871 * MAINTAINERS: Mark Salter was also responsible for
3874 * NEWS: Mention signal fixes.
3876 2004-05-17 Randolph Chung <tausq@debian.org>
3878 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3879 check to see if we are unwinding an export stub. Export stubs clobber
3880 the %rp in the call path and stores the original rp in a stack slot.
3882 2004-05-17 Jim Blandy <jimb@redhat.com>
3884 * MAINTAINERS: Update address for J.T. Conklin.
3886 2004-05-17 Randolph Chung <tausq@debian.org>
3888 * hppa-tdep.c: Remove superfluous #include's.
3889 * Makefile.in (hppa-tdep.o): Update dependencies.
3891 2004-05-17 Randolph Chung <tausq@debian.org>
3893 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3894 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3895 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3896 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3897 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3898 Remove static function declarations.
3900 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3902 * alphabsd-nat.c: Update copyright year.
3903 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3905 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3908 * m68k-tdep.c (m68k_svr4_return_value): Implement
3909 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3911 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3913 * sol-thread.c Update copyright year. Fix various coding
3914 standards violations. Tweak a few comments.
3915 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3918 2004-05-15 Randolph Chung <tausq@debian.org>
3920 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3921 as pointer instead of array reference since HPUX compiler does
3922 not accept unsized array arguments.
3923 * somsolib.c (dld_flags_buffer): Use constant array size.
3925 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3927 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3928 offset with decimal offset.
3929 (amd64obsd_sigcontext_addr): Return correct address for entire
3932 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3933 instead of get_frame_base.
3935 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3936 (fill_gregset): Use regcache_raw_collect.
3938 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3941 * config/sparc/tm-nbsd64.h: Remove file.
3942 * config/tm-sunos.h: Remove file.
3944 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3946 * rs6000-tdep.c (store_param_on_stack_p): New function,
3947 an improved version of some code extracted from skip_prologue().
3948 (skip_prologue): Use store_param_on_stack_p() to detect
3949 instructions saving a parameter on the stack. Detect when r0
3950 is used to save a parameter.
3951 Do not mark "li rx, SIMM" instructions as part of the prologue,
3952 unless the following instruction is also part of the prologue.
3954 2004-05-14 Andrew Cagney <cagney@redhat.com>
3956 * infrun.c (handle_inferior_event): Simplify
3957 STEP_OVER_UNDEBUGGABLE.
3959 * infrun.c (handle_step_into_function): Delete function.
3960 (handle_inferior_event): Inline calls to
3961 handle_step_into_function.
3963 2004-05-14 Jerome Guitton <guitton@gnat.com>
3965 * rs6000-nat.c: Fix a comment.
3967 2004-05-12 David Anderson <davea@sgi.com>
3969 Committed by Jim Blandy <jimb@redhat.com>:
3970 * regcache.c (struct regcache_descr): fix comment spelling.
3972 2004-05-13 J. Brobecker <brobecker@gnat.com>
3974 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3975 Fixes a link link failure.
3977 2004-05-13 J. Brobecker <brobecker@gnat.com>
3979 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3980 error that was causing the build to fail.
3982 2004-05-13 J. Brobecker <brobecker@gnat.com>
3984 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3985 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3987 2004-05-13 Andrew Cagney <cagney@redhat.com>
3989 * infrun.c (handle_inferior_event): Check for
3990 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3991 calls. Update comments.
3993 2004-05-13 Jim Blandy <jimb@redhat.com>
3995 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3996 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3997 (store_regs_user_thread, store_regs_kernel_thread): Use
3998 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3999 * ppc-linux-nat.c (fill_gregset): Same.
4000 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4001 (ppc_linux_sigtramp_cache): Same.
4002 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4003 (ppcnbsd_sigtramp_cache_init): Same.
4004 * rs6000-nat.c (fetch_core_registers): Same.
4005 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4006 (rs6000_frame_cache): Same.
4008 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4009 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4010 of assuming that the gprs are numbered starting with zero.
4011 * ppc-linux-nat.c (fill_gregset): Same.
4012 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4013 * ppcnbsd-nat.c (getregs_supplies): Same.
4014 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4015 * rs6000-nat.c (fetch_core_registers): Same.
4016 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4018 2004-05-07 Michael Snyder <msnyder@redhat.com>
4020 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4021 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4023 2004-05-13 Andrew Cagney <cagney@redhat.com>
4025 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4027 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4029 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4030 base_address for shared libraries.
4032 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4034 * MAINTAINERS (write after approval): Add myself.
4036 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4038 * breakpoint.c (bpstat_stop_status): Add new argument
4039 STOPPED_BY_WATCHPOINT. Use it instead of testing
4040 target_stopped_data_address agaist 0 to check whether
4041 or not we stopped due to a hardware watchpoint.
4042 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4043 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4046 2004-05-12 Jim Blandy <jimb@redhat.com>
4048 * configure.in: When checking whether we should use the -bbigtoc
4049 option, don't forget to restore the original value of LDFLAGS.
4050 * configure: Regenerated.
4052 2004-05-12 Andrew Cagney <cagney@redhat.com>
4054 * thread.c (load_infrun_state): Delete step_sp.
4055 * infrun.c (context_switch): Ditto.
4056 * inferior.h (step_sp): Ditto.
4057 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4058 * gdbthread.h (struct thread_info, save_infrun_state)
4059 (restore_infrun_state): Ditto.
4061 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4063 * MAINTAINERS (write after approval): Add myself.
4065 2004-05-12 Andrew Cagney <cagney@redhat.com>
4067 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4068 eliminate reference to step_sp.
4069 (struct execution_control_state, init_execution_control_state)
4070 (handle_inferior_event, keep_going): Delete update_step_sp and
4072 * infcmd.c (step_sp): Note that variable is unused.
4074 2004-05-11 Andrew Cagney <cagney@redhat.com>
4076 * infrun.c (step_over_function): Delete function.
4077 (handle_step_into_function): Use insert_step_resume_breakpoint.
4078 (insert_step_resume_breakpoint): Fix assertion.
4080 2004-05-11 Nick Roberts <nickrob@gnu.org>
4082 * utils.c (defaulted_query): Just use the normal query input type
4083 when printing the annotations.
4085 2004-05-11 Andrew Cagney <cagney@redhat.com>
4087 * infrun.c (handle_inferior_event): Simplify code handling
4088 step-into or return-from a signal trampoline.
4090 2004-05-11 Andrew Cagney <cagney@redhat.com>
4092 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4093 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4095 2004-05-10 Jim Blandy <jimb@redhat.com>
4097 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4098 with a call to internal_error.
4100 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4101 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4102 processor variant lacks those registers.
4103 (ppc_floating_point_unit_p): Change description to make it clear
4104 that this returns info about the ISA, not the ABI.
4105 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4106 return true or false by checking tdep->ppc_fp0_regnum and
4107 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4108 arch/mach switching done in rs6000_gdbarch_init; it's better to
4109 keep that logic there, and just check the results here.
4110 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4111 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4112 floating-point registers.
4113 (ppc_supply_fpregset, ppc_collect_fpregset)
4114 (rs6000_push_dummy_call, rs6000_extract_return_value)
4115 (rs6000_store_return_value): Assert that we have floating-point
4117 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4118 (rs6000_frame_cache): Don't note the locations at which
4119 floating-point registers were saved if we have no fprs.
4120 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4122 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4123 (store_regs_user_thread, store_regs_kernel_thread): Only call
4124 supply_fprs / fill_fprs if we actually have floating-point
4126 (special_register_p): Check ppc_fpscr_regnum before matching
4128 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4129 supply / collect fpscr if we don't have it.
4130 * ppc-bdm.c: #include "gdb_assert.h".
4131 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4132 have floating-point registers, since I can't test this code on
4133 FP-free systems to adapt it.
4134 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4135 fpscr and floating point register numbers if they don't exist.
4136 (fetch_register): Assert that we have floating-point registers
4137 before we reach the code that handles them.
4138 (store_register): Same. And use tdep instead of calling
4140 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4142 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4143 fprs and fpscr if we don't have them.
4144 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4146 * ppcnbsd-nat.c: #include "gdb_assert.h".
4147 (getfpregs_supplies): Assert that we have floating-point registers.
4148 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4149 * ppcobsd-tdep.c: #include "gdb_assert.h".
4150 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4151 have floating-point registers.
4152 * rs6000-nat.c (regmap): Don't match against the fpscr and
4153 floating point register numbers if they don't exist.
4154 (fetch_inferior_registers, store_inferior_registers,
4155 fetch_core_registers): Only fetch / store / supply the
4156 floating-point registers and the fpscr if we have them.
4157 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4158 (ppcobsd-tdep.o): Update dependencies.
4160 2004-05-10 Andrew Cagney <cagney@redhat.com>
4162 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4163 (context_switch): Do not switch through_sigtramp_breakpoint.
4164 * gdbthread.h (save_infrun_state, load_infrun_state)
4165 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4166 and structure member.
4167 * thread.c (load_infrun_state, save_infrun_state): Update.
4169 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4171 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4173 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4175 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4177 * aclocal.m4: Regenerate.
4179 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4181 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4183 2004-05-10 Andrew Cagney <cagney@redhat.com>
4185 * infrun.c (check_sigtramp2): Delete function.
4186 (handle_inferior_event): When single stepping, and taking a
4187 signal, set a breakpoint at the signal return address. Delete
4188 redundant calls to check_sigtramp2.
4189 (insert_step_resume_breakpoint): New function.
4190 (through_sigtramp_breakpoint, handle_inferior_event)
4191 (follow_exec, wait_for_inferior, fetch_inferior_event)
4192 (currently_stepping, keep_going): Delete most uses of
4193 through_sigtramp_breakpoint, not that it should be deleted.
4194 (delete_breakpoint_current_contents): Delete function.
4196 2004-05-10 Randolph Chung <tausq@debian.org>
4198 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4200 * config/pa/tm-linux.h: New file.
4202 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4204 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4205 of prefixes. Don't print the prefix twice in the CLI.
4207 2004-05-10 Jim Blandy <jimb@redhat.com>
4209 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4210 collect all the gprs.
4212 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4213 loop collecting gprs.
4215 2004-05-09 Andrew Cagney <cagney@redhat.com>
4217 * remote-vx.c (net_step): Delete step-range code.
4218 * remote.c (remote_resume, init_all_packet_configs)
4219 (set_remote_protocol_E_packet_cmd)
4220 (show_remote_protocol_E_packet_cmd)
4221 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4222 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4223 (show_remote_protocol_e_packet_cmd): Ditto.
4225 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4227 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4229 * hppa-tdep.h: Update copyright year.
4230 (struct trad_frame_saved_reg): Add opaque declaration.
4232 * amd64-tdep.c (amd64_return_value): Implement
4233 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4235 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4236 (m68k_value_to_register): New functions.
4237 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4240 * defs.h (enum return_value_convention): Add
4241 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4242 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4243 * infcmd.c (legacy_return_value): New function.
4244 (print_return_value): Rwerite to implement
4245 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4246 * values.c (using_struct_return): Check for inequality to
4247 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4248 RETURN_VALUE_STRUCT_CONVENTION.
4249 * i386-tdep.c (i386_return_value): Implement
4250 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4252 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4253 include "symtab.h", "opcode/vax.h" and "inferior.h".
4254 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4255 to read_memory_unsigned_integer.
4256 (vax_gdbarch_init): Reorder.
4257 (_initialize_vax_tdep): Spell out prototype.
4258 * Makefile.in (vax-tdep.o): Update dependencies.
4260 2004-05-08 Andrew Cagney <cagney@redhat.com>
4262 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4263 * target.c (target_detach, target_disconnect): Ditto.
4265 * infcall.c (call_function_by_hand): When no
4266 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4267 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4268 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4272 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4273 * gdbarch.h, gdbarch.c: Re-generate.
4274 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4275 deprecated_fix_call_dummy.
4276 * v850-tdep.c (v850_gdbarch_init): Ditto.
4277 * infcall.c (call_function_by_hand): Do not call
4278 DEPRECATED_FIX_CALL_DUMMY.
4280 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4281 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4282 * gdbarch.h, gdbarch.c: Re-generate.
4283 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4284 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4285 deprecated_sizeof_call_dummy_words.
4286 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4288 * v850-tdep.c (v850_gdbarch_init): Ditto.
4289 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4290 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4291 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4292 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4293 * arch-utils.h (legacy_call_dummy_words)
4294 (legacy_sizeof_call_dummy_words): Delete declarations.
4295 * arch-utils.c (legacy_call_dummy_words)
4296 (legacy_sizeof_call_dummy_words): Delete variables.
4298 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4299 * gdbarch.h, gdbarch.c: Re-generate.
4300 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4301 * infcall.c (call_function_by_hand): Eliminate call to
4302 DEPRECATED_PUSH_DUMMY_FRAME.
4303 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4305 (ns32k_push_dummy_frame): Delete function.
4307 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4308 deprecated_call_dummy_breakpoint_offset or
4309 deprecated_call_dummy_start_offset.
4310 * dummy-frame.c, arm-tdep.c: Update comments.
4311 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4312 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4315 * infcall.c (legacy_push_dummy_code): Delete function.
4316 (push_dummy_code): Delete call.
4318 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4319 * gdbarch.h, gdbarch.c: Re-generate.
4320 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4321 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4322 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4323 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4325 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4326 (struct frame_info): Delete opaque declaration.
4327 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4328 * frame.c (get_frame_type): Delete call.
4330 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4332 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4333 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4335 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4337 * alphanbsd-tdep.c: Include "gdb_string.h".
4338 * armnbsd-tdep.c: Update copyright year.
4339 Include "gdb_string.h".
4340 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4343 * delta68-nat.c: Remove file.
4344 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4345 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4346 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4347 (delta68-nat.o): Remove dependency.
4349 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4351 (m68k_gdbarch_init): Don't set
4352 deprecated_frameless_function_invocation.
4354 2004-05-07 Randolph Chung <tausq@debian.org>
4356 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4357 read_memory_nobpt for code reading when doing frame unwinding.
4358 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4360 2004-05-07 Randolph Chung <tausq@debian.org>
4362 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4363 instead of sp, handle sigaltstack case.
4364 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4365 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4366 signal handler and not that of the caller.
4367 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4368 hppa_linux_sigtramp_find_sigcontext.
4370 2004-05-07 Randolph Chung <tausq@debian.org>
4372 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4374 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4375 * hppa-linux-nat.c (fetch_register, store_register): Define.
4376 (fetch_inferior_registers, store_inferior_registers): Define.
4377 (supply_gregset): Add comment and clean up some unneeded code.
4378 (fill_gregset): Add comment and fix so that it saves registers in
4379 the right place in the gregset.
4380 (fill_fpregset): Fix buffer overrun problem.
4381 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4383 2004-05-07 Randolph Chung <tausq@debian.org>
4385 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4386 do common handling of the pcoqt register.
4387 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4388 to use helper function.
4389 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4390 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4391 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4392 generic fallback unwinder when all else fails.
4393 (hppa_gdbarch_init): Add fallback sniffer.
4394 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4395 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4396 to use helper function.
4398 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4400 * config/djgpp/fnchange.lst: Add translation rules for
4401 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4403 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4405 * frame.c (get_prev_frame_1): Work around GCC bug.
4406 * frame.h: Add comment about GCC bug.
4408 2004-05-07 Andrew Cagney <cagney@redhat.com>
4410 * observer.c: Include "commands.h" and "gdbcmd.h".
4411 (observer_debug, _initialize_observer): Add the
4412 command "set/show debug observer".
4413 * observer.sh: When observer debugging, log notify calls.
4414 * Makefile.in (observer.o): Update dependencies.
4416 2004-05-07 Jason Molenda (jmolenda@apple.com)
4418 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4420 2004-05-07 Jim Blandy <jimb@redhat.com>
4422 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4423 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4424 to recognize gpr regnums, instead of assuming that
4425 tdep->ppc_fp0_regnum marks the end of the general-purpose
4428 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4429 the given architecture has floating-point registers.
4431 2004-05-07 Andrew Cagney <cagney@redhat.com>
4433 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4435 * gdbarch.h, gdbarch.c: Re-generate.
4436 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4437 deprecated_use_generic_dummy_frames.
4439 2004-05-07 Brian Ford <ford@vss.fsi.com>
4441 * NEWS: Mention Cygwin DWARF 2 support.
4443 2004-05-07 Andrew Cagney <cagney@redhat.com>
4445 * objfiles.h (struct entry_info): Delete unused fields
4446 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4447 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4448 * mipsread.c (mipscoff_symfile_read): Update.
4449 * mdebugread.c (parse_partial_symbols): Update.
4450 * dwarfread.c (read_file_scope): Update.
4451 * dwarf2read.c (read_file_scope): Update.
4452 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4453 * coffread.c (complete_symtab): Update.
4455 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4457 * infcall.c (_initialize_infcall): Fix typo.
4459 2004-05-07 Andrew Cagney <cagney@redhat.com>
4461 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4462 * command.h (add_setshow_zinteger_cmd): Declare.
4464 2004-05-06 Randolph Chung <tausq@debian.org>
4466 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4467 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4468 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4469 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4470 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4471 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4472 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4474 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4475 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4476 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4477 (hppa64_hpux_frame_find_saved_regs_in_sig)
4478 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4479 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4480 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4481 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4482 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4483 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4484 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4485 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4486 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4487 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4488 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4489 (hppa32_register_type, hppa_cannot_store_register)
4490 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4491 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4492 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4493 * pa64solib.c (pa64_solib_have_load_event)
4494 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4495 (pa64_solib_unloaded_library_pathname): Likewise.
4496 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4497 (som_solib_library_pathname): Likewise.
4499 2004-05-05 Jim Ingham <jingham@apple.com>
4501 * breakpoint.c (create_breakpoints): Copy the ignore count and
4502 thread id over from the pended breakpoint to the actual
4505 2004-05-05 Andrew Cagney <cagney@redhat.com>
4507 * gdbarch.sh (PARM_BOUNDARY): Delete.
4508 gdbarch.h, gdbarch.c: Re-generate.
4509 * valops.c (PARM_BOUNDARY): Delete macro.
4510 (value_push): Delete PARM_BOUNDARY code.
4511 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4513 2004-05-04 Jim Blandy <jimb@redhat.com>
4515 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4516 Don't assume that the gprs, fprs, and UISA sprs are
4517 contiguous, start at register number zero, and end with fpscr.
4518 Instead, use the numbers from the tdep structure.
4520 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4521 should no longer be used in code specific to the RS6000 and its
4523 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4524 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4525 tdep->ppc_fp0_regnum.
4526 (ppc_supply_fpregset, ppc_collect_fpregset)
4527 (rs6000_push_dummy_call, rs6000_extract_return_value)
4528 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4529 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4531 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4532 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4534 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4535 bdm_ppc_store_registers): Same.
4536 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4537 (store_register, fill_fpregset): Same.
4538 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4539 (ppc_linux_supply_fpregset): Same.
4540 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4541 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4543 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4544 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4545 ppc64_sysv_abi_return_value): Same.
4546 * rs6000-nat.c (regmap, fetch_inferior_registers)
4547 (store_inferior_registers, fetch_core_registers): Same.
4549 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4551 * m68knbsd-nat.c: Remove file.
4552 * m68knbsd-tdep.c: Remove file.
4553 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4555 * configure.host: Add m68k-*-netbsdelf*.
4556 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4557 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4558 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4560 * config/m68k/nbsdelf.mh: New file.
4561 * config/m68k/nbsd.mt: New file.
4562 * config/m68k/nbsdaout.mt: Remove file.
4563 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4564 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4565 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4566 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4567 (use_struct_convention): Remove prototype.
4568 (USE_STRUCT_CONVENTION): Remove define.
4569 * config/m68k/xm-nbsd.h: Remove file.
4571 2004-05-04 Michael Snyder <msnyder@redhat.com>
4573 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4574 reg_struct_return method (as gcc usually does for cross targets).
4576 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4578 Committed by Andrew Cagney.
4579 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4580 alignment padding when accessing ucontext struct members.
4582 2004-05-04 Jim Blandy <jimb@redhat.com>
4584 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4585 'ppc_gplast_regnum' member.
4586 (ppc_num_gprs): New enum constant.
4587 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4588 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4589 * rs6000-nat.c (regmap, fetch_inferior_registers,
4590 store_inferior_registers): Same.
4591 * rs6000-tdep.c (e500_pseudo_register_read)
4592 (e500_pseudo_register_write): Same.
4593 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4595 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4596 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4597 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4598 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4600 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4602 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4603 * rs6000-nat.c (regmap, fetch_inferior_registers)
4604 (store_inferior_registers): Same.
4606 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4609 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4611 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4612 failure detected by recent versions of GCC.
4613 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4614 to be consistent with the usage in dwarf2_create_include_psymtab.
4616 2004-05-03 Michael Snyder <msnyder@redhat.com>
4618 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4619 (heuristic_proc_start): Whitespace cleanup.
4621 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4623 * sun3-nat.c: Remove file.
4624 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4626 (ALLDEPFILES): Remove sun3-nat.c.
4627 (sun3-nat.o): Remove dependencies.
4629 * i386-interix-nat.c, i386-interix-tdep.c,
4630 config/i386/nm-interix.h, config/i386/interix.mh,
4631 config/i386/interix.mt: Remove files.
4632 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4635 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4637 * m68k-tdep.h (struct gdbarch_tdep): Add member
4638 struct_value_regnum.
4639 (m68k_svr4_init_abi): New prototype.
4640 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4641 different calling conventions.
4642 (m68k_extract_return_value): Remove code dealing with single-field
4644 (m68k_store_return_value): Remove code dealing with single-field
4645 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4646 (m68k_extract_struct_value_address): Remove function.
4647 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4648 (m68k_reg_struct_return_p, m68k_return_value)
4649 (m68k_svr4_return_value): New functions.
4650 (m68k_use_struct_convention): Remove function.
4651 (m68k_push_dummy_call): Use new struct_value_regnum member of
4652 `struct gdbarch_tdep' instead of hardcoded register number to
4654 (m68k_svr4_init_abi): New function.
4655 (m68k_gdbarch_init): Don't set extract_return_value,
4656 store_return_values, deprecated_extract_struct_value_address and
4657 use_struct_convention. Set return_value instead. Initialize new
4658 struct_value_regnum member of `struct gdbarch_tdep'.
4659 * m68klinux-tdep.c: Update copyright year.
4660 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4661 (m68k_linux_extract_struct_value_address): Remove function.
4662 (m68k_linux_init_abi): Don't set extract_return_value,
4663 store_return_values, deprecated_extract_struct_value_address and
4664 use_struct_convention. Call m68k_svr4_init_abi but override the
4665 new struct_value_regnum member of `struct gdbarch_tdep'.
4666 * Makefile.in (m68k-tdep.o): Update dependencies.
4668 2004-05-03 J. Brobecker <brobecker@gnat.com>
4670 * dwarf2read.c (line_header): Add new included_p field in
4672 (partial_die_info): New field has_stmt_list. New field line_offset.
4673 (dwarf2_create_include_psymtab): New function.
4674 (dwarf2_build_include_psymtabs): New function.
4675 (add_file_name): Add forward declaration. Initialize new field.
4676 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4677 to be able to determine the list of files included by the
4678 given unit, and build their associated psymtabs.
4679 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4681 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4682 (read_file_scope): Update call to dwarf_decode_lines.
4683 (read_partial_die): Handle DW_AT_stmt_list attributes.
4685 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4688 * configure.in: Revert special case for osf5.*.
4689 * configure: Regenerate.
4691 2004-05-02 Jim Blandy <jimb@redhat.com>
4693 Move the symbol-file-from-memory functions into their own file.
4694 * symfile-mem.c, symfile-mem.h: New files.
4695 * symfile.c (symbol_file_add_from_bfd): New function.
4696 (symbol_file_add): Call symbol_file_add_from_bfd.
4697 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4698 Moved to symfile-mem.c.
4699 (_initialize_symfile): Move definition of
4700 add-symbol-file-from-memory command to symfile-mem.c.
4701 * symfile.h (symbol_file_add_from_bfd): New declaration.
4702 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4703 * config/powerpc/linux.mt (TDEPFILES): Same.
4704 * Makefile.in (SFILES): Add symfile-mem.c.
4705 (symfile_mem_h): New variable.
4706 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4707 (symfile-mem.o): New rule.
4709 2004-05-01 Andrew Cagney <cagney@redhat.com>
4711 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4712 frame_find_by_id instead of frame_relative_level.
4713 (do_enable_breakpoint): Ditto.
4714 * thread.c: Update copyright.
4715 (info_threads_command): Ditto, simplify.
4717 * frame.c (deprecated_generic_get_saved_register): Delete
4718 function, moved to "xstormy16-tdep.c".
4719 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4720 deprecated_generic_get_saved_register from "frame.c".
4721 (xstormy16_frame_saved_register): Call
4722 xstormy16_get_saved_register.
4723 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4725 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4726 * frame.h (deprecated_generic_get_saved_register): Delete.
4728 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4730 * dwarfread.c: Update documentation on the state of dwarf-1.
4732 2004-05-01 Andrew Cagney <cagney@redhat.com>
4734 * stack.c (select_frame_command): Delete call to
4735 frame_relative_level.
4736 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4738 (frame_info): Do not print FRAMELESS.
4739 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4740 (catch_info): Delete #if0 code.
4742 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4743 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4744 of frame_relative_level.
4745 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4747 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4748 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4749 frame_relative_level.
4751 * frame.h (deprecated_set_frame_type): Delete declaration.
4752 * frame.c (deprecated_set_frame_type): Delete function, update
4755 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4756 * gdbarch.h, gdbarch.c: Re-generate.
4757 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4758 (shnbsd_pc_in_sigtramp): Delete.
4759 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4761 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4763 * frame.h: Update comments.
4764 * ppc-linux-tdep.c: Update comments.
4765 * breakpoint.c (bpstat_what): Update comments.
4767 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4768 m68klinux-tdep.o's dependencies, were previously added to
4771 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4772 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4773 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4774 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4775 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4777 * Makefile.in (m68klinux-nat.o): Update dependencies.
4778 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4779 (m68k_linux_sigtramp_frame_cache)
4780 (m68k_linux_sigtramp_frame_this_id)
4781 (m68k_linux_sigtramp_frame_prev_register)
4782 (m68k_linux_sigtramp_frame_unwind)
4783 (m68k_linux_sigtramp_frame_sniffer)
4784 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4785 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4786 names, use trad-frame.h.
4787 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4788 (struct m68k_sigtramp_info): Delete.
4789 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4790 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4791 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4792 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4795 * infrun.c (check_sigtramp2): Delete check for
4796 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4798 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4800 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4802 2004-05-01 Andrew Cagney <cagney@redhat.com>
4804 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4805 (frv_linux_sigtramp_frame_cache)
4806 (frv_linux_sigtramp_frame_this_id)
4807 (frv_linux_sigtramp_frame_prev_register)
4808 (frv_linux_sigtramp_frame_unwind)
4809 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4810 include "linux" in function and variable names, directly call
4811 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4812 the latest trad-frame code.
4813 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4814 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4815 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4816 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4817 * frv-tdep.c (frv_sigtramp_frame_cache)
4818 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4819 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4821 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4822 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4823 (frv_set_sigcontext_reg_addr): Delete function.
4825 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4826 (DEPRECATED_SIGTRAMP_END): Delete.
4827 * gdbarch.h, gdbarch.c: Re-generate.
4828 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4829 * config/vax/tm-vaxbsd.h: Update copyright.
4830 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4831 (DEPRECATED_IN_SIGTRAMP): Define.
4832 * config/m68k/tm-nbsd.h: Update copyright.
4833 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4834 (DEPRECATED_IN_SIGTRAMP): Define.
4836 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4838 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4839 encondings. Fixes PR gdb/1628.
4841 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4842 DW_CFA_restore state without a matching DW_CFA_remember_state
4843 instead of aborting. Fixes PR backtrace/1589.
4845 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4847 * MAINTAINERS: Add self as AIX maintainer.
4848 Update my e-mail address in write-after-approval section.
4850 2004-04-30 Andrew Cagney <cagney@redhat.com>
4852 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4853 (legacy_get_prev_frame): Ditto.
4855 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4856 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4857 * mipsread.c (sigtramp_address): Delete extern variable.
4858 (mipscoff_new_init): Delete reference.
4859 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4860 (fixup_sigtramp): Delete function.
4861 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4862 (fixup_sigtramp): Delete declarations.
4864 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4865 deprecated_pc_in_sigtramp.
4866 (ppcnbsd_pc_in_sigtramp): Delete function.
4868 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4870 * config/m68k/nm-nbsd.h: Tweak comments.
4871 * config/m68k/nm-nbsdaout.h: Likewise.
4873 2004-04-30 Andrew Cagney <cagney@redhat.com>
4875 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4876 legacy_pc_in_sigtramp.
4877 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4879 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4881 Add OpenBSD/m68k support.
4882 * NEWS (New native configurations): Mention OpenBSD/m68k.
4883 * m68kbsd-tdep.c: New file.
4884 * m68kbsd-nat.c: New file.
4885 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4886 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4887 * configure.host: Add m68k-*-openbsd.
4888 * configure.tgt: Add m68k-*-openbsd.
4889 * config/m68k/tm-obsd.h: New file.
4890 * config/m68k/obsd.mt: New file.
4891 * config/m68k/obsd.mh: New file.
4892 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4895 2004-04-30 Andrew Cagney <cagney@redhat.com>
4897 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4898 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4900 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4902 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4903 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4905 2004-04-30 Brian Ford <ford@vss.fsi.com>
4907 Revert 2004-04-16 change.
4908 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4909 (i386_coff_init_abi): Remove.
4910 * i386-tdep.h (i386_coff_init_abi): Remove.
4911 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4913 2004-04-30 Andrew Cagney <cagney@redhat.com>
4915 * blockframe.c (find_pc_partial_function): Delete use of
4916 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4917 DEPRECATED_SIGTRAMP_END.
4919 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4920 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4921 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4922 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4923 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4925 * defs.h (deprecated_inside_entry_file): Delete declaration.
4926 * blockframe.c (deprecated_inside_entry_file): Delete function.
4927 (legacy_frame_chain_valid): Delete call.
4928 * sh64-tdep.c (sh64_frame_chain): Delete call.
4929 * objfiles.h: Update comments.
4930 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4932 * frame.c (get_prev_frame): Delete call, update comments.
4934 2004-04-30 Brian Ford <ford@vss.fsi.com>
4936 * MAINTAINERS (Write After Approval): Add myself.
4938 2004-04-30 Andrew Cagney <cagney@redhat.com>
4940 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4941 * gdbarch.h, gdbarch.c: Re-generate.
4942 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4945 2004-04-30 Andrew Cagney <cagney@redhat.com>
4947 * gdb-events.sh (selected_thread_changed)
4948 (selected_frame_level_changed, target_changed): Delete.
4949 * gdb-events.h, gdb-events.c: Re-generate.
4950 * valops.c (value_assign): Update.
4951 * stack.c (select_frame_command, up_silently_base)
4952 (down_silently_base): Update.
4954 2004-04-29 Andrew Cagney <cagney@redhat.com>
4956 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4957 registers correctly.
4958 (print_gp_register_row, mips32_heuristic_proc_desc)
4959 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4960 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4961 references to mips_isa_regsize.
4963 2004-04-29 Andrew Cagney <cagney@redhat.com>
4965 * mips-tdep.c (struct gdbarch_tdep): Delete
4966 mips_fp_register_double.
4967 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4969 (mips_gdbarch_init): Do not set mips_fp_register_double.
4970 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4972 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4974 Committed by Andrew Cagney.
4975 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4978 2004-04-29 Andrew Cagney <cagney@redhat.com>
4980 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4981 gdbarch, use mips_abi, update callers.
4982 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4983 mips_abi_regsize, update callers.
4984 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4985 mips_default_abi_regsize.
4986 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4987 mips_default_abi_regsize.
4989 2004-04-29 Andrew Cagney <cagney@redhat.com>
4991 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4992 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4993 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4994 mips_default_abi_regsize.
4995 (mips_isa_regsize): Rename mips_regisze.
4996 * mipsnbsd-tdep.c: Update.
4997 * mips-linux-tdep.c: Update.
4998 * irix5-nat.c: Update.
4999 * mips-tdep.h (mips_isa_regsize): Update.
5001 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5002 Delete all disabled code.
5003 * gdb-events.h, gdb-events.c: Re-generate.
5005 2004-04-19 Jerome Guitton <guitton@gnat.com>
5006 Mark Kettenis <kettenis@gnu.org>
5008 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5009 the function begins with a branch instruction.
5011 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5013 * i386-tdep.c: Fix spelling mistakes.
5015 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5016 Andrew Cagney <cagney@redhat.com>
5018 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5020 * acconfig.h: Provide default _KMEMUSER value.
5021 * config.in, configure: Re-generate.
5022 * NEWS: Mention fix.
5024 2004-04-24 Randolph Chung <tausq@debian.org>
5026 * configure.host (hppa*-*-linux*): New target.
5027 * configure.tgt (hppa*-*-linux*): Likewise.
5028 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5029 gdbarch_init_osabi() call earlier so that osabi-specific frame
5030 unwinders can be registered first.
5031 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5033 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5034 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5035 * config/pa/linux.mh: New file.
5036 * config/pa/linux.mt: New file.
5037 * config/pa/nm-linux.h: New file.
5038 * config/pa/xm-linux.h: New file.
5039 * hppa-linux-nat.c: New file.
5040 * hppa-linux-tdep.c: New file.
5042 2004-04-28 Randolph Chung <tausq@debian.org>
5044 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5046 (hppa32_push_dummy_call): Fix small struct and floating point argument
5047 passing, and make sure the stack frame is properly aligned.
5049 2004-04-28 Andrew Cagney <cagney@redhat.com>
5051 * stack.c (print_stack_frame): Fix description.
5053 * NEWS: Mention gdb/gdbserver/configure execute permission
5054 changed. PR server/519.
5056 2004-04-28 Andrew Cagney <cagney@redhat.com>
5058 * stack.c (print_stack_frame_stub): Delete declaration.
5059 (struct print_stack_frame_args, print_stack_frame)
5060 (print_frame_info, print_frame): Replace "source" with print what.
5061 Replace "print" with "print_level". Replace "args" with
5063 * frame.h (show_and_print_stack_frame, print_stack_frame)
5064 (print_frame_info): Update declarations.
5065 * stack.c (select_and_print_frame, frame_command)
5066 (current_frame_command, up_command, down_command): Update calls -
5067 use get_selected_frame, pass "enum print_what" for source, do not
5068 call frame_relative_level.
5069 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5070 * remote-rdp.c (remote_rdp_open): Ditto.
5071 * remote-mips.c (common_open): Ditto.
5072 * remote-e7000.c (e7000_start_remote): Ditto.
5073 * ocd.c (ocd_start_remote): Ditto.
5074 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5075 * infrun.c (normal_stop): Ditto.
5076 * inflow.c (kill_command): Ditto.
5077 * infcmd.c (finish_command): Ditto.
5078 * corelow.c (core_open): Ditto.
5079 * tracepoint.c (finish_tfind_command): Ditto.
5080 * thread.c (info_threads_command, info_threads_command)
5081 (restore_current_thread, do_captured_thread_select): Ditto.
5082 * ada-tasks.c (task_command): Ditto.
5084 2004-04-26 Orjan Friberg <orjanf@axis.com>
5086 * frame.c: Include "observer.h".
5087 (frame_observer_target_changed): New function.
5088 (_initialize_frame): Attach target_changed observer.
5089 * regcache.c: Include "observer.h".
5090 (regcache_observer_target_changed): New function.
5091 (_initialize_regcache): Attach target_changed observer.
5092 * valops.c: Include "observer.h".
5093 (value_assign): Notify target_changed event when modifying register.
5094 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5096 2004-04-26 Orjan Friberg <orjanf@axis.com>
5098 From Paul Koning <pkoning@equallogic.com>:
5099 * breakpoint.c (free_valchain): New function.
5100 (insert_bp_location, delete_breakpoint): Use free_valchain.
5101 (remove_breakpoint): Do not remove the valchain.
5102 (bpstat_stop_status): If not stopped by watchpoint, skip
5103 watchpoints when generating stop status list.
5104 * infrun.c (handle_inferior_event): Make
5105 stepped_after_stopped_by_watchpoint a global variable.
5106 * remote.c (remote_stopped_data_address): Return watch data
5107 address rather than zero if stepped_after_stopped_by_watchpoint is
5110 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5113 * configure.in: Check for curses after termcap.
5114 On osf5.*, do not check for ncurses.
5115 * configure: Regenerate.
5117 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5119 * ppcobsd-nat.c: Include "ppc-tdep.h".
5120 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5122 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5123 Fixes PR tdep/1623 and PR tdep/1624.
5125 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5127 * xmodem.h, xmodem.c: Remove files.
5128 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5130 2004-04-23 Randolph Chung <tausq@debian.org>
5132 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5133 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5134 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5135 for handling stackless frames.
5136 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5138 2004-04-23 Randolph Chung <tausq@debian.org>
5140 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5141 starts at a pc before the frame is created.
5143 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5145 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5147 2004-04-23 Jerome Guitton <guitton@gnat.com>
5149 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5150 use convert_typed_floating to get the appropriate format.
5152 2004-04-22 Randolph Chung <tausq@debian.org>
5154 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5155 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5156 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5157 (hppa_sign_extend): Add prototype.
5158 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5159 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5160 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5161 hppa targets will also use these functions.
5162 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5163 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5164 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5165 (hppa_gdbarch_init): Remove gdbarch setting of
5166 skip_trampoline_code, in_solib_call_trampoline and
5167 in_solib_return_trampoline.
5168 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5169 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5170 hppa_in_solib_call_trampoline.
5171 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5172 Moved from hppa-tdep.c.
5173 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5174 in_solib_call_trampoline and in_solib_return_trampoline.
5176 2004-04-22 Randolph Chung <tausq@debian.org>
5178 * hppa-tdep.c (hppa_debug): New variable.
5179 (find_unwind_entry, hppa_frame_cache): Add debug output.
5180 (_initialize_hppa_tdep): Add command to set debug flag.
5182 2004-04-22 Andrew Cagney <cagney@redhat.com>
5184 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5186 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5187 signal trampoline unwinder.
5188 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5190 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5192 Add OpenBSD/powerpc support.
5193 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5194 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5195 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5196 (ppc_collect_fpregset): New prototypes.
5197 * ppcobsd-nat.c: New file.
5198 * ppcobsd-tdep.c: New file.
5199 * ppcobsd-tdep.h: New file.
5200 * rs6000-tdep.c: Include "regset.h".
5201 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5202 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5204 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5205 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5206 (rs6000-tdep.o): Update dependencies.
5207 * configure.host: Add powerpc-*-openbsd.
5208 * configure.tgt: Add powerpc-*-openbsd.
5209 * config/powerpc/obsd.mh: New file.
5210 * config/powerpc/nm-obsd.h: New file.
5211 * config/powerpc/obsd.mt: New file.
5213 2004-04-22 Andrew Cagney <cagney@redhat.com>
5215 * frame.h (show_frame_info): Delete declaration.
5217 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5218 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5219 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5220 * frv-tdep.c (frv_frame_this_id): Ditto.
5221 * avr-tdep.c (avr_frame_this_id): Ditto.
5223 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5225 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5227 2004-04-22 Jim Blandy <jimb@redhat.com>
5229 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5230 register number zero.
5232 2004-04-21 Michael Snyder <msnyder@redhat.com>
5234 * mips-tdep.c (heuristic_proc_start):
5235 Warning() already prefixes "Warning: ".
5237 2004-04-21 Andrew Cagney <cagney@redhat.com>
5239 * annotate.h (deprecated_annotate_starting_hook)
5240 (deprecated_annotate_stopped_hook)
5241 (deprecated_annotate_exited_hook)
5242 (deprecated_annotate_signal_hook)
5243 (deprecated_annotate_signalled_hook): Deprecate.
5244 * tracepoint.h (deprecated_create_tracepoint_hook)
5245 (deprecated_delete_tracepoint_hook)
5246 (deprecated_modify_tracepoint_hook)
5247 (deprecated_trace_find_hook)
5248 (deprecated_trace_start_stop_hook): Deprecate.
5249 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5250 * remote.h (deprecated_target_resume_hook)
5251 (deprecated_target_wait_loop_hook): Deprecate.
5252 * gdbcore.h (deprecated_exec_file_display_hook)
5253 (deprecated_file_changed_hook): Deprecate.
5254 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5255 * defs.h (deprecated_modify_breakpoint_hook)
5256 (deprecated_command_loop_hook, deprecated_show_load_progress)
5257 (deprecated_print_frame_info_listing_hook)
5258 (deprecated_query_hook, deprecated_warning_hook)
5259 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5260 (deprecated_delete_breakpoint_hook)
5261 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5262 (deprecated_readline_begin_hook, deprecated_readline_hook)
5263 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5264 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5265 (deprecated_context_hook, deprecated_target_wait_hook)
5266 (deprecated_attach_hook, deprecated_detach_hook)
5267 (deprecated_call_command_hook, deprecated_set_hook)
5268 (deprecated_error_hook, deprecated_error_begin_hook)
5269 (deprecated_ui_load_progress_hook): Deprecate.
5270 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5271 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5272 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5273 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5274 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5275 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5276 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5277 * annotate.c, aix-thread.c: Update.
5279 2004-04-21 Andrew Cagney <cagney@redhat.com>
5281 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5282 * vaxnbsd-tdep.c: Include "gdb_string.h".
5284 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5285 (add_symbol_file_from_memory_command): #if 0 function body, call
5288 2004-04-21 Andrew Cagney <cagney@redhat.com>
5290 * gdbcore.h: Update copyright.
5291 (deprecated_add_core_fns): Rename add_core_fns.
5292 * win32-nat.c (_initialize_core_win32): Update.
5293 * sun3-nat.c (_initialize_core_sun3): Update.
5294 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5295 * rs6000-nat.c (_initialize_core_rs6000): Update.
5296 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5297 * nto-tdep.c (_initialize_nto_tdep): Update.
5298 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5299 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5300 * mips-nat.c (_initialize_core_mips): Update.
5301 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5302 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5303 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5304 * lynx-nat.c (_initialize_core_lynx): Update.
5305 * irix5-nat.c (_initialize_core_irix5): Update.
5306 * i386-interix-nat.c (_initialize_core_interix): Update.
5307 * cris-tdep.c (_initialize_cris_tdep): Update.
5308 * corelow.c (deprecated_add_core_fns): Update.
5309 * core-regset.c (_initialize_core_regset): Update.
5310 * core-aout.c (_initialize_core_aout): Update.
5311 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5312 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5313 * alpha-nat.c (_initialize_core_alpha): Update.
5315 2004-04-21 Jim Blandy <jimb@redhat.com>
5317 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5319 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5321 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5323 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5324 (read_attribute_value): Update calls to dwarf_alloc_block.
5325 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5327 (psymtab_to_symtab_1): Likewise. Clean up using
5328 free_stack_comp_unit.
5329 (add_to_cu_func_list): Use the comp_unit_obstack.
5331 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5333 * dwarf2read.c (dwarf2_flag_true_p): New function.
5334 (die_is_declaration): Use the function above. Add some comments.
5336 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5338 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5339 architecture when registering sparcnbsd_core_osabi_sniffer.
5342 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5344 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5347 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5348 * i386-tdep.c: Correct register numbering scheme comments
5350 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5351 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5352 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5353 (i386_gdb_arch_init): Likewise.
5355 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5356 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5359 * m68k-tdep.h: Tweak comments.
5360 * m68k-tdep.c: Tweak comment.
5362 2004-04-17 Randolph Chung <tausq@debian.org>
5364 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5365 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5366 (hppa_hpux_som_init_abi): Set is_elf to 0.
5367 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5368 * hppa-tdep.c (low_text_segment_address): Remove global.
5369 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5370 section offset to calculate segment address.
5371 (internalize_unwinds): Define low_text_segment_address as local and
5372 pass to record_text_segment_lowaddr for ELF targets.
5373 (hppa_gdbarch_init): Zero fill tdep structure.
5374 (hppa_dump_tdep): Print tdep structure.
5375 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5377 2004-04-17 Randolph Chung <tausq@debian.org>
5379 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5380 (hppa_gdbarch_init): Set pseudo_register_read.
5381 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5382 * regcache.c (supply_register): Remove check for
5383 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5385 2004-04-17 Randolph Chung <tausq@debian.org>
5387 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5388 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5389 (hpread_adjust_stack_address): Move to hpread.c.
5390 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5391 obj_private_struct): Move from tm-hppa.h.
5392 * hpread.c (hppa-tdep.h): Include.
5393 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5394 (hpread_read_function_type, hpread_read_doc_function_type)
5395 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5397 * pa64solib.c (hppa-tdep.h): Include.
5398 * somsolib.c (hppa-tdep.h): Include.
5399 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5400 inferior_status): Remove unused forward declarations.
5401 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5402 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5403 obj_private_struct): Move to hppa-tdep.h.
5404 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5406 2004-04-17 Randolph Chung <tausq@debian.org>
5408 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5409 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5410 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5411 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5412 Remove forward declaration and make static.
5413 (hppa_reg_struct_has_addr): Remove.
5415 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5417 * observer.sh: Move comments in sed command to first column.
5419 2004-04-16 Jason Molenda (jmolenda@apple.com)
5421 * frame.c: Minor typeo corrections in comments.
5423 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5425 * observer.c (observer_test_first_notification_function): Update
5427 (observer_test_second_notification_function): Likewise.
5428 (observer_test_third_notification_function): Likewise.
5430 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5432 From Brian Ford <ford@vss.fsi.com>:
5433 * i386-tdep.c (i386_coff_init_abi): New function.
5434 * i386-tdep.h (i386_coff_init_abi): New prototype.
5435 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5436 register number translation functions for DWARF and DWARF 2.
5438 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5440 * dwarf2read.c: Back out my previous change, it was incorrect.
5442 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5444 * dwarf2read.c: Include "hashtab.h".
5445 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5447 (struct partial_die_info): Add comments. Use bitfields to reduce
5448 memory footprint. Add scope, scope_set, has_specification,
5449 spec_offset, die_parent, die_child, and die_sibling.
5450 (peek_die_abbrev): Add prototype.
5451 (partial_read_comp_unit_head): New function, broken out from
5452 dwarf2_build_psymtabs_hard.
5453 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5454 Use partial_read_comp_unit_head. Initialize the CU and
5455 comp_unit_obstack. Update calls to read_partial_die and
5456 scan_partial_symbols. Use free_stack_comp_unit and
5458 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5459 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5460 Update calls to helper functions. Remove NAMESPACE argument.
5462 (partial_die_parent_scope, partial_die_full_name): New functions.
5463 (add_partial_symbol): Remove namespace argument. Update call to
5464 pdi_needs_namespace. Use partial_die_full_name. Handle
5465 DW_TAG_namespace. Check has_namespace_info flag.
5466 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5467 tag. Handle namespaces.
5468 (add_partial_namespace, add_partial_enumeration): Simplify.
5469 (guess_structure_name): New function, derived from
5470 add_partial_structure.
5471 (add_partial_structure): Remove.
5472 (determine_class_name): Update comment.
5473 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5474 (is_type_tag_for_partial, load_partial_dies): New functions.
5475 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5476 Record specifications instead of following them immediately.
5477 (find_partial_die_in_comp_unit, find_partial_die)
5478 (fixup_partial_die, free_stack_comp_unit)
5479 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5480 (partial_die_hash, partial_die_eq): New functions.
5481 * Makefile.in (hashtab_h): Define.
5482 (dwarf2read.o): Update dependencies.
5483 (observer_inc, observer_h): Move to the correct section.
5485 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5487 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5488 (die_is_declaration): Use the function above. Add comment.
5490 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5492 * dwarf2read.c (read_structure_scope): Identify stub types
5493 using die_is_declaration() only.
5495 2004-04-15 Roland McGrath <roland@redhat.com>
5497 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5498 argument instead of NAME.
5499 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5500 in call to symbol_file_add_with_addrs_or_offsets.
5501 (build_addr_info): New function, helper for ...
5502 (symbol_file_add_from_memory): New function.
5503 (add_symbol_file_from_memory_command): New function using that.
5504 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5505 (pre_add_symbol_hook): Add const to argument type.
5506 * symfile.h (symbol_file_add_from_memory): Declare it.
5508 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5510 * NEWS (New native configurations): Mention OpenBSD/vax.
5511 * configure.host: Add vax-*-openbsd*.
5512 * config/vax/obsd.mh: New file.
5513 * config/vax/nm-obsd.h: New file.
5515 * vax-tdep.c: Include "regset.h".
5516 (vax_supply_gregset): New function.
5517 (vax_gregset): New variable.
5518 (vax_regset_from_core_section): New function.
5519 (vax_gdbarch_init): Set regset_from_core_section.
5520 * Makefile.in (vax-tdep.o): Update dependencies.
5522 2004-04-15 Andrew Cagney <cagney@redhat.com>
5524 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5525 (observer_normal_stop_notification_stub)
5526 (observer_attach_normal_stop, observer_detach_normal_stop):
5527 Delete, replaced by #include "observer.inc".
5528 * infrun.c (normal_stop): Pass "stop_bpstat" to
5529 observer_notify_normal_stop.
5530 * Makefile.in (observer_inc): Define.
5531 (observer.o): Update dependencies.
5532 (observer.h, observer.inc): New rules.
5533 * observer.h: Delete file.
5534 * observer.sh: New file.
5536 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5538 * vax-tdep.c (vax_frame_cache): Fix typo.
5540 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5542 * NEWS (New native configurations): Mention NetBSD/vax.
5543 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5544 * config/vax/nbsdelf.mh: New file.
5545 * config/vax/nbsdaout.mh: New file.
5546 * config/vax/nm-nbsd.h: New file.
5547 * config/vax/nm-nbsdaout.h: New file.
5549 * vaxnbsd-tdep.c: New file.
5550 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5551 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5552 * config/vax/nbsd.mt: New file.
5553 * config/vax/tm-nbsd.h: New file.
5555 * Makefile.in (vaxbsd-nat.o): New dependency.
5557 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5558 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5559 struct_addr arguments. Don't push return value address.
5560 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5561 arguments to vax_store_arguments. Store return value address in
5563 (vax_store_struct_return, vax_extract_return_value)
5564 (vax_store_return_value): Remove functions.
5565 (vax_return_value): New function.
5566 (vax_gdbarch_init): Set return value. Don't set
5567 deprecated_store_struct_return, deprecated_extract_struct_return
5568 and deprecated_store_return_value.
5570 2004-04-14 Andreas Schwab <schwab@suse.de>
5572 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5574 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5576 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5578 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5579 (vax_unwind_dummy_id): New functions.
5580 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5581 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5583 (vax_fix_call_dummy): Remove function.
5584 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5585 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5586 call_dummy_location, deprecated_call_dummy_words,
5587 deprecated_sizeof_call_dummy_words,
5588 deprecated_call_dummy_breakpoint_offset,
5589 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5590 and deprecated_dummy_write_sp.
5592 2004-04-13 David Carlton <carlton@kealia.com>
5594 * MAINTAINERS: Move myself to "paper trail" section.
5596 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5598 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5600 (vax_frame_init_saved_regs): Remove function.
5601 (vax_sigtramp_saved_pc): Remove function.
5602 (vax_frame_saved_pc): Remove function.
5603 (vax_frame_args_address): Remove function.
5604 (vax_frame_num_args): Rewrite.
5605 (vax_frame_chain): Remove function.
5606 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5608 (vax_pop_frame): Likewise.
5609 (vax_saved_pc_after_call): Remove function.
5610 (struct vax_frame_cache): New structure.
5611 (vax_frame_cache): New function.
5612 (vax_frame_this_id): New function.
5613 (vax_frame_prev_register): New function.
5614 (vax_frame_unwind): New variable.
5615 (vax_frame_sniffer): New function.
5616 (vax_frame_base_address): New function.
5617 (vax_frame_args_address): New function.
5618 (vax_frame_base): New variable.
5619 (vax_unwind_pc): New function.
5620 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5621 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5622 deprecated_frame_chain, deprecated_frame_saved_pc,
5623 deprecated_frame_args_address and
5624 deprecated_frame_init_saved_regs.
5625 * Makefile.in (vax-tdep.o): Update dependencies.
5627 * vaxbsd-nat.c: New file.
5629 * vax-tdep.h: Update copyright year. Adjust comments.
5630 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5631 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5632 (vax_regnum): New enum. Replacing...
5633 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5634 (VAX_PS_REGNUM): ... these removed macros.
5635 * vax-tdep.c (vax_register_name): Remove prototype.
5636 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5637 (vax_register_byte, vax_register_raw_size,
5638 vax_register_virtual_size, vax_register_virtual_type): Remove
5640 (vax_register_type): New function.
5641 (vax_breakpoint_from_pc): Reorganize.
5642 (vax_gdbarch_init): Set register_type. Don't set
5643 deprecated_register_size, deprecated_register_bytes,
5644 deprecated_register_byte, deprecated_register_raw_size,
5645 deprecated_max_register_raw_size,
5646 deprecated_register_virtual_size,
5647 deprecated_max_register_virtual_size and
5648 deprecated_register_virtual_type. Add comment on stack direction.
5650 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5652 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5653 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5654 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5656 2004-04-10 Randolph Chung <tausq@debian.org>
5658 * MAINTAINERS (write after approval): Add myself.
5660 2004-04-07 Randolph Chung <tausq@debian.org>
5662 * hppa-tdep.c (hppa_inner_than): Remove.
5663 (is_pa_2): Remove unused static variable.
5664 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5666 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5668 * language.h (language_defn): Add new la_post_parser field.
5669 * parser-defs.h (null_post_parser): New declaration (default for
5672 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5673 insert call to that function.
5674 (parse_exp_in_context): New function, including code formerly in
5675 parse_exp_1. Calls language-dependent post-parser after
5677 (parse_expression_in_context): New exported function.
5678 (null_post_parser): New definition.
5679 * expression.h (parse_expression_in_context): Add declaration.
5681 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5682 * c-lang.c (c_language_defn): Ditto.
5683 (cplus_language_defn): Ditto.
5684 (asm_language_defn): Ditto.
5685 (minimal_language_defn): Ditto.
5686 * f-lang.c (f_language_defn): Ditto.
5687 * jv-lang.c (java_language_defn): Ditto.
5688 * language.c (unknown_language_defn): Ditto.
5689 (auto_language_defn): Ditto.
5690 (local_language_defn): Ditto.
5691 * m2-lang.c (m2_language_defn): Ditto.
5692 * scm-lang.c (scm_language_defn): Ditto.
5693 * obj-lang.c (objc_language_defn): Ditto.
5695 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5697 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5698 (amd64nbsd_mcontext_addr): New function.
5699 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5700 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5701 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5703 * corelow.c (core_xfer_partial): Fix coding standards violation.
5704 Add support for TARGET_OBJECT_WCOOKIE.
5706 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5707 deprecated_pc_in_sigtramp.
5708 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5709 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5710 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5711 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5712 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5713 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5714 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5716 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5717 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5720 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5721 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5722 (amd64_collect_fxsave): Likewise.
5724 * i386-sol2-tdep.c: Include "gdb_string.h".
5725 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5727 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5729 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5731 * i386-sol2-tdep.c: Include "solib-svr4.h".
5732 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5733 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5734 * config/i386/tm-i386sol2.h: Include :solib.h".
5735 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5736 solib-svr4.o and solib-legacy.o.
5737 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5740 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5742 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5743 whether a register is supplied by PTRACE_GETFPREGS.
5744 (store_inferior_registers): Likewise.
5745 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5746 whether a register is supplied by PT_GETFPREGS.
5747 (store_inferior_registers): Likewise.
5749 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5750 * config/i386/linux64.mt (TDEPFILES): Likewise.
5752 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5754 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5755 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5756 the program counter is in the range specified by `struct
5758 * amd64-linux-tdep.c: Include "symtab.h".
5759 (amd64_linux_pc_in_sigtramp): Remove function.
5760 (amd64_linux_sigtramp_p): New function.
5761 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5762 deprecated_pc_in_sigtramp.
5763 * amd64nbsd-tdep.c: Include "symtab.h".
5764 (amd64nbsd_sigtramp_p): New function.
5765 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5766 deprecated_pc_in_sigtramp.
5767 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5769 (amd64obsd_pc_in_sigtramp): Remove function.
5770 (amd64obsd_sigtramp_p): New function.
5771 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5772 deprecated_pc_in_sigtramp.
5773 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5774 (i386bsd_pc_ins_sigtramp): Remove prototype.
5775 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5776 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5777 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5778 the program counter is in the range specified by `struct
5780 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5781 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5782 (i386_go32_pc_in_sigtramp): Remove function.
5783 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5784 Initialize TDEP->sigtramp_p.
5785 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5786 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5787 deprecated_pc_in_sigtramp.
5788 * i386-linux-tdep.c: Adjust comments.
5789 (i386_linux_pc_in_sigtramp): Remove function.
5790 (i386_linux_sigtramp_p): New function.
5791 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5792 deprecated_pc_in_sigtramp.
5793 * i386-nto-tdep.c: Update copyright year.
5794 (i386nto_pc_in_sigtramp): Remove function.
5795 (i386nto_sigtramp_p): New function.
5796 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5798 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5799 deprecated_pc_in_sigtramp.
5800 * i386-sol2-tdep.c: Update copyright year.
5801 (i386_sol2_pc_in_sigtramp): Remove function.
5802 (i386_sol2_sigtramp_p): New function.
5803 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5804 deprecated_pc_in_sigtramp.
5805 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5806 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5807 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5808 deprecated_sigtramp_start and deprecated_sigtramp_end.
5809 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5810 (i386nbsd_pc_in_sigtramp): Remove function.
5811 (i386nbsd_sigtramp_p): New function.
5812 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5813 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5814 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5815 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5816 (i386obsd_pc_in_sigtramp): Remove function.
5817 (i386obsd_sigtramp_p): New function.
5818 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5820 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5821 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5823 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5824 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5827 * config/i386/i386aout.mt: Remove file.
5829 * configure.tgt: Remove i[34567]86-*-go32*,
5830 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5831 and i[34567]86-*-isc*. Set gdb_target to i386 for
5832 i[34567]86-*-netware* and i[34567]86-*-*.
5833 * config/i386/i386.mt: New file.
5834 * config/i386/embed.mt: Remove file.
5835 * config/i386/go32.mt: Remove file.
5836 * config/i386/i386nw.mt: Remove file.
5837 * config/i386/i386v.mt: Remove file.
5838 * config/i386/tm-go32.h: Remove file.
5840 * tui/tui-hooks.c: Include "readline/readline.h" after
5841 "gdb_curses.h" instead of before.
5842 * tui/tui-io.c: Likewise.
5844 * tui/tui.c: Fix typo in comment.
5846 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5848 2004-04-08 Andrew Cagney <cagney@redhat.com>
5850 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5851 (deprecated_exception_support_initialized): Declare.
5852 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5853 (initialize_hp_cxx_exception_support)
5854 (child_enable_exception_callback): Update.
5855 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5856 (deprecated_exception_support_initialized): Rename
5857 deprecated_exception_catchpoints_are_fragile and
5858 deprecated_exception_support_initialized.
5859 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5861 * symtab.c (deprecated_hp_som_som_object_present): Rename
5862 hp_som_som_object_present.
5863 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5864 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5865 Update. Delete extern declaration.
5866 * valops.c (hp_som_som_object_present): Ditto.
5867 * parse.c (deprecated_hp_som_som_object_present)
5868 (parse_nested_classes_for_hpacc): Ditto.
5869 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5870 * hppa-hpux-tdep.c (hp_som_som_object_present)
5871 (initialize_hp_cxx_exception_support): Ditto.
5872 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5873 * cp-valprint.c (hp_som_som_object_present)
5874 (cp_print_class_method): Ditto.
5875 * c-typeprint.c (hp_som_som_object_present):
5876 (c_type_print_base): Ditto.
5877 * c-exp.y (hp_som_som_object_present): Ditto.
5879 2004-04-08 Andrew Cagney <cagney@redhat.com>
5881 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5882 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5883 (frame_unwind_find_by_frame): Re-implement the unwind code so
5884 that it can both prepend and append sniffers. Replace
5885 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5886 * tramp-frame.c (tramp_frame_append): Use
5887 frame_unwind_prepend_unwinder.
5888 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5889 frame_unwind_register_unwinder.
5890 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5892 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5893 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5894 (mips_linux_init_abi): Update.
5896 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5898 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5899 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5902 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5904 * ia64-tdep.c (elf.h): Don't include.
5905 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5907 2004-04-07 Jason Molenda (jmolenda@apple.com)
5909 * frame.h: Typeo corrections in comments.
5911 2004-04-07 Jim Blandy <jimb@redhat.com>
5913 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5916 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5918 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5919 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5920 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5921 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5923 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5925 * config/sparc/tm-sol2.h: Update copyright year. Include
5928 * sparc-sol2-tdep.c: Update copyright year. Include
5930 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5931 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5932 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5933 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5936 2004-04-06 Andrew Cagney <cagney@redhat.com>
5938 * infttrace.c: Include "infttrace.h".
5939 * infttrace.h: Include "target.h".
5940 * Makefile.in (infttrace_h): Update.
5941 (infttrace.o): Update.
5943 2004-04-06 Andrew Cagney <cagney@redhat.com>
5945 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5946 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5947 move extern declarations from here ...
5948 * infttrace.h: ... to here.
5949 * Makefile.in (hppah-nat.o): Update dependencies.
5951 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5952 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5953 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5954 (hppa_breakpoint_from_pc): Delete.
5956 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5958 2004-04-05 Andrew Cagney <cagney@redhat.com>
5960 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5961 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5964 2004-04-06 Randolph Chung <tausq@debian.org>
5966 Committed by Andrew Cagney (mechanical change).
5967 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5968 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5969 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5970 child_enable_exception_callback, current_ex_event,
5971 null_symtab_and_line, child_get_current_exception_event,
5972 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5973 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5974 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5975 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5976 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5977 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5978 Move hpux-specific definitions ...
5979 * hppa-hpux-tdep.c: ... to here.
5981 2004-04-05 Andrew Cagney <cagney@redhat.com>
5983 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5984 skip_prologue_using_sal.
5986 2004-04-05 Andrew Cagney <cagney@redhat.com>
5988 * config/i386/tm-i386.h: Delete file.
5989 * config/i386/tm-vxworks.h: Update copyright, do not include
5991 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5992 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5993 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5994 * config/i386/ncr3000.mt (TM_FILE): Delete.
5995 * config/i386/interix.mt (TM_FILE): Delete.
5996 * config/i386/i386v.mt (TM_FILE): Delete.
5997 * config/i386/i386nw.mt (TM_FILE): Delete.
5998 * config/i386/i386gnu.mt (TM_FILE): Delete.
5999 * config/i386/i386aout.mt (TM_FILE): Delete.
6000 * config/i386/embed.mt (TM_FILE): Delete.
6002 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6004 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6005 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6006 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6007 (accg7_regnum): New constants.
6008 (last_spr_regnum, last_pseudo_regnum): Update.
6009 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6010 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6011 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6013 (frv_register_sim_regno): Update spr_map[].
6015 2004-04-04 Andrew Cagney <cagney@redhat.com>
6017 * config/mips/xm-riscos.h: Delete.
6018 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6019 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6020 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6021 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6022 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6023 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6024 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6025 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6026 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6027 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6028 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6029 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6030 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6031 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6032 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6033 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6034 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6035 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6036 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6037 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6038 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6039 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6040 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6041 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6042 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6043 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6045 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6046 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6047 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6048 * configure.host: Remove m680[01]0-sun-sunos3*,
6049 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6050 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6051 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6052 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6054 * NEWS: Mention removed systems.
6056 2004-04-04 Andrew Cagney <cagney@redhat.com>
6058 GDB 6.1 release created from 6.1 branch.
6060 2004-04-04 Andrew Cagney <cagney@redhat.com>
6062 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6063 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6064 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6066 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6067 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6068 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6070 2004-04-03 Jim Blandy <jimb@redhat.com>
6072 * MAINTAINERS: Chris Faylor has changed employers; add him to
6073 "paper trail" section, and update his E-mail address.
6075 2004-04-03 Andrew Cagney <cagney@redhat.com>
6077 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6078 generic dummy frames.
6079 * dummy-frame.c: Update copyright.
6080 (dummy_frame_sniffer): Delete check for generic dummy frames.
6082 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6083 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6084 (REG_PARM_STACK_SPACE): Delete.
6085 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6086 Inline reference to REG_PARM_STACK_SPACE.
6088 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6089 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6090 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6091 (FRAME_BASE_BEFORE_SIGTRAMP)
6092 (hppa32_hpux_frame_base_before_sigtramp)
6093 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6094 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6095 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6096 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6097 (FRAME_BASE_BEFORE_SIGTRAMP)
6098 (hppa64_hpux_frame_base_before_sigtramp)
6099 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6101 2004-04-03 Andrew Cagney <cagney@redhat.com>
6103 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6105 2004-04-02 Andrew Cagney <cagney@redhat.com>
6107 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6108 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6109 * dummy-frame.h: Delete out-of-date comments.
6110 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6111 * gdbarch.h, gdbarch.c: Re-generate.
6113 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6115 Committed by Andrew Cagney <cagney@redhat.com>.
6116 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6117 into account an instruction saving a register if we have already
6118 seen an earlier instruction saving that same register.
6120 2004-04-02 Andrew Cagney <cagney@redhat.com>
6122 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6123 * gdbarch.h, gdbarch.c: Re-generate.
6124 * frame.c (legacy_get_prev_frame): Delete references to
6125 DEPRECATED_INIT_FRAME_PC_FIRST.
6127 * infrun.c (pc_in_sigtramp): Delete function.
6128 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6131 2004-04-02 Andrew Cagney <cagney@redhat.com>
6133 * infrun.c (handle_step_into_function): Delete code conditional on
6135 (handle_inferior_event, step_over_function): Ditto.
6137 2004-04-02 Andrew Cagney <cagney@redhat.com>
6139 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6140 "previous frame inner to this frame" test.
6142 2004-04-02 Andrew Cagney <cagney@redhat.com>
6144 * frame.c (safe_frame_unwind_memory): New function.
6145 * frame.h (safe_frame_unwind_memory): Declare. Update description
6147 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6148 "next_frame". Use safe_frame_unwind_memory.
6149 (tramp_frame_sniffer): Update call to tramp_frame_start.
6151 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6153 * dwarf2read.c (dwarf2_objfile_data_key): New.
6154 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6155 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6156 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6157 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6158 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6159 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6160 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6162 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6163 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6164 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6165 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6166 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6167 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6169 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6171 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6172 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6173 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6174 (read_partial_die, read_full_die, read_indirect_string)
6175 (dwarf_decode_line_header, dwarf_decode_macros)
6176 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6177 Update uses of removed variables.
6178 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6180 (_initialize_dwarf2_read): New function.
6181 * symfile.h (dwarf2_has_info): Update prototype.
6182 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6183 * elfread.c (elf_symfile_read): Likewise.
6185 2004-04-01 Jim Blandy <jimb@redhat.com>
6187 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6188 function for register numbers on all the rs6000-derived targets.
6189 (rs6000_gdbarch_init): Don't register a separate
6190 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6191 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6194 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6197 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6199 * valarith.c: Update copyright notice.
6200 (value_add): Handle range types.
6202 (value_equal): Ditto.
6203 (value_less): Ditto.
6205 (value_complement): Ditto.
6206 (value_binop): Simplify slightly by using is_integral_type and
6207 eliminiating unnecessary COERCE_ENUMs.
6209 2004-03-31 Andrew Cagney <cagney@redhat.com>
6211 * frame.h (frame_unwind_id): Declare.
6212 * frame.c (frame_unwind_id): New function.
6213 (get_prev_frame_1): New function.
6214 (frame_debug_got_null_frame): New function.
6215 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6216 code proper to prev_frame, update description.
6217 * infrun.c (step_over_function): Use frame_unwind_id.
6219 2004-04-31 J. Brobecker <brobecker@gnat.com>
6221 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6222 (hppa64_push_dummy_call): Likewise.
6224 2004-03-30 Jim Blandy <jimb@redhat.com>
6226 From Ulrich Weigand:
6227 * utils.c (query): Do not use a va_list variable multiple times.
6229 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6231 * Makefile.in (linux_nat_h): Update dependencies.
6232 * configure.in: Check for <gnu/libc-version.h>.
6233 * configure: Regenerate.
6234 * config.in: Regenerate.
6235 * linux-nat.h: Include "target.h". Add waitstatus field to
6237 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6238 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6240 (lin_lwp_handle_extended): New function. Handle clone events.
6241 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6243 (child_wait): Handle clone events.
6244 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6245 * linux-nat.c (linux_enable_event_reporting): Turn on
6246 PTRACE_O_TRACECLONE.
6247 (linux_handle_extended_wait): Handle clone events.
6248 * thread-db.c: Include <gnu/libc-version.h>.
6249 (struct private_thread_info): Add dying flag.
6250 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6252 (attach_thread): Update comments. Handle dying threads.
6253 (detach_thread): Set the dying flag.
6254 (check_event): Always call attach_thread.
6256 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6258 * mips-tdep.c (mips_pdr_data): New.
6259 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6260 (_initialize_mips_tdep): Initialize mips_pdr_data.
6262 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6264 * minsyms.c (install_minimal_symbols): Move dropping leading
6265 char from linkage name from here...
6266 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6267 test for "__gnu_compiled*" symbols.
6269 2004-03-28 Jim Blandy <jimb@redhat.com>
6271 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6272 registers to temp register r0 and byte stores as prologue
6275 2004-03-28 Andrew Cagney <cagney@redhat.com>
6277 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6280 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6282 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6283 and switch the layout to force a display of register window.
6285 2004-02-26 J. Brobecker <brobecker@gnat.com>
6287 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6288 of the INTEGER class.
6290 2004-03-26 Jim Blandy <jimb@redhat.com>
6292 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6293 bytes long on PPC GNU/Linux.
6295 2004-03-26 David Carlton <carlton@kealia.com>
6297 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6299 2004-03-25 Andrew Cagney <cagney@redhat.com>
6301 * PROBLEMS: Add general section titles, remove references to
6304 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6306 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6308 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6309 FP_REGISTER_VIRTUAL_SIZE.
6310 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6311 of DEPRECATED_REGISTER_RAW_SIZE.
6312 (arm_register_type): Add gdbarch argument.
6313 (arm_register_raw_size, arm_register_virtual_size): Delete.
6314 (arm_register_byte, arm_extract_return_value)
6315 (arm_store_return_value, arm_get_longjmp_target): Update references
6316 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6317 (arm_gdbarch_init): Likewise. Don't set
6318 deprecated_register_raw_size, deprecated_register_virtual_size,
6319 deprecated_max_register_raw_size,
6320 deprecated_max_register_virtual_size, or
6321 deprecated_max_register_virtual_type. Do set register_type.
6322 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6323 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6324 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6325 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6326 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6327 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6329 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6330 (remote_rdp_store_register): Likewise.
6332 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6334 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6335 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6336 to after osabi initialization.
6337 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6338 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6340 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6341 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6343 (mips_linux_init_abi): Append signal trampoline unwinders.
6345 2004-03-24 Andrew Cagney <cagney@redhat.com>
6347 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6348 * tramp-frame.c: Include "gdb_assert.h".
6349 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6351 (tramp_frame_append): Validate the tramp frame's instructions.
6352 * Makefile.in (tramp-frame.o): Update dependencies.
6354 2004-03-23 Andrew Cagney <cagney@redhat.com>
6356 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6358 2004-03-23 Andrew Cagney <cagney@redhat.com>
6360 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6361 Nasser as past testsuite/lib/ (and other) maintainers.
6363 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6365 * infcmd.c (attach_command): Reread symbols if we already have
6368 2004-03-23 Andrew Cagney <cagney@redhat.com>
6370 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6372 2004-03-23 Andrew Cagney <cagney@redhat.com>
6374 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6376 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6377 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6378 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6379 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6380 (DEPRECATED_SIGTRAMP_START): Update.
6381 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6382 (DEPRECATED_SIGTRAMP_START): Update.
6383 * blockframe.c (find_pc_sect_partial_function): Update.
6384 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6386 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6388 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6391 2004-03-23 Andrew Cagney <cagney@redhat.com>
6393 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6394 predicate, deprecate.
6395 * gdbarch.h, gdbarch.c: Re-generate.
6396 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6397 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6398 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6399 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6400 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6401 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6402 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6403 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6404 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6405 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6406 * blockframe.c (find_pc_partial_function): Update.
6407 * breakpoint.c (bpstat_what): Update.
6408 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6409 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6410 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6411 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6412 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6413 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6414 * i386-nto-tdep.c (i386nto_init_abi): Update.
6415 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6416 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6417 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6418 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6419 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6420 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6421 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6422 * infrun.c (pc_in_sigtramp): Update.
6423 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6424 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6425 * mips-tdep.c (mips_gdbarch_init): Update.
6426 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6427 * ppc-linux-tdep.c: Update comment.
6428 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6429 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6430 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6431 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6432 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6433 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6434 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6435 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6436 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6437 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6439 2004-03-23 Andrew Cagney <cagney@redhat.com>
6441 * tramp-frame.h, tramp-frame.h: New files.
6442 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6443 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6445 * Makefile.in: Update all dependencies.
6447 2004-03-23 Andrew Cagney <cagney@redhat.com>
6449 * Makefile.in (trad_frame_h): Add $(frame_h).
6450 * trad-frame.h: Update copyright. Include "frame.h".
6451 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6452 (trad_frame_set_id, trad_frame_get_id): Declare.
6453 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6454 * trad-frame.c: Update copyright.
6455 (struct trad_frame_cache): Define.
6456 (trad_frame_cache_zalloc): New function.
6457 (trad_frame_set_id, trad_frame_get_id): New functions.
6458 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6460 2004-03-22 Andrew Cagney <cagney@redhat.com>
6462 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6463 s390_pltstub_unwind_cache.
6464 (s390_stub_frame_unwind_cache): Rename
6465 s390_pltstub_frame_unwind_cache.
6466 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6467 (s390_stub_frame_prev_register): Rename
6468 s390_pltstub_frame_prev_register.
6469 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6470 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6472 From Ulrich Weigand:
6473 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6474 pointer calls like PLT calls.
6476 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6478 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6479 PC rather than the partial function start address. Use the start
6480 address to sanity check the found PDR.
6482 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6484 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6485 linux_handle_extended_wait.
6487 2004-03-22 Andrew Cagney <cagney@redhat.com>
6489 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6492 * frame.h (generic_pop_current_frame): Delete declaration.
6493 (deprecate_pop_dummy_frame): Deprecate
6494 generic_pop_dummy_frame.
6495 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6496 (generic_pop_current_frame): Delete function.
6497 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6498 generic_pop_current_frame.
6499 * v850-tdep.c (v850_pop_frame): Update.
6500 * mcore-tdep.c (mcore_pop_frame): Update.
6501 * sh64-tdep.c (sh64_pop_frame): Update.
6502 * h8300-tdep.c (h8300_pop_frame): Update.
6504 2004-03-22 Andrew Cagney <cagney@redhat.com>
6506 * frame.h (deprecated_pc_in_call_dummy): Rename
6507 generic_pc_in_call_dummy.
6508 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6509 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6510 generic_pc_in_call_dummy.
6511 (pc_in_dummy_frame): Make static.
6512 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6513 * gdbarch.h, gdbarch.c: Re-generate.
6514 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6515 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6516 (legacy_get_prev_frame): Ditto.
6517 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6520 2004-03-21 Andrew Cagney <cagney@redhat.com>
6522 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6523 declaration and out-of-date comment.
6524 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6526 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6527 deprecated_pc_in_call_dummy.
6529 * infrun.c (handle_inferior_event): For non legacy frames, use the
6530 frame ID and frame type to identify a signal trampoline. Update
6533 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6535 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6536 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6538 2004-03-21 Andrew Cagney <cagney@redhat.com>
6540 * frame-unwind.h: Update copyright.
6541 (struct frame_data): Add opaque declaration.
6542 (frame_sniffer_ftype): Declare.
6543 (struct frame_unwind): Add "unwind_data" and "sniffer".
6544 (frame_unwind_register_unwinder): Declare.
6545 (frame_unwind_find_by_frame): Add parameter "this_cache".
6546 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6547 (legacy_get_prev_frame, legacy_get_prev_frame)
6548 (get_frame_type): Pass the prologue_cache to
6549 frame_unwind_find_by_frame.
6550 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6552 (frame_unwind_register_unwinder): New function.
6553 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6555 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6557 * bcache.c (print_percentage): Use floating point to avoid
6558 incorrect results when portion*100 overflows.
6560 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6562 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6563 (ppc_linux_init_extra_frame_info)
6564 (ppc_linux_frameless_function_invocation)
6565 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6566 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6567 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6568 (rs6000_frame_chain): Delete declarations.
6569 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6570 (ppc_linux_init_extra_frame_info)
6571 (ppc_linux_frameless_function_invocation)
6572 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6573 (ppc_linux_init_abi): Remove registration of above deleted functions.
6574 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6575 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6576 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6577 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6578 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6579 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6580 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6581 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6582 frame management for all OSABIs.
6584 2004-03-19 Andrew Cagney <cagney@redhat.com>
6586 Committed by Kevin Buettner <kevinb@redhat.com>.
6588 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6590 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6591 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6592 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6593 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6594 unwinders. #ifdef legacy frame code.
6595 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6597 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6598 (struct rs6000_frame_cache, rs6000_frame_cache)
6599 (rs6000_frame_this_id, rs6000_frame_prev_register)
6600 (rs6000_frame_sniffer, rs6000_frame_unwind)
6601 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6602 (rs6000_frame_base): Implement a traditional frame unwinder.
6603 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6606 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6608 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6609 breakpoint address for watchpoints or the catch eventpoints.
6610 Add new paramter ``bptype''. Adjust all callers.
6612 2004-03-19 Andrew Cagney <cagney@redhat.com>
6614 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6616 * PROBLEMS: Delete note that ARM does not use frame code, problem
6619 2004-03-18 Andrew Cagney <cagney@redhat.com>
6621 * stack.c (return_command): Delete code wrapped in #ifdef
6622 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6624 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6626 2004-03-18 Andrew Cagney <cagney@redhat.com>
6628 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6629 DEPRECATED_IN_SIGTRAMP.
6630 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6631 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6632 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6633 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6634 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6635 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6636 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6637 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6638 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6639 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6641 2004-03-18 Andrew Cagney <cagney@redhat.com>
6643 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6644 (struct frame_base_table_entry): Define.
6645 (struct frame_base_table): Re-implement as a linked list.
6646 (frame_base_init): Re-implement.
6647 (frame_base_table): Delete function.
6648 (append_predicate): Delete function.
6649 (frame_base_append_sniffer): Update.
6650 (frame_base_set_default): Update.
6651 (frame_base_find_by_frame): Update.
6652 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6653 * Makefile.in (frame-base.o): Update dependencies.
6655 2004-03-17 Andrew Cagney <cagney@redhat.com>
6657 * frame.c (legacy_get_prev_frame): Pass correct frame to
6658 frame_unwind_find_by_frame.
6660 2004-03-17 David Carlton <carlton@kealia.com>
6662 * NEWS: Mention C++ nested types and namespaces
6664 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6666 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6667 and "Regressions since gdb 5.3.". Add known regressions since
6670 2004-03-16 David Carlton <carlton@kealia.com>
6672 * dwarf2read.c (process_structure_scope): Process children even
6673 when we're a declaration.
6675 2004-03-16 Andrew Cagney <cagney@redhat.com>
6677 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6678 * blockframe.c (find_pc_partial_function)
6679 (find_pc_sect_partial_function): Merge into a single
6680 find_pc_partial_function.
6682 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6684 * i386bsd-nat.c: s/regno/regnum/g.
6685 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6687 (store_inferior_registers): Likewise.
6689 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6691 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6693 (store_inferior_registers): Call i387_collect_fsave and
6694 i387_collect_fxsave instead of i387_fill_fsave and
6697 2004-03-15 Andrew Cagney <cagney@redhat.com>
6699 * Makefile.in (frame-unwind.o): Update dependencies.
6700 * frame-unwind.c: Include "gdb_obstack.h".
6701 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6703 (append_predicate): Delete function.
6704 (struct frame_unwind_table_entry): New structure.
6705 (struct frame_unwind_table): Replace "sniffer" with "head" and
6707 (frame_unwind_append_sniffer): Update.
6708 (frame_unwind_find_by_frame): Update.
6709 (_initialize_frame_unwind): Registe frame_unwind_init using
6710 gdbarch_data_register_pre_init.
6712 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6714 * i386bsd-nat.c: Update copyright year.
6715 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6716 define unconditionally.
6718 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6720 * i387-tdep.h (i387_collect_fsave): New prototype.
6721 * i387-tdep.c (i387_collect_fsave): New function containing most
6722 of the code from i387_fill_fsave.
6723 (i387_fill_fsave): Call i387_collect_fsave.
6725 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6727 * i386-linux-tdep.c: Update copyright year.
6728 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6729 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6730 svr4_ilp32_link_map_offsets instead of
6731 i386_linux_svr4_fetch_link_map_offsets.
6733 2004-03-15 David Carlton <carlton@kealia.com>
6735 Fix for PR c++/1553:
6736 * dwarf2read.c (read_structure_type): Determine type name by
6737 calling determine_class_name.
6738 (determine_class_name): New.
6739 (determine_prefix): Look at TYPE_TAG_NAME and call
6740 determine_class_name when appropriate.
6741 (determine_prefix_aux, class_name): Delete.
6742 (read_namespace): Set die->type.
6744 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6746 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6747 unused macro definition. The definition in target.h (or perhaps
6748 elsewhere) takes precedence.
6750 2004-03-15 Andrew Cagney <cagney@redhat.com>
6752 * ppc-tdep.h: Update copyright.
6753 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6754 function signatures to match "regsets.h".
6755 * ppc-linux-tdep.c: Include "regset.h".
6756 (ELF_GREGSET_SIZE): Delete.
6757 (right_supply_register): New function.
6758 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6759 using right_supply_register.
6760 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6762 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6763 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6764 (_initialize_ppc_linux_tdep): Do not register
6765 ppc_linux_regset_core_fns.
6766 (ppc_linux_regset_from_core_section): Replace
6767 fetch_core_registers.
6768 (ppc_linux_regset_core_fns): Delete.
6769 * ppc-linux-nat.c: (right_fill_reg): New function.
6770 (supply_gregset): Update call to ppc_linux_supply_gregset.
6771 (fill_gregset): Clear the register set, use right_fill_reg.
6772 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6773 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6775 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6778 2004-03-15 Andrew Cagney <cagney@redhat.com>
6780 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6781 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6782 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6783 and register_gdbarch_data.
6784 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6785 (struct gdbarch_data): Replace "init" by "pre_init" and
6787 * gdbarch.h, gdbarch.c: Re-generate.
6788 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6789 with"obstack", use OBSTACK_ZALLOC.
6790 (dwarf2_frame_ops): Delete.
6791 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6792 (dwarf2_frame_init_reg): Use gdbarch_data.
6793 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6794 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6795 (_initialize_svr4_solib): Update.
6796 * user-regs.c (_initialize_user_regs): Update.
6797 * reggroups.c (_initialize_reggroup): Update.
6798 * regcache.c (_initialize_regcache): Update.
6799 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6800 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6801 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6802 * frame-unwind.c (_initialize_frame_unwind): Update.
6803 * frame-base.c (_initialize_frame_base): Update.
6804 * user-regs.c (user_reg_add): Update.
6805 * reggroups.c (reggroup_add): Update.
6806 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6807 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6808 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6809 * frame-base.c (frame_base_table): Update.
6810 * remote.c (_initialize_remote): Update.
6811 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6813 2004-03-15 Andrew Cagney <cagney@redhat.com>
6815 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6817 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6819 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6820 * frv-linux-tdep.c: New file.
6821 * frv-tdep.c (struct gdbarch_tdep): Add new field
6822 ``sigcontext_reg_addr''.
6823 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6824 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6825 (frv_sigramp_frame_sniffer): New functions.
6826 (frv_sigtramp_frame_unwind): New static global.
6827 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6829 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6830 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6832 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6834 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6835 but not via a call to error(), when unable to read memory.
6837 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6839 * frv-tdep.c (frv_call_dummy_words): Delete.
6840 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6842 2004-03-15 Andrew Cagney <cagney@redhat.com>
6844 * infrun.c (handle_step_into_function, step_over_function): Only
6845 update and use STEP_FRAME_ID when the system is using legacy
6846 frames. Update comments.
6848 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6850 * amd64-linux-tdep.h: Remove file.
6851 * amd64-linux-tdep.c: Don't include "inferior.h" and
6852 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6853 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6854 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6855 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6856 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6858 (user_to_gdb_regmap): Remove variable.
6859 (amd64_linux_gregset_reg_offset): New variable.
6860 (amd64_core_fns): Remove variable.
6861 (fetch_core_registers): Remove function.
6862 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6864 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6865 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6866 * Makefile.in (amd64_linux_tdep_h): Remove.
6867 (amd64-linux-nat.o): Update dependencies.
6868 (amd64-linux-tdep.o): Update dependencies.
6870 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6871 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6873 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6875 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6876 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6878 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6880 * dwarf2read.c (read_structure_type): Rename from
6881 read_structure_scope. Don't create a symbol or call process_die.
6882 Return immediately if die->type is set. Call read_type_die before
6883 dwarf2_add_member_fn.
6884 (process_structure_scope): New function.
6885 (read_enumeration_type, process_enumeration_scope): New functions,
6886 broken out from read_enumeration. Don't create the enumeration
6887 type if it has already been created.
6888 (read_enumeration): Removed.
6889 (process_die): Call read_structure_type, process_structure_scope,
6890 read_enumeration_type, and process_enumeration_scope. Just call
6891 new_symbol for base and subrange types. Add a comment about other
6893 (read_type_die): Call read_enumeration_type.
6894 (add_partial_structure, new_symbol): Update comments.
6896 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6898 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6900 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6902 * tui/tui-win.h (tui_get_cmd_list): Declare.
6903 * tui/tui-win.c (tui_command): New function.
6904 (tui_get_cmd_list): New function.
6905 (_initialize_tui_win): Moved initialization of tui command in
6908 * tui/tui-data.c (init_content_element): Setup new data members.
6909 (init_win_info): Likewise.
6910 (free_content_elements): Free it.
6911 * tui/tui-data.h (struct tui_data_element): Store the register
6913 (struct tui_data_info): Keep the current register group.
6915 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6917 * tui/tui-regs.h (tui_show_registers): Update prototype.
6918 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6919 (tui_resize_all): No need to calculate anything for register window.
6920 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6921 (tui_set_register_element, tui_set_general_regs_content): Remove.
6922 (tui_set_special_regs_content): Remove.
6923 (tui_set_general_and_special_regs_content): Remove.
6924 (tui_set_float_regs_content): Remove.
6925 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6926 (tui_set_regs_content): Remove.
6927 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6928 (tui_v_show_registers_command_support): Remove.
6929 (tui_show_registers): Use a reggroup to specify the registers to show.
6930 (tui_show_register_group): New function.
6931 (tui_display_registers_from): Compute the layout of register window
6932 and refresh with new API; be sure to delete old register windows.
6933 (tui_check_register_values): Update to use tui_get_register and
6935 (tui_display_register): Just refresh the register window part.
6936 (tui_register_format): Format registers and save in tui_data_element.
6937 (tui_get_register): New to combine tui_reg_value_has_changed and
6938 tui_get_register_raw_value; fix to use the new gdb API.
6939 (tui_show_float_command): Renamed tui_reg_float_command.
6940 (tui_show_general_command): Renamed tui_reg_general_command.
6941 (tui_show_special_command): Renamed tui_reg_system_command.
6942 (_initialize_tui_regs): Remove unused commands.
6944 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6946 * NEWS (New native configurations): Mention OpenBSD/amd64.
6948 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6949 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6951 * config/i386/nm-fbsd64.h: Likewise.
6952 * config/i386/nm-obsd.h: Likewise.
6953 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6954 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6956 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6958 * frv-tdep.c (set_variant_scratch_registers): New function.
6959 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6962 From Richard Sandiford <rsandifo@redhat.com>:
6963 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6965 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6967 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6968 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6969 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6970 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6971 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6972 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6973 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6974 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6975 definitions from frv-tdep.c to frv-tdep.h.
6977 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6979 Add shared library support for FR-V FDPIC ABI:
6980 * Makefile.in (solib-frv.o): Add dependencies.
6981 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6983 (frv_push_dummy_call): Add support for FDPIC ABI.
6984 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6986 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6987 (frv_fdpic_find_canonical_descriptor): Declare.
6988 * solib-frv.c: New file.
6989 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6990 * config/frv/tm-frv.h (solib.h): Include.
6992 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6994 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6995 (frv-tdep.o): Update dependencies.
6996 * frv-tdep.h: New file.
6997 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6998 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7000 (struct gdbarch_tdep): Add new member ``frv_abi''.
7001 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7003 (new_variant): Set ``frv_abi'' field.
7004 (gdb_arch_init): Detect FDPIC executables.
7006 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7008 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7011 2004-03-11 Andrew Cagney <cagney@redhat.com>
7013 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7015 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7017 * solist.h (master_so_list): New function.
7018 * solib.c (master_so_list): Likewise.
7019 * solib-svr4.c (enable_break): Iterate over so_list entries
7020 obtained from master list instead of entries obtained directly
7021 via svr4_current_sos().
7023 2004-03-10 Ben Elliston <bje@gnu.org>
7025 * MAINTAINERS: Update my mail address.
7027 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7029 * remote-m32r-sdi.c: Support hardware watchpoint.
7031 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7033 * user-regs.c: Update copyright years.
7034 (struct user_regs): Rename to gdb_user_regs.
7035 (append_user_reg, builtin_user_regs, user_regs_init)
7036 (user_reg_add, user_reg_map_name_to_regnum)
7037 (usernum_to_user_reg): Update.
7039 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7041 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7042 (skip_children): New functions.
7043 (locate_pdi_sibling): Call skip_children.
7045 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7047 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7048 * gdbtypes.c (check_typedef): Update comments.
7050 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7052 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7053 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7054 pointer. Update comment about comp_unit_head.
7055 (struct abbrev_info): Shorten two int flags.
7056 (dwarf_alloc_abbrev): Take a CU argument.
7057 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7058 each time through the loop. Update cleanup argument.
7059 (psymtab_to_symtab_1): Update cleanup call.
7060 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7062 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7063 Just call obstack_free and clear the pointer.
7065 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7067 * infrun.c (handle_inferior_event): Remove short-circuit code for
7068 events in a different thread.
7070 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7072 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7073 print the whole transfer.
7074 (initialize_targets): Update description of "set debug target".
7076 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7078 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7080 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7082 * MAINTAINERS (write after approval): Add myself.
7084 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7086 * sh-tdep.c (sh_print_registers_info): Use for loop.
7087 Don't skip multiple registers when a float register is encountered.
7089 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7092 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7093 to official SH documentation.
7095 2004-03-07 Andrew Cagney <cagney@redhat.com>
7097 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7100 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7102 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7103 (arm_get_next_pc): Handle BX and BLX.
7105 2004-03-07 Andrew Cagney <cagney@redhat.com>
7107 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7108 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7110 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7111 (hppa_target_read_fp): Delete.
7112 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7113 register_virtual_size, max_register_raw_size,
7114 max_register_virtual_size, register_byte, register_size,
7115 target_read_fp, fp_regnum, and register_bytes. Set register_type
7116 instead of register_virtual_type.
7117 (hppa32_register_type, hppa64_register_type): Replace
7118 hppa32_register_virtual_type and hppa64_register_virtual_type.
7119 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7120 (HPPA_FP_REGNUM): Define.
7122 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7124 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7125 (pa_do_registers_info): Delete.
7126 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7127 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7128 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7130 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7131 GDB_TARGET_IS_HPPA code.
7132 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7133 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7134 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7135 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7136 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7137 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7138 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7139 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7140 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7141 (hppa_frameless_function_invocation, hppa64_store_return_value)
7142 (hppa_store_struct_return, hppa64_extract_return_value)
7143 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7144 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7145 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7146 (find_proc_framesize, deposit_21, restore_pc_queue)
7147 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7148 (rp_saved, pc_in_linker_stub): Delete.
7150 Unconditionally enable 64-bit frame and ABI code.
7151 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7152 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7153 push_dummy_frame, fix_call_dummy, push_arguments,
7154 call_dummy_location, extract_return_value, use_struct_convention,
7155 store_return_value, store_struct_return, saved_pc_after_call,
7156 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7157 frame_chain, frame_chain_valid, frameless_function_invocation,
7158 frame_saved_pc, and pop_frame.
7160 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7161 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7162 (hppa_gdbarch_init): Do not set PC_REGNUM.
7164 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7166 * config/alpha/tm-fbsd.h: Remove file.
7167 * config/alpha/fbsd.mt: Tweak comment.
7168 (TM_FILE): Set to tm-alpha.h.
7170 2004-03-05 Andrew Cagney <cagney@redhat.com>
7172 * infrun.c (step_over_function): When non-legacy code, and no
7173 step_frame_id, use the unwinder to get the caller's frame ID.
7175 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7177 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7178 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7179 bfd_arch_unknown. Adjust comment.
7181 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7182 * i386obsd-tdep.c: Correct spelling in comment.
7183 * i386nbsd-tdep.c: Correct spelling in comment.
7184 * sparc-tdep.c: Correct spelling in comments.
7186 2004-03-05 David Carlton <carlton@kealia.com>
7188 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7191 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7193 * sparc-tdep.c: Fix typo in comment.
7195 2004-03-04 J. Brobecker <brobecker@gnat.com>
7197 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7199 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7201 * dwarf2read.c: Add comment describing memory lifetimes.
7202 (struct dwarf2_pinfo): Update comment.
7203 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7204 (read_enumeration, new_symbol): Don't use obsavestring.
7206 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7208 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7209 instead of amd64_fill_fxsave.
7210 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7211 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7213 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7214 Reorganize code a bit.
7216 2004-03-04 Orjan Friberg <orjanf@axis.com>
7218 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7219 when the frame pointer is pushed. Don't set the frame pointer's
7220 address on the stack unless it's actually located there.
7221 Set the SRP's address on the stack correctly when the PC is still in
7223 (cris_return_value): New function.
7224 (cris_gdbarch_init): Clear deprecated store_return_value,
7225 extract_return_value.
7227 2004-03-02 Jim Blandy <jimb@redhat.com>
7229 * stabsread.c (reg_value_complaint): The maximum register number
7230 is one less than the number of registers.
7232 2004-03-02 Andrew Cagney <cagney@redhat.com>
7234 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7235 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7236 trailing comma and redundant assignment of I386_ST0_REGNUM.
7237 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7238 32-bit segment registers.
7240 2004-03-01 Andrew Cagney <cagney@redhat.com>
7242 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7243 use frame_relative_level and get_next_frame.
7245 2004-02-29 Andrew Cagney <cagney@redhat.com>
7247 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7248 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7249 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7252 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7254 * inflow.c (terminal_inferior): Don't give up the terminal if we
7255 previously couldn't get the inferior's terminal state.
7257 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7259 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7262 2004-02-28 Andrew Cagney <cagney@redhat.com>
7264 * NEWS: Refer to GDB 6.1.
7265 * README: Refer to GDB 6.1.
7266 * PROBLEMS: Refer to GDB 6.1.
7268 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7270 * thread-db.c (disable_thread_signals): Remove unused function.
7272 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7274 * amd64-nat.c: Include "gdb_string.h".
7275 (amd64_collect_native_gregset): Zero-extend the 32-bit
7276 general-purpose registers and %eip.
7278 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7279 * amd64-tdep.c (amd64_collect_fxsave): New function.
7280 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7282 * i387-tdep.h: Update copyright year.
7283 (i387_collect_fxsave): New prototype.
7284 * i387-tdep.c: Update copyright year.
7285 (i387_collect_fxsave): New function containing most of the code
7286 from i387_fill_fxsave.
7287 (i387_fill_fxsave): Call i387_collect_fxsave.
7289 2004-02-28 Andrew Cagney <cagney@redhat.com>
7291 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7292 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7294 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7296 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7298 2004-02-28 Andrew Cagney <cagney@redhat.com>
7300 * utils.c: Use "", instead of <>, to include readline.
7301 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7302 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7303 * source.c, solib.c, exec.c, event-top.c: Ditto.
7304 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7305 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7306 * Makefile.in: Update all dependencies.
7307 (readline_tilde_h, readline_history_h): Define.
7308 (readline_headers): Delete.
7310 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7312 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7313 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7314 "config/i386/tm-lx64.h".
7316 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7317 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7318 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7320 2004-02-28 Andrew Cagney <cagney@redhat.com>
7322 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7324 * breakpoint.c (_initialize_breakpoint): Use
7325 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7326 Add help to show command.
7328 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7330 * i386-nat.c: Reformat to be closer to coding standards.
7331 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7332 `retval'. Make variables `align' and `size' local to while-loop.
7333 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7334 (_initialize_i386_nat): New prototype.
7336 * tui/tui.c: Include <readline/readline.h> instead of
7337 "readline/readline.h". Include it after <term.h> and
7340 2004-02-27 Andrew Cagney <cagney@redhat.com>
7342 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7343 the new frame unwind code.
7344 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7345 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7348 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7349 "return_value" and "push_dummy_call".
7350 (hppa32_use_struct_convention): Delete unused function.
7351 (hppa32_store_return_value): Delete unused function.
7352 (hppa32_extract_return_value): Delete unused function.
7353 (hppa32_stack_align): Delete function.
7355 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7357 * coffread.c (enter_linenos): Don't let rawptr reference memory
7358 outside linetab[]'s limits.
7360 2004-02-27 Andrew Cagney <cagney@redhat.com>
7362 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7363 inferior stack space - the stack needs to grow upwards.
7364 (hppa32_frame_align): New function.
7365 (hppa64_frame_align): Replace hppa_frame_align.
7366 (hppa_gdbarch_init): Update.
7368 2004-02-26 Orjan Friberg <orjanf@axis.com>
7370 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7371 (dwarf2-frame.h): Include.
7372 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7373 Remove static variables related to ABI setting.
7374 (struct gdbarch_tdep): Remove cris_abi member.
7375 (struct frame_extra_info): Remove.
7376 (cris_unwind_cache, stack_item): New structs.
7377 (cris_frame_unwind, cris_frame_base): New variables.
7378 (push_stack_item, pop_stack_item)
7379 (cris_frame_unwind_cache, cris_frame_this_id)
7380 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7381 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7382 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7383 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7384 (cris_reg_struct_has_addr): New functions.
7385 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7386 (cris_frame_saved_pc, cris_saved_pc_after_call,
7387 (cris_store_struct_return, cris_frameless_function_invocation)
7388 (cris_pop_frame, cris_skip_prologue_main)
7389 (cris_abi_original_store_return_value)
7390 (cris_abi_v2_store_return_value)
7391 (cris_abi_original_extract_return_value)
7392 (cris_abi_v2_extract_return_value)
7393 (cris_abi_original_reg_struct_has_addr)
7394 (cris_abi_v2_reg_struct_has_addr)
7395 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7396 (cris_push_return_address, cris_abi_update): Remove.
7397 (_initialize_cris_tdep): Remove ABI command.
7398 (cris_dump_tdep): Ditto.
7399 (cris_gdbarch_init): Remove ABI command.
7400 Set store_return_value, extract_return_value, push_dummy_code,
7401 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7402 frame_unwind_append_sniffer, frame_base_set_default.
7403 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7404 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7405 sizeof_call_dummy_words, get_saved_register, push_return_address,
7406 pop_frame, store_struct_return, frame_init_saved_regs,
7407 init_extra_frame_info, frameless_function_invocation, frame_chain,
7408 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7411 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7413 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7414 * valprint.c (print_hex_chars): Change from static to external.
7415 (print_char_chars): New function.
7416 * printcmd.c (print_scalar_formatted): For integer and enum types
7417 that are longer than LONGEST, perform processing via appropriate
7418 print_*_chars routines.
7420 2004-02-26 Andrew Cagney <cagney@redhat.com>
7422 * Makefile.in: Update dependencies.
7423 Changes from Ulrich Weigand,
7424 * s390-tdep.c: Include "dwarf2-frame.h".
7425 (s390_dwarf2_frame_init_reg): New function.
7426 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7427 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7429 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7431 * breakpoint.c (pending_break_support): New setting variable.
7432 (break_command_1): Account for pending_break_support setting
7433 when creating pending breakpoints.
7434 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7435 (_initialize_breakpoint): Add "set breakpoint pending" and
7436 "show breakpoint pending" commands.
7438 2004-02-26 Andrew Cagney <cagney@redhat.com>
7441 * charset.c (backslashable, backslashed, represented): Remove 'e'
7442 from list of escaped characters, not part of ISO-C.
7444 2004-02-25 J. Brobecker <brobecker@gnat.com>
7446 From Peter Schauer <schauer@pdf.de>:
7447 * tui/tui.c: Move system header includes after local includes.
7448 Fixes a build failure on solaris systems.
7450 2004-02-25 J. Brobecker <brobecker@gnat.com>
7452 * configure.in: Refine the previous change.
7453 * configure: Regenerate.
7455 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7457 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7458 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7459 "amd64-tdep.h" instead of "x86-64-tdep.h".
7460 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7461 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7462 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7463 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7464 and "x86-64-tdep.c".
7465 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7466 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7467 and "x86-64-tdep.c".
7468 * amd64bsd-nat.c: Update copyright year.
7469 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7470 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7472 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7474 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7476 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7478 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7480 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7482 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7483 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7484 * Makefile.in (amd64_linux_tdep_h): Renamed from
7485 x86_64_linux_tdep_h.
7486 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7487 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7488 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7489 (amd64obsd-tdep.o): Update dependencies.
7490 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7492 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7494 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7495 amd64-linux-nat.c amd64-linux-tdep.c.
7496 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7497 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7498 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7499 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7500 amd64-tdep.o and amd64-linux-tdep.o.
7501 (TM_FILE): Set to tm-linux64.h.
7502 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7503 (NAT_FILE): Set to nm-linux64.h.
7504 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7505 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7507 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7509 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7512 2004-02-25 Roland McGrath <roland@redhat.com>
7514 * remote.c (remote_protocol_qPart_auxv): New variable.
7515 (init_all_packet_configs): Initialize it.
7516 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7517 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7518 (show_remote_cmd): Call it.
7519 (_initialize_remote): Initialize commands.
7520 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7521 service TARGET_OBJECT_AUXV requests.
7523 2004-02-25 J. Brobecker <brobecker@gnat.com>
7525 * configure.in: Make sure that the wborder function is available.
7526 Otherwise, search for it in the cur_colr library.
7527 * configure: Regenerate.
7529 2004-02-25 Andrew Cagney <cagney@redhat.com>
7531 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7533 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7535 * config/i386/tm-x86-64linux.h: Tweak comments.
7537 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7539 * MAINTAINERS: Add self to write-after-approval list.
7541 2004-02-25 Andrew Cagney <cagney@redhat.com>
7543 PR cli/1566. Problem found, and fix suggested by David Allan.
7544 * cli/cli-script.c (execute_control_command): Unconditionally
7545 install a cleanup. Default "ret" to "invalid_control". Use
7546 "break" instead of "return" to escape from the switch.
7548 2004-02-24 J. Brobecker <brobecker@gnat.com>
7550 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7551 with the lines macro defined in term.h on AiX.
7552 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7553 a collision with the label_width macro defined in term.h on AiX.
7555 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7557 Committed by Kevin Buettner <kevinb@redhat.com>.
7559 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7560 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7561 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7562 instead of ia64_write_pc().
7563 * ia64-linux-tdep.c (regcache.h): Include.
7564 (ia64_linux_write_pc): New function.
7566 2004-02-23 Roland McGrath <roland@redhat.com>
7568 * auxv.c (info_auxv_command): Fix typos in error messages.
7570 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7572 * x86-64-tdep.h: Tweak comment.
7573 (enum amd64_regnum): New.
7574 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7575 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7576 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7577 (X86_64_XMM1_REGNUM): Removed.
7578 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7579 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7580 prototypes for renamed functions.
7581 * x86-64-tdep.c: Fix typo.
7582 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7584 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7585 Use constants from `enum amd64_regnum' for register numbers.
7586 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7587 (amd64_analyze_prologue, amd64_frame_cache,
7588 amd64_sigtramp_frame_cache): Use constants from `enum
7589 amd64_regnum' for register numbers.
7590 (amd64_supply_fpregset): Adjust for renamed functions.
7591 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7592 `enum amd64_regnum' for register numbers.
7593 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7594 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7595 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7596 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7597 (amd64_linux_fill_gregset): Adjust for renamed macros.
7598 (fetch_core_registers): Adjust for renamed functions.
7599 (amd64_linux_init_abi): Adjust for renamed functions.
7600 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7602 * amd64-nat.c: Adjust for renamed macros.
7603 * amd64bsd-nat.c (fetch_inferior_registers)
7604 (store_inferior_registers): Use constants from `enum amd64_regnum'
7605 for register numbers. Adjust for renamed variables.
7606 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7608 (_initialize_amd64fbsd_nat): Use constants from `enum
7609 amd64_regnum' for register numbers.
7610 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7611 `enum amd64_regnum' for register numbers.
7612 (amd64fbsd_init_abi): Adjust for renamed functions.
7613 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7614 `enum amd64_regnum' for register numbers.
7615 (amd64nbsd_init_abi): Adjust for renamed functions.
7616 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7617 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7618 `enum amd64_regnum' for register numbers.
7619 (amd64obsd_init_abi): Adjust for renamed functions.
7620 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7622 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7624 * breakpoint.c (print_one_breakpoint): Do not output spaces
7625 after printing <PENDING> for a pending breakpoint.
7627 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7629 * printcmd.c (print_scalar_formatted): Initialize val_long
7630 to remove compiler warning message.
7632 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7634 * defs.h (nquery, yquery): New prototypes.
7635 * breakpoint.c (break_command_1): Use new nquery interface.
7636 * utils.c (defaulted_query, nquery, yquery): New functions.
7638 2004-02-23 Andrew Cagney <cagney@redhat.com>
7640 * hppa-tdep.c (hppa_frame_align): New function.
7641 (hppa32_push_dummy_call): New function.
7642 (hppa64_push_dummy_call): New function.
7643 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7646 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7647 FIX_CALL_DUMMY when push_dummy_call is available.
7648 (call_function_by_hand, push_dummy_code): Ditto.
7650 2004-02-22 Andrew Cagney <cagney@redhat.com>
7652 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7653 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7654 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7655 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7656 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7657 call_dummy_location to ON_STACK.
7659 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7661 * x86-64-linux-tdep.c: Tweak comment.
7662 (amd64_linux_supply_gregset): Renamed from
7663 x86_64_linux_supply_gresget.
7664 (amd64_linux_fill_gregset): Renamed from
7665 x86_64_linux_fill_gregset.
7666 (fetch_core_registers): Adjust for renamed functions.
7667 (amd64_core_fns): Renamed from x86_64_core_fns.
7668 (amd64_linux_sigtramp_start): Renamed from
7669 x86_64_linux_sigtramp_start.
7670 (amd64_linux_pc_in_sigtramp): Renamed from
7671 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7672 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7673 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7674 (amd64_linux_sigcontext_addr): Renamed from
7675 x86_64_linux_sigcontext_addr.
7676 (amd64_linux_sc_reg_offset): Renamed from
7677 x86_64_linux_sc_reg_offset.
7678 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7679 Adjust for renamed functions and variables.
7680 (_initialize_amd64_linux_tdep): Renamed from
7681 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7683 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7684 Adjust for renamed functions.
7686 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7687 from x86_64_linux_gregset64_reg_offset.
7688 (amd64_linux_gregset32_reg_offset): Rename from
7689 x86_64_linux_gregset64_reg_offset.
7690 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7691 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7692 (amd64_linux_dr_set_control): Renamed from
7693 x86_64_linux_dr_set_control. Adjust for renamed functions.
7694 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7695 Adjust for renamed functions.
7696 (amd64_linux_dr_reset_addr): Renamed from
7697 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7698 (amd64_linux_dr_get_status): Renamed from
7699 x86_64_linux_dr_get_status. Adjust for renamed functions.
7700 (_initialize_amd64_linux_nat): Renamed from
7701 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7703 * config/i386/nm-x86-64linux.h: Update copyright year.
7704 Adjust for renamed functions.
7706 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7707 amd64fbsd_sigtramp_start.
7708 (amd64fbsd_sigtramp_end_addr): Renamed from
7709 amd64fbsd_sigtramp_end.
7710 (amd64fbsd_init_abi): Adjust for renamed variables.
7711 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7713 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7714 amd64fbsd_sigtramp_start.
7715 (amd64fbsd_sigtramp_end_addr): Renamed from
7716 amd64fbsd_sigtramp_end.
7718 2004-02-22 Andrew Cagney <cagney@redhat.com>
7720 * hppa-tdep.c (hppa32_return_value): New function.
7721 (hppa64_return_value): New function.
7722 (hppa_gdbarch_init): Set return_value; keep disabled.
7724 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7725 struct-return and inferior function call methods.
7727 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7729 (struct hppa_frame_cache): Define.
7730 (hppa_frame_cache, hppa_frame_this_id): New functions.
7731 (hppa_frame_prev_register): New function.
7732 (hppa_frame_unwind, hppa_frame_base): New variables.
7733 (hppa_frame_unwind_sniffer): New function.
7734 (hppa_frame_base_address, hppa_unwind_pc): New function.
7735 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7736 sniffer, and frame base sniffer; keep disabled.
7737 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7738 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7740 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7741 to predicates for "seriously old code".
7743 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7746 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7748 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7750 * config/pa/tm-hppa.h: Update copyright.
7751 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7752 (deprecated_init_frame_pc_default): Delete declaration.
7753 (hppa_frame_init_saved_regs): Delete declaration.
7754 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7755 * hppa-tdep.c: Include "arch-utils.h".
7756 (hppa_gdbarch_init): Set deprecated init_frame_pc
7757 and deprecated frame_init_saved_regs.
7758 (hppa_frame_init_saved_regs): Make static.
7760 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7762 Remove old 386BSD support.
7763 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7764 * configure.host: Remove i[34567]86-*-bsd*.
7765 * configure.tgt: Remove i[34567]86-*-bsd*.
7766 * i386b-nat.c: Removed.
7767 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7768 (i386b-nat.o): Remove dependencies.
7770 * config/i386/i386bsd.mh: Removed.
7771 * config/i386/i386bsd.mt: Removed.
7772 * config/i386/nm-i386bsd.h: Removed.
7773 * config/i386/tm-i386bsd.h: Removed.
7774 * config/i386/xm-i386bsd.h: Removed.
7776 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7778 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7779 (amd64fbsd_init_abi): Set link map offsets.
7780 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7781 (amd64nbsd_init_abi): Set link map offsets.
7782 * amd64obsd-tdep.c: Include "solib-svr4.h".
7783 (amd64obsd_init_abi): Set link map offsets.
7784 * i386fbsd-tdep.c: Include "solib-svr4.h".
7785 (i386fbsd_init_abi): Set link map offsets.
7786 * i386nbsd-tdep.c: Include "solib-svr4.h".
7787 (i386nbsdelf_init_abi): Set link map offsets.
7788 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7789 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7790 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7791 solib-legacy.o and core-aout.o. Reformat.
7792 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7793 solib-svr4.o, solib-legacy.o. Reformat.
7794 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7795 * config/i386/nbsdelf.mh: Reformat.
7796 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7797 solib-svr4.o, solib-legacy.o and corelow.o.
7798 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7799 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7800 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7801 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7802 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7803 (TM_FILE): Set to tm-fbsd.h.
7804 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7805 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7807 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7809 (TM_FILE): Set to nm-nbsd.h.
7810 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7811 Simplify shared library support. Don't include "elf/common.h".
7812 (SVR4_SHARED_LIBS): Don't define.
7813 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7815 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7816 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7817 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7818 Don't include "i386/tm-i386.h". Include "solib.h".
7819 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7820 Don't include "i386/tm-i386.h".
7821 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7822 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7823 Include "i386/xm-i386.h".
7824 (HOST_LONG_DOUBLE_FORMAT): Remove.
7826 Fix OpenBSD/i386 sigtramp recognition.
7827 * i386-tdep.h: Update copyright year.
7828 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7829 (i386bsd_sigtramp_end): New prototypes.
7830 (i386fbsd_sigtramp_start_addr): Renamed from
7831 i386fbsd_sigtramp_start.
7832 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7833 (i386obsd_sigtramp_start_addr): Renamed from
7834 i386obsd_sigtramp_start.
7835 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7836 * i386bsd-tdep.c: Update copyright year.
7837 (i386bsd_pc_in_sigtramp): Make public.
7838 * i386fbsd-nat.c: Update copyright year.
7839 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7840 * i386fbsd-tdep.c: Update copyright year.
7841 (i386fbsd_sigtramp_start_addr): Renamed from
7842 i386fbsd_sigtramp_start.
7843 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7844 (i386fbsdaout_init_abi): Adjust for renamed variables.
7845 * i386obsd-nat.c: Update copyright year.
7846 (_initialize_i386obsd_nat): Adjust for renamed variables.
7847 * i386obsd-tdep.c: Include "target.h".
7848 (i386obsd_page_size): New variable.
7849 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7850 (i386obsd_sigtramp_end): New functions.
7851 (i386obsd_sigtramp_start_addr): Renamed from
7852 i386obsd_sigtramp_start.
7853 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7854 (i386obsd_init_abi): Adjust for renamed variables. Set
7855 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7856 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7858 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7859 trampoline change in OpenBSD kernel.
7861 * amd64-nat.c: Update copyright year.
7862 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7863 architecture from REGCACHE.
7865 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7866 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7868 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7870 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7871 i[34567]86-*-openbsd3.[0-3].
7872 * config/i386/obsdaout.mh: New file.
7874 * config/i386/obsd.mh (MH_FLAGS): Remove.
7877 * i386obsd-tdep.c: Update copyright years. Include
7879 (i386obsd_init_abi): Don't set regset_from_core_section here.
7880 (i386obsd_aout_init_abi): New function. Set
7881 regset_from_core_section here.
7882 (i386obsd_elf_init_abi): New function.
7883 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7884 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7885 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7886 (TM_FILE): Set to tm-nbsd.h.
7888 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7891 * solib-svr4.h: Update copyright year.
7892 (svr4_ilp32_fetch_link_map_offsets)
7893 (svr4_lp64_fetch_link_map_offsets): New prototype.
7894 * solib-svr4.c: Update copyright year.
7895 (svr4_ilp32_fetch_link_map_offsets)
7896 (svr4_lp64_fetch_link_map_offsets): New function.
7898 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7900 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7901 to the partial symbol table.
7903 2004-02-20 J. brobecker <brobecker@gnat.com>
7905 * PROBLEMS: Add description of problem documented under gdb/1560.
7907 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7909 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7911 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7913 (amd64obsd_init_abi): Reorder initializations. Use
7914 amd64obsd_r_reg_offset to initialize the general-purpose register
7915 set details. Set regset_from_core_section.
7916 (_initialize_amd64obsd_tdep): Rename from
7917 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7918 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7919 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7921 * NEWS (New native configurations): Mention OpenBSD/alpha.
7922 * configure.tgt: Add alpha*-*-openbsd*.
7923 * configure.host: Add alpha*-*-openbsd*.
7924 * alphanbsd-tdep.c: Update copyright year.
7925 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7927 2004-02-20 Andrew Cagney <cagney@redhat.com>
7930 * configure.tgt: Delete target "none-*-*".
7931 * configure.host: Delete host "none-*-*".
7932 * config/none/none.mh: Delete file.
7933 * config/none/none.mt: Delete file.
7934 * config/none/xm-none.h: Delete file.
7935 * config/none/tm-none.h: Delete file.
7936 * config/none/nm-none.h: Delete file.
7938 2004-02-19 Fred Fish <fnf@redhat.com>
7940 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7941 cache->uses_fp prior to setting it.
7943 2004-02-19 Fred Fish <fnf@redhat.com>
7945 Fix for PR breakpoint/1558.
7946 * sh-tdep.c (IS_JSR): New macro.
7947 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7949 2004-02-19 Jim Blandy <jimb@redhat.com>
7951 * findvar.c (value_from_register): Doc fix.
7953 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7955 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7956 type being greater than sizeof of host's LONGEST. Always use
7957 unpack_long() unless format 'f' chosen.
7959 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7961 Committed by Elena Zannoni <ezannoni@redhat.com>
7963 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7964 contains a symbol wich is the best, non-exact match for the given
7965 pc. Update comments.
7967 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7969 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7970 macro, which was part of the now removed Mach 3 port.
7971 * utils.c (request_quit): Ditto.
7973 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7975 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7976 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7978 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7980 Committed by Mark Kettenis <kettenis@gnu.org>.
7982 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7985 2004-02-18 Andrew Cagney <cagney@redhat.com>
7987 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7988 CONFIG_INSTALL and CONFIG_UNINSTALL.
7989 * configure: Re-generate.
7990 * interps.h (INTERP_TUI): Define.
7991 * Makefile.in: Update dependencies.
7993 (tui-main.o): Specify dependencies.
7994 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7995 * tui/tui-main.c: New file.
7997 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7999 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8000 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8002 * configure.host: Add x86_64-*-openbsd*.
8003 * configure.tgt: Add x86_64-*-openbsd*.
8004 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8006 * tui/tui.c: Don't include <malloc.h>.
8008 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8009 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8012 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8013 static. Remove extraneous whitespace.
8014 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8017 2004-02-17 Jim Blandy <jimb@redhat.com>
8019 * findvar.c (value_from_register): Doc fix.
8021 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8023 Committed by Jim Blandy <jimb@redhat.com>.
8025 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8026 CORE_ADDR as type for selectors. Correct types for GNU run time
8027 message lookup function to use double indirection.
8028 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8029 * objc-lang.h (lookup_child_selector): Adapt prototype.
8031 * s390-nat.c (SUBOFF): New macro.
8032 (supply_gregset, fill_gregset): Use it to handle debugging
8033 of 32-bit exectuables running under a 64-bit kernel.
8034 * s390-tdep.c: Include "solib-svr4.h".
8035 (s390_svr4_fetch_link_map_offset): New function.
8036 (s390x_svr_fetch_link_map_offset): Likewise.
8037 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8038 * Makefile.in (s390-tdep.o): Update dependencies.
8040 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8042 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8043 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8044 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8045 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8046 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8047 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8048 S390_SIGNAL_FRAMESIZE,
8049 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8050 (struct frame_extra_info): Remove.
8051 (s390_memset_extra_info): Remove.
8052 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8053 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8054 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8055 (is_rse): Renamed to ...
8056 (is_rsy): ... this. Support long displacements.
8057 (is_rxe): Renamed to ...
8058 (is_rxy): ... this. Support long displacements.
8059 (compute_x_addr): Support long displacements.
8060 (struct s390_prologue_data): New data type.
8061 (s390_on_stack): Change API to use struct s390_prologue_data.
8062 (s390_store): Reimplement.
8063 (s390_load): New function.
8064 (s390_get_signal_frame_info): Remove.
8065 (s390_get_frame_info): Remove, replace by ...
8066 (s390_analyze_prolog): ... this new function.
8067 (s390_check_function_end): Remove.
8068 (s390_function_start): Remove.
8069 (s390_frameless_function_invokation): Remove.
8070 (s390_is_sigreturn): Remove.
8071 (s390_init_frame_pc_first): Remove.
8072 (s390_init_frame_extra_info): Remove.
8073 (s390_frame_init_saved_regs): Remove.
8074 (s390_frame_saved_pc_nofix): Remove.
8075 (s390_frame_saved_pc): Remove.
8076 (s390_frame_chain): Remove.
8077 (s390_fp_regnum, s390_read_fp): Remove.
8078 (s390_pop_frame_regular, s390_pop_frame): Remove.
8079 (s390_saved_pc_after_call): Remove.
8080 (s390_skip_prologue): Reimplement.
8081 (s390_in_function_epilogue_p): Support long displacements.
8082 (struct s390_unwind_cache): New data structure.
8083 (s390_frame_unwind_cache): New function.
8084 (s390_prologue_frame_unwind_cache): Likewise.
8085 (s390_backchain_frame_unwind_cache): Likewise.
8086 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8087 (s390_frame_unwind): Define.
8088 (s390_frame_sniffer): New function.
8089 (struct s390_pltstub_unwind_cache): New data structure.
8090 (s390_pltstub_frame_unwind_cache): New function.
8091 (s390_pltstub_frame_this_id): Likewise.
8092 (s390_pltstub_frame_prev_register): Likewise.
8093 (s390_pltstub_frame_unwind): Define.
8094 (s390_pltstub_frame_sniffer): New function.
8095 (struct s390_sigtramp_unwind_cache): New data structure.
8096 (s390_sigtramp_frame_unwind_cache): New function.
8097 (s390_sigtramp_frame_this_id): Likewise.
8098 (s390_sigtramp_frame_prev_register): Likewise.
8099 (s390_sigtramp_frame_unwind): Define.
8100 (s390_sigtramp_frame_sniffer): New function.
8101 (s390_frame_base_address, s390_local_base_address): New functions.
8102 (s390_frame_base): Define.
8103 (s390_unwind_pc, s390_unwind_sp): New function.
8104 (s390_push_dummy_call): Use new frame base location.
8105 (s390_unwind_dummy_id): Likewise.
8106 (s390_gdbarch_init): Remove calls to:
8107 set_gdbarch_frameless_function_invocation,
8108 set_gdbarch_deprecated_init_frame_pc,
8109 set_gdbarch_deprecated_frame_chain,
8110 set_gdbarch_deprecated_frame_init_saved_regs,
8111 set_gdbarch_deprecated_pop_frame,
8112 set_gdbarch_deprecated_init_extra_frame_info,
8113 set_gdbarch_deprecated_init_frame_pc_first,
8114 set_gdbarch_deprecated_target_read_fp,
8115 set_gdbarch_deprecated_frame_saved_pc,
8116 set_gdbarch_deprecated_saved_pc_after_call,
8117 set_gdbarch_deprecated_fp_regnum.
8119 set_gdbarch_in_solib_call_trampoline,
8120 frame_unwind_append_sniffer,
8121 frame_base_set_default,
8122 set_gdbarch_unwind_pc,
8123 set_gdbarch_unwind_sp.
8124 * Makefile.in (s390-tdep.o): Update dependencies.
8126 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8127 (S390_STACK_FRAME_OVERHEAD): Remove.
8128 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8129 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8130 (s390_promote_integer_argument): Remove.
8131 (s390_cannot_extract_struct_value_address): Remove.
8132 (s390_use_struct_convention, s390_store_struct_return): Remove.
8133 (s390_extract_return_value, s390_store_return_value): Remove.
8134 (s390_return_value_convention, s390_return_value): New functions.
8135 (is_float_singleton): Handle typedefs.
8136 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8137 Remove, replace by ...
8138 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8139 s390_function_arg_integer): ... these new functions.
8140 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8141 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8142 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8145 set_gdbarch_deprecated_store_struct_return,
8146 set_gdbarch_deprecated_extract_return_value,
8147 set_gdbarch_deprecated_store_return_value,
8148 set_gdbarch_use_struct_convention,
8149 set_gdbarch_extract_struct_value_address,
8150 set_gdbarch_deprecated_pc_in_call_dummy,
8151 set_gdbarch_deprecated_push_arguments,
8152 set_gdbarch_deprecated_save_dummy_frame_tos,
8153 set_gdbarch_deprecated_push_return_address,
8154 set_gdbarch_deprecated_sizeof_call_dummy_words,
8155 set_gdbarch_deprecated_call_dummy_words,
8156 set_gdbarch_deprecated_dummy_write_sp.
8158 set_gdbarch_push_dummy_call,
8159 set_gdbarch_unwind_dummy_id,
8160 set_gdbarch_return_value.
8162 * config/s390/nm-linux.h: Update comments.
8163 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8164 (STOPPED_BY_WATCHPOINT): Redefine.
8165 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8166 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8167 (s390_stopped_by_watchpoint): Likewise.
8168 (watch_area_cnt): Remove.
8169 * s390-nat.c: Update comments.
8170 (watch_area): Remove typedef.
8171 Global replace watch_area by struct watch_area.
8172 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8173 (s390_stopped_by_watchpoint): Remove pid argument,
8174 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8175 (s390_fix_watch_points): Remove pid argument,
8176 use s390_inferior_tid. Recompute area spanned by watchpoints.
8177 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8178 argument. Reimplement.
8180 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8181 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8182 (FETCH_INFERIOR_REGISTERS): Define.
8183 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8185 * config/s390/s390x.mt: Remove.
8186 * config/s390/tm-s390.h: Remove.
8187 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8188 (TARGET_ELF64): Remove.
8189 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8190 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8191 s390*-*-* case; always set gdb_target to s390.
8192 * regformats/reg-s390.dat: Remove control registers.
8193 * regformats/reg-s390x.dat: Likewise.
8194 * s390-tdep.h: New file.
8195 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8196 Include "inferior.h" and "s390-tdep.h".
8197 Remove private definition of offsetof.
8198 (s390_register_u_addr): Remove.
8199 (regmap_gregset, regmap_fpregset): Define.
8200 (supply_gregset, fill_gregset): Reimplement.
8201 (supply_fpregset, fill_fpregset): Likewise.
8202 (s390_inferior_tid): New function.
8203 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8204 (fetch_inferior_registers, store_inferior_registers): Likewise.
8205 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8206 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8207 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8208 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8209 (struct gdbarch_tdep): Define.
8210 (struct s390_register_info): Define.
8211 (s390_register_info): New variable.
8212 (s390_register_name): Reimplement.
8213 (s390_register_type): New function.
8214 (s390_register_raw_size, s390x_register_raw_size): Remove.
8215 (s390_cannot_fetch_register): Remove.
8216 (s390_register_byte): Remove.
8217 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8218 (s390_dwarf_regmap): New variable.
8219 (s390_dwarf_reg_to_regnum): New function.
8220 (s390_stab_reg_to_regnum): Remove.
8221 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8222 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8223 (s390_convert_register_p): Likewise.
8224 (s390_register_to_value, s390_value_to_register): Likewise.
8225 (s390_register_reggroup_p): Likewise.
8226 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8227 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8228 (s390_supply_regset, s390_regset_from_core_section): New functions.
8229 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8230 (S390_FPR_SIZE): Likewise.
8231 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8232 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8233 (S390_NUM_GPRS): Move here from tm-s390.h.
8234 (S390_NUM_FPRS): Likewise.
8235 (s390_in_function_epilogue_p): New function.
8236 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8237 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8238 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8239 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8240 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8242 set_gdbarch_deprecated_max_register_raw_size,
8243 set_gdbarch_deprecated_max_register_virtual_size,
8244 set_gdbarch_deprecated_register_byte,
8245 set_gdbarch_cannot_fetch_register,
8246 set_gdbarch_cannot_store_register,
8247 set_gdbarch_deprecated_register_size,
8248 set_gdbarch_deprecated_register_raw_size,
8249 set_gdbarch_deprecated_register_virtual_size,
8250 set_gdbarch_deprecated_register_virtual_type,
8251 set_gdbarch_deprecated_register_bytes.
8253 set_gdbarch_num_pseudo_regs,
8254 set_gdbarch_register_type,
8255 set_gdbarch_convert_register_p,
8256 set_gdbarch_register_to_value,
8257 set_gdbarch_value_to_register,
8258 set_gdbarch_register_reggroup_p,
8259 set_gdbarch_regset_from_core_section,
8260 set_gdbarch_pseudo_register_read,
8261 set_gdbarch_pseudo_register_write,
8262 set_gdbarch_in_function_epilogue_p.
8263 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8264 (s390_tdep_h): New variable.
8266 2004-02-17 Jim Blandy <jimb@redhat.com>
8268 * findvar.c (value_from_register): If the type has no length, just
8269 return an acceptable value --- don't report an internal error.
8271 * stabsread.c (read_type): If we find any type numbers that are
8272 forward references, complain if the references aren't resolved by
8273 the time we're finished reading.
8274 (cleanup_undefined_types): Make error message more appropriate for
8277 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8279 * Makefile.in (defs_h): Remove dependency on progress_h.
8280 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8282 * main.c (captured_main): Delete use of START_PROGRESS and
8285 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8287 * objfiles.c (terminate_minimal_symbol_table): Add back
8288 initialization of MSYMBOL_TYPE.
8290 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8292 Committed by Andrew Cagney.
8293 * Makefile.in (ia64_tdep_h): New macro.
8294 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8295 (ia64-tdep.o): Likewise.
8296 * ia64-tdep.h: New file.
8297 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8298 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8299 (ia64_aix_sigcontext_register_address): Likewise.
8300 (ia64_linux_getunwind_table): Delete declaration.
8301 * ia64-linux-tdep.c: Likewise.
8303 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8305 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8306 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8307 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8309 2004-02-17 Andrew Cagney <cagney@redhat.com>
8311 * symtab.c (skip_prologue_using_sal): New function.
8312 * symtab.h (skip_prologue_using_sal): Declare.
8313 * frv-tdep.c: Include "symtab.h".
8314 (skip_prologue_using_sal): Delete function.
8315 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8316 * rs6000-tdep.c (refine_prologue_limit): Mention
8317 skip_prologue_using_sal.
8318 * ia64-tdep.c (refine_prologue_limit): Ditto.
8319 * Makefile.in: Update dependencies.
8321 2004-02-16 Andrew Cagney <cagney@redhat.com>
8323 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8324 START_INFERIOR_TRAPS_EXPECTED.
8325 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8326 START_INFERIOR_TRAPS_EXPECTED.
8327 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8329 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8330 macro, moved to "nm-osf.h". Update copyright.
8331 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8334 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8335 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8336 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8337 frameless_look_for_prologue.
8338 * frame.h (legacy_frameless_look_for_prologue): Rename
8339 frameless_look_for_prologue.
8340 * gdbarch.h, gdbarch.c: Re-generate.
8341 * sh64-tdep.c (sh64_gdbarch_init): Update.
8342 * sh-tdep.c (sh_gdbarch_init): Update.
8343 * s390-tdep.c (s390_gdbarch_init): Update.
8344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8345 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8346 * m68k-tdep.c (m68k_gdbarch_init): Update.
8347 (delta68_frame_args_address): Update.
8348 * m32r-tdep.c (m32r_gdbarch_init): Update.
8349 * hppa-tdep.c (hppa_gdbarch_init): Update.
8350 * h8300-tdep.c (h8300_gdbarch_init): Update.
8351 * frv-tdep.c (frv_gdbarch_init): Update.
8352 (frv_frameless_function_invocation): Update.
8353 * cris-tdep.c (cris_gdbarch_init): Update.
8354 (cris_frameless_function_invocation): Update.
8355 * avr-tdep.c (avr_gdbarch_init): Update.
8356 * arm-tdep.c (arm_gdbarch_init): Update.
8357 * stack.c (frame_info): Update, call predicate.
8358 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8359 * frame.c (legacy_get_prev_frame): Update, call predicate..
8360 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8361 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8362 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8364 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8365 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8366 * vax-tdep.c (vax_gdbarch_init): Ditto.
8368 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8371 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8373 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8376 2004-02-16 Andrew Cagney <cagney@redhat.com>
8378 * tui/tui-windata.c: Include "gdb_string.h".
8379 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8380 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8381 * Makefile.in: Update dependencies.
8383 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8385 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8386 * infrun.c: Include "gdb_assert.h".
8387 (singlestep_ptid, saved_singlestep_ptid)
8388 (stepping_past_singlestep_breakpoint): New variables.
8389 (resume): Set singlestep_ptid. Check for singlestep thread
8391 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8392 (handle_inferior_event): Handle singlestep thread hop.
8394 2004-02-16 Andrew Cagney <cagney@redhat.com>
8396 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8397 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8398 (dwarf2_frame_init_reg): Ditto.
8400 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8401 suggested by Joshua Neuheisel
8403 * configure.in: Always check for curses, including pdcurses.
8404 Warn, instead of error, when no curses are found. Enable TUI when
8405 curses is available.
8406 * configure: Re-generate.
8408 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8410 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8411 sh_sh4_register_convert_to_virtual.
8412 (sh_register_convert_to_raw): Rename from
8413 sh_sh4_register_convert_to_raw.
8414 (sh_pseudo_register_read): Accomodate above name change.
8415 (sh_pseudo_register_write): Ditto.
8417 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8419 * sh-tdep.c (sh_generic_register_name): Remove.
8420 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8422 2004-02-15 Andrew Cagney <cagney@redhat.com>
8424 * configure.in (build_warnings): Add -Wunused-function.
8425 * configure: Re-generate.
8427 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8428 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8430 * procfs.c (procfs_init_inferior): Assume that
8431 START_INFERIOR_TRAPS_EXPECTED is defined.
8432 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8433 * config/ns32k/tm-nbsd.h: Delete file,
8434 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8436 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8437 * config/vax/tm-vax.h: Delete file.
8439 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8440 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8441 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8442 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8443 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8444 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8445 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8447 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8449 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8450 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8451 (struct dwarf2_frame_ops): New.
8452 (dwarf2_frame_default_init_reg): New function, based on
8453 dwarf2_frame_init_reg.
8454 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8455 (dwarf2_frame_init_reg): Call architecture-specific function.
8456 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8457 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8458 instead of dwarf2_frame_data.
8459 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8460 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8462 2004-02-15 Andrew Cagney <cagney@redhat.com>
8464 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8465 register_gdbarch_swap.
8466 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8467 * f-lang.c (_initialize_f_language): Update, use
8468 DEPRECATED_REGISTER_GDBARCH_SWAP.
8469 * remote.c (_initialize_remote): Ditto.
8470 * regcache.c (_initialize_regcache): Ditto.
8471 * parse.c (_initialize_parse): Ditto.
8472 * infrun.c (_initialize_infrun): Ditto.
8473 * mi/mi-main.c (_initialize_mi_main): Ditto.
8474 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8476 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8477 poking .cacheable directly.
8478 * symfile.c (symfile_bfd_open): Ditto.
8480 * Makefile.in: Update all dependencies.
8482 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8483 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8484 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8485 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8486 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8488 2004-02-14 Andrew Cagney <cagney@redhat.com>
8490 * arch-utils.c (legacy_convert_register_p): Check
8491 DEPRECATED_REGISTER_CONVERTIBLE_P.
8492 * findvar.c (value_of_register): Ditto.
8494 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8495 * gdbarch.h, gdbarch.c: Re-generate.
8496 * arch-utils.c (deprecated_register_convertible_not): Delete.
8497 * arch-utils.h (deprecated_register_convertible_not): Delete.
8498 * mi/mi-main.c (get_register): Update. Update copyright.
8499 * infcmd.c (default_print_registers_info): Update.
8501 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8502 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8503 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8504 * gdbarch.h, gdbarch.c: Re-generate.
8505 * frame.c (deprecated_get_next_frame_hack): Delete function.
8506 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8507 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8509 * infcall.c (call_function_by_hand): Update.
8511 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8513 * symfile.c (init_entry_point_info, entry_point_address): Move
8515 * objfiles.c (init_entry_point_info, entry_point_address):..to
8517 * symfile.h (init_entry_point_info, entry_point_address): Remove
8519 * objfiles.h (init_entry_point_info, entry_point_address):Add
8521 * cris-tdep.c: Remove include of symfile.h. Add include of
8524 * mcore-tdep.c: Ditto.
8525 * mn10300-tdep.c: Ditto.
8526 * sh64-tdep.c: Ditto.
8527 * v850-tdep.c: Ditto.
8528 * arm-tdep.c: Remove include of symfile.h.
8529 * blockframe.c: Ditto.
8530 * coffread.c: Ditto.
8532 * dwarf2read.c: Ditto.
8533 * dwarfread.c: Ditto.
8534 * frv-tdep.c: Ditto.
8535 * ia64-tdep.c: Ditto.
8536 * mdebugread.c: Ditto.
8537 * mipsread.c: Ditto.
8538 * rs6000-tdep.c: Ditto.
8539 * s390-tdep.c: Ditto.
8541 * xstormy16-tdep.c: Ditto.
8542 * gdbarch.sh: Remove include of symfile.h.
8543 * gdbarch.c: Regenerate.
8544 * solib-irix.c (enable_break): Use entry_point_address().
8545 Add comment about include file.
8546 * xcoffread.c: Add comment about include file.
8547 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8548 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8549 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8550 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8551 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8553 2004-02-13 Andrew Cagney <cagney@redhat.com>
8555 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8556 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8558 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8560 2004-02-12 Fred Fish <fnf@redhat.com>
8562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8563 set_gdbarch_store_return_value.
8565 2004-02-12 Andrew Cagney <cagney@redhat.com>
8567 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8568 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8569 (interrupt_query): Ditto.
8570 (ofunc): Delete unused variable.
8571 * cris-tdep.c (cris_abi): Delete unused function.
8572 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8573 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8574 (cris_get_asr_quick_shift_steps): Ditto.
8575 (cris_skip_prologue_frameless_p): Ditto.
8576 * arm-tdep.c (arm_push_return_address): Delete unused function.
8577 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8578 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8579 * s390-tdep.c (s390_function_start): Delete unused function.
8581 2004-02-12 Andrew Cagney <cagney@redhat.com>
8583 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8584 gdbarch.h, gdbarch.c: Re-generate.
8585 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8586 to generic_prologue_frameless_p.
8587 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8588 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8590 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8592 * mips-linux-tdep.c: Include "frame.h".
8593 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8594 (mips_linux_skip_resolver): New functions.
8595 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8596 and set_gdbarch_in_solib_call_trampoline.
8597 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8598 to after set_gdbarch_in_solib_return_trampoline. Only set the
8599 solib hooks to mips16 functions if the OS ABI is unknown.
8600 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8601 including "config/tm-linux.h".
8602 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8603 * Makefile.in (mips-linux-tdep.o): Update.
8605 2004-02-11 David Carlton <carlton@kealia.com>
8607 * linespec.c (decode_compound): Only look for a class symbol when
8608 considering all but the rightmost component.
8610 2004-02-11 Andrew Cagney <cagney@redhat.com>
8612 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8613 abi code are are separatly grouped.
8615 2004-02-11 Andrew Cagney <cagney@redhat.com>
8617 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8618 * gdbarch.h, gdbarch.c: Re-generate.
8619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8620 * v850-tdep.c (v850_gdbarch_init): Update.
8621 * sh64-tdep.c (sh64_gdbarch_init): Update.
8622 * sh-tdep.c (sh_gdbarch_init): Update.
8623 * s390-tdep.c (s390_gdbarch_init): Update.
8624 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8625 * mips-tdep.c (mips_gdbarch_init): Update.
8626 * mcore-tdep.c (mcore_gdbarch_init): Update.
8627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8628 * m32r-tdep.c (m32r_gdbarch_init): Update.
8629 * ia64-tdep.c (ia64_gdbarch_init): Update.
8630 * hppa-tdep.c (hppa_gdbarch_init): Update.
8631 * h8300-tdep.c (h8300_gdbarch_init): Update.
8632 * frv-tdep.c (frv_gdbarch_init): Update.
8633 * d10v-tdep.c (d10v_gdbarch_init): Update.
8634 * cris-tdep.c (cris_gdbarch_init): Update.
8635 * avr-tdep.c (avr_gdbarch_init): Update.
8636 * arm-tdep.c (arm_gdbarch_init): Update.
8637 * alpha-tdep.c (alpha_gdbarch_init): Update.
8639 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8641 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8643 (sh_sh4al_dsp_register_name): Ditto.
8645 2004-02-10 Andrew Cagney <cagney@redhat.com>
8647 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8648 (mips_init_frame_pc_first): Delete function.
8649 (mips_frame_saved_pc): Delete function.
8650 (mips_frame_chain): Delete function.
8651 (mips_init_extra_frame_info): Delete function.
8652 (mips_xfer_register): Delete unused variable "reg".
8653 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8654 (mips_n32n64_return_value): Delete unused variable "reg".
8655 (mips_n32n64_return_value): Delete unused variable "pos".
8656 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8657 (mips_o32_return_value): Delete unused variable "pos".
8658 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8659 (mips_print_fp_register): Delete unused variable "namelen"
8660 (mips_print_fp_register): Delete unused variable "flt2"
8661 (get_frame_pointer): Delete function.
8662 (cached_proc_desc): Delete static variable.
8663 (mips_pop_frame): Delete function.
8664 (mips_find_saved_regs): Delete function.
8665 (mips_get_saved_register): Delete function.
8666 (mips_saved_pc_after_call): Delete function.
8667 (SIGFRAME_BASE): Delete macro.
8668 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8669 (SIGFRAME_PC_OFF): Delete macro.
8670 (SIGFRAME_REGSAVE_OFF): Delete macro.
8671 (mips_dump_tdep): Do not print deleted macro definitions.
8673 2004-02-10 Andrew Cagney <cagney@redhat.com>
8675 * Makefile.in (SFILES): Remove explictly listed tui files.
8676 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8678 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8680 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8681 to use paddr functions to format ia64 addresses and long values.
8682 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8683 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8684 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8685 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8686 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8688 2004-02-10 Andrew Cagney <cagney@redhat.com>
8690 * defs.h: Do not include "tui.h".
8691 * gdb_curses.h: New file.
8692 * tui/tui-hooks.h: New file.
8693 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8694 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8695 (tui_initialize_io): Delete declaration.
8696 (tui_initialize_readline: Delete redundant declaration.
8697 (struct tui_point): Delete definition.
8698 * tui/tui-data.h (struct tui_point): Define.
8699 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8700 * utils.c: Include "tui/tui.h".
8701 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8702 * printcmd.c [TUI]: Include "tui/tui.h".
8703 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8704 * tui/tui-command.c: Include "gdb_curses.h".
8705 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8706 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8707 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8708 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8709 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8710 * Makefile.in: Update all dependencies.
8711 (tui_hooks_h, gdb_curses_h): Define.
8712 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8714 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8716 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8717 auxf2. Add comments about some other rarely used fields.
8719 2004-02-10 Andrew Cagney <cagney@redhat.com>
8721 * Makefile.in (init.c): Fix script removing duplicates. Problem
8722 reported by Peter Schauer.
8724 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8726 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8727 obstack_specify_allocation.
8728 * objfiles.c (allocate_objfile): Ditto.
8729 * solib-sunos.c (solib_add_common_symbols)
8730 (allocate_rt_common_objfile): Ditto.
8731 * symfile.c (reread_symbols): Ditto.
8732 * gdb_obstack.h: Add comment.
8734 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8736 * linespec.c (decode_line_1, locate_first_half)
8737 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8740 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8742 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8745 2004-02-09 Andrew Cagney <cagney@redhat.com>
8747 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8748 fails, try find_pc_section. Fix PR c++/1267.
8749 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8750 instead of find_pc_mapped_section.
8751 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8752 not default to the section containing PC. Fix PR symtab/1519.
8754 2004-02-09 Andrew Cagney <cagney@redhat.com>
8756 * Makefile.in (mips-tdep.o): Update dependencies.
8757 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8759 (mips_unwind_pc): Return the pseudo PC register.
8760 (mips_unwind_dummy_id): New function.
8761 (mips16_fetch_instruction): New function.
8762 (mips32_fetch_instruction): New function.
8763 (struct mips_frame_cache): Define.
8764 (mips_mdebug_frame_cache): New function.
8765 (mips_mdebug_frame_this_id): New function.
8766 (mips_mdebug_frame_prev_register): New function.
8767 (mips_mdebug_frame_unwind): Define.
8768 (mips_mdebug_frame_sniffer): New function.
8769 (mips_mdebug_frame_base_address): New function.
8770 (mips_mdebug_frame_base): Define.
8771 (mips_mdebug_frame_base_sniffer): New function.
8772 (mips_gdbarch_init): Append unwind and base sniffers. Set
8775 2004-02-08 Andrew Cagney <cagney@redhat.com>
8777 * frame.c: Print both the register number and name.
8779 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8780 and a sed into a single sed. Make .c and .o patterns more robust.
8782 (INIT_FILES): Replace OBS with COMMON_OBS.
8783 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8785 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8787 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8788 the PT_WCOOKIE request.
8790 2004-02-08 Andrew Cagney <cagney@redhat.com>
8792 * mips-tdep.c (mips_unwind_pc): New function.
8793 (mips_gdbarch_init): Set mips_unwind_pc.
8795 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8796 (get_frame_id): Allow the UNKNOWN_FRAME.
8797 (frame_register_unwind, get_frame_type): Ditto.
8799 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8800 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8801 unwind_dummy_id indicates a legacy frame.
8803 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8804 * configure: Re-generate.
8806 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8809 2004-02-08 Andrew Cagney <cagney@redhat.com>
8811 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8813 * configure: Re-generate.
8814 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8815 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8816 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8817 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8818 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8819 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8820 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8821 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8822 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8823 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8825 2004-02-07 Andrew Cagney <cagney@redhat.com>
8827 * Makefile.in: Update all dependencies.
8829 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8830 * configure: Re-generate.
8831 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8832 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8833 (COMMON_OBS): Add "main.o" and "annotate.o".
8834 (ANNOTATE_OBS): Delete.
8835 (OBS): Remove ANNOTATE_OBS.
8836 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8838 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8839 against CONFIG_OBS and "main.o".
8840 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8841 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8843 * tui/tui-command.c: Include "gdb_string.h", delete register
8844 attribute, use ISO-C function signatures.
8845 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8846 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8847 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8850 * tui/tui-command.c: Change variable and function names to lower
8852 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8853 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8854 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8855 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8856 * tui/tui-winsource.c, tui/tui.c: Ditto.
8858 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8860 * buildsym.c (free_pending_blocks, finish_block)
8861 (record_pending_block, make_blockvector, end_symtab): Replace
8862 symbol_obstack with objfile_obstack.
8863 * coffread.c (process_coff_symbol, coff_read_struct_type)
8864 (coff_read_enum_type): Ditto.
8865 * cp-namespace.c (initialize_namespace_symtab)
8866 (check_one_possible_namespace_symbol): Ditto.
8867 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8868 (dwarf2_symbol_mark_computed): Ditto.
8869 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8870 * elfread.c (elf_symtab_read): Ditto.
8871 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8872 (hpread_read_enum_type, hpread_read_function_type)
8873 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8875 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8876 (java_link_class_type): Ditto.
8877 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8878 (new_symbol): Ditto.
8879 * minsyms.c (install_minimal_symbols): Ditto.
8880 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8881 (terminate_minimal_symbol_table): Replace symbol_obstack with
8883 (free_objfile): Remove freeing of symbol_obstack.
8884 * objfiles.h: Remove symbol_obstack field.
8885 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8887 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8889 (solib_add_common_symbols): Replace symbol_obstack with
8891 * somsolib.c (som_solib_add): Ditto.
8892 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8893 (common_block_start, common_block_end): Ditto.
8894 * symfile.c (reread_symbols): Remove freeing and init of
8896 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8897 * symfile.h: Update comment.
8898 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8900 * symtab.c (symbol_set_names): Replace symbol_obstack with
8902 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8904 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8905 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8908 2004-02-07 Andrew Cagney <cagney@redhat.com>
8910 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8911 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8912 fields and variables.
8913 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8914 (m_beInvisible): Delete macro.
8915 * tui/tui-data.h: Fix case case fields and variables.
8916 (m_genWinPtrIsNull): Delete macro.
8917 (tui_win_list): Rename winList.
8918 (TUI_SRC_WIN): Rename srcWin.
8919 (TUI_DISASM_WIN): Rename disassemWin.
8920 (TUI_DATA_WIN): Rename dataWin.
8921 (TUI_CMD_WIN): Rename cmdWin.
8922 (m_genWinPtrNotNull): Delete macro.
8923 (m_winPtrIsNull): Delete macro.
8924 (m_winPtrNotNull): Delete macro.
8925 (tui_win_is_source_type): Replace m_winIsSourceType
8926 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8927 (tui_win_has_locator): Replace m_hasLocator.
8928 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8929 m_setWinHighlightOff.
8930 * tui/tui-data.c: Update references.
8931 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8932 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8933 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8934 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8935 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8936 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8937 * tui/tui-winsource.c, tui/tui.c: Ditto.
8939 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8941 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8942 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8945 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8946 variable `i6' to `i7'.
8947 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8949 2004-02-07 Andrew Cagney <cagney@redhat.com>
8951 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8952 (TuiPoint, TuiPointPtr): Ditto.
8953 (TuiStatus, TuiStatusPtr): Ditto.
8954 (TuiWinType, TuiWinTypePtr): Ditto.
8955 (struct tui_point): Rename _TuiPoint.
8956 (tui_get_low_disassembly_address): Rename
8957 tuiGetLowDisassemblyAddress.
8958 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8959 (tuiFree): Delete declaration.
8960 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8961 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8962 * tui/tui.c (tuiFree): Delete function.
8963 * cli/cli-cmds.c (disassemble_command): Update references.
8964 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8965 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8966 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8967 * tui/tui-winsource.c: Ditto.
8969 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8971 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8972 coffstab_build_psymtabs, elfstab_build_psymtabs)
8973 (stabsect_build_psymtabs): Replace psymbol_obstack with
8975 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8976 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8978 * dwarfread.c (scan_compilation_units): Ditto.
8979 * elfread.c (elfstab_offset_sections): Ditto.
8980 * hppa-tdep.c (read_unwind_info): Ditto.
8981 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8982 (hpread_end_psymtab): Ditto.
8983 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8984 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8986 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8987 * objfiles.c (add_to_objfile_sections)
8988 (build_objfile_section_table): Ditto.
8989 (allocate_objfile): Remove init of psymbol_obstack.
8990 (free_objfile): Remove freeing of psymbol_obstack.
8991 * objfiles.h (struct objfile): Remove field
8992 psymbol_obstack. Update comments.
8993 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8994 psymbol_obstack with objfile_obstack.
8995 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8997 * somread.c (som_symfile_offsets, init_import_symbols)
8998 (init_export_symbols): Replace psymbol_obstack with
9000 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9001 * symfile.c (default_symfile_offsets, syms_from_objfile)
9002 (reread_symbols): Remove freeing and init of psymbol_obstack.
9003 (cashier_psymtab): Update comment.
9004 * symmisc.c (print_objfile_statistics): Don't report stats for
9006 * symtab.h (struct general_symbol_info, struct partial_symtab):
9008 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9009 (xcoff_symfile_offsets): Replace psymbol_obstack with
9012 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9014 * objfiles.h (struct objfile): Add objfile_obstack field.
9015 Remove type_obstack field.
9017 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9018 read_structure_scope read_enumeration, new_symbol): Replace
9019 type_obstack with objfile_obstack.
9020 * dwarfread.c (struct_type, enum_type): Ditto.
9021 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9022 (lookup_fundamental_type): Ditto.
9023 * gdbtypes.h (TYPE_ALLOC): Ditto.
9024 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9025 (hpread_read_doc_function_type, hpread_read_struct_type)
9026 (fix_static_member_physnames, hpread_read_array_type)
9027 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9028 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9029 (java_link_class_type): Ditto.
9030 * mdebugread.c (parse_type): Ditto.
9031 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9032 * solib-sunos.c (solib_add_common_symbols): Ditto.
9033 * stabsread.c (define_symbol, read_type, read_member_functions,
9034 read_cpp_abbrev, read_one_struct_field): Ditto.
9035 * symfile.c (reread_symbols): Ditto.
9036 * symmisc.c (print_objfile_statistics): Ditto.
9038 2004-02-07 Andrew Cagney <cagney@redhat.com>
9040 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9041 (tui_exec_info_content): Rename TuiExecInfoContent.
9042 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9043 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9044 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9045 (TuiList, TuiListPtr): Ditto.
9046 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9047 (TuiDataType, TuiDataTypePtr): Ditto.
9048 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9049 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9050 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9051 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9052 (TuiDataElement, TuiDataElementPtr): Ditto.
9053 (TuiWinElement, TuiWinElementPtr): Ditto.
9054 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9055 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9056 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9057 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9058 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9059 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9060 * tui/tui-command.c, tui/tui-data.c: Update references.
9061 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9062 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9063 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9064 * tui/tui-winsource.c, tui/tui.c: Ditto.
9066 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9068 * dwarf2-frame.h: Update copyright.
9069 (enum dwarf2_frame_reg_rule): New.
9070 (struct dwarf2_frame_state_reg): New.
9071 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9072 * dwarf2-frame.c: Update copyright.
9073 (enum dwarf2_reg_rule): Remove.
9074 (struct dwarf2_frame_state): Remove defenition of `struct
9075 dwarf2_frame_state_reg'.
9076 (read_reg): Call get_frame_arch to get the architecture instead of
9077 using CURRENT_GDBARCH.
9078 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9080 (dwarf2_frame_init_reg): New function.
9081 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9082 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9083 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9084 tags with DWARF2_FRAME_.
9085 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9086 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9087 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9089 2004-02-06 Andrew Cagney <cagney@redhat.com>
9091 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9092 (enum tui_data_type): Rename _TuiDataType.
9093 (struct tui_layout_def): Rename _TuiLayoutDef.
9094 (struct tui_source_element): Rename _TuiSourceElement.
9095 (struct tui_data_element): Rename _TuiDataElement.
9096 (struct tui_command_element): Rename _TuiCommandElement.
9097 (struct tui_locator_element): Rename _TuiLocatorElement.
9098 (union tui_which_element): Define.
9099 (struct tui_win_element): Rename _TuiWinElement.
9100 (struct tui_data_info): Rename _TuiDataInfo.
9101 (struct tui_source_info): Rename _TuiSourceInfo.
9102 (struct tui_command_info): Rename _TuiCommandInfo.
9103 (tui_initialize_static_data): Rename initializeStaticData.
9104 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9105 (tui_alloc_win_info): Rename allocWinInfo.
9106 (tui_init_generic_part): Rename initGenericPart.
9107 (tui_init_win_info): Rename initWinInfo.
9108 (tui_alloc_content): Rename allocContent.
9109 (tui_add_content_elements): Rename addContentElements.
9110 (tui_init_content_element): Rename initContentElement.
9111 (tui_free_window): Rename freeWindow.
9112 (tui_free_win_content): Rename freeWinContent.
9113 (tui_free_data_content): Rename freeDataContent.
9114 (tui_free_all_source_wins_content): Rename
9115 freeAllSourceWinsContent.
9116 (tui_del_window): Rename tuiDelWindow.
9117 (tui_del_data_windows): Rename tuiDelDataWindows.
9118 (tui_partial_win_by_name): Rename partialWinByName.
9119 (tui_win_name): Rename winName.
9120 (tui_current_layout): Rename currentLayout.
9121 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9122 (tui_term_height): Rename termHeight.
9123 (tui_set_term_height_to): Rename setTermHeightTo.
9124 (tui_term_width): Rename termWidth.
9125 (tui_set_term_width_to): Rename setTermWidthTo.
9126 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9127 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9128 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9129 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9130 (tui_source_windows): Rename sourceWindows.
9131 (tui_clear_source_windows): Rename clearSourceWindows.
9132 (tui_clear_source_windows_detail): Rename
9133 clearSourceWindowsDetail.
9134 (tui_clear_win_detail): Rename clearWinDetail.
9135 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9136 (tui_default_tab_len): Rename tuiDefaultTabLen.
9137 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9138 (tui_win_with_focus): Rename tuiWinWithFocus.
9139 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9140 (tui_layout_def): Rename tuiLayoutDef.
9141 (tui_win_resized): Rename tuiWinResized.
9142 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9143 (tui_next_win): Rename tuiNextWin.
9144 (tui_prev_win): Rename tuiPrevWin.
9145 (tui_add_to_source_windows): Rename addToSourceWindows.
9146 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9147 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9148 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9149 * tui/tui.c, tui/tui-data.c: Ditto.
9150 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9151 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9153 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9154 (struct symtab): Declare.
9155 (tui_set_source_content): Rename tuiSetSourceContent.
9156 (tui_show_symtab_source): Rename tuiShowSource.
9157 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9158 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9159 * tui/tui-source.c: Update copyright. Update references.
9160 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9161 * tui/tui-stack.c: Update references.
9163 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9164 (struct tui_win_info): Declare.
9165 (tui_scroll_forward): Rename tuiScrollForward.
9166 (tui_scroll_backward): Rename tuiScrollBackward.
9167 (tui_scroll_left): Rename tuiScrollLeft.
9168 (tui_scroll_right): Rename tuiScrollRight.
9169 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9170 (tui_resize_all): Rename tuiResizeAll.
9171 (tui_refresh_all_win): Rename tuiRefreshAll.
9172 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9173 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9174 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9175 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9177 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9178 (tui_erase_data_content): Rename tuiEraseDataContent.
9179 (tui_display_all_data): Rename tuiDisplayAllData.
9180 (tui_check_data_values): Rename tuiCheckDataValues.
9181 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9182 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9183 (tui_first_data_element_no_in_line): Rename
9184 tuiFirstDataElementNoInLine.
9185 (tui_delete_data_content_windows): Rename
9186 tuiDeleteDataContentWindows.
9187 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9188 (tui_display_data_from): Rename tuiDisplayDataFrom.
9189 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9190 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9191 * tui/tui-win.c, tui/tui-regs.c: Update references.
9192 * tui/tui-layout.c, tui/tui.c: Update references.
9194 * tui/tui-wingeneral.h: Update copyright.
9195 (m_allBeVisible): Delete macro.
9196 (m_allBeInvisible): Delete macro.
9197 (struct tui_gen_win_info): Declare.
9198 (struct tui_win_info): Declare.
9199 (tui_unhighlight_win): Rename unhighlightWin.
9200 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9201 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9202 (tui_make_window): Rename makeWindow.
9203 (tui_copy_win): Rename copyWin.
9204 (tui_box_win): Rename boxWin.
9205 (tui_highlight_win): Rename highlightWin.
9206 (tui_check_and_display_highlight_if_needed): Rename
9207 checkAndDisplayHighlightIfNeeded.
9208 (tui_refresh_all): Rename refreshAll.
9209 (tui_delete_win): Rename tuiDelwin.
9210 (tui_refresh_win): Rename tuiRefreshWin.
9211 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9212 (tui_make_visible, tui_make_invisible): New functions.
9213 (tui_make_all_visible, tui_make_all_invisible): New functions.
9214 (make_all_visible): Rename makeAllVisible.
9215 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9216 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9217 * tui/tui-windata.c, tui/tui-win.c: Update references.
9218 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9219 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9221 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9223 * proc-api.c (write_with_trace): Initialize local variable to
9224 silence compiler warning.
9226 2004-02-06 Andrew Cagney <cagney@redhat.com>
9228 * tui/tui-source.h: Do not include "defs.h".
9229 (struct tui_win_info): Declare.
9230 (tui_set_source_content_nil): Declare.
9231 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9232 (union tui_line_or_address): Rename _TuiLineOrAddress.
9233 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9234 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9235 (tui_update_source_window_as_is): Rename
9236 tuiUpdateSourceWindowAsIs.
9237 (tui_update_source_windows_with_addr): Rename
9238 tuiUpdateSourceWindowsWithAddr.
9239 (tui_update_source_windows_with_line): Rename
9240 tuiUpdateSourceWindowsWithLine.
9241 (tui_clear_source_content): Rename tuiClearSourceContent.
9242 (tui_erase_source_content): Rename tuiEraseSourceContent.
9243 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9244 (tui_show_source_content): Rename tuiShowSourceContent.
9245 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9246 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9247 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9248 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9249 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9250 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9251 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9252 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9253 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9254 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9255 (struct tui_win_info): Declare.
9256 * tui/tui-stack.c: Update references.
9257 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9258 * tui/tui-win.c, tui/tui-source.c: Ditto.
9259 * tui/tui.c, tui/tui-disasm.c: Ditto.
9261 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9263 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9264 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9266 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9268 * infrun.c (handle_inferior_event): Allow for breakpoint
9269 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9270 and SIGEMT. Update comments.
9271 * NEWS (Revised SPARC target): Mention support for non-executable
9274 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9276 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9277 * inftarg.c: Update copyright year.
9278 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9279 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9280 (sparc_xfer_wcookie): New function.
9281 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9282 * Makefile.in (sparc-nat.o): Update dependencies.
9283 * config/sparc/nm-nbsd.h: Include "target.h".
9284 (NATIVE_XFER_WCOOKIE): New define.
9285 (sparc_xfer_wcookie): New prototype.
9287 2004-02-04 Andrew Cagney <cagney@redhat.com>
9289 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9290 SYSCALL_TRAP function.
9291 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9293 2004-02-04 Andrew Cagney <cagney@redhat.com>
9294 Daniel Jacobowitz <drow@mvista.com>
9296 * objfiles.h: Delete comments refering to inside_entry_func and
9297 DEPRECATED_FRAME_CHAIN_VALID.
9298 * defs.h (inside_entry_func): Update prototype..
9299 * blockframe.c (inside_entry_func): Rename to
9300 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9301 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9303 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9305 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9306 outside of #ifdef SOLIB_ADD region.
9307 (do_restore_lang_radix_cleanup): Ditto.
9308 (resolve_pending_breakpoint): Ditto.
9310 2004-02-03 Andrew Cagney <cagney@redhat.com>
9312 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9313 (process_note_abi_tag_sections): Delete unused function.
9314 (ia64_read_fp): Delete unused function.
9315 (gdbarch_extract_struct_value_address): Delete declaration.
9317 2004-02-02 Andrew Cagney <cagney@redhat.com>
9319 * vax-tdep.c (vax_frame_chain): Delete call to
9320 deprecated_inside_entry_file.
9321 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9323 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9325 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9326 column that's "empty" or "same value" when eliminating REG_RA
9329 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9331 * NEWS: Add information about new pending breakpoint support.
9333 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9335 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9336 and pending fields for pending breakpoint support.
9337 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9338 (condition_command): Only parse condition if not a pending
9340 (print_one_breakpoint): Add support for pending breakpoints.
9341 (describe_other_breakpoints): Add checks to verify we are not
9342 dealing with pending breakpoints.
9343 (check_duplicates): Don't check pending breakpoints.
9344 (set_raw_breakpoint): Initialize pending flag.
9345 (do_restore_lang_radix_cleanup): New cleanup routine.
9346 (resolve_pending_breakpoint): New function.
9347 (re_enable_breakpoints_in_shlibs): Try and resolve any
9348 pending breakpoints via resolve_pending_breakpoint.
9349 (mention): Add pending breakpoint support.
9350 (parse_breakpoint_sals): Add new parameter to pass to
9351 decode_line_1 to indicate silent errors when files or functions
9352 are not found. Change all callers.
9353 (do_captured_parse_breakpoint): New function.
9354 (break_command_1): Change prototype to return an rc value and to
9355 take an optional pending breakpoint pointer. Support creating
9356 a pending breakpoint if a "not found" form of error occurs when
9357 parsing the breakpoint. Also support resolving an existing pending
9358 breakpoint and be silent if the resolution fails.
9359 (create_breakpoints): Change prototype to take pending breakpoint
9360 pointer. When resolving a pending breakpoint, use the new pointer
9361 to provide a conditional or commands added by the end-user.
9362 (delete_breakpoint): Add appropriate check for pending.
9363 (breakpoint_re_set_one): Ditto.
9364 (do_enable_breakpoint): Ditto.
9366 2004-02-02 David Carlton <carlton@kealia.com>
9368 * valops.c (enum oload_classification): New.
9369 (find_overload_match): Break implementation into separate
9370 functions; delete #if 0'd code; look for symbols within
9372 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9373 (find_oload_champ,oload_method_static,classify_oload_match): New.
9374 * cp-support.h: Add declaration for cp_func_name; update
9375 declaration for make_symbol_overload_list.
9376 * cp-support.c (cp_func_name): New.
9377 (overload_list_add_symbol): Fix comment, use
9378 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9379 (make_symbol_overload_list): Take a function name and a namespace
9380 instead of a symbol; change implementation.
9381 (make_symbol_overload_list_using): New.
9382 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9384 2004-02-02 Fred Fish <fnf@redhat.com>
9386 * main.c (gdb_stdtarg): Move definition to group with other
9387 gdb_stdtarg definitions and update copyright years.
9388 * remote-sim.c (gdb_os_write_stderr): Write output to
9389 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9390 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9391 gdb_stderr stream and update copyright years.
9393 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9395 * Makefile.in (mips-linux-nat.o): Update dependencies.
9396 * mips-linux-nat.c: Include mips-tdep.h.
9398 2004-02-01 Roland McGrath <roland@redhat.com>
9400 * sol-thread.c (sol_thread_xfer_partial): New function.
9401 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9402 (init_sol_core_ops): Likewise.
9404 * procfs.c (procfs_xfer_partial): New function.
9405 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9406 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9408 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9409 procfs_xfer_auxv function.
9411 * procfs.c (procfs_make_note_section): If we can read
9412 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9413 * linux-proc.c (linux_make_note_section): Likewise.
9417 * Makefile.in (auxv_h): New variable.
9418 (COMMON_OBS): Add auxv.o here.
9419 (auxv.o): New target.
9421 * corelow.c (core_xfer_partial): New function.
9422 (init_core_ops): Use it for core_ops.to_xfer_partial.
9424 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9425 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9426 macro if that is defined.
9428 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9430 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9431 and check the specified thread for each breakpoint.
9432 * breakpoint.h (bpstat_stop_status): Update prototype.
9433 * infrun.c (handle_inferior_event): Update calls to
9436 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9438 * Makefile.in (cli-cmds.o): Add $(readline_h).
9440 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9442 * cli/cli-cmds.c: Include readline.h.
9443 (complete_command): Pass the start of the last word to
9446 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9448 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9449 argument, and change first argument to a CORE_ADDR.
9450 * breakpoint.h (bpstat_stop_status): Update prototype.
9451 * infrun.c (adjust_pc_after_break): Add a new comment.
9452 (handle_inferior_event): Update calls to bpstat_stop_status.
9454 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9456 * breakpoint.h: Update copyright years.
9458 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9460 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9461 (bpstat_stop_status): Don't decrement PC.
9462 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9464 * infrun.c (adjust_pc_after_break): New function.
9465 (handle_inferior_event): Call it, early. Remove later references
9466 to DECR_PC_AFTER_BREAK.
9467 (normal_stop): Add commentary.
9469 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9471 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9472 2004-01-27 double-free fix.
9474 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9476 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9477 (sparc32_frame_prev_register): Handle StackGhost.
9478 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9480 2004-01-29 Roland McGrath <roland@redhat.com>
9482 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9483 * configure: Regenerated.
9485 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9486 * Makefile.in (procfs.o): Add dep.
9488 2004-01-28 Andrew Cagney <cagney@redhat.com>
9490 * tui/tui-stack.h: Update copyright.
9491 (struct frame_info): Add opaque declaration.
9492 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9493 (tui_show_locator_content): Rename tuiShowLocatorContent.
9494 (tui_show_frame_info): Rename tuiShowFrameInfo.
9495 * tui/tui-stack.c: Update copyright. Update references.
9496 * tui/tui-winsource.c: Update references.
9497 * tui/tui-win.c: Update references.
9498 * tui/tui-layout.c: Update references.
9499 * tui/tui-hooks.c: Update copyright, update references.
9500 * tui/tui.c: Update copyright, update references.
9501 * tui/tui-disasm.c: Update references.
9503 2004-01-28 David Carlton <carlton@kealia.com>
9505 * dwarf2read.c (add_partial_structure): Use demangled name if
9506 namespace equals "".
9508 2004-01-27 Jim Blandy <jimb@redhat.com>
9510 Clean up misapplied patch:
9511 * dwarf2read.c (determine_prefix): Change one of the two forward
9512 declarations for 'determine_prefix_aux' to a declaration for this.
9513 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9514 argument to 'die_specification'.
9516 * dwarf2read.c (read_func_scope): Re-indent comment.
9518 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9520 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9521 b->exp to NULL after freeing so that error during re-parsing or
9522 evaluation of expressions associated with breakpoint don't
9523 eventually lead to re-freeing of storage.
9524 Committed by Andrew Cagney.
9526 2004-01-27 Andrew Cagney <cagney@redhat.com>
9528 * source.c (ambiguous_line_spec): Delete undefined declaration.
9529 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9530 (m32r_set_server_address, m32r_set_download_path): Ditto.
9531 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9533 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9535 * dwarf2read.c: Update calls to changed and renamed functions, and
9536 references to moved variables.
9538 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9539 language, language_defn, list_in_scope, and ftypes members.
9540 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9541 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9542 (baseaddr): Remove globals.
9544 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9545 (set_cu_language, die_is_declaration, die_specification)
9546 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9547 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9548 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9549 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9551 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9552 cu.list_in_scope. Don't initialize cu_header_offset.
9553 (add_partial_symbol): Add local baseaddr.
9554 (psymtab_to_symtab_1): Add local baseaddr. Use
9555 objfile->section_offsets for consistency. Don't initialize
9556 cu_header_offset; do initialize cu.header.offset and
9558 (read_file_scope, read_func_scope, read_lexical_block_scope)
9559 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9561 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9563 * PROBLEMS: Add gdb/1516.
9565 2003-12-29 Robert Millan <robertmh@gnu.org>
9567 Patch committed by Andrw Cagney.
9568 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9569 * configure.tgt: Match knetbsd*-gnu.
9571 2004-01-26 Andrew Cagney <cagney@redhat.com>
9573 * breakpoint.c (catch_command_1): Delete #ifdef code.
9574 (catch_fork_command_1): Delete #ifdef wrapper.
9575 (catch_exec_command_1): Ditto.
9576 (catch_load_command_1): Ditto.
9577 (catch_unload_command_1): Ditto.
9579 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9580 (catch_breakpoint): Delete #if0ed function.
9581 (disable_catch_breakpoint): Ditto.
9582 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9583 (disable_catch, enable_catch, delete_catch): Ditto.
9585 2004-01-26 Andrew Cagney <cagney@redhat.com>
9587 * remote.c (echo_check, quit_flag): Delete variables.
9588 (cisco_kernel_mode): Delete variable.
9589 (minitelnet_return, tty_input, escape_count): Delete variables.
9590 (remote_cisco_mode): Delete variable.
9591 (remote_cisco_open, remote_cisco_close): Delete function.
9592 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9593 (init_remote_cisco_ops): Delete function.
9594 (_initialize_remote): Do not install "remote cisco" code.
9595 (read_frame): Delete cisco specific code.
9596 (remote_info_process): Delete function.
9597 (remote_wait): Delete cisco specific code.
9598 (remote_cisco_section_offsets): Delete function.
9599 (remote_cisco_objfile_relocate): Delete function.
9600 (remote_async_wait): Delete cisco specific code.
9601 (minitelnet, readtty, readsocket): Delete function.
9603 2004-01-26 Andrew Cagney <cagney@redhat.com>
9605 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9606 comments mentioning extract_returned_value_address.
9607 * infcmd.c (print_return_value): Update. Add comments on
9608 extract_returned_value_address.
9609 * stack.c (return_command): Add comments on
9610 extract_returned_value_address.
9611 * values.c: Update comment.
9612 * m32r-tdep.c: Update comment.
9613 * sparc-tdep.c: Update comment.
9614 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9616 * sh64-tdep.c (sh64_gdbarch_init): Update.
9617 * sh-tdep.c (sh_gdbarch_init): Update.
9618 * s390-tdep.c (s390_gdbarch_init): Update.
9619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9620 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9621 * m68k-tdep.c (m68k_gdbarch_init): Update.
9622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9623 * m32r-tdep.c (m32r_gdbarch_init): Update.
9624 * ia64-tdep.c (ia64_gdbarch_init): Update.
9625 * h8300-tdep.c (h8300_gdbarch_init): Update.
9626 * frv-tdep.c (frv_gdbarch_init): Update.
9627 * arm-tdep.c (arm_gdbarch_init): Update.
9628 * alpha-tdep.c (alpha_gdbarch_init): Update.
9630 2004-01-26 Andrew Cagney <cagney@redhat.com>
9632 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9633 SYMBOL_LOCATION_FUNCS
9634 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9635 "struct symbol_ops".
9636 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9637 type to "struct symbol_ops".
9638 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9639 (struct symbol): Replace ".aux_value.loc.funcs" and
9640 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9641 (SYMBOL_OBJFILE): Delete macro.
9642 (SYMBOL_LOCATION_FUNCS): Delete macro.
9643 (SYMBOL_LOCATION_BATON): Update.
9644 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9645 intead of SYMBOL_LOCATION_FUNCS.
9646 * ax-gdb.c (gen_var_ref): Ditto.
9647 * printcmd.c (address_info): Ditto.
9648 * findvar.c (read_var_value): Ditto.
9649 (symbol_read_needs_frame): Ditto.
9651 2004-01-26 Andrew Cagney <cagney@redhat.com>
9653 * dwarf2read.c (read_func_scope): Document frame-base hack.
9655 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9657 * infcmd.c (print_return_value): Plug memory leak; delete
9658 ui_stream object. Rename argument `structure_return' to
9661 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9663 * infcmd.c (print_return_value): Wrap long lines.
9664 (finish_command_continuation, finish_command): Remove unused
9665 variable `funcaddr'. Fix some coding-standards problems.
9667 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9668 SECT_SIZE is large enough, not whether it's exactly the right size.
9669 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9670 TDEP->fpregset to zero.
9672 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9673 floating-point registers for traditional NetBSD core files.
9674 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9675 TDEP->sizeof_fpregset here.
9677 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9679 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9680 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9681 function with code split out from
9682 sparc32nbsd_sigcontext_frame_cache.
9683 (sparc32nbsd_sigcontext_frame_cache): Use
9684 sparc32nbsd_sigcontext_saved_regs.
9685 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9687 * sparcobsd-tdep.c: New file.
9688 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9689 (sparcobsd-tdep.o): New dependency.
9690 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9691 * config/sparc/obsd.mt: New file.
9693 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9694 TDEP->fpregset to be initialized to enable core file register
9697 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9699 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9700 Add opaque declarations.
9701 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9702 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9703 function with code split out from
9704 sparc64nbsd_sigcontext_frame_cache.
9705 (sparc64nbsd_sigcontext_frame_cache): Use
9706 sparc64nbsd_sigcontext_saved_regs.
9707 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9709 * sparc64obsd-tdep.c: New file.
9710 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9711 (sparc64obsd-tdep.o): New dependency.
9712 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9713 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9714 * config/sparc/obsd64.mt: New file.
9716 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9717 read the instruction at PC.
9719 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9720 value of GDB_OSABI_DEFAULT.
9721 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9722 instead of GDB_OSABI_NETBSD_AOUT.
9724 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9726 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9729 2004-01-23 Andrew Cagney <cagney@redhat.com>
9731 * printcmd.c (display_command): Replace tui_set_display call with
9732 tui_set_layout_for_display_command.
9733 * tui/tui.h (enum tui_win_type): Define.
9734 (tui_set_layout): Delete declaration.
9735 (tui_set_layout_for_display_command): Rename set_tui_layout.
9736 * tui/tui-data.h (enum tui_layout_type): Define.
9737 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9739 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9740 (tui_default_win_height): Rename tuiDefaultWinHeight.
9741 (tui_default_win_viewport_height): Rename
9742 tuiDefaultWinViewportHeight.
9743 (tui_set_layout): RenametuiSetLayout.
9744 * tui/tui-layout.c: Update references.
9745 * tui/tui.c: Update references.
9746 * tui/tui-disasm.c: Update references.
9748 2004-01-23 David Carlton <carlton@kealia.com>
9750 Partial workaround for PR c++/1511:
9751 * cp-namespace.c: Include frame.h.
9752 (cp_lookup_transparent_type): New
9753 (cp_lookup_transparent_type_loop): New.
9754 * cp-support.h: Declare cp_lookup_transparent_type.
9755 * symtab.c (basic_lookup_transparent_type): Renamed from
9756 lookup_transparent_type.
9757 (lookup_transparent_type): Replace old body by a call to
9758 current_language->la_lookup_transparent_type.
9759 * symtab.h: Update copyright. Declare
9760 basic_lookup_transparent_type.
9761 * language.h: Update copyright.
9762 (struct language_defn): Add la_lookup_transparent_type.
9763 * language.c: Update copyright.
9764 (unknown_language_defn): Add basic_lookup_transparent_type.
9765 (auto_language_defn): Add basic_lookup_transparent_type.
9766 (local_language_defn): Add basic_lookup_transparent_type.
9767 * ada-lang.c: Update copyright.
9768 (ada_language_defn): Add basic_lookup_transparent_type.
9769 * c-lang.c: Update copyright.
9770 (c_language_defn): Add basic_lookup_transparent_type.
9771 (cplus_language_defn): Add basic_lookup_transparent_type.
9772 (asm_language_defn): Add basic_lookup_transparent_type.
9773 (minimal_language_defn): Add basic_lookup_transparent_type.
9774 * f-lang.c: Update copyright.
9775 (f_language_defn): Add basic_lookup_transparent_type.
9776 * jv-lang.c: Update copyright.
9777 (java_language_defn): Add basic_lookup_transparent_type.
9778 * m2-lang.c: Update copyright.
9779 (m2_language_defn): Add basic_lookup_transparent_type.
9780 * objc-lang.c: Update copyright.
9781 (objc_language_defn): Add basic_lookup_transparent_type.
9782 * p-lang.c: Update copyright.
9783 (p_language_defn): Add basic_lookup_transparent_type.
9784 * scm-lang.c: Update copyright.
9785 (scm_language_defn): Add basic_lookup_transparent_type.
9786 * Makefile.in (cp-namespace.o): Depend on frame.h.
9788 2004-01-23 David Carlton <carlton@kealia.com>
9790 Patch for PR c++/1520:
9791 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9792 properly if we have a specification die.
9793 (determine_prefix_aux): Rename from determine_prefix.
9794 (determine_prefix): Like the old determine_prefix, but never
9797 2004-01-23 Theodore A. Roth <troth@openavr.org>
9799 * avr-tdep.c: Update copyright.
9800 (avr_iaddr_p): Delete unused function.
9801 (avr_saddr_p): Delete unused function.
9803 2004-01-23 David Carlton <carlton@kealia.com>
9805 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9806 Fix for PR symtab/1534.
9808 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9810 * NEWS (New native configurations): Mention OpenBSD/sparc and
9812 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9813 * configure.host: Likewise.
9814 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9815 handler for OpenBSD.
9816 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9818 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9820 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9821 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9823 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9824 * cli/cli-cmds.c (shell_escape): Likewise.
9826 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9827 OpenBSD .note.openbsd.ident sections.
9829 2004-01-22 David Carlton <carlton@kealia.com>
9831 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9832 get_scope_pc_bounds.
9833 (read_file_scope): Ditto.
9834 (get_scope_pc_bounds): New function, produced by extracting code
9835 from the above two functions, consolidating it, and adding support
9836 for DW_TAG_namespace.
9838 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9840 * osabi.c (MAX_NOTESZ): New define.
9841 (check_note): New function.
9842 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9845 2004-01-21 Roland McGrath <roland@redhat.com>
9847 * MAINTAINERS (write after approval): Add myself.
9849 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9851 * utils.c (init_page_info): Move declarations of `rows' and
9852 `cols' before the __GO32__-specific code. Move the closing brace
9853 outside the #ifdef __GO32__..#endif block.
9854 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9856 2004-01-21 Paul Brook <paul@codesourcery.com>
9858 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9859 BPSTAT_WHAT_CHECK_SHLIBS.
9861 2004-01-21 Paul Brook <paul@codesourcery.com>
9863 * MAINTAINERS: Add myself to write-after-approval.
9865 2004-01-20 Andrew Cagney <cagney@redhat.com>
9867 * ax-gdb.c (print_axs_value): Delete unused function.
9868 * jv-lang.c (java_lookup_type): Delete unused function.
9869 * cli/cli-dump.c (dump_filetype): Delete unused function.
9870 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9871 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9872 (mips_getstring): Delete unused function.
9873 (pmon_insert_breakpoint): Delete #if0ed function.
9874 (PMON_MAX_BP): Delete #if0ed MACRO.
9875 (mips_pmon_bp_info): Delete #if0ed variable.
9876 (pmon_remove_breakpoint): Delete #if0ed function.
9877 * monitor.c (monitor_write_even_block): Delete unused function.
9878 (monitor_write_memory_block): Delete #if0ed code.
9879 * dink32-rom.c (dink32_load): Delete unused function.
9880 (_initialize_dink32_rom): Delete #if0ed code.
9881 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9883 * tui/tui-command.c: Update references.
9884 * tui/tui-io.c: Update references.
9885 * tui/tui-command.h: Update copyright.
9886 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9888 * source.c (ambiguous_line_spec): Delete never-defined function.
9889 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9890 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9891 * cli/cli-cmds.c (validate_comname): Ditto.
9893 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9895 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9896 (tui_show_disassem): Rename tuiShowDisassem.
9897 (tui_show_disassem_and_update_source): Rename
9898 tuiVerticalDisassemScroll.
9899 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9900 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9901 * tui/tui.h: Update copyright.
9902 (enum tui_status): Define.
9903 * tui/tui-data.h (enum tui_scroll_direction): Define.
9904 * tui/tui-disasm.c: Update copyright. Update references.
9905 * tui/tui-winsource.c: Update copyright. Update references.
9906 * tui/tui-win.c: Update references.
9907 * tui/tui-layout.c: Update references.
9909 2004-01-20 Andrew Cagney <cagney@redhat.com>
9911 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9912 sym2 to start of block.
9914 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9916 * MAINTAINERS: Delete mmalloc.
9917 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9918 * NEWS: Mention removal of --with-malloc.
9919 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9920 * config.in: Regenerate.
9921 * configure: Regenerate.
9922 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9923 USE_MMALLOC, MMCHECK_FORCE.
9924 * gdbinit.in: Remove mmalloc.
9925 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9926 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9927 * config/i386/go32.mh: Likewise.
9928 * config/i386/interix.mh: Likewise.
9929 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9931 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9933 * linespec.c (decode_variable, symtab_from_filename): Call
9934 error_silent with error message instead of throwing an exception
9936 * defs.h (error_silent, error_output_message): Add prototypes.
9937 (catch_exceptions_with_msg): Ditto.
9938 * utils.c (error_silent, error_output_message): New functions.
9939 * top.c (catch_exceptions_with_msg): New function.
9941 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9943 * mi/mi-cmds.h (enum print_values): Add definition.
9945 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9946 type and value for simple data types and just the name and type
9947 for complex ones, if required.
9949 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9950 children, if required.
9952 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9954 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9955 unused declarations.
9957 2004-01-19 Andrew Cagney <cagney@redhat.com>
9959 * top.h (mapped_symbol_files): Delete declaration.
9960 * main.c (captured_main): Delete option "m" and "mapped".
9961 * objfiles.c (mapped_symbol_files): Delete variable.
9962 * symfile.c (symbol_file_command): Delete mmap code.
9963 (symbol_file_add_with_addrs_or_offsets): Ditto.
9964 (add_symbol_file_command, reread_separate_symbols): Ditto.
9965 * objfiles.h (OBJF_MAPPED): Delete.
9966 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9967 (free_objfile) [USE_MMALLOC]: Ditto.
9968 (open_existing_mapped_file): Delete function.
9969 (open_mapped_file): Delete function.
9970 (map_to_file): Delete function.
9972 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9974 * infrun.c (step_into_function): Account for possible breakpoint
9975 adjustment when computing ``stop_func_start''.
9977 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9979 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9980 the region size against the size of a pointer, not the size of
9981 a register as given by DEPRECATED_REGISTER_SIZE.
9983 2004-01-19 Andrew Cagney <cagney@redhat.com>
9985 * tui/tui-regs.h: Include "tui-data.h".
9986 (tuiFirstRegElementNoInLine): Delete declaration.
9987 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9988 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9989 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9990 (tui_calculate_regs_column_count): Rename
9991 tuiCalculateRegsColumnCount.
9992 (tui_check_register_values): Rename tuiCheckRegisterValues.
9993 (tui_show_registers): Rename tuiShowRegisters.
9994 (tui_display_registers_from_line): Rename
9995 tuiDisplayRegistersFromLine.
9996 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9997 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9998 (tui_first_reg_element_no_inline): Rename
9999 tuiFirstRegElementNoInLine.
10000 * tui/tui-data.h: Update copyright.
10001 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10002 * tui/tui-windata.c: Update copyright, update references.
10003 * tui/tui-regs.c: Update copyright, update references.
10004 * tui/tui-win.c: Update copyright, update references.
10005 * tui/tui-layout.c: Update copyright, update references.
10007 2004-01-18 Andrew Cagney <cagney@redhat.com>
10009 * tui/tui-io.c: Update copyright.
10010 (key_is_end_sequence, key_is_backspace): New functions.
10011 (key_is_command_char, key_is_start_sequence): New function.
10012 (tui_getc): Update references.
10013 * tui/tui-io.h: Update copyright.
10014 (m_tuiStartNewLine): Delete macro.
10015 (m_isBackspace, m_isDeleteChar): Delete macros.
10016 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10017 (m_isNextPage, m_isPrevPage): Delete macros.
10018 (m_isLeftArrow, m_isRightArrow): Delete macros.
10019 (m_isXdbStyleCommandChar): Delete macro.
10020 (key_is_start_sequence): Declare, replace m_isStartSequence.
10021 (key_is_end_sequence): Declare, replace m_isEndSequence.
10022 (key_is_backspace): Declare ,replace m_isBackspace.
10023 (key_is_command_char): Declare, replace m_isCommandChar.
10024 * tui/tui-command.c: Update copyright.
10025 (tuiDispatchCtrlChar): Update references.
10027 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10030 * tui/tui-command.c: Rename tui/tuiCommand.c.
10031 * tui/tui-command.h: Rename tui/tuiCommand.h.
10032 * tui/tui-data.c: Rename tui/tuiData.c.
10033 * tui/tui-data.h: Rename tui/tuiData.h.
10034 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10035 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10036 * tui/tui-io.c: Rename tui/tuiIO.c.
10037 * tui/tui-io.h: Rename tui/tuiIO.h.
10038 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10039 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10040 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10041 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10042 * tui/tui-source.c: Rename tui/tuiSource.c.
10043 * tui/tui-source.h: Rename tui/tuiSource.h.
10044 * tui/tui-stack.c: Rename tui/tuiStack.c.
10045 * tui/tui-stack.h: Rename tui/tuiStack.h.
10046 * tui/tui-win.c: Rename tui/tuiWin.c.
10047 * tui/tui-win.h: Rename tui/tuiWin.h.
10048 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10049 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10050 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10051 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10052 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10053 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10054 * tui/tui-file.c: Update includes.
10055 * tui/tui-hooks.c: Update includes.
10056 * tui/tui-interp.c: Update includes.
10057 * tui/tui.c: Update includes.
10058 * Makefile.in: Update all tui/ dependencies.
10059 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10061 * Makefile.in: Update copyright. Update dependencies.
10063 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10066 2004-01-18 Andrew Cagney <cagney@redhat.com>
10068 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10069 instead of register_gdbarch_init.
10071 * remote-sds.c (tohex): Delete unused function. Update copyright.
10072 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10073 * v850-tdep.c (v850_register_virtual_size): Ditto.
10074 * target.c (normal_target_post_startup_inferior): Ditto.
10075 * source.c (ambiguous_line_spec): Ditto.
10076 * remote.c (adapt_remote_get_threadinfo): Ditto.
10077 * mi/mi-out.c (out_field_fmt): Ditto.
10078 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10079 (output_control_change_notification): Ditto.
10080 * m68k-tdep.c (m68k_register_byte): Ditto.
10081 (m68k_remote_breakpoint_from_pc): Ditto.
10082 * ui-out.c (init_ui_out_state): Delete unused declaration.
10083 * stabsread.c (search_value): Ditto.
10084 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10085 * maint.c (print_section_table): Ditto.
10086 * infrun.c (set_follow_fork_mode_command): Ditto.
10088 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10090 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10091 DW_CFA_def_cfa_exporession. Add support for
10092 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10093 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10095 2004-01-18 Andrew Cagney <cagney@redhat.com>
10097 * ocd.c: Update copyright.
10098 (bdm_read_register_command): Delete unused function.
10099 (_initialize_remote_ocd): Delete commented out reference.
10100 (get_quoted_char, reset_packet): Delete #if0ed function.
10101 (output_packet, put_quoted_char): Delete #if0ed function.
10102 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10103 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10104 (BDM_BREAKPOINT): Delete #if0ed macro.
10105 (remote_timeout): Delete #if0ed variable.
10107 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10109 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10110 (core-sol2.o): Remove dependency.
10111 * core-sol2.c: Remove file.
10113 2004-01-17 Andrew Cagney <cagney@redhat.com>
10115 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10116 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10119 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10121 * remote.c: Update copyright years.
10123 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10125 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10127 2004-01-17 Andrew Cagney <cagney@redhat.com>
10129 * mdebugread.c: Update copyright.
10130 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10131 (parse_type, parse_procedure): Ditto.
10132 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10134 * cris-tdep.c (cris_store_struct_return): Put back accidently
10137 * gdbarch.sh: Update copyright year.
10138 * gdbarch.h, gdbarch.c: Re-generate.
10140 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10142 Suggested by George Anzinger.
10143 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10144 correct stack offset. Include unknown opcode numbers in the error
10147 2004-01-17 Andrew Cagney <cagney@redhat.com>
10149 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10150 extract_struct_value_address, i386 does not set it.
10151 * sparc64-tdep.c (sparc64_init_abi): Do not set
10152 extract_struct_value_address, never called.
10153 (sparc64_extract_struct_value_address): Delete function.
10154 * m68hc11-tdep.c: Update copyright.
10155 (m68hc11_gdbarch_init): Delete redundant assignment of
10156 extract_struct_value_address.
10157 * i386-tdep.c: Update copyright.
10158 (i386_gdbarch_init): Do not set extract_struct_value_address,
10160 (i386_extract_struct_value_address): Delete function.
10161 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10162 extract_struct_value_address, never called.
10163 (sparc32_extract_struct_value_address): #if 0 function. Add
10164 comments explaining its future.
10166 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10168 * arm-tdep.c (arm_write_pc): New function.
10169 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10171 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10173 * breakpoint.c (must_shift_inst_regs): Delete.
10174 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10175 and SHIFT_INST_REGS.
10176 * infcmd.c (step_1, step_1_continuation): Delete references to
10178 * infrun.c (keep_going): Likewise.
10179 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10180 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10182 2004-01-17 Andrew Cagney <cagney@redhat.com>
10184 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10185 * gdbarch.h, gdbarch.c: Re-generate.
10186 * infcmd.c (print_return_value): Delete reference to
10187 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10189 * cris-tdep.c (cris_gdbarch_init): Do not set
10190 deprecated_extract_struct_value_address.
10192 * xstormy16-tdep.c: Update copyright.
10193 (xstormy16_extract_struct_value_address): Update to current
10194 extract struct value address interface.
10195 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10196 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10197 current extract struct value address interface.
10198 (sh64_gdbarch_init): Set extract_struct_value_address.
10200 * cris-tdep.c: Update copyright.
10201 (cris_extract_struct_value_address): Delete function.
10202 (struct_return_address): Delete variable.
10203 (cris_store_struct_return): Do not set struct_return_address.
10205 * mcore-tdep.c: Update copyright.
10206 (mcore_extract_struct_value_address): Delete function. Update
10208 (mcore_gdbarch_init): Update.
10209 * mn10300-tdep.c: Update copyright.
10210 (mn10300_extract_struct_value_address): Delete function.
10211 (mn10300_gdbarch_init): Update.
10212 * v850-tdep.c: Update copyright.
10213 (v850_extract_struct_value_address): Delete.
10214 (v850_gdbarch_init): Update.
10215 * ns32k-tdep.c: Update copyright.
10216 (ns32k_extract_struct_value_address): Delete.
10217 (ns32k_gdbarch_init): Update.
10218 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10219 (hppa_gdbarch_init): Update.
10220 * vax-tdep.c: Update copyright.
10221 (vax_extract_struct_value_address): Delete.
10222 (vax_gdbarch_init): Update.
10224 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10225 * gdbarch.h, gdbarch.c: Re-generate.
10226 * procfs.c (procfs_fetch_registers): Delete reference to
10227 DEPRECATED_NPC_REGNUM.
10228 (procfs_store_registers): Ditto.
10229 * regcache.c (generic_target_write_pc): Simplify.
10230 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10232 * core-sol2.c (fetch_core_registers): Replace
10233 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10235 * hppa-tdep.c: Update copyright year.
10236 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10238 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10240 * mips-tdep.c (mips_write_pc): New function.
10241 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10242 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10243 (mips_find_saved_regs, mips_software_single_step: Ditto.
10244 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10245 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10247 2004-01-17 Andrew Cagney <cagney@redhat.com>
10249 * mips-tdep.c: Re-indent. Group functions by ABI.
10251 2004-01-17 Andrew Cagney <cagney@redhat.com>
10253 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10254 * gdbarch.c: Re-generate.
10255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10256 DECR_PC_AFTER_BREAK to zero.
10257 * vax-tdep.c (vax_gdbarch_init): Ditto.
10258 * v850-tdep.c (v850_gdbarch_init): Ditto.
10259 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10260 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10261 * sh-tdep.c (sh_gdbarch_init): Ditto.
10262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10263 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10265 * mips-tdep.c (mips_gdbarch_init): Ditto.
10266 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10268 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10269 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10270 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10271 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10272 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10273 * frv-tdep.c (frv_gdbarch_init): Ditto.
10274 * cris-tdep.c (cris_gdbarch_init): Ditto.
10275 * avr-tdep.c (avr_gdbarch_init): Ditto.
10276 * arm-tdep.c (arm_gdbarch_init): Ditto.
10277 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10279 2004-01-17 J. Brobecker <brobecker@gnat.com>
10281 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10282 Delete, no longer used.
10283 (read_subrange_type): New function, mostly extracted from
10285 (read_array_type): Replace extracted code by call to
10286 read_subrange_type().
10287 (dwarf2_get_attr_constant_value): New function.
10288 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10289 (add_partial_symbol): Likewise.
10290 (process_die): Likewise.
10291 (new_symbol): Likewise.
10292 (read_type_die): Likewise.
10294 2004-01-16 Andrew Cagney <cagney@redhat.com>
10296 * symfile.c: Update copyright year.
10297 (compare_symbols): Delete unused function.
10298 * stabsread.c: Update copyright year.
10299 (lrs_general_complaint): Delete unused function.
10300 (ref_search_value): Ditto.
10301 (get_substring): Delete declaration.
10302 * sh64-tdep.c: Update copyright year.
10303 (sh64_get_gdb_regnum): Delete unused function.
10304 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10305 Delete unused function.
10307 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10309 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10310 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10312 2004-01-16 Andrew Cagney <cagney@redhat.com>
10314 Changes from Peter Schauer.
10315 * rs6000-tdep.c: Update copyright year.
10316 (rs6000_push_dummy_call): Update the stack pointer before
10317 accessing the corresponding stack region.
10318 * rs6000-nat.c: Update copyright year.
10319 (set_host_arch): Set "info.abfd" to "exec_bfd".
10321 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10323 * blockframe.c: Update copyright year.
10324 (inside_entry_func): Don't treat a zero PC specially.
10326 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10328 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10330 (gcore_create_callback): Ditto. Skip any memory segment that has
10331 no permissions set.
10333 2004-01-14 David Carlton <carlton@kealia.com>
10335 Change symbols for C++ nested types to contain the fully qualified
10336 name, if possible. (At least in the DWARF-2 case.) Partial fix
10337 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10339 * c-exp.y (qualified_type): Handle types nested within classes.
10340 * cp-namespace.c: Update comments.
10341 (cp_set_block_scope): Delete #if 0.
10342 (cp_lookup_nested_type): Handle types nested within classes.
10343 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10345 (add_partial_symbol): Add the name of the enclosing namespace to
10347 (pdi_needs_namespace): New.
10348 (add_partial_namespace): Tweak comment.
10349 (add_partial_structure): New.
10350 (psymtab_to_symtab_1): Initialize processing_current_prefix
10352 (process_die): instead of here.
10353 (read_structure_scope): Try to figure out the name of the class or
10354 namespace that the structure might be defined within.
10355 (read_enumeration): Generate fully-qualified names, if possible.
10356 (read_namespace): Don't set name to NULL.
10357 (die_specification): New.
10358 (new_symbol): Generate fully-qualified names for types.
10359 (read_type_die): Determine appropriate prefix.
10360 (determine_prefix): New.
10361 (typename_concat): New.
10363 * valops.c (value_aggregate_elt): Pass NOSIDE to
10364 value_struct_elt_for_reference.
10365 (value_struct_elt_for_reference): Make static, add NOSIDE
10366 parameter, call value_maybe_namespace_elt as a last resort.
10367 (value_namespace_elt): Break out code into
10368 value_maybe_namespace_elt.
10369 (value_maybe_namespace_elt): New.
10371 2004-01-12 Andrew Cagney <cagney@redhat.com>
10373 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10374 cooked floating-point registers.
10375 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10376 and value_to_register.
10378 2004-01-13 Andrew Cagney <cagney@redhat.com>
10380 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10381 * gdbarch.c: Re-generate.
10382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10383 FUNCTION_START_OFFSET.
10384 * v850-tdep.c (v850_gdbarch_init): Ditto.
10385 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10386 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10387 * sh-tdep.c (sh_gdbarch_init): Ditto.
10388 * s390-tdep.c (s390_gdbarch_init): Ditto.
10389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10390 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10392 * mips-tdep.c (mips_gdbarch_init): Ditto.
10393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10394 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10396 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10397 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10398 * i386-tdep.c (i386_gdbarch_init): Ditto.
10399 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10400 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10401 * frv-tdep.c (frv_gdbarch_init): Ditto.
10402 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10403 * cris-tdep.c (cris_gdbarch_init): Ditto.
10404 * avr-tdep.c (avr_gdbarch_init): Ditto.
10405 * arm-tdep.c (arm_gdbarch_init): Ditto.
10406 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10408 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10410 * infrun.c (follow_fork_mode_ask): Remove.
10411 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10412 (follow_fork): Simplify and remove internal error for
10413 follow_fork_mode_ask.
10414 (_initialize_infrun): Update "set follow-fork-mode" help text.
10416 2004-01-13 Andrew Cagney <cagney@redhat.com>
10418 * configure.in: Update copyright year.
10419 (build_warnings): Add -Wunused-label.
10420 * configure: Re-generate.
10422 2004-01-12 Andrew Cagney <cagney@redhat.com>
10424 * exec.h (exec_ops): Make "extern".
10426 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10427 the function is void.
10428 (mips_pseudo_register_write): Ditto.
10430 2004-01-12 Andrew Cagney <cagney@redhat.com>
10432 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10433 call. Never defined.
10434 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10435 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10436 (struct sparc_gregset, struct regcache): Ditto.
10437 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10439 2004-01-12 Andrew Cagney <cagney@redhat.com>
10441 * mi/ChangeLog: Delete file. Renamed to ...
10442 * mi/ChangeLog-1999-2003: New file.
10443 * tui/ChangeLog: Delete file. Renamed to ...
10444 * tui/ChangeLog-1998-2003: New file.
10446 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10448 * sparc64nbsd-tdep.c: Include "regset.h".
10449 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10451 (fetch_core_registers): Remove function.
10452 (sparc64nbsd_core_fns): Remove variable.
10453 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10455 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10456 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10457 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10459 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10460 sparc_extract_struct_value_address.
10461 (sparc32_gdbarch_init): Set extract_struct_value_address.
10462 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10464 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10465 return_value_on_stack.
10467 * NEWS: Mention that %cs and %ss have been added to the AMD64
10470 * frame.c: Update copyright year.
10471 (get_prev_frame): Improve comment.
10473 * sparc64fbsd-tdep.c: Include "regset.h".
10474 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10476 (fetch_core_registers): Remove function.
10477 (sparc64fbsd_core_fns): Remove variable.
10478 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10480 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10481 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10482 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10484 * sparcnbsd-tdep.c: Include "regset.h".
10485 (fetch_core_registers): Remove function.
10486 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10487 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10489 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10491 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10493 * sparc-tdep.h (struct regset): Provide opaque declaration.
10494 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10495 fpregset and sizeof_fpregset members.
10496 * sparc-tdep.c (struct regset): Provide opaque declaration.
10497 (sparc_regset_from_core_section): New function.
10498 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10499 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10500 Set regset_from_core_section when appropriate.
10502 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10504 * x86-64-tdep.c (amd64_non_pod_p): New function.
10505 (amd64_classify_aggregate): Return class memory for non-POD
10506 C++ structure types.
10508 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10509 argument. Use it to reserve a register if necessary.
10510 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10511 amd64_push_arguments.
10513 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10515 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10516 register numbers in comments.
10517 * x86-64-tdep.h: Update copyright year.
10518 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10519 Adjust for addition of %cs and %ss.
10520 * amd64fbsd-nat.c: Update copyright year.
10521 (reg_offset): Add register offsets for %cs and %ss.
10522 * amd64fbsd-tdep.c: Update copyright year.
10523 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10524 (amd64fbsd_sc_reg_offset): Likewise.
10525 * x86-64-linux-nat.c: Update copyright year.
10526 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10528 * amd64nbsd-nat.c: Update copyright year.
10529 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10530 * amd64nbsd-tdep.c: Update copyright year.
10531 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10532 * x86-64-linux-tdep.c: Update copyright year.
10533 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10534 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10535 * regformats/reg-x86-64.dat: Add %cs and %ss.
10537 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10538 variables to prevent long lines. Update comments to reflect
10541 2004-01-09 David Carlton <carlton@kealia.com>
10543 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10544 * dwarf2read.c (read_namespace): Pull out name-generating code
10545 into namespace_name. Rename previous_namespace to previous_prefix
10546 and processing_current_namespace to processing_current_prefix..
10547 (namespace_name): New function.
10548 (add_partial_symbol): Substitute uses of pdi->name with
10550 * cp-support.h: Rename processing_current_namespace to
10551 processing_current_prefix.
10552 Update copyright year.
10553 * cp-namespace.c: Rename processing_current_namespace to
10554 processing_current_prefix.
10555 Update copyright year.
10557 2004-01-09 Andrew Cagney <cagney@redhat.com>
10559 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10561 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10563 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10565 (process_one_symbol): Deal with N_PATCH stabs.
10567 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10569 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10571 Update copyright year.
10573 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10575 * config/pa/tm-hppa.h: Update extern declarations for
10576 hppa32_hpux_frame_saved_pc_in_sigtramp,
10577 hppa32_hpux_frame_base_before_sigtramp, and
10578 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10580 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10582 * config/pa/tm-hppah.h: Update copyright years.
10584 2004-01-08 Andrew Cagney <cagney@redhat.com>
10586 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10587 (mips_o32_reg_struct_has_addr): Delete function.
10588 (mips_gdbarch_init): Update.
10589 (mips_extract_struct_value_address): Delete function.
10591 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10593 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10596 2004-01-07 Andrew Cagney <cagney@redhat.com>
10598 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10599 architecture's elf flags (when available).
10601 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10602 FPU to the start, check the MIPS FPU when looking for an old
10604 (set_mipsfpu_single_command): Update the architecture.
10605 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10607 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10608 (mips_mask_address_p): Add "tdep" parameter.
10609 (show_mask_address, mips_addr_bits_remove): Update.
10610 (mips_dump_tdep): Update.
10611 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10612 (MIPS_STACK_ARGSIZE): Delete macro.
10613 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10614 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10615 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10616 (mips_dump_tdep): Update.
10617 (MIPS_SAVED_REGSIZE): Delete macro.
10618 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10619 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10620 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10621 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10622 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10623 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10624 (mips_pop_frame, return_value_location): Update.
10625 (mips_n32n64_return_value, mips_dump_tdep): Update.
10627 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10630 * mips-tdep.c: Update copyright.
10631 (mips_gdbarch_init): Merge two code blocks handling the register
10632 name and number layout.
10634 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10636 * tracepoint.c (validate_actionline): Fix segv at EOF
10638 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10640 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10641 properly for static fields.
10643 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10644 Jason Molenda <jmolenda@apple.com>
10646 * disasm.c: Update copyright to include 2004.
10647 (do_mixed_source_and_assembly): For uiout asm list
10648 and tuple cleanups, initialize to null_cleanup instead of
10649 NULL and do so prior to loop. Only reset when we close off
10650 the tuple/list. Move check for whether to close off the
10651 asm tuple/list to after dump_insns call where it will be run
10652 on each loop iteration.
10654 2004-01-05 Andrew Cagney <cagney@redhat.com>
10656 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10657 should be a switch case and not a label.
10658 * mips-tdep.c (mips32_next_pc): Delete unused labels
10659 "greater_equal_branch" and "less_zero_branch".
10660 * jv-valprint.c (java_print_value_fields): Delete unused label
10663 * target.c (unpush_target): Only close a target that is in the
10666 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10668 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10669 address from [sp + 64] instead of %o2.
10671 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10672 fixes PR backtrace/1476.
10674 2004-01-05 Andrew Cagney <cagney@redhat.com>
10676 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10677 move to start of file.
10678 * i386-tdep.h (struct regcache): Add opaque declaration.
10679 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10681 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10682 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10683 * win32-nat.c (fake_create_process): Use ISO C style definition.
10684 * stabsread.c (define_symbol): Delete #ifndef
10685 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10686 stabs_argument_has_addr call, macro never defined.
10688 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10690 * op50-rom.c: Delete.
10691 * w89k-rom.c: Delete.
10692 * Makefile.in: Remove references.
10694 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10696 * x86-64-tdep.c: Update copyright year.
10697 (struct amd64_register_info): Rename from x86_64_register_info.
10698 (amd64_register_info): Rename from x86_64_register_info.
10699 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10700 (amd64_register_name): Rename from x86_64_register_name.
10701 (amd64_register_type): Rename from x86_64_register_type.
10702 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10703 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10704 (amd64_dwarf_reg_to_regnum): Rename from
10705 x86_64_dwarf_reg_to_regnum.
10706 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10707 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10708 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10709 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10710 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10711 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10712 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10713 (amd64_frame_cache): Rename from x86_64_frame_cache.
10714 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10715 (amd64_frame_prev_register): Rename from
10716 x86_64_frame_prev_register.
10717 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10718 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10719 (amd64_sigtramp_frame_cache): Rename from
10720 x86_64_sigtramp_frame_cache.
10721 (amd64_sigtramp_frame_prev_register): Rename from
10722 x86_64_sigtramp_frame_prev_register.
10723 (amd64_sigtramp_frame_unwind): Rename from
10724 x86_64_sigtramp_frame_unwind.
10725 (amd64_sigtramp_frame_sniffer): Rename from
10726 x86_64_sigtramp_frame_sniffer.
10727 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10728 (amd64_frame_base): Rename from x86_64_frame_base.
10729 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10730 (amd64_frame_align): Rename from x86_64_frame_align.
10731 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10732 (amd64_regset_from_core_section): Rename from
10733 x86_64_regset_from_core_section.
10734 (x86_64_init_abi): Update comments.
10736 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10738 * MAINTAINERS (write after approval): Add myself.
10740 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10742 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10745 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10747 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10748 such that it mentions a specific version of GCC that exhibits this
10751 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10753 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10754 structure that has a single `float' member, store it in %f1 in
10757 * sparc-sol2-nat.c: Add missing '\'.
10759 * sparc-tdep.c (sparc32_return_value): New function.
10760 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10762 (sparc32_gdbarch_init): Set return_value, don't set
10763 extract_return_value, store_return_value, use_struct_convention
10764 and return_value_on_stack.
10766 * sparc-sol2-nat.c: Add missing ')'.
10768 2004-01-03 J. Brobecker <brobecker@gnat.com>
10770 * infrun.c (handle_step_into_function): New function.
10771 (handle_inferior_event): Extract out some code into the new
10774 2004-01-03 J. Brobecker <brobecker@gnat.com>
10776 * infrun.c (handle_inferior_event): Move the declaration of
10777 real_stop_pc inside the if blocks where it is used.
10779 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10781 * sparc64-tdep.c (sparc64_16_byte_align_p)
10782 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10783 Use check_typedef to get subtypes of structures and unions.
10784 (sparc64_store_return_value): Fix calculation of the appropriate
10785 offset into VALBUF when storing a structure or union.
10786 (sparc64_return_value): New function.
10787 (sparc64_use_struct_convention): Remove function.
10788 (sparc64_init_abi): Set return_value, don't set
10789 extract_return_value, store_return_value and
10790 use_struct_convention.
10792 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10794 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10795 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10796 gdb/config/alpha/xm-alphaosf.h,
10797 gdb/config/powerpc/tm-ppcle-eabi.h,
10798 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10799 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10800 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10801 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10802 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10803 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10804 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10805 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10806 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10807 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10808 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10809 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10810 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10811 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10812 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10813 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10814 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10815 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10816 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10817 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10818 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10819 Remove lines for .cvsignore files.
10821 2004-01-03 J. Brobecker <brobecker@gnat.com>
10823 * infrun.c: Back out the previous change.
10825 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10827 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10828 sparc-*-sunos4* to the list of REMOVED configurations.
10830 * configure.tgt: Add back sparc-*-vxworks*.
10831 * remote-vxsparc.c: Remove all includes except for "defs.h",
10832 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10833 Include "sparc-tdep.h".
10834 (SPARC_R_G1): New define.
10835 (vxsparc_gregset): New variable.
10836 (ext_format_sparc): Remove extern declaration.
10837 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10838 sparc32_supply_fpregset.
10839 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10840 sparc_collect_rwindow and sparc32_collect_fpregset.
10841 * config/sparc/tm-vxworks.h: New file, based on recently removed
10843 * config/sparc/vxworks.mt: New file, based on recently removed
10846 2004-01-03 J. Brobecker <brobecker@gnat.com>
10848 * infrun.c (handle_step_into_function): New function.
10849 (handle_inferior_event): Extract out some code into the new
10852 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10854 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10855 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10856 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10857 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10858 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10859 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10860 (sparc_nat_h): New variable.
10861 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10862 (tm-sun4os4.h): Remove dependency.
10863 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10864 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10865 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10866 sparc-tdep.o): Update dependencies.
10867 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10868 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10869 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10871 * configure.host: Remove existing sparc-*-lynxos*,
10872 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10873 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10874 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10875 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10877 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10878 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10879 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10880 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10881 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10882 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10883 sparc64-*-solaris2* and sparc64-*-* triplets.
10884 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10885 "symtab.h" and "objfiles.h".
10886 (BIAS): Remove define.
10887 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10888 (X_DISP19): Remove macros.
10889 (sparc_fetch_instruction): Remove function.
10890 (struct gdbarch_tdep): Remove definition.
10891 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10892 (sparc_breakpoint_from_pc): Remove function.
10893 (struct sparc64_frame_cache): Remove definition.
10894 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10895 sparc64_unwind_pc): Remove functions.
10896 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10897 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10898 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10899 (sparc64_frame_cache): Change return type to `struct
10900 sparc_frame_cache *'. Simply call sparc_frame_cache.
10901 (sparc64_frame_this_id, sparc64_frame_prev_register,
10902 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10903 instead of `struct sparc64_frame_cache.
10904 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10905 sparc_analyze_control_transfer, sparc_software_single_step,
10906 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10907 _initialize_sparc64_tdep): Remove functions.
10908 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10909 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10911 (sparc64_supply_gregset, sparc64_collect_gregset,
10912 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10913 (sparc64_init_abi): New function.
10914 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10915 inclusion guard. Include "sparc-tdep.h".
10917 (r_tstate_offset, r_fprs_offset): New defines.
10918 (enum sparc_regnum): Remove defenition.
10919 (enum sparc64_regnum): Reformat.
10920 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10921 (sparc64_init_abi, sparc64_supply_gregset,
10922 sparc64_collect_gregset, sparc64_supply_fpregset,
10923 sparc64_collect_fpregset): New prototypes.
10924 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10925 Add extern declarations.
10926 (sparc64_sol2_init_abi): New prototype.
10927 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10928 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10930 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10932 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10934 (_initialize_sparc64fbsd_nat): Remove initialization of
10935 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10936 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10937 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10938 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10939 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10940 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10941 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10942 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10943 (sparc64fbsd_r_y_offset): Remove variables.
10944 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10945 Make static and const.
10946 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10947 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10949 (sparc64fbsd_gregset): New variable.
10950 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10951 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10952 and sparc64_supply_fpregset.
10953 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10954 (sparc64fbsd_sigtramp_frame_this_id)
10955 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10956 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10957 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10958 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10959 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10960 * sparcnbsd-tdep.c: Update copyright year. Include
10961 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10962 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10963 "value.h" and "sparcnbsd-tdep.h".
10964 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10965 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10966 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10967 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10969 (sparcnbsd_gregset): New variable.
10970 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10971 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10972 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10973 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10974 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10976 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10977 (sparc32nbsd_sigcontext_frame_this_id)
10978 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10979 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10980 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10981 (sparcnbsd_get_longjmp_target_32,
10982 sparcnbsd_get_longjmp_target_64): Remove functions.
10983 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10984 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10985 sparcnbsd_init_elf): Remove.
10986 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10987 (sparcnbsd_elf_init_abi): New functions.
10988 (_initialize_sparcnbsd_tdep): New prototype.
10989 (_initialize_sparnbsd_tdep): Update.
10990 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10991 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10992 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10993 * config/sparc/linux.mh: Update comment.
10994 (XM_FILE, HOST_IPC): Remove variables.
10995 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10997 * config/sparc/linux.mt: Update comment.
10998 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10999 * config/sparc/nbsd.mt: Reformat.
11000 * config/sparc/nbsd64.mh: Update comment.
11001 (NATDEPFILES): Add sparc-nat.o.
11002 * config/sparc/nbsd64.mt: Update comment.
11003 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11004 (TM_FILE): Set to tm-nbsd.h.
11005 * config/sparc/nbsdelf.mh: Update comment.
11006 (NATDEPFILES): Add sparc-nat.o.
11008 * config/sparc/nbsdaout.mh: Update comment.
11009 (NATDEPFILES): Add sparc-nat.o
11011 * config/sparc/nm-linux.h: Update copyright year. Don't include
11012 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11014 (KERNEL_U_SIZE): Remove define.
11015 (kernel_u_size): Remove prototype.
11016 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11017 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11019 (CHILD_PREPARE_TO_STORE): Remove define.
11020 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11021 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11022 sparcnbsd-nat.c: Rewrite files.
11023 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11024 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11025 sparcnbsd-tdep.h: Remove files.
11026 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11027 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11028 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11029 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11030 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11031 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11032 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11033 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11034 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11035 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11036 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11037 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11038 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11039 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11040 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11041 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11042 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11043 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11044 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11046 2004-01-02 Andrew Cagney <cagney@redhat.com>
11048 From 2003-12-18 Kazuhiro Inaoka:
11049 * configure.host: Add m32r-linux target.
11051 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11053 * top.c (print_gdb_version): Update year to 2004.
11055 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11057 * MAINTAINERS: Add myself to the write-after-approval category.
11059 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11061 From Bernardo Innocenti <bernie@develer.com>:
11062 * configure.tgt: Add uClinux target.
11064 2004-01-02 Andrew Cagney <cagney@redhat.com>
11066 * utils.c (do_my_cleanups): Make static, add forward declaration.
11067 * defs.h (do_my_cleanups): Delete declaration.
11069 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11071 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11072 bfd/ChangeLog-0203.
11074 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11076 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11077 in <machine/reg.h>.
11078 * configure, config.in: Regenerate.
11080 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11081 tui/ChangeLog-1998-2003.
11087 version-control: never