* inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2
3 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4 PTRACE_TYPE_ARG3.
5 * infptrace.c (call_ptrace, child_resume, attach, detach)
6 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
7 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
8 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
9 PTRACE_TYPE_ARG3.
10
11 2004-08-14 Mark Kettenis <kettenis@gnu.org>
12
13 * defs.h: Remove out-of-date comment.
14 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
15 [!GETENV_PROVIDED] (getenv): Remove prototype.
16
17 * standalone.c: Remove file.
18 * Makefile.in (standalone.o): Remove dependency.
19
20 * i386-linux-nat.c (dummy_sse_values): Remove function and
21 prototype.
22 (i386_linux_dr_get): Fix typo in comment.
23 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
24
25 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
26
27 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
28 from declaration.
29 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
30 from definition.
31
32 2004-08-13 Mark Kettenis <kettenis@gnu.org>
33
34 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
35 parenthesis in definition.
36 * configure: Regenerated.
37
38 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
39
40 * PROBLEMS: Mention build/1411.
41
42 2004-08-09 Robert Millan <robertmh@gnu.org>
43
44 Committed by Nathanael Nerode.
45 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
46 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
47
48 2004-08-12 Andrew Cagney <cagney@gnu.org>
49
50 * NEWS: Mention fixes in GDB 6.2.1.
51 * PROBLEMS: Remove mention of mips-irix.
52
53 2004-08-11 Joel Brobecker <brobecker@gnat.com>
54
55 * config/powerpc/xm-aix.h: Delete.
56 * config/powerpc/aix.mh (MH_FILE): Remove.
57 * config/powerpc/aix432.mh (MH_FILE): Remove.
58
59 2004-08-11 Joel Brobecker <brobecker@gnat.com>
60
61 * config/powerpc/aix.mh: Remove obsolete comment.
62 * config/powerpc/aix432.mh: Likewise.
63
64 2004-08-11 Joel Brobecker <brobecker@gnat.com>
65
66 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
67
68 2004-08-11 Joel Brobecker <brobecker@gnat.com>
69
70 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
71 this file is now empty.
72 * config/xm-aix4.h: Remove, this file is no longer included
73 anywhere.
74
75 2004-08-11 Joel Brobecker <brobecker@gnat.com>
76
77 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
78 that file is now empty.
79 (termdef): Remove prototype, function no longer used.
80
81 2004-08-11 Joel Brobecker <brobecker@gnat.com>
82
83 * doc/gdbint.texinfo (Host Definition): Remove documentation
84 for USE_O_NOCTTY, no longer used.
85 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
86 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
87
88 2004-08-11 Joel Brobecker <brobecker@gnat.com>
89
90 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
91 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
92 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
93
94 2004-08-11 Mark Kettenis <kettenis@gnu.org>
95
96 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
97 instead of FIVE_ARG_PTRACE.
98
99 * inflow.c (O_NOCTTY): Define to zero if not already defined.
100 (new_tty): Use O_NOCTTY unconditionally.
101
102 2004-08-10 Mark Kettenis <kettenis@gnu.org>
103
104 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
105 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
106 fflush on stdout.
107
108 2004-08-10 Joel Brobecker <brobecker@gnat.com>
109
110 * xcoff_symfile_finish: Replace last call to xmfree by call
111 to xfree.
112
113 2004-08-10 Andrew Cagney <cagney@gnu.org>
114
115 * main.c (captured_main): Delete call to init_malloc.
116 * defs.h (init_malloc): Delete declaration.
117 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
118 (init_malloc): Delete functions.
119
120 * defs.h (xmfree): Delete.
121 * utils.c (xmfree): Delete function.
122 (xfree): Inline calls to xmfree and mfree.
123 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
124 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
125 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
126 * somread.c (som_symfile_finish): Ditto.
127 * objfiles.c (allocate_objfile, free_objfile):
128 * nlmread.c (nlm_symfile_finish): Ditto.
129 * hpread.c (hpread_symfile_finish): Ditto.
130 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
131 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
132 * coffread.c (coff_symfile_finish): Ditto.
133
134 * defs.h (xmcalloc): Delete declaration.
135 * utils.c (xmcalloc): Delete.
136 (xcalloc): Inline calls to xmcalloc and mcalloc.
137 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
138 xcalloc and xfree.
139 * symtab.c (create_demangled_names_hash): Ditto.
140
141 * defs.h (xmrealloc): Delete.
142 * utils.c (xmrealloc): Delete.
143 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
144 * symmisc.c (extend_psymbol_list): Use xrealloc.
145 * source.c (find_source_lines): Ditto.
146 * hpread.c (hpread_lookup_type): Ditto.
147 * dbxread.c (add_bincl_to_list): Ditto.
148
149 * utils.c (xmmalloc): Delete.
150 (xmalloc): Inline xmmalloc and mmalloc calls.
151 (msavestring): Use xmalloc.
152 * defs.h (xmmalloc): Delete declaration.
153 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
154 xmmalloc.
155 * symmisc.c (extend_psymbol_list): Ditto.
156 * symfile.c (init_psymbol_list): Ditto.
157 * source.c (find_source_lines): Ditto.
158 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
159 * elfread.c (elf_symtab_read): Ditto.
160 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
161 * coffread.c (coff_symfile_init): Ditto.
162
163 2004-08-10 David Carlton <carlton@bactrian.org>
164
165 * MAINTAINERS: Remove David Carlton from c++ testsuite
166 maintainers.
167
168 2004-08-10 Jerome Guitton <guitton@gnat.com>
169
170 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
171 print a line feed before the prompt.
172
173 2004-08-10 Mark Kettenis <kettenis@gnu.org>
174
175 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
176
177 2004-08-09 Joel Brobecker <brobecker@gnat.com>
178
179 General cleanup of the AIX xm include file:
180 * config/xm-aix4.h (fd_set): Remove undefine.
181 Remove include of <sys/select.h>.
182 (HAVE_TERMIO): Remove define.
183 (USG): Likewise.
184 (NULL): Remove redefine.
185 (alloca): Remove #pragma.
186 (vfork): Remove define.
187 (termdef): Remove.
188 (SIGWINCH_HANDLER): Remove.
189 (SIGWINCH_HANDLER_BODY): Remove.
190
191 2004-08-09 Mark Kettenis <kettenis@gnu.org>
192
193 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
194 GDB_OSABI_OPENBSD_ELF.
195
196 2004-08-07 Robert Millan <robertmh@gnu.org>
197
198 * bsd-kvm.c: Check for nlist.h before including it.
199
200 2004-08-09 Mark Kettenis <kettenis@gnu.org>
201
202 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
203 sigcontext' offset consistency checks for ancient BSD.
204
205 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
206
207 * configure.in: Check for <sys/types.h>. Check return and
208 argument types of ptrace.
209 * configure, config.in: Regenerate.
210
211 2004-08-09 Jim Blandy <jimb@redhat.com>
212
213 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
214 rs6000_register_sim_regno): Doc fixes.
215
216 2004-08-08 Joel Brobecker <brobecker@gnat.com>
217
218 * mips-tdep.c: Include "floatformat.h".
219 (n32n64_floatformat_always_valid): New function.
220 (floatformat_n32n64_long_double_big): New constant.
221 (mips_gdbarch_init): Set size and format of long double
222 for N32 and N64 ABIs.
223 * Makefile.in (mips-tdep.o): Update dependencies.
224
225 2004-08-08 Andrew Cagney <cagney@gnu.org>
226
227 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
228 print. Improve script's error messages.
229 * gdbarch.h: Re-generate.
230
231 * gdbarch.sh (pformat): New function.
232 (float_format, double_format, long_double_format): List with bit
233 members. Use pformat when printing.
234 * gdbarch.c, gdbarch.h: Re-generate.
235
236 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
237
238 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
239 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
240 (ppcnbsd_supply_pcb): New function.
241 (_initialize_ppcnbsd_nat): New prototype and function.
242 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
243 (LOADLIBES): New variable.
244 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
245
246 2004-08-08 Andrew Cagney <cagney@gnu.org>
247
248 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
249 (builtin_type_ieee_double, builtin_type_ia64_quad)
250 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
251 BE/LE floating-point types.
252 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
253 (builtin_type_ieee_double, builtin_type_ia64_quad)
254 (builtin_type_ia64_spill): Declare.
255 * doublest.c (_initialize_doublest, floatformat_ieee_single)
256 (floatformat_ieee_double, floatformat_arm_ext)
257 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
258 of LE/BE floatformats.
259 * doublest.h: (struct floatformat, floatformat_ieee_single)
260 (floatformat_ieee_double, floatformat_arm_ext)
261 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
262
263 2004-08-08 Mark Kettenis <kettenis@gnu.org>
264
265 * i386gnu-nat.c (gnu_store_registers): Fix typo.
266
267 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
268 instead of regcache_raw_supply when storing the registers.
269
270 * i386gnu-nat.c: Update copyright year.
271 (gnu_store_registers): Don't use deprecated_registers and
272 deprecated_registers_valid. Use regcache_valid_p and
273 regcache_raw_supply instead.
274
275 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
276 frame_pc_unwind.
277
278 * procfs.c (procfs_pid_to_str): Remove redundant and unused
279 variables. Incapitalized "process".
280
281 * configure.in: Add cursesX to the list of possible curses libs.
282 Add cursesX.h to the list of possible curses headers.
283 * configure, config.in: Regenerate.
284
285 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
286
287 * configure.in: Test for struct lwp in <sys/lwp.h>.
288 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
289 the offset of l_addr in struct lwp.
290
291 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
292
293 * bsd-kvm.c: Include "gdbcore.h"
294 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
295
296 2004-08-07 Andrew Cagney <cagney@gnu.org>
297
298 * gdbtypes.c (build_flt, build_complex): New functions.
299 (gdbtypes_post_init): Use.
300
301 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
302
303 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
304 through to builtin_type_uint128.
305
306 * c-exp.y: Use builtin_type function to obtain builtin types.
307
308 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
309 builtin_uint128.
310 * gdbtypes.c (gdbtypes_post_init): Update.
311 (build_gdbtypes): Move initialization of builtin_type_int0
312 through to builtin_type_uint128 from here ...
313 (_initialize_gdbtypes): ... to here.
314 * d10v-tdep.c (d10v_register_type): Update.
315
316 * doublest.c: Update copyright.
317 (floatformat_from_length): Call error when floatformat is NULL.
318 (extract_floating_by_length): Remove NULL fmt check.
319 (store_floating_by_length): Ditto.
320
321 2004-08-07 Andrew Cagney <cagney@gnu.org>
322
323 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
324 that the register is valid.
325
326 2004-08-05 Mark Kettenis <kettenis@chello.nl>
327
328 * i386-linux-tdep.c (i386_linux_sigtramp_start)
329 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
330 struct frame_info *. Use safe_frame_unwind_memory instead of
331 deprecated_read_memory_nobpt.
332 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
333 changed signature of i386_linux_sigtramp_start and
334 i386_linux_rt_sigtramp_start.
335
336 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
337 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
338 instead of deprecated_read_memory_nobpt.
339 (i386nbsd_sigtramp_p): Adjust for changed signature of
340 i386nbsd_sigtramp_offset.
341
342 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
343 safe_frame_unwind_memory instead of target_read_memory.
344
345 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
346 !NO_SYS_FILE.
347 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
348 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
349 (_initialize_kernel_u_addr): Remove prototype and function.
350 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
351 !NO_SYS_FILE.
352 * xcoffread.c: Likewise.
353
354 2004-08-06 Mark Kettenis <kettenis@gnu.org>
355
356 * vax-nat.c: New file.
357 * vaxbsd-nat.c: Tweak comment.
358 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
359 vaxnbsd-tdep.c.
360 (vax-nat.o): New dependency.
361 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
362 (vax-*-ultrix2*): Remove.
363 * config/vax/vax.mh: New file.
364 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
365 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
366 (vax_register_u_addr): New prototype.
367 (REGISTER_U_ADDR): Define using vax_register_u_addr.
368 * config/vax/vaxult2.mh: Remove file.
369 * config/vax/vaxult.mh: Remove file.
370 * config/vax/vaxbsd.mh: Remove file.
371 * config/vax/vax.mt (TM_FILE): Remove.
372 * config/vax/tm-vaxbsd.h: Remove file.
373
374 2004-08-06 Joel Brobecker <brobecker@gnat.com>
375
376 * aix-thread.c (get_signaled_thread): New function.
377 (iter_trap): Delete, no longer used.
378 (iter_tid): New function.
379 (pd_update): Find the thread that received the SIGTRAP signal
380 by first locating the kernel thread, and then finding its
381 associated thread.
382
383 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
384
385 * lin-lwp.c (child_wait): Continue inferior after processing
386 PTRACE_EVENT_CLONE event.
387
388 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
389
390 * MAINTAINERS: Add self to Write-After-Approval.
391
392 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
393
394 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
395 libunwind-xxxx.so" where xxxx is UNW_TARGET.
396
397 2004-08-05 Andrew Cagney <cagney@gnu.org>
398
399 * config/xm-sysv4.h: Delete file.
400 * config/mips/xm-irix5.h: Delete file.
401 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
402 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
403 * config/ia64/xm-aix.h: Delete file.
404 * config/ia64/aix.mh (XM_FILE): Delete.
405 * config/pa/xm-hppah.h: Delete file.
406 * config/pa/hpux11w.mh (XM_FILE): Delete.
407 * config/pa/hpux11.mh (XM_FILE): Delete.
408 * config/pa/hpux1020.mh (XM_FILE): Delete.
409 * config/pa/hppahpux.mh (XM_FILE): Delete.
410
411 * config/alpha/xm-alphalinux.h: Delete file.
412 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
413 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
414 * config/alpha/xm-alphaosf.h: Delete file.
415 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
416 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
417 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
418 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
419
420 * config/i386/xm-i386v.h: Delete file.
421 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
422 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
423 * config/i386/xm-i386sco.h: Delete file.
424 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
425 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
426 * config/i386/xm-i386v4.h: Delete file.
427 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
428 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
429 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
430 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
431
432 * config/vax/xm-vax.h: Delete file.
433 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
434 * config/vax/xm-vaxult2.h: Delete file.
435 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
436 * config/vax/vaxult2.mh (XM_FILE): Delete.
437 * config/vax/xm-vaxult.h: Delete file.
438 * config/vax/vaxult.mh (XM_FILE): Delete.
439 * config/vax/xm-vaxbsd.h: Delete file.
440 * config/vax/vaxbsd.mh (XM_FILE): Delete.
441
442 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
443 * gdbarch.h, gdbarch.c: Re-generate.
444 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
445 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
446 * frame.h: Delete deprecated_read_fp from comments.
447 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
448 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
449
450 2004-08-04 Mark Kettenis <kettenis@gnu.org>
451
452 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
453 trampoline in OpenBSD 3.5-current.
454
455 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
456 SSE registers.
457
458 * Makefile.in: Remove embedded page breaks.
459
460 2004-08-04 Jim Blandy <jimb@redhat.com>
461
462 * regcache.c (regcache_raw_read): Assert that, after calling
463 target_fetch_registers, the register we're reading is cached.
464
465 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
466 a call to 'internal_error', with a more helpful error message.
467 * rs6000-tdep.c (e500_pseudo_register_read,
468 e500_pseudo_register_write, rs6000_store_return_value): Same.
469
470 2004-08-04 Andrew Cagney <cagney@gnu.org>
471
472 * Makefile.in: Update dependencies.
473
474 2004-08-04 Jim Blandy <jimb@redhat.com>
475
476 Change the layout of the PowerPC E500 raw register cache to allow
477 the lower 32-bit halves of the GPRS to be their own raw registers,
478 not pseudoregisters.
479 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
480 add ppc_ev0_upper_regnum flag.
481 * rs6000-tdep.c: #include "reggroups.h".
482 (spe_register_p): Recognize the ev upper half registers as SPE
483 registers.
484 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
485 registers.
486 (e500_move_ev_register): New function.
487 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
488 vector registers are the pseudo-registers now, formed by splicing
489 together the gprs and the upper-half registers.
490 (e500_register_reggroup_p): New function.
491 (P): Macro deleted.
492 (P8, A4): New macro.
493 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
494 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
495 macros.
496 (registers_e500): Rearrange register set so that the raw register
497 set contains 32-bit GPRs and upper-half registers, and the SPE
498 vector registers become pseudo-registers.
499 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
500 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
501 register numbers are now the same for the E500 as they are for
502 other PowerPC variants. Register e500_register_reggroup_p as the
503 register group function for the E500.
504 * Makefile.in (rs6000-tdep.o): Update dependencies.
505
506 Adapt PPC E500 native support to the new raw regcache layout.
507 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
508 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
509 (fetch_spe_register, store_spe_register): Handle fetching/storing
510 all the SPE registers at once, if regno == -1. These now take
511 over the job of fetch_spe_registers and store_spe_registers.
512 (fetch_spe_registers, store_spe_registers): Deleted.
513 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
514 unconditionally; they're always raw. Fetch/store SPE upper half
515 registers, if present, instead of ev registers.
516 (fetch_register, store_register): Remove sanity checks: gprs are
517 never pseudo-registers now, so we never need to even mention any
518 registers that are ever pseudoregisters.
519
520 Use a fixed register numbering when communicating with the PowerPC
521 simulator.
522 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
523 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
524 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
525 New functions.
526 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
527 init_sim_regno_table.
528 * Makefile.in (gdb_sim_ppc_h): New variable.
529 (rs6000-tdep.o): Update dependencies.
530
531 2004-08-02 Andrew Cagney <cagney@gnu.org>
532
533 * cris-tdep.c (cris_register_size): Restore function, still used
534 locally.
535
536 * gdbarch.sh (deprecated_target_read_fp)
537 (deprecated_frame_locals_address, deprecated_frame_args_address)
538 (deprecated_frame_chain_valid, deprecated_frame_chain)
539 (deprecated_init_extra_frame_info, deprecated_pop_frame)
540 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
541 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
542 * gdbarch.h, gdbarch.c: Re-generate.
543 * regcache.c (deprecated_read_fp): Do not call
544 DEPRECATED_TARGET_READ_FP_P.
545 * infcmd.c (default_print_registers_info): Do not call
546 DEPRECATED_DO_REGISTERS_INFO.
547 * frame-base.c (default_frame_locals_address): Do not call
548 DEPRECATED_FRAME_LOCALS_ADDRESS.
549 (default_frame_args_address): Do not call
550 DEPRECATED_FRAME_ARGS_ADDRESS.
551
552 * gdbarch.sh (deprecated_register_raw_size)
553 (deprecated_register_virtual_size:int): Delete.
554 * gdbarch.h, gdbarch.c: Re-generate.
555 * cris-tdep.c (cris_register_size): Delete.
556 (cris_gdbarch_init): Update.
557 * alpha-tdep.c (alpha_register_raw_size)
558 (alpha_register_virtual_size): Delete.
559 (alpha_gdbarch_init): Update.
560
561 * gdbarch.sh (deprecated_register_virtual_type)
562 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
563 (deprecated_dummy_write_sp): Delete.
564 * gdbarch.h, gdbarch.c: Re-generate.
565
566 * gdbarch.sh (deprecated_register_bytes): Delete.
567 * gdbarch.h, gdbarch.c: Re-generate.
568 * regcache.c (deprecated_register_bytes): New function.
569 * regcache.h (deprecated_register_bytes): Declare.
570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
571 * v850-tdep.c (v850_gdbarch_init): Update.
572 * sh64-tdep.c (sh64_gdbarch_init): Update.
573 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
575 * mcore-tdep.c (mcore_gdbarch_init): Update.
576 * cris-tdep.c (cris_gdbarch_init): Update.
577 * arm-tdep.c (arm_gdbarch_init): Update.
578 * remote.c (init_remote_state): Update.
579 * remote-vx.c (vx_prepare_to_store): Update.
580 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
581 * irix5-nat.c (fetch_core_registers): Update.
582 * cris-tdep.c (cris_register_bytes_ok): Update.
583 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
584
585 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
586 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
587 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
588 (mips_insn16_frame_base_address, mips_insn16_frame_base)
589 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
590 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
591 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
592 (mips_insn32_frame_base_address, mips_insn32_frame_base)
593 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
594 with mips_insn16 and mips_insn32.
595
596 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
597 * rs6000-tdep.c (rs6000_push_dummy_call)
598 (rs6000_extract_return_value): Use register_size.
599 * xstormy16-tdep.c (xstormy16_get_saved_register)
600 (xstormy16_extract_return_value): Ditto.
601 * valops.c (value_assign): Ditto.
602 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
603 * v850-tdep.c (v850_extract_return_value): Ditto.
604 * tracepoint.c (collect_symbol): Ditto.
605 * target.c (debug_print_register): Ditto.
606 * stack.c (frame_info): Ditto.
607 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
608 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
609 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
610 (store_register_using_P): Ditto.
611 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
612 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
613 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
614 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
615 * regcache.c (deprecated_read_register_bytes)
616 (deprecated_write_register_bytes, read_register)
617 (write_register): Ditto.
618 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
619 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
620 * monitor.c (monitor_supply_register, monitor_fetch_register)
621 (monitor_store_register): Ditto.
622 * mn10300-tdep.c (mn10300_pop_frame_regular)
623 (mn10300_print_register): Ditto.
624 * mipsv4-nat.c (fill_fpregset): Ditto.
625 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
626 (mips64_fill_fpregset): Ditto.
627 * mi/mi-main.c (register_changed_p, get_register)
628 (mi_cmd_data_write_register_values): Ditto.
629 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
630 * irix5-nat.c (fill_gregset, fetch_core_registers):
631 * infrun.c (write_inferior_status_register): Ditto.
632 * infptrace.c (fetch_register, store_register): Ditto.
633 * infcmd.c (default_print_registers_info): Ditto.
634 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
635 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
636 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
637 * hpux-thread.c (hpux_thread_fetch_registers)
638 (hpux_thread_store_registers): Ditto.
639 * hppah-nat.c (store_inferior_registers, fetch_register):
640 * findvar.c (value_from_register): Ditto.
641 * dve3900-rom.c (fetch_bitmapped_register):
642 * cris-tdep.c (cris_gdbarch_init): Ditto.
643 * alpha-tdep.h: Ditto.
644 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
645
646 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
647 DEPRECATED_REGISTER_RAW_SIZE from comments.
648 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
649 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
650 DEPRECATED_REGISTER_RAW_SIZE.
651 * findvar.c (value_of_register): Simplify by assuming that the
652 registers raw and virtual sizes are identical.
653 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
654 comment.
655 * arch-utils.c (generic_register_size): Simplify by assuming
656 register_type.
657
658 * regcache.c (legacy_read_register_gen, real_register)
659 (legacy_write_register_gen): Delete, not used.
660
661 * regcache.c (struct regcache_descr): Delete legacy_p.
662 (init_legacy_regcache_descr): Delete function.
663 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
664 Do not use deprecated register functions.
665 (regcache_raw_read, deprecated_write_register_gen):
666 (deprecated_read_register_gen, regcache_raw_write): Delete code
667 predicated on legacy_p.
668 (register_size): Delete check against register raw size.
669
670 * cris-tdep.c (cris_register_type): Replace
671 cris_register_virtual_type.
672 (cris_gdbarch_init): Update, set register_type.
673
674 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
675 * gdbarch.h, gdbarch.c: Re-generate.
676 * arm-tdep.c (arm_frameless_function_invocation): Delete.
677 (arm_gdbarch_init) Do not set frameless function invocation.
678 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
679 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
680 * frv-tdep.c (frv_frameless_function_invocation): Delete.
681 (frv_gdbarch_init): Do not set frameless function invocation.
682 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
683 * sh-tdep.c (sh_gdbarch_init): Ditto.
684 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
686 * avr-tdep.c (avr_gdbarch_init): Ditto.
687
688 * blockframe.c (legacy_frame_chain_valid): Delete function.
689
690 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
691 and pc. Update comments.
692 (pc_in_dummy_frame): Delete function.
693 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
694 use the "id".
695 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
696 call_hi, top and pc, use the id.
697 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
698
699 * dummy-frame.c: Include "gdb_string.h".
700 (generic_save_call_dummy_addr, generic_push_dummy_frame)
701 (generic_save_dummy_frame_tos): Delete.
702 (dummy_frame_push): New function, replaces above.
703 * dummy-frame.h: Update copyright.
704 (dummy_frame_push): Declare.
705 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
706 (generic_save_call_dummy_addr): Delete declarations.
707 * infcall.c: Include "dummy-frame.h".
708 (call_function_by_hand): Add locals caller_regcache,
709 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
710 with call to frame_save_as_regcache plus cleanup. Delete calls to
711 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
712 Move clear_proceed_status to just before the resume, add call to
713 dummy_frame_push (discard cleanup).
714 * Makefile.in (infcall.o): Add $(dummy_frame_h).
715 (dummy-frame.o): Add $(gdb_string_h).
716
717 2004-08-01 Andrew Cagney <cagney@gnu.org>
718
719 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
720 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
721 * dummy-frame.c (find_dummy_frame): Delete.
722 (struct dummy_frame_cache, dummy_frame_sniffer)
723 (dummy_frame_prev_register, dummy_frame_this_id)
724 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
725 frame unwinder using a dummy_frame_cache.
726
727 2004-08-01 Andrew Cagney <cagney@gnu.org>
728
729 * frame.h (frame_save_as_regcache): Declare.
730 * frame.c (frame_save_as_regcache): New function.
731 (do_frame_read_register): Replace do_frame_unwind_register.
732 (frame_pop): Use frame_save_as_regcache.
733 * dummy-frame.c (generic_push_dummy_frame): Use
734 frame_save_as_regcache.
735
736 2004-08-01 Joel Brobecker <brobecker@gnat.com>
737
738 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
739 file as included until we record the first line in the linetable.
740
741 2004-08-01 Andrew Cagney <cagney@gnu.org>
742
743 * frame.h (deprecated_pop_dummy_frame)
744 (deprecated_read_register_dummy)
745 (deprecated_generic_find_dummy_frame): Delete.
746 * dummy-frame.c (deprecated_generic_find_dummy_frame)
747 (deprecated_read_register_dummy)
748 (deprecated_find_dummy_frame_regcache)
749 (discard_innermost_dummy)
750 (deprecated_pop_dummy_frame): Delete.
751 (dummy_frame_this_id): Simplify.
752 (struct dummy_frame): Delete "fp" and "sp".
753 (find_dummy_frame): Simplify.
754 (generic_push_dummy_frame): Do not set "fp" or "sp".
755 (fprint_dummy_frames): Do not print "fp" and "sp"
756
757 2004-08-01 Mark Kettenis <kettenis@gnu.org>
758
759 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
760 (struct i386_insn): New structure.
761 (i386_match_insn): New function.
762 (i386_frame_setup_skip_insns): New variable.
763 (i386_analyze_frame_setup): Change to use i386_match_insn and the
764 array i386_frame_setup_insns of instructions that should be
765 skipped inside the frame setup sequence.
766
767 2004-08-01 Andrew Cagney <cagney@gnu.org>
768
769 * frame.h (deprecated_frame_xmalloc_with_cleanup)
770 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
771 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
772 * stack.c (frame_info): Delete references to
773 DEPRECATED_FRAME_INIT_SAVED_REGS and
774 deprecated_get_frame_saved_regs.
775 * frame.c (struct frame_info): Delete saved_regs and extra_info.
776 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
777 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
778 (frame_unwind_register_signed)
779 (frame_unwind_register_unsigned)
780 (frame_unwind_unsigned_register): Use register_size.
781 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
782 (deprecated_frame_xmalloc_with_cleanup)
783 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
784 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
785
786 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
787 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
788 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
789 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
790
791 * infcall.c (call_function_by_hand): Do not use
792 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
793 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
794 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
795 DEPRECATED_STACK_ALIGN.
796
797 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
798
799 Committed by Andrew Cagney.
800 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
801
802 2004-08-01 Andrew Cagney <cagney@gnu.org>
803
804 * mips-tdep.c (mips16_frame_cache)
805 (mips16_frame_this_id, mips16_frame_prev_register)
806 (mips16_frame_unwind, mips16_frame_sniffer)
807 (mips16_frame_base_address, mips16_frame_base)
808 (mips16_frame_base_sniffer, mips32_frame_cache)
809 (mips32_frame_this_id, mips32_frame_prev_register)
810 (mips32_frame_unwind, mips32_frame_sniffer)
811 (mips32_frame_base_address, mips32_frame_base)
812 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
813 separate heuristic mips16 and mips32 unwinders.
814 (mips_stub_frame_cache, mips_stub_frame_this_id)
815 (mips_stub_frame_prev_register)
816 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
817 (mips_stub_frame_base_address, mips_stub_frame_base)
818 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
819 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
820 match true mdebug frames.
821 (non_heuristic_proc_desc): Add forward declaration.
822
823 2004-08-01 Andrew Cagney <cagney@gnu.org>
824
825 * config/mips/tm-irix6.h: Delete file.
826 * config/mips/tm-irix5.h: Delete file.
827 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
828 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
829
830 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
831 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
832 * config/nm-gnu.h (NO_CORE_OPS): Delete.
833 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
834 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
835 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
836 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
837 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
838 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
839 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
840 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
841 (TARGET_SIGNAL_RAW_VALUES): Delete.
842 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
843 Delete.
844 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
845 (TARGET_HW_WATCH_LIMIT): Delete.
846 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
847 * minimon.h: Delete file.
848
849 * trad-frame.c (trad_frame_get_this_base)
850 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
851 functions.
852 * trad-frame.h (trad_frame_set_this_base)
853 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
854
855 2004-07-31 Andrew Cagney <cagney@gnu.org>
856
857 * trad-frame.c (trad_frame_get_prev_register): Rename
858 trad_frame_get_prev_register.
859 * vax-tdep.c (vax_frame_prev_register): Update.
860 * trad-frame.h: Update.
861 * trad-frame.c (trad_frame_get_register): Update.
862 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
863 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
864 Update.
865 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
866 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
867 Update.
868 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
869 Update.
870 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
871 Update.
872 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
873 Update.
874 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
875 Update.
876 * s390-tdep.c (s390_frame_prev_register)
877 (s390_stub_frame_prev_register)
878 (s390_sigtramp_frame_prev_register): Update.
879 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
880 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
881 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
882 * m88k-tdep.c (m88k_frame_prev_register)
883 * m68hc11-tdep.c (m68hc11_frame_prev_register)
884 * m32r-tdep.c (m32r_frame_prev_register): Update.
885 * hppa-tdep.c (hppa_frame_prev_register_helper)
886 * frv-tdep.c (frv_frame_prev_register): Update.
887 * d10v-tdep.c (d10v_frame_prev_register): Update.
888 * cris-tdep.c (cris_frame_prev_register): Update.
889 * avr-tdep.c (avr_frame_prev_register): Update.
890 * arm-tdep.c (arm_prologue_prev_register)
891 (arm_sigtramp_prev_register): Update.
892
893 2004-07-31 Andrew Cagney <cagney@gnu.org>
894
895 * frame.h (legacy_saved_regs_unwind)
896 (legacy_frame_chain_valid, legacy_frame_p)
897 (enum frame_type): Delete UNKNOWN_FRAME.
898 * dummy-frame.c (dummy_frame_this_id): Simplify.
899 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
900 * frame.c (struct frame_info): Delete the field "type".
901 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
902 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
903 (legacy_saved_regs_unwind, legacy_frame_p)
904 (frame_type_from_pc): Delete.
905 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
906 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
907
908 2004-07-31 Mark Kettenis <kettenis@gnu.org>
909
910 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
911 indentation.
912
913 * mips-nat.c: Remove file.
914 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
915 (mips-nat.o): Remove dependency.
916
917 * infptrace.c: Update copyright year.
918 (fetch_register): Pass NULL in regcache_raw_supply call instead of
919 explicitly setting the buffer to all zeroes.
920
921 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
922 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
923
924 2004-07-30 Andrew Cagney <cagney@gnu.org>
925
926 * GDB 6.2 released from gdb_6_2-branch.
927
928 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
929
930 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
931
932 * exec.c (exec_file_attach):
933 * nto-tdep.c (nto_find_and_open_solib):
934 * pa64solib.c (pa64_solib_sizeof_symbol_table):
935 * solib.c (solib_open):
936 * somsolib.c (som_solib_sizeof_symbol_table):
937 * source.c (is_regular_file, openp, open_source_file):
938 * symfile.c (symfile_bfd_open):
939 * wince.c (upload_to_device): Differentiate between the search for
940 binary and source files.
941
942 2004-07-30 Andrew Cagney <cagney@gnu.org>
943
944 * complaints.c (_initialize_complaints): Pass NULL to
945 add_setshow_zinteger_cmd for help_doc.
946 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
947
948 2004-07-30 Andrew Cagney <cagney@gnu.org>
949
950 Fix PR i18n/761.
951 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
952 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
953 $(PACKAGE).pot and update-po.
954 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
955 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
956 (update-po): New rules.
957 (localedir): Define using autoconf.
958 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
959 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
960 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
961 * configure.in: Generate CATALOGS and LINGUAS from contents of
962 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
963 * configure: Re-generate.
964 * po/gdbtext: New file
965
966 2004-07-30 Jerome Guitton <guitton@gnat.com>
967
968 * MAINTAINERS: Reorder Write After Approval list in alphabetical
969 order.
970
971 2004-07-30 David Lecomber <dsl@sources.redhat.com>
972
973 * dwarf2read.c (read_file_scope): Set producer if attribute
974 present.
975 (struct dwarf2_cu): Added new member producer.
976
977 2004-07-30 Jerome Guitton <guitton@gnat.com>
978
979 * inflow.c (kill_command): release file handles in BFD.
980 * exec.c (exec_file_attach): Ditto.
981 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
982
983 2004-07-29 Andrew Cagney <cagney@gnu.org>
984
985 * PROBLEMS (mips-irix): Note that it is broken.
986
987 2004-07-29 Andrew Cagney <cagney@gnu.org>
988
989 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
990 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
991
992 * config/xm-nbsd.h: Delete file.
993 * config/arm/xm-nbsd.h: Delete file.
994 * config/i386/xm-nbsd.h: Delete file.
995 * config/ns32k/xm-nbsd.h: Delete file.
996 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
997 * config/i386/nbsdelf.mh (XM_FILE): Delete.
998 * config/i386/nbsdaout.mh (XM_FILE): Delete.
999 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1000 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1001
1002 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1003 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1004 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1005 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1006 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1007 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1008
1009 * config/powerpc/xm-linux.h: Delete empty file.
1010 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1011 * config/powerpc/linux.mh (XM_FILE): Delete.
1012 * config/m68k/xm-linux.h: Delete empty file.
1013 * config/m68k/linux.mh (XM_FILE): Delete.
1014 * config/ia64/xm-linux.h: Delete empty file.
1015 * config/ia64/linux.mh (XM_FILE): Delete.
1016 * config/arm/xm-linux.h: Delete empty file.
1017 * config/arm/linux.mh (XM_FILE): Delete.
1018
1019 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1020 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1021 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1022 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1023 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1024 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1025 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1026 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1027
1028 * config/m68k/xm-m68k.h: Delete file.
1029 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1030 copyright.
1031 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1032 * config/pa/xm-linux.h: Delete empty file.
1033 * config/pa/linux.mh (XM_FILE): Delete.
1034 * config/i386/xm-i386.h: Delete empty file.
1035 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1036 "i386/xm-i386.h".
1037 * config/i386/obsdaout.mh (XM_FILE): Delete.
1038 * config/i386/obsd64.mh (XM_FILE): Delete.
1039 * config/i386/fbsd64.mh (XM_FILE): Delete.
1040 * config/i386/nto.mh (XM_FILE): Delete.
1041 * config/i386/obsd.mh (XM_FILE): Delete.
1042 * config/i386/linux64.mh (XM_FILE): Delete.
1043 * config/i386/linux.mh (XM_FILE): Delete.
1044 * config/i386/i386sol2.mh (XM_FILE): Delete.
1045 * config/i386/i386gnu.mh (XM_FILE): Delete.
1046 * config/i386/fbsd.mh (XM_FILE): Delete.
1047 * config/i386/nbsd64.mh (XM_FILE): Delete.
1048
1049 2004-07-29 Andrew Cagney <cagney@gnu.org>
1050
1051 * config/pa/xm-linux.h: Do not include "floatformat.h".
1052 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1053 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1054 * config/i386/xm-i386.h: Do not include "floatformat.h".
1055 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1056 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1057 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1058 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1059 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1060 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1061 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1062 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1063 * configure, config.in: Regenerate.
1064 * configure.host (gdb_host_float_format, gdb_host_double_format)
1065 (gdb_host_long_double_format): Set according to the host.
1066
1067 2004-07-29 Andrew Cagney <cagney@gnu.org>
1068
1069 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1070
1071 2004-07-28 Andrew Cagney <cagney@gnu.org>
1072
1073 * PROBLEMS: Mention threads/1650.
1074 * NEWS: Mention the NPTL fix.
1075
1076 2004-07-28 Andrew Cagney <cagney@gnu.org>
1077
1078 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1079 (add_setshow_cmd_full): Make static.
1080 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1081 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1082 * cli/cli-decode.c (add_setshow_filename_cmd)
1083 (add_setshow_string_cmd): New functions.
1084 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1085 * mips-tdep.c (_initialize_mips_tdep): Update.
1086 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1087 * cli/cli-logging.c (_initialize_cli_logging): Update.
1088 * complaints.c (_initialize_complaints): Update.
1089 * remote.c (_initialize_remote): Update.
1090
1091 2004-07-28 Andrew Cagney <cagney@gnu.org>
1092
1093 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1094 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1095 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1096 print parameters. Make string parameters constant.
1097 * command.h: Update. Update copyright.
1098 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1099 * observer.c (_initialize_observer): Ditto.
1100 * frame.c (_initialize_frame): Ditto.
1101 * complaints.c (_initialize_complaints): Ditto.
1102 * maint.c (_initialize_maint_cmds): Ditto.
1103 * target.c (initialize_targets): Ditto.
1104 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1105 * infcall.c (_initialize_infcall): Ditto.
1106 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1107 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1108 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1109 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1110 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1111
1112 2004-07-28 Andrew Cagney <cagney@gnu.org>
1113
1114 * gdbtypes.c (lookup_primitive_typename): Delete function.
1115 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1116 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1117 * gdbtypes.c (lookup_typename): Ditto.
1118 * f-exp.y (yylex): Ditto.
1119 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1120
1121 * scm-lang.c (c_builtin_types): Delete extern declaration.
1122 (scm_language_defn): Replace
1123 string_char_type and primitive_type_vector with
1124 la_language_arch_info.
1125 * jv-lang.c (java_language_defn): Replace
1126 string_char_type and primitive_type_vector with
1127 la_language_arch_info.
1128 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1129 c_builtin_types in comment.
1130 * c-lang.h (struct language_arch_info): Declare opaque.
1131 (c_language_arch_info): Declare.
1132 (c_builtin_types): Delete declaration.
1133 * c-lang.c (c_language_arch_info): Set string_char_type to
1134 builtin_char, not builtin_true_char. Make global.
1135 (c_builtin_types): Delete array.
1136 (asm_language_defn, minimal_language_defn): Replace
1137 string_char_type and primitive_type_vector with
1138 la_language_arch_info.
1139
1140 2004-07-28 Andrew Cagney <cagney@gnu.org>
1141
1142 * gdbtypes.h (struct builtin_type): Rename true_char to
1143 builtin_true_char.
1144 * gdbtypes.c (gdbtypes_post_init): Update.
1145 * c-lang.c (arch_info): New function.
1146 (enum c_primitive_types): New enum.
1147 (c_language_defn): Instead of string_char_type and
1148 primitive_type_vector set la_language_arch_info.
1149
1150 2004-07-28 Andrew Cagney <cagney@gnu.org>
1151
1152 * language.h (struct language_arch_info): Fix typo
1153 s/primative/primitive/.
1154 * gdbtypes.c (lookup_primitive_typename): Ditto.
1155 * language.c (language_lookup_primitive_type_by_name)
1156 (unknown_language_arch_info): Ditto.
1157
1158 2004-07-27 Andrew Cagney <cagney@gnu.org>
1159
1160 * defs.h (enum language): Add nr_languages.
1161 * language.h (struct language_arch_info): Define.
1162 (struct language_defn): Add la_language_arch_info.
1163 (language_lookup_primative_type_by_name): Declare.
1164 (language_string_char_type): Declare.
1165 * language.c (_initialize_language, language_gdbarch_post_init)
1166 (struct language_gdbarch, language_gdbarch_data): Implement
1167 per-architecture language information.
1168 (unknown_language_arch_info, language_string_char_type)
1169 (language_lookup_primative_type_by_name): New functions.
1170 (unknown_language_defn, auto_language_defn)
1171 (local_language_defn): Set la_language_arch_info to
1172 unknown_language_arch_info.
1173 (unknown_builtin_types): Delete.
1174 * gdbtypes.c (lookup_primitive_typename): Use
1175 language_lookup_primative_type_by_name.
1176 (create_string_type): Use language_string_char_type.
1177 * values.c (value_from_string): Use language_string_char_type.
1178 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1179 * p-lang.c (pascal_language_defn): Ditto.
1180 * m2-lang.c (m2_language_defn): Ditto.
1181 * jv-lang.c (java_language_defn): Ditto.
1182 * objc-lang.c (objc_language_defn): Ditto.
1183 * f-lang.c (f_language_defn): Ditto.
1184 * c-lang.c (c_language_defn, cplus_language_defn)
1185 (asm_language_defn, minimal_language_defn): Ditto.
1186
1187 2004-07-27 Andrew Cagney <cagney@gnu.org>
1188
1189 * gdbtypes.h (struct builtin_type): Declare.
1190 (builtin_type): Declare.
1191 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1192 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1193 (gdbtypes_post_init): New function.
1194 (builtin_type): New function.
1195
1196 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1197
1198 * remote-m32r-sdi.c: Fix breakpoint bug.
1199 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1200 recv_char_data, recv_long_data): New functions to replace communication
1201 sequences.
1202
1203 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1204
1205 Document PR threads/1650.
1206 * PROBLEMS (Threads): Document problem with many threads
1207
1208 2004-07-26 Andrew Cagney <cagney@gnu.org>
1209
1210 * gdb-mi.el: Move from here ...
1211 * mi/gdb-mi.el: ... to here.
1212
1213 2004-07-26 Andrew Cagney <cagney@gnu.org>
1214
1215 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1216 * main.c (captured_main): When in batch mode always detach.
1217
1218 2004-07-26 Andrew Cagney <cagney@gnu.org>
1219
1220 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1221 and h8300 as broken.
1222 * NEWS: END-OF-LIFE frame compatibility module.
1223 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1224 specific comments.
1225
1226 2004-07-26 Andrew Cagney <cagney@gnu.org>
1227
1228 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1229 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1230 * wince.c (_initialize_wince): Update.
1231 * win32-nat.c (_initialize_win32_nat): Update.
1232 * varobj.c (_initialize_varobj): Update.
1233 * valops.c (_initialize_valops): Update.
1234 * utils.c (initialize_utils, initialize_utils): Update.
1235 * tui/tui-win.c (_initialize_tui_win): Update.
1236 * top.c (init_main): Update.
1237 * symfile.c (_initialize_symfile): Update.
1238 * source.c (_initialize_source): Update.
1239 * somsolib.c (_initialize_som_solib): Update.
1240 * solib.c (_initialize_solib): Update.
1241 * solib-frv.c (_initialize_frv_solib): Update.
1242 * serial.c (_initialize_serial): Update.
1243 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1244 * remote.c (_initialize_remote, _initialize_remote): Update.
1245 * remote-vx.c (_initialize_vx): Update.
1246 * remote-utils.c (_initialize_sr_support): Update.
1247 * remote-sds.c (_initialize_remote_sds): Update.
1248 * remote-mips.c (_initialize_remote_mips): Update.
1249 * remote-e7000.c (_initialize_remote_e7000): Update.
1250 * proc-api.c (_initialize_proc_api): Update.
1251 * printcmd.c: Update.
1252 * parse.c (_initialize_parse): Update.
1253 * pa64solib.c (_initialize_pa64_solib): Update.
1254 * p-valprint.c (_initialize_pascal_valprint): Update.
1255 * monitor.c (_initialize_remote_monitors): Update.
1256 * mips-tdep.c (_initialize_mips_tdep): Update.
1257 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1258 * maint.c (_initialize_maint_cmds): Update.
1259 * lin-lwp.c (_initialize_lin_lwp): Update.
1260 * language.c (_initialize_language): Update.
1261 * kod.c (_initialize_kod): Update.
1262 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1263 * i386-tdep.c (_initialize_i386_tdep): Update.
1264 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1265 * gdbarch.sh: Update.
1266 * gdbarch.c: Re-generate.
1267 * gdb-events.sh: Update.
1268 * gdb-events.c: Re-generate.
1269 * frame.c (_initialize_frame): Update.
1270 * exec.c: Update.
1271 * demangle.c (_initialize_demangler): Update.
1272 * dcache.c (_initialize_dcache): Update.
1273 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1274 * cp-valprint.c (_initialize_cp_valprint): Update.
1275 * corefile.c (_initialize_core): Update.
1276 * command.h: Update.
1277 * cli/cli-decode.h: Update.
1278 * cli/cli-cmds.c (init_cli_cmds): Update.
1279 * charset.c (_initialize_charset): Update.
1280 * breakpoint.c (_initialize_breakpoint): Update.
1281 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1282 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1283 * aix-thread.c (_initialize_aix_thread): Update.
1284
1285 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1286
1287 Partial fix for PR backtrace/1718.
1288 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1289 that GCC migrates into the prolugue. Don't handle any
1290 instructions that clobber %ebx.
1291
1292 2004-07-23 Andrew Cagney <cagney@gnu.org>
1293
1294 Use regcache_raw_collect instead of regcache_collect.
1295 * regcache.h (regcache_collect): Delete declaration.
1296 * regcache.c (regcache_colect): Delete function.
1297 * win32-nat.c (do_child_store_inferior_registers): Update.
1298 * sol-thread.c (sol_thread_store_registers): Update.
1299 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1300 * rs6000-nat.c (store_register): Update.
1301 * remote.c (store_register_using_P, remote_store_registers): Update.
1302 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1303 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1304 (fill_vrregset, store_spe_registers, fill_gregset)
1305 (fill_gregset): Update.
1306 * nto-procfs.c (procfs_store_registers): Update.
1307 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1308 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1309 * m68klinux-nat.c (store_register, fill_gregset): Update.
1310 * m68k-tdep.c (fill_gregset): Update.
1311 * infptrace.c (store_register): Update.
1312 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1313 * i386-linux-nat.c (store_register, fill_gregset): Update.
1314 * hppa-linux-nat.c (fill_gregset): Update.
1315 * go32-nat.c (store_register): Update.
1316 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1317 (store_fp_regs): Update.
1318 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1319 (store_nwfpe_extended, store_fpregister, store_fpregs)
1320 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1321 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1322 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1323 (store_regs_user_thread, store_regs_kernel_thread): Update.
1324
1325 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1326
1327 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1328 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1329 encoding.
1330 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1331 member of `struct comp_unit'.
1332
1333 2004-07-23 Andrew Cagney <cagney@gnu.org>
1334
1335 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1336 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1337
1338 2004-07-23 Martin Hunt <hunt@redhat.com>
1339 Kevin Buettner <kevinb@redhat.com>
1340
1341 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1342 alignment was being added to the offset instead of multiplied.
1343
1344 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1345
1346 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1347 changed signal trampoline in OpenBSD 3.5-current.
1348
1349 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1350 <machine/pcb.h> and "bsd-kvm.h".
1351 (sparc64nbsd_supply_pcb): New function.
1352 (_initialize_sparc64nbsd_nat): Renamed from
1353 _initialize_sparcnbsd_nat. Enable libkvm interface.
1354 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1355 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1356 (LOADLIBES): New variable.
1357
1358 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1359
1360 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1361
1362 2004-07-21 Andrew Cagney <cagney@gnu.org>
1363
1364 Use regcache_raw_supply instead of supply_register.
1365 * regcache.h (supply_register): Delete declaration.
1366 * regcache.c (supply_register): Delete function.
1367 * wince.c (do_child_fetch_inferior_registers): Update.
1368 * win32-nat.c (do_child_fetch_inferior_registers)
1369 (fetch_elf_core_registers): Update.
1370 * v850ice.c (v850ice_fetch_registers): Update.
1371 * thread-db.c (thread_db_store_registers): Update.
1372 * sol-thread.c (sol_thread_store_registers): Update.
1373 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1374 * rs6000-nat.c (fetch_register): Update.
1375 * rom68k-rom.c (rom68k_supply_one_register): Update.
1376 * remote.c (remote_wait, remote_async_wait): Update.
1377 * remote-st.c (get_hex_regs): Update.
1378 * remote-sim.c (gdbsim_fetch_register): Update.
1379 * remote-sds.c (sds_fetch_registers): Update.
1380 * remote-rdp.c (remote_rdp_fetch_register): Update.
1381 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1382 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1383 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1384 * remote-hms.c (init_hms_cmds): Update.
1385 * remote-est.c (init_est_cmds): Update.
1386 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1387 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1388 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1389 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1390 (fetch_register, supply_vrregset, supply_vrregset)
1391 (fetch_spe_registers): Update.
1392 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1393 * monitor.c (monitor_supply_register): Update.
1394 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1395 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1396 (mipsnbsd_supply_fpreg): Update.
1397 * mips-nat.c (fetch_inferior_registers)
1398 (fetch_core_registers): Update.
1399 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1400 (supply_fpregset, mips64_supply_gregset)
1401 (mips64_supply_fpregset): Update.
1402 * m68klinux-nat.c (fetch_register, supply_gregset)
1403 (supply_fpregset): Update.
1404 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1405 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1406 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1407 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1408 * infptrace.c (fetch_register): Update.
1409 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1410 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1411 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1412 (gnu_fetch_registers, gnu_store_registers): Update.
1413 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1414 * i386-linux-nat.c (fetch_register, supply_gregset)
1415 (dummy_sse_values): Update.
1416 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1417 * hppah-nat.c (fetch_register): Update.
1418 * hppa-linux-nat.c (fetch_register, supply_gregset)
1419 (supply_fpregset): Update.
1420 * go32-nat.c (fetch_register): Update.
1421 * dve3900-rom.c (fetch_bitmapped_register)
1422 (_initialize_r3900_rom): Update.
1423 * cris-tdep.c (supply_gregset): Update.
1424 * abug-rom.c (init_abug_cmds): Update.
1425 * core-aout.c (fetch_core_registers): Update.
1426 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1427 (fetch_register, fetch_fp_register): Update.
1428 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1429 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1430 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1431 * alphanbsd-tdep.c (fetch_core_registers): Update.
1432 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1433 * alpha-nat.c (fetch_osf_core_registers)
1434 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1435 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1436 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1437
1438 2004-07-21 Andrew Cagney <cagney@gnu.org>
1439
1440 * PROBLEMS: Mention breakpoints/1702.
1441 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1442 that is known to work.
1443
1444 2004-07-21 Andrew Cagney <cagney@gnu.org>
1445
1446 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1447 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1448 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1449 (handle_inferior_event): Wrap call to deprecated
1450 IGNORE_HELPER_CALL in #ifdef.
1451 * config/mips/tm-nbsd.h: Update.
1452
1453 2004-07-20 Jim Blandy <jimb@redhat.com>
1454
1455 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1456 bfd_mach_ppc has no segment registers.
1457
1458 Include PowerPC SPR numbers for special-purpose registers.
1459 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1460 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1461 new member in initializer.
1462 (S, S4, SN4, S64): New macros for defining special-purpose
1463 registers.
1464 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1465 registers_403, registers_403GC, registers_505, registers_860,
1466 registers_601, registers_602, registers_603, registers_604,
1467 registers_750, registers_e500): Use them.
1468
1469 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1470 replace references with expression used to initialize variable.
1471
1472 2004-07-20 Andrew Cagney <cagney@gnu.org>
1473
1474 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1475 read_memory_nobpt.
1476 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1477 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1478 (s390_sigtramp_frame_sniffer): Update.
1479 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1480 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1481 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1482 (mips32_fetch_instruction): Update.
1483 * mcore-tdep.c (get_insn): Update.
1484 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1485 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1486 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1487 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1488 (i386_linux_rt_sigtramp_start): Update.
1489 * i386-linux-nat.c (child_resume): Update.
1490 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1491 * hppa-linux-tdep.c (insns_match_pattern): Update.
1492 * gdbcore.h: Update.
1493 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1494 * frame.c (safe_frame_unwind_memory): Update.
1495 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1496 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1497 * alpha-tdep.c (alpha_read_insn): Update.
1498
1499 2004-07-20 Andrew Cagney <cagney@gnu.org>
1500
1501 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1502 containing both bytes and mask. Add "frame_type".
1503 * tramp-frame.c (tramp_frame_start): Update.
1504 (tramp_frame_prepend_unwinder): Update.
1505 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1506 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1507 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1508 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1509
1510 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1511
1512 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1513 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1514 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1515 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1516
1517 2004-07-17 Andrew Cagney <cagney@gnu.org>
1518
1519 * NEWS, PROBLEMS: Update for 6.2.
1520
1521 * README: Update to 6.2.
1522
1523 * utils.c (xvasprintf): Call xstrvprintf.
1524
1525 * parse.c: Update copyright.
1526 (null_post_parser): Eliminate ARGSUSED.
1527
1528 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1529 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1530 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1531
1532 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1533 * ppc-linux-nat.c: Use "Linux kernel".
1534 * hppa-linux-tdep.c: Use GNU/Linux.
1535 * hppa-linux-nat.c: Use GNU/Linux.
1536 * dwarfread.c: Add [sic] to use of Linux.
1537
1538 * hppa-linux-nat.c: Do not include <string.h>.
1539 (supply_fpregset): Remove "register" attribute.
1540
1541 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1542
1543 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1544
1545 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1546 * configure, config.in: Regenerated.
1547
1548 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1549 "bsd-kvm.h".
1550 (vaxbsd_supply_pcb): New function.
1551 (_initialize_vaxbsd_nat): New prototype and function.
1552 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1553 solib-sunos.o.
1554 (LOADLIBES): New variable.
1555 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1556 (LOADLIBES): New variable.
1557 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1558 (LOADLIBES): New variable.
1559 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1560
1561 2004-07-16 Andrew Cagney <cagney@gnu.org>
1562
1563 * defs.h (event_loop_p): Replace variable declaration with macro,
1564 always 1.
1565 * main.c (captured_main): Delete options "-async" and "-noasync".
1566 (event_loop_p): Delete variable.
1567 * NEWS: Mention that "-async" and "-noasync" were removed.
1568
1569 2004-07-16 Andrew Cagney <cagney@gnu.org>
1570
1571 * remote-m32r-sdi.c: Re-indent.
1572
1573 2004-07-16 Jim Blandy <jimb@redhat.com>
1574
1575 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1576 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1577 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1578 missing MPC823 SPRs.
1579 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1580 incorrect. (This was corrected in GDB's register name tables on
1581 2004-07-14.)
1582
1583 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1584 should be "esasrr" ("ESA Save and Restore Register").
1585
1586 2004-07-16 Andrew Cagney <cagney@gnu.org>
1587
1588 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1589 calls, no longer applicable. Update comments and rename parameter
1590 "step_frame" to "return_frame".
1591
1592 2004-07-16 Andrew Cagney <cagney@gnu.org>
1593
1594 * frame.c (fprint_field): New function.
1595 (fprint_frame_id): Use fprint_field.
1596
1597 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1598
1599 * ada-lang.c (ada_language_defn): Remove commented out code.
1600
1601 2004-07-15 Jim Blandy <jimb@redhat.com>
1602
1603 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1604 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1605
1606 2004-07-14 Jim Blandy <jimb@redhat.com>
1607
1608 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1609
1610 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1611
1612 * ppc-tdep.h (ppc_num_srs): New enum constant.
1613
1614 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1615 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1616 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1617 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1618 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1619 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1620 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1621 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1622 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1623 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1624 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1625 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1626 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1627 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1628 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1629 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1630 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1631 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1632 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1633 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1634 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1635 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1636 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1637 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1638 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1639 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1640 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1641 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1642 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1643 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1644 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1645 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1646 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1647 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1648 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1649 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1650 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1651 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1652 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1653 special-purpose register numbers.
1654
1655 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1656 manual mentions 'md_twb', but many mention 'm_twb', and at that
1657 point in the register list.)
1658
1659 2004-07-14 Andrew Cagney <cagney@gnu.org>
1660
1661 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1662 instead of "internal-error".
1663
1664 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1665
1666 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1667 that was inserted inside a comment.
1668
1669 2004-07-10 Randolph Chung <tausq@debian.org>
1670
1671 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1672 function.
1673 (hppa_hpux_push_dummy_code): New function.
1674 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1675 Set find_global_pointer method.
1676
1677 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1678
1679 * NEWS: Mention BSD libkvm interface.
1680
1681 2004-07-10 Michael Snyder <msnyder@redhat.com>
1682
1683 * symfile.c (generic_load): Comment typo.
1684 * stack.c (get_selected_block): Ditto.
1685 * regcache.c (regcache_cooked_read): Ditto.
1686 * monitor.c (monitor_debug): Ditto.
1687 * mips-tdep.c (mips_read_pc): Ditto.
1688 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1689 * gdb_mbuild.sh: Ditto.
1690 * gdbarch.sh: Ditto.
1691 * gdbarch.h: Ditto.
1692
1693 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1694
1695 * ada-tasks.c: Remove file.
1696
1697 Remove ARI problems:
1698
1699 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1700 beginning of line.
1701
1702 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1703 Add comment.
1704 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1705 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1706 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1707 (UMIN_OF_SIZE): Remove.
1708 (max_of_type): New function to replace orphan macro in gdbtypes.h
1709 (min_of_type): Ditto.
1710 (discrete_type_high_bound): Use max_of_type.
1711 (discrete_type_low_bound): Use min_of_type.
1712 (possible_user_operator_p): Move operator to beginning of line.
1713 (ada_is_variant_part): Ditto.
1714 (ensure_lval): Rewrite to avoid deprecated operations.
1715 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1716 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1717 (ada_enum_name): Remove assignments in 'if' statements.
1718 (build_ada_types): Add gdbarch parameter.
1719 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1720 with gdbarch_data_register_post_init.
1721 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1722 add_show_from_set.
1723
1724 * ada-valprint.c (inspect_it): Remove declaration.
1725 (repeat_count_threshold): Remove declaration.
1726 (ada_print_floating): Remove assignments in 'if' statements.
1727 (print_str): Move operator to beginning of line.
1728
1729 2004-07-08 Jim Blandy <jimb@redhat.com>
1730
1731 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1732
1733 2004-07-08 Bob Rossi <bob@brasko.net>
1734
1735 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1736
1737 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1738
1739 * language.h (struct_language_defn): Add new function pointer:
1740 la_class_name_from_physname. Also add new prototype for
1741 language_class_name_from_physname.
1742 * language.c (language_class_name_from_physname): New function.
1743 (unk_lang_class_name): Ditto.
1744 (unknown_language_defn, auto_language_defn): Change
1745 to add unk_lang_class_name function pointer for
1746 la_class_name_from_physname.
1747 (local_language_defn): Ditto.
1748 * dwarf2read.c (guess_structure_name): Change to call
1749 language_class_name_from_physname.
1750 (determine_class_name): Ditto.
1751 * cp-support.c (class_name_from_physname): Renamed.
1752 (cp_class_name_from_physname): New name of function.
1753 * cp-support.h: Ditto.
1754 * c-lang.c (c_language_defn): Change to add NULL
1755 for class_name_from_physname function pointer.
1756 (cplus_language_defn): Change to add cp_class_name_from_physname.
1757 * jv-lang.c (java_class_name_physname): New function.
1758 (java_find_last_component): New static routine.
1759 (java_language_defn): Add java_class_name_from_physname pointer.
1760 * ada-lang.c (ada_language_defn): Change to add NULL
1761 for class_name_from_physname function pointer.
1762 * f-lang.c (f_language_defn): Ditto.
1763 * m2-lang.c (m2_language_defn): Ditto.
1764 * objc-lang.c (objc_language_defn): Ditto.
1765 * p-lang.c (pascal_language_defn): Ditto.
1766 * scm-lang.c (scm_language_defn): Ditto.
1767
1768 2004-07-06 Andrew Cagney <cagney@gnu.org>
1769
1770 Patch from Bart Robinson.
1771 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1772 (O_LARGEFILE): Define to 0, if not defined.
1773
1774 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1775
1776 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1777 <machine/pcb.h> and "bsd-kvm.h".
1778 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1779 (m68kbsd_supply_pcb): New function.
1780 (_initialize_m68kbsd_nat): New prototype and function.
1781 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1782 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1783 (LOADLIBES): New variable.
1784 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1785 (LOADLIBES): New variable.
1786
1787 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1788
1789 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1790
1791 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1792 <sys/proc.h>.
1793 (bsd_kvm_cmdlist): New variable.
1794 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1795 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1796 command and "kvm proc" command.
1797 * Makefile.in (bsd-kvm.o): Update dependencies.
1798
1799 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1800
1801 * osabi.c: Update copyright year.
1802 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1803 notes if EI_OSABI is set to ELFOSABI_HPUX.
1804
1805 2004-07-01 Michael Snyder <msnyder@redhat.com>
1806
1807 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1808 that seems to have gotten whacked out of line.
1809
1810 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1811
1812 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1813 code.
1814
1815 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1816
1817 * ada-lang.c (decode_packed_array): Minor change to comment.
1818 (ada_value_slice_ptr): New function.
1819 (ada_value_slice): New function.
1820 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1821 test. Don't know why it is there.
1822 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1823 to avoid dereferencing huge arrays from which one is slicing.
1824 (empty_array): Correct to return an array rather than
1825 a subrange value.
1826 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1827 on empty arrays (let'em use 'FIRST instead).
1828
1829 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1830
1831 Address complaints from gdb_ari.sh:
1832
1833 * ada-exp.y: Include gdb_string.h rather than string.h.
1834 (convert_char_literal): Reformat declaration.
1835 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1836 * ada-lex.l: Change use of free to xfree (the macro would do so
1837 anyway, but this is harmless).
1838 Include gdb_string.h rather than string.h.
1839 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1840
1841 * ada-lang.c (parse): Remove K&Rism in parameter list.
1842 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1843
1844 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1845
1846 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1847 dead code.
1848
1849 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1850
1851 * alphabsd-nat.c: Update copyright year.
1852 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1853
1854 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1855
1856 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1857 (i386_cygwin_in_solib_call_trampoline): New function.
1858 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1859 and skip_trampoline_code gdbarch methods.
1860
1861 2004-06-29 Jim Blandy <jimb@redhat.com>
1862
1863 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1864 name actually used in the dependency lists.
1865
1866 2004-06-29 Randolph Chung <tausq@debian.org>
1867
1868 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1869
1870 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1871
1872 * win32-nat.c (child_pid_to_exec_file): New function.
1873 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1874 functionality.
1875
1876 2004-06-28 Andrew Cagney <cagney@gnu.org>
1877
1878 * defs.h (xstrvprintf): Declare.
1879 * utils.c (xstrvprintf): New function.
1880 (internal_vproblem, xstrprintf, xasprintf)
1881 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1882 * serial.c (serial_printf): Ditto.
1883 * complaints.c (vcomplaint): Ditto.
1884
1885 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1886
1887 * infcmd.c (attach_command): Move call to target_terminal_inferior
1888 behind loading symbol table.
1889
1890 2004-06-28 Andrew Cagney <cagney@gnu.org>
1891
1892 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1893 change - add back extern deprecated_ui_loop_hook declaration.
1894
1895 2004-06-28 Andrew Cagney <cagney@gnu.org>
1896
1897 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1898 xstrprintf.
1899 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1900 (c_value_of_variable): Ditto.
1901 * utils.c (internal_vproblem): Ditto.
1902 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1903 * remote.c (add_packet_config_cmd): Ditto.
1904 * remote-rdp.c (rdp_set_command_line): Ditto.
1905 * regcache.c (regcache_dump): Ditto.
1906 * frv-tdep.c (new_variant, new_variant): Ditto.
1907 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1908 (fbsd_find_memory_regions): Ditto.
1909 * breakpoint.c (create_thread_event_breakpoint)
1910 (create_breakpoints): Ditto.
1911 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1912 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1913
1914 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1915
1916 * ada-lang.c: Re-indent file, with some massaging to help indent
1917 a bit when the result is otherwise really too ugly.
1918
1919 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1920
1921 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1922 code_addr_p and special_addr_p to 'unsigned int'.
1923
1924 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1925
1926 * i386v4-nat.c: Update copyright year and tweak comment.
1927 (regmap): Remove trailing comma.
1928 (supply_gregset): Rename local variable i to regnum. Call
1929 regcache_raw_supply instead of supply_register.
1930 (fill_gregset): Rename argument regno to regnum. Call
1931 regcache_raw_collect instead of regcache_collect.
1932
1933 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1934
1935 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1936 and special_addr_p.
1937 (frame_id_build, frame_id_build_special): Update comments.
1938 (frame_id_build_wild): New prototype.
1939 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1940 struct frame_id fields.
1941 (frame_id_build_wild): New function.
1942 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1943
1944 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1945
1946 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1947 hppabsd-tdep.c.
1948
1949 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1950
1951 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1952
1953 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1954
1955 * ada-lang.c: Re-indent file.
1956
1957 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1958
1959 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1960 (no_symtab_msg): Likewise.
1961
1962 2004-06-27 Andreas Schwab <schwab@suse.de>
1963
1964 * source.c: Fix whitespace.
1965
1966 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1967
1968 * configure.in: Include <sys/param.h> for td_pcb test.
1969 * configure: Regenerated.
1970
1971 * i386nbsd-nat.c: New file.
1972 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1973 i386obsd-nat.c and i386obsd-tdep.c.
1974 (i386nbsd-nat.o): New dependency.
1975 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1976 bsd-kvm.o.
1977 (LOADLIBES): New variable.
1978 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1979 bsd-kvm.o.
1980 (LOADLIBES): New variable.
1981
1982 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1983 (LOADLIBES): New variable.
1984
1985 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1986 fetching from BSD_KVM_PADDR. Correctly lookup address for
1987 "_thread0".
1988
1989 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1990 "bsd-kvm.h".
1991 (amd64fbsd_supply_pcb): New funcion.
1992 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1993
1994 2004-06-27 <david@streamline-computing.com>
1995
1996 Partial fix for PR cli/1056.
1997 * valarith.c: Check for zero in division and remainder
1998 evaluation.
1999
2000 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2001
2002 * i387-tdep.c: Remove excessive whitespace.
2003
2004 2004-06-26 Andrew Cagney <cagney@gnu.org>
2005
2006 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2007 * gdb-events.h, gdb-events.c: Re-generate.
2008 * tui/tui-hooks.c (tui_install_hooks): Update.
2009 (tui_remove_hooks): Update.
2010 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2011
2012 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2013
2014 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2015 (gregset_t, fpregset_t): Remove typedefs.
2016 (REG_OFFSET): Rename argument.
2017 (amd64bsd_r_reg_offset): Rename from reg_offset.
2018 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2019 Remove functions.
2020 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2021 of reg_offset.
2022 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2023
2024 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2025
2026 * vax-tdep.c: Tweak comment.
2027
2028 Add OpenBSD/hppa support.
2029 * NEWS (New native configurations): Mention OpenBSD/hppa.
2030 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2031 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2032 files.
2033 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2034 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2035 * configure.host: Add hppa*-*-openbsd*.
2036 * configure.tgt: Add hppa*-*-openbsd*.
2037
2038 2004-06-25 Andrew Cagney <cagney@gnu.org>
2039
2040 * defs.h (deprecated_ui_loop_hook): Deprecated.
2041 * wince.c (child_wait): Update.
2042 * win32-nat.c (child_wait): Update.
2043 * v850ice.c (v850ice_wait): Update.
2044 * top.c (deprecated_ui_loop_hook): Update.
2045 * serial.h: Update.
2046 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2047 (do_unix_readchar): Update.
2048 * ser-tcp.c (net_open): Update.
2049 * remote-sim.c (gdb_os_poll_quit): Update.
2050 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2051
2052 2004-06-24 Andrew Cagney <cagney@gnu.org>
2053
2054 * defs.h (deprecated_pre_add_symbol_hook)
2055 (deprecated_post_add_symbol_hook): Deprecated.
2056 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2057 (symbol_file_add_with_addrs_or_offsets): Update references.
2058
2059 2004-06-24 Andrew Cagney <cagney@gnu.org>
2060
2061 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2062 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2063 * wince.c (ui_loop_hook): Delete extern declaration.
2064 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2065 * v850ice.c (ui_loop_hook): Delete extern declaration..
2066 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2067 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2068 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2069 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2070 ui_loop_hook declaration.
2071
2072 2004-06-24 Andrew Cagney <cagney@gnu.org>
2073
2074 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2075 entry_func_highpc fields.
2076 * objfiles.c (init_entry_point_info): Do not clear
2077 entry_func_lowpc and entry_func_highpc.
2078 (objfile_relocate): Do not relocate entry_func_lowpc and
2079 entry_func_highpc.
2080 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2081 entry_func_highpc.
2082 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2083 entry_func_highpc.
2084 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2085 entry_func_lowpc and entry_func_highpc with call to
2086 inside_entry_func.
2087
2088 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2089
2090 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2091 quad-precision floating point arguments in registers.
2092
2093 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2094
2095 From Michael Mueller <m.mueller99@kay-mueller.de>:
2096 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2097 account.
2098
2099 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2100
2101 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2102 to -1.
2103 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2104 untriggered watchpoints to a separate if clause. Update function
2105 comment regarding STOPPED_BY_WATCHPOINT argument.
2106
2107 2004-06-22 Jim Blandy <jimb@redhat.com>
2108
2109 * gdbarch.sh: Doc fix.
2110
2111 2004-06-21 Martin Hunt <hunt@redhat.com>
2112 Kevin Buettner <kevinb@redhat.com>
2113
2114 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2115 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2116 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2117 to set_gdbarch_sp_regnum(). Use cooked register number.
2118 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2119
2120 2004-06-21 Andrew Cagney <cagney@gnu.org>
2121
2122 * gdbarch.sh: When the macro field is empty, do not generate a
2123 macro definition. When the macro field is "=", generate the macro
2124 name from the upper-case function name.
2125 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2126 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2127 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2128 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2129 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2130 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2131 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2132 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2133 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2134 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2135 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2136 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2137 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2138 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2139 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2140 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2141 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2142 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2143 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2144 (DEPRECATED_USE_STRUCT_CONVENTION)
2145 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2146 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2147 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2148 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2149 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2150 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2151 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2152 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2153 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2154 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2155 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2156 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2157 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2158 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2159 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2160 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2161 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2162 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2163
2164 2004-06-21 Andrew Cagney <cagney@gnu.org>
2165
2166 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2167 macro name, and the function rather than macro value. Only wrap
2168 macro print statements in #ifdef. Move format logic to where it
2169 is needed.
2170 * gdbarch.c: Re-generate.
2171
2172 * gdbarch.sh (read): Delete "print_p" and "description", add
2173 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2174 Delete references to print_p.
2175 (TARGET_ARCHITECTURE): Delete print predicate.
2176 * gdbarch.c: Re-generate.
2177
2178 * gdbarch.sh: Check that multi-arch methods do not provide a
2179 macro.
2180 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2181 (print_registers_info, print_float_info, print_vector_info)
2182 (adjust_breakpoint_address, remote_translate_xfer_address)
2183 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2184 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2185 name from the multi-arch definition.
2186
2187 2004-06-20 Andrew Cagney <cagney@gnu.org>
2188
2189 * gdbarch.sh: Sort by the function, instead of macro name.
2190 * gdbarch.c: Re-generate.
2191
2192 2004-06-20 Andrew Cagney <cagney@gnu.org>
2193
2194 * gdbarch.sh: Use the function, instead of macro name in
2195 errors and the log file.
2196 (return_value): Remove stray ":" in spec.
2197
2198 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2199 * gdbarch.h, gdbarch.c: Re-generate.
2200 * Makefile.in (arch-utils.o): Update dependencies.
2201 * values.c (using_struct_return): Move code calling
2202 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2203 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2204 to legacy_return_value, simplify.
2205 * infcmd.c (print_return_value): Move code calling
2206 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2207 to legacy_return_value, simplify.
2208 * infcall.c (call_function_by_hand): Move code calling
2209 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2210 * arch-utils.c: Update copyright. Include "gdbcore.h".
2211 (legacy_return_value): New function.
2212 * arch-utils.h: Update copyright.
2213 (legacy_return_value): Declare.
2214
2215 2004-06-20 Andrew Cagney <cagney@gnu.org>
2216
2217 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2218 * gdbarch.h, gdbarch.c: Re-generate.
2219 * values.c (using_struct_return): Update call.
2220 * mcore-tdep.c: Update comment.
2221 * infcall.c (call_function_by_hand): Update comment.
2222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2223 * arch-utils.h (always_use_struct_convention): Update.
2224 * v850-tdep.c (v850_gdbarch_init): Update.
2225 * sh64-tdep.c (sh64_gdbarch_init): Update.
2226 * sh-tdep.c (sh_gdbarch_init): Update.
2227 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2228 * mips-tdep.c (mips_gdbarch_init): Update.
2229 * mcore-tdep.c (mcore_gdbarch_init): Update.
2230 * m32r-tdep.c (m32r_gdbarch_init): Update.
2231 * ia64-tdep.c (ia64_gdbarch_init): Update.
2232 * h8300-tdep.c (h8300_gdbarch_init): Update.
2233 * frv-tdep.c (frv_gdbarch_init): Update.
2234 * cris-tdep.c (cris_gdbarch_init): Update.
2235 * arm-tdep.c (arm_gdbarch_init): Update.
2236 * alpha-tdep.c (alpha_gdbarch_init): Update.
2237
2238 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2239
2240 * PROBLEMS: Add more specific information, and a work-around,
2241 for PR gdb/1458.
2242
2243 2004-06-18 Andrew Cagney <cagney@gnu.org>
2244
2245 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2246 * gdbarch.h, gdbarch.c: Re-generate.
2247 * ada-lang.c (ada_finish_decode_line_1): Update.
2248 * infrun.c (handle_inferior_event): Update.
2249 * infcall.c (find_function_addr): Update.
2250 * linespec.c (minsym_found): Update.
2251 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2252 Update.
2253 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2254 * cli/cli-cmds.c (disassemble_command): Update.
2255 * vax-tdep.c (vax_gdbarch_init): Update.
2256
2257 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2258
2259 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2260
2261 2004-06-17 Andrew Cagney <cagney@gnu.org>
2262
2263 GDB 6.1.1 released from the GDB 6.1 branch.
2264 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2265 * PROBLEMS: Ditto.
2266
2267 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2268
2269 PR gdb/1658
2270 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2271 operation as a uleb128. Found by Michael Coulter.
2272
2273 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2274
2275 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2276 make it non-static.
2277 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2278 to ada-lang.h; this is needed to be able to implement the kill command
2279 in multi-task mode.
2280 (task_ptid): Ditto.
2281 (task_entry): Ditto.
2282 (task_list): Ditto.
2283 (ada_build_task_list): Ditto.
2284
2285 * ada-lang.c: Conditionalize routines and data structures related
2286 to breakpoints, exceptions, completion, and symbol caching on
2287 GNAT_GDB, since these are not yet used in the submitted public sources.
2288 (ada_main_name): Editorial: Move definition out of exception-related
2289 code.
2290
2291 2004-06-15 Andrew Cagney <cagney@gnu.org>
2292
2293 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2294 deprecated_pc_in_call_dummy.
2295
2296 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2297
2298 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2299 bfd_get_section_size_before_reloc or _raw_size.
2300 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2301 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2302 (dwarf2_read_section): Likewise.
2303 * elfread.c (elf_locate_sections): Likewise.
2304 * gcore.c (derive_heap_segment): Likewise.
2305 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2306 * remote-e7000.c (e7000_load): Likewise.
2307 * remote-m32r-sdi.c (m32r_load): Likewise.
2308 * remote-mips.c (mips_load_srec): Likewise.
2309 (pmon_load_fast): Likewise.
2310 * remote.c (compare_sections_command): Likewise.
2311 * symfile.c (add_section_size_callback): Likewise.
2312 (load_section_callback): Likewise.
2313 (pc_in_unmapped_range): Likewise.
2314 (pc_in_mapped_range): Likewise.
2315 (sections_overlap): Likewise.
2316 (list_overlays_command): Likewise.
2317 (simple_overlay_update_1): Likewise.
2318 (simple_overlay_update): Likewise.
2319 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2320 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2321
2322 2004-06-14 Randolph Chung <tausq@debian.org>
2323
2324 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2325 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2326 static.
2327 (hppa_hpux_inferior_created): New function.
2328 (hppa_hpux_init_abi): Register observer.
2329 * symfile.c (hp_cxx_exception_support_initialized)
2330 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2331 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2332
2333 2004-06-14 Randolph Chung <tausq@debian.org>
2334
2335 * MAINTAINERS (Write After Approval): Alphabetize my entry
2336 correctly.
2337
2338 2004-06-14 Andrew Cagney <cagney@gnu.org>
2339
2340 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2341 testsuite maintainer.
2342
2343 2004-06-13 Andrew Cagney <cagney@gnu.org>
2344
2345 * infcmd.c (print_return_value): Fix logic, allow
2346 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2347
2348 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2349 defining any macros.
2350 * gdbarch.h: Re-generate.
2351
2352 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2353 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2354 * gdbarch.h: Re-generate.
2355
2356 * values.c (generic_use_struct_convention): Don't check gcc_p.
2357
2358 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2359 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2360 * gdbarch.h, gdbarch.c: Regenerate.
2361 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2362 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2364 deprecated_max_register_raw_size and
2365 deprecated_max_register_virtual_size.
2366 * v850-tdep.c (v850_gdbarch_init): Ditto.
2367 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2368 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2369 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2370 * cris-tdep.c (cris_gdbarch_init): Ditto.
2371
2372 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2373 * gdbarch.h, gdbarch.c: Re-generate.
2374 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2375 (m68hc11_use_struct_convention): Delete function.
2376 (m68hc11_extract_struct_value_address): Delete function.
2377 (m68hc11_return_value): New function.
2378 (m68hc11_gdbarch_init): Instead of store_return_value,
2379 extract_return_value, return_value_on_stack,
2380 deprecated_extract_struct_value_address and use_struct_convention,
2381 set return_value.
2382 * values.c (using_struct_return): Do not call
2383 RETURN_VALUE_ON_STACK.
2384 * arch-utils.h (generic_return_value_on_stack_not): Delete
2385 declaration.
2386 * arch-utils.c (generic_return_value_on_stack_not): Delete
2387 function.
2388
2389 2004-06-12 Andrew Cagney <cagney@gnu.org>
2390
2391 * values.c (register_value_being_returned): Delete function.
2392 * infcmd.c (legacy_return_value): Delete function.
2393 * infcall.c (call_function_by_hand): Inline
2394 "register_value_being_returned", simplify.
2395 * values.c (using_struct_return): Update comment, refer to
2396 print_return_value instead of register_value_being_returned.
2397 * infcmd.c (print_return_value): Inline calls to
2398 register_value_being_returned and legacy_return_value. Simplify.
2399
2400 2004-06-11 Randolph Chung <tausq@debian.org>
2401
2402 * somread.c (som_symtab_read): Exclude gcc local symbols.
2403
2404 2004-06-11 Randolph Chung <tausq@debian.org>
2405
2406 * infrun.c (handle_inferior_event): Handle the case when a
2407 trampoline ends up in the runtime resolver, and if the trampoline
2408 has no name. Rearrange the code so that all the trampoline
2409 processing happens before other step-out-of-range handling.
2410
2411 2004-06-11 Martin Hunt <hunt@redhat.com>
2412
2413 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2414 has no fpu.
2415
2416 2004-06-10 Andrew Cagney <cagney@gnu.org>
2417
2418 * blockframe.c (legacy_inside_entry_func): Delete.
2419 (legacy_frame_chain_valid): Inline call to
2420 legacy_inside_entry_func, simplify.
2421
2422 2004-06-10 Bob Rossi <bob@brasko.net>
2423
2424 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2425 * dwarf2read.c (partial_die_info): Add dirname field.
2426 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2427 (read_partial_die): Save away DW_AT_comp_dir.
2428 * defs.h (symtab_to_filename): Removed.
2429 * source.c (find_and_open_source): Added.
2430 (open_source_file): Just calls find_and_open_source.
2431 (symtab_to_filename): Removed.
2432 (symtab_to_fullname, psymtab_to_fullname): Added.
2433 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2434 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2435 symtab_to_filename.
2436 * symtab.h (partial_symtab): Add dirname field.
2437 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2438 (mi_cmd_file_list_exec_source_file): Call new function
2439 symtab_to_fullname to find fullname.
2440 (mi_cmd_file_list_exec_source_files): Added.
2441 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2442 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2443
2444 2004-06-10 Andrew Cagney <cagney@gnu.org>
2445
2446 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2447 to generic_use_struct_convention, the default value.
2448
2449 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2450 of abort.
2451
2452 * ns32k-tdep.c (ns32k_push_arguments): New function.
2453 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2454 * infcall.c (call_function_by_hand): Call error instead of
2455 legacy_push_arguments.
2456 * value.h (legacy_push_arguments): Delete declaration.
2457 * valops.c (legacy_push_arguments): Delete function.
2458 (value_push): Delete function.
2459
2460 2004-06-10 Brian Ford <ford@vss.fsi.com>
2461
2462 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2463 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2464 info.
2465 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2466
2467 2004-06-10 Andrew Cagney <cagney@gnu.org>
2468
2469 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2470 * gdbarch.h, gdbarch.c: Re-generate.
2471 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2472 parameters.
2473 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2474 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2475 deprecated_pc_in_call_dummy instead of
2476 DEPRECATED_PC_IN_CALL_DUMMY.
2477 (arm_skip_prologue): Ditto.
2478 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2479 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2480 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2481 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2482 Ditto.
2483 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2484 (sh64_init_extra_frame_info, sh64_get_saved_register)
2485 (sh64_pop_frame): Ditto.
2486 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2487 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2488 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2489 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2490 (h8300_pop_frame): Ditto.
2491 * blockframe.c (legacy_inside_entry_func)
2492 (legacy_frame_chain_valid): Ditto.
2493 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2494 to deprecated_pc_in_call_dummy.
2495
2496 2004-06-09 Andrew Cagney <cagney@gnu.org>
2497
2498 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2499 provide a default value.
2500 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2501 * gdbarch.h, gdbarch.c: Re-generate.
2502 * arch-utils.c (generic_convert_register_p): Rename
2503 legacy_convert_register_p
2504 (legacy_register_to_value, legacy_value_to_register): Delete
2505 functions.
2506 * arch-utils.h (generic_convert_register_p): Rename
2507 legacy_convert_register_p.
2508 (legacy_register_to_value, legacy_value_to_register): Delete
2509 declarations.
2510
2511 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2512 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2513 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2514 * gdbarch.h, gdbarch.c: Re-generate.
2515 * infcmd.c (default_print_registers_info): Simplify.
2516 * findvar.c (value_of_register): Simplify.
2517 * mi/mi-main.c (get_register): Simplify.
2518 * arch-utils.c (legacy_convert_register_p): Always return 0.
2519 (legacy_register_to_value, legacy_value_to_register): Always call
2520 internal_error.
2521
2522 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2523 #ifdef CLEAR_INSN_CACHE code.
2524 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2525 Delete #ifdef CLEAR_DEFERRED_STORES code.
2526
2527 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2528
2529 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2530 copyright.
2531 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2532
2533 * config/mips/mipsv4.mh: Delete file.
2534
2535 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2536 unreferenced macro.
2537 (hpread_adjust_stack_address): Delete declaration.
2538
2539 2004-06-08 Andrew Cagney <cagney@gnu.org>
2540
2541 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2542 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2543 PTRACE_ATTACH / PTRACE_DETACH available call error.
2544 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2545 * infttrace.c (update_thread_state_after_attach, attach, detach):
2546 Remove #ifdef wrappers.
2547 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2548 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2549 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2550 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2551 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2552 * config/nm-linux.h (ATTACH_DETACH): Delete.
2553 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2554 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2555 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2556 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2557 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2558
2559 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2560
2561 * configure.in: Set $configdir to the right OS specific value.
2562 Use value when setting $tcldir and $tkdir.
2563 * configure: Regenerate.
2564
2565 2004-06-06 Paul Brook <paul@codesourcery.com>
2566
2567 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2568 records.
2569
2570 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2571
2572 * ada-lang.c (lookup_symbol_in_language): New function to allow
2573 re-use of another language's symbol lookup code. (Placed here
2574 temporarily while Ada support is being integrated into the public
2575 tree).
2576 (restore_language): New auxiliary function for
2577 lookup_symbol_in_language.
2578 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2579 temporarily while Ada support is being integrated into the public
2580 tree).
2581
2582 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2583
2584 * Makefile.in (check//%): New.
2585
2586 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2587 (mn10300_store_return_value): Rewrite.
2588 (mn10300_type_align): New.
2589 (mn10300_use_struct_convention): Rewrite.
2590 (mn10300_return_value): New, using all of the above.
2591 (mn10300_pop_frame_regular): Add saved_regs_size.
2592 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2593
2594 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2595 regs if PC is on movm.
2596
2597 2004-06-07 Jim Blandy <jimb@redhat.com>
2598
2599 Add native Linux support for the PowerPC E500.
2600 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2601 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2602 all architectures except the E500.
2603 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2604 #definitions.
2605 (struct gdb_evrregset_t): New type.
2606 (have_ptrace_getsetevrregs): New variable.
2607 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2608 fetch_spe_registers): New functions.
2609 (fetch_register): Call fetch_spe_register as appropriate.
2610 Assert that we're only passed raw register numbers.
2611 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2612 Don't fetch gprs if they're pseudoregisters.
2613 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2614 store_spe_registers): New functions.
2615 (store_register): Call store_spe_register as appropriate.
2616 Assert that we're only passed raw register numbers.
2617 (store_ppc_registers): Call store_spe_registers as appropriate.
2618 Don't store gprs if they're pseudoregisters.
2619
2620 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2621
2622 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2623 struct if one exists, even if we are dealing with a zombie thread.
2624
2625 2004-06-07 Andrew Cagney <cagney@gnu.org>
2626
2627 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2628 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2629 Rename PC_REQUIRES_RUN_BEFORE_USE.
2630 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2631 #ifdef.
2632
2633 2004-06-07 Randolph Chung <tausq@debian.org>
2634
2635 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2636 unwinding after sp has been saved to the stack but before the end
2637 of the prologue, and after the fp has been modified but before it has
2638 been saved to the stack.
2639 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2640 Remove superfluous definitions.
2641 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2642
2643 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2644
2645 Committed by Randolph Chung.
2646 * hppa-linux-nat.c: Include the correct version of the header file
2647 depending on the kernel version.
2648
2649 2004-06-06 Randolph Chung <tausq@debian.org>
2650
2651 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2652 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2653
2654 2004-06-06 Randolph Chung <tausq@debian.org>
2655
2656 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2657 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2658 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2659 * hppa-tdep.c (hppa_symbol_address): New function definition.
2660 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2661
2662 2004-06-06 Randolph Chung <tausq@debian.org>
2663
2664 * hppa-tdep.h (struct value): Forward declaration.
2665 (gdbarch_tdep): Define tdep find_global_pointer method.
2666 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2667 associated with the function we are trying to call, and write it
2668 to the gp register.
2669 (hppa32_convert_from_funct_ptr_addr): New function.
2670 (hppa_find_global_pointer): New function.
2671 (hppa_gdbarch_init): Set default find_global_pointer method; set
2672 convert_from_func_ptr_addr method.
2673 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2674 (hppa_linux_init_abi): Set find_global_pointer method.
2675 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2676
2677 2004-06-06 Randolph Chung <tausq@debian.org>
2678
2679 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2680 to struct value *function.
2681 * gdbarch.c: Regenerate.
2682 * gdbarch.h: Likewise.
2683 * infcall.c (call_function_by_hand): Pass entire function value
2684 to push_dummy_call.
2685
2686 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2687 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2688 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2689 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2690 * arm-tdep.c (arm_push_dummy_call): Likewise.
2691 * avr-tdep.c (avr_push_dummy_call): Likewise.
2692 * cris-tdep.c (cris_push_dummy_call): Likewise.
2693 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2694 * frv-tdep.c (frv_push_dummy_call): Likewise.
2695 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2696 * hppa-tdep.c (hppa32_push_dummy_call)
2697 (hppa64_push_dummy_call): Likewise.
2698 * i386-tdep.c (i386_push_dummy_call): Likewise.
2699 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2700 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2701 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2702 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2703 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2704 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2705 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2706 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2707 (ppc64_sysv_abi_push_dummy_call): Likewise.
2708 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2709 (ppc64_sysv_abi_push_dummy_call): Likewise.
2710 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2711 * s390-tdep.c (s390_push_dummy_call): Likewise.
2712 * sh-tdep.c (sh_push_dummy_call_fpu)
2713 (sh_push_dummy_call_nofpu): Likewise.
2714 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2715 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2716 * vax-tdep.c (vax_push_dummy_call): Likewise.
2717
2718 2004-06-04 Jim Blandy <jimb@redhat.com>
2719
2720 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2721 gdbarch argument to register_size.
2722
2723 * rs6000-tdep.c (rs6000_store_return_value): Use
2724 regcache_cooked_write_part instead of
2725 deprecated_write_register_bytes.
2726 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2727 not gdbarch_deprecated_store_return_value.
2728
2729 * ppc-linux-nat.c (store_register, fetch_register): Remove
2730 incorrect assertions. Simplify and generalize handling of
2731 transfers whose sizes are not multiples of, or less than, sizeof
2732 (PTRACE_XFER_TYPE).
2733
2734 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2735
2736 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2737 as a new thread event.
2738 * thread-db.c (thread_get_info_callback): If the thread is a
2739 zombie, return TD_THR_ZOMBIE.
2740 (thread_from_lwp): If thread_get_info_callback returns
2741 TD_THR_ZOMBIE, check if the thread is still on the thread list
2742 and return a -1 ptid if not found.
2743 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2744 change the status to TARGET_WAITKIND_SPURIOUS.
2745
2746 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2747
2748 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2749 double values in little endian mode.
2750
2751 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2752
2753 Committed by Andrew Cagney.
2754 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2755 after last enum constant to avoid error from IBM C
2756 compiler.
2757
2758 2004-06-02 Jim Blandy <jimb@redhat.com>
2759
2760 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2761 to 'message', and make it local to the lone block that uses it.
2762
2763 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2764
2765 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2766
2767 * ada-exp.y: Update copyright notice.
2768 Include block.h.
2769
2770 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2771 SPECIAL_VARIABLE and unify the treatment of these cases.
2772
2773 (write_attribute_call0): Remove.
2774 (write_attribute_call1): Remove.
2775 (write_attribute_calln): Remove.
2776 (save_qualifier): Add missing semicolon.
2777
2778 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2779 temporarily disabled to allow compilation with FSF head version.
2780
2781 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2782 use individual operators (OP_*) for all attributes.
2783 (exp syntax): Use write_int.
2784 Handle STRING literals with OP_STRING.
2785 (variable syntax): Add limit parameter to calls to
2786 write_object_renaming.
2787
2788 (temp_parse_space): New definition to hold entities that need
2789 only live until the next call to ada_parse.
2790 (string_to_operator): Rename fields of ada_opname_table entries.
2791
2792 (write_var_from_sym): Record block.
2793 (write_var_from_name): Minor reformatting.
2794 Make sure saved name is properly encoded in the case of multiple
2795 matches, and set its language to Ada.
2796 Update comment.
2797 Modify to indicate unresolved name as symbol in the UNRESOLVED
2798 namespace, allocated in temp_parse_space.
2799 (write_int): New function.
2800
2801 (write_object_renaming): Add max_depth parameter to limit
2802 chains of object renamings.
2803 Handle case where root of renaming expression is itself a renaming.
2804 Use temp_parse_space for temporary name buffer.
2805 Handle renamings to dereferenced pointers (___XEXA suffices).
2806
2807 (ada_parse, yyerror, string_to_operator,
2808 write_var_from_sym, write_var_from_name, write_attribute_call0,
2809 write_attribute_call1, write_attribute_calln,
2810 write_object_renaming): Protoize.
2811
2812 (_initialize_ada_exp): New function.
2813
2814 * ada-lang.c: Update copyright notice.
2815 General terminology change to conform to GNAT compiler usage:
2816 mangle => encode, demangle => decode
2817 Include gdb_obstack.h.
2818 Include gdb_regex.h
2819 Include frame.h
2820 Include hashtab.h
2821 Include completer.h
2822 Include gdb_stat.h
2823 Include block.h
2824 Include infcall.h
2825
2826 (ADA_RETAIN_DOTS): Make sure this is defined.
2827 (TRUNCATION_TOWARDS_ZERO): Define.
2828 (struct string_vector): Define.
2829 (unresolved_names): Remove definition.
2830 (xnew_string_vector): New function.
2831 (string_vector_append): New function.
2832 (extract_string): Make static.
2833 (ada_unqualified_name): New function.
2834 (add_angle_brackets): New function.
2835 (function_name_from_pc): New function.
2836 (place_on_stack): Rename to ensure_lval.
2837
2838 (ensure_lval): Renamed from place_on_stack.
2839 Make identity on lvals.
2840 Update comment.
2841 (is_nonfunction): New interface.
2842 Only symbols in LOC_CONST class can be enumerals.
2843 (fill_in_ada_prototype): Remove; now independent of language.
2844 (add_defn_to_vec): Add obstack and symtab arguments.
2845 Use obstack to hold collected definitions.
2846 (num_defns_collected): New function.
2847 (defns_collected): New function.
2848 (ada_resolve_subexp): Rename to resolve_subexp.
2849 (resolve_subexp): Renamed from ada_resolve_subexp.
2850 (ada_op_name): Return non-const result.
2851 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2852 other purposes.
2853
2854 (to_fixed_array_type): Add declaration.
2855 (coerce_unspec_val_to_type): Remove offset parameter.
2856 (find_sal_from_funcs_and_line): New interface.
2857 (find_line_in_linetable): Ditto.
2858
2859 (all_sals_for_line): Rename to ada_sals_for_line and make
2860 global.
2861 Add new parameter. When set, do not ask the user to choose the
2862 instance, but use the first one found instead.
2863 Use given line number in returned sals.
2864 Fix comment.
2865 Skip the prologue if funfirstline is set.
2866 Correct for memory leak when 0 lines found.
2867
2868 (value_pos_atr): Use pos_atr.
2869 (pos_atr): New function.
2870 (standard_lookup): Add block parameter.
2871
2872 (makeTimeStart): Remove declaration and uses.
2873 (makeTimeStop): Remove declaration and uses.
2874
2875 (ada_completer_word_break_characters): Allow for VMS.
2876 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2877 (raise_sym_name): New constant.
2878 (raise_unhandled_sym_name): New constant.
2879 (raise_assert_sym_name): New constant.
2880 (process_raise_exception_name): New constant.
2881 (longest_exception_template): New constant.
2882 (warning_limit): New variable to limit warnings during expression
2883 evaluation.
2884 (warnings_issued): New variable to keep track of warnings issued.
2885 (known_runtime_file_name_patterns): New constant.
2886 (known_auxiliary_function_name_patterns): New constant.
2887 (symbol_list_obstack): New variable.
2888
2889 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2890 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2891 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2892 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2893 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2894 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2895 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2896 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2897 and strcmp.
2898
2899 (ada_get_field_index): New function.
2900 (lim_warning): New function.
2901 (ada_translate_error_message): New function.
2902 (MAX_OF_SIZE): New function.
2903 (MIN_OF_SIZE): New function.
2904 (UMAX_OF_SIZE): New function.
2905 (UMIN_OF_SIZE): New function.
2906 (discrete_type_high_bound): New function.
2907 (discrete_type_low_bound): New function.
2908 (base_type): New function.
2909 (do_command): Remove.
2910
2911 (ada_update_initial_language): Use language_ada, not language_unknown.
2912 (ada_encode): Renamed from ada_mangle.
2913 Obey ADA_RETAIN_DOTS.
2914 (ada_decode): Renamed from ada_demangle.
2915 Update coding conventions.
2916 (decoded_names_store): New hash table.
2917 (ada_decode_symbol): New function.
2918 (ada_la_decode): New function.
2919
2920 (modify_general_field): Correct computations of offset and bit
2921 position.
2922 (desc_base_type): Handle ref types, too.
2923 (ada_is_direct_array_type): New function.
2924
2925 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2926 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2927 (ada_is_bogus_array_descriptor,ada_type_of_array,
2928 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2929 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2930 ada_is_array_descriptor_type.
2931
2932 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2933 (ada_is_packed_array_type): Handle pointers or
2934 references to packed arrays as well.
2935 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2936 (decode_packed_array_type): Search for the packed array type
2937 symbol in the currently selected block and associated
2938 superblocks too.
2939 Use lookup_symbol again.
2940
2941 (decode_packed_array): Handle pointers and references.
2942 Update call to coerce_unspec_val_to_type.
2943 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2944 (ada_value_primitive_packed_val): Improve comment.
2945
2946 (ada_index_type): Substitute int type for "undefined".
2947 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2948 ada_array_langth, ada_is_string_type): Use renamed
2949 ada_is_simple_array_type.
2950 (empty_array): New function.
2951
2952 (ada_resolve): Rename to resolve.
2953 (resolve): Make static.
2954 Call renamed resolve_subexp.
2955 Update comment.
2956 (ada_resolve_subexp): Rename to resolve_subexp.
2957 (resolve_subexp): Update comment.
2958 Decomment disabled code.
2959 Add LOC_COMPUTED* cases.
2960 Modify to use temporary struct symbols (marked as being in
2961 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2962 OP_UNRESOLVED_VALUE.
2963 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2964 Add OP_STRING case.
2965 Remove OP_ARRAY.
2966 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2967 Use new ada_lookup_symbol_list interface.
2968 Use new ada_resolve_function interface.
2969 Remove OP_TYPE case.
2970
2971 (ada_args_match): Idiot proof against null actuals.
2972 Use intermediate variables to clarify.
2973 (ada_resolve_function): Update comment and interface.
2974 (mangled_ordered_before): Rename to encoded_ordered_before and
2975 update comment.
2976 (sort_choices): Update comment and interface.
2977 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2978 (user_select_syms): New interface.
2979 Use new sort_choices interface.
2980 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2981 (possible_user_operator_p): Idiot-proof against null values.
2982 (ada_simple_renamed_entity): Don't make cleanup; rely on
2983 caller to free result string.
2984 Remove const from return type.
2985 (make_array_descriptor): Rename uses of place_on_stack to
2986 ensure_lval.
2987 Make sure that arrays are on stack.
2988
2989 (HASH_SIZE): Define.
2990 (struct cache_entry): Define.
2991 (cache_space): Define.
2992 (cache): Define.
2993 (clear_ada_sym_cache): New function.
2994 (find_entry): New function.
2995 (lookup_cached_symbol): New function.
2996 (defn_vector_size): Define.
2997 (cache_symbol): New function.
2998 (defn_symbols): Remove.
2999
3000 (standard_lookup): Use lookup_symbol_in_language to get effect of
3001 C lookup.
3002 Cache results.
3003
3004 (symbol_completion_match): New function.
3005 (symbol_completion_add): New function.
3006 (ada_make_symbol_completion_list): New function.
3007
3008 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3009 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3010 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3011 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3012
3013 (ada_lookup_simple_minsym): New function.
3014 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3015
3016 (add_symbols_from_enclosing_procs): New interface.
3017 Conditionalize more helpfully.
3018 Don't bother if program isn't running.
3019 Use new interface to get_frame_block.
3020 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3021
3022 (remove_extra_symbols): New interface.
3023 (xget_renaming_scope): New function.
3024 (is_package_name): New function.
3025 (renaming_is_visible): New function.
3026 (remove_out_of_scope_renamings): New function.
3027
3028 (ada_lookup_symbol_list): New interface.
3029 Properly reinitialize the symbol list obstack.
3030 Don't call add_symbols_from_enclosing_procs if we start from a
3031 static or global block.
3032 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3033 add_symbols_from_enclosing_procs.
3034 Add symtab data to cached entries.
3035 Handle symbols prefixed with
3036 "standard__" specially; strip prefix and don't look in local symbols.
3037 Do not include out of scope renaming symbols in list of
3038 symbols returned.
3039 Add const to block parameter.
3040 Move check for non-local, non-global symbols earlier.
3041 Remove timing stuff.
3042 (ada_lookup_symbol): New interface.
3043 Find symtab as well.
3044 (ada_lookup_symbol_nonlocal): New function.
3045
3046 (is_name_suffix): Enhance suffix detection to recognize
3047 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3048 (is_dot_digits_suffix): New function.
3049 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3050
3051 (ada_add_block_symbols): New interface. Use obstack to return results
3052 in a vector of struct ada_symbol_infos. Add symtab argument.
3053 Use new interface to add_defn_to_vec.
3054 Remove calls to fill_in_ada_prototype.
3055 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3056
3057 (ada_finish_decode_line_1): Add const qualification to local to fix
3058 warning.
3059 Start looking in static block for functions to avoid attempts
3060 to search frame chain for up-level variables.
3061 Adapt to new ada_sals_for_line interface.
3062 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3063 Handle quoting of the function name inside the spec string.
3064 Skip prologue when funfirstline is set and update the
3065 function documentation to that effect.
3066
3067 (debug_print_lines, debug_print_block, debug_print_blocks,
3068 debug_print_symtab): Remove.
3069
3070 (ada_main_name): New function.
3071 (ada_exception_breakpoint_type): New function.
3072 (is_known_support_routine): New function.
3073 (ada_find_printable_frame): Renamed from find_printable_frame and made
3074 global.
3075 Remove level parameter.
3076 Use new interface to select_frame.
3077
3078 (begin_command): Remove.
3079 (ada_adjust_exception_stop): New function.
3080 (ada_print_exception_stop): New function.
3081 (exception_name_from_cond): New function.
3082 (ada_report_exception_break): Replace disabled code with
3083 conditionalization on GNAT_GDB.
3084 Get the exception name from the condition string.
3085 Remove and move functionality into new functions
3086 ada_print_exception_breakpoint_task and
3087 ada_print_exception_breakpoint_nontask.
3088 (error_breakpoint_runtime_sym_not_found): New function.
3089 (is_runtime_sym_defined): New function.
3090 (ada_breakpoint_rewrite): Uncomment suppressed code.
3091 Use symbolic error-message and runtime-symbol names.
3092 Surround runtime symbol names in quotes.
3093 Allow non-specific breakpoints on exceptions and assertions before
3094 program starts.
3095
3096 (ada_is_tagged_type): Add parameter.
3097 (ada_is_tag_type): New function.
3098 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3099 (ada_variant_discrim_type): Ditto.
3100 (value_tag_from_contents_and_address): New function.
3101 (type_from_tag): New function.
3102 (struct tag_args): New structure used to communicate with
3103 ada_tag_name_1.
3104 (ada_tag_name_1): New function.
3105 (ada_tag_name): New function.
3106
3107 (ada_scan_number): Update comment.
3108 (find_struct_field): New function.
3109 (ada_search_struct_field): Make static.
3110 (ada_value_struct_elt): New version that returns references when
3111 given pointers or references to structs.
3112 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3113 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3114 interface.
3115 (ada_value_ind): Use new ada_to_fixed_value interface.
3116 (ada_coerce_ref): Ditto.
3117 (field_offset): Remove.
3118
3119 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3120 (ada_find_renaming_symbol): New function.
3121 (ada_prefer_type): Prefer named types over unnamed ones.
3122 (variant_field_index): New function.
3123 (contains_variant_part): Removed: subsumed by variant_field_index.
3124 (ada_template_to_fixed_record_type): New function, mostly from
3125 template_to_fixed_record_type.
3126 (template_to_fixed_record_type):
3127 Do not scan the type fields beyond the last one; prevents a
3128 potential SEGV.
3129 Handle case where variant field is listed BEFORE discriminant it
3130 depends on.
3131 Fix calculation of record length when bit length is
3132 not evenly divisible by char length.
3133 Move code to ada_template_to_fixed_record_type and call it.
3134
3135 (template_to_static_fixed_type): Revise comment.
3136 Modify to work on ordinary record types as well as templates,
3137 so as to handle fields that use ___XVE or ___XVU encodings.
3138 (to_record_with_fixed_variant_part): Fill out comment.
3139 Initialize C++ stuff in right type.
3140 Allow case where DVAL is null.
3141 Handle case where variant field is not last.
3142 Fix typo concerning record length.
3143 (to_fixed_record_type): Decomment disabled code.
3144 (to_fixed_record_type): Use variant_field_index instead of
3145 contains_variant_part.
3146 (to_fixed_variant_branch_type): Ditto.
3147 (to_fixed_array_type): Decomment disabled code.
3148 (ada_to_fixed_type): Convert tagged types to the specific type.
3149 Deactivate the size-check for array types in order to avoid
3150 some false size alarms.
3151 (to_static_fixed_type): Decomment disabled code.
3152 Modify to call template_to_static_fixed_type
3153 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3154 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3155 Remove valaddr argument, as it is never really used.
3156 (ada_to_fixed_value): Change interface to act on single struct value*
3157 operand.
3158 (adjust_pc_past_prologue): New function.
3159 (ada_attribute_name): Modify to take enum exp_opcode argument.
3160
3161 (ada_enum_name): Recognize new homonym-distinguishing convention.
3162 Adjust local variable's type to remove compiler warning.
3163 Fix a small problem in the part that unqualifies the enumeration name.
3164 (ada_value_binop): New function.
3165 (ada_value_equal): New function.
3166
3167 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3168 Don't give error message when not doing normal evaluation
3169 and a tagged type doesn't seem to contain a structure member.
3170 Give error message for packed arrays.
3171 For indexing arrays, handle pointers to packed arrays correctly.
3172 Handle case of 'first and 'last attributes of bare integral type
3173 without encoded subtype info.
3174 Remove some unnecessary casts.
3175 Fix uninitialized value of type in computing 'first, 'last, or 'length
3176 of array object.
3177 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3178 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3179 calls.
3180 Attributes are now exp_opcode values.
3181 Correct treatment of 'modulus.
3182 Better error message for taking 'length of wrong kind of type;
3183 improve comment.
3184 Change EVAL_NORMAL to noside for consistency.
3185 Use ada_value_binop for DIV, MOD, REM.
3186 Make special case out of array of length 0, since an argument
3187 of 0 upsets some platforms' malloc.
3188 Use OP_STRING instead of OP_ARRAY.
3189 For slice, add check that we have an array type before extracting
3190 a slice out of it. Avoids a SEGV.
3191 When evaluating an array slice, if the array type is a reference to
3192 an aligner type, then replace the aligner type by the actual type.
3193 Decomment disabled code.
3194 Remove some dead code.
3195 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3196 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3197 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3198 and UNOP_MBR to UNOP_IN_RANGE.
3199 If an array type has a parallel ___XVE type, then use it.
3200 Turn arrays into pointers for lvalue arrays.
3201 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3202 bounds error and handle 0-length slices.
3203 Use lim_warning.
3204 When selecting fields, apply ada_to_fixed_value (because the fields
3205 might have ___XVU or ___XVE encodings even if not dynamic.)
3206 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3207 (ada_is_system_address_type): New function.
3208
3209 (get_var_value): Use new interface to ada_lookup_symbol_list.
3210 (get_int_var_value): New interface.
3211 (to_fixed_range_type): Allow unknown bound, with warning.
3212 (ada_is_modular_type): Decomment disabled code.
3213 (ADA_OPERATORS): New definition.
3214 (ada_operator_length): New function.
3215 (ada_expr_op_name): New function.
3216 (ada_forward_operator_length): New function.
3217 (ada_dump_subexp_body): New function.
3218 (ada_print_subexp): New function.
3219 (ada_exp_descriptor): New constant.
3220 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3221 (ada_language_defn): Add ada_exp_descriptor entry.
3222 Change ada_parse => parse.
3223 Add post-parser entry.
3224 Use ada-specific non-local symbol lookup.
3225 Don't use C-style arrays.
3226 String lower-bound is 1.
3227 Decomment disabled code.
3228 (parse): New function.
3229 New fields ada_translate_error_message, ada_lookup_symbol,
3230 ada_lookup_minimal_symbol.
3231
3232 * ada-lang.h: Update copyright dates.
3233 Replace the mangle/demangle terminology throughout by the
3234 more appropriate encode/decode one.
3235 Include breakpoint.h.
3236 Forward declare struct partial_symbol, struct block.
3237 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3238 (EXTRACT_ADDRESS): Remove.
3239 (EXTRACT_INT): Remove.
3240 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3241 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3242 (MAX_RENAMING_CHAIN_LENGTH): Define.
3243 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3244
3245 (enum task_states): Remove.
3246 ada_task_states: Remove.
3247 (fat_string): Remove.
3248 (struct entry_call): Remove.
3249 (struct task_fields): Remove.
3250 (struct task_entry): Remove.
3251
3252 (struct ada_symbol_info): Define.
3253 (enum ada_attribute): Remove.
3254 (enum ada_operator): Define.
3255
3256 (ada_get_field_index): Declare.
3257 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3258 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3259 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3260 (ada_lookup_symbol_list): New interface.
3261 (ada_decode_symbol): Declare.
3262 (ada_decode): Declare.
3263 (ada_lookup_symbol): New interface.
3264 (ada_update_initial_language): Declare.
3265 (ada_lookup_simple_minsym): Declare.
3266 (user_select_syms): New interface.
3267 (ada_sals_for_line): Declare.
3268 (ada_is_tagged_type): New interface.
3269 (ada_tag_name): Declare.
3270 (ada_lookup_struct_elt_type): Remove declaration.
3271 (ada_search_struct_field): Remove declaration.
3272 (ada_attribute_name): New interface.
3273 (ada_is_system_address_type): Declare.
3274 (ada_to_fixed_value): Remove declaration.
3275 (ada_template_to_fixed_record_type_1): Declare.
3276 (get_int_var_value): New interface.
3277 (ada_find_any_symbol): Declare.
3278 (ada_find_renaming_symbol): Declare.
3279 (ada_mangle): Rename to ada_encode.
3280 (ada_simple_renamed_entity): Remove const.
3281 (ada_main_name): Declare.
3282 (get_current_task): Rename to ada_get_current_task.
3283 (get_entry_number): Remove declaration.
3284 (ada_report_exception_break): Remove declaration.
3285 (ada_print_exception_breakpoint_nontask): Declare.
3286 (ada_print_exception_breakpoint_task): Declare.
3287 (ada_find_printable_frame): Declare.
3288
3289 * ada-lex.l: Update copyright notices.
3290 Use xmalloc and xfree instead of malloc and free.
3291 Use new interface to name_lookup.
3292 Use new interface to
3293 ada_mangle=>ada_encode.
3294 Redo handling of '$...' variable to parallel current treatment
3295 in c-exp.y.
3296 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3297 digit_to_int, strtoulst, processInt, processReal, processId,
3298 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3299 yywrap): Protoize.
3300
3301 (processInt): Use cast to remove harmless warning.
3302 (processReal): Modify to get rid of compiler warning on scan formats.
3303
3304 (processId): Replace xmalloc with obstack_alloc for name and remove
3305 call to ada_name_string_cleanup.
3306 Remove obsolete disabled code.
3307 (name_lookup): Ditto.
3308 New interface.
3309 Use obsavestring on temp_parse_space instead of savestring
3310 on name, and remove call to ada_name_string_cleanup.
3311 Free string returned from ada_simple_renamed_entity.
3312 Use new interface to ada_lookup_symbol_list.
3313 Decomment disabled code.
3314 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3315 not types.
3316 When a type name lookup succeeds as a result of
3317 lookup_primitive_typename, check for regular type entry that has not
3318 yet been read in.
3319 Limit length of chain of renamed symbols we are willing to follow.
3320 Do not break names beginning with "standard__" into segments.
3321 (block_lookup): Use new interface to ada_lookup_symbol_list.
3322
3323 * ada-typeprint.c: Update copyright notice.
3324 (demangled_type_name): Rename to decoded_type_name.
3325 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3326 (print_range_bound): Correct handling of negative
3327 bounds that make the index type looked unsigned under STABS.
3328 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3329 (print_range_type_named): Use the builtin int type if no type
3330 corresponding to the given type name could be found.
3331 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3332 Add some bullet-proofing.
3333 (print_variant_clauses): Allow for variant branches with ___XVU
3334 encodings that are not dynamic fields.
3335 Use new interface to ada_is_tagged_type.
3336 (print_record_type): Allow for fields with ___XVE encodings that
3337 are not dynamic fields.
3338 Use new interface to ada_is_tagged_type.
3339 (ada_print_type): ada_is_array_descriptor =>
3340 ada_is_array_descriptor_type.
3341
3342 * ada-valprint.c: Update copyright notice.
3343 Include gdb_string.h
3344 Include infcall.h
3345 (ui_memcpy): New function.
3346 (ada_print_floating): New function.
3347 (ada_print_str): Order arguments correctly.
3348 Correct handling of empty arrays and arrays of 0-length items.
3349 ada_is_array_descriptor => ada_is_array_descriptor_type
3350 Print values of type System.Address in hexadecimal format.
3351 Use ada_print_floating to print floating-point numbers in Ada format.
3352 Print class tag values with type names.
3353 No longer print the address of reference values. Avoids
3354 a potential confusion.
3355 (ada_value_print): Stop printing the object type for reference
3356 values, but preserve that behavior for access types. Avoids
3357 a potential confusion.
3358 Simplify one conditional expression, as the first part is now
3359 necessarily true.
3360 ada_is_array_descriptor => ada_is_array_descriptor_type
3361 Add check for arrays for null records, and print them by hand.
3362
3363 2004-06-01 Jim Blandy <jimb@redhat.com>
3364
3365 * ppc-tdep.h: Delete unused 'regoff' member.
3366 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3367
3368 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3369
3370 Fix PR symtab/1661.
3371 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3372 (hpread_read_struct_type): Likewise.
3373
3374 2004-06-01 Andrew Cagney <cagney@gnu.org>
3375
3376 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3377 instead of xasprintf.
3378 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3379 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3380 (mi_cmd_data_list_register_names)
3381 (mi_cmd_data_list_changed_registers)
3382 (mi_cmd_data_list_register_values)
3383 (get_register, mi_cmd_data_write_register_values)
3384 (mi_cmd_data_write_register_values)
3385 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3386 (mi_cmd_target_download, mi_cmd_target_select)
3387 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3388 (mi_execute_cli_command, mi_execute_async_cli_command)
3389 (mi_execute_async_cli_command): Ditto.
3390 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3391 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3392
3393 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3394 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3395 error_last_message instead of mi_error_last_message.
3396 * mi/mi-main.c (mi_error_last_message): Delete function.
3397
3398 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3399 "invalid number of columns" error. Delete redundant "out of
3400 memory" check.
3401
3402 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3403
3404 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3405 (gregset_t, fpregset_t): Remove typedefs.
3406 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3407 (REG_OFFSET): Rename argument.
3408 (i386bsd_r_reg_offset): Rename from reg_offset.
3409 (REG_ADDR): Remove macro.
3410 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3411 functions.
3412 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3413 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3414 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3415 instead of supply_gregset.
3416 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3417 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3418 instead of fill_gregset.
3419 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3420
3421 * i386bsd-nat.c: Don't include "gregset.h".
3422 (supply_gregset, fill_gregset): Make static.
3423 (supply_fpregset, fill_fpregset): Remove.
3424 * Makefile.in (i386bsd-nat.o): Update dependencies.
3425
3426 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3427
3428 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3429 "gdb_assert.h". Con't include "gregset.h".
3430 (fbsd_make_corefile_notes): Use regset-based core file support
3431 instead off fill_gregset and fill_fpregset.
3432 * Makefile.in (fbsd-proc.o): Update dependencies.
3433
3434 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3435 instructions.
3436 (m88k_frame_prev_register): Simplify code a bit.
3437
3438 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3439 (amd64_collect_fpregset): New function.
3440 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3441
3442 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3443
3444 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3445 (i386_collect_gregset): New function.
3446 (i386_supply_fpregset): Adjust comment.
3447 (i386_collect_fpregset): New function.
3448 (i386_regset_from_core_section): Use i386_collect_gregset and
3449 i386_collect_fpregset.
3450
3451 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3452 handle VALUEP being null.
3453
3454 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3455
3456 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3457
3458 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3459
3460 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3461 assembler in OpenBSD 3.5-current.
3462 (amd64obsd_sigcontext_addr): Likewise.
3463
3464 2004-05-28 Jim Blandy <jimb@redhat.com>
3465
3466 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3467 register set, so our regcache isn't declared "legacy" and our E500
3468 pseudoregister read and write functions aren't ignored.
3469 (rs6000_register_byte, rs6000_register_raw_size,
3470 rs6000_register_virtual_type, rs6000_register_convertible,
3471 rs6000_register_convert_to_virtual,
3472 rs6000_register_convert_to_raw): Deleted.
3473 (rs6000_register_type, rs6000_convert_register_p,
3474 rs6000_register_to_value, rs6000_value_to_register): New
3475 functions.
3476 (rs6000_gdbarch_init): Don't register
3477 gdbarch_deprecated_register_size,
3478 gdbarch_deprecated_register_bytes,
3479 gdbarch_deprecated_register_byte,
3480 gdbarch_deprecated_register_raw_size,
3481 gdbarch_deprecated_register_virtual_type,
3482 gdbarch_deprecated_register_convertible,
3483 gdbarch_deprecated_register_convert_to_virtual, or
3484 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3485 register gdbarch_register_type, gdbarch_convert_register_p,
3486 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3487
3488 2004-05-26 Jim Blandy <jimb@redhat.com>
3489
3490 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3491 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3492 functions, updated to match the register numberings used in GCC.
3493 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3494 rs6000_dwarf2_reg_to_regnum as register number conversions
3495 functions for STABS and Dwarf2.
3496
3497 2004-05-26 Randolph Chung <tausq@debian.org>
3498
3499 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3500 in header file.
3501
3502 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3503
3504 * NEWS: Document new "start" command.
3505
3506 2004-05-25 Randolph Chung <tausq@debian.org>
3507
3508 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3509 hppa-linux.
3510
3511 2004-05-25 Randolph Chung <tausq@debian.org>
3512
3513 * hppa-hpux-tdep.c (offsetof): Define.
3514 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3515 (hppa32_hpux_frame_base_before_sigtramp)
3516 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3517 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3518 (hppa64_hpux_frame_base_before_sigtramp)
3519 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3520 functions.
3521 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3522 (hppa_hpux_sigtramp_frame_unwind_cache)
3523 (hppa_hpux_sigtramp_frame_this_id)
3524 (hppa_hpux_sigtramp_frame_prev_register)
3525 (hppa_hpux_sigtramp_frame_unwind)
3526 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3527 (hppa_hpux_init_abi): Register sigtramp unwinder.
3528 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3529
3530 2004-05-25 Randolph Chung <tausq@debian.org>
3531
3532 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3533 and multiple stack unwinds.
3534 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3535
3536 2004-05-25 Andrew Cagney <cagney@gnu.org>
3537
3538 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3539 * symfile-mem.h: Delete file.
3540 * symfile-mem.c: Do not include "symfile-mem.h".
3541 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3542 "struct bfd_section". When an error do not bother returning NULL.
3543 (add_symbol_file_from_memory_command): Use "struct bfd" and
3544 "struct bfd_section".
3545 * Makefile.in (symfile_mem_h): Delete.
3546 (symfile-mem.o): Update dependencies.
3547
3548 2004-05-25 Nick Roberts <nickrob@gnu.org>
3549
3550 * gdb-mi.el: New file.
3551
3552 2004-05-25 Andrew Cagney <cagney@gnu.org>
3553
3554 * inftarg.c: Include "observer.h".
3555 (child_attach, child_create_inferior): Notify inferior_created.
3556 * corelow.c: Include "observer.h".
3557 (core_open): Notify inferior_created.
3558 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3559
3560 2004-05-25 Andrew Cagney <cagney@gnu.org>
3561
3562 * target.h (struct target_ops): Add from_tty to
3563 to_create_inferior.
3564 (target_create_inferior, find_default_create_inferior): Update.
3565 * infcmd.c (run_command): Update.
3566 * wince.c (child_create_inferior): Update.
3567 * win32-nat.c (child_create_inferior): Update.
3568 * uw-thread.c (uw_thread_create_inferior): Update.
3569 * thread-db.c (thread_db_create_inferior): Update.
3570 * target.c (debug_to_create_inferior)
3571 (find_default_create_inferior): Update.
3572 (maybe_kill_then_create_inferior): Update.
3573 * sol-thread.c (sol_thread_create_inferior): Update.
3574 * remote.c (extended_remote_async_create_inferior)
3575 (extended_remote_create_inferior): Update.
3576 * remote-vx.c (vx_create_inferior): Update.
3577 * remote-st.c (st2000_create_inferior): Update.
3578 * remote-sim.c (gdbsim_create_inferior): Update.
3579 * remote-sds.c (sds_create_inferior): Update.
3580 * remote-rdp.c (remote_rdp_create_inferior): Update.
3581 * remote-rdi.c (arm_rdi_create_inferior): Update.
3582 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3583 * remote-e7000.c (e7000_create_inferior): Update.
3584 * procfs.c (procfs_create_inferior): Update.
3585 * ocd.c (ocd_create_inferior): Update.
3586 * ocd.h (ocd_create_inferior): Update.
3587 * nto-procfs.c (procfs_create_inferior): Update.
3588 * monitor.c (monitor_create_inferior): Update.
3589 * lin-lwp.c (lin_lwp_create_inferior): Update.
3590 * inftarg.c (child_create_inferior): Update.
3591 * hpux-thread.c (hpux_thread_create_inferior): Update.
3592 * gnu-nat.c (gnu_create_inferior): Update.
3593
3594 2004-05-25 Andrew Cagney <cagney@gnu.com>
3595
3596 * MAINTAINERS: Update e-mail address.
3597
3598 2004-05-24 Randolph Chung <tausq@debian.org>
3599
3600 * thread.c (info_threads_command, thread_apply_all_command)
3601 (thread_apply_command, thread_command, do_captured_thread_select):
3602 Remove HPUXHPPA-specific code.
3603
3604 2004-05-24 Randolph Chung <tausq@debian.org>
3605
3606 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3607 unused symbols.
3608 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3609 references.
3610
3611 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3612
3613 * infcmd.c (kill_if_already_running): New function, extracted
3614 from run_command().
3615 (run_command): Replace extracted code by call to
3616 kill_if_already_running().
3617 (start_command): New function.
3618 (_initialize_infcmd): Add "start" command.
3619
3620 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3621
3622 Add OpenBSD/m88k support.
3623 * NEWS (New native configurations): Mention OpenBSD/m88k.
3624 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3625 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3626 * Makefile.in (m88k_tdep_h): New variable.
3627 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3628 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3629 * configure.host: Add m88*-*-openbsd*.
3630 * configure.tgt: Add m88*-*-openbsd*.
3631
3632 2004-05-24 Jim Blandy <jimb@redhat.com>
3633
3634 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3635 to approve changes.
3636
3637 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3638
3639 * symtab.c (fixup_section): Search section table when lookup by
3640 name fails.
3641
3642 2004-05-24 Randolph Chung <tausq@debian.org>
3643
3644 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3645 be "small_struct".
3646
3647 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3648
3649 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3650 register number in regcache_raw_collect call.
3651 (m68kbsd_collect_fpregset): Likewise.
3652 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3653
3654 * regset.h (struct regset): Add back `regset' member.
3655
3656 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3657
3658 * configure.in: Check for td_pcb in `struct thread'.
3659 * configure, config.in: Regenerated.
3660
3661 * dpx2-nat.c: Remove file.
3662 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3663 (dpx2-nat.o): Remove dependencies.
3664
3665 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3666 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3667 (amd64obsd_supply_pcb): New function.
3668 (_initialize_amd64obsd_nat): Enable libkvm interface.
3669 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3670 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3671 (LOADLIBES): New variable.
3672
3673 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3674 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3675 (sparc32nbsd_supply_pcb): New function.
3676 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3677 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3678 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3679 (LOADLIBES): New variable.
3680
3681 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3682
3683 * bsd-kvm.c, bsd-kvm.h: New files.
3684 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3685 "bsd-kvm.h".
3686 (i386fbsd_supply_pcb): New function.
3687 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3688 (i386fbsd-nat.o): Update dependencies.
3689 (bsd_kvm_h): New variable.
3690 (bsd-kvm.o): New dependency.
3691 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3692 (LOADLIBES): New variable.
3693
3694 * regset.c: Tweak comment.
3695 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3696 macro.
3697 * regset.h: Update copyright year.
3698 (struct regset): Remove `descr' member, add `gdbarch' member.
3699 (regset_alloc): Adjust prototype and comment.
3700 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3701 (i386_supply_fpregset): Likewise.
3702 (i386_regset_from_core_section): Update call to regset_alloc.
3703 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3704 REGSET->arch.
3705 (i386obsd_aout_regset_from_core_section): Update call to
3706 regset_alloc.
3707 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3708 REGSET->arch.
3709 (i386nbsd_aout_regset_from_core_section): Update call to
3710 regset_alloc.
3711 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3712 REGSET->arch.
3713 (amd64_regset_from_core_section): Update call to regset_alloc.
3714 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3715 REGSET->arch.
3716 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3717 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3718 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3719 (sparc32nbsd_init_abi): Update call to regset_alloc.
3720 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3721 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3722 (sparc64obsd_init_abi): Update call to regset_alloc.
3723 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3724 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3725 (sparc64nbsd_init_abi): Update call to regset_alloc.
3726 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3727 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3728 (sparc64fbsd_init_abi): Update call to regset_alloc.
3729
3730 2004-05-22 Jim Blandy <jimb@redhat.com>
3731
3732 * ppc-tdep.h (spe_register_p): New declaration.
3733 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3734 ppc_spefscr_regnum.
3735 * rs6000-tdep.c (spe_register_p): New function.
3736 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3737 spefscr.
3738 (rs6000_gdbarch_init): Initialize the new members of the tdep
3739 structure.
3740
3741 2004-05-21 Jim Blandy <jimb@redhat.com>
3742
3743 * ppc-linux-nat.c (fetch_register): Move code back to be next
3744 to the comment that describes it. (Moved code, instead of
3745 comment, for symmetry with store_register.)
3746
3747 Allocate regset structures in the gdbarch's obstack, not using
3748 xmalloc.
3749 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3750 Add 'arch' argument. Allocate the regset on arch's obstack, not
3751 using xmalloc.
3752 * regset.h (regset_alloc): Update declaration.
3753 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3754 gdbarch argument.
3755 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3756 * i386-tdep.c (i386_regset_from_core_section): Same.
3757 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3758 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3759 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3760 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3761 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3762 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3763
3764 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3765
3766 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3767
3768 2004-05-21 Jim Blandy <jimb@redhat.com>
3769
3770 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3771 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3772
3773 2004-05-20 Jim Blandy <jimb@redhat.com>
3774
3775 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3776
3777 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3778
3779 * regset.h: Make prototype const-correct.
3780 * regset.c (regset_xmalloc): Make const-correct.
3781
3782 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3783
3784 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3785 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3786 (symbol_search_name): Declare.
3787
3788 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3789 (iter_name_next_hashed): Ditto.
3790 (iter_name_next_linear): Ditto.
3791 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3792
3793 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3794 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3795 (symbol_search_name): New function.
3796
3797 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3798
3799 * minsyms.c (build_minimal_symbol_hash_tables): Change
3800 test for adding to demangled hash table to check for difference
3801 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3802
3803 2004-05-19 Jim Blandy <jimb@redhat.com>
3804
3805 Use a constructor function to create regset structures.
3806 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3807 (struct regset): Use supply_regset_ftype. Add new
3808 'collect_regset' member.
3809 (regset_xmalloc): New declaration.
3810 * regset.c: New file.
3811 * am64-tdep.c (amd64_regset_from_core_section): Use
3812 regset_xmalloc to construct regset structures.
3813 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3814 * i386-tdep.c (i386_regset_from_core_section): Same.
3815 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3816 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3817 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3818 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3819 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3820 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3821 * Makefile.in (COMMON_OBS): Add regset.o.
3822 (regset.o): New rule.
3823
3824 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3825
3826 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3827 and pthread_cond_wait.c.
3828
3829 2004-05-18 Jim Blandy <jimb@redhat.com>
3830
3831 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3832 before the mach-specific switch, and then let the individual cases
3833 override the defaults, rather than leaving them uninitialized
3834 until the switch and then setting them in each case.
3835
3836 2004-05-18 Randolph Chung <tausq@debian.org>
3837
3838 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3839 millicode functions.
3840
3841 2004-05-18 Randolph Chung <tausq@debian.org>
3842
3843 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3844 references to dld_flags_buffer consistent.
3845
3846 2004-05-18 Randolph Chung <tausq@debian.org>
3847
3848 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3849 it for unwinding the stack.
3850
3851 2004-05-18 Randolph Chung <tausq@debian.org>
3852
3853 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3854 Undefine these so we can overide them using gdbarch.
3855
3856 2004-05-18 Randolph Chung <tausq@debian.org>
3857
3858 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3859 handling for 64-bit HPUX (elf).
3860
3861 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3862
3863 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3864 constants.
3865 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3866 * ia64-tdep.c (examine_prologue): Likewise.
3867 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3868 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3869
3870 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3871
3872 * vax-tdep.c (vax_return_value): Implement
3873 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3874
3875 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3876
3877 * vax-tdep.c (vax_return_value): Fix typo.
3878
3879 2004-05-17 Andrew Cagney <cagney@redhat.com>
3880
3881 * MAINTAINERS: Mark Salter was also responsible for
3882 testsuite/config/
3883
3884 * NEWS: Mention signal fixes.
3885
3886 2004-05-17 Randolph Chung <tausq@debian.org>
3887
3888 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3889 check to see if we are unwinding an export stub. Export stubs clobber
3890 the %rp in the call path and stores the original rp in a stack slot.
3891
3892 2004-05-17 Jim Blandy <jimb@redhat.com>
3893
3894 * MAINTAINERS: Update address for J.T. Conklin.
3895
3896 2004-05-17 Randolph Chung <tausq@debian.org>
3897
3898 * hppa-tdep.c: Remove superfluous #include's.
3899 * Makefile.in (hppa-tdep.o): Update dependencies.
3900
3901 2004-05-17 Randolph Chung <tausq@debian.org>
3902
3903 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3904 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3905 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3906 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3907 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3908 Remove static function declarations.
3909
3910 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3911
3912 * alphabsd-nat.c: Update copyright year.
3913 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3914
3915 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3916 and M68K_A2_REGNUM.
3917
3918 * m68k-tdep.c (m68k_svr4_return_value): Implement
3919 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3920
3921 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3922
3923 * sol-thread.c Update copyright year. Fix various coding
3924 standards violations. Tweak a few comments.
3925 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3926 Delete prototypes.
3927
3928 2004-05-15 Randolph Chung <tausq@debian.org>
3929
3930 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3931 as pointer instead of array reference since HPUX compiler does
3932 not accept unsized array arguments.
3933 * somsolib.c (dld_flags_buffer): Use constant array size.
3934
3935 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3936
3937 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3938 offset with decimal offset.
3939 (amd64obsd_sigcontext_addr): Return correct address for entire
3940 signal trampoline.
3941
3942 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3943 instead of get_frame_base.
3944
3945 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3946 (fill_gregset): Use regcache_raw_collect.
3947
3948 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3949 ppcobsd-tdep.c.
3950
3951 * config/sparc/tm-nbsd64.h: Remove file.
3952 * config/tm-sunos.h: Remove file.
3953
3954 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3955
3956 * rs6000-tdep.c (store_param_on_stack_p): New function,
3957 an improved version of some code extracted from skip_prologue().
3958 (skip_prologue): Use store_param_on_stack_p() to detect
3959 instructions saving a parameter on the stack. Detect when r0
3960 is used to save a parameter.
3961 Do not mark "li rx, SIMM" instructions as part of the prologue,
3962 unless the following instruction is also part of the prologue.
3963
3964 2004-05-14 Andrew Cagney <cagney@redhat.com>
3965
3966 * infrun.c (handle_inferior_event): Simplify
3967 STEP_OVER_UNDEBUGGABLE.
3968
3969 * infrun.c (handle_step_into_function): Delete function.
3970 (handle_inferior_event): Inline calls to
3971 handle_step_into_function.
3972
3973 2004-05-14 Jerome Guitton <guitton@gnat.com>
3974
3975 * rs6000-nat.c: Fix a comment.
3976
3977 2004-05-12 David Anderson <davea@sgi.com>
3978
3979 Committed by Jim Blandy <jimb@redhat.com>:
3980 * regcache.c (struct regcache_descr): fix comment spelling.
3981
3982 2004-05-13 J. Brobecker <brobecker@gnat.com>
3983
3984 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3985 Fixes a link link failure.
3986
3987 2004-05-13 J. Brobecker <brobecker@gnat.com>
3988
3989 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3990 error that was causing the build to fail.
3991
3992 2004-05-13 J. Brobecker <brobecker@gnat.com>
3993
3994 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3995 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3996
3997 2004-05-13 Andrew Cagney <cagney@redhat.com>
3998
3999 * infrun.c (handle_inferior_event): Check for
4000 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4001 calls. Update comments.
4002
4003 2004-05-13 Jim Blandy <jimb@redhat.com>
4004
4005 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4006 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4007 (store_regs_user_thread, store_regs_kernel_thread): Use
4008 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4009 * ppc-linux-nat.c (fill_gregset): Same.
4010 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4011 (ppc_linux_sigtramp_cache): Same.
4012 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4013 (ppcnbsd_sigtramp_cache_init): Same.
4014 * rs6000-nat.c (fetch_core_registers): Same.
4015 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4016 (rs6000_frame_cache): Same.
4017
4018 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4019 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4020 of assuming that the gprs are numbered starting with zero.
4021 * ppc-linux-nat.c (fill_gregset): Same.
4022 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4023 * ppcnbsd-nat.c (getregs_supplies): Same.
4024 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4025 * rs6000-nat.c (fetch_core_registers): Same.
4026 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4027
4028 2004-05-07 Michael Snyder <msnyder@redhat.com>
4029
4030 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4031 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4032
4033 2004-05-13 Andrew Cagney <cagney@redhat.com>
4034
4035 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4036
4037 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4038
4039 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4040 base_address for shared libraries.
4041
4042 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4043
4044 * MAINTAINERS (write after approval): Add myself.
4045
4046 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4047
4048 * breakpoint.c (bpstat_stop_status): Add new argument
4049 STOPPED_BY_WATCHPOINT. Use it instead of testing
4050 target_stopped_data_address agaist 0 to check whether
4051 or not we stopped due to a hardware watchpoint.
4052 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4053 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4054 with new argument.
4055
4056 2004-05-12 Jim Blandy <jimb@redhat.com>
4057
4058 * configure.in: When checking whether we should use the -bbigtoc
4059 option, don't forget to restore the original value of LDFLAGS.
4060 * configure: Regenerated.
4061
4062 2004-05-12 Andrew Cagney <cagney@redhat.com>
4063
4064 * thread.c (load_infrun_state): Delete step_sp.
4065 * infrun.c (context_switch): Ditto.
4066 * inferior.h (step_sp): Ditto.
4067 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4068 * gdbthread.h (struct thread_info, save_infrun_state)
4069 (restore_infrun_state): Ditto.
4070
4071 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4072
4073 * MAINTAINERS (write after approval): Add myself.
4074
4075 2004-05-12 Andrew Cagney <cagney@redhat.com>
4076
4077 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4078 eliminate reference to step_sp.
4079 (struct execution_control_state, init_execution_control_state)
4080 (handle_inferior_event, keep_going): Delete update_step_sp and
4081 step_sp.
4082 * infcmd.c (step_sp): Note that variable is unused.
4083
4084 2004-05-11 Andrew Cagney <cagney@redhat.com>
4085
4086 * infrun.c (step_over_function): Delete function.
4087 (handle_step_into_function): Use insert_step_resume_breakpoint.
4088 (insert_step_resume_breakpoint): Fix assertion.
4089
4090 2004-05-11 Nick Roberts <nickrob@gnu.org>
4091
4092 * utils.c (defaulted_query): Just use the normal query input type
4093 when printing the annotations.
4094
4095 2004-05-11 Andrew Cagney <cagney@redhat.com>
4096
4097 * infrun.c (handle_inferior_event): Simplify code handling
4098 step-into or return-from a signal trampoline.
4099
4100 2004-05-11 Andrew Cagney <cagney@redhat.com>
4101
4102 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4103 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4104
4105 2004-05-10 Jim Blandy <jimb@redhat.com>
4106
4107 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4108 with a call to internal_error.
4109
4110 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4111 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4112 processor variant lacks those registers.
4113 (ppc_floating_point_unit_p): Change description to make it clear
4114 that this returns info about the ISA, not the ABI.
4115 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4116 return true or false by checking tdep->ppc_fp0_regnum and
4117 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4118 arch/mach switching done in rs6000_gdbarch_init; it's better to
4119 keep that logic there, and just check the results here.
4120 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4121 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4122 floating-point registers.
4123 (ppc_supply_fpregset, ppc_collect_fpregset)
4124 (rs6000_push_dummy_call, rs6000_extract_return_value)
4125 (rs6000_store_return_value): Assert that we have floating-point
4126 registers.
4127 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4128 (rs6000_frame_cache): Don't note the locations at which
4129 floating-point registers were saved if we have no fprs.
4130 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4131 registers.
4132 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4133 (store_regs_user_thread, store_regs_kernel_thread): Only call
4134 supply_fprs / fill_fprs if we actually have floating-point
4135 registers.
4136 (special_register_p): Check ppc_fpscr_regnum before matching
4137 against it.
4138 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4139 supply / collect fpscr if we don't have it.
4140 * ppc-bdm.c: #include "gdb_assert.h".
4141 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4142 have floating-point registers, since I can't test this code on
4143 FP-free systems to adapt it.
4144 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4145 fpscr and floating point register numbers if they don't exist.
4146 (fetch_register): Assert that we have floating-point registers
4147 before we reach the code that handles them.
4148 (store_register): Same. And use tdep instead of calling
4149 gdbarch_tdep again.
4150 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4151 don't have them.
4152 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4153 fprs and fpscr if we don't have them.
4154 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4155 don't have them.
4156 * ppcnbsd-nat.c: #include "gdb_assert.h".
4157 (getfpregs_supplies): Assert that we have floating-point registers.
4158 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4159 * ppcobsd-tdep.c: #include "gdb_assert.h".
4160 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4161 have floating-point registers.
4162 * rs6000-nat.c (regmap): Don't match against the fpscr and
4163 floating point register numbers if they don't exist.
4164 (fetch_inferior_registers, store_inferior_registers,
4165 fetch_core_registers): Only fetch / store / supply the
4166 floating-point registers and the fpscr if we have them.
4167 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4168 (ppcobsd-tdep.o): Update dependencies.
4169
4170 2004-05-10 Andrew Cagney <cagney@redhat.com>
4171
4172 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4173 (context_switch): Do not switch through_sigtramp_breakpoint.
4174 * gdbthread.h (save_infrun_state, load_infrun_state)
4175 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4176 and structure member.
4177 * thread.c (load_infrun_state, save_infrun_state): Update.
4178
4179 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4180
4181 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4182
4183 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4184
4185 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4186 throughout.
4187 * aclocal.m4: Regenerate.
4188
4189 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4190
4191 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4192
4193 2004-05-10 Andrew Cagney <cagney@redhat.com>
4194
4195 * infrun.c (check_sigtramp2): Delete function.
4196 (handle_inferior_event): When single stepping, and taking a
4197 signal, set a breakpoint at the signal return address. Delete
4198 redundant calls to check_sigtramp2.
4199 (insert_step_resume_breakpoint): New function.
4200 (through_sigtramp_breakpoint, handle_inferior_event)
4201 (follow_exec, wait_for_inferior, fetch_inferior_event)
4202 (currently_stepping, keep_going): Delete most uses of
4203 through_sigtramp_breakpoint, not that it should be deleted.
4204 (delete_breakpoint_current_contents): Delete function.
4205
4206 2004-05-10 Randolph Chung <tausq@debian.org>
4207
4208 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4209 target.
4210 * config/pa/tm-linux.h: New file.
4211
4212 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4213
4214 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4215 of prefixes. Don't print the prefix twice in the CLI.
4216
4217 2004-05-10 Jim Blandy <jimb@redhat.com>
4218
4219 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4220 collect all the gprs.
4221
4222 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4223 loop collecting gprs.
4224
4225 2004-05-09 Andrew Cagney <cagney@redhat.com>
4226
4227 * remote-vx.c (net_step): Delete step-range code.
4228 * remote.c (remote_resume, init_all_packet_configs)
4229 (set_remote_protocol_E_packet_cmd)
4230 (show_remote_protocol_E_packet_cmd)
4231 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4232 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4233 (show_remote_protocol_e_packet_cmd): Ditto.
4234
4235 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4236
4237 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4238
4239 * hppa-tdep.h: Update copyright year.
4240 (struct trad_frame_saved_reg): Add opaque declaration.
4241
4242 * amd64-tdep.c (amd64_return_value): Implement
4243 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4244
4245 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4246 (m68k_value_to_register): New functions.
4247 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4248 value_to_register.
4249
4250 * defs.h (enum return_value_convention): Add
4251 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4252 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4253 * infcmd.c (legacy_return_value): New function.
4254 (print_return_value): Rwerite to implement
4255 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4256 * values.c (using_struct_return): Check for inequality to
4257 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4258 RETURN_VALUE_STRUCT_CONVENTION.
4259 * i386-tdep.c (i386_return_value): Implement
4260 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4261
4262 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4263 include "symtab.h", "opcode/vax.h" and "inferior.h".
4264 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4265 to read_memory_unsigned_integer.
4266 (vax_gdbarch_init): Reorder.
4267 (_initialize_vax_tdep): Spell out prototype.
4268 * Makefile.in (vax-tdep.o): Update dependencies.
4269
4270 2004-05-08 Andrew Cagney <cagney@redhat.com>
4271
4272 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4273 * target.c (target_detach, target_disconnect): Ditto.
4274
4275 * infcall.c (call_function_by_hand): When no
4276 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4277 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4278 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4280 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4281
4282 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4285 deprecated_fix_call_dummy.
4286 * v850-tdep.c (v850_gdbarch_init): Ditto.
4287 * infcall.c (call_function_by_hand): Do not call
4288 DEPRECATED_FIX_CALL_DUMMY.
4289
4290 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4291 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4292 * gdbarch.h, gdbarch.c: Re-generate.
4293 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4294 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4295 deprecated_sizeof_call_dummy_words.
4296 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4298 * v850-tdep.c (v850_gdbarch_init): Ditto.
4299 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4300 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4302 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4303 * arch-utils.h (legacy_call_dummy_words)
4304 (legacy_sizeof_call_dummy_words): Delete declarations.
4305 * arch-utils.c (legacy_call_dummy_words)
4306 (legacy_sizeof_call_dummy_words): Delete variables.
4307
4308 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4309 * gdbarch.h, gdbarch.c: Re-generate.
4310 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4311 * infcall.c (call_function_by_hand): Eliminate call to
4312 DEPRECATED_PUSH_DUMMY_FRAME.
4313 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4314 push_dummy_frame.
4315 (ns32k_push_dummy_frame): Delete function.
4316
4317 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4318 deprecated_call_dummy_breakpoint_offset or
4319 deprecated_call_dummy_start_offset.
4320 * dummy-frame.c, arm-tdep.c: Update comments.
4321 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4322 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4323 * gdbarch.h, gdbarch.c: Re-generate.
4324
4325 * infcall.c (legacy_push_dummy_code): Delete function.
4326 (push_dummy_code): Delete call.
4327
4328 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4329 * gdbarch.h, gdbarch.c: Re-generate.
4330 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4331 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4332 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4333 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4334
4335 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4336 (struct frame_info): Delete opaque declaration.
4337 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4338 * frame.c (get_frame_type): Delete call.
4339
4340 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4341 pc_in_call_dummy.
4342 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4343 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4344
4345 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4346
4347 * alphanbsd-tdep.c: Include "gdb_string.h".
4348 * armnbsd-tdep.c: Update copyright year.
4349 Include "gdb_string.h".
4350 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4351 dependencies.
4352
4353 * delta68-nat.c: Remove file.
4354 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4355 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4356 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4357 (delta68-nat.o): Remove dependency.
4358
4359 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4360 function.
4361 (m68k_gdbarch_init): Don't set
4362 deprecated_frameless_function_invocation.
4363
4364 2004-05-07 Randolph Chung <tausq@debian.org>
4365
4366 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4367 read_memory_nobpt for code reading when doing frame unwinding.
4368 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4369
4370 2004-05-07 Randolph Chung <tausq@debian.org>
4371
4372 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4373 instead of sp, handle sigaltstack case.
4374 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4375 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4376 signal handler and not that of the caller.
4377 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4378 hppa_linux_sigtramp_find_sigcontext.
4379
4380 2004-05-07 Randolph Chung <tausq@debian.org>
4381
4382 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4383 hppa-linux-nat.c.
4384 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4385 * hppa-linux-nat.c (fetch_register, store_register): Define.
4386 (fetch_inferior_registers, store_inferior_registers): Define.
4387 (supply_gregset): Add comment and clean up some unneeded code.
4388 (fill_gregset): Add comment and fix so that it saves registers in
4389 the right place in the gregset.
4390 (fill_fpregset): Fix buffer overrun problem.
4391 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4392
4393 2004-05-07 Randolph Chung <tausq@debian.org>
4394
4395 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4396 do common handling of the pcoqt register.
4397 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4398 to use helper function.
4399 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4400 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4401 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4402 generic fallback unwinder when all else fails.
4403 (hppa_gdbarch_init): Add fallback sniffer.
4404 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4405 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4406 to use helper function.
4407
4408 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4409
4410 * config/djgpp/fnchange.lst: Add translation rules for
4411 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4412
4413 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4414
4415 * frame.c (get_prev_frame_1): Work around GCC bug.
4416 * frame.h: Add comment about GCC bug.
4417
4418 2004-05-07 Andrew Cagney <cagney@redhat.com>
4419
4420 * observer.c: Include "commands.h" and "gdbcmd.h".
4421 (observer_debug, _initialize_observer): Add the
4422 command "set/show debug observer".
4423 * observer.sh: When observer debugging, log notify calls.
4424 * Makefile.in (observer.o): Update dependencies.
4425
4426 2004-05-07 Jason Molenda (jmolenda@apple.com)
4427
4428 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4429
4430 2004-05-07 Jim Blandy <jimb@redhat.com>
4431
4432 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4433 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4434 to recognize gpr regnums, instead of assuming that
4435 tdep->ppc_fp0_regnum marks the end of the general-purpose
4436 registers.
4437
4438 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4439 the given architecture has floating-point registers.
4440
4441 2004-05-07 Andrew Cagney <cagney@redhat.com>
4442
4443 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4444 macro defined to 1.
4445 * gdbarch.h, gdbarch.c: Re-generate.
4446 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4447 deprecated_use_generic_dummy_frames.
4448
4449 2004-05-07 Brian Ford <ford@vss.fsi.com>
4450
4451 * NEWS: Mention Cygwin DWARF 2 support.
4452
4453 2004-05-07 Andrew Cagney <cagney@redhat.com>
4454
4455 * objfiles.h (struct entry_info): Delete unused fields
4456 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4457 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4458 * mipsread.c (mipscoff_symfile_read): Update.
4459 * mdebugread.c (parse_partial_symbols): Update.
4460 * dwarfread.c (read_file_scope): Update.
4461 * dwarf2read.c (read_file_scope): Update.
4462 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4463 * coffread.c (complete_symtab): Update.
4464
4465 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4466
4467 * infcall.c (_initialize_infcall): Fix typo.
4468
4469 2004-05-07 Andrew Cagney <cagney@redhat.com>
4470
4471 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4472 * command.h (add_setshow_zinteger_cmd): Declare.
4473
4474 2004-05-06 Randolph Chung <tausq@debian.org>
4475
4476 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4477 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4478 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4479 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4480 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4481 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4482 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4483 definitions ...
4484 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4485 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4486 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4487 (hppa64_hpux_frame_find_saved_regs_in_sig)
4488 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4489 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4490 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4491 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4492 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4493 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4494 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4495 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4496 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4497 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4498 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4499 (hppa32_register_type, hppa_cannot_store_register)
4500 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4501 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4502 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4503 * pa64solib.c (pa64_solib_have_load_event)
4504 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4505 (pa64_solib_unloaded_library_pathname): Likewise.
4506 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4507 (som_solib_library_pathname): Likewise.
4508
4509 2004-05-05 Jim Ingham <jingham@apple.com>
4510
4511 * breakpoint.c (create_breakpoints): Copy the ignore count and
4512 thread id over from the pended breakpoint to the actual
4513 breakpoint.
4514
4515 2004-05-05 Andrew Cagney <cagney@redhat.com>
4516
4517 * gdbarch.sh (PARM_BOUNDARY): Delete.
4518 gdbarch.h, gdbarch.c: Re-generate.
4519 * valops.c (PARM_BOUNDARY): Delete macro.
4520 (value_push): Delete PARM_BOUNDARY code.
4521 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4522
4523 2004-05-04 Jim Blandy <jimb@redhat.com>
4524
4525 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4526 Don't assume that the gprs, fprs, and UISA sprs are
4527 contiguous, start at register number zero, and end with fpscr.
4528 Instead, use the numbers from the tdep structure.
4529
4530 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4531 should no longer be used in code specific to the RS6000 and its
4532 derivatives.
4533 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4534 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4535 tdep->ppc_fp0_regnum.
4536 (ppc_supply_fpregset, ppc_collect_fpregset)
4537 (rs6000_push_dummy_call, rs6000_extract_return_value)
4538 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4539 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4540 FP0_REGNUM.
4541 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4542 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4543 Same.
4544 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4545 bdm_ppc_store_registers): Same.
4546 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4547 (store_register, fill_fpregset): Same.
4548 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4549 (ppc_linux_supply_fpregset): Same.
4550 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4551 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4552 Same.
4553 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4554 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4555 ppc64_sysv_abi_return_value): Same.
4556 * rs6000-nat.c (regmap, fetch_inferior_registers)
4557 (store_inferior_registers, fetch_core_registers): Same.
4558
4559 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4560
4561 * m68knbsd-nat.c: Remove file.
4562 * m68knbsd-tdep.c: Remove file.
4563 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4564 dependencies.
4565 * configure.host: Add m68k-*-netbsdelf*.
4566 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4567 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4568 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4569 (XM_FILE): Remove.
4570 * config/m68k/nbsdelf.mh: New file.
4571 * config/m68k/nbsd.mt: New file.
4572 * config/m68k/nbsdaout.mt: Remove file.
4573 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4574 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4575 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4576 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4577 (use_struct_convention): Remove prototype.
4578 (USE_STRUCT_CONVENTION): Remove define.
4579 * config/m68k/xm-nbsd.h: Remove file.
4580
4581 2004-05-04 Michael Snyder <msnyder@redhat.com>
4582
4583 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4584 reg_struct_return method (as gcc usually does for cross targets).
4585
4586 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4587
4588 Committed by Andrew Cagney.
4589 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4590 alignment padding when accessing ucontext struct members.
4591
4592 2004-05-04 Jim Blandy <jimb@redhat.com>
4593
4594 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4595 'ppc_gplast_regnum' member.
4596 (ppc_num_gprs): New enum constant.
4597 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4598 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4599 * rs6000-nat.c (regmap, fetch_inferior_registers,
4600 store_inferior_registers): Same.
4601 * rs6000-tdep.c (e500_pseudo_register_read)
4602 (e500_pseudo_register_write): Same.
4603 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4604
4605 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4606 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4607 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4608 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4609 FPLAST_REGNUM.
4610 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4611 Same.
4612 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4613 * rs6000-nat.c (regmap, fetch_inferior_registers)
4614 (store_inferior_registers): Same.
4615
4616 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4617 with FPLAST_REGNUM.
4618
4619 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4620
4621 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4622 failure detected by recent versions of GCC.
4623 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4624 to be consistent with the usage in dwarf2_create_include_psymtab.
4625
4626 2004-05-03 Michael Snyder <msnyder@redhat.com>
4627
4628 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4629 (heuristic_proc_start): Whitespace cleanup.
4630
4631 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4632
4633 * sun3-nat.c: Remove file.
4634 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4635 dependencies.
4636 (ALLDEPFILES): Remove sun3-nat.c.
4637 (sun3-nat.o): Remove dependencies.
4638
4639 * i386-interix-nat.c, i386-interix-tdep.c,
4640 config/i386/nm-interix.h, config/i386/interix.mh,
4641 config/i386/interix.mt: Remove files.
4642 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4643 dependencies.
4644
4645 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4646
4647 * m68k-tdep.h (struct gdbarch_tdep): Add member
4648 struct_value_regnum.
4649 (m68k_svr4_init_abi): New prototype.
4650 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4651 different calling conventions.
4652 (m68k_extract_return_value): Remove code dealing with single-field
4653 structs.
4654 (m68k_store_return_value): Remove code dealing with single-field
4655 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4656 (m68k_extract_struct_value_address): Remove function.
4657 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4658 (m68k_reg_struct_return_p, m68k_return_value)
4659 (m68k_svr4_return_value): New functions.
4660 (m68k_use_struct_convention): Remove function.
4661 (m68k_push_dummy_call): Use new struct_value_regnum member of
4662 `struct gdbarch_tdep' instead of hardcoded register number to
4663 store STRUCT_ADDR.
4664 (m68k_svr4_init_abi): New function.
4665 (m68k_gdbarch_init): Don't set extract_return_value,
4666 store_return_values, deprecated_extract_struct_value_address and
4667 use_struct_convention. Set return_value instead. Initialize new
4668 struct_value_regnum member of `struct gdbarch_tdep'.
4669 * m68klinux-tdep.c: Update copyright year.
4670 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4671 (m68k_linux_extract_struct_value_address): Remove function.
4672 (m68k_linux_init_abi): Don't set extract_return_value,
4673 store_return_values, deprecated_extract_struct_value_address and
4674 use_struct_convention. Call m68k_svr4_init_abi but override the
4675 new struct_value_regnum member of `struct gdbarch_tdep'.
4676 * Makefile.in (m68k-tdep.o): Update dependencies.
4677
4678 2004-05-03 J. Brobecker <brobecker@gnat.com>
4679
4680 * dwarf2read.c (line_header): Add new included_p field in
4681 field file_names.
4682 (partial_die_info): New field has_stmt_list. New field line_offset.
4683 (dwarf2_create_include_psymtab): New function.
4684 (dwarf2_build_include_psymtabs): New function.
4685 (add_file_name): Add forward declaration. Initialize new field.
4686 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4687 to be able to determine the list of files included by the
4688 given unit, and build their associated psymtabs.
4689 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4690 files as well.
4691 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4692 (read_file_scope): Update call to dwarf_decode_lines.
4693 (read_partial_die): Handle DW_AT_stmt_list attributes.
4694
4695 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4696
4697 Unfix PR gdb/1626.
4698 * configure.in: Revert special case for osf5.*.
4699 * configure: Regenerate.
4700
4701 2004-05-02 Jim Blandy <jimb@redhat.com>
4702
4703 Move the symbol-file-from-memory functions into their own file.
4704 * symfile-mem.c, symfile-mem.h: New files.
4705 * symfile.c (symbol_file_add_from_bfd): New function.
4706 (symbol_file_add): Call symbol_file_add_from_bfd.
4707 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4708 Moved to symfile-mem.c.
4709 (_initialize_symfile): Move definition of
4710 add-symbol-file-from-memory command to symfile-mem.c.
4711 * symfile.h (symbol_file_add_from_bfd): New declaration.
4712 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4713 * config/powerpc/linux.mt (TDEPFILES): Same.
4714 * Makefile.in (SFILES): Add symfile-mem.c.
4715 (symfile_mem_h): New variable.
4716 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4717 (symfile-mem.o): New rule.
4718
4719 2004-05-01 Andrew Cagney <cagney@redhat.com>
4720
4721 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4722 frame_find_by_id instead of frame_relative_level.
4723 (do_enable_breakpoint): Ditto.
4724 * thread.c: Update copyright.
4725 (info_threads_command): Ditto, simplify.
4726
4727 * frame.c (deprecated_generic_get_saved_register): Delete
4728 function, moved to "xstormy16-tdep.c".
4729 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4730 deprecated_generic_get_saved_register from "frame.c".
4731 (xstormy16_frame_saved_register): Call
4732 xstormy16_get_saved_register.
4733 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4734 static.
4735 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4736 * frame.h (deprecated_generic_get_saved_register): Delete.
4737
4738 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4739
4740 * dwarfread.c: Update documentation on the state of dwarf-1.
4741
4742 2004-05-01 Andrew Cagney <cagney@redhat.com>
4743
4744 * stack.c (select_frame_command): Delete call to
4745 frame_relative_level.
4746 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4747 Delete #if0 code.
4748 (frame_info): Do not print FRAMELESS.
4749 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4750 (catch_info): Delete #if0 code.
4751
4752 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4753 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4754 of frame_relative_level.
4755 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4756 to SENTINEL_FRAME.
4757 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4758 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4759 frame_relative_level.
4760
4761 * frame.h (deprecated_set_frame_type): Delete declaration.
4762 * frame.c (deprecated_set_frame_type): Delete function, update
4763 comments.
4764
4765 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4766 * gdbarch.h, gdbarch.c: Re-generate.
4767 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4768 (shnbsd_pc_in_sigtramp): Delete.
4769 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4770 pc_in_sigtramp.
4771 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4772 pc_in_sigtramp.
4773 * frame.h: Update comments.
4774 * ppc-linux-tdep.c: Update comments.
4775 * breakpoint.c (bpstat_what): Update comments.
4776
4777 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4778 m68klinux-tdep.o's dependencies, were previously added to
4779 m68klinux-nat.o.
4780
4781 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4782 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4783 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4784 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4785 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4786
4787 * Makefile.in (m68klinux-nat.o): Update dependencies.
4788 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4789 (m68k_linux_sigtramp_frame_cache)
4790 (m68k_linux_sigtramp_frame_this_id)
4791 (m68k_linux_sigtramp_frame_prev_register)
4792 (m68k_linux_sigtramp_frame_unwind)
4793 (m68k_linux_sigtramp_frame_sniffer)
4794 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4795 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4796 names, use trad-frame.h.
4797 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4798 (struct m68k_sigtramp_info): Delete.
4799 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4800 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4801 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4802 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4803 "m68klinux-tdep.c".
4804
4805 * infrun.c (check_sigtramp2): Delete check for
4806 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4807
4808 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4809
4810 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4811
4812 2004-05-01 Andrew Cagney <cagney@redhat.com>
4813
4814 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4815 (frv_linux_sigtramp_frame_cache)
4816 (frv_linux_sigtramp_frame_this_id)
4817 (frv_linux_sigtramp_frame_prev_register)
4818 (frv_linux_sigtramp_frame_unwind)
4819 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4820 include "linux" in function and variable names, directly call
4821 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4822 the latest trad-frame code.
4823 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4824 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4825 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4826 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4827 * frv-tdep.c (frv_sigtramp_frame_cache)
4828 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4829 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4830 frv-linux-tdep.c.
4831 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4832 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4833 (frv_set_sigcontext_reg_addr): Delete function.
4834
4835 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4836 (DEPRECATED_SIGTRAMP_END): Delete.
4837 * gdbarch.h, gdbarch.c: Re-generate.
4838 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4839 * config/vax/tm-vaxbsd.h: Update copyright.
4840 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4841 (DEPRECATED_IN_SIGTRAMP): Define.
4842 * config/m68k/tm-nbsd.h: Update copyright.
4843 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4844 (DEPRECATED_IN_SIGTRAMP): Define.
4845
4846 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4847
4848 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4849 encondings. Fixes PR gdb/1628.
4850
4851 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4852 DW_CFA_restore state without a matching DW_CFA_remember_state
4853 instead of aborting. Fixes PR backtrace/1589.
4854
4855 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4856
4857 * MAINTAINERS: Add self as AIX maintainer.
4858 Update my e-mail address in write-after-approval section.
4859
4860 2004-04-30 Andrew Cagney <cagney@redhat.com>
4861
4862 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4863 (legacy_get_prev_frame): Ditto.
4864
4865 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4866 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4867 * mipsread.c (sigtramp_address): Delete extern variable.
4868 (mipscoff_new_init): Delete reference.
4869 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4870 (fixup_sigtramp): Delete function.
4871 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4872 (fixup_sigtramp): Delete declarations.
4873
4874 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4875 deprecated_pc_in_sigtramp.
4876 (ppcnbsd_pc_in_sigtramp): Delete function.
4877
4878 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4879
4880 * config/m68k/nm-nbsd.h: Tweak comments.
4881 * config/m68k/nm-nbsdaout.h: Likewise.
4882
4883 2004-04-30 Andrew Cagney <cagney@redhat.com>
4884
4885 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4886 legacy_pc_in_sigtramp.
4887 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4888
4889 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4890
4891 Add OpenBSD/m68k support.
4892 * NEWS (New native configurations): Mention OpenBSD/m68k.
4893 * m68kbsd-tdep.c: New file.
4894 * m68kbsd-nat.c: New file.
4895 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4896 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4897 * configure.host: Add m68k-*-openbsd.
4898 * configure.tgt: Add m68k-*-openbsd.
4899 * config/m68k/tm-obsd.h: New file.
4900 * config/m68k/obsd.mt: New file.
4901 * config/m68k/obsd.mh: New file.
4902 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4903 m68kbsd-tdep.c.
4904
4905 2004-04-30 Andrew Cagney <cagney@redhat.com>
4906
4907 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4908 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4909
4910 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4911
4912 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4913 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4914
4915 2004-04-30 Brian Ford <ford@vss.fsi.com>
4916
4917 Revert 2004-04-16 change.
4918 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4919 (i386_coff_init_abi): Remove.
4920 * i386-tdep.h (i386_coff_init_abi): Remove.
4921 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4922
4923 2004-04-30 Andrew Cagney <cagney@redhat.com>
4924
4925 * blockframe.c (find_pc_partial_function): Delete use of
4926 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4927 DEPRECATED_SIGTRAMP_END.
4928
4929 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4930 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4931 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4932 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4933 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4934
4935 * defs.h (deprecated_inside_entry_file): Delete declaration.
4936 * blockframe.c (deprecated_inside_entry_file): Delete function.
4937 (legacy_frame_chain_valid): Delete call.
4938 * sh64-tdep.c (sh64_frame_chain): Delete call.
4939 * objfiles.h: Update comments.
4940 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4941 call.
4942 * frame.c (get_prev_frame): Delete call, update comments.
4943
4944 2004-04-30 Brian Ford <ford@vss.fsi.com>
4945
4946 * MAINTAINERS (Write After Approval): Add myself.
4947
4948 2004-04-30 Andrew Cagney <cagney@redhat.com>
4949
4950 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4951 * gdbarch.h, gdbarch.c: Re-generate.
4952 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4953 code.
4954
4955 2004-04-30 Andrew Cagney <cagney@redhat.com>
4956
4957 * gdb-events.sh (selected_thread_changed)
4958 (selected_frame_level_changed, target_changed): Delete.
4959 * gdb-events.h, gdb-events.c: Re-generate.
4960 * valops.c (value_assign): Update.
4961 * stack.c (select_frame_command, up_silently_base)
4962 (down_silently_base): Update.
4963
4964 2004-04-29 Andrew Cagney <cagney@redhat.com>
4965
4966 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4967 registers correctly.
4968 (print_gp_register_row, mips32_heuristic_proc_desc)
4969 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4970 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4971 references to mips_isa_regsize.
4972
4973 2004-04-29 Andrew Cagney <cagney@redhat.com>
4974
4975 * mips-tdep.c (struct gdbarch_tdep): Delete
4976 mips_fp_register_double.
4977 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4978 mips_abi_regsize.
4979 (mips_gdbarch_init): Do not set mips_fp_register_double.
4980 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4981
4982 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4983
4984 Committed by Andrew Cagney.
4985 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4986 function calls.
4987
4988 2004-04-29 Andrew Cagney <cagney@redhat.com>
4989
4990 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4991 gdbarch, use mips_abi, update callers.
4992 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4993 mips_abi_regsize, update callers.
4994 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4995 mips_default_abi_regsize.
4996 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4997 mips_default_abi_regsize.
4998
4999 2004-04-29 Andrew Cagney <cagney@redhat.com>
5000
5001 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5002 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5003 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5004 mips_default_abi_regsize.
5005 (mips_isa_regsize): Rename mips_regisze.
5006 * mipsnbsd-tdep.c: Update.
5007 * mips-linux-tdep.c: Update.
5008 * irix5-nat.c: Update.
5009 * mips-tdep.h (mips_isa_regsize): Update.
5010
5011 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5012 Delete all disabled code.
5013 * gdb-events.h, gdb-events.c: Re-generate.
5014
5015 2004-04-19 Jerome Guitton <guitton@gnat.com>
5016 Mark Kettenis <kettenis@gnu.org>
5017
5018 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5019 the function begins with a branch instruction.
5020
5021 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5022
5023 * i386-tdep.c: Fix spelling mistakes.
5024
5025 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5026 Andrew Cagney <cagney@redhat.com>
5027
5028 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5029 <sys/proc.h>.
5030 * acconfig.h: Provide default _KMEMUSER value.
5031 * config.in, configure: Re-generate.
5032 * NEWS: Mention fix.
5033
5034 2004-04-24 Randolph Chung <tausq@debian.org>
5035
5036 * configure.host (hppa*-*-linux*): New target.
5037 * configure.tgt (hppa*-*-linux*): Likewise.
5038 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5039 gdbarch_init_osabi() call earlier so that osabi-specific frame
5040 unwinders can be registered first.
5041 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5042 hppa-linux-nat.c.
5043 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5044 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5045 * config/pa/linux.mh: New file.
5046 * config/pa/linux.mt: New file.
5047 * config/pa/nm-linux.h: New file.
5048 * config/pa/xm-linux.h: New file.
5049 * hppa-linux-nat.c: New file.
5050 * hppa-linux-tdep.c: New file.
5051
5052 2004-04-28 Randolph Chung <tausq@debian.org>
5053
5054 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5055 return values.
5056 (hppa32_push_dummy_call): Fix small struct and floating point argument
5057 passing, and make sure the stack frame is properly aligned.
5058
5059 2004-04-28 Andrew Cagney <cagney@redhat.com>
5060
5061 * stack.c (print_stack_frame): Fix description.
5062
5063 * NEWS: Mention gdb/gdbserver/configure execute permission
5064 changed. PR server/519.
5065
5066 2004-04-28 Andrew Cagney <cagney@redhat.com>
5067
5068 * stack.c (print_stack_frame_stub): Delete declaration.
5069 (struct print_stack_frame_args, print_stack_frame)
5070 (print_frame_info, print_frame): Replace "source" with print what.
5071 Replace "print" with "print_level". Replace "args" with
5072 "print_args".
5073 * frame.h (show_and_print_stack_frame, print_stack_frame)
5074 (print_frame_info): Update declarations.
5075 * stack.c (select_and_print_frame, frame_command)
5076 (current_frame_command, up_command, down_command): Update calls -
5077 use get_selected_frame, pass "enum print_what" for source, do not
5078 call frame_relative_level.
5079 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5080 * remote-rdp.c (remote_rdp_open): Ditto.
5081 * remote-mips.c (common_open): Ditto.
5082 * remote-e7000.c (e7000_start_remote): Ditto.
5083 * ocd.c (ocd_start_remote): Ditto.
5084 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5085 * infrun.c (normal_stop): Ditto.
5086 * inflow.c (kill_command): Ditto.
5087 * infcmd.c (finish_command): Ditto.
5088 * corelow.c (core_open): Ditto.
5089 * tracepoint.c (finish_tfind_command): Ditto.
5090 * thread.c (info_threads_command, info_threads_command)
5091 (restore_current_thread, do_captured_thread_select): Ditto.
5092 * ada-tasks.c (task_command): Ditto.
5093
5094 2004-04-26 Orjan Friberg <orjanf@axis.com>
5095
5096 * frame.c: Include "observer.h".
5097 (frame_observer_target_changed): New function.
5098 (_initialize_frame): Attach target_changed observer.
5099 * regcache.c: Include "observer.h".
5100 (regcache_observer_target_changed): New function.
5101 (_initialize_regcache): Attach target_changed observer.
5102 * valops.c: Include "observer.h".
5103 (value_assign): Notify target_changed event when modifying register.
5104 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5105
5106 2004-04-26 Orjan Friberg <orjanf@axis.com>
5107
5108 From Paul Koning <pkoning@equallogic.com>:
5109 * breakpoint.c (free_valchain): New function.
5110 (insert_bp_location, delete_breakpoint): Use free_valchain.
5111 (remove_breakpoint): Do not remove the valchain.
5112 (bpstat_stop_status): If not stopped by watchpoint, skip
5113 watchpoints when generating stop status list.
5114 * infrun.c (handle_inferior_event): Make
5115 stepped_after_stopped_by_watchpoint a global variable.
5116 * remote.c (remote_stopped_data_address): Return watch data
5117 address rather than zero if stepped_after_stopped_by_watchpoint is
5118 set.
5119
5120 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5121
5122 Fix PR gdb/1626.
5123 * configure.in: Check for curses after termcap.
5124 On osf5.*, do not check for ncurses.
5125 * configure: Regenerate.
5126
5127 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5128
5129 * ppcobsd-nat.c: Include "ppc-tdep.h".
5130 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5131
5132 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5133 Fixes PR tdep/1623 and PR tdep/1624.
5134
5135 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5136
5137 * xmodem.h, xmodem.c: Remove files.
5138 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5139
5140 2004-04-23 Randolph Chung <tausq@debian.org>
5141
5142 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5143 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5144 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5145 for handling stackless frames.
5146 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5147
5148 2004-04-23 Randolph Chung <tausq@debian.org>
5149
5150 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5151 starts at a pc before the frame is created.
5152
5153 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5154
5155 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5156
5157 2004-04-23 Jerome Guitton <guitton@gnat.com>
5158
5159 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5160 use convert_typed_floating to get the appropriate format.
5161
5162 2004-04-22 Randolph Chung <tausq@debian.org>
5163
5164 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5165 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5166 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5167 (hppa_sign_extend): Add prototype.
5168 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5169 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5170 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5171 hppa targets will also use these functions.
5172 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5173 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5174 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5175 (hppa_gdbarch_init): Remove gdbarch setting of
5176 skip_trampoline_code, in_solib_call_trampoline and
5177 in_solib_return_trampoline.
5178 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5179 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5180 hppa_in_solib_call_trampoline.
5181 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5182 Moved from hppa-tdep.c.
5183 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5184 in_solib_call_trampoline and in_solib_return_trampoline.
5185
5186 2004-04-22 Randolph Chung <tausq@debian.org>
5187
5188 * hppa-tdep.c (hppa_debug): New variable.
5189 (find_unwind_entry, hppa_frame_cache): Add debug output.
5190 (_initialize_hppa_tdep): Add command to set debug flag.
5191
5192 2004-04-22 Andrew Cagney <cagney@redhat.com>
5193
5194 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5195 "trad-frame.h".
5196 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5197 signal trampoline unwinder.
5198 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5199
5200 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5201
5202 Add OpenBSD/powerpc support.
5203 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5204 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5205 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5206 (ppc_collect_fpregset): New prototypes.
5207 * ppcobsd-nat.c: New file.
5208 * ppcobsd-tdep.c: New file.
5209 * ppcobsd-tdep.h: New file.
5210 * rs6000-tdep.c: Include "regset.h".
5211 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5212 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5213 New functions.
5214 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5215 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5216 (rs6000-tdep.o): Update dependencies.
5217 * configure.host: Add powerpc-*-openbsd.
5218 * configure.tgt: Add powerpc-*-openbsd.
5219 * config/powerpc/obsd.mh: New file.
5220 * config/powerpc/nm-obsd.h: New file.
5221 * config/powerpc/obsd.mt: New file.
5222
5223 2004-04-22 Andrew Cagney <cagney@redhat.com>
5224
5225 * frame.h (show_frame_info): Delete declaration.
5226
5227 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5228 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5229 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5230 * frv-tdep.c (frv_frame_this_id): Ditto.
5231 * avr-tdep.c (avr_frame_this_id): Ditto.
5232
5233 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5234
5235 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5236
5237 2004-04-22 Jim Blandy <jimb@redhat.com>
5238
5239 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5240 register number zero.
5241
5242 2004-04-21 Michael Snyder <msnyder@redhat.com>
5243
5244 * mips-tdep.c (heuristic_proc_start):
5245 Warning() already prefixes "Warning: ".
5246
5247 2004-04-21 Andrew Cagney <cagney@redhat.com>
5248
5249 * annotate.h (deprecated_annotate_starting_hook)
5250 (deprecated_annotate_stopped_hook)
5251 (deprecated_annotate_exited_hook)
5252 (deprecated_annotate_signal_hook)
5253 (deprecated_annotate_signalled_hook): Deprecate.
5254 * tracepoint.h (deprecated_create_tracepoint_hook)
5255 (deprecated_delete_tracepoint_hook)
5256 (deprecated_modify_tracepoint_hook)
5257 (deprecated_trace_find_hook)
5258 (deprecated_trace_start_stop_hook): Deprecate.
5259 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5260 * remote.h (deprecated_target_resume_hook)
5261 (deprecated_target_wait_loop_hook): Deprecate.
5262 * gdbcore.h (deprecated_exec_file_display_hook)
5263 (deprecated_file_changed_hook): Deprecate.
5264 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5265 * defs.h (deprecated_modify_breakpoint_hook)
5266 (deprecated_command_loop_hook, deprecated_show_load_progress)
5267 (deprecated_print_frame_info_listing_hook)
5268 (deprecated_query_hook, deprecated_warning_hook)
5269 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5270 (deprecated_delete_breakpoint_hook)
5271 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5272 (deprecated_readline_begin_hook, deprecated_readline_hook)
5273 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5274 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5275 (deprecated_context_hook, deprecated_target_wait_hook)
5276 (deprecated_attach_hook, deprecated_detach_hook)
5277 (deprecated_call_command_hook, deprecated_set_hook)
5278 (deprecated_error_hook, deprecated_error_begin_hook)
5279 (deprecated_ui_load_progress_hook): Deprecate.
5280 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5281 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5282 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5283 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5284 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5285 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5286 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5287 * annotate.c, aix-thread.c: Update.
5288
5289 2004-04-21 Andrew Cagney <cagney@redhat.com>
5290
5291 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5292 * vaxnbsd-tdep.c: Include "gdb_string.h".
5293
5294 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5295 (add_symbol_file_from_memory_command): #if 0 function body, call
5296 error instead.
5297
5298 2004-04-21 Andrew Cagney <cagney@redhat.com>
5299
5300 * gdbcore.h: Update copyright.
5301 (deprecated_add_core_fns): Rename add_core_fns.
5302 * win32-nat.c (_initialize_core_win32): Update.
5303 * sun3-nat.c (_initialize_core_sun3): Update.
5304 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5305 * rs6000-nat.c (_initialize_core_rs6000): Update.
5306 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5307 * nto-tdep.c (_initialize_nto_tdep): Update.
5308 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5309 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5310 * mips-nat.c (_initialize_core_mips): Update.
5311 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5312 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5313 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5314 * lynx-nat.c (_initialize_core_lynx): Update.
5315 * irix5-nat.c (_initialize_core_irix5): Update.
5316 * i386-interix-nat.c (_initialize_core_interix): Update.
5317 * cris-tdep.c (_initialize_cris_tdep): Update.
5318 * corelow.c (deprecated_add_core_fns): Update.
5319 * core-regset.c (_initialize_core_regset): Update.
5320 * core-aout.c (_initialize_core_aout): Update.
5321 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5322 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5323 * alpha-nat.c (_initialize_core_alpha): Update.
5324
5325 2004-04-21 Jim Blandy <jimb@redhat.com>
5326
5327 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5328
5329 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5330
5331 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5332 Delete.
5333 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5334 (read_attribute_value): Update calls to dwarf_alloc_block.
5335 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5336 dwarf2_tmp_obstack.
5337 (psymtab_to_symtab_1): Likewise. Clean up using
5338 free_stack_comp_unit.
5339 (add_to_cu_func_list): Use the comp_unit_obstack.
5340
5341 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5342
5343 * dwarf2read.c (dwarf2_flag_true_p): New function.
5344 (die_is_declaration): Use the function above. Add some comments.
5345
5346 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5347
5348 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5349 architecture when registering sparcnbsd_core_osabi_sniffer.
5350 Adjust comment.
5351
5352 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5353
5354 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5355 return value.
5356
5357 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5358 * i386-tdep.c: Correct register numbering scheme comments
5359 throughout.
5360 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5361 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5362 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5363 (i386_gdb_arch_init): Likewise.
5364
5365 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5366 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5367 ppcnbsd-tdep.o.
5368
5369 * m68k-tdep.h: Tweak comments.
5370 * m68k-tdep.c: Tweak comment.
5371
5372 2004-04-17 Randolph Chung <tausq@debian.org>
5373
5374 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5375 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5376 (hppa_hpux_som_init_abi): Set is_elf to 0.
5377 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5378 * hppa-tdep.c (low_text_segment_address): Remove global.
5379 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5380 section offset to calculate segment address.
5381 (internalize_unwinds): Define low_text_segment_address as local and
5382 pass to record_text_segment_lowaddr for ELF targets.
5383 (hppa_gdbarch_init): Zero fill tdep structure.
5384 (hppa_dump_tdep): Print tdep structure.
5385 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5386
5387 2004-04-17 Randolph Chung <tausq@debian.org>
5388
5389 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5390 (hppa_gdbarch_init): Set pseudo_register_read.
5391 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5392 * regcache.c (supply_register): Remove check for
5393 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5394
5395 2004-04-17 Randolph Chung <tausq@debian.org>
5396
5397 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5398 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5399 (hpread_adjust_stack_address): Move to hpread.c.
5400 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5401 obj_private_struct): Move from tm-hppa.h.
5402 * hpread.c (hppa-tdep.h): Include.
5403 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5404 (hpread_read_function_type, hpread_read_doc_function_type)
5405 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5406 directly.
5407 * pa64solib.c (hppa-tdep.h): Include.
5408 * somsolib.c (hppa-tdep.h): Include.
5409 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5410 inferior_status): Remove unused forward declarations.
5411 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5412 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5413 obj_private_struct): Move to hppa-tdep.h.
5414 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5415
5416 2004-04-17 Randolph Chung <tausq@debian.org>
5417
5418 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5419 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5420 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5421 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5422 Remove forward declaration and make static.
5423 (hppa_reg_struct_has_addr): Remove.
5424
5425 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5426
5427 * observer.sh: Move comments in sed command to first column.
5428
5429 2004-04-16 Jason Molenda (jmolenda@apple.com)
5430
5431 * frame.c: Minor typeo corrections in comments.
5432
5433 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5434
5435 * observer.c (observer_test_first_notification_function): Update
5436 function profile.
5437 (observer_test_second_notification_function): Likewise.
5438 (observer_test_third_notification_function): Likewise.
5439
5440 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5441
5442 From Brian Ford <ford@vss.fsi.com>:
5443 * i386-tdep.c (i386_coff_init_abi): New function.
5444 * i386-tdep.h (i386_coff_init_abi): New prototype.
5445 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5446 register number translation functions for DWARF and DWARF 2.
5447
5448 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5449
5450 * dwarf2read.c: Back out my previous change, it was incorrect.
5451
5452 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5453
5454 * dwarf2read.c: Include "hashtab.h".
5455 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5456 has_namespace_info.
5457 (struct partial_die_info): Add comments. Use bitfields to reduce
5458 memory footprint. Add scope, scope_set, has_specification,
5459 spec_offset, die_parent, die_child, and die_sibling.
5460 (peek_die_abbrev): Add prototype.
5461 (partial_read_comp_unit_head): New function, broken out from
5462 dwarf2_build_psymtabs_hard.
5463 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5464 Use partial_read_comp_unit_head. Initialize the CU and
5465 comp_unit_obstack. Update calls to read_partial_die and
5466 scan_partial_symbols. Use free_stack_comp_unit and
5467 load_partial_dies.
5468 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5469 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5470 Update calls to helper functions. Remove NAMESPACE argument.
5471 Update comments.
5472 (partial_die_parent_scope, partial_die_full_name): New functions.
5473 (add_partial_symbol): Remove namespace argument. Update call to
5474 pdi_needs_namespace. Use partial_die_full_name. Handle
5475 DW_TAG_namespace. Check has_namespace_info flag.
5476 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5477 tag. Handle namespaces.
5478 (add_partial_namespace, add_partial_enumeration): Simplify.
5479 (guess_structure_name): New function, derived from
5480 add_partial_structure.
5481 (add_partial_structure): Remove.
5482 (determine_class_name): Update comment.
5483 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5484 (is_type_tag_for_partial, load_partial_dies): New functions.
5485 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5486 Record specifications instead of following them immediately.
5487 (find_partial_die_in_comp_unit, find_partial_die)
5488 (fixup_partial_die, free_stack_comp_unit)
5489 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5490 (partial_die_hash, partial_die_eq): New functions.
5491 * Makefile.in (hashtab_h): Define.
5492 (dwarf2read.o): Update dependencies.
5493 (observer_inc, observer_h): Move to the correct section.
5494
5495 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5496
5497 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5498 (die_is_declaration): Use the function above. Add comment.
5499
5500 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5501
5502 * dwarf2read.c (read_structure_scope): Identify stub types
5503 using die_is_declaration() only.
5504
5505 2004-04-15 Roland McGrath <roland@redhat.com>
5506
5507 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5508 argument instead of NAME.
5509 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5510 in call to symbol_file_add_with_addrs_or_offsets.
5511 (build_addr_info): New function, helper for ...
5512 (symbol_file_add_from_memory): New function.
5513 (add_symbol_file_from_memory_command): New function using that.
5514 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5515 (pre_add_symbol_hook): Add const to argument type.
5516 * symfile.h (symbol_file_add_from_memory): Declare it.
5517
5518 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5519
5520 * NEWS (New native configurations): Mention OpenBSD/vax.
5521 * configure.host: Add vax-*-openbsd*.
5522 * config/vax/obsd.mh: New file.
5523 * config/vax/nm-obsd.h: New file.
5524
5525 * vax-tdep.c: Include "regset.h".
5526 (vax_supply_gregset): New function.
5527 (vax_gregset): New variable.
5528 (vax_regset_from_core_section): New function.
5529 (vax_gdbarch_init): Set regset_from_core_section.
5530 * Makefile.in (vax-tdep.o): Update dependencies.
5531
5532 2004-04-15 Andrew Cagney <cagney@redhat.com>
5533
5534 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5535 (observer_normal_stop_notification_stub)
5536 (observer_attach_normal_stop, observer_detach_normal_stop):
5537 Delete, replaced by #include "observer.inc".
5538 * infrun.c (normal_stop): Pass "stop_bpstat" to
5539 observer_notify_normal_stop.
5540 * Makefile.in (observer_inc): Define.
5541 (observer.o): Update dependencies.
5542 (observer.h, observer.inc): New rules.
5543 * observer.h: Delete file.
5544 * observer.sh: New file.
5545
5546 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5547
5548 * vax-tdep.c (vax_frame_cache): Fix typo.
5549
5550 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5551
5552 * NEWS (New native configurations): Mention NetBSD/vax.
5553 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5554 * config/vax/nbsdelf.mh: New file.
5555 * config/vax/nbsdaout.mh: New file.
5556 * config/vax/nm-nbsd.h: New file.
5557 * config/vax/nm-nbsdaout.h: New file.
5558
5559 * vaxnbsd-tdep.c: New file.
5560 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5561 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5562 * config/vax/nbsd.mt: New file.
5563 * config/vax/tm-nbsd.h: New file.
5564
5565 * Makefile.in (vaxbsd-nat.o): New dependency.
5566
5567 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5568 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5569 struct_addr arguments. Don't push return value address.
5570 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5571 arguments to vax_store_arguments. Store return value address in
5572 R1.
5573 (vax_store_struct_return, vax_extract_return_value)
5574 (vax_store_return_value): Remove functions.
5575 (vax_return_value): New function.
5576 (vax_gdbarch_init): Set return value. Don't set
5577 deprecated_store_struct_return, deprecated_extract_struct_return
5578 and deprecated_store_return_value.
5579
5580 2004-04-14 Andreas Schwab <schwab@suse.de>
5581
5582 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5583 value buffer.
5584 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5585
5586 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5587
5588 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5589 (vax_unwind_dummy_id): New functions.
5590 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5591 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5592 variables.
5593 (vax_fix_call_dummy): Remove function.
5594 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5595 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5596 call_dummy_location, deprecated_call_dummy_words,
5597 deprecated_sizeof_call_dummy_words,
5598 deprecated_call_dummy_breakpoint_offset,
5599 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5600 and deprecated_dummy_write_sp.
5601
5602 2004-04-13 David Carlton <carlton@kealia.com>
5603
5604 * MAINTAINERS: Move myself to "paper trail" section.
5605
5606 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5607
5608 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5609 "trad-frame.h".
5610 (vax_frame_init_saved_regs): Remove function.
5611 (vax_sigtramp_saved_pc): Remove function.
5612 (vax_frame_saved_pc): Remove function.
5613 (vax_frame_args_address): Remove function.
5614 (vax_frame_num_args): Rewrite.
5615 (vax_frame_chain): Remove function.
5616 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5617 VAX_FP_REGNUM.
5618 (vax_pop_frame): Likewise.
5619 (vax_saved_pc_after_call): Remove function.
5620 (struct vax_frame_cache): New structure.
5621 (vax_frame_cache): New function.
5622 (vax_frame_this_id): New function.
5623 (vax_frame_prev_register): New function.
5624 (vax_frame_unwind): New variable.
5625 (vax_frame_sniffer): New function.
5626 (vax_frame_base_address): New function.
5627 (vax_frame_args_address): New function.
5628 (vax_frame_base): New variable.
5629 (vax_unwind_pc): New function.
5630 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5631 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5632 deprecated_frame_chain, deprecated_frame_saved_pc,
5633 deprecated_frame_args_address and
5634 deprecated_frame_init_saved_regs.
5635 * Makefile.in (vax-tdep.o): Update dependencies.
5636
5637 * vaxbsd-nat.c: New file.
5638
5639 * vax-tdep.h: Update copyright year. Adjust comments.
5640 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5641 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5642 (vax_regnum): New enum. Replacing...
5643 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5644 (VAX_PS_REGNUM): ... these removed macros.
5645 * vax-tdep.c (vax_register_name): Remove prototype.
5646 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5647 (vax_register_byte, vax_register_raw_size,
5648 vax_register_virtual_size, vax_register_virtual_type): Remove
5649 functions.
5650 (vax_register_type): New function.
5651 (vax_breakpoint_from_pc): Reorganize.
5652 (vax_gdbarch_init): Set register_type. Don't set
5653 deprecated_register_size, deprecated_register_bytes,
5654 deprecated_register_byte, deprecated_register_raw_size,
5655 deprecated_max_register_raw_size,
5656 deprecated_register_virtual_size,
5657 deprecated_max_register_virtual_size and
5658 deprecated_register_virtual_type. Add comment on stack direction.
5659
5660 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5661
5662 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5663 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5664 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5665
5666 2004-04-10 Randolph Chung <tausq@debian.org>
5667
5668 * MAINTAINERS (write after approval): Add myself.
5669
5670 2004-04-07 Randolph Chung <tausq@debian.org>
5671
5672 * hppa-tdep.c (hppa_inner_than): Remove.
5673 (is_pa_2): Remove unused static variable.
5674 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5675
5676 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5677
5678 * language.h (language_defn): Add new la_post_parser field.
5679 * parser-defs.h (null_post_parser): New declaration (default for
5680 la_post_parser).
5681
5682 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5683 insert call to that function.
5684 (parse_exp_in_context): New function, including code formerly in
5685 parse_exp_1. Calls language-dependent post-parser after
5686 prefixification.
5687 (parse_expression_in_context): New exported function.
5688 (null_post_parser): New definition.
5689 * expression.h (parse_expression_in_context): Add declaration.
5690
5691 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5692 * c-lang.c (c_language_defn): Ditto.
5693 (cplus_language_defn): Ditto.
5694 (asm_language_defn): Ditto.
5695 (minimal_language_defn): Ditto.
5696 * f-lang.c (f_language_defn): Ditto.
5697 * jv-lang.c (java_language_defn): Ditto.
5698 * language.c (unknown_language_defn): Ditto.
5699 (auto_language_defn): Ditto.
5700 (local_language_defn): Ditto.
5701 * m2-lang.c (m2_language_defn): Ditto.
5702 * scm-lang.c (scm_language_defn): Ditto.
5703 * obj-lang.c (objc_language_defn): Ditto.
5704
5705 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5706
5707 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5708 (amd64nbsd_mcontext_addr): New function.
5709 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5710 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5711 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5712
5713 * corelow.c (core_xfer_partial): Fix coding standards violation.
5714 Add support for TARGET_OBJECT_WCOOKIE.
5715
5716 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5717 deprecated_pc_in_sigtramp.
5718 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5719 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5720 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5721 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5722 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5723 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5724 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5725
5726 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5727 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5728 Fix typo.
5729
5730 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5731 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5732 (amd64_collect_fxsave): Likewise.
5733
5734 * i386-sol2-tdep.c: Include "gdb_string.h".
5735 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5736 name.
5737 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5738
5739 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5740
5741 * i386-sol2-tdep.c: Include "solib-svr4.h".
5742 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5743 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5744 * config/i386/tm-i386sol2.h: Include :solib.h".
5745 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5746 solib-svr4.o and solib-legacy.o.
5747 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5748 solib-svr4.o.
5749
5750 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5751
5752 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5753 whether a register is supplied by PTRACE_GETFPREGS.
5754 (store_inferior_registers): Likewise.
5755 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5756 whether a register is supplied by PT_GETFPREGS.
5757 (store_inferior_registers): Likewise.
5758
5759 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5760 * config/i386/linux64.mt (TDEPFILES): Likewise.
5761
5762 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5763
5764 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5765 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5766 the program counter is in the range specified by `struct
5767 gdbarch_tdep'.
5768 * amd64-linux-tdep.c: Include "symtab.h".
5769 (amd64_linux_pc_in_sigtramp): Remove function.
5770 (amd64_linux_sigtramp_p): New function.
5771 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5772 deprecated_pc_in_sigtramp.
5773 * amd64nbsd-tdep.c: Include "symtab.h".
5774 (amd64nbsd_sigtramp_p): New function.
5775 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5776 deprecated_pc_in_sigtramp.
5777 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5778 few comments.
5779 (amd64obsd_pc_in_sigtramp): Remove function.
5780 (amd64obsd_sigtramp_p): New function.
5781 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5782 deprecated_pc_in_sigtramp.
5783 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5784 (i386bsd_pc_ins_sigtramp): Remove prototype.
5785 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5786 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5787 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5788 the program counter is in the range specified by `struct
5789 gdbarch_tdep'.
5790 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5791 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5792 (i386_go32_pc_in_sigtramp): Remove function.
5793 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5794 Initialize TDEP->sigtramp_p.
5795 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5796 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5797 deprecated_pc_in_sigtramp.
5798 * i386-linux-tdep.c: Adjust comments.
5799 (i386_linux_pc_in_sigtramp): Remove function.
5800 (i386_linux_sigtramp_p): New function.
5801 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5802 deprecated_pc_in_sigtramp.
5803 * i386-nto-tdep.c: Update copyright year.
5804 (i386nto_pc_in_sigtramp): Remove function.
5805 (i386nto_sigtramp_p): New function.
5806 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5807 SP_REGNUM.
5808 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5809 deprecated_pc_in_sigtramp.
5810 * i386-sol2-tdep.c: Update copyright year.
5811 (i386_sol2_pc_in_sigtramp): Remove function.
5812 (i386_sol2_sigtramp_p): New function.
5813 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5814 deprecated_pc_in_sigtramp.
5815 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5816 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5817 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5818 deprecated_sigtramp_start and deprecated_sigtramp_end.
5819 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5820 (i386nbsd_pc_in_sigtramp): Remove function.
5821 (i386nbsd_sigtramp_p): New function.
5822 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5823 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5824 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5825 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5826 (i386obsd_pc_in_sigtramp): Remove function.
5827 (i386obsd_sigtramp_p): New function.
5828 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5829 functions.
5830 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5831 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5832 TDEP->sigtramp_p.
5833 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5834 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5835 dependencies.
5836
5837 * config/i386/i386aout.mt: Remove file.
5838
5839 * configure.tgt: Remove i[34567]86-*-go32*,
5840 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5841 and i[34567]86-*-isc*. Set gdb_target to i386 for
5842 i[34567]86-*-netware* and i[34567]86-*-*.
5843 * config/i386/i386.mt: New file.
5844 * config/i386/embed.mt: Remove file.
5845 * config/i386/go32.mt: Remove file.
5846 * config/i386/i386nw.mt: Remove file.
5847 * config/i386/i386v.mt: Remove file.
5848 * config/i386/tm-go32.h: Remove file.
5849
5850 * tui/tui-hooks.c: Include "readline/readline.h" after
5851 "gdb_curses.h" instead of before.
5852 * tui/tui-io.c: Likewise.
5853
5854 * tui/tui.c: Fix typo in comment.
5855
5856 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5857
5858 2004-04-08 Andrew Cagney <cagney@redhat.com>
5859
5860 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5861 (deprecated_exception_support_initialized): Declare.
5862 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5863 (initialize_hp_cxx_exception_support)
5864 (child_enable_exception_callback): Update.
5865 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5866 (deprecated_exception_support_initialized): Rename
5867 deprecated_exception_catchpoints_are_fragile and
5868 deprecated_exception_support_initialized.
5869 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5870
5871 * symtab.c (deprecated_hp_som_som_object_present): Rename
5872 hp_som_som_object_present.
5873 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5874 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5875 Update. Delete extern declaration.
5876 * valops.c (hp_som_som_object_present): Ditto.
5877 * parse.c (deprecated_hp_som_som_object_present)
5878 (parse_nested_classes_for_hpacc): Ditto.
5879 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5880 * hppa-hpux-tdep.c (hp_som_som_object_present)
5881 (initialize_hp_cxx_exception_support): Ditto.
5882 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5883 * cp-valprint.c (hp_som_som_object_present)
5884 (cp_print_class_method): Ditto.
5885 * c-typeprint.c (hp_som_som_object_present):
5886 (c_type_print_base): Ditto.
5887 * c-exp.y (hp_som_som_object_present): Ditto.
5888
5889 2004-04-08 Andrew Cagney <cagney@redhat.com>
5890
5891 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5892 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5893 (frame_unwind_find_by_frame): Re-implement the unwind code so
5894 that it can both prepend and append sniffers. Replace
5895 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5896 * tramp-frame.c (tramp_frame_append): Use
5897 frame_unwind_prepend_unwinder.
5898 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5899 frame_unwind_register_unwinder.
5900 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5901 tramp_frame_append.
5902 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5903 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5904 (mips_linux_init_abi): Update.
5905
5906 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5907
5908 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5909 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5910 file support.
5911
5912 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5913
5914 * ia64-tdep.c (elf.h): Don't include.
5915 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5916
5917 2004-04-07 Jason Molenda (jmolenda@apple.com)
5918
5919 * frame.h: Typeo corrections in comments.
5920
5921 2004-04-07 Jim Blandy <jimb@redhat.com>
5922
5923 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5924 %esp and %ebp
5925
5926 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5927
5928 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5929 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5930 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5931 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5932 and solib-legacy.o.
5933 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5934 solib-svr4.o.
5935 * config/sparc/tm-sol2.h: Update copyright year. Include
5936 "solib.h".
5937
5938 * sparc-sol2-tdep.c: Update copyright year. Include
5939 "solib-svr4.h".
5940 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5941 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5942 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5943 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5944 dependencies.
5945
5946 2004-04-06 Andrew Cagney <cagney@redhat.com>
5947
5948 * infttrace.c: Include "infttrace.h".
5949 * infttrace.h: Include "target.h".
5950 * Makefile.in (infttrace_h): Update.
5951 (infttrace.o): Update.
5952
5953 2004-04-06 Andrew Cagney <cagney@redhat.com>
5954
5955 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5956 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5957 move extern declarations from here ...
5958 * infttrace.h: ... to here.
5959 * Makefile.in (hppah-nat.o): Update dependencies.
5960
5961 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5962 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5963 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5964 (hppa_breakpoint_from_pc): Delete.
5965
5966 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5967
5968 2004-04-05 Andrew Cagney <cagney@redhat.com>
5969
5970 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5971 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5972 <sys/file.h>.
5973
5974 2004-04-06 Randolph Chung <tausq@debian.org>
5975
5976 Committed by Andrew Cagney (mechanical change).
5977 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5978 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5979 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5980 child_enable_exception_callback, current_ex_event,
5981 null_symtab_and_line, child_get_current_exception_event,
5982 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5983 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5984 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5985 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5986 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5987 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5988 Move hpux-specific definitions ...
5989 * hppa-hpux-tdep.c: ... to here.
5990
5991 2004-04-05 Andrew Cagney <cagney@redhat.com>
5992
5993 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5994 skip_prologue_using_sal.
5995
5996 2004-04-05 Andrew Cagney <cagney@redhat.com>
5997
5998 * config/i386/tm-i386.h: Delete file.
5999 * config/i386/tm-vxworks.h: Update copyright, do not include
6000 "tm-i386.h".
6001 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6002 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6003 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6004 * config/i386/ncr3000.mt (TM_FILE): Delete.
6005 * config/i386/interix.mt (TM_FILE): Delete.
6006 * config/i386/i386v.mt (TM_FILE): Delete.
6007 * config/i386/i386nw.mt (TM_FILE): Delete.
6008 * config/i386/i386gnu.mt (TM_FILE): Delete.
6009 * config/i386/i386aout.mt (TM_FILE): Delete.
6010 * config/i386/embed.mt (TM_FILE): Delete.
6011
6012 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6013
6014 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6015 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6016 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6017 (accg7_regnum): New constants.
6018 (last_spr_regnum, last_pseudo_regnum): Update.
6019 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6020 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6021 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6022 for accg registers.
6023 (frv_register_sim_regno): Update spr_map[].
6024
6025 2004-04-04 Andrew Cagney <cagney@redhat.com>
6026
6027 * config/mips/xm-riscos.h: Delete.
6028 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6029 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6030 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6031 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6032 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6033 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6034 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6035 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6036 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6037 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6038 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6039 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6040 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6041 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6042 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6043 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6044 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6045 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6046 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6047 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6048 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6049 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6050 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6051 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6052 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6053 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6054
6055 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6056 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6057 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6058 * configure.host: Remove m680[01]0-sun-sunos3*,
6059 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6060 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6061 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6062 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6063 mips-*-riscos*.
6064 * NEWS: Mention removed systems.
6065
6066 2004-04-04 Andrew Cagney <cagney@redhat.com>
6067
6068 GDB 6.1 release created from 6.1 branch.
6069
6070 2004-04-04 Andrew Cagney <cagney@redhat.com>
6071
6072 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6073 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6074 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6075
6076 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6077 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6078 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6079
6080 2004-04-03 Jim Blandy <jimb@redhat.com>
6081
6082 * MAINTAINERS: Chris Faylor has changed employers; add him to
6083 "paper trail" section, and update his E-mail address.
6084
6085 2004-04-03 Andrew Cagney <cagney@redhat.com>
6086
6087 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6088 generic dummy frames.
6089 * dummy-frame.c: Update copyright.
6090 (dummy_frame_sniffer): Delete check for generic dummy frames.
6091
6092 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6093 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6094 (REG_PARM_STACK_SPACE): Delete.
6095 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6096 Inline reference to REG_PARM_STACK_SPACE.
6097
6098 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6099 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6100 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6101 (FRAME_BASE_BEFORE_SIGTRAMP)
6102 (hppa32_hpux_frame_base_before_sigtramp)
6103 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6104 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6105 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6106 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6107 (FRAME_BASE_BEFORE_SIGTRAMP)
6108 (hppa64_hpux_frame_base_before_sigtramp)
6109 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6110
6111 2004-04-03 Andrew Cagney <cagney@redhat.com>
6112
6113 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6114
6115 2004-04-02 Andrew Cagney <cagney@redhat.com>
6116
6117 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6118 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6119 * dummy-frame.h: Delete out-of-date comments.
6120 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6121 * gdbarch.h, gdbarch.c: Re-generate.
6122
6123 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6124
6125 Committed by Andrew Cagney <cagney@redhat.com>.
6126 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6127 into account an instruction saving a register if we have already
6128 seen an earlier instruction saving that same register.
6129
6130 2004-04-02 Andrew Cagney <cagney@redhat.com>
6131
6132 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6133 * gdbarch.h, gdbarch.c: Re-generate.
6134 * frame.c (legacy_get_prev_frame): Delete references to
6135 DEPRECATED_INIT_FRAME_PC_FIRST.
6136
6137 * infrun.c (pc_in_sigtramp): Delete function.
6138 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6139 get_frame_type.
6140
6141 2004-04-02 Andrew Cagney <cagney@redhat.com>
6142
6143 * infrun.c (handle_step_into_function): Delete code conditional on
6144 legacy_frame_p.
6145 (handle_inferior_event, step_over_function): Ditto.
6146
6147 2004-04-02 Andrew Cagney <cagney@redhat.com>
6148
6149 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6150 "previous frame inner to this frame" test.
6151
6152 2004-04-02 Andrew Cagney <cagney@redhat.com>
6153
6154 * frame.c (safe_frame_unwind_memory): New function.
6155 * frame.h (safe_frame_unwind_memory): Declare. Update description
6156 of /safe_/ methods.
6157 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6158 "next_frame". Use safe_frame_unwind_memory.
6159 (tramp_frame_sniffer): Update call to tramp_frame_start.
6160
6161 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6162
6163 * dwarf2read.c (dwarf2_objfile_data_key): New.
6164 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6165 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6166 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6167 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6168 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6169 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6170 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6171 Remove variables.
6172 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6173 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6174 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6175 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6176 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6177 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6178 Remove macros.
6179 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6180 data.
6181 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6182 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6183 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6184 (read_partial_die, read_full_die, read_indirect_string)
6185 (dwarf_decode_line_header, dwarf_decode_macros)
6186 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6187 Update uses of removed variables.
6188 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6189 of removed macros.
6190 (_initialize_dwarf2_read): New function.
6191 * symfile.h (dwarf2_has_info): Update prototype.
6192 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6193 * elfread.c (elf_symfile_read): Likewise.
6194
6195 2004-04-01 Jim Blandy <jimb@redhat.com>
6196
6197 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6198 function for register numbers on all the rs6000-derived targets.
6199 (rs6000_gdbarch_init): Don't register a separate
6200 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6201 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6202 variants.
6203
6204 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6205 numbering.
6206
6207 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6208
6209 * valarith.c: Update copyright notice.
6210 (value_add): Handle range types.
6211 (value_sub): Ditto.
6212 (value_equal): Ditto.
6213 (value_less): Ditto.
6214 (value_neg): Ditto.
6215 (value_complement): Ditto.
6216 (value_binop): Simplify slightly by using is_integral_type and
6217 eliminiating unnecessary COERCE_ENUMs.
6218
6219 2004-03-31 Andrew Cagney <cagney@redhat.com>
6220
6221 * frame.h (frame_unwind_id): Declare.
6222 * frame.c (frame_unwind_id): New function.
6223 (get_prev_frame_1): New function.
6224 (frame_debug_got_null_frame): New function.
6225 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6226 code proper to prev_frame, update description.
6227 * infrun.c (step_over_function): Use frame_unwind_id.
6228
6229 2004-04-31 J. Brobecker <brobecker@gnat.com>
6230
6231 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6232 (hppa64_push_dummy_call): Likewise.
6233
6234 2004-03-30 Jim Blandy <jimb@redhat.com>
6235
6236 From Ulrich Weigand:
6237 * utils.c (query): Do not use a va_list variable multiple times.
6238
6239 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6240
6241 * Makefile.in (linux_nat_h): Update dependencies.
6242 * configure.in: Check for <gnu/libc-version.h>.
6243 * configure: Regenerate.
6244 * config.in: Regenerate.
6245 * linux-nat.h: Include "target.h". Add waitstatus field to
6246 struct lwp_info.
6247 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6248 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6249 to.
6250 (lin_lwp_handle_extended): New function. Handle clone events.
6251 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6252 thread exit events.
6253 (child_wait): Handle clone events.
6254 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6255 * linux-nat.c (linux_enable_event_reporting): Turn on
6256 PTRACE_O_TRACECLONE.
6257 (linux_handle_extended_wait): Handle clone events.
6258 * thread-db.c: Include <gnu/libc-version.h>.
6259 (struct private_thread_info): Add dying flag.
6260 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6261 higher.
6262 (attach_thread): Update comments. Handle dying threads.
6263 (detach_thread): Set the dying flag.
6264 (check_event): Always call attach_thread.
6265
6266 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6267
6268 * mips-tdep.c (mips_pdr_data): New.
6269 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6270 (_initialize_mips_tdep): Initialize mips_pdr_data.
6271
6272 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6273
6274 * minsyms.c (install_minimal_symbols): Move dropping leading
6275 char from linkage name from here...
6276 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6277 test for "__gnu_compiled*" symbols.
6278
6279 2004-03-28 Jim Blandy <jimb@redhat.com>
6280
6281 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6282 registers to temp register r0 and byte stores as prologue
6283 instructions.
6284
6285 2004-03-28 Andrew Cagney <cagney@redhat.com>
6286
6287 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6288 arm*-*-*.
6289
6290 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6291
6292 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6293 and switch the layout to force a display of register window.
6294
6295 2004-02-26 J. Brobecker <brobecker@gnat.com>
6296
6297 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6298 of the INTEGER class.
6299
6300 2004-03-26 Jim Blandy <jimb@redhat.com>
6301
6302 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6303 bytes long on PPC GNU/Linux.
6304
6305 2004-03-26 David Carlton <carlton@kealia.com>
6306
6307 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6308
6309 2004-03-25 Andrew Cagney <cagney@redhat.com>
6310
6311 * PROBLEMS: Add general section titles, remove references to
6312 specific releases.
6313
6314 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6315
6316 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6317 INT_REGISTER_SIZE.
6318 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6319 FP_REGISTER_VIRTUAL_SIZE.
6320 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6321 of DEPRECATED_REGISTER_RAW_SIZE.
6322 (arm_register_type): Add gdbarch argument.
6323 (arm_register_raw_size, arm_register_virtual_size): Delete.
6324 (arm_register_byte, arm_extract_return_value)
6325 (arm_store_return_value, arm_get_longjmp_target): Update references
6326 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6327 (arm_gdbarch_init): Likewise. Don't set
6328 deprecated_register_raw_size, deprecated_register_virtual_size,
6329 deprecated_max_register_raw_size,
6330 deprecated_max_register_virtual_size, or
6331 deprecated_max_register_virtual_type. Do set register_type.
6332 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6333 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6334 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6335 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6336 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6337 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6338 INT_REGISTER_SIZE.
6339 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6340 (remote_rdp_store_register): Likewise.
6341
6342 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6343
6344 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6345 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6346 to after osabi initialization.
6347 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6348 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6349 functions.
6350 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6351 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6352 variables.
6353 (mips_linux_init_abi): Append signal trampoline unwinders.
6354
6355 2004-03-24 Andrew Cagney <cagney@redhat.com>
6356
6357 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6358 * tramp-frame.c: Include "gdb_assert.h".
6359 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6360 correct sizeof.
6361 (tramp_frame_append): Validate the tramp frame's instructions.
6362 * Makefile.in (tramp-frame.o): Update dependencies.
6363
6364 2004-03-23 Andrew Cagney <cagney@redhat.com>
6365
6366 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6367
6368 2004-03-23 Andrew Cagney <cagney@redhat.com>
6369
6370 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6371 Nasser as past testsuite/lib/ (and other) maintainers.
6372
6373 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6374
6375 * infcmd.c (attach_command): Reread symbols if we already have
6376 an exec file.
6377
6378 2004-03-23 Andrew Cagney <cagney@redhat.com>
6379
6380 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6381
6382 2004-03-23 Andrew Cagney <cagney@redhat.com>
6383
6384 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6385 * gdbarch.h, gdbarch.c: Re-generate.
6386 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6387 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6388 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6389 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6390 (DEPRECATED_SIGTRAMP_START): Update.
6391 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6392 (DEPRECATED_SIGTRAMP_START): Update.
6393 * blockframe.c (find_pc_sect_partial_function): Update.
6394 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6395
6396 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6397
6398 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6399 if necessary.
6400
6401 2004-03-23 Andrew Cagney <cagney@redhat.com>
6402
6403 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6404 predicate, deprecate.
6405 * gdbarch.h, gdbarch.c: Re-generate.
6406 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6407 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6408 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6409 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6410 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6411 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6412 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6413 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6414 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6415 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6416 * blockframe.c (find_pc_partial_function): Update.
6417 * breakpoint.c (bpstat_what): Update.
6418 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6419 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6420 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6421 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6422 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6423 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6424 * i386-nto-tdep.c (i386nto_init_abi): Update.
6425 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6426 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6427 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6428 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6429 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6430 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6431 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6432 * infrun.c (pc_in_sigtramp): Update.
6433 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6434 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6435 * mips-tdep.c (mips_gdbarch_init): Update.
6436 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6437 * ppc-linux-tdep.c: Update comment.
6438 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6439 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6440 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6441 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6442 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6443 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6444 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6445 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6446 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6447 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6448
6449 2004-03-23 Andrew Cagney <cagney@redhat.com>
6450
6451 * tramp-frame.h, tramp-frame.h: New files.
6452 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6453 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6454
6455 * Makefile.in: Update all dependencies.
6456
6457 2004-03-23 Andrew Cagney <cagney@redhat.com>
6458
6459 * Makefile.in (trad_frame_h): Add $(frame_h).
6460 * trad-frame.h: Update copyright. Include "frame.h".
6461 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6462 (trad_frame_set_id, trad_frame_get_id): Declare.
6463 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6464 * trad-frame.c: Update copyright.
6465 (struct trad_frame_cache): Define.
6466 (trad_frame_cache_zalloc): New function.
6467 (trad_frame_set_id, trad_frame_get_id): New functions.
6468 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6469
6470 2004-03-22 Andrew Cagney <cagney@redhat.com>
6471
6472 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6473 s390_pltstub_unwind_cache.
6474 (s390_stub_frame_unwind_cache): Rename
6475 s390_pltstub_frame_unwind_cache.
6476 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6477 (s390_stub_frame_prev_register): Rename
6478 s390_pltstub_frame_prev_register.
6479 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6480 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6481
6482 From Ulrich Weigand:
6483 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6484 pointer calls like PLT calls.
6485
6486 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6487
6488 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6489 PC rather than the partial function start address. Use the start
6490 address to sanity check the found PDR.
6491
6492 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6493
6494 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6495 linux_handle_extended_wait.
6496
6497 2004-03-22 Andrew Cagney <cagney@redhat.com>
6498
6499 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6500 function.
6501
6502 * frame.h (generic_pop_current_frame): Delete declaration.
6503 (deprecate_pop_dummy_frame): Deprecate
6504 generic_pop_dummy_frame.
6505 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6506 (generic_pop_current_frame): Delete function.
6507 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6508 generic_pop_current_frame.
6509 * v850-tdep.c (v850_pop_frame): Update.
6510 * mcore-tdep.c (mcore_pop_frame): Update.
6511 * sh64-tdep.c (sh64_pop_frame): Update.
6512 * h8300-tdep.c (h8300_pop_frame): Update.
6513
6514 2004-03-22 Andrew Cagney <cagney@redhat.com>
6515
6516 * frame.h (deprecated_pc_in_call_dummy): Rename
6517 generic_pc_in_call_dummy.
6518 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6519 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6520 generic_pc_in_call_dummy.
6521 (pc_in_dummy_frame): Make static.
6522 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6523 * gdbarch.h, gdbarch.c: Re-generate.
6524 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6525 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6526 (legacy_get_prev_frame): Ditto.
6527 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6528 comment.
6529
6530 2004-03-21 Andrew Cagney <cagney@redhat.com>
6531
6532 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6533 declaration and out-of-date comment.
6534 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6535 Delete function.
6536 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6537 deprecated_pc_in_call_dummy.
6538
6539 * infrun.c (handle_inferior_event): For non legacy frames, use the
6540 frame ID and frame type to identify a signal trampoline. Update
6541 comments.
6542
6543 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6544
6545 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6546 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6547
6548 2004-03-21 Andrew Cagney <cagney@redhat.com>
6549
6550 * frame-unwind.h: Update copyright.
6551 (struct frame_data): Add opaque declaration.
6552 (frame_sniffer_ftype): Declare.
6553 (struct frame_unwind): Add "unwind_data" and "sniffer".
6554 (frame_unwind_register_unwinder): Declare.
6555 (frame_unwind_find_by_frame): Add parameter "this_cache".
6556 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6557 (legacy_get_prev_frame, legacy_get_prev_frame)
6558 (get_frame_type): Pass the prologue_cache to
6559 frame_unwind_find_by_frame.
6560 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6561 "unwinder".
6562 (frame_unwind_register_unwinder): New function.
6563 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6564
6565 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6566
6567 * bcache.c (print_percentage): Use floating point to avoid
6568 incorrect results when portion*100 overflows.
6569
6570 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6571
6572 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6573 (ppc_linux_init_extra_frame_info)
6574 (ppc_linux_frameless_function_invocation)
6575 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6576 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6577 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6578 (rs6000_frame_chain): Delete declarations.
6579 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6580 (ppc_linux_init_extra_frame_info)
6581 (ppc_linux_frameless_function_invocation)
6582 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6583 (ppc_linux_init_abi): Remove registration of above deleted functions.
6584 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6585 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6586 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6587 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6588 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6589 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6590 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6591 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6592 frame management for all OSABIs.
6593
6594 2004-03-19 Andrew Cagney <cagney@redhat.com>
6595
6596 Committed by Kevin Buettner <kevinb@redhat.com>.
6597
6598 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6599 Update copyright.
6600 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6601 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6602 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6603 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6604 unwinders. #ifdef legacy frame code.
6605 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6606 "frame-base.h".
6607 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6608 (struct rs6000_frame_cache, rs6000_frame_cache)
6609 (rs6000_frame_this_id, rs6000_frame_prev_register)
6610 (rs6000_frame_sniffer, rs6000_frame_unwind)
6611 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6612 (rs6000_frame_base): Implement a traditional frame unwinder.
6613 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6614 frame unwinder.
6615
6616 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6617
6618 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6619 breakpoint address for watchpoints or the catch eventpoints.
6620 Add new paramter ``bptype''. Adjust all callers.
6621
6622 2004-03-19 Andrew Cagney <cagney@redhat.com>
6623
6624 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6625
6626 * PROBLEMS: Delete note that ARM does not use frame code, problem
6627 fixed.
6628
6629 2004-03-18 Andrew Cagney <cagney@redhat.com>
6630
6631 * stack.c (return_command): Delete code wrapped in #ifdef
6632 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6633
6634 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6635
6636 2004-03-18 Andrew Cagney <cagney@redhat.com>
6637
6638 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6639 DEPRECATED_IN_SIGTRAMP.
6640 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6641 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6642 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6643 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6644 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6645 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6646 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6647 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6648 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6649 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6650
6651 2004-03-18 Andrew Cagney <cagney@redhat.com>
6652
6653 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6654 (struct frame_base_table_entry): Define.
6655 (struct frame_base_table): Re-implement as a linked list.
6656 (frame_base_init): Re-implement.
6657 (frame_base_table): Delete function.
6658 (append_predicate): Delete function.
6659 (frame_base_append_sniffer): Update.
6660 (frame_base_set_default): Update.
6661 (frame_base_find_by_frame): Update.
6662 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6663 * Makefile.in (frame-base.o): Update dependencies.
6664
6665 2004-03-17 Andrew Cagney <cagney@redhat.com>
6666
6667 * frame.c (legacy_get_prev_frame): Pass correct frame to
6668 frame_unwind_find_by_frame.
6669
6670 2004-03-17 David Carlton <carlton@kealia.com>
6671
6672 * NEWS: Mention C++ nested types and namespaces
6673
6674 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6675
6676 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6677 and "Regressions since gdb 5.3.". Add known regressions since
6678 gdb 6.0.
6679
6680 2004-03-16 David Carlton <carlton@kealia.com>
6681
6682 * dwarf2read.c (process_structure_scope): Process children even
6683 when we're a declaration.
6684
6685 2004-03-16 Andrew Cagney <cagney@redhat.com>
6686
6687 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6688 * blockframe.c (find_pc_partial_function)
6689 (find_pc_sect_partial_function): Merge into a single
6690 find_pc_partial_function.
6691
6692 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6693
6694 * i386bsd-nat.c: s/regno/regnum/g.
6695 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6696 FP0_REGNUM.
6697 (store_inferior_registers): Likewise.
6698
6699 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6700
6701 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6702 of i387_fill_fsave.
6703 (store_inferior_registers): Call i387_collect_fsave and
6704 i387_collect_fxsave instead of i387_fill_fsave and
6705 i387_fill_fxsave.
6706
6707 2004-03-15 Andrew Cagney <cagney@redhat.com>
6708
6709 * Makefile.in (frame-unwind.o): Update dependencies.
6710 * frame-unwind.c: Include "gdb_obstack.h".
6711 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6712 parameter.
6713 (append_predicate): Delete function.
6714 (struct frame_unwind_table_entry): New structure.
6715 (struct frame_unwind_table): Replace "sniffer" with "head" and
6716 "tail".
6717 (frame_unwind_append_sniffer): Update.
6718 (frame_unwind_find_by_frame): Update.
6719 (_initialize_frame_unwind): Registe frame_unwind_init using
6720 gdbarch_data_register_pre_init.
6721
6722 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6723
6724 * i386bsd-nat.c: Update copyright year.
6725 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6726 define unconditionally.
6727
6728 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6729
6730 * i387-tdep.h (i387_collect_fsave): New prototype.
6731 * i387-tdep.c (i387_collect_fsave): New function containing most
6732 of the code from i387_fill_fsave.
6733 (i387_fill_fsave): Call i387_collect_fsave.
6734
6735 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6736
6737 * i386-linux-tdep.c: Update copyright year.
6738 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6739 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6740 svr4_ilp32_link_map_offsets instead of
6741 i386_linux_svr4_fetch_link_map_offsets.
6742
6743 2004-03-15 David Carlton <carlton@kealia.com>
6744
6745 Fix for PR c++/1553:
6746 * dwarf2read.c (read_structure_type): Determine type name by
6747 calling determine_class_name.
6748 (determine_class_name): New.
6749 (determine_prefix): Look at TYPE_TAG_NAME and call
6750 determine_class_name when appropriate.
6751 (determine_prefix_aux, class_name): Delete.
6752 (read_namespace): Set die->type.
6753
6754 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6755
6756 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6757 unused macro definition. The definition in target.h (or perhaps
6758 elsewhere) takes precedence.
6759
6760 2004-03-15 Andrew Cagney <cagney@redhat.com>
6761
6762 * ppc-tdep.h: Update copyright.
6763 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6764 function signatures to match "regsets.h".
6765 * ppc-linux-tdep.c: Include "regset.h".
6766 (ELF_GREGSET_SIZE): Delete.
6767 (right_supply_register): New function.
6768 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6769 using right_supply_register.
6770 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6771 functions.
6772 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6773 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6774 (_initialize_ppc_linux_tdep): Do not register
6775 ppc_linux_regset_core_fns.
6776 (ppc_linux_regset_from_core_section): Replace
6777 fetch_core_registers.
6778 (ppc_linux_regset_core_fns): Delete.
6779 * ppc-linux-nat.c: (right_fill_reg): New function.
6780 (supply_gregset): Update call to ppc_linux_supply_gregset.
6781 (fill_gregset): Clear the register set, use right_fill_reg.
6782 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6783 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6784
6785 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6786 unsigned.
6787
6788 2004-03-15 Andrew Cagney <cagney@redhat.com>
6789
6790 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6791 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6792 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6793 and register_gdbarch_data.
6794 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6795 (struct gdbarch_data): Replace "init" by "pre_init" and
6796 "post_init".
6797 * gdbarch.h, gdbarch.c: Re-generate.
6798 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6799 with"obstack", use OBSTACK_ZALLOC.
6800 (dwarf2_frame_ops): Delete.
6801 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6802 (dwarf2_frame_init_reg): Use gdbarch_data.
6803 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6804 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6805 (_initialize_svr4_solib): Update.
6806 * user-regs.c (_initialize_user_regs): Update.
6807 * reggroups.c (_initialize_reggroup): Update.
6808 * regcache.c (_initialize_regcache): Update.
6809 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6810 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6811 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6812 * frame-unwind.c (_initialize_frame_unwind): Update.
6813 * frame-base.c (_initialize_frame_base): Update.
6814 * user-regs.c (user_reg_add): Update.
6815 * reggroups.c (reggroup_add): Update.
6816 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6817 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6818 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6819 * frame-base.c (frame_base_table): Update.
6820 * remote.c (_initialize_remote): Update.
6821 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6822
6823 2004-03-15 Andrew Cagney <cagney@redhat.com>
6824
6825 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6826
6827 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6828
6829 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6830 * frv-linux-tdep.c: New file.
6831 * frv-tdep.c (struct gdbarch_tdep): Add new field
6832 ``sigcontext_reg_addr''.
6833 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6834 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6835 (frv_sigramp_frame_sniffer): New functions.
6836 (frv_sigtramp_frame_unwind): New static global.
6837 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6838 sniffers.
6839 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6840 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6841
6842 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6843
6844 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6845 but not via a call to error(), when unable to read memory.
6846
6847 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6848
6849 * frv-tdep.c (frv_call_dummy_words): Delete.
6850 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6851
6852 2004-03-15 Andrew Cagney <cagney@redhat.com>
6853
6854 * infrun.c (handle_step_into_function, step_over_function): Only
6855 update and use STEP_FRAME_ID when the system is using legacy
6856 frames. Update comments.
6857
6858 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6859
6860 * amd64-linux-tdep.h: Remove file.
6861 * amd64-linux-tdep.c: Don't include "inferior.h" and
6862 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6863 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6864 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6865 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6866 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6867 macros.
6868 (user_to_gdb_regmap): Remove variable.
6869 (amd64_linux_gregset_reg_offset): New variable.
6870 (amd64_core_fns): Remove variable.
6871 (fetch_core_registers): Remove function.
6872 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6873 functions.
6874 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6875 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6876 * Makefile.in (amd64_linux_tdep_h): Remove.
6877 (amd64-linux-nat.o): Update dependencies.
6878 (amd64-linux-tdep.o): Update dependencies.
6879
6880 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6881 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6882 functions.
6883 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6884
6885 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6886 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6887
6888 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6889
6890 * dwarf2read.c (read_structure_type): Rename from
6891 read_structure_scope. Don't create a symbol or call process_die.
6892 Return immediately if die->type is set. Call read_type_die before
6893 dwarf2_add_member_fn.
6894 (process_structure_scope): New function.
6895 (read_enumeration_type, process_enumeration_scope): New functions,
6896 broken out from read_enumeration. Don't create the enumeration
6897 type if it has already been created.
6898 (read_enumeration): Removed.
6899 (process_die): Call read_structure_type, process_structure_scope,
6900 read_enumeration_type, and process_enumeration_scope. Just call
6901 new_symbol for base and subrange types. Add a comment about other
6902 type dies.
6903 (read_type_die): Call read_enumeration_type.
6904 (add_partial_structure, new_symbol): Update comments.
6905
6906 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6907
6908 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6909
6910 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6911
6912 * tui/tui-win.h (tui_get_cmd_list): Declare.
6913 * tui/tui-win.c (tui_command): New function.
6914 (tui_get_cmd_list): New function.
6915 (_initialize_tui_win): Moved initialization of tui command in
6916 tui_get_cmd_list.
6917
6918 * tui/tui-data.c (init_content_element): Setup new data members.
6919 (init_win_info): Likewise.
6920 (free_content_elements): Free it.
6921 * tui/tui-data.h (struct tui_data_element): Store the register
6922 content to print.
6923 (struct tui_data_info): Keep the current register group.
6924
6925 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6926
6927 * tui/tui-regs.h (tui_show_registers): Update prototype.
6928 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6929 (tui_resize_all): No need to calculate anything for register window.
6930 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6931 (tui_set_register_element, tui_set_general_regs_content): Remove.
6932 (tui_set_special_regs_content): Remove.
6933 (tui_set_general_and_special_regs_content): Remove.
6934 (tui_set_float_regs_content): Remove.
6935 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6936 (tui_set_regs_content): Remove.
6937 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6938 (tui_v_show_registers_command_support): Remove.
6939 (tui_show_registers): Use a reggroup to specify the registers to show.
6940 (tui_show_register_group): New function.
6941 (tui_display_registers_from): Compute the layout of register window
6942 and refresh with new API; be sure to delete old register windows.
6943 (tui_check_register_values): Update to use tui_get_register and
6944 tui_display_data.
6945 (tui_display_register): Just refresh the register window part.
6946 (tui_register_format): Format registers and save in tui_data_element.
6947 (tui_get_register): New to combine tui_reg_value_has_changed and
6948 tui_get_register_raw_value; fix to use the new gdb API.
6949 (tui_show_float_command): Renamed tui_reg_float_command.
6950 (tui_show_general_command): Renamed tui_reg_general_command.
6951 (tui_show_special_command): Renamed tui_reg_system_command.
6952 (_initialize_tui_regs): Remove unused commands.
6953
6954 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6955
6956 * NEWS (New native configurations): Mention OpenBSD/amd64.
6957
6958 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6959 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6960 Remove defines.
6961 * config/i386/nm-fbsd64.h: Likewise.
6962 * config/i386/nm-obsd.h: Likewise.
6963 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6964 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6965
6966 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6967
6968 * frv-tdep.c (set_variant_scratch_registers): New function.
6969 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6970 New constants.
6971
6972 From Richard Sandiford <rsandifo@redhat.com>:
6973 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6974
6975 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6976
6977 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6978 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6979 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6980 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6981 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6982 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6983 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6984 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6985 definitions from frv-tdep.c to frv-tdep.h.
6986
6987 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6988
6989 Add shared library support for FR-V FDPIC ABI:
6990 * Makefile.in (solib-frv.o): Add dependencies.
6991 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6992 New functions.
6993 (frv_push_dummy_call): Add support for FDPIC ABI.
6994 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6995 for FDPIC ABI.
6996 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6997 (frv_fdpic_find_canonical_descriptor): Declare.
6998 * solib-frv.c: New file.
6999 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7000 * config/frv/tm-frv.h (solib.h): Include.
7001
7002 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7003
7004 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7005 (frv-tdep.o): Update dependencies.
7006 * frv-tdep.h: New file.
7007 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7008 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7009 constants.
7010 (struct gdbarch_tdep): Add new member ``frv_abi''.
7011 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7012 functions.
7013 (new_variant): Set ``frv_abi'' field.
7014 (gdb_arch_init): Detect FDPIC executables.
7015
7016 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7017
7018 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7019 wrapper.
7020
7021 2004-03-11 Andrew Cagney <cagney@redhat.com>
7022
7023 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7024
7025 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7026
7027 * solist.h (master_so_list): New function.
7028 * solib.c (master_so_list): Likewise.
7029 * solib-svr4.c (enable_break): Iterate over so_list entries
7030 obtained from master list instead of entries obtained directly
7031 via svr4_current_sos().
7032
7033 2004-03-10 Ben Elliston <bje@gnu.org>
7034
7035 * MAINTAINERS: Update my mail address.
7036
7037 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7038
7039 * remote-m32r-sdi.c: Support hardware watchpoint.
7040
7041 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7042
7043 * user-regs.c: Update copyright years.
7044 (struct user_regs): Rename to gdb_user_regs.
7045 (append_user_reg, builtin_user_regs, user_regs_init)
7046 (user_reg_add, user_reg_map_name_to_regnum)
7047 (usernum_to_user_reg): Update.
7048
7049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7050
7051 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7052 (skip_children): New functions.
7053 (locate_pdi_sibling): Call skip_children.
7054
7055 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7056
7057 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7058 * gdbtypes.c (check_typedef): Update comments.
7059
7060 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7061
7062 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7063 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7064 pointer. Update comment about comp_unit_head.
7065 (struct abbrev_info): Shorten two int flags.
7066 (dwarf_alloc_abbrev): Take a CU argument.
7067 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7068 each time through the loop. Update cleanup argument.
7069 (psymtab_to_symtab_1): Update cleanup call.
7070 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7071 abbrev_obstack.
7072 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7073 Just call obstack_free and clear the pointer.
7074
7075 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7076
7077 * infrun.c (handle_inferior_event): Remove short-circuit code for
7078 events in a different thread.
7079
7080 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7081
7082 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7083 print the whole transfer.
7084 (initialize_targets): Update description of "set debug target".
7085
7086 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7087
7088 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7089
7090 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7091
7092 * MAINTAINERS (write after approval): Add myself.
7093
7094 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7095
7096 * sh-tdep.c (sh_print_registers_info): Use for loop.
7097 Don't skip multiple registers when a float register is encountered.
7098
7099 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7100
7101 Fix PR tdep/1291.
7102 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7103 to official SH documentation.
7104
7105 2004-03-07 Andrew Cagney <cagney@redhat.com>
7106
7107 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7108 unused function.
7109
7110 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7111
7112 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7113 (arm_get_next_pc): Handle BX and BLX.
7114
7115 2004-03-07 Andrew Cagney <cagney@redhat.com>
7116
7117 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7118 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7119 HPPA_SP_REGNUM.
7120 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7121 (hppa_target_read_fp): Delete.
7122 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7123 register_virtual_size, max_register_raw_size,
7124 max_register_virtual_size, register_byte, register_size,
7125 target_read_fp, fp_regnum, and register_bytes. Set register_type
7126 instead of register_virtual_type.
7127 (hppa32_register_type, hppa64_register_type): Replace
7128 hppa32_register_virtual_type and hppa64_register_virtual_type.
7129 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7130 (HPPA_FP_REGNUM): Define.
7131
7132 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7133
7134 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7135 (pa_do_registers_info): Delete.
7136 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7137 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7138 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7139
7140 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7141 GDB_TARGET_IS_HPPA code.
7142 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7143 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7144 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7145 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7146 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7147 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7148 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7149 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7150 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7151 (hppa_frameless_function_invocation, hppa64_store_return_value)
7152 (hppa_store_struct_return, hppa64_extract_return_value)
7153 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7154 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7155 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7156 (find_proc_framesize, deposit_21, restore_pc_queue)
7157 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7158 (rp_saved, pc_in_linker_stub): Delete.
7159
7160 Unconditionally enable 64-bit frame and ABI code.
7161 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7162 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7163 push_dummy_frame, fix_call_dummy, push_arguments,
7164 call_dummy_location, extract_return_value, use_struct_convention,
7165 store_return_value, store_struct_return, saved_pc_after_call,
7166 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7167 frame_chain, frame_chain_valid, frameless_function_invocation,
7168 frame_saved_pc, and pop_frame.
7169
7170 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7171 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7172 (hppa_gdbarch_init): Do not set PC_REGNUM.
7173
7174 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7175
7176 * config/alpha/tm-fbsd.h: Remove file.
7177 * config/alpha/fbsd.mt: Tweak comment.
7178 (TM_FILE): Set to tm-alpha.h.
7179
7180 2004-03-05 Andrew Cagney <cagney@redhat.com>
7181
7182 * infrun.c (step_over_function): When non-legacy code, and no
7183 step_frame_id, use the unwinder to get the caller's frame ID.
7184
7185 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7186
7187 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7188 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7189 bfd_arch_unknown. Adjust comment.
7190
7191 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7192 * i386obsd-tdep.c: Correct spelling in comment.
7193 * i386nbsd-tdep.c: Correct spelling in comment.
7194 * sparc-tdep.c: Correct spelling in comments.
7195
7196 2004-03-05 David Carlton <carlton@kealia.com>
7197
7198 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7199 bug.
7200
7201 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7202
7203 * sparc-tdep.c: Fix typo in comment.
7204
7205 2004-03-04 J. Brobecker <brobecker@gnat.com>
7206
7207 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7208
7209 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7210
7211 * dwarf2read.c: Add comment describing memory lifetimes.
7212 (struct dwarf2_pinfo): Update comment.
7213 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7214 (read_enumeration, new_symbol): Don't use obsavestring.
7215
7216 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7217
7218 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7219 instead of amd64_fill_fxsave.
7220 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7221 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7222
7223 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7224 Reorganize code a bit.
7225
7226 2004-03-04 Orjan Friberg <orjanf@axis.com>
7227
7228 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7229 when the frame pointer is pushed. Don't set the frame pointer's
7230 address on the stack unless it's actually located there.
7231 Set the SRP's address on the stack correctly when the PC is still in
7232 the prologue.
7233 (cris_return_value): New function.
7234 (cris_gdbarch_init): Clear deprecated store_return_value,
7235 extract_return_value.
7236
7237 2004-03-02 Jim Blandy <jimb@redhat.com>
7238
7239 * stabsread.c (reg_value_complaint): The maximum register number
7240 is one less than the number of registers.
7241
7242 2004-03-02 Andrew Cagney <cagney@redhat.com>
7243
7244 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7245 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7246 trailing comma and redundant assignment of I386_ST0_REGNUM.
7247 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7248 32-bit segment registers.
7249
7250 2004-03-01 Andrew Cagney <cagney@redhat.com>
7251
7252 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7253 use frame_relative_level and get_next_frame.
7254
7255 2004-02-29 Andrew Cagney <cagney@redhat.com>
7256
7257 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7258 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7259 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7260 Delete macro.
7261
7262 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7263
7264 * inflow.c (terminal_inferior): Don't give up the terminal if we
7265 previously couldn't get the inferior's terminal state.
7266
7267 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7268
7269 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7270 PC_REGNUM.
7271
7272 2004-02-28 Andrew Cagney <cagney@redhat.com>
7273
7274 * NEWS: Refer to GDB 6.1.
7275 * README: Refer to GDB 6.1.
7276 * PROBLEMS: Refer to GDB 6.1.
7277
7278 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7279
7280 * thread-db.c (disable_thread_signals): Remove unused function.
7281
7282 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7283
7284 * amd64-nat.c: Include "gdb_string.h".
7285 (amd64_collect_native_gregset): Zero-extend the 32-bit
7286 general-purpose registers and %eip.
7287
7288 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7289 * amd64-tdep.c (amd64_collect_fxsave): New function.
7290 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7291
7292 * i387-tdep.h: Update copyright year.
7293 (i387_collect_fxsave): New prototype.
7294 * i387-tdep.c: Update copyright year.
7295 (i387_collect_fxsave): New function containing most of the code
7296 from i387_fill_fxsave.
7297 (i387_fill_fxsave): Call i387_collect_fxsave.
7298
7299 2004-02-28 Andrew Cagney <cagney@redhat.com>
7300
7301 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7302 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7303
7304 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7305
7306 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7307
7308 2004-02-28 Andrew Cagney <cagney@redhat.com>
7309
7310 * utils.c: Use "", instead of <>, to include readline.
7311 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7312 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7313 * source.c, solib.c, exec.c, event-top.c: Ditto.
7314 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7315 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7316 * Makefile.in: Update all dependencies.
7317 (readline_tilde_h, readline_history_h): Define.
7318 (readline_headers): Delete.
7319
7320 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7321
7322 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7323 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7324 "config/i386/tm-lx64.h".
7325
7326 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7327 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7328 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7329
7330 2004-02-28 Andrew Cagney <cagney@redhat.com>
7331
7332 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7333
7334 * breakpoint.c (_initialize_breakpoint): Use
7335 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7336 Add help to show command.
7337
7338 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7339
7340 * i386-nat.c: Reformat to be closer to coding standards.
7341 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7342 `retval'. Make variables `align' and `size' local to while-loop.
7343 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7344 (_initialize_i386_nat): New prototype.
7345
7346 * tui/tui.c: Include <readline/readline.h> instead of
7347 "readline/readline.h". Include it after <term.h> and
7348 "gdb_curses.h".
7349
7350 2004-02-27 Andrew Cagney <cagney@redhat.com>
7351
7352 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7353 the new frame unwind code.
7354 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7355 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7356 PCOQ_HEAD_REGNUM.
7357
7358 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7359 "return_value" and "push_dummy_call".
7360 (hppa32_use_struct_convention): Delete unused function.
7361 (hppa32_store_return_value): Delete unused function.
7362 (hppa32_extract_return_value): Delete unused function.
7363 (hppa32_stack_align): Delete function.
7364
7365 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7366
7367 * coffread.c (enter_linenos): Don't let rawptr reference memory
7368 outside linetab[]'s limits.
7369
7370 2004-02-27 Andrew Cagney <cagney@redhat.com>
7371
7372 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7373 inferior stack space - the stack needs to grow upwards.
7374 (hppa32_frame_align): New function.
7375 (hppa64_frame_align): Replace hppa_frame_align.
7376 (hppa_gdbarch_init): Update.
7377
7378 2004-02-26 Orjan Friberg <orjanf@axis.com>
7379
7380 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7381 (dwarf2-frame.h): Include.
7382 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7383 Remove static variables related to ABI setting.
7384 (struct gdbarch_tdep): Remove cris_abi member.
7385 (struct frame_extra_info): Remove.
7386 (cris_unwind_cache, stack_item): New structs.
7387 (cris_frame_unwind, cris_frame_base): New variables.
7388 (push_stack_item, pop_stack_item)
7389 (cris_frame_unwind_cache, cris_frame_this_id)
7390 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7391 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7392 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7393 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7394 (cris_reg_struct_has_addr): New functions.
7395 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7396 (cris_frame_saved_pc, cris_saved_pc_after_call,
7397 (cris_store_struct_return, cris_frameless_function_invocation)
7398 (cris_pop_frame, cris_skip_prologue_main)
7399 (cris_abi_original_store_return_value)
7400 (cris_abi_v2_store_return_value)
7401 (cris_abi_original_extract_return_value)
7402 (cris_abi_v2_extract_return_value)
7403 (cris_abi_original_reg_struct_has_addr)
7404 (cris_abi_v2_reg_struct_has_addr)
7405 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7406 (cris_push_return_address, cris_abi_update): Remove.
7407 (_initialize_cris_tdep): Remove ABI command.
7408 (cris_dump_tdep): Ditto.
7409 (cris_gdbarch_init): Remove ABI command.
7410 Set store_return_value, extract_return_value, push_dummy_code,
7411 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7412 frame_unwind_append_sniffer, frame_base_set_default.
7413 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7414 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7415 sizeof_call_dummy_words, get_saved_register, push_return_address,
7416 pop_frame, store_struct_return, frame_init_saved_regs,
7417 init_extra_frame_info, frameless_function_invocation, frame_chain,
7418 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7419 dummy_write_sp.
7420
7421 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7422
7423 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7424 * valprint.c (print_hex_chars): Change from static to external.
7425 (print_char_chars): New function.
7426 * printcmd.c (print_scalar_formatted): For integer and enum types
7427 that are longer than LONGEST, perform processing via appropriate
7428 print_*_chars routines.
7429
7430 2004-02-26 Andrew Cagney <cagney@redhat.com>
7431
7432 * Makefile.in: Update dependencies.
7433 Changes from Ulrich Weigand,
7434 * s390-tdep.c: Include "dwarf2-frame.h".
7435 (s390_dwarf2_frame_init_reg): New function.
7436 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7437 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7438
7439 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7440
7441 * breakpoint.c (pending_break_support): New setting variable.
7442 (break_command_1): Account for pending_break_support setting
7443 when creating pending breakpoints.
7444 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7445 (_initialize_breakpoint): Add "set breakpoint pending" and
7446 "show breakpoint pending" commands.
7447
7448 2004-02-26 Andrew Cagney <cagney@redhat.com>
7449
7450 Fix PR i18n/1570.
7451 * charset.c (backslashable, backslashed, represented): Remove 'e'
7452 from list of escaped characters, not part of ISO-C.
7453
7454 2004-02-25 J. Brobecker <brobecker@gnat.com>
7455
7456 From Peter Schauer <schauer@pdf.de>:
7457 * tui/tui.c: Move system header includes after local includes.
7458 Fixes a build failure on solaris systems.
7459
7460 2004-02-25 J. Brobecker <brobecker@gnat.com>
7461
7462 * configure.in: Refine the previous change.
7463 * configure: Regenerate.
7464
7465 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7466
7467 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7468 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7469 "amd64-tdep.h" instead of "x86-64-tdep.h".
7470 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7471 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7472 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7473 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7474 and "x86-64-tdep.c".
7475 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7476 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7477 and "x86-64-tdep.c".
7478 * amd64bsd-nat.c: Update copyright year.
7479 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7480 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7481 "x86-64-tdep.h".
7482 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7483 "x86-64-tdep.h".
7484 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7485 "x86-64-tdep.h".
7486 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7487 "x86-64-tdep.h".
7488 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7489 "x86-64-tdep.h".
7490 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7491 "x86-64-tdep.h".
7492 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7493 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7494 * Makefile.in (amd64_linux_tdep_h): Renamed from
7495 x86_64_linux_tdep_h.
7496 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7497 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7498 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7499 (amd64obsd-tdep.o): Update dependencies.
7500 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7501 dependencies.
7502 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7503 dependencies.
7504 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7505 amd64-linux-nat.c amd64-linux-tdep.c.
7506 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7507 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7508 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7509 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7510 amd64-tdep.o and amd64-linux-tdep.o.
7511 (TM_FILE): Set to tm-linux64.h.
7512 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7513 (NAT_FILE): Set to nm-linux64.h.
7514 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7515 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7516 amd64-tdep.o.
7517 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7518 amd64-tdep.o.
7519 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7520 amd64-tdep.o.
7521
7522 2004-02-25 Roland McGrath <roland@redhat.com>
7523
7524 * remote.c (remote_protocol_qPart_auxv): New variable.
7525 (init_all_packet_configs): Initialize it.
7526 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7527 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7528 (show_remote_cmd): Call it.
7529 (_initialize_remote): Initialize commands.
7530 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7531 service TARGET_OBJECT_AUXV requests.
7532
7533 2004-02-25 J. Brobecker <brobecker@gnat.com>
7534
7535 * configure.in: Make sure that the wborder function is available.
7536 Otherwise, search for it in the cur_colr library.
7537 * configure: Regenerate.
7538
7539 2004-02-25 Andrew Cagney <cagney@redhat.com>
7540
7541 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7542
7543 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7544
7545 * config/i386/tm-x86-64linux.h: Tweak comments.
7546
7547 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7548
7549 * MAINTAINERS: Add self to write-after-approval list.
7550
7551 2004-02-25 Andrew Cagney <cagney@redhat.com>
7552
7553 PR cli/1566. Problem found, and fix suggested by David Allan.
7554 * cli/cli-script.c (execute_control_command): Unconditionally
7555 install a cleanup. Default "ret" to "invalid_control". Use
7556 "break" instead of "return" to escape from the switch.
7557
7558 2004-02-24 J. Brobecker <brobecker@gnat.com>
7559
7560 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7561 with the lines macro defined in term.h on AiX.
7562 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7563 a collision with the label_width macro defined in term.h on AiX.
7564
7565 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7566
7567 Committed by Kevin Buettner <kevinb@redhat.com>.
7568
7569 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7570 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7571 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7572 instead of ia64_write_pc().
7573 * ia64-linux-tdep.c (regcache.h): Include.
7574 (ia64_linux_write_pc): New function.
7575
7576 2004-02-23 Roland McGrath <roland@redhat.com>
7577
7578 * auxv.c (info_auxv_command): Fix typos in error messages.
7579
7580 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7581
7582 * x86-64-tdep.h: Tweak comment.
7583 (enum amd64_regnum): New.
7584 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7585 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7586 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7587 (X86_64_XMM1_REGNUM): Removed.
7588 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7589 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7590 prototypes for renamed functions.
7591 * x86-64-tdep.c: Fix typo.
7592 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7593 register numbers.
7594 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7595 Use constants from `enum amd64_regnum' for register numbers.
7596 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7597 (amd64_analyze_prologue, amd64_frame_cache,
7598 amd64_sigtramp_frame_cache): Use constants from `enum
7599 amd64_regnum' for register numbers.
7600 (amd64_supply_fpregset): Adjust for renamed functions.
7601 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7602 `enum amd64_regnum' for register numbers.
7603 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7604 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7605 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7606 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7607 (amd64_linux_fill_gregset): Adjust for renamed macros.
7608 (fetch_core_registers): Adjust for renamed functions.
7609 (amd64_linux_init_abi): Adjust for renamed functions.
7610 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7611 renamed functions.
7612 * amd64-nat.c: Adjust for renamed macros.
7613 * amd64bsd-nat.c (fetch_inferior_registers)
7614 (store_inferior_registers): Use constants from `enum amd64_regnum'
7615 for register numbers. Adjust for renamed variables.
7616 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7617 renamed variables.
7618 (_initialize_amd64fbsd_nat): Use constants from `enum
7619 amd64_regnum' for register numbers.
7620 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7621 `enum amd64_regnum' for register numbers.
7622 (amd64fbsd_init_abi): Adjust for renamed functions.
7623 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7624 `enum amd64_regnum' for register numbers.
7625 (amd64nbsd_init_abi): Adjust for renamed functions.
7626 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7627 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7628 `enum amd64_regnum' for register numbers.
7629 (amd64obsd_init_abi): Adjust for renamed functions.
7630 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7631
7632 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7633
7634 * breakpoint.c (print_one_breakpoint): Do not output spaces
7635 after printing <PENDING> for a pending breakpoint.
7636
7637 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7638
7639 * printcmd.c (print_scalar_formatted): Initialize val_long
7640 to remove compiler warning message.
7641
7642 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7643
7644 * defs.h (nquery, yquery): New prototypes.
7645 * breakpoint.c (break_command_1): Use new nquery interface.
7646 * utils.c (defaulted_query, nquery, yquery): New functions.
7647
7648 2004-02-23 Andrew Cagney <cagney@redhat.com>
7649
7650 * hppa-tdep.c (hppa_frame_align): New function.
7651 (hppa32_push_dummy_call): New function.
7652 (hppa64_push_dummy_call): New function.
7653 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7654 disabled.
7655
7656 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7657 FIX_CALL_DUMMY when push_dummy_call is available.
7658 (call_function_by_hand, push_dummy_code): Ditto.
7659
7660 2004-02-22 Andrew Cagney <cagney@redhat.com>
7661
7662 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7663 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7664 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7665 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7666 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7667 call_dummy_location to ON_STACK.
7668
7669 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7670
7671 * x86-64-linux-tdep.c: Tweak comment.
7672 (amd64_linux_supply_gregset): Renamed from
7673 x86_64_linux_supply_gresget.
7674 (amd64_linux_fill_gregset): Renamed from
7675 x86_64_linux_fill_gregset.
7676 (fetch_core_registers): Adjust for renamed functions.
7677 (amd64_core_fns): Renamed from x86_64_core_fns.
7678 (amd64_linux_sigtramp_start): Renamed from
7679 x86_64_linux_sigtramp_start.
7680 (amd64_linux_pc_in_sigtramp): Renamed from
7681 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7682 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7683 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7684 (amd64_linux_sigcontext_addr): Renamed from
7685 x86_64_linux_sigcontext_addr.
7686 (amd64_linux_sc_reg_offset): Renamed from
7687 x86_64_linux_sc_reg_offset.
7688 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7689 Adjust for renamed functions and variables.
7690 (_initialize_amd64_linux_tdep): Renamed from
7691 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7692 variables.
7693 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7694 Adjust for renamed functions.
7695
7696 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7697 from x86_64_linux_gregset64_reg_offset.
7698 (amd64_linux_gregset32_reg_offset): Rename from
7699 x86_64_linux_gregset64_reg_offset.
7700 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7701 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7702 (amd64_linux_dr_set_control): Renamed from
7703 x86_64_linux_dr_set_control. Adjust for renamed functions.
7704 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7705 Adjust for renamed functions.
7706 (amd64_linux_dr_reset_addr): Renamed from
7707 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7708 (amd64_linux_dr_get_status): Renamed from
7709 x86_64_linux_dr_get_status. Adjust for renamed functions.
7710 (_initialize_amd64_linux_nat): Renamed from
7711 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7712 functions.
7713 * config/i386/nm-x86-64linux.h: Update copyright year.
7714 Adjust for renamed functions.
7715
7716 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7717 amd64fbsd_sigtramp_start.
7718 (amd64fbsd_sigtramp_end_addr): Renamed from
7719 amd64fbsd_sigtramp_end.
7720 (amd64fbsd_init_abi): Adjust for renamed variables.
7721 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7722 variables.
7723 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7724 amd64fbsd_sigtramp_start.
7725 (amd64fbsd_sigtramp_end_addr): Renamed from
7726 amd64fbsd_sigtramp_end.
7727
7728 2004-02-22 Andrew Cagney <cagney@redhat.com>
7729
7730 * hppa-tdep.c (hppa32_return_value): New function.
7731 (hppa64_return_value): New function.
7732 (hppa_gdbarch_init): Set return_value; keep disabled.
7733
7734 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7735 struct-return and inferior function call methods.
7736
7737 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7738 "frame-base.h".
7739 (struct hppa_frame_cache): Define.
7740 (hppa_frame_cache, hppa_frame_this_id): New functions.
7741 (hppa_frame_prev_register): New function.
7742 (hppa_frame_unwind, hppa_frame_base): New variables.
7743 (hppa_frame_unwind_sniffer): New function.
7744 (hppa_frame_base_address, hppa_unwind_pc): New function.
7745 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7746 sniffer, and frame base sniffer; keep disabled.
7747 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7748 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7749
7750 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7751 to predicates for "seriously old code".
7752
7753 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7754 runtime if(0).
7755
7756 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7757 unsigned.
7758 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7759
7760 * config/pa/tm-hppa.h: Update copyright.
7761 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7762 (deprecated_init_frame_pc_default): Delete declaration.
7763 (hppa_frame_init_saved_regs): Delete declaration.
7764 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7765 * hppa-tdep.c: Include "arch-utils.h".
7766 (hppa_gdbarch_init): Set deprecated init_frame_pc
7767 and deprecated frame_init_saved_regs.
7768 (hppa_frame_init_saved_regs): Make static.
7769
7770 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7771
7772 Remove old 386BSD support.
7773 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7774 * configure.host: Remove i[34567]86-*-bsd*.
7775 * configure.tgt: Remove i[34567]86-*-bsd*.
7776 * i386b-nat.c: Removed.
7777 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7778 (i386b-nat.o): Remove dependencies.
7779
7780 * config/i386/i386bsd.mh: Removed.
7781 * config/i386/i386bsd.mt: Removed.
7782 * config/i386/nm-i386bsd.h: Removed.
7783 * config/i386/tm-i386bsd.h: Removed.
7784 * config/i386/xm-i386bsd.h: Removed.
7785
7786 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7787
7788 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7789 (amd64fbsd_init_abi): Set link map offsets.
7790 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7791 (amd64nbsd_init_abi): Set link map offsets.
7792 * amd64obsd-tdep.c: Include "solib-svr4.h".
7793 (amd64obsd_init_abi): Set link map offsets.
7794 * i386fbsd-tdep.c: Include "solib-svr4.h".
7795 (i386fbsd_init_abi): Set link map offsets.
7796 * i386nbsd-tdep.c: Include "solib-svr4.h".
7797 (i386nbsdelf_init_abi): Set link map offsets.
7798 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7799 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7800 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7801 solib-legacy.o and core-aout.o. Reformat.
7802 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7803 solib-svr4.o, solib-legacy.o. Reformat.
7804 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7805 * config/i386/nbsdelf.mh: Reformat.
7806 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7807 solib-svr4.o, solib-legacy.o and corelow.o.
7808 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7809 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7810 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7811 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7812 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7813 (TM_FILE): Set to tm-fbsd.h.
7814 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7815 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7816 solib-svr4.o.
7817 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7818 solib-svr4.o.
7819 (TM_FILE): Set to nm-nbsd.h.
7820 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7821 Simplify shared library support. Don't include "elf/common.h".
7822 (SVR4_SHARED_LIBS): Don't define.
7823 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7824 "solib.h".
7825 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7826 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7827 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7828 Don't include "i386/tm-i386.h". Include "solib.h".
7829 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7830 Don't include "i386/tm-i386.h".
7831 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7832 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7833 Include "i386/xm-i386.h".
7834 (HOST_LONG_DOUBLE_FORMAT): Remove.
7835
7836 Fix OpenBSD/i386 sigtramp recognition.
7837 * i386-tdep.h: Update copyright year.
7838 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7839 (i386bsd_sigtramp_end): New prototypes.
7840 (i386fbsd_sigtramp_start_addr): Renamed from
7841 i386fbsd_sigtramp_start.
7842 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7843 (i386obsd_sigtramp_start_addr): Renamed from
7844 i386obsd_sigtramp_start.
7845 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7846 * i386bsd-tdep.c: Update copyright year.
7847 (i386bsd_pc_in_sigtramp): Make public.
7848 * i386fbsd-nat.c: Update copyright year.
7849 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7850 * i386fbsd-tdep.c: Update copyright year.
7851 (i386fbsd_sigtramp_start_addr): Renamed from
7852 i386fbsd_sigtramp_start.
7853 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7854 (i386fbsdaout_init_abi): Adjust for renamed variables.
7855 * i386obsd-nat.c: Update copyright year.
7856 (_initialize_i386obsd_nat): Adjust for renamed variables.
7857 * i386obsd-tdep.c: Include "target.h".
7858 (i386obsd_page_size): New variable.
7859 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7860 (i386obsd_sigtramp_end): New functions.
7861 (i386obsd_sigtramp_start_addr): Renamed from
7862 i386obsd_sigtramp_start.
7863 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7864 (i386obsd_init_abi): Adjust for renamed variables. Set
7865 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7866 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7867
7868 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7869 trampoline change in OpenBSD kernel.
7870
7871 * amd64-nat.c: Update copyright year.
7872 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7873 architecture from REGCACHE.
7874
7875 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7876 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7877
7878 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7879
7880 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7881 i[34567]86-*-openbsd3.[0-3].
7882 * config/i386/obsdaout.mh: New file.
7883
7884 * config/i386/obsd.mh (MH_FLAGS): Remove.
7885
7886 Fix PR build/1549.
7887 * i386obsd-tdep.c: Update copyright years. Include
7888 "solib-svr4.h".
7889 (i386obsd_init_abi): Don't set regset_from_core_section here.
7890 (i386obsd_aout_init_abi): New function. Set
7891 regset_from_core_section here.
7892 (i386obsd_elf_init_abi): New function.
7893 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7894 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7895 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7896 (TM_FILE): Set to tm-nbsd.h.
7897
7898 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7899 solib-sunos.o.
7900
7901 * solib-svr4.h: Update copyright year.
7902 (svr4_ilp32_fetch_link_map_offsets)
7903 (svr4_lp64_fetch_link_map_offsets): New prototype.
7904 * solib-svr4.c: Update copyright year.
7905 (svr4_ilp32_fetch_link_map_offsets)
7906 (svr4_lp64_fetch_link_map_offsets): New function.
7907
7908 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7909
7910 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7911 to the partial symbol table.
7912
7913 2004-02-20 J. brobecker <brobecker@gnat.com>
7914
7915 * PROBLEMS: Add description of problem documented under gdb/1560.
7916
7917 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7918
7919 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7920 comments.
7921 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7922 functions.
7923 (amd64obsd_init_abi): Reorder initializations. Use
7924 amd64obsd_r_reg_offset to initialize the general-purpose register
7925 set details. Set regset_from_core_section.
7926 (_initialize_amd64obsd_tdep): Rename from
7927 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7928 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7929 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7930
7931 * NEWS (New native configurations): Mention OpenBSD/alpha.
7932 * configure.tgt: Add alpha*-*-openbsd*.
7933 * configure.host: Add alpha*-*-openbsd*.
7934 * alphanbsd-tdep.c: Update copyright year.
7935 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7936
7937 2004-02-20 Andrew Cagney <cagney@redhat.com>
7938
7939 Fix PR tdep/1372.
7940 * configure.tgt: Delete target "none-*-*".
7941 * configure.host: Delete host "none-*-*".
7942 * config/none/none.mh: Delete file.
7943 * config/none/none.mt: Delete file.
7944 * config/none/xm-none.h: Delete file.
7945 * config/none/tm-none.h: Delete file.
7946 * config/none/nm-none.h: Delete file.
7947
7948 2004-02-19 Fred Fish <fnf@redhat.com>
7949
7950 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7951 cache->uses_fp prior to setting it.
7952
7953 2004-02-19 Fred Fish <fnf@redhat.com>
7954
7955 Fix for PR breakpoint/1558.
7956 * sh-tdep.c (IS_JSR): New macro.
7957 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7958
7959 2004-02-19 Jim Blandy <jimb@redhat.com>
7960
7961 * findvar.c (value_from_register): Doc fix.
7962
7963 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7964
7965 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7966 type being greater than sizeof of host's LONGEST. Always use
7967 unpack_long() unless format 'f' chosen.
7968
7969 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7970
7971 Committed by Elena Zannoni <ezannoni@redhat.com>
7972
7973 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7974 contains a symbol wich is the best, non-exact match for the given
7975 pc. Update comments.
7976
7977 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7980 macro, which was part of the now removed Mach 3 port.
7981 * utils.c (request_quit): Ditto.
7982
7983 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7984
7985 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7986 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7987
7988 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7989
7990 Committed by Mark Kettenis <kettenis@gnu.org>.
7991
7992 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7993 Define.
7994
7995 2004-02-18 Andrew Cagney <cagney@redhat.com>
7996
7997 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7998 CONFIG_INSTALL and CONFIG_UNINSTALL.
7999 * configure: Re-generate.
8000 * interps.h (INTERP_TUI): Define.
8001 * Makefile.in: Update dependencies.
8002 (TUI): New macro.
8003 (tui-main.o): Specify dependencies.
8004 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8005 * tui/tui-main.c: New file.
8006
8007 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8008
8009 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8010 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8011 dependencies.
8012 * configure.host: Add x86_64-*-openbsd*.
8013 * configure.tgt: Add x86_64-*-openbsd*.
8014 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8015
8016 * tui/tui.c: Don't include <malloc.h>.
8017
8018 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8019 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8020 amd64nbsd-tdep.c.
8021
8022 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8023 static. Remove extraneous whitespace.
8024 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8025 static.
8026
8027 2004-02-17 Jim Blandy <jimb@redhat.com>
8028
8029 * findvar.c (value_from_register): Doc fix.
8030
8031 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8032
8033 Committed by Jim Blandy <jimb@redhat.com>.
8034
8035 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8036 CORE_ADDR as type for selectors. Correct types for GNU run time
8037 message lookup function to use double indirection.
8038 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8039 * objc-lang.h (lookup_child_selector): Adapt prototype.
8040
8041 * s390-nat.c (SUBOFF): New macro.
8042 (supply_gregset, fill_gregset): Use it to handle debugging
8043 of 32-bit exectuables running under a 64-bit kernel.
8044 * s390-tdep.c: Include "solib-svr4.h".
8045 (s390_svr4_fetch_link_map_offset): New function.
8046 (s390x_svr_fetch_link_map_offset): Likewise.
8047 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8048 * Makefile.in (s390-tdep.o): Update dependencies.
8049
8050 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8051 "frame-unwind.h".
8052 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8053 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8054 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8055 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8056 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8057 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8058 S390_SIGNAL_FRAMESIZE,
8059 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8060 (struct frame_extra_info): Remove.
8061 (s390_memset_extra_info): Remove.
8062 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8063 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8064 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8065 (is_rse): Renamed to ...
8066 (is_rsy): ... this. Support long displacements.
8067 (is_rxe): Renamed to ...
8068 (is_rxy): ... this. Support long displacements.
8069 (compute_x_addr): Support long displacements.
8070 (struct s390_prologue_data): New data type.
8071 (s390_on_stack): Change API to use struct s390_prologue_data.
8072 (s390_store): Reimplement.
8073 (s390_load): New function.
8074 (s390_get_signal_frame_info): Remove.
8075 (s390_get_frame_info): Remove, replace by ...
8076 (s390_analyze_prolog): ... this new function.
8077 (s390_check_function_end): Remove.
8078 (s390_function_start): Remove.
8079 (s390_frameless_function_invokation): Remove.
8080 (s390_is_sigreturn): Remove.
8081 (s390_init_frame_pc_first): Remove.
8082 (s390_init_frame_extra_info): Remove.
8083 (s390_frame_init_saved_regs): Remove.
8084 (s390_frame_saved_pc_nofix): Remove.
8085 (s390_frame_saved_pc): Remove.
8086 (s390_frame_chain): Remove.
8087 (s390_fp_regnum, s390_read_fp): Remove.
8088 (s390_pop_frame_regular, s390_pop_frame): Remove.
8089 (s390_saved_pc_after_call): Remove.
8090 (s390_skip_prologue): Reimplement.
8091 (s390_in_function_epilogue_p): Support long displacements.
8092 (struct s390_unwind_cache): New data structure.
8093 (s390_frame_unwind_cache): New function.
8094 (s390_prologue_frame_unwind_cache): Likewise.
8095 (s390_backchain_frame_unwind_cache): Likewise.
8096 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8097 (s390_frame_unwind): Define.
8098 (s390_frame_sniffer): New function.
8099 (struct s390_pltstub_unwind_cache): New data structure.
8100 (s390_pltstub_frame_unwind_cache): New function.
8101 (s390_pltstub_frame_this_id): Likewise.
8102 (s390_pltstub_frame_prev_register): Likewise.
8103 (s390_pltstub_frame_unwind): Define.
8104 (s390_pltstub_frame_sniffer): New function.
8105 (struct s390_sigtramp_unwind_cache): New data structure.
8106 (s390_sigtramp_frame_unwind_cache): New function.
8107 (s390_sigtramp_frame_this_id): Likewise.
8108 (s390_sigtramp_frame_prev_register): Likewise.
8109 (s390_sigtramp_frame_unwind): Define.
8110 (s390_sigtramp_frame_sniffer): New function.
8111 (s390_frame_base_address, s390_local_base_address): New functions.
8112 (s390_frame_base): Define.
8113 (s390_unwind_pc, s390_unwind_sp): New function.
8114 (s390_push_dummy_call): Use new frame base location.
8115 (s390_unwind_dummy_id): Likewise.
8116 (s390_gdbarch_init): Remove calls to:
8117 set_gdbarch_frameless_function_invocation,
8118 set_gdbarch_deprecated_init_frame_pc,
8119 set_gdbarch_deprecated_frame_chain,
8120 set_gdbarch_deprecated_frame_init_saved_regs,
8121 set_gdbarch_deprecated_pop_frame,
8122 set_gdbarch_deprecated_init_extra_frame_info,
8123 set_gdbarch_deprecated_init_frame_pc_first,
8124 set_gdbarch_deprecated_target_read_fp,
8125 set_gdbarch_deprecated_frame_saved_pc,
8126 set_gdbarch_deprecated_saved_pc_after_call,
8127 set_gdbarch_deprecated_fp_regnum.
8128 Add calls to:
8129 set_gdbarch_in_solib_call_trampoline,
8130 frame_unwind_append_sniffer,
8131 frame_base_set_default,
8132 set_gdbarch_unwind_pc,
8133 set_gdbarch_unwind_sp.
8134 * Makefile.in (s390-tdep.o): Update dependencies.
8135
8136 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8137 (S390_STACK_FRAME_OVERHEAD): Remove.
8138 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8139 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8140 (s390_promote_integer_argument): Remove.
8141 (s390_cannot_extract_struct_value_address): Remove.
8142 (s390_use_struct_convention, s390_store_struct_return): Remove.
8143 (s390_extract_return_value, s390_store_return_value): Remove.
8144 (s390_return_value_convention, s390_return_value): New functions.
8145 (is_float_singleton): Handle typedefs.
8146 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8147 Remove, replace by ...
8148 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8149 s390_function_arg_integer): ... these new functions.
8150 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8151 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8152 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8153 Fill in tdep->abi.
8154 Remove calls to:
8155 set_gdbarch_deprecated_store_struct_return,
8156 set_gdbarch_deprecated_extract_return_value,
8157 set_gdbarch_deprecated_store_return_value,
8158 set_gdbarch_use_struct_convention,
8159 set_gdbarch_extract_struct_value_address,
8160 set_gdbarch_deprecated_pc_in_call_dummy,
8161 set_gdbarch_deprecated_push_arguments,
8162 set_gdbarch_deprecated_save_dummy_frame_tos,
8163 set_gdbarch_deprecated_push_return_address,
8164 set_gdbarch_deprecated_sizeof_call_dummy_words,
8165 set_gdbarch_deprecated_call_dummy_words,
8166 set_gdbarch_deprecated_dummy_write_sp.
8167 Add calls to:
8168 set_gdbarch_push_dummy_call,
8169 set_gdbarch_unwind_dummy_id,
8170 set_gdbarch_return_value.
8171
8172 * config/s390/nm-linux.h: Update comments.
8173 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8174 (STOPPED_BY_WATCHPOINT): Redefine.
8175 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8176 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8177 (s390_stopped_by_watchpoint): Likewise.
8178 (watch_area_cnt): Remove.
8179 * s390-nat.c: Update comments.
8180 (watch_area): Remove typedef.
8181 Global replace watch_area by struct watch_area.
8182 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8183 (s390_stopped_by_watchpoint): Remove pid argument,
8184 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8185 (s390_fix_watch_points): Remove pid argument,
8186 use s390_inferior_tid. Recompute area spanned by watchpoints.
8187 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8188 argument. Reimplement.
8189
8190 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8191 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8192 (FETCH_INFERIOR_REGISTERS): Define.
8193 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8194 core-regset.o.
8195 * config/s390/s390x.mt: Remove.
8196 * config/s390/tm-s390.h: Remove.
8197 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8198 (TARGET_ELF64): Remove.
8199 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8200 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8201 s390*-*-* case; always set gdb_target to s390.
8202 * regformats/reg-s390.dat: Remove control registers.
8203 * regformats/reg-s390x.dat: Likewise.
8204 * s390-tdep.h: New file.
8205 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8206 Include "inferior.h" and "s390-tdep.h".
8207 Remove private definition of offsetof.
8208 (s390_register_u_addr): Remove.
8209 (regmap_gregset, regmap_fpregset): Define.
8210 (supply_gregset, fill_gregset): Reimplement.
8211 (supply_fpregset, fill_fpregset): Likewise.
8212 (s390_inferior_tid): New function.
8213 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8214 (fetch_inferior_registers, store_inferior_registers): Likewise.
8215 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8216 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8217 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8218 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8219 (struct gdbarch_tdep): Define.
8220 (struct s390_register_info): Define.
8221 (s390_register_info): New variable.
8222 (s390_register_name): Reimplement.
8223 (s390_register_type): New function.
8224 (s390_register_raw_size, s390x_register_raw_size): Remove.
8225 (s390_cannot_fetch_register): Remove.
8226 (s390_register_byte): Remove.
8227 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8228 (s390_dwarf_regmap): New variable.
8229 (s390_dwarf_reg_to_regnum): New function.
8230 (s390_stab_reg_to_regnum): Remove.
8231 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8232 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8233 (s390_convert_register_p): Likewise.
8234 (s390_register_to_value, s390_value_to_register): Likewise.
8235 (s390_register_reggroup_p): Likewise.
8236 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8237 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8238 (s390_supply_regset, s390_regset_from_core_section): New functions.
8239 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8240 (S390_FPR_SIZE): Likewise.
8241 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8242 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8243 (S390_NUM_GPRS): Move here from tm-s390.h.
8244 (S390_NUM_FPRS): Likewise.
8245 (s390_in_function_epilogue_p): New function.
8246 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8247 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8248 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8249 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8250 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8251 Remove calls to:
8252 set_gdbarch_deprecated_max_register_raw_size,
8253 set_gdbarch_deprecated_max_register_virtual_size,
8254 set_gdbarch_deprecated_register_byte,
8255 set_gdbarch_cannot_fetch_register,
8256 set_gdbarch_cannot_store_register,
8257 set_gdbarch_deprecated_register_size,
8258 set_gdbarch_deprecated_register_raw_size,
8259 set_gdbarch_deprecated_register_virtual_size,
8260 set_gdbarch_deprecated_register_virtual_type,
8261 set_gdbarch_deprecated_register_bytes.
8262 Add calls to:
8263 set_gdbarch_num_pseudo_regs,
8264 set_gdbarch_register_type,
8265 set_gdbarch_convert_register_p,
8266 set_gdbarch_register_to_value,
8267 set_gdbarch_value_to_register,
8268 set_gdbarch_register_reggroup_p,
8269 set_gdbarch_regset_from_core_section,
8270 set_gdbarch_pseudo_register_read,
8271 set_gdbarch_pseudo_register_write,
8272 set_gdbarch_in_function_epilogue_p.
8273 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8274 (s390_tdep_h): New variable.
8275
8276 2004-02-17 Jim Blandy <jimb@redhat.com>
8277
8278 * findvar.c (value_from_register): If the type has no length, just
8279 return an acceptable value --- don't report an internal error.
8280
8281 * stabsread.c (read_type): If we find any type numbers that are
8282 forward references, complain if the references aren't resolved by
8283 the time we're finished reading.
8284 (cleanup_undefined_types): Make error message more appropriate for
8285 a complaint.
8286
8287 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8288
8289 * Makefile.in (defs_h): Remove dependency on progress_h.
8290 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8291 progress.h.
8292 * main.c (captured_main): Delete use of START_PROGRESS and
8293 END_PROGRESS.
8294
8295 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * objfiles.c (terminate_minimal_symbol_table): Add back
8298 initialization of MSYMBOL_TYPE.
8299
8300 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8301
8302 Committed by Andrew Cagney.
8303 * Makefile.in (ia64_tdep_h): New macro.
8304 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8305 (ia64-tdep.o): Likewise.
8306 * ia64-tdep.h: New file.
8307 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8308 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8309 (ia64_aix_sigcontext_register_address): Likewise.
8310 (ia64_linux_getunwind_table): Delete declaration.
8311 * ia64-linux-tdep.c: Likewise.
8312
8313 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8314
8315 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8316 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8317 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8318
8319 2004-02-17 Andrew Cagney <cagney@redhat.com>
8320
8321 * symtab.c (skip_prologue_using_sal): New function.
8322 * symtab.h (skip_prologue_using_sal): Declare.
8323 * frv-tdep.c: Include "symtab.h".
8324 (skip_prologue_using_sal): Delete function.
8325 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8326 * rs6000-tdep.c (refine_prologue_limit): Mention
8327 skip_prologue_using_sal.
8328 * ia64-tdep.c (refine_prologue_limit): Ditto.
8329 * Makefile.in: Update dependencies.
8330
8331 2004-02-16 Andrew Cagney <cagney@redhat.com>
8332
8333 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8334 START_INFERIOR_TRAPS_EXPECTED.
8335 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8336 START_INFERIOR_TRAPS_EXPECTED.
8337 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8338 Delete macro.
8339 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8340 macro, moved to "nm-osf.h". Update copyright.
8341 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8342 update copyright.
8343
8344 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8345 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8346 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8347 frameless_look_for_prologue.
8348 * frame.h (legacy_frameless_look_for_prologue): Rename
8349 frameless_look_for_prologue.
8350 * gdbarch.h, gdbarch.c: Re-generate.
8351 * sh64-tdep.c (sh64_gdbarch_init): Update.
8352 * sh-tdep.c (sh_gdbarch_init): Update.
8353 * s390-tdep.c (s390_gdbarch_init): Update.
8354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8355 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8356 * m68k-tdep.c (m68k_gdbarch_init): Update.
8357 (delta68_frame_args_address): Update.
8358 * m32r-tdep.c (m32r_gdbarch_init): Update.
8359 * hppa-tdep.c (hppa_gdbarch_init): Update.
8360 * h8300-tdep.c (h8300_gdbarch_init): Update.
8361 * frv-tdep.c (frv_gdbarch_init): Update.
8362 (frv_frameless_function_invocation): Update.
8363 * cris-tdep.c (cris_gdbarch_init): Update.
8364 (cris_frameless_function_invocation): Update.
8365 * avr-tdep.c (avr_gdbarch_init): Update.
8366 * arm-tdep.c (arm_gdbarch_init): Update.
8367 * stack.c (frame_info): Update, call predicate.
8368 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8369 * frame.c (legacy_get_prev_frame): Update, call predicate..
8370 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8371 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8372 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8373 invocation.
8374 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8375 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8376 * vax-tdep.c (vax_gdbarch_init): Ditto.
8377
8378 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8379 function.
8380
8381 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8384 initializations.
8385
8386 2004-02-16 Andrew Cagney <cagney@redhat.com>
8387
8388 * tui/tui-windata.c: Include "gdb_string.h".
8389 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8390 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8391 * Makefile.in: Update dependencies.
8392
8393 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8396 * infrun.c: Include "gdb_assert.h".
8397 (singlestep_ptid, saved_singlestep_ptid)
8398 (stepping_past_singlestep_breakpoint): New variables.
8399 (resume): Set singlestep_ptid. Check for singlestep thread
8400 hop.
8401 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8402 (handle_inferior_event): Handle singlestep thread hop.
8403
8404 2004-02-16 Andrew Cagney <cagney@redhat.com>
8405
8406 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8407 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8408 (dwarf2_frame_init_reg): Ditto.
8409
8410 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8411 suggested by Joshua Neuheisel
8412
8413 * configure.in: Always check for curses, including pdcurses.
8414 Warn, instead of error, when no curses are found. Enable TUI when
8415 curses is available.
8416 * configure: Re-generate.
8417
8418 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8419
8420 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8421 sh_sh4_register_convert_to_virtual.
8422 (sh_register_convert_to_raw): Rename from
8423 sh_sh4_register_convert_to_raw.
8424 (sh_pseudo_register_read): Accomodate above name change.
8425 (sh_pseudo_register_write): Ditto.
8426
8427 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8428
8429 * sh-tdep.c (sh_generic_register_name): Remove.
8430 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8431
8432 2004-02-15 Andrew Cagney <cagney@redhat.com>
8433
8434 * configure.in (build_warnings): Add -Wunused-function.
8435 * configure: Re-generate.
8436
8437 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8438 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8439
8440 * procfs.c (procfs_init_inferior): Assume that
8441 START_INFERIOR_TRAPS_EXPECTED is defined.
8442 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8443 * config/ns32k/tm-nbsd.h: Delete file,
8444 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8445
8446 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8447 * config/vax/tm-vax.h: Delete file.
8448
8449 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8450 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8451 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8452 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8453 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8454 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8455 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8456
8457 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8458
8459 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8460 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8461 (struct dwarf2_frame_ops): New.
8462 (dwarf2_frame_default_init_reg): New function, based on
8463 dwarf2_frame_init_reg.
8464 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8465 (dwarf2_frame_init_reg): Call architecture-specific function.
8466 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8467 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8468 instead of dwarf2_frame_data.
8469 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8470 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8471
8472 2004-02-15 Andrew Cagney <cagney@redhat.com>
8473
8474 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8475 register_gdbarch_swap.
8476 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8477 * f-lang.c (_initialize_f_language): Update, use
8478 DEPRECATED_REGISTER_GDBARCH_SWAP.
8479 * remote.c (_initialize_remote): Ditto.
8480 * regcache.c (_initialize_regcache): Ditto.
8481 * parse.c (_initialize_parse): Ditto.
8482 * infrun.c (_initialize_infrun): Ditto.
8483 * mi/mi-main.c (_initialize_mi_main): Ditto.
8484 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8485
8486 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8487 poking .cacheable directly.
8488 * symfile.c (symfile_bfd_open): Ditto.
8489
8490 * Makefile.in: Update all dependencies.
8491
8492 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8493 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8494 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8495 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8496 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8497
8498 2004-02-14 Andrew Cagney <cagney@redhat.com>
8499
8500 * arch-utils.c (legacy_convert_register_p): Check
8501 DEPRECATED_REGISTER_CONVERTIBLE_P.
8502 * findvar.c (value_of_register): Ditto.
8503
8504 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8505 * gdbarch.h, gdbarch.c: Re-generate.
8506 * arch-utils.c (deprecated_register_convertible_not): Delete.
8507 * arch-utils.h (deprecated_register_convertible_not): Delete.
8508 * mi/mi-main.c (get_register): Update. Update copyright.
8509 * infcmd.c (default_print_registers_info): Update.
8510
8511 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8512 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8513 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8514 * gdbarch.h, gdbarch.c: Re-generate.
8515 * frame.c (deprecated_get_next_frame_hack): Delete function.
8516 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8517 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8518 Update.
8519 * infcall.c (call_function_by_hand): Update.
8520
8521 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8522
8523 * symfile.c (init_entry_point_info, entry_point_address): Move
8524 from here...
8525 * objfiles.c (init_entry_point_info, entry_point_address):..to
8526 here.
8527 * symfile.h (init_entry_point_info, entry_point_address): Remove
8528 prototypes.
8529 * objfiles.h (init_entry_point_info, entry_point_address):Add
8530 prototypes.
8531 * cris-tdep.c: Remove include of symfile.h. Add include of
8532 objfiles.h.
8533 * infcall.c: Ditto.
8534 * mcore-tdep.c: Ditto.
8535 * mn10300-tdep.c: Ditto.
8536 * sh64-tdep.c: Ditto.
8537 * v850-tdep.c: Ditto.
8538 * arm-tdep.c: Remove include of symfile.h.
8539 * blockframe.c: Ditto.
8540 * coffread.c: Ditto.
8541 * dbxread.c: Ditto.
8542 * dwarf2read.c: Ditto.
8543 * dwarfread.c: Ditto.
8544 * frv-tdep.c: Ditto.
8545 * ia64-tdep.c: Ditto.
8546 * mdebugread.c: Ditto.
8547 * mipsread.c: Ditto.
8548 * rs6000-tdep.c: Ditto.
8549 * s390-tdep.c: Ditto.
8550 * sh-tdep.c: Ditto.
8551 * xstormy16-tdep.c: Ditto.
8552 * gdbarch.sh: Remove include of symfile.h.
8553 * gdbarch.c: Regenerate.
8554 * solib-irix.c (enable_break): Use entry_point_address().
8555 Add comment about include file.
8556 * xcoffread.c: Add comment about include file.
8557 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8558 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8559 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8560 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8561 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8562
8563 2004-02-13 Andrew Cagney <cagney@redhat.com>
8564
8565 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8566 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8567 copyright.
8568 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8569
8570 2004-02-12 Fred Fish <fnf@redhat.com>
8571
8572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8573 set_gdbarch_store_return_value.
8574
8575 2004-02-12 Andrew Cagney <cagney@redhat.com>
8576
8577 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8578 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8579 (interrupt_query): Ditto.
8580 (ofunc): Delete unused variable.
8581 * cris-tdep.c (cris_abi): Delete unused function.
8582 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8583 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8584 (cris_get_asr_quick_shift_steps): Ditto.
8585 (cris_skip_prologue_frameless_p): Ditto.
8586 * arm-tdep.c (arm_push_return_address): Delete unused function.
8587 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8588 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8589 * s390-tdep.c (s390_function_start): Delete unused function.
8590
8591 2004-02-12 Andrew Cagney <cagney@redhat.com>
8592
8593 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8594 gdbarch.h, gdbarch.c: Re-generate.
8595 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8596 to generic_prologue_frameless_p.
8597 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8598 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8599
8600 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8601
8602 * mips-linux-tdep.c: Include "frame.h".
8603 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8604 (mips_linux_skip_resolver): New functions.
8605 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8606 and set_gdbarch_in_solib_call_trampoline.
8607 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8608 to after set_gdbarch_in_solib_return_trampoline. Only set the
8609 solib hooks to mips16 functions if the OS ABI is unknown.
8610 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8611 including "config/tm-linux.h".
8612 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8613 * Makefile.in (mips-linux-tdep.o): Update.
8614
8615 2004-02-11 David Carlton <carlton@kealia.com>
8616
8617 * linespec.c (decode_compound): Only look for a class symbol when
8618 considering all but the rightmost component.
8619
8620 2004-02-11 Andrew Cagney <cagney@redhat.com>
8621
8622 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8623 abi code are are separatly grouped.
8624
8625 2004-02-11 Andrew Cagney <cagney@redhat.com>
8626
8627 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8628 * gdbarch.h, gdbarch.c: Re-generate.
8629 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8630 * v850-tdep.c (v850_gdbarch_init): Update.
8631 * sh64-tdep.c (sh64_gdbarch_init): Update.
8632 * sh-tdep.c (sh_gdbarch_init): Update.
8633 * s390-tdep.c (s390_gdbarch_init): Update.
8634 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8635 * mips-tdep.c (mips_gdbarch_init): Update.
8636 * mcore-tdep.c (mcore_gdbarch_init): Update.
8637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8638 * m32r-tdep.c (m32r_gdbarch_init): Update.
8639 * ia64-tdep.c (ia64_gdbarch_init): Update.
8640 * hppa-tdep.c (hppa_gdbarch_init): Update.
8641 * h8300-tdep.c (h8300_gdbarch_init): Update.
8642 * frv-tdep.c (frv_gdbarch_init): Update.
8643 * d10v-tdep.c (d10v_gdbarch_init): Update.
8644 * cris-tdep.c (cris_gdbarch_init): Update.
8645 * avr-tdep.c (avr_gdbarch_init): Update.
8646 * arm-tdep.c (arm_gdbarch_init): Update.
8647 * alpha-tdep.c (alpha_gdbarch_init): Update.
8648
8649 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8650
8651 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8652 comma.
8653 (sh_sh4al_dsp_register_name): Ditto.
8654
8655 2004-02-10 Andrew Cagney <cagney@redhat.com>
8656
8657 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8658 (mips_init_frame_pc_first): Delete function.
8659 (mips_frame_saved_pc): Delete function.
8660 (mips_frame_chain): Delete function.
8661 (mips_init_extra_frame_info): Delete function.
8662 (mips_xfer_register): Delete unused variable "reg".
8663 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8664 (mips_n32n64_return_value): Delete unused variable "reg".
8665 (mips_n32n64_return_value): Delete unused variable "pos".
8666 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8667 (mips_o32_return_value): Delete unused variable "pos".
8668 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8669 (mips_print_fp_register): Delete unused variable "namelen"
8670 (mips_print_fp_register): Delete unused variable "flt2"
8671 (get_frame_pointer): Delete function.
8672 (cached_proc_desc): Delete static variable.
8673 (mips_pop_frame): Delete function.
8674 (mips_find_saved_regs): Delete function.
8675 (mips_get_saved_register): Delete function.
8676 (mips_saved_pc_after_call): Delete function.
8677 (SIGFRAME_BASE): Delete macro.
8678 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8679 (SIGFRAME_PC_OFF): Delete macro.
8680 (SIGFRAME_REGSAVE_OFF): Delete macro.
8681 (mips_dump_tdep): Do not print deleted macro definitions.
8682
8683 2004-02-10 Andrew Cagney <cagney@redhat.com>
8684
8685 * Makefile.in (SFILES): Remove explictly listed tui files.
8686 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8687
8688 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8689
8690 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8691 to use paddr functions to format ia64 addresses and long values.
8692 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8693 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8694 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8695 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8696 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8697
8698 2004-02-10 Andrew Cagney <cagney@redhat.com>
8699
8700 * defs.h: Do not include "tui.h".
8701 * gdb_curses.h: New file.
8702 * tui/tui-hooks.h: New file.
8703 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8704 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8705 (tui_initialize_io): Delete declaration.
8706 (tui_initialize_readline: Delete redundant declaration.
8707 (struct tui_point): Delete definition.
8708 * tui/tui-data.h (struct tui_point): Define.
8709 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8710 * utils.c: Include "tui/tui.h".
8711 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8712 * printcmd.c [TUI]: Include "tui/tui.h".
8713 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8714 * tui/tui-command.c: Include "gdb_curses.h".
8715 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8716 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8717 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8718 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8719 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8720 * Makefile.in: Update all dependencies.
8721 (tui_hooks_h, gdb_curses_h): Define.
8722 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8723
8724 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8725
8726 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8727 auxf2. Add comments about some other rarely used fields.
8728
8729 2004-02-10 Andrew Cagney <cagney@redhat.com>
8730
8731 * Makefile.in (init.c): Fix script removing duplicates. Problem
8732 reported by Peter Schauer.
8733
8734 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8735
8736 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8737 obstack_specify_allocation.
8738 * objfiles.c (allocate_objfile): Ditto.
8739 * solib-sunos.c (solib_add_common_symbols)
8740 (allocate_rt_common_objfile): Ditto.
8741 * symfile.c (reread_symbols): Ditto.
8742 * gdb_obstack.h: Add comment.
8743
8744 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8745
8746 * linespec.c (decode_line_1, locate_first_half)
8747 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8748 commented out code.
8749
8750 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8751
8752 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8753 obstack_free.
8754
8755 2004-02-09 Andrew Cagney <cagney@redhat.com>
8756
8757 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8758 fails, try find_pc_section. Fix PR c++/1267.
8759 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8760 instead of find_pc_mapped_section.
8761 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8762 not default to the section containing PC. Fix PR symtab/1519.
8763
8764 2004-02-09 Andrew Cagney <cagney@redhat.com>
8765
8766 * Makefile.in (mips-tdep.o): Update dependencies.
8767 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8768 "trad-frame.h".
8769 (mips_unwind_pc): Return the pseudo PC register.
8770 (mips_unwind_dummy_id): New function.
8771 (mips16_fetch_instruction): New function.
8772 (mips32_fetch_instruction): New function.
8773 (struct mips_frame_cache): Define.
8774 (mips_mdebug_frame_cache): New function.
8775 (mips_mdebug_frame_this_id): New function.
8776 (mips_mdebug_frame_prev_register): New function.
8777 (mips_mdebug_frame_unwind): Define.
8778 (mips_mdebug_frame_sniffer): New function.
8779 (mips_mdebug_frame_base_address): New function.
8780 (mips_mdebug_frame_base): Define.
8781 (mips_mdebug_frame_base_sniffer): New function.
8782 (mips_gdbarch_init): Append unwind and base sniffers. Set
8783 unwind_dummy_id.
8784
8785 2004-02-08 Andrew Cagney <cagney@redhat.com>
8786
8787 * frame.c: Print both the register number and name.
8788
8789 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8790 and a sed into a single sed. Make .c and .o patterns more robust.
8791 (OBS): Delete.
8792 (INIT_FILES): Replace OBS with COMMON_OBS.
8793 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8794
8795 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8796
8797 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8798 the PT_WCOOKIE request.
8799
8800 2004-02-08 Andrew Cagney <cagney@redhat.com>
8801
8802 * mips-tdep.c (mips_unwind_pc): New function.
8803 (mips_gdbarch_init): Set mips_unwind_pc.
8804
8805 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8806 (get_frame_id): Allow the UNKNOWN_FRAME.
8807 (frame_register_unwind, get_frame_type): Ditto.
8808
8809 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8810 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8811 unwind_dummy_id indicates a legacy frame.
8812
8813 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8814 * configure: Re-generate.
8815
8816 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8817 methods.
8818
8819 2004-02-08 Andrew Cagney <cagney@redhat.com>
8820
8821 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8822 makefile macro.
8823 * configure: Re-generate.
8824 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8825 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8826 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8827 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8828 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8829 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8830 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8831 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8832 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8833 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8834
8835 2004-02-07 Andrew Cagney <cagney@redhat.com>
8836
8837 * Makefile.in: Update all dependencies.
8838
8839 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8840 * configure: Re-generate.
8841 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8842 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8843 (COMMON_OBS): Add "main.o" and "annotate.o".
8844 (ANNOTATE_OBS): Delete.
8845 (OBS): Remove ANNOTATE_OBS.
8846 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8847 CONFIG_INITS.
8848 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8849 against CONFIG_OBS and "main.o".
8850 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8851 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8852
8853 * tui/tui-command.c: Include "gdb_string.h", delete register
8854 attribute, use ISO-C function signatures.
8855 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8856 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8857 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8858 * tui/tui.c: Ditto.
8859
8860 * tui/tui-command.c: Change variable and function names to lower
8861 case.
8862 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8863 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8864 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8865 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8866 * tui/tui-winsource.c, tui/tui.c: Ditto.
8867
8868 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * buildsym.c (free_pending_blocks, finish_block)
8871 (record_pending_block, make_blockvector, end_symtab): Replace
8872 symbol_obstack with objfile_obstack.
8873 * coffread.c (process_coff_symbol, coff_read_struct_type)
8874 (coff_read_enum_type): Ditto.
8875 * cp-namespace.c (initialize_namespace_symtab)
8876 (check_one_possible_namespace_symbol): Ditto.
8877 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8878 (dwarf2_symbol_mark_computed): Ditto.
8879 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8880 * elfread.c (elf_symtab_read): Ditto.
8881 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8882 (hpread_read_enum_type, hpread_read_function_type)
8883 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8884 Ditto.
8885 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8886 (java_link_class_type): Ditto.
8887 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8888 (new_symbol): Ditto.
8889 * minsyms.c (install_minimal_symbols): Ditto.
8890 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8891 (terminate_minimal_symbol_table): Replace symbol_obstack with
8892 objfile_obstack.
8893 (free_objfile): Remove freeing of symbol_obstack.
8894 * objfiles.h: Remove symbol_obstack field.
8895 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8896 objfile_obstack.
8897 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8898 symbol_obstack.
8899 (solib_add_common_symbols): Replace symbol_obstack with
8900 objfile_obstack.
8901 * somsolib.c (som_solib_add): Ditto.
8902 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8903 (common_block_start, common_block_end): Ditto.
8904 * symfile.c (reread_symbols): Remove freeing and init of
8905 symbol_obstack.
8906 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8907 * symfile.h: Update comment.
8908 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8909 stats printing.
8910 * symtab.c (symbol_set_names): Replace symbol_obstack with
8911 objfile_obstack.
8912 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8913 Update comments.
8914 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8915 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8916 objfile_obstack.
8917
8918 2004-02-07 Andrew Cagney <cagney@redhat.com>
8919
8920 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8921 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8922 fields and variables.
8923 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8924 (m_beInvisible): Delete macro.
8925 * tui/tui-data.h: Fix case case fields and variables.
8926 (m_genWinPtrIsNull): Delete macro.
8927 (tui_win_list): Rename winList.
8928 (TUI_SRC_WIN): Rename srcWin.
8929 (TUI_DISASM_WIN): Rename disassemWin.
8930 (TUI_DATA_WIN): Rename dataWin.
8931 (TUI_CMD_WIN): Rename cmdWin.
8932 (m_genWinPtrNotNull): Delete macro.
8933 (m_winPtrIsNull): Delete macro.
8934 (m_winPtrNotNull): Delete macro.
8935 (tui_win_is_source_type): Replace m_winIsSourceType
8936 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8937 (tui_win_has_locator): Replace m_hasLocator.
8938 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8939 m_setWinHighlightOff.
8940 * tui/tui-data.c: Update references.
8941 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8942 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8943 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8944 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8945 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8946 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8947 * tui/tui-winsource.c, tui/tui.c: Ditto.
8948
8949 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8950
8951 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8952 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8953 StackGhost.
8954
8955 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8956 variable `i6' to `i7'.
8957 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8958
8959 2004-02-07 Andrew Cagney <cagney@redhat.com>
8960
8961 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8962 (TuiPoint, TuiPointPtr): Ditto.
8963 (TuiStatus, TuiStatusPtr): Ditto.
8964 (TuiWinType, TuiWinTypePtr): Ditto.
8965 (struct tui_point): Rename _TuiPoint.
8966 (tui_get_low_disassembly_address): Rename
8967 tuiGetLowDisassemblyAddress.
8968 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8969 (tuiFree): Delete declaration.
8970 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8971 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8972 * tui/tui.c (tuiFree): Delete function.
8973 * cli/cli-cmds.c (disassemble_command): Update references.
8974 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8975 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8976 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8977 * tui/tui-winsource.c: Ditto.
8978
8979 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8980
8981 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8982 coffstab_build_psymtabs, elfstab_build_psymtabs)
8983 (stabsect_build_psymtabs): Replace psymbol_obstack with
8984 objfile_obstack.
8985 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8986 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8987 Ditto.
8988 * dwarfread.c (scan_compilation_units): Ditto.
8989 * elfread.c (elfstab_offset_sections): Ditto.
8990 * hppa-tdep.c (read_unwind_info): Ditto.
8991 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8992 (hpread_end_psymtab): Ditto.
8993 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8994 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8995 Ditto.
8996 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8997 * objfiles.c (add_to_objfile_sections)
8998 (build_objfile_section_table): Ditto.
8999 (allocate_objfile): Remove init of psymbol_obstack.
9000 (free_objfile): Remove freeing of psymbol_obstack.
9001 * objfiles.h (struct objfile): Remove field
9002 psymbol_obstack. Update comments.
9003 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9004 psymbol_obstack with objfile_obstack.
9005 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9006 psymbol_obstack.
9007 * somread.c (som_symfile_offsets, init_import_symbols)
9008 (init_export_symbols): Replace psymbol_obstack with
9009 objfile_obstack.
9010 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9011 * symfile.c (default_symfile_offsets, syms_from_objfile)
9012 (reread_symbols): Remove freeing and init of psymbol_obstack.
9013 (cashier_psymtab): Update comment.
9014 * symmisc.c (print_objfile_statistics): Don't report stats for
9015 psymbol obstack.
9016 * symtab.h (struct general_symbol_info, struct partial_symtab):
9017 Update comments.
9018 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9019 (xcoff_symfile_offsets): Replace psymbol_obstack with
9020 objfile_obstack.
9021
9022 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9023
9024 * objfiles.h (struct objfile): Add objfile_obstack field.
9025 Remove type_obstack field.
9026
9027 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9028 read_structure_scope read_enumeration, new_symbol): Replace
9029 type_obstack with objfile_obstack.
9030 * dwarfread.c (struct_type, enum_type): Ditto.
9031 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9032 (lookup_fundamental_type): Ditto.
9033 * gdbtypes.h (TYPE_ALLOC): Ditto.
9034 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9035 (hpread_read_doc_function_type, hpread_read_struct_type)
9036 (fix_static_member_physnames, hpread_read_array_type)
9037 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9038 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9039 (java_link_class_type): Ditto.
9040 * mdebugread.c (parse_type): Ditto.
9041 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9042 * solib-sunos.c (solib_add_common_symbols): Ditto.
9043 * stabsread.c (define_symbol, read_type, read_member_functions,
9044 read_cpp_abbrev, read_one_struct_field): Ditto.
9045 * symfile.c (reread_symbols): Ditto.
9046 * symmisc.c (print_objfile_statistics): Ditto.
9047
9048 2004-02-07 Andrew Cagney <cagney@redhat.com>
9049
9050 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9051 (tui_exec_info_content): Rename TuiExecInfoContent.
9052 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9053 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9054 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9055 (TuiList, TuiListPtr): Ditto.
9056 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9057 (TuiDataType, TuiDataTypePtr): Ditto.
9058 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9059 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9060 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9061 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9062 (TuiDataElement, TuiDataElementPtr): Ditto.
9063 (TuiWinElement, TuiWinElementPtr): Ditto.
9064 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9065 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9066 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9067 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9068 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9069 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9070 * tui/tui-command.c, tui/tui-data.c: Update references.
9071 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9072 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9073 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9074 * tui/tui-winsource.c, tui/tui.c: Ditto.
9075
9076 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9077
9078 * dwarf2-frame.h: Update copyright.
9079 (enum dwarf2_frame_reg_rule): New.
9080 (struct dwarf2_frame_state_reg): New.
9081 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9082 * dwarf2-frame.c: Update copyright.
9083 (enum dwarf2_reg_rule): Remove.
9084 (struct dwarf2_frame_state): Remove defenition of `struct
9085 dwarf2_frame_state_reg'.
9086 (read_reg): Call get_frame_arch to get the architecture instead of
9087 using CURRENT_GDBARCH.
9088 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9089 DWARF2_FRAME_.
9090 (dwarf2_frame_init_reg): New function.
9091 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9092 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9093 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9094 tags with DWARF2_FRAME_.
9095 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9096 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9097 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9098
9099 2004-02-06 Andrew Cagney <cagney@redhat.com>
9100
9101 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9102 (enum tui_data_type): Rename _TuiDataType.
9103 (struct tui_layout_def): Rename _TuiLayoutDef.
9104 (struct tui_source_element): Rename _TuiSourceElement.
9105 (struct tui_data_element): Rename _TuiDataElement.
9106 (struct tui_command_element): Rename _TuiCommandElement.
9107 (struct tui_locator_element): Rename _TuiLocatorElement.
9108 (union tui_which_element): Define.
9109 (struct tui_win_element): Rename _TuiWinElement.
9110 (struct tui_data_info): Rename _TuiDataInfo.
9111 (struct tui_source_info): Rename _TuiSourceInfo.
9112 (struct tui_command_info): Rename _TuiCommandInfo.
9113 (tui_initialize_static_data): Rename initializeStaticData.
9114 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9115 (tui_alloc_win_info): Rename allocWinInfo.
9116 (tui_init_generic_part): Rename initGenericPart.
9117 (tui_init_win_info): Rename initWinInfo.
9118 (tui_alloc_content): Rename allocContent.
9119 (tui_add_content_elements): Rename addContentElements.
9120 (tui_init_content_element): Rename initContentElement.
9121 (tui_free_window): Rename freeWindow.
9122 (tui_free_win_content): Rename freeWinContent.
9123 (tui_free_data_content): Rename freeDataContent.
9124 (tui_free_all_source_wins_content): Rename
9125 freeAllSourceWinsContent.
9126 (tui_del_window): Rename tuiDelWindow.
9127 (tui_del_data_windows): Rename tuiDelDataWindows.
9128 (tui_partial_win_by_name): Rename partialWinByName.
9129 (tui_win_name): Rename winName.
9130 (tui_current_layout): Rename currentLayout.
9131 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9132 (tui_term_height): Rename termHeight.
9133 (tui_set_term_height_to): Rename setTermHeightTo.
9134 (tui_term_width): Rename termWidth.
9135 (tui_set_term_width_to): Rename setTermWidthTo.
9136 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9137 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9138 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9139 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9140 (tui_source_windows): Rename sourceWindows.
9141 (tui_clear_source_windows): Rename clearSourceWindows.
9142 (tui_clear_source_windows_detail): Rename
9143 clearSourceWindowsDetail.
9144 (tui_clear_win_detail): Rename clearWinDetail.
9145 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9146 (tui_default_tab_len): Rename tuiDefaultTabLen.
9147 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9148 (tui_win_with_focus): Rename tuiWinWithFocus.
9149 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9150 (tui_layout_def): Rename tuiLayoutDef.
9151 (tui_win_resized): Rename tuiWinResized.
9152 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9153 (tui_next_win): Rename tuiNextWin.
9154 (tui_prev_win): Rename tuiPrevWin.
9155 (tui_add_to_source_windows): Rename addToSourceWindows.
9156 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9157 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9158 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9159 * tui/tui.c, tui/tui-data.c: Ditto.
9160 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9161 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9162
9163 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9164 (struct symtab): Declare.
9165 (tui_set_source_content): Rename tuiSetSourceContent.
9166 (tui_show_symtab_source): Rename tuiShowSource.
9167 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9168 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9169 * tui/tui-source.c: Update copyright. Update references.
9170 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9171 * tui/tui-stack.c: Update references.
9172
9173 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9174 (struct tui_win_info): Declare.
9175 (tui_scroll_forward): Rename tuiScrollForward.
9176 (tui_scroll_backward): Rename tuiScrollBackward.
9177 (tui_scroll_left): Rename tuiScrollLeft.
9178 (tui_scroll_right): Rename tuiScrollRight.
9179 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9180 (tui_resize_all): Rename tuiResizeAll.
9181 (tui_refresh_all_win): Rename tuiRefreshAll.
9182 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9183 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9184 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9185 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9186
9187 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9188 (tui_erase_data_content): Rename tuiEraseDataContent.
9189 (tui_display_all_data): Rename tuiDisplayAllData.
9190 (tui_check_data_values): Rename tuiCheckDataValues.
9191 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9192 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9193 (tui_first_data_element_no_in_line): Rename
9194 tuiFirstDataElementNoInLine.
9195 (tui_delete_data_content_windows): Rename
9196 tuiDeleteDataContentWindows.
9197 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9198 (tui_display_data_from): Rename tuiDisplayDataFrom.
9199 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9200 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9201 * tui/tui-win.c, tui/tui-regs.c: Update references.
9202 * tui/tui-layout.c, tui/tui.c: Update references.
9203
9204 * tui/tui-wingeneral.h: Update copyright.
9205 (m_allBeVisible): Delete macro.
9206 (m_allBeInvisible): Delete macro.
9207 (struct tui_gen_win_info): Declare.
9208 (struct tui_win_info): Declare.
9209 (tui_unhighlight_win): Rename unhighlightWin.
9210 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9211 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9212 (tui_make_window): Rename makeWindow.
9213 (tui_copy_win): Rename copyWin.
9214 (tui_box_win): Rename boxWin.
9215 (tui_highlight_win): Rename highlightWin.
9216 (tui_check_and_display_highlight_if_needed): Rename
9217 checkAndDisplayHighlightIfNeeded.
9218 (tui_refresh_all): Rename refreshAll.
9219 (tui_delete_win): Rename tuiDelwin.
9220 (tui_refresh_win): Rename tuiRefreshWin.
9221 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9222 (tui_make_visible, tui_make_invisible): New functions.
9223 (tui_make_all_visible, tui_make_all_invisible): New functions.
9224 (make_all_visible): Rename makeAllVisible.
9225 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9226 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9227 * tui/tui-windata.c, tui/tui-win.c: Update references.
9228 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9229 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9230
9231 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9232
9233 * proc-api.c (write_with_trace): Initialize local variable to
9234 silence compiler warning.
9235
9236 2004-02-06 Andrew Cagney <cagney@redhat.com>
9237
9238 * tui/tui-source.h: Do not include "defs.h".
9239 (struct tui_win_info): Declare.
9240 (tui_set_source_content_nil): Declare.
9241 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9242 (union tui_line_or_address): Rename _TuiLineOrAddress.
9243 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9244 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9245 (tui_update_source_window_as_is): Rename
9246 tuiUpdateSourceWindowAsIs.
9247 (tui_update_source_windows_with_addr): Rename
9248 tuiUpdateSourceWindowsWithAddr.
9249 (tui_update_source_windows_with_line): Rename
9250 tuiUpdateSourceWindowsWithLine.
9251 (tui_clear_source_content): Rename tuiClearSourceContent.
9252 (tui_erase_source_content): Rename tuiEraseSourceContent.
9253 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9254 (tui_show_source_content): Rename tuiShowSourceContent.
9255 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9256 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9257 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9258 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9259 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9260 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9261 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9262 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9263 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9264 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9265 (struct tui_win_info): Declare.
9266 * tui/tui-stack.c: Update references.
9267 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9268 * tui/tui-win.c, tui/tui-source.c: Ditto.
9269 * tui/tui.c, tui/tui-disasm.c: Ditto.
9270
9271 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9272
9273 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9274 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9275
9276 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9277
9278 * infrun.c (handle_inferior_event): Allow for breakpoint
9279 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9280 and SIGEMT. Update comments.
9281 * NEWS (Revised SPARC target): Mention support for non-executable
9282 stack.
9283
9284 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9285
9286 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9287 * inftarg.c: Update copyright year.
9288 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9289 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9290 (sparc_xfer_wcookie): New function.
9291 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9292 * Makefile.in (sparc-nat.o): Update dependencies.
9293 * config/sparc/nm-nbsd.h: Include "target.h".
9294 (NATIVE_XFER_WCOOKIE): New define.
9295 (sparc_xfer_wcookie): New prototype.
9296
9297 2004-02-04 Andrew Cagney <cagney@redhat.com>
9298
9299 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9300 SYSCALL_TRAP function.
9301 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9302
9303 2004-02-04 Andrew Cagney <cagney@redhat.com>
9304 Daniel Jacobowitz <drow@mvista.com>
9305
9306 * objfiles.h: Delete comments refering to inside_entry_func and
9307 DEPRECATED_FRAME_CHAIN_VALID.
9308 * defs.h (inside_entry_func): Update prototype..
9309 * blockframe.c (inside_entry_func): Rename to
9310 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9311 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9312
9313 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9314
9315 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9316 outside of #ifdef SOLIB_ADD region.
9317 (do_restore_lang_radix_cleanup): Ditto.
9318 (resolve_pending_breakpoint): Ditto.
9319
9320 2004-02-03 Andrew Cagney <cagney@redhat.com>
9321
9322 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9323 (process_note_abi_tag_sections): Delete unused function.
9324 (ia64_read_fp): Delete unused function.
9325 (gdbarch_extract_struct_value_address): Delete declaration.
9326
9327 2004-02-02 Andrew Cagney <cagney@redhat.com>
9328
9329 * vax-tdep.c (vax_frame_chain): Delete call to
9330 deprecated_inside_entry_file.
9331 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9332
9333 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9334
9335 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9336 column that's "empty" or "same value" when eliminating REG_RA
9337 rules.
9338
9339 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9340
9341 * NEWS: Add information about new pending breakpoint support.
9342
9343 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9344
9345 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9346 and pending fields for pending breakpoint support.
9347 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9348 (condition_command): Only parse condition if not a pending
9349 breakpoint.
9350 (print_one_breakpoint): Add support for pending breakpoints.
9351 (describe_other_breakpoints): Add checks to verify we are not
9352 dealing with pending breakpoints.
9353 (check_duplicates): Don't check pending breakpoints.
9354 (set_raw_breakpoint): Initialize pending flag.
9355 (do_restore_lang_radix_cleanup): New cleanup routine.
9356 (resolve_pending_breakpoint): New function.
9357 (re_enable_breakpoints_in_shlibs): Try and resolve any
9358 pending breakpoints via resolve_pending_breakpoint.
9359 (mention): Add pending breakpoint support.
9360 (parse_breakpoint_sals): Add new parameter to pass to
9361 decode_line_1 to indicate silent errors when files or functions
9362 are not found. Change all callers.
9363 (do_captured_parse_breakpoint): New function.
9364 (break_command_1): Change prototype to return an rc value and to
9365 take an optional pending breakpoint pointer. Support creating
9366 a pending breakpoint if a "not found" form of error occurs when
9367 parsing the breakpoint. Also support resolving an existing pending
9368 breakpoint and be silent if the resolution fails.
9369 (create_breakpoints): Change prototype to take pending breakpoint
9370 pointer. When resolving a pending breakpoint, use the new pointer
9371 to provide a conditional or commands added by the end-user.
9372 (delete_breakpoint): Add appropriate check for pending.
9373 (breakpoint_re_set_one): Ditto.
9374 (do_enable_breakpoint): Ditto.
9375
9376 2004-02-02 David Carlton <carlton@kealia.com>
9377
9378 * valops.c (enum oload_classification): New.
9379 (find_overload_match): Break implementation into separate
9380 functions; delete #if 0'd code; look for symbols within
9381 namespaces.
9382 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9383 (find_oload_champ,oload_method_static,classify_oload_match): New.
9384 * cp-support.h: Add declaration for cp_func_name; update
9385 declaration for make_symbol_overload_list.
9386 * cp-support.c (cp_func_name): New.
9387 (overload_list_add_symbol): Fix comment, use
9388 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9389 (make_symbol_overload_list): Take a function name and a namespace
9390 instead of a symbol; change implementation.
9391 (make_symbol_overload_list_using): New.
9392 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9393
9394 2004-02-02 Fred Fish <fnf@redhat.com>
9395
9396 * main.c (gdb_stdtarg): Move definition to group with other
9397 gdb_stdtarg definitions and update copyright years.
9398 * remote-sim.c (gdb_os_write_stderr): Write output to
9399 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9400 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9401 gdb_stderr stream and update copyright years.
9402
9403 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * Makefile.in (mips-linux-nat.o): Update dependencies.
9406 * mips-linux-nat.c: Include mips-tdep.h.
9407
9408 2004-02-01 Roland McGrath <roland@redhat.com>
9409
9410 * sol-thread.c (sol_thread_xfer_partial): New function.
9411 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9412 (init_sol_core_ops): Likewise.
9413
9414 * procfs.c (procfs_xfer_partial): New function.
9415 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9416 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9417
9418 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9419 procfs_xfer_auxv function.
9420
9421 * procfs.c (procfs_make_note_section): If we can read
9422 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9423 * linux-proc.c (linux_make_note_section): Likewise.
9424
9425 * auxv.h: New file.
9426 * auxv.c: New file.
9427 * Makefile.in (auxv_h): New variable.
9428 (COMMON_OBS): Add auxv.o here.
9429 (auxv.o): New target.
9430
9431 * corelow.c (core_xfer_partial): New function.
9432 (init_core_ops): Use it for core_ops.to_xfer_partial.
9433
9434 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9435 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9436 macro if that is defined.
9437
9438 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9439
9440 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9441 and check the specified thread for each breakpoint.
9442 * breakpoint.h (bpstat_stop_status): Update prototype.
9443 * infrun.c (handle_inferior_event): Update calls to
9444 bpstat_stop_status.
9445
9446 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9447
9448 * Makefile.in (cli-cmds.o): Add $(readline_h).
9449
9450 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9451
9452 * cli/cli-cmds.c: Include readline.h.
9453 (complete_command): Pass the start of the last word to
9454 complete_line.
9455
9456 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9459 argument, and change first argument to a CORE_ADDR.
9460 * breakpoint.h (bpstat_stop_status): Update prototype.
9461 * infrun.c (adjust_pc_after_break): Add a new comment.
9462 (handle_inferior_event): Update calls to bpstat_stop_status.
9463
9464 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * breakpoint.h: Update copyright years.
9467
9468 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9471 (bpstat_stop_status): Don't decrement PC.
9472 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9473 prototype.
9474 * infrun.c (adjust_pc_after_break): New function.
9475 (handle_inferior_event): Call it, early. Remove later references
9476 to DECR_PC_AFTER_BREAK.
9477 (normal_stop): Add commentary.
9478
9479 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9480
9481 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9482 2004-01-27 double-free fix.
9483
9484 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9485
9486 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9487 (sparc32_frame_prev_register): Handle StackGhost.
9488 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9489
9490 2004-01-29 Roland McGrath <roland@redhat.com>
9491
9492 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9493 * configure: Regenerated.
9494
9495 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9496 * Makefile.in (procfs.o): Add dep.
9497
9498 2004-01-28 Andrew Cagney <cagney@redhat.com>
9499
9500 * tui/tui-stack.h: Update copyright.
9501 (struct frame_info): Add opaque declaration.
9502 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9503 (tui_show_locator_content): Rename tuiShowLocatorContent.
9504 (tui_show_frame_info): Rename tuiShowFrameInfo.
9505 * tui/tui-stack.c: Update copyright. Update references.
9506 * tui/tui-winsource.c: Update references.
9507 * tui/tui-win.c: Update references.
9508 * tui/tui-layout.c: Update references.
9509 * tui/tui-hooks.c: Update copyright, update references.
9510 * tui/tui.c: Update copyright, update references.
9511 * tui/tui-disasm.c: Update references.
9512
9513 2004-01-28 David Carlton <carlton@kealia.com>
9514
9515 * dwarf2read.c (add_partial_structure): Use demangled name if
9516 namespace equals "".
9517
9518 2004-01-27 Jim Blandy <jimb@redhat.com>
9519
9520 Clean up misapplied patch:
9521 * dwarf2read.c (determine_prefix): Change one of the two forward
9522 declarations for 'determine_prefix_aux' to a declaration for this.
9523 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9524 argument to 'die_specification'.
9525
9526 * dwarf2read.c (read_func_scope): Re-indent comment.
9527
9528 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9529
9530 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9531 b->exp to NULL after freeing so that error during re-parsing or
9532 evaluation of expressions associated with breakpoint don't
9533 eventually lead to re-freeing of storage.
9534 Committed by Andrew Cagney.
9535
9536 2004-01-27 Andrew Cagney <cagney@redhat.com>
9537
9538 * source.c (ambiguous_line_spec): Delete undefined declaration.
9539 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9540 (m32r_set_server_address, m32r_set_download_path): Ditto.
9541 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9542
9543 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9544
9545 * dwarf2read.c: Update calls to changed and renamed functions, and
9546 references to moved variables.
9547
9548 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9549 language, language_defn, list_in_scope, and ftypes members.
9550 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9551 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9552 (baseaddr): Remove globals.
9553
9554 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9555 (set_cu_language, die_is_declaration, die_specification)
9556 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9557 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9558 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9559 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9560
9561 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9562 cu.list_in_scope. Don't initialize cu_header_offset.
9563 (add_partial_symbol): Add local baseaddr.
9564 (psymtab_to_symtab_1): Add local baseaddr. Use
9565 objfile->section_offsets for consistency. Don't initialize
9566 cu_header_offset; do initialize cu.header.offset and
9567 cu.list_in_scope.
9568 (read_file_scope, read_func_scope, read_lexical_block_scope)
9569 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9570
9571 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9572
9573 * PROBLEMS: Add gdb/1516.
9574
9575 2003-12-29 Robert Millan <robertmh@gnu.org>
9576
9577 Patch committed by Andrw Cagney.
9578 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9579 * configure.tgt: Match knetbsd*-gnu.
9580
9581 2004-01-26 Andrew Cagney <cagney@redhat.com>
9582
9583 * breakpoint.c (catch_command_1): Delete #ifdef code.
9584 (catch_fork_command_1): Delete #ifdef wrapper.
9585 (catch_exec_command_1): Ditto.
9586 (catch_load_command_1): Ditto.
9587 (catch_unload_command_1): Ditto.
9588
9589 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9590 (catch_breakpoint): Delete #if0ed function.
9591 (disable_catch_breakpoint): Ditto.
9592 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9593 (disable_catch, enable_catch, delete_catch): Ditto.
9594
9595 2004-01-26 Andrew Cagney <cagney@redhat.com>
9596
9597 * remote.c (echo_check, quit_flag): Delete variables.
9598 (cisco_kernel_mode): Delete variable.
9599 (minitelnet_return, tty_input, escape_count): Delete variables.
9600 (remote_cisco_mode): Delete variable.
9601 (remote_cisco_open, remote_cisco_close): Delete function.
9602 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9603 (init_remote_cisco_ops): Delete function.
9604 (_initialize_remote): Do not install "remote cisco" code.
9605 (read_frame): Delete cisco specific code.
9606 (remote_info_process): Delete function.
9607 (remote_wait): Delete cisco specific code.
9608 (remote_cisco_section_offsets): Delete function.
9609 (remote_cisco_objfile_relocate): Delete function.
9610 (remote_async_wait): Delete cisco specific code.
9611 (minitelnet, readtty, readsocket): Delete function.
9612
9613 2004-01-26 Andrew Cagney <cagney@redhat.com>
9614
9615 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9616 comments mentioning extract_returned_value_address.
9617 * infcmd.c (print_return_value): Update. Add comments on
9618 extract_returned_value_address.
9619 * stack.c (return_command): Add comments on
9620 extract_returned_value_address.
9621 * values.c: Update comment.
9622 * m32r-tdep.c: Update comment.
9623 * sparc-tdep.c: Update comment.
9624 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9626 * sh64-tdep.c (sh64_gdbarch_init): Update.
9627 * sh-tdep.c (sh_gdbarch_init): Update.
9628 * s390-tdep.c (s390_gdbarch_init): Update.
9629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9630 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9631 * m68k-tdep.c (m68k_gdbarch_init): Update.
9632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9633 * m32r-tdep.c (m32r_gdbarch_init): Update.
9634 * ia64-tdep.c (ia64_gdbarch_init): Update.
9635 * h8300-tdep.c (h8300_gdbarch_init): Update.
9636 * frv-tdep.c (frv_gdbarch_init): Update.
9637 * arm-tdep.c (arm_gdbarch_init): Update.
9638 * alpha-tdep.c (alpha_gdbarch_init): Update.
9639
9640 2004-01-26 Andrew Cagney <cagney@redhat.com>
9641
9642 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9643 SYMBOL_LOCATION_FUNCS
9644 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9645 "struct symbol_ops".
9646 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9647 type to "struct symbol_ops".
9648 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9649 (struct symbol): Replace ".aux_value.loc.funcs" and
9650 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9651 (SYMBOL_OBJFILE): Delete macro.
9652 (SYMBOL_LOCATION_FUNCS): Delete macro.
9653 (SYMBOL_LOCATION_BATON): Update.
9654 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9655 intead of SYMBOL_LOCATION_FUNCS.
9656 * ax-gdb.c (gen_var_ref): Ditto.
9657 * printcmd.c (address_info): Ditto.
9658 * findvar.c (read_var_value): Ditto.
9659 (symbol_read_needs_frame): Ditto.
9660
9661 2004-01-26 Andrew Cagney <cagney@redhat.com>
9662
9663 * dwarf2read.c (read_func_scope): Document frame-base hack.
9664
9665 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9666
9667 * infcmd.c (print_return_value): Plug memory leak; delete
9668 ui_stream object. Rename argument `structure_return' to
9669 `struct_return'.
9670
9671 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9672
9673 * infcmd.c (print_return_value): Wrap long lines.
9674 (finish_command_continuation, finish_command): Remove unused
9675 variable `funcaddr'. Fix some coding-standards problems.
9676
9677 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9678 SECT_SIZE is large enough, not whether it's exactly the right size.
9679 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9680 TDEP->fpregset to zero.
9681
9682 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9683 floating-point registers for traditional NetBSD core files.
9684 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9685 TDEP->sizeof_fpregset here.
9686
9687 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9688
9689 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9690 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9691 function with code split out from
9692 sparc32nbsd_sigcontext_frame_cache.
9693 (sparc32nbsd_sigcontext_frame_cache): Use
9694 sparc32nbsd_sigcontext_saved_regs.
9695 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9696 OpenBSD.
9697 * sparcobsd-tdep.c: New file.
9698 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9699 (sparcobsd-tdep.o): New dependency.
9700 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9701 * config/sparc/obsd.mt: New file.
9702
9703 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9704 TDEP->fpregset to be initialized to enable core file register
9705 sets.
9706
9707 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9708
9709 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9710 Add opaque declarations.
9711 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9712 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9713 function with code split out from
9714 sparc64nbsd_sigcontext_frame_cache.
9715 (sparc64nbsd_sigcontext_frame_cache): Use
9716 sparc64nbsd_sigcontext_saved_regs.
9717 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9718 OpenBSD.
9719 * sparc64obsd-tdep.c: New file.
9720 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9721 (sparc64obsd-tdep.o): New dependency.
9722 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9723 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9724 * config/sparc/obsd64.mt: New file.
9725
9726 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9727 read the instruction at PC.
9728
9729 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9730 value of GDB_OSABI_DEFAULT.
9731 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9732 instead of GDB_OSABI_NETBSD_AOUT.
9733
9734 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9735
9736 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9737 copyright.
9738
9739 2004-01-23 Andrew Cagney <cagney@redhat.com>
9740
9741 * printcmd.c (display_command): Replace tui_set_display call with
9742 tui_set_layout_for_display_command.
9743 * tui/tui.h (enum tui_win_type): Define.
9744 (tui_set_layout): Delete declaration.
9745 (tui_set_layout_for_display_command): Rename set_tui_layout.
9746 * tui/tui-data.h (enum tui_layout_type): Define.
9747 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9748 "tui.h".
9749 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9750 (tui_default_win_height): Rename tuiDefaultWinHeight.
9751 (tui_default_win_viewport_height): Rename
9752 tuiDefaultWinViewportHeight.
9753 (tui_set_layout): RenametuiSetLayout.
9754 * tui/tui-layout.c: Update references.
9755 * tui/tui.c: Update references.
9756 * tui/tui-disasm.c: Update references.
9757
9758 2004-01-23 David Carlton <carlton@kealia.com>
9759
9760 Partial workaround for PR c++/1511:
9761 * cp-namespace.c: Include frame.h.
9762 (cp_lookup_transparent_type): New
9763 (cp_lookup_transparent_type_loop): New.
9764 * cp-support.h: Declare cp_lookup_transparent_type.
9765 * symtab.c (basic_lookup_transparent_type): Renamed from
9766 lookup_transparent_type.
9767 (lookup_transparent_type): Replace old body by a call to
9768 current_language->la_lookup_transparent_type.
9769 * symtab.h: Update copyright. Declare
9770 basic_lookup_transparent_type.
9771 * language.h: Update copyright.
9772 (struct language_defn): Add la_lookup_transparent_type.
9773 * language.c: Update copyright.
9774 (unknown_language_defn): Add basic_lookup_transparent_type.
9775 (auto_language_defn): Add basic_lookup_transparent_type.
9776 (local_language_defn): Add basic_lookup_transparent_type.
9777 * ada-lang.c: Update copyright.
9778 (ada_language_defn): Add basic_lookup_transparent_type.
9779 * c-lang.c: Update copyright.
9780 (c_language_defn): Add basic_lookup_transparent_type.
9781 (cplus_language_defn): Add basic_lookup_transparent_type.
9782 (asm_language_defn): Add basic_lookup_transparent_type.
9783 (minimal_language_defn): Add basic_lookup_transparent_type.
9784 * f-lang.c: Update copyright.
9785 (f_language_defn): Add basic_lookup_transparent_type.
9786 * jv-lang.c: Update copyright.
9787 (java_language_defn): Add basic_lookup_transparent_type.
9788 * m2-lang.c: Update copyright.
9789 (m2_language_defn): Add basic_lookup_transparent_type.
9790 * objc-lang.c: Update copyright.
9791 (objc_language_defn): Add basic_lookup_transparent_type.
9792 * p-lang.c: Update copyright.
9793 (p_language_defn): Add basic_lookup_transparent_type.
9794 * scm-lang.c: Update copyright.
9795 (scm_language_defn): Add basic_lookup_transparent_type.
9796 * Makefile.in (cp-namespace.o): Depend on frame.h.
9797
9798 2004-01-23 David Carlton <carlton@kealia.com>
9799
9800 Patch for PR c++/1520:
9801 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9802 properly if we have a specification die.
9803 (determine_prefix_aux): Rename from determine_prefix.
9804 (determine_prefix): Like the old determine_prefix, but never
9805 returns NULL.
9806
9807 2004-01-23 Theodore A. Roth <troth@openavr.org>
9808
9809 * avr-tdep.c: Update copyright.
9810 (avr_iaddr_p): Delete unused function.
9811 (avr_saddr_p): Delete unused function.
9812
9813 2004-01-23 David Carlton <carlton@kealia.com>
9814
9815 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9816 Fix for PR symtab/1534.
9817
9818 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9819
9820 * NEWS (New native configurations): Mention OpenBSD/sparc and
9821 OpenBSD/sparc64.
9822 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9823 * configure.host: Likewise.
9824 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9825 handler for OpenBSD.
9826 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9827
9828 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9829
9830 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9831 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9832
9833 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9834 * cli/cli-cmds.c (shell_escape): Likewise.
9835
9836 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9837 OpenBSD .note.openbsd.ident sections.
9838
9839 2004-01-22 David Carlton <carlton@kealia.com>
9840
9841 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9842 get_scope_pc_bounds.
9843 (read_file_scope): Ditto.
9844 (get_scope_pc_bounds): New function, produced by extracting code
9845 from the above two functions, consolidating it, and adding support
9846 for DW_TAG_namespace.
9847
9848 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9849
9850 * osabi.c (MAX_NOTESZ): New define.
9851 (check_note): New function.
9852 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9853 check_note.
9854
9855 2004-01-21 Roland McGrath <roland@redhat.com>
9856
9857 * MAINTAINERS (write after approval): Add myself.
9858
9859 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9860
9861 * utils.c (init_page_info): Move declarations of `rows' and
9862 `cols' before the __GO32__-specific code. Move the closing brace
9863 outside the #ifdef __GO32__..#endif block.
9864 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9865
9866 2004-01-21 Paul Brook <paul@codesourcery.com>
9867
9868 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9869 BPSTAT_WHAT_CHECK_SHLIBS.
9870
9871 2004-01-21 Paul Brook <paul@codesourcery.com>
9872
9873 * MAINTAINERS: Add myself to write-after-approval.
9874
9875 2004-01-20 Andrew Cagney <cagney@redhat.com>
9876
9877 * ax-gdb.c (print_axs_value): Delete unused function.
9878 * jv-lang.c (java_lookup_type): Delete unused function.
9879 * cli/cli-dump.c (dump_filetype): Delete unused function.
9880 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9881 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9882 (mips_getstring): Delete unused function.
9883 (pmon_insert_breakpoint): Delete #if0ed function.
9884 (PMON_MAX_BP): Delete #if0ed MACRO.
9885 (mips_pmon_bp_info): Delete #if0ed variable.
9886 (pmon_remove_breakpoint): Delete #if0ed function.
9887 * monitor.c (monitor_write_even_block): Delete unused function.
9888 (monitor_write_memory_block): Delete #if0ed code.
9889 * dink32-rom.c (dink32_load): Delete unused function.
9890 (_initialize_dink32_rom): Delete #if0ed code.
9891 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9892
9893 * tui/tui-command.c: Update references.
9894 * tui/tui-io.c: Update references.
9895 * tui/tui-command.h: Update copyright.
9896 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9897
9898 * source.c (ambiguous_line_spec): Delete never-defined function.
9899 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9900 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9901 * cli/cli-cmds.c (validate_comname): Ditto.
9902
9903 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9904 "tui-data.h".
9905 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9906 (tui_show_disassem): Rename tuiShowDisassem.
9907 (tui_show_disassem_and_update_source): Rename
9908 tuiVerticalDisassemScroll.
9909 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9910 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9911 * tui/tui.h: Update copyright.
9912 (enum tui_status): Define.
9913 * tui/tui-data.h (enum tui_scroll_direction): Define.
9914 * tui/tui-disasm.c: Update copyright. Update references.
9915 * tui/tui-winsource.c: Update copyright. Update references.
9916 * tui/tui-win.c: Update references.
9917 * tui/tui-layout.c: Update references.
9918
9919 2004-01-20 Andrew Cagney <cagney@redhat.com>
9920
9921 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9922 sym2 to start of block.
9923
9924 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9925
9926 * MAINTAINERS: Delete mmalloc.
9927 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9928 * NEWS: Mention removal of --with-malloc.
9929 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9930 * config.in: Regenerate.
9931 * configure: Regenerate.
9932 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9933 USE_MMALLOC, MMCHECK_FORCE.
9934 * gdbinit.in: Remove mmalloc.
9935 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9936 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9937 * config/i386/go32.mh: Likewise.
9938 * config/i386/interix.mh: Likewise.
9939 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9940
9941 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9942
9943 * linespec.c (decode_variable, symtab_from_filename): Call
9944 error_silent with error message instead of throwing an exception
9945 directly.
9946 * defs.h (error_silent, error_output_message): Add prototypes.
9947 (catch_exceptions_with_msg): Ditto.
9948 * utils.c (error_silent, error_output_message): New functions.
9949 * top.c (catch_exceptions_with_msg): New function.
9950
9951 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9952
9953 * mi/mi-cmds.h (enum print_values): Add definition.
9954
9955 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9956 type and value for simple data types and just the name and type
9957 for complex ones, if required.
9958
9959 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9960 children, if required.
9961
9962 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9963
9964 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9965 unused declarations.
9966
9967 2004-01-19 Andrew Cagney <cagney@redhat.com>
9968
9969 * top.h (mapped_symbol_files): Delete declaration.
9970 * main.c (captured_main): Delete option "m" and "mapped".
9971 * objfiles.c (mapped_symbol_files): Delete variable.
9972 * symfile.c (symbol_file_command): Delete mmap code.
9973 (symbol_file_add_with_addrs_or_offsets): Ditto.
9974 (add_symbol_file_command, reread_separate_symbols): Ditto.
9975 * objfiles.h (OBJF_MAPPED): Delete.
9976 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9977 (free_objfile) [USE_MMALLOC]: Ditto.
9978 (open_existing_mapped_file): Delete function.
9979 (open_mapped_file): Delete function.
9980 (map_to_file): Delete function.
9981
9982 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9983
9984 * infrun.c (step_into_function): Account for possible breakpoint
9985 adjustment when computing ``stop_func_start''.
9986
9987 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9988
9989 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9990 the region size against the size of a pointer, not the size of
9991 a register as given by DEPRECATED_REGISTER_SIZE.
9992
9993 2004-01-19 Andrew Cagney <cagney@redhat.com>
9994
9995 * tui/tui-regs.h: Include "tui-data.h".
9996 (tuiFirstRegElementNoInLine): Delete declaration.
9997 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9998 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9999 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10000 (tui_calculate_regs_column_count): Rename
10001 tuiCalculateRegsColumnCount.
10002 (tui_check_register_values): Rename tuiCheckRegisterValues.
10003 (tui_show_registers): Rename tuiShowRegisters.
10004 (tui_display_registers_from_line): Rename
10005 tuiDisplayRegistersFromLine.
10006 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10007 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10008 (tui_first_reg_element_no_inline): Rename
10009 tuiFirstRegElementNoInLine.
10010 * tui/tui-data.h: Update copyright.
10011 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10012 * tui/tui-windata.c: Update copyright, update references.
10013 * tui/tui-regs.c: Update copyright, update references.
10014 * tui/tui-win.c: Update copyright, update references.
10015 * tui/tui-layout.c: Update copyright, update references.
10016
10017 2004-01-18 Andrew Cagney <cagney@redhat.com>
10018
10019 * tui/tui-io.c: Update copyright.
10020 (key_is_end_sequence, key_is_backspace): New functions.
10021 (key_is_command_char, key_is_start_sequence): New function.
10022 (tui_getc): Update references.
10023 * tui/tui-io.h: Update copyright.
10024 (m_tuiStartNewLine): Delete macro.
10025 (m_isBackspace, m_isDeleteChar): Delete macros.
10026 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10027 (m_isNextPage, m_isPrevPage): Delete macros.
10028 (m_isLeftArrow, m_isRightArrow): Delete macros.
10029 (m_isXdbStyleCommandChar): Delete macro.
10030 (key_is_start_sequence): Declare, replace m_isStartSequence.
10031 (key_is_end_sequence): Declare, replace m_isEndSequence.
10032 (key_is_backspace): Declare ,replace m_isBackspace.
10033 (key_is_command_char): Declare, replace m_isCommandChar.
10034 * tui/tui-command.c: Update copyright.
10035 (tuiDispatchCtrlChar): Update references.
10036
10037 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10038 tuiSourceWin.h.
10039
10040 * tui/tui-command.c: Rename tui/tuiCommand.c.
10041 * tui/tui-command.h: Rename tui/tuiCommand.h.
10042 * tui/tui-data.c: Rename tui/tuiData.c.
10043 * tui/tui-data.h: Rename tui/tuiData.h.
10044 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10045 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10046 * tui/tui-io.c: Rename tui/tuiIO.c.
10047 * tui/tui-io.h: Rename tui/tuiIO.h.
10048 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10049 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10050 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10051 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10052 * tui/tui-source.c: Rename tui/tuiSource.c.
10053 * tui/tui-source.h: Rename tui/tuiSource.h.
10054 * tui/tui-stack.c: Rename tui/tuiStack.c.
10055 * tui/tui-stack.h: Rename tui/tuiStack.h.
10056 * tui/tui-win.c: Rename tui/tuiWin.c.
10057 * tui/tui-win.h: Rename tui/tuiWin.h.
10058 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10059 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10060 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10061 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10062 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10063 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10064 * tui/tui-file.c: Update includes.
10065 * tui/tui-hooks.c: Update includes.
10066 * tui/tui-interp.c: Update includes.
10067 * tui/tui.c: Update includes.
10068 * Makefile.in: Update all tui/ dependencies.
10069 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10070
10071 * Makefile.in: Update copyright. Update dependencies.
10072
10073 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10074 problem.
10075
10076 2004-01-18 Andrew Cagney <cagney@redhat.com>
10077
10078 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10079 instead of register_gdbarch_init.
10080
10081 * remote-sds.c (tohex): Delete unused function. Update copyright.
10082 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10083 * v850-tdep.c (v850_register_virtual_size): Ditto.
10084 * target.c (normal_target_post_startup_inferior): Ditto.
10085 * source.c (ambiguous_line_spec): Ditto.
10086 * remote.c (adapt_remote_get_threadinfo): Ditto.
10087 * mi/mi-out.c (out_field_fmt): Ditto.
10088 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10089 (output_control_change_notification): Ditto.
10090 * m68k-tdep.c (m68k_register_byte): Ditto.
10091 (m68k_remote_breakpoint_from_pc): Ditto.
10092 * ui-out.c (init_ui_out_state): Delete unused declaration.
10093 * stabsread.c (search_value): Ditto.
10094 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10095 * maint.c (print_section_table): Ditto.
10096 * infrun.c (set_follow_fork_mode_command): Ditto.
10097
10098 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10099
10100 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10101 DW_CFA_def_cfa_exporession. Add support for
10102 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10103 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10104
10105 2004-01-18 Andrew Cagney <cagney@redhat.com>
10106
10107 * ocd.c: Update copyright.
10108 (bdm_read_register_command): Delete unused function.
10109 (_initialize_remote_ocd): Delete commented out reference.
10110 (get_quoted_char, reset_packet): Delete #if0ed function.
10111 (output_packet, put_quoted_char): Delete #if0ed function.
10112 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10113 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10114 (BDM_BREAKPOINT): Delete #if0ed macro.
10115 (remote_timeout): Delete #if0ed variable.
10116
10117 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10118
10119 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10120 (core-sol2.o): Remove dependency.
10121 * core-sol2.c: Remove file.
10122
10123 2004-01-17 Andrew Cagney <cagney@redhat.com>
10124
10125 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10126 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10127 enums.
10128
10129 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * remote.c: Update copyright years.
10132
10133 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10136
10137 2004-01-17 Andrew Cagney <cagney@redhat.com>
10138
10139 * mdebugread.c: Update copyright.
10140 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10141 (parse_type, parse_procedure): Ditto.
10142 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10143
10144 * cris-tdep.c (cris_store_struct_return): Put back accidently
10145 deleted function.
10146
10147 * gdbarch.sh: Update copyright year.
10148 * gdbarch.h, gdbarch.c: Re-generate.
10149
10150 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10151
10152 Suggested by George Anzinger.
10153 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10154 correct stack offset. Include unknown opcode numbers in the error
10155 message.
10156
10157 2004-01-17 Andrew Cagney <cagney@redhat.com>
10158
10159 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10160 extract_struct_value_address, i386 does not set it.
10161 * sparc64-tdep.c (sparc64_init_abi): Do not set
10162 extract_struct_value_address, never called.
10163 (sparc64_extract_struct_value_address): Delete function.
10164 * m68hc11-tdep.c: Update copyright.
10165 (m68hc11_gdbarch_init): Delete redundant assignment of
10166 extract_struct_value_address.
10167 * i386-tdep.c: Update copyright.
10168 (i386_gdbarch_init): Do not set extract_struct_value_address,
10169 never called.
10170 (i386_extract_struct_value_address): Delete function.
10171 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10172 extract_struct_value_address, never called.
10173 (sparc32_extract_struct_value_address): #if 0 function. Add
10174 comments explaining its future.
10175
10176 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * arm-tdep.c (arm_write_pc): New function.
10179 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10180
10181 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * breakpoint.c (must_shift_inst_regs): Delete.
10184 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10185 and SHIFT_INST_REGS.
10186 * infcmd.c (step_1, step_1_continuation): Delete references to
10187 SHIFT_INST_REGS.
10188 * infrun.c (keep_going): Likewise.
10189 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10190 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10191
10192 2004-01-17 Andrew Cagney <cagney@redhat.com>
10193
10194 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10195 * gdbarch.h, gdbarch.c: Re-generate.
10196 * infcmd.c (print_return_value): Delete reference to
10197 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10198
10199 * cris-tdep.c (cris_gdbarch_init): Do not set
10200 deprecated_extract_struct_value_address.
10201
10202 * xstormy16-tdep.c: Update copyright.
10203 (xstormy16_extract_struct_value_address): Update to current
10204 extract struct value address interface.
10205 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10206 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10207 current extract struct value address interface.
10208 (sh64_gdbarch_init): Set extract_struct_value_address.
10209
10210 * cris-tdep.c: Update copyright.
10211 (cris_extract_struct_value_address): Delete function.
10212 (struct_return_address): Delete variable.
10213 (cris_store_struct_return): Do not set struct_return_address.
10214
10215 * mcore-tdep.c: Update copyright.
10216 (mcore_extract_struct_value_address): Delete function. Update
10217 comments.
10218 (mcore_gdbarch_init): Update.
10219 * mn10300-tdep.c: Update copyright.
10220 (mn10300_extract_struct_value_address): Delete function.
10221 (mn10300_gdbarch_init): Update.
10222 * v850-tdep.c: Update copyright.
10223 (v850_extract_struct_value_address): Delete.
10224 (v850_gdbarch_init): Update.
10225 * ns32k-tdep.c: Update copyright.
10226 (ns32k_extract_struct_value_address): Delete.
10227 (ns32k_gdbarch_init): Update.
10228 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10229 (hppa_gdbarch_init): Update.
10230 * vax-tdep.c: Update copyright.
10231 (vax_extract_struct_value_address): Delete.
10232 (vax_gdbarch_init): Update.
10233
10234 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10235 * gdbarch.h, gdbarch.c: Re-generate.
10236 * procfs.c (procfs_fetch_registers): Delete reference to
10237 DEPRECATED_NPC_REGNUM.
10238 (procfs_store_registers): Ditto.
10239 * regcache.c (generic_target_write_pc): Simplify.
10240 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10241
10242 * core-sol2.c (fetch_core_registers): Replace
10243 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10244
10245 * hppa-tdep.c: Update copyright year.
10246 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10247 NPC_REGNUM.
10248 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10249
10250 * mips-tdep.c (mips_write_pc): New function.
10251 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10252 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10253 (mips_find_saved_regs, mips_software_single_step: Ditto.
10254 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10255 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10256
10257 2004-01-17 Andrew Cagney <cagney@redhat.com>
10258
10259 * mips-tdep.c: Re-indent. Group functions by ABI.
10260
10261 2004-01-17 Andrew Cagney <cagney@redhat.com>
10262
10263 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10264 * gdbarch.c: Re-generate.
10265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10266 DECR_PC_AFTER_BREAK to zero.
10267 * vax-tdep.c (vax_gdbarch_init): Ditto.
10268 * v850-tdep.c (v850_gdbarch_init): Ditto.
10269 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10270 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10271 * sh-tdep.c (sh_gdbarch_init): Ditto.
10272 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10273 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10274 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10275 * mips-tdep.c (mips_gdbarch_init): Ditto.
10276 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10278 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10279 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10280 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10281 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10282 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10283 * frv-tdep.c (frv_gdbarch_init): Ditto.
10284 * cris-tdep.c (cris_gdbarch_init): Ditto.
10285 * avr-tdep.c (avr_gdbarch_init): Ditto.
10286 * arm-tdep.c (arm_gdbarch_init): Ditto.
10287 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10288
10289 2004-01-17 J. Brobecker <brobecker@gnat.com>
10290
10291 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10292 Delete, no longer used.
10293 (read_subrange_type): New function, mostly extracted from
10294 read_array_type().
10295 (read_array_type): Replace extracted code by call to
10296 read_subrange_type().
10297 (dwarf2_get_attr_constant_value): New function.
10298 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10299 (add_partial_symbol): Likewise.
10300 (process_die): Likewise.
10301 (new_symbol): Likewise.
10302 (read_type_die): Likewise.
10303
10304 2004-01-16 Andrew Cagney <cagney@redhat.com>
10305
10306 * symfile.c: Update copyright year.
10307 (compare_symbols): Delete unused function.
10308 * stabsread.c: Update copyright year.
10309 (lrs_general_complaint): Delete unused function.
10310 (ref_search_value): Ditto.
10311 (get_substring): Delete declaration.
10312 * sh64-tdep.c: Update copyright year.
10313 (sh64_get_gdb_regnum): Delete unused function.
10314 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10315 Delete unused function.
10316
10317 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10318
10319 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10320 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10321
10322 2004-01-16 Andrew Cagney <cagney@redhat.com>
10323
10324 Changes from Peter Schauer.
10325 * rs6000-tdep.c: Update copyright year.
10326 (rs6000_push_dummy_call): Update the stack pointer before
10327 accessing the corresponding stack region.
10328 * rs6000-nat.c: Update copyright year.
10329 (set_host_arch): Set "info.abfd" to "exec_bfd".
10330
10331 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10332
10333 * blockframe.c: Update copyright year.
10334 (inside_entry_func): Don't treat a zero PC specially.
10335
10336 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10337
10338 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10339 variable.
10340 (gcore_create_callback): Ditto. Skip any memory segment that has
10341 no permissions set.
10342
10343 2004-01-14 David Carlton <carlton@kealia.com>
10344
10345 Change symbols for C++ nested types to contain the fully qualified
10346 name, if possible. (At least in the DWARF-2 case.) Partial fix
10347 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10348 c++/895.
10349 * c-exp.y (qualified_type): Handle types nested within classes.
10350 * cp-namespace.c: Update comments.
10351 (cp_set_block_scope): Delete #if 0.
10352 (cp_lookup_nested_type): Handle types nested within classes.
10353 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10354 when appropriate.
10355 (add_partial_symbol): Add the name of the enclosing namespace to
10356 types.
10357 (pdi_needs_namespace): New.
10358 (add_partial_namespace): Tweak comment.
10359 (add_partial_structure): New.
10360 (psymtab_to_symtab_1): Initialize processing_current_prefix
10361 here...
10362 (process_die): instead of here.
10363 (read_structure_scope): Try to figure out the name of the class or
10364 namespace that the structure might be defined within.
10365 (read_enumeration): Generate fully-qualified names, if possible.
10366 (read_namespace): Don't set name to NULL.
10367 (die_specification): New.
10368 (new_symbol): Generate fully-qualified names for types.
10369 (read_type_die): Determine appropriate prefix.
10370 (determine_prefix): New.
10371 (typename_concat): New.
10372 (class_name): New.
10373 * valops.c (value_aggregate_elt): Pass NOSIDE to
10374 value_struct_elt_for_reference.
10375 (value_struct_elt_for_reference): Make static, add NOSIDE
10376 parameter, call value_maybe_namespace_elt as a last resort.
10377 (value_namespace_elt): Break out code into
10378 value_maybe_namespace_elt.
10379 (value_maybe_namespace_elt): New.
10380
10381 2004-01-12 Andrew Cagney <cagney@redhat.com>
10382
10383 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10384 cooked floating-point registers.
10385 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10386 and value_to_register.
10387
10388 2004-01-13 Andrew Cagney <cagney@redhat.com>
10389
10390 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10391 * gdbarch.c: Re-generate.
10392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10393 FUNCTION_START_OFFSET.
10394 * v850-tdep.c (v850_gdbarch_init): Ditto.
10395 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10396 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10397 * sh-tdep.c (sh_gdbarch_init): Ditto.
10398 * s390-tdep.c (s390_gdbarch_init): Ditto.
10399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10400 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10401 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10402 * mips-tdep.c (mips_gdbarch_init): Ditto.
10403 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10404 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10406 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10407 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10408 * i386-tdep.c (i386_gdbarch_init): Ditto.
10409 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10410 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10411 * frv-tdep.c (frv_gdbarch_init): Ditto.
10412 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10413 * cris-tdep.c (cris_gdbarch_init): Ditto.
10414 * avr-tdep.c (avr_gdbarch_init): Ditto.
10415 * arm-tdep.c (arm_gdbarch_init): Ditto.
10416 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10417
10418 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * infrun.c (follow_fork_mode_ask): Remove.
10421 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10422 (follow_fork): Simplify and remove internal error for
10423 follow_fork_mode_ask.
10424 (_initialize_infrun): Update "set follow-fork-mode" help text.
10425
10426 2004-01-13 Andrew Cagney <cagney@redhat.com>
10427
10428 * configure.in: Update copyright year.
10429 (build_warnings): Add -Wunused-label.
10430 * configure: Re-generate.
10431
10432 2004-01-12 Andrew Cagney <cagney@redhat.com>
10433
10434 * exec.h (exec_ops): Make "extern".
10435
10436 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10437 the function is void.
10438 (mips_pseudo_register_write): Ditto.
10439
10440 2004-01-12 Andrew Cagney <cagney@redhat.com>
10441
10442 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10443 call. Never defined.
10444 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10445 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10446 (struct sparc_gregset, struct regcache): Ditto.
10447 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10448
10449 2004-01-12 Andrew Cagney <cagney@redhat.com>
10450
10451 * mi/ChangeLog: Delete file. Renamed to ...
10452 * mi/ChangeLog-1999-2003: New file.
10453 * tui/ChangeLog: Delete file. Renamed to ...
10454 * tui/ChangeLog-1998-2003: New file.
10455
10456 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10457
10458 * sparc64nbsd-tdep.c: Include "regset.h".
10459 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10460 Remove variables.
10461 (fetch_core_registers): Remove function.
10462 (sparc64nbsd_core_fns): Remove variable.
10463 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10464 functions.
10465 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10466 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10467 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10468
10469 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10470 sparc_extract_struct_value_address.
10471 (sparc32_gdbarch_init): Set extract_struct_value_address.
10472 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10473 function.
10474 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10475 return_value_on_stack.
10476
10477 * NEWS: Mention that %cs and %ss have been added to the AMD64
10478 configurations
10479
10480 * frame.c: Update copyright year.
10481 (get_prev_frame): Improve comment.
10482
10483 * sparc64fbsd-tdep.c: Include "regset.h".
10484 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10485 Remove variables.
10486 (fetch_core_registers): Remove function.
10487 (sparc64fbsd_core_fns): Remove variable.
10488 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10489 functions.
10490 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10491 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10492 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10493
10494 * sparcnbsd-tdep.c: Include "regset.h".
10495 (fetch_core_registers): Remove function.
10496 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10497 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10498 functions.
10499 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10500 TDEP->fpregset.
10501 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10502
10503 * sparc-tdep.h (struct regset): Provide opaque declaration.
10504 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10505 fpregset and sizeof_fpregset members.
10506 * sparc-tdep.c (struct regset): Provide opaque declaration.
10507 (sparc_regset_from_core_section): New function.
10508 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10509 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10510 Set regset_from_core_section when appropriate.
10511
10512 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10513
10514 * x86-64-tdep.c (amd64_non_pod_p): New function.
10515 (amd64_classify_aggregate): Return class memory for non-POD
10516 C++ structure types.
10517
10518 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10519 argument. Use it to reserve a register if necessary.
10520 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10521 amd64_push_arguments.
10522
10523 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10524
10525 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10526 register numbers in comments.
10527 * x86-64-tdep.h: Update copyright year.
10528 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10529 Adjust for addition of %cs and %ss.
10530 * amd64fbsd-nat.c: Update copyright year.
10531 (reg_offset): Add register offsets for %cs and %ss.
10532 * amd64fbsd-tdep.c: Update copyright year.
10533 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10534 (amd64fbsd_sc_reg_offset): Likewise.
10535 * x86-64-linux-nat.c: Update copyright year.
10536 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10537 and %ss.
10538 * amd64nbsd-nat.c: Update copyright year.
10539 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10540 * amd64nbsd-tdep.c: Update copyright year.
10541 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10542 * x86-64-linux-tdep.c: Update copyright year.
10543 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10544 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10545 * regformats/reg-x86-64.dat: Add %cs and %ss.
10546
10547 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10548 variables to prevent long lines. Update comments to reflect
10549 reality.
10550
10551 2004-01-09 David Carlton <carlton@kealia.com>
10552
10553 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10554 * dwarf2read.c (read_namespace): Pull out name-generating code
10555 into namespace_name. Rename previous_namespace to previous_prefix
10556 and processing_current_namespace to processing_current_prefix..
10557 (namespace_name): New function.
10558 (add_partial_symbol): Substitute uses of pdi->name with
10559 actual_name.
10560 * cp-support.h: Rename processing_current_namespace to
10561 processing_current_prefix.
10562 Update copyright year.
10563 * cp-namespace.c: Rename processing_current_namespace to
10564 processing_current_prefix.
10565 Update copyright year.
10566
10567 2004-01-09 Andrew Cagney <cagney@redhat.com>
10568
10569 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10570
10571 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10572
10573 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10574 complaining.
10575 (process_one_symbol): Deal with N_PATCH stabs.
10576
10577 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10578
10579 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10580 ifdeffed code.
10581 Update copyright year.
10582
10583 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10584
10585 * config/pa/tm-hppa.h: Update extern declarations for
10586 hppa32_hpux_frame_saved_pc_in_sigtramp,
10587 hppa32_hpux_frame_base_before_sigtramp, and
10588 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10589
10590 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10591
10592 * config/pa/tm-hppah.h: Update copyright years.
10593
10594 2004-01-08 Andrew Cagney <cagney@redhat.com>
10595
10596 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10597 (mips_o32_reg_struct_has_addr): Delete function.
10598 (mips_gdbarch_init): Update.
10599 (mips_extract_struct_value_address): Delete function.
10600
10601 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10602
10603 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10604 reality.
10605
10606 2004-01-07 Andrew Cagney <cagney@redhat.com>
10607
10608 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10609 architecture's elf flags (when available).
10610
10611 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10612 FPU to the start, check the MIPS FPU when looking for an old
10613 architecture.
10614 (set_mipsfpu_single_command): Update the architecture.
10615 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10616
10617 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10618 (mips_mask_address_p): Add "tdep" parameter.
10619 (show_mask_address, mips_addr_bits_remove): Update.
10620 (mips_dump_tdep): Update.
10621 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10622 (MIPS_STACK_ARGSIZE): Delete macro.
10623 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10624 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10625 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10626 (mips_dump_tdep): Update.
10627 (MIPS_SAVED_REGSIZE): Delete macro.
10628 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10629 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10630 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10631 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10632 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10633 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10634 (mips_pop_frame, return_value_location): Update.
10635 (mips_n32n64_return_value, mips_dump_tdep): Update.
10636
10637 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10638 MIPS ABI.
10639
10640 * mips-tdep.c: Update copyright.
10641 (mips_gdbarch_init): Merge two code blocks handling the register
10642 name and number layout.
10643
10644 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10645
10646 * tracepoint.c (validate_actionline): Fix segv at EOF
10647
10648 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10649
10650 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10651 properly for static fields.
10652
10653 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10654 Jason Molenda <jmolenda@apple.com>
10655
10656 * disasm.c: Update copyright to include 2004.
10657 (do_mixed_source_and_assembly): For uiout asm list
10658 and tuple cleanups, initialize to null_cleanup instead of
10659 NULL and do so prior to loop. Only reset when we close off
10660 the tuple/list. Move check for whether to close off the
10661 asm tuple/list to after dump_insns call where it will be run
10662 on each loop iteration.
10663
10664 2004-01-05 Andrew Cagney <cagney@redhat.com>
10665
10666 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10667 should be a switch case and not a label.
10668 * mips-tdep.c (mips32_next_pc): Delete unused labels
10669 "greater_equal_branch" and "less_zero_branch".
10670 * jv-valprint.c (java_print_value_fields): Delete unused label
10671 "flush_it".
10672
10673 * target.c (unpush_target): Only close a target that is in the
10674 target stack.
10675
10676 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10677
10678 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10679 address from [sp + 64] instead of %o2.
10680
10681 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10682 fixes PR backtrace/1476.
10683
10684 2004-01-05 Andrew Cagney <cagney@redhat.com>
10685
10686 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10687 move to start of file.
10688 * i386-tdep.h (struct regcache): Add opaque declaration.
10689 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10690 declaration.
10691 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10692 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10693 * win32-nat.c (fake_create_process): Use ISO C style definition.
10694 * stabsread.c (define_symbol): Delete #ifndef
10695 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10696 stabs_argument_has_addr call, macro never defined.
10697
10698 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10699
10700 * op50-rom.c: Delete.
10701 * w89k-rom.c: Delete.
10702 * Makefile.in: Remove references.
10703
10704 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10705
10706 * x86-64-tdep.c: Update copyright year.
10707 (struct amd64_register_info): Rename from x86_64_register_info.
10708 (amd64_register_info): Rename from x86_64_register_info.
10709 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10710 (amd64_register_name): Rename from x86_64_register_name.
10711 (amd64_register_type): Rename from x86_64_register_type.
10712 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10713 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10714 (amd64_dwarf_reg_to_regnum): Rename from
10715 x86_64_dwarf_reg_to_regnum.
10716 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10717 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10718 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10719 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10720 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10721 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10722 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10723 (amd64_frame_cache): Rename from x86_64_frame_cache.
10724 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10725 (amd64_frame_prev_register): Rename from
10726 x86_64_frame_prev_register.
10727 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10728 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10729 (amd64_sigtramp_frame_cache): Rename from
10730 x86_64_sigtramp_frame_cache.
10731 (amd64_sigtramp_frame_prev_register): Rename from
10732 x86_64_sigtramp_frame_prev_register.
10733 (amd64_sigtramp_frame_unwind): Rename from
10734 x86_64_sigtramp_frame_unwind.
10735 (amd64_sigtramp_frame_sniffer): Rename from
10736 x86_64_sigtramp_frame_sniffer.
10737 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10738 (amd64_frame_base): Rename from x86_64_frame_base.
10739 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10740 (amd64_frame_align): Rename from x86_64_frame_align.
10741 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10742 (amd64_regset_from_core_section): Rename from
10743 x86_64_regset_from_core_section.
10744 (x86_64_init_abi): Update comments.
10745
10746 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10747
10748 * MAINTAINERS (write after approval): Add myself.
10749
10750 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10751
10752 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10753 `float' arguments.
10754
10755 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10756
10757 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10758 such that it mentions a specific version of GCC that exhibits this
10759 bug.
10760
10761 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10762
10763 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10764 structure that has a single `float' member, store it in %f1 in
10765 addition to %f0.
10766
10767 * sparc-sol2-nat.c: Add missing '\'.
10768
10769 * sparc-tdep.c (sparc32_return_value): New function.
10770 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10771 Remove functions.
10772 (sparc32_gdbarch_init): Set return_value, don't set
10773 extract_return_value, store_return_value, use_struct_convention
10774 and return_value_on_stack.
10775
10776 * sparc-sol2-nat.c: Add missing ')'.
10777
10778 2004-01-03 J. Brobecker <brobecker@gnat.com>
10779
10780 * infrun.c (handle_step_into_function): New function.
10781 (handle_inferior_event): Extract out some code into the new
10782 function above.
10783
10784 2004-01-03 J. Brobecker <brobecker@gnat.com>
10785
10786 * infrun.c (handle_inferior_event): Move the declaration of
10787 real_stop_pc inside the if blocks where it is used.
10788
10789 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10790
10791 * sparc64-tdep.c (sparc64_16_byte_align_p)
10792 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10793 Use check_typedef to get subtypes of structures and unions.
10794 (sparc64_store_return_value): Fix calculation of the appropriate
10795 offset into VALBUF when storing a structure or union.
10796 (sparc64_return_value): New function.
10797 (sparc64_use_struct_convention): Remove function.
10798 (sparc64_init_abi): Set return_value, don't set
10799 extract_return_value, store_return_value and
10800 use_struct_convention.
10801
10802 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10803
10804 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10805 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10806 gdb/config/alpha/xm-alphaosf.h,
10807 gdb/config/powerpc/tm-ppcle-eabi.h,
10808 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10809 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10810 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10811 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10812 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10813 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10814 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10815 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10816 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10817 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10818 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10819 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10820 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10821 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10822 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10823 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10824 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10825 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10826 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10827 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10828 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10829 Remove lines for .cvsignore files.
10830
10831 2004-01-03 J. Brobecker <brobecker@gnat.com>
10832
10833 * infrun.c: Back out the previous change.
10834
10835 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10836
10837 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10838 sparc-*-sunos4* to the list of REMOVED configurations.
10839
10840 * configure.tgt: Add back sparc-*-vxworks*.
10841 * remote-vxsparc.c: Remove all includes except for "defs.h",
10842 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10843 Include "sparc-tdep.h".
10844 (SPARC_R_G1): New define.
10845 (vxsparc_gregset): New variable.
10846 (ext_format_sparc): Remove extern declaration.
10847 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10848 sparc32_supply_fpregset.
10849 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10850 sparc_collect_rwindow and sparc32_collect_fpregset.
10851 * config/sparc/tm-vxworks.h: New file, based on recently removed
10852 tm-vxsparc.h.
10853 * config/sparc/vxworks.mt: New file, based on recently removed
10854 vxworks.mt.
10855
10856 2004-01-03 J. Brobecker <brobecker@gnat.com>
10857
10858 * infrun.c (handle_step_into_function): New function.
10859 (handle_inferior_event): Extract out some code into the new
10860 function above.
10861
10862 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10863
10864 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10865 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10866 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10867 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10868 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10869 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10870 (sparc_nat_h): New variable.
10871 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10872 (tm-sun4os4.h): Remove dependency.
10873 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10874 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10875 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10876 sparc-tdep.o): Update dependencies.
10877 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10878 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10879 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10880 dependencies.
10881 * configure.host: Remove existing sparc-*-lynxos*,
10882 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10883 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10884 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10885 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10886 triplets.
10887 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10888 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10889 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10890 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10891 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10892 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10893 sparc64-*-solaris2* and sparc64-*-* triplets.
10894 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10895 "symtab.h" and "objfiles.h".
10896 (BIAS): Remove define.
10897 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10898 (X_DISP19): Remove macros.
10899 (sparc_fetch_instruction): Remove function.
10900 (struct gdbarch_tdep): Remove definition.
10901 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10902 (sparc_breakpoint_from_pc): Remove function.
10903 (struct sparc64_frame_cache): Remove definition.
10904 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10905 sparc64_unwind_pc): Remove functions.
10906 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10907 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10908 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10909 (sparc64_frame_cache): Change return type to `struct
10910 sparc_frame_cache *'. Simply call sparc_frame_cache.
10911 (sparc64_frame_this_id, sparc64_frame_prev_register,
10912 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10913 instead of `struct sparc64_frame_cache.
10914 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10915 sparc_analyze_control_transfer, sparc_software_single_step,
10916 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10917 _initialize_sparc64_tdep): Remove functions.
10918 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10919 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10920 macros.
10921 (sparc64_supply_gregset, sparc64_collect_gregset,
10922 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10923 (sparc64_init_abi): New function.
10924 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10925 inclusion guard. Include "sparc-tdep.h".
10926 (BIAS): Define.
10927 (r_tstate_offset, r_fprs_offset): New defines.
10928 (enum sparc_regnum): Remove defenition.
10929 (enum sparc64_regnum): Reformat.
10930 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10931 (sparc64_init_abi, sparc64_supply_gregset,
10932 sparc64_collect_gregset, sparc64_supply_fpregset,
10933 sparc64_collect_fpregset): New prototypes.
10934 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10935 Add extern declarations.
10936 (sparc64_sol2_init_abi): New prototype.
10937 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10938 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10939 prototypes.
10940 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10941 "sparnbsd-nat.h".
10942 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10943 functions.
10944 (_initialize_sparc64fbsd_nat): Remove initialization of
10945 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10946 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10947 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10948 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10949 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10950 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10951 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10952 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10953 (sparc64fbsd_r_y_offset): Remove variables.
10954 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10955 Make static and const.
10956 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10957 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10958 functions.
10959 (sparc64fbsd_gregset): New variable.
10960 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10961 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10962 and sparc64_supply_fpregset.
10963 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10964 (sparc64fbsd_sigtramp_frame_this_id)
10965 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10966 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10967 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10968 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10969 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10970 * sparcnbsd-tdep.c: Update copyright year. Include
10971 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10972 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10973 "value.h" and "sparcnbsd-tdep.h".
10974 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10975 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10976 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10977 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10978 defines.
10979 (sparcnbsd_gregset): New variable.
10980 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10981 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10982 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10983 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10984 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10985 variables.
10986 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10987 (sparc32nbsd_sigcontext_frame_this_id)
10988 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10989 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10990 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10991 (sparcnbsd_get_longjmp_target_32,
10992 sparcnbsd_get_longjmp_target_64): Remove functions.
10993 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10994 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10995 sparcnbsd_init_elf): Remove.
10996 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10997 (sparcnbsd_elf_init_abi): New functions.
10998 (_initialize_sparcnbsd_tdep): New prototype.
10999 (_initialize_sparnbsd_tdep): Update.
11000 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11001 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11002 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11003 * config/sparc/linux.mh: Update comment.
11004 (XM_FILE, HOST_IPC): Remove variables.
11005 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11006 sparc-linux-nat.o.
11007 * config/sparc/linux.mt: Update comment.
11008 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11009 * config/sparc/nbsd.mt: Reformat.
11010 * config/sparc/nbsd64.mh: Update comment.
11011 (NATDEPFILES): Add sparc-nat.o.
11012 * config/sparc/nbsd64.mt: Update comment.
11013 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11014 (TM_FILE): Set to tm-nbsd.h.
11015 * config/sparc/nbsdelf.mh: Update comment.
11016 (NATDEPFILES): Add sparc-nat.o.
11017 (XM_FILE): Delete.
11018 * config/sparc/nbsdaout.mh: Update comment.
11019 (NATDEPFILES): Add sparc-nat.o
11020 (XM_FILE): Delete.
11021 * config/sparc/nm-linux.h: Update copyright year. Don't include
11022 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11023 inclusion.
11024 (KERNEL_U_SIZE): Remove define.
11025 (kernel_u_size): Remove prototype.
11026 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11027 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11028 "regcache.h".
11029 (CHILD_PREPARE_TO_STORE): Remove define.
11030 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11031 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11032 sparcnbsd-nat.c: Rewrite files.
11033 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11034 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11035 sparcnbsd-tdep.h: Remove files.
11036 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11037 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11038 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11039 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11040 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11041 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11042 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11043 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11044 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11045 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11046 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11047 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11048 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11049 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11050 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11051 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11052 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11053 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11054 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11055
11056 2004-01-02 Andrew Cagney <cagney@redhat.com>
11057
11058 From 2003-12-18 Kazuhiro Inaoka:
11059 * configure.host: Add m32r-linux target.
11060
11061 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11062
11063 * top.c (print_gdb_version): Update year to 2004.
11064
11065 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11066
11067 * MAINTAINERS: Add myself to the write-after-approval category.
11068
11069 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11070
11071 From Bernardo Innocenti <bernie@develer.com>:
11072 * configure.tgt: Add uClinux target.
11073
11074 2004-01-02 Andrew Cagney <cagney@redhat.com>
11075
11076 * utils.c (do_my_cleanups): Make static, add forward declaration.
11077 * defs.h (do_my_cleanups): Delete declaration.
11078
11079 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11080
11081 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11082 bfd/ChangeLog-0203.
11083
11084 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11085
11086 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11087 in <machine/reg.h>.
11088 * configure, config.in: Regenerate.
11089
11090 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11091 tui/ChangeLog-1998-2003.
11092 \f
11093 Local Variables:
11094 mode: change-log
11095 left-margin: 8
11096 fill-column: 74
11097 version-control: never
11098 End:
This page took 0.312865 seconds and 4 git commands to generate.