* ia64-linux-nat.c: Update copyright year.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2
3 * ia64-linux-nat.c: Update copyright year.
4 (fetch_debug_register, store_debug_register)
5 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
6 PTRACE_TYPE_ARG3.
7 * config/ia64/nm-linux.h: Update copyright year.
8 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
9
10 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
11 from CORE_ADDR to struct frame_info *. Use
12 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
13 (amd64_linux_sigtramp_p): Adjust for changed signature of
14 and64_linux_sigtramp_start
15
16 * gdb_ptrace.h: GNU/Linux.
17
18 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
19 Remove defines.
20
21 * infptrace.c: Include "gdb_assert.h".
22 (PTRACE_XFER_TYPE): Remove define.
23 (offsetof): Only define if U_REGS_OFFSET isn't defined.
24 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
25 Tweak comment.
26 (fetch_inferior_registers, store_inferior_registers): Remove
27 redundant culry braces. Tweak comment. s/regno/regnum.
28 * Makefile.in (infptrace.o): Update dependencies.
29
30 * configure.in: Change test for return type of ptrace to default
31 to `long' instead of `int'.
32 * configure: Regenerate.
33
34 2004-08-21 Mark Kettenis <kettenis@gnu.org>
35
36 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
37
38 * configure.in: Check for ttrace function.
39 * configure, config.in: Regenerate.
40
41 * gdb_ptrace.h: New file.
42 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
43 <sys/ptrace.h>.
44 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
45 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
46 (attach): Don't define PT_ATTACH.
47 (detach): Don't define PT_DETACH.
48 * Makefile.in (gdb_ptrace_h): New variable.
49 (infptrace.o): Update dependencies.
50
51 2004-08-16 Mark Kettenis <kettenis@gnu.org>
52
53 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
54 instead of `int' if not already defined.
55 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
56 PTRACE_TYPE_ARG3.
57 * infptrace.c (call_ptrace): Revert change that replaced
58 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
59
60 2004-08-15 Mark Kettenis <kettenis@gnu.org>
61
62 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
63 Remove defines.
64
65 * linux-nat.c (kill_inferior): Add missing third and fourth
66 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
67
68 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
69 PTRACE_TYPE_RET.
70
71 * proc-why.c (proc_prettyfprint_why): Fix format string.
72
73 * solib-osf.c (osf_current_sos): Remove unsused label.
74
75 * configure.in: Add <ncurses/ncurses.h> to the list of possible
76 curses headers.
77 * configure, config.in: Regenerate.
78 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
79 <ncurses/ncurses.h>.
80
81 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
82 * config/nm-nbsd.h: Update copyright year.
83 (PTRACE_ARG3_TYPE): Remove define.
84
85 * sparc-nat.c (fetch_inferior_registers)
86 (store_inferior_registers, sparc_xfer_wcookie):
87 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
88
89 * alphabsd-nat.c (fetch_inferior_registers):
90 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
91 PTRACE_TYPE_ARG3.
92 * amd64bsd-nat.c (fetch_inferior_registers)
93 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
94 PTRACE_TYPE_ARG3.
95 * armnbsd-nat.c: Update copyright year.
96 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
97 (store_register, store_regs, store_fp_register, store_fp_regs):
98 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
99 * hppabsd-nat.c (fetch_inferior_registers)
100 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
101 PTRACE_TYPE_ARG3.
102 * i386bsd-nat.c (fetch_inferior_registers)
103 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
104 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
105 * m68kbsd-nat.c (fetch_inferior_registers)
106 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
107 PTRACE_TYPE_ARG3.
108 * m88kbsd-nat.c (fetch_inferior_registers)
109 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
110 PTRACE_TYPE_ARG3.
111 * mipsnbsd-nat.c: Update copyright year.
112 (fetch_inferior_registers, store_inferior_registers):
113 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
114 * ns32knbsd-nat.c: Update copyright year.
115 (fetch_inferior_registers, store_inferior_registers):
116 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
117 * ppcnbsd-nat.c (fetch_inferior_registers):
118 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
119 PTRACE_TYPE_ARG3.
120 * ppcobsd-nat.c (fetch_inferior_registers):
121 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
122 PTRACE_TYPE_ARG3.
123 * shnbsd-nat.c: Update copyright year.
124 (fetch_inferior_registers, store_inferior_registers):
125 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
126 * vaxbsd-nat.c (fetch_inferior_registers)
127 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
128 PTRACE_TYPE_ARG3.
129
130 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
131 PTRACE_TYPE_ARG3.
132 * infptrace.c (call_ptrace, child_resume, attach, detach)
133 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
134 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
135 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
136 PTRACE_TYPE_ARG3.
137
138 2004-08-14 Mark Kettenis <kettenis@gnu.org>
139
140 * defs.h: Remove out-of-date comment.
141 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
142 [!GETENV_PROVIDED] (getenv): Remove prototype.
143
144 * standalone.c: Remove file.
145 * Makefile.in (standalone.o): Remove dependency.
146
147 * i386-linux-nat.c (dummy_sse_values): Remove function and
148 prototype.
149 (i386_linux_dr_get): Fix typo in comment.
150 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
151
152 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
153
154 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
155 from declaration.
156 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
157 from definition.
158
159 2004-08-13 Mark Kettenis <kettenis@gnu.org>
160
161 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
162 parenthesis in definition.
163 * configure: Regenerated.
164
165 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
166
167 * PROBLEMS: Mention build/1411.
168
169 2004-08-09 Robert Millan <robertmh@gnu.org>
170
171 Committed by Nathanael Nerode.
172 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
173 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
174
175 2004-08-12 Andrew Cagney <cagney@gnu.org>
176
177 * NEWS: Mention fixes in GDB 6.2.1.
178 * PROBLEMS: Remove mention of mips-irix.
179
180 2004-08-11 Joel Brobecker <brobecker@gnat.com>
181
182 * config/powerpc/xm-aix.h: Delete.
183 * config/powerpc/aix.mh (MH_FILE): Remove.
184 * config/powerpc/aix432.mh (MH_FILE): Remove.
185
186 2004-08-11 Joel Brobecker <brobecker@gnat.com>
187
188 * config/powerpc/aix.mh: Remove obsolete comment.
189 * config/powerpc/aix432.mh: Likewise.
190
191 2004-08-11 Joel Brobecker <brobecker@gnat.com>
192
193 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
194
195 2004-08-11 Joel Brobecker <brobecker@gnat.com>
196
197 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
198 this file is now empty.
199 * config/xm-aix4.h: Remove, this file is no longer included
200 anywhere.
201
202 2004-08-11 Joel Brobecker <brobecker@gnat.com>
203
204 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
205 that file is now empty.
206 (termdef): Remove prototype, function no longer used.
207
208 2004-08-11 Joel Brobecker <brobecker@gnat.com>
209
210 * doc/gdbint.texinfo (Host Definition): Remove documentation
211 for USE_O_NOCTTY, no longer used.
212 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
213 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
214
215 2004-08-11 Joel Brobecker <brobecker@gnat.com>
216
217 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
218 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
219 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
220
221 2004-08-11 Mark Kettenis <kettenis@gnu.org>
222
223 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
224 instead of FIVE_ARG_PTRACE.
225
226 * inflow.c (O_NOCTTY): Define to zero if not already defined.
227 (new_tty): Use O_NOCTTY unconditionally.
228
229 2004-08-10 Mark Kettenis <kettenis@gnu.org>
230
231 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
232 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
233 fflush on stdout.
234
235 2004-08-10 Joel Brobecker <brobecker@gnat.com>
236
237 * xcoff_symfile_finish: Replace last call to xmfree by call
238 to xfree.
239
240 2004-08-10 Andrew Cagney <cagney@gnu.org>
241
242 * main.c (captured_main): Delete call to init_malloc.
243 * defs.h (init_malloc): Delete declaration.
244 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
245 (init_malloc): Delete functions.
246
247 * defs.h (xmfree): Delete.
248 * utils.c (xmfree): Delete function.
249 (xfree): Inline calls to xmfree and mfree.
250 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
251 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
252 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
253 * somread.c (som_symfile_finish): Ditto.
254 * objfiles.c (allocate_objfile, free_objfile):
255 * nlmread.c (nlm_symfile_finish): Ditto.
256 * hpread.c (hpread_symfile_finish): Ditto.
257 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
258 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
259 * coffread.c (coff_symfile_finish): Ditto.
260
261 * defs.h (xmcalloc): Delete declaration.
262 * utils.c (xmcalloc): Delete.
263 (xcalloc): Inline calls to xmcalloc and mcalloc.
264 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
265 xcalloc and xfree.
266 * symtab.c (create_demangled_names_hash): Ditto.
267
268 * defs.h (xmrealloc): Delete.
269 * utils.c (xmrealloc): Delete.
270 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
271 * symmisc.c (extend_psymbol_list): Use xrealloc.
272 * source.c (find_source_lines): Ditto.
273 * hpread.c (hpread_lookup_type): Ditto.
274 * dbxread.c (add_bincl_to_list): Ditto.
275
276 * utils.c (xmmalloc): Delete.
277 (xmalloc): Inline xmmalloc and mmalloc calls.
278 (msavestring): Use xmalloc.
279 * defs.h (xmmalloc): Delete declaration.
280 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
281 xmmalloc.
282 * symmisc.c (extend_psymbol_list): Ditto.
283 * symfile.c (init_psymbol_list): Ditto.
284 * source.c (find_source_lines): Ditto.
285 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
286 * elfread.c (elf_symtab_read): Ditto.
287 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
288 * coffread.c (coff_symfile_init): Ditto.
289
290 2004-08-10 David Carlton <carlton@bactrian.org>
291
292 * MAINTAINERS: Remove David Carlton from c++ testsuite
293 maintainers.
294
295 2004-08-10 Jerome Guitton <guitton@gnat.com>
296
297 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
298 print a line feed before the prompt.
299
300 2004-08-10 Mark Kettenis <kettenis@gnu.org>
301
302 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
303
304 2004-08-09 Joel Brobecker <brobecker@gnat.com>
305
306 General cleanup of the AIX xm include file:
307 * config/xm-aix4.h (fd_set): Remove undefine.
308 Remove include of <sys/select.h>.
309 (HAVE_TERMIO): Remove define.
310 (USG): Likewise.
311 (NULL): Remove redefine.
312 (alloca): Remove #pragma.
313 (vfork): Remove define.
314 (termdef): Remove.
315 (SIGWINCH_HANDLER): Remove.
316 (SIGWINCH_HANDLER_BODY): Remove.
317
318 2004-08-09 Mark Kettenis <kettenis@gnu.org>
319
320 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
321 GDB_OSABI_OPENBSD_ELF.
322
323 2004-08-07 Robert Millan <robertmh@gnu.org>
324
325 * bsd-kvm.c: Check for nlist.h before including it.
326
327 2004-08-09 Mark Kettenis <kettenis@gnu.org>
328
329 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
330 sigcontext' offset consistency checks for ancient BSD.
331
332 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
333
334 * configure.in: Check for <sys/types.h>. Check return and
335 argument types of ptrace.
336 * configure, config.in: Regenerate.
337
338 2004-08-09 Jim Blandy <jimb@redhat.com>
339
340 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
341 rs6000_register_sim_regno): Doc fixes.
342
343 2004-08-08 Joel Brobecker <brobecker@gnat.com>
344
345 * mips-tdep.c: Include "floatformat.h".
346 (n32n64_floatformat_always_valid): New function.
347 (floatformat_n32n64_long_double_big): New constant.
348 (mips_gdbarch_init): Set size and format of long double
349 for N32 and N64 ABIs.
350 * Makefile.in (mips-tdep.o): Update dependencies.
351
352 2004-08-08 Andrew Cagney <cagney@gnu.org>
353
354 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
355 print. Improve script's error messages.
356 * gdbarch.h: Re-generate.
357
358 * gdbarch.sh (pformat): New function.
359 (float_format, double_format, long_double_format): List with bit
360 members. Use pformat when printing.
361 * gdbarch.c, gdbarch.h: Re-generate.
362
363 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
364
365 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
366 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
367 (ppcnbsd_supply_pcb): New function.
368 (_initialize_ppcnbsd_nat): New prototype and function.
369 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
370 (LOADLIBES): New variable.
371 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
372
373 2004-08-08 Andrew Cagney <cagney@gnu.org>
374
375 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
376 (builtin_type_ieee_double, builtin_type_ia64_quad)
377 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
378 BE/LE floating-point types.
379 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
380 (builtin_type_ieee_double, builtin_type_ia64_quad)
381 (builtin_type_ia64_spill): Declare.
382 * doublest.c (_initialize_doublest, floatformat_ieee_single)
383 (floatformat_ieee_double, floatformat_arm_ext)
384 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
385 of LE/BE floatformats.
386 * doublest.h: (struct floatformat, floatformat_ieee_single)
387 (floatformat_ieee_double, floatformat_arm_ext)
388 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
389
390 2004-08-08 Mark Kettenis <kettenis@gnu.org>
391
392 * i386gnu-nat.c (gnu_store_registers): Fix typo.
393
394 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
395 instead of regcache_raw_supply when storing the registers.
396
397 * i386gnu-nat.c: Update copyright year.
398 (gnu_store_registers): Don't use deprecated_registers and
399 deprecated_registers_valid. Use regcache_valid_p and
400 regcache_raw_supply instead.
401
402 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
403 frame_pc_unwind.
404
405 * procfs.c (procfs_pid_to_str): Remove redundant and unused
406 variables. Incapitalized "process".
407
408 * configure.in: Add cursesX to the list of possible curses libs.
409 Add cursesX.h to the list of possible curses headers.
410 * configure, config.in: Regenerate.
411
412 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
413
414 * configure.in: Test for struct lwp in <sys/lwp.h>.
415 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
416 the offset of l_addr in struct lwp.
417
418 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
419
420 * bsd-kvm.c: Include "gdbcore.h"
421 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
422
423 2004-08-07 Andrew Cagney <cagney@gnu.org>
424
425 * gdbtypes.c (build_flt, build_complex): New functions.
426 (gdbtypes_post_init): Use.
427
428 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
429
430 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
431 through to builtin_type_uint128.
432
433 * c-exp.y: Use builtin_type function to obtain builtin types.
434
435 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
436 builtin_uint128.
437 * gdbtypes.c (gdbtypes_post_init): Update.
438 (build_gdbtypes): Move initialization of builtin_type_int0
439 through to builtin_type_uint128 from here ...
440 (_initialize_gdbtypes): ... to here.
441 * d10v-tdep.c (d10v_register_type): Update.
442
443 * doublest.c: Update copyright.
444 (floatformat_from_length): Call error when floatformat is NULL.
445 (extract_floating_by_length): Remove NULL fmt check.
446 (store_floating_by_length): Ditto.
447
448 2004-08-07 Andrew Cagney <cagney@gnu.org>
449
450 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
451 that the register is valid.
452
453 2004-08-05 Mark Kettenis <kettenis@chello.nl>
454
455 * i386-linux-tdep.c (i386_linux_sigtramp_start)
456 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
457 struct frame_info *. Use safe_frame_unwind_memory instead of
458 deprecated_read_memory_nobpt.
459 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
460 changed signature of i386_linux_sigtramp_start and
461 i386_linux_rt_sigtramp_start.
462
463 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
464 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
465 instead of deprecated_read_memory_nobpt.
466 (i386nbsd_sigtramp_p): Adjust for changed signature of
467 i386nbsd_sigtramp_offset.
468
469 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
470 safe_frame_unwind_memory instead of target_read_memory.
471
472 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
473 !NO_SYS_FILE.
474 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
475 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
476 (_initialize_kernel_u_addr): Remove prototype and function.
477 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
478 !NO_SYS_FILE.
479 * xcoffread.c: Likewise.
480
481 2004-08-06 Mark Kettenis <kettenis@gnu.org>
482
483 * vax-nat.c: New file.
484 * vaxbsd-nat.c: Tweak comment.
485 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
486 vaxnbsd-tdep.c.
487 (vax-nat.o): New dependency.
488 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
489 (vax-*-ultrix2*): Remove.
490 * config/vax/vax.mh: New file.
491 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
492 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
493 (vax_register_u_addr): New prototype.
494 (REGISTER_U_ADDR): Define using vax_register_u_addr.
495 * config/vax/vaxult2.mh: Remove file.
496 * config/vax/vaxult.mh: Remove file.
497 * config/vax/vaxbsd.mh: Remove file.
498 * config/vax/vax.mt (TM_FILE): Remove.
499 * config/vax/tm-vaxbsd.h: Remove file.
500
501 2004-08-06 Joel Brobecker <brobecker@gnat.com>
502
503 * aix-thread.c (get_signaled_thread): New function.
504 (iter_trap): Delete, no longer used.
505 (iter_tid): New function.
506 (pd_update): Find the thread that received the SIGTRAP signal
507 by first locating the kernel thread, and then finding its
508 associated thread.
509
510 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
511
512 * lin-lwp.c (child_wait): Continue inferior after processing
513 PTRACE_EVENT_CLONE event.
514
515 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
516
517 * MAINTAINERS: Add self to Write-After-Approval.
518
519 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
520
521 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
522 libunwind-xxxx.so" where xxxx is UNW_TARGET.
523
524 2004-08-05 Andrew Cagney <cagney@gnu.org>
525
526 * config/xm-sysv4.h: Delete file.
527 * config/mips/xm-irix5.h: Delete file.
528 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
529 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
530 * config/ia64/xm-aix.h: Delete file.
531 * config/ia64/aix.mh (XM_FILE): Delete.
532 * config/pa/xm-hppah.h: Delete file.
533 * config/pa/hpux11w.mh (XM_FILE): Delete.
534 * config/pa/hpux11.mh (XM_FILE): Delete.
535 * config/pa/hpux1020.mh (XM_FILE): Delete.
536 * config/pa/hppahpux.mh (XM_FILE): Delete.
537
538 * config/alpha/xm-alphalinux.h: Delete file.
539 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
540 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
541 * config/alpha/xm-alphaosf.h: Delete file.
542 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
543 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
544 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
545 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
546
547 * config/i386/xm-i386v.h: Delete file.
548 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
549 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
550 * config/i386/xm-i386sco.h: Delete file.
551 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
552 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
553 * config/i386/xm-i386v4.h: Delete file.
554 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
555 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
556 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
557 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
558
559 * config/vax/xm-vax.h: Delete file.
560 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
561 * config/vax/xm-vaxult2.h: Delete file.
562 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
563 * config/vax/vaxult2.mh (XM_FILE): Delete.
564 * config/vax/xm-vaxult.h: Delete file.
565 * config/vax/vaxult.mh (XM_FILE): Delete.
566 * config/vax/xm-vaxbsd.h: Delete file.
567 * config/vax/vaxbsd.mh (XM_FILE): Delete.
568
569 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
570 * gdbarch.h, gdbarch.c: Re-generate.
571 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
572 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
573 * frame.h: Delete deprecated_read_fp from comments.
574 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
575 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
576
577 2004-08-04 Mark Kettenis <kettenis@gnu.org>
578
579 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
580 trampoline in OpenBSD 3.5-current.
581
582 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
583 SSE registers.
584
585 * Makefile.in: Remove embedded page breaks.
586
587 2004-08-04 Jim Blandy <jimb@redhat.com>
588
589 * regcache.c (regcache_raw_read): Assert that, after calling
590 target_fetch_registers, the register we're reading is cached.
591
592 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
593 a call to 'internal_error', with a more helpful error message.
594 * rs6000-tdep.c (e500_pseudo_register_read,
595 e500_pseudo_register_write, rs6000_store_return_value): Same.
596
597 2004-08-04 Andrew Cagney <cagney@gnu.org>
598
599 * Makefile.in: Update dependencies.
600
601 2004-08-04 Jim Blandy <jimb@redhat.com>
602
603 Change the layout of the PowerPC E500 raw register cache to allow
604 the lower 32-bit halves of the GPRS to be their own raw registers,
605 not pseudoregisters.
606 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
607 add ppc_ev0_upper_regnum flag.
608 * rs6000-tdep.c: #include "reggroups.h".
609 (spe_register_p): Recognize the ev upper half registers as SPE
610 registers.
611 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
612 registers.
613 (e500_move_ev_register): New function.
614 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
615 vector registers are the pseudo-registers now, formed by splicing
616 together the gprs and the upper-half registers.
617 (e500_register_reggroup_p): New function.
618 (P): Macro deleted.
619 (P8, A4): New macro.
620 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
621 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
622 macros.
623 (registers_e500): Rearrange register set so that the raw register
624 set contains 32-bit GPRs and upper-half registers, and the SPE
625 vector registers become pseudo-registers.
626 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
627 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
628 register numbers are now the same for the E500 as they are for
629 other PowerPC variants. Register e500_register_reggroup_p as the
630 register group function for the E500.
631 * Makefile.in (rs6000-tdep.o): Update dependencies.
632
633 Adapt PPC E500 native support to the new raw regcache layout.
634 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
635 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
636 (fetch_spe_register, store_spe_register): Handle fetching/storing
637 all the SPE registers at once, if regno == -1. These now take
638 over the job of fetch_spe_registers and store_spe_registers.
639 (fetch_spe_registers, store_spe_registers): Deleted.
640 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
641 unconditionally; they're always raw. Fetch/store SPE upper half
642 registers, if present, instead of ev registers.
643 (fetch_register, store_register): Remove sanity checks: gprs are
644 never pseudo-registers now, so we never need to even mention any
645 registers that are ever pseudoregisters.
646
647 Use a fixed register numbering when communicating with the PowerPC
648 simulator.
649 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
650 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
651 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
652 New functions.
653 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
654 init_sim_regno_table.
655 * Makefile.in (gdb_sim_ppc_h): New variable.
656 (rs6000-tdep.o): Update dependencies.
657
658 2004-08-02 Andrew Cagney <cagney@gnu.org>
659
660 * cris-tdep.c (cris_register_size): Restore function, still used
661 locally.
662
663 * gdbarch.sh (deprecated_target_read_fp)
664 (deprecated_frame_locals_address, deprecated_frame_args_address)
665 (deprecated_frame_chain_valid, deprecated_frame_chain)
666 (deprecated_init_extra_frame_info, deprecated_pop_frame)
667 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
668 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
669 * gdbarch.h, gdbarch.c: Re-generate.
670 * regcache.c (deprecated_read_fp): Do not call
671 DEPRECATED_TARGET_READ_FP_P.
672 * infcmd.c (default_print_registers_info): Do not call
673 DEPRECATED_DO_REGISTERS_INFO.
674 * frame-base.c (default_frame_locals_address): Do not call
675 DEPRECATED_FRAME_LOCALS_ADDRESS.
676 (default_frame_args_address): Do not call
677 DEPRECATED_FRAME_ARGS_ADDRESS.
678
679 * gdbarch.sh (deprecated_register_raw_size)
680 (deprecated_register_virtual_size:int): Delete.
681 * gdbarch.h, gdbarch.c: Re-generate.
682 * cris-tdep.c (cris_register_size): Delete.
683 (cris_gdbarch_init): Update.
684 * alpha-tdep.c (alpha_register_raw_size)
685 (alpha_register_virtual_size): Delete.
686 (alpha_gdbarch_init): Update.
687
688 * gdbarch.sh (deprecated_register_virtual_type)
689 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
690 (deprecated_dummy_write_sp): Delete.
691 * gdbarch.h, gdbarch.c: Re-generate.
692
693 * gdbarch.sh (deprecated_register_bytes): Delete.
694 * gdbarch.h, gdbarch.c: Re-generate.
695 * regcache.c (deprecated_register_bytes): New function.
696 * regcache.h (deprecated_register_bytes): Declare.
697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
698 * v850-tdep.c (v850_gdbarch_init): Update.
699 * sh64-tdep.c (sh64_gdbarch_init): Update.
700 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
701 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
702 * mcore-tdep.c (mcore_gdbarch_init): Update.
703 * cris-tdep.c (cris_gdbarch_init): Update.
704 * arm-tdep.c (arm_gdbarch_init): Update.
705 * remote.c (init_remote_state): Update.
706 * remote-vx.c (vx_prepare_to_store): Update.
707 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
708 * irix5-nat.c (fetch_core_registers): Update.
709 * cris-tdep.c (cris_register_bytes_ok): Update.
710 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
711
712 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
713 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
714 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
715 (mips_insn16_frame_base_address, mips_insn16_frame_base)
716 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
717 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
718 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
719 (mips_insn32_frame_base_address, mips_insn32_frame_base)
720 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
721 with mips_insn16 and mips_insn32.
722
723 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
724 * rs6000-tdep.c (rs6000_push_dummy_call)
725 (rs6000_extract_return_value): Use register_size.
726 * xstormy16-tdep.c (xstormy16_get_saved_register)
727 (xstormy16_extract_return_value): Ditto.
728 * valops.c (value_assign): Ditto.
729 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
730 * v850-tdep.c (v850_extract_return_value): Ditto.
731 * tracepoint.c (collect_symbol): Ditto.
732 * target.c (debug_print_register): Ditto.
733 * stack.c (frame_info): Ditto.
734 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
735 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
736 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
737 (store_register_using_P): Ditto.
738 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
739 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
740 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
741 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
742 * regcache.c (deprecated_read_register_bytes)
743 (deprecated_write_register_bytes, read_register)
744 (write_register): Ditto.
745 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
746 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
747 * monitor.c (monitor_supply_register, monitor_fetch_register)
748 (monitor_store_register): Ditto.
749 * mn10300-tdep.c (mn10300_pop_frame_regular)
750 (mn10300_print_register): Ditto.
751 * mipsv4-nat.c (fill_fpregset): Ditto.
752 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
753 (mips64_fill_fpregset): Ditto.
754 * mi/mi-main.c (register_changed_p, get_register)
755 (mi_cmd_data_write_register_values): Ditto.
756 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
757 * irix5-nat.c (fill_gregset, fetch_core_registers):
758 * infrun.c (write_inferior_status_register): Ditto.
759 * infptrace.c (fetch_register, store_register): Ditto.
760 * infcmd.c (default_print_registers_info): Ditto.
761 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
762 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
763 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
764 * hpux-thread.c (hpux_thread_fetch_registers)
765 (hpux_thread_store_registers): Ditto.
766 * hppah-nat.c (store_inferior_registers, fetch_register):
767 * findvar.c (value_from_register): Ditto.
768 * dve3900-rom.c (fetch_bitmapped_register):
769 * cris-tdep.c (cris_gdbarch_init): Ditto.
770 * alpha-tdep.h: Ditto.
771 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
772
773 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
774 DEPRECATED_REGISTER_RAW_SIZE from comments.
775 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
776 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
777 DEPRECATED_REGISTER_RAW_SIZE.
778 * findvar.c (value_of_register): Simplify by assuming that the
779 registers raw and virtual sizes are identical.
780 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
781 comment.
782 * arch-utils.c (generic_register_size): Simplify by assuming
783 register_type.
784
785 * regcache.c (legacy_read_register_gen, real_register)
786 (legacy_write_register_gen): Delete, not used.
787
788 * regcache.c (struct regcache_descr): Delete legacy_p.
789 (init_legacy_regcache_descr): Delete function.
790 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
791 Do not use deprecated register functions.
792 (regcache_raw_read, deprecated_write_register_gen):
793 (deprecated_read_register_gen, regcache_raw_write): Delete code
794 predicated on legacy_p.
795 (register_size): Delete check against register raw size.
796
797 * cris-tdep.c (cris_register_type): Replace
798 cris_register_virtual_type.
799 (cris_gdbarch_init): Update, set register_type.
800
801 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
802 * gdbarch.h, gdbarch.c: Re-generate.
803 * arm-tdep.c (arm_frameless_function_invocation): Delete.
804 (arm_gdbarch_init) Do not set frameless function invocation.
805 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
806 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
807 * frv-tdep.c (frv_frameless_function_invocation): Delete.
808 (frv_gdbarch_init): Do not set frameless function invocation.
809 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
810 * sh-tdep.c (sh_gdbarch_init): Ditto.
811 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
812 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
813 * avr-tdep.c (avr_gdbarch_init): Ditto.
814
815 * blockframe.c (legacy_frame_chain_valid): Delete function.
816
817 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
818 and pc. Update comments.
819 (pc_in_dummy_frame): Delete function.
820 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
821 use the "id".
822 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
823 call_hi, top and pc, use the id.
824 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
825
826 * dummy-frame.c: Include "gdb_string.h".
827 (generic_save_call_dummy_addr, generic_push_dummy_frame)
828 (generic_save_dummy_frame_tos): Delete.
829 (dummy_frame_push): New function, replaces above.
830 * dummy-frame.h: Update copyright.
831 (dummy_frame_push): Declare.
832 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
833 (generic_save_call_dummy_addr): Delete declarations.
834 * infcall.c: Include "dummy-frame.h".
835 (call_function_by_hand): Add locals caller_regcache,
836 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
837 with call to frame_save_as_regcache plus cleanup. Delete calls to
838 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
839 Move clear_proceed_status to just before the resume, add call to
840 dummy_frame_push (discard cleanup).
841 * Makefile.in (infcall.o): Add $(dummy_frame_h).
842 (dummy-frame.o): Add $(gdb_string_h).
843
844 2004-08-01 Andrew Cagney <cagney@gnu.org>
845
846 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
847 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
848 * dummy-frame.c (find_dummy_frame): Delete.
849 (struct dummy_frame_cache, dummy_frame_sniffer)
850 (dummy_frame_prev_register, dummy_frame_this_id)
851 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
852 frame unwinder using a dummy_frame_cache.
853
854 2004-08-01 Andrew Cagney <cagney@gnu.org>
855
856 * frame.h (frame_save_as_regcache): Declare.
857 * frame.c (frame_save_as_regcache): New function.
858 (do_frame_read_register): Replace do_frame_unwind_register.
859 (frame_pop): Use frame_save_as_regcache.
860 * dummy-frame.c (generic_push_dummy_frame): Use
861 frame_save_as_regcache.
862
863 2004-08-01 Joel Brobecker <brobecker@gnat.com>
864
865 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
866 file as included until we record the first line in the linetable.
867
868 2004-08-01 Andrew Cagney <cagney@gnu.org>
869
870 * frame.h (deprecated_pop_dummy_frame)
871 (deprecated_read_register_dummy)
872 (deprecated_generic_find_dummy_frame): Delete.
873 * dummy-frame.c (deprecated_generic_find_dummy_frame)
874 (deprecated_read_register_dummy)
875 (deprecated_find_dummy_frame_regcache)
876 (discard_innermost_dummy)
877 (deprecated_pop_dummy_frame): Delete.
878 (dummy_frame_this_id): Simplify.
879 (struct dummy_frame): Delete "fp" and "sp".
880 (find_dummy_frame): Simplify.
881 (generic_push_dummy_frame): Do not set "fp" or "sp".
882 (fprint_dummy_frames): Do not print "fp" and "sp"
883
884 2004-08-01 Mark Kettenis <kettenis@gnu.org>
885
886 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
887 (struct i386_insn): New structure.
888 (i386_match_insn): New function.
889 (i386_frame_setup_skip_insns): New variable.
890 (i386_analyze_frame_setup): Change to use i386_match_insn and the
891 array i386_frame_setup_insns of instructions that should be
892 skipped inside the frame setup sequence.
893
894 2004-08-01 Andrew Cagney <cagney@gnu.org>
895
896 * frame.h (deprecated_frame_xmalloc_with_cleanup)
897 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
898 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
899 * stack.c (frame_info): Delete references to
900 DEPRECATED_FRAME_INIT_SAVED_REGS and
901 deprecated_get_frame_saved_regs.
902 * frame.c (struct frame_info): Delete saved_regs and extra_info.
903 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
904 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
905 (frame_unwind_register_signed)
906 (frame_unwind_register_unsigned)
907 (frame_unwind_unsigned_register): Use register_size.
908 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
909 (deprecated_frame_xmalloc_with_cleanup)
910 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
911 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
912
913 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
914 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
915 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
916 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
917
918 * infcall.c (call_function_by_hand): Do not use
919 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
920 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
921 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
922 DEPRECATED_STACK_ALIGN.
923
924 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
925
926 Committed by Andrew Cagney.
927 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
928
929 2004-08-01 Andrew Cagney <cagney@gnu.org>
930
931 * mips-tdep.c (mips16_frame_cache)
932 (mips16_frame_this_id, mips16_frame_prev_register)
933 (mips16_frame_unwind, mips16_frame_sniffer)
934 (mips16_frame_base_address, mips16_frame_base)
935 (mips16_frame_base_sniffer, mips32_frame_cache)
936 (mips32_frame_this_id, mips32_frame_prev_register)
937 (mips32_frame_unwind, mips32_frame_sniffer)
938 (mips32_frame_base_address, mips32_frame_base)
939 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
940 separate heuristic mips16 and mips32 unwinders.
941 (mips_stub_frame_cache, mips_stub_frame_this_id)
942 (mips_stub_frame_prev_register)
943 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
944 (mips_stub_frame_base_address, mips_stub_frame_base)
945 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
946 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
947 match true mdebug frames.
948 (non_heuristic_proc_desc): Add forward declaration.
949
950 2004-08-01 Andrew Cagney <cagney@gnu.org>
951
952 * config/mips/tm-irix6.h: Delete file.
953 * config/mips/tm-irix5.h: Delete file.
954 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
955 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
956
957 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
958 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
959 * config/nm-gnu.h (NO_CORE_OPS): Delete.
960 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
961 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
962 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
963 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
964 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
965 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
966 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
967 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
968 (TARGET_SIGNAL_RAW_VALUES): Delete.
969 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
970 Delete.
971 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
972 (TARGET_HW_WATCH_LIMIT): Delete.
973 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
974 * minimon.h: Delete file.
975
976 * trad-frame.c (trad_frame_get_this_base)
977 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
978 functions.
979 * trad-frame.h (trad_frame_set_this_base)
980 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
981
982 2004-07-31 Andrew Cagney <cagney@gnu.org>
983
984 * trad-frame.c (trad_frame_get_prev_register): Rename
985 trad_frame_get_prev_register.
986 * vax-tdep.c (vax_frame_prev_register): Update.
987 * trad-frame.h: Update.
988 * trad-frame.c (trad_frame_get_register): Update.
989 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
990 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
991 Update.
992 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
993 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
994 Update.
995 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
996 Update.
997 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
998 Update.
999 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1000 Update.
1001 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1002 Update.
1003 * s390-tdep.c (s390_frame_prev_register)
1004 (s390_stub_frame_prev_register)
1005 (s390_sigtramp_frame_prev_register): Update.
1006 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1007 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1008 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1009 * m88k-tdep.c (m88k_frame_prev_register)
1010 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1011 * m32r-tdep.c (m32r_frame_prev_register): Update.
1012 * hppa-tdep.c (hppa_frame_prev_register_helper)
1013 * frv-tdep.c (frv_frame_prev_register): Update.
1014 * d10v-tdep.c (d10v_frame_prev_register): Update.
1015 * cris-tdep.c (cris_frame_prev_register): Update.
1016 * avr-tdep.c (avr_frame_prev_register): Update.
1017 * arm-tdep.c (arm_prologue_prev_register)
1018 (arm_sigtramp_prev_register): Update.
1019
1020 2004-07-31 Andrew Cagney <cagney@gnu.org>
1021
1022 * frame.h (legacy_saved_regs_unwind)
1023 (legacy_frame_chain_valid, legacy_frame_p)
1024 (enum frame_type): Delete UNKNOWN_FRAME.
1025 * dummy-frame.c (dummy_frame_this_id): Simplify.
1026 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1027 * frame.c (struct frame_info): Delete the field "type".
1028 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1029 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1030 (legacy_saved_regs_unwind, legacy_frame_p)
1031 (frame_type_from_pc): Delete.
1032 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1033 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1034
1035 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1036
1037 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1038 indentation.
1039
1040 * mips-nat.c: Remove file.
1041 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1042 (mips-nat.o): Remove dependency.
1043
1044 * infptrace.c: Update copyright year.
1045 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1046 explicitly setting the buffer to all zeroes.
1047
1048 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1049 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1050
1051 2004-07-30 Andrew Cagney <cagney@gnu.org>
1052
1053 * GDB 6.2 released from gdb_6_2-branch.
1054
1055 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1056
1057 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1058
1059 * exec.c (exec_file_attach):
1060 * nto-tdep.c (nto_find_and_open_solib):
1061 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1062 * solib.c (solib_open):
1063 * somsolib.c (som_solib_sizeof_symbol_table):
1064 * source.c (is_regular_file, openp, open_source_file):
1065 * symfile.c (symfile_bfd_open):
1066 * wince.c (upload_to_device): Differentiate between the search for
1067 binary and source files.
1068
1069 2004-07-30 Andrew Cagney <cagney@gnu.org>
1070
1071 * complaints.c (_initialize_complaints): Pass NULL to
1072 add_setshow_zinteger_cmd for help_doc.
1073 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1074
1075 2004-07-30 Andrew Cagney <cagney@gnu.org>
1076
1077 Fix PR i18n/761.
1078 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1079 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1080 $(PACKAGE).pot and update-po.
1081 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1082 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1083 (update-po): New rules.
1084 (localedir): Define using autoconf.
1085 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1086 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1087 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1088 * configure.in: Generate CATALOGS and LINGUAS from contents of
1089 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1090 * configure: Re-generate.
1091 * po/gdbtext: New file
1092
1093 2004-07-30 Jerome Guitton <guitton@gnat.com>
1094
1095 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1096 order.
1097
1098 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1099
1100 * dwarf2read.c (read_file_scope): Set producer if attribute
1101 present.
1102 (struct dwarf2_cu): Added new member producer.
1103
1104 2004-07-30 Jerome Guitton <guitton@gnat.com>
1105
1106 * inflow.c (kill_command): release file handles in BFD.
1107 * exec.c (exec_file_attach): Ditto.
1108 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1109
1110 2004-07-29 Andrew Cagney <cagney@gnu.org>
1111
1112 * PROBLEMS (mips-irix): Note that it is broken.
1113
1114 2004-07-29 Andrew Cagney <cagney@gnu.org>
1115
1116 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1117 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1118
1119 * config/xm-nbsd.h: Delete file.
1120 * config/arm/xm-nbsd.h: Delete file.
1121 * config/i386/xm-nbsd.h: Delete file.
1122 * config/ns32k/xm-nbsd.h: Delete file.
1123 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1124 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1125 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1126 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1127 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1128
1129 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1130 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1131 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1132 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1133 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1134 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1135
1136 * config/powerpc/xm-linux.h: Delete empty file.
1137 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1138 * config/powerpc/linux.mh (XM_FILE): Delete.
1139 * config/m68k/xm-linux.h: Delete empty file.
1140 * config/m68k/linux.mh (XM_FILE): Delete.
1141 * config/ia64/xm-linux.h: Delete empty file.
1142 * config/ia64/linux.mh (XM_FILE): Delete.
1143 * config/arm/xm-linux.h: Delete empty file.
1144 * config/arm/linux.mh (XM_FILE): Delete.
1145
1146 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1147 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1148 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1149 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1150 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1151 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1152 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1153 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1154
1155 * config/m68k/xm-m68k.h: Delete file.
1156 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1157 copyright.
1158 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1159 * config/pa/xm-linux.h: Delete empty file.
1160 * config/pa/linux.mh (XM_FILE): Delete.
1161 * config/i386/xm-i386.h: Delete empty file.
1162 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1163 "i386/xm-i386.h".
1164 * config/i386/obsdaout.mh (XM_FILE): Delete.
1165 * config/i386/obsd64.mh (XM_FILE): Delete.
1166 * config/i386/fbsd64.mh (XM_FILE): Delete.
1167 * config/i386/nto.mh (XM_FILE): Delete.
1168 * config/i386/obsd.mh (XM_FILE): Delete.
1169 * config/i386/linux64.mh (XM_FILE): Delete.
1170 * config/i386/linux.mh (XM_FILE): Delete.
1171 * config/i386/i386sol2.mh (XM_FILE): Delete.
1172 * config/i386/i386gnu.mh (XM_FILE): Delete.
1173 * config/i386/fbsd.mh (XM_FILE): Delete.
1174 * config/i386/nbsd64.mh (XM_FILE): Delete.
1175
1176 2004-07-29 Andrew Cagney <cagney@gnu.org>
1177
1178 * config/pa/xm-linux.h: Do not include "floatformat.h".
1179 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1180 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1181 * config/i386/xm-i386.h: Do not include "floatformat.h".
1182 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1183 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1184 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1185 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1186 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1187 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1188 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1189 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1190 * configure, config.in: Regenerate.
1191 * configure.host (gdb_host_float_format, gdb_host_double_format)
1192 (gdb_host_long_double_format): Set according to the host.
1193
1194 2004-07-29 Andrew Cagney <cagney@gnu.org>
1195
1196 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1197
1198 2004-07-28 Andrew Cagney <cagney@gnu.org>
1199
1200 * PROBLEMS: Mention threads/1650.
1201 * NEWS: Mention the NPTL fix.
1202
1203 2004-07-28 Andrew Cagney <cagney@gnu.org>
1204
1205 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1206 (add_setshow_cmd_full): Make static.
1207 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1208 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1209 * cli/cli-decode.c (add_setshow_filename_cmd)
1210 (add_setshow_string_cmd): New functions.
1211 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1212 * mips-tdep.c (_initialize_mips_tdep): Update.
1213 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1214 * cli/cli-logging.c (_initialize_cli_logging): Update.
1215 * complaints.c (_initialize_complaints): Update.
1216 * remote.c (_initialize_remote): Update.
1217
1218 2004-07-28 Andrew Cagney <cagney@gnu.org>
1219
1220 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1221 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1222 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1223 print parameters. Make string parameters constant.
1224 * command.h: Update. Update copyright.
1225 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1226 * observer.c (_initialize_observer): Ditto.
1227 * frame.c (_initialize_frame): Ditto.
1228 * complaints.c (_initialize_complaints): Ditto.
1229 * maint.c (_initialize_maint_cmds): Ditto.
1230 * target.c (initialize_targets): Ditto.
1231 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1232 * infcall.c (_initialize_infcall): Ditto.
1233 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1234 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1235 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1236 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1237 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1238
1239 2004-07-28 Andrew Cagney <cagney@gnu.org>
1240
1241 * gdbtypes.c (lookup_primitive_typename): Delete function.
1242 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1243 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1244 * gdbtypes.c (lookup_typename): Ditto.
1245 * f-exp.y (yylex): Ditto.
1246 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1247
1248 * scm-lang.c (c_builtin_types): Delete extern declaration.
1249 (scm_language_defn): Replace
1250 string_char_type and primitive_type_vector with
1251 la_language_arch_info.
1252 * jv-lang.c (java_language_defn): Replace
1253 string_char_type and primitive_type_vector with
1254 la_language_arch_info.
1255 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1256 c_builtin_types in comment.
1257 * c-lang.h (struct language_arch_info): Declare opaque.
1258 (c_language_arch_info): Declare.
1259 (c_builtin_types): Delete declaration.
1260 * c-lang.c (c_language_arch_info): Set string_char_type to
1261 builtin_char, not builtin_true_char. Make global.
1262 (c_builtin_types): Delete array.
1263 (asm_language_defn, minimal_language_defn): Replace
1264 string_char_type and primitive_type_vector with
1265 la_language_arch_info.
1266
1267 2004-07-28 Andrew Cagney <cagney@gnu.org>
1268
1269 * gdbtypes.h (struct builtin_type): Rename true_char to
1270 builtin_true_char.
1271 * gdbtypes.c (gdbtypes_post_init): Update.
1272 * c-lang.c (arch_info): New function.
1273 (enum c_primitive_types): New enum.
1274 (c_language_defn): Instead of string_char_type and
1275 primitive_type_vector set la_language_arch_info.
1276
1277 2004-07-28 Andrew Cagney <cagney@gnu.org>
1278
1279 * language.h (struct language_arch_info): Fix typo
1280 s/primative/primitive/.
1281 * gdbtypes.c (lookup_primitive_typename): Ditto.
1282 * language.c (language_lookup_primitive_type_by_name)
1283 (unknown_language_arch_info): Ditto.
1284
1285 2004-07-27 Andrew Cagney <cagney@gnu.org>
1286
1287 * defs.h (enum language): Add nr_languages.
1288 * language.h (struct language_arch_info): Define.
1289 (struct language_defn): Add la_language_arch_info.
1290 (language_lookup_primative_type_by_name): Declare.
1291 (language_string_char_type): Declare.
1292 * language.c (_initialize_language, language_gdbarch_post_init)
1293 (struct language_gdbarch, language_gdbarch_data): Implement
1294 per-architecture language information.
1295 (unknown_language_arch_info, language_string_char_type)
1296 (language_lookup_primative_type_by_name): New functions.
1297 (unknown_language_defn, auto_language_defn)
1298 (local_language_defn): Set la_language_arch_info to
1299 unknown_language_arch_info.
1300 (unknown_builtin_types): Delete.
1301 * gdbtypes.c (lookup_primitive_typename): Use
1302 language_lookup_primative_type_by_name.
1303 (create_string_type): Use language_string_char_type.
1304 * values.c (value_from_string): Use language_string_char_type.
1305 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1306 * p-lang.c (pascal_language_defn): Ditto.
1307 * m2-lang.c (m2_language_defn): Ditto.
1308 * jv-lang.c (java_language_defn): Ditto.
1309 * objc-lang.c (objc_language_defn): Ditto.
1310 * f-lang.c (f_language_defn): Ditto.
1311 * c-lang.c (c_language_defn, cplus_language_defn)
1312 (asm_language_defn, minimal_language_defn): Ditto.
1313
1314 2004-07-27 Andrew Cagney <cagney@gnu.org>
1315
1316 * gdbtypes.h (struct builtin_type): Declare.
1317 (builtin_type): Declare.
1318 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1319 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1320 (gdbtypes_post_init): New function.
1321 (builtin_type): New function.
1322
1323 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1324
1325 * remote-m32r-sdi.c: Fix breakpoint bug.
1326 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1327 recv_char_data, recv_long_data): New functions to replace communication
1328 sequences.
1329
1330 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1331
1332 Document PR threads/1650.
1333 * PROBLEMS (Threads): Document problem with many threads
1334
1335 2004-07-26 Andrew Cagney <cagney@gnu.org>
1336
1337 * gdb-mi.el: Move from here ...
1338 * mi/gdb-mi.el: ... to here.
1339
1340 2004-07-26 Andrew Cagney <cagney@gnu.org>
1341
1342 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1343 * main.c (captured_main): When in batch mode always detach.
1344
1345 2004-07-26 Andrew Cagney <cagney@gnu.org>
1346
1347 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1348 and h8300 as broken.
1349 * NEWS: END-OF-LIFE frame compatibility module.
1350 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1351 specific comments.
1352
1353 2004-07-26 Andrew Cagney <cagney@gnu.org>
1354
1355 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1356 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1357 * wince.c (_initialize_wince): Update.
1358 * win32-nat.c (_initialize_win32_nat): Update.
1359 * varobj.c (_initialize_varobj): Update.
1360 * valops.c (_initialize_valops): Update.
1361 * utils.c (initialize_utils, initialize_utils): Update.
1362 * tui/tui-win.c (_initialize_tui_win): Update.
1363 * top.c (init_main): Update.
1364 * symfile.c (_initialize_symfile): Update.
1365 * source.c (_initialize_source): Update.
1366 * somsolib.c (_initialize_som_solib): Update.
1367 * solib.c (_initialize_solib): Update.
1368 * solib-frv.c (_initialize_frv_solib): Update.
1369 * serial.c (_initialize_serial): Update.
1370 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1371 * remote.c (_initialize_remote, _initialize_remote): Update.
1372 * remote-vx.c (_initialize_vx): Update.
1373 * remote-utils.c (_initialize_sr_support): Update.
1374 * remote-sds.c (_initialize_remote_sds): Update.
1375 * remote-mips.c (_initialize_remote_mips): Update.
1376 * remote-e7000.c (_initialize_remote_e7000): Update.
1377 * proc-api.c (_initialize_proc_api): Update.
1378 * printcmd.c: Update.
1379 * parse.c (_initialize_parse): Update.
1380 * pa64solib.c (_initialize_pa64_solib): Update.
1381 * p-valprint.c (_initialize_pascal_valprint): Update.
1382 * monitor.c (_initialize_remote_monitors): Update.
1383 * mips-tdep.c (_initialize_mips_tdep): Update.
1384 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1385 * maint.c (_initialize_maint_cmds): Update.
1386 * lin-lwp.c (_initialize_lin_lwp): Update.
1387 * language.c (_initialize_language): Update.
1388 * kod.c (_initialize_kod): Update.
1389 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1390 * i386-tdep.c (_initialize_i386_tdep): Update.
1391 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1392 * gdbarch.sh: Update.
1393 * gdbarch.c: Re-generate.
1394 * gdb-events.sh: Update.
1395 * gdb-events.c: Re-generate.
1396 * frame.c (_initialize_frame): Update.
1397 * exec.c: Update.
1398 * demangle.c (_initialize_demangler): Update.
1399 * dcache.c (_initialize_dcache): Update.
1400 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1401 * cp-valprint.c (_initialize_cp_valprint): Update.
1402 * corefile.c (_initialize_core): Update.
1403 * command.h: Update.
1404 * cli/cli-decode.h: Update.
1405 * cli/cli-cmds.c (init_cli_cmds): Update.
1406 * charset.c (_initialize_charset): Update.
1407 * breakpoint.c (_initialize_breakpoint): Update.
1408 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1409 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1410 * aix-thread.c (_initialize_aix_thread): Update.
1411
1412 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1413
1414 Partial fix for PR backtrace/1718.
1415 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1416 that GCC migrates into the prolugue. Don't handle any
1417 instructions that clobber %ebx.
1418
1419 2004-07-23 Andrew Cagney <cagney@gnu.org>
1420
1421 Use regcache_raw_collect instead of regcache_collect.
1422 * regcache.h (regcache_collect): Delete declaration.
1423 * regcache.c (regcache_colect): Delete function.
1424 * win32-nat.c (do_child_store_inferior_registers): Update.
1425 * sol-thread.c (sol_thread_store_registers): Update.
1426 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1427 * rs6000-nat.c (store_register): Update.
1428 * remote.c (store_register_using_P, remote_store_registers): Update.
1429 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1430 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1431 (fill_vrregset, store_spe_registers, fill_gregset)
1432 (fill_gregset): Update.
1433 * nto-procfs.c (procfs_store_registers): Update.
1434 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1435 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1436 * m68klinux-nat.c (store_register, fill_gregset): Update.
1437 * m68k-tdep.c (fill_gregset): Update.
1438 * infptrace.c (store_register): Update.
1439 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1440 * i386-linux-nat.c (store_register, fill_gregset): Update.
1441 * hppa-linux-nat.c (fill_gregset): Update.
1442 * go32-nat.c (store_register): Update.
1443 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1444 (store_fp_regs): Update.
1445 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1446 (store_nwfpe_extended, store_fpregister, store_fpregs)
1447 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1448 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1449 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1450 (store_regs_user_thread, store_regs_kernel_thread): Update.
1451
1452 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1453
1454 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1455 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1456 encoding.
1457 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1458 member of `struct comp_unit'.
1459
1460 2004-07-23 Andrew Cagney <cagney@gnu.org>
1461
1462 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1463 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1464
1465 2004-07-23 Martin Hunt <hunt@redhat.com>
1466 Kevin Buettner <kevinb@redhat.com>
1467
1468 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1469 alignment was being added to the offset instead of multiplied.
1470
1471 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1472
1473 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1474 changed signal trampoline in OpenBSD 3.5-current.
1475
1476 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1477 <machine/pcb.h> and "bsd-kvm.h".
1478 (sparc64nbsd_supply_pcb): New function.
1479 (_initialize_sparc64nbsd_nat): Renamed from
1480 _initialize_sparcnbsd_nat. Enable libkvm interface.
1481 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1482 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1483 (LOADLIBES): New variable.
1484
1485 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1486
1487 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1488
1489 2004-07-21 Andrew Cagney <cagney@gnu.org>
1490
1491 Use regcache_raw_supply instead of supply_register.
1492 * regcache.h (supply_register): Delete declaration.
1493 * regcache.c (supply_register): Delete function.
1494 * wince.c (do_child_fetch_inferior_registers): Update.
1495 * win32-nat.c (do_child_fetch_inferior_registers)
1496 (fetch_elf_core_registers): Update.
1497 * v850ice.c (v850ice_fetch_registers): Update.
1498 * thread-db.c (thread_db_store_registers): Update.
1499 * sol-thread.c (sol_thread_store_registers): Update.
1500 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1501 * rs6000-nat.c (fetch_register): Update.
1502 * rom68k-rom.c (rom68k_supply_one_register): Update.
1503 * remote.c (remote_wait, remote_async_wait): Update.
1504 * remote-st.c (get_hex_regs): Update.
1505 * remote-sim.c (gdbsim_fetch_register): Update.
1506 * remote-sds.c (sds_fetch_registers): Update.
1507 * remote-rdp.c (remote_rdp_fetch_register): Update.
1508 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1509 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1510 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1511 * remote-hms.c (init_hms_cmds): Update.
1512 * remote-est.c (init_est_cmds): Update.
1513 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1514 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1515 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1516 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1517 (fetch_register, supply_vrregset, supply_vrregset)
1518 (fetch_spe_registers): Update.
1519 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1520 * monitor.c (monitor_supply_register): Update.
1521 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1522 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1523 (mipsnbsd_supply_fpreg): Update.
1524 * mips-nat.c (fetch_inferior_registers)
1525 (fetch_core_registers): Update.
1526 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1527 (supply_fpregset, mips64_supply_gregset)
1528 (mips64_supply_fpregset): Update.
1529 * m68klinux-nat.c (fetch_register, supply_gregset)
1530 (supply_fpregset): Update.
1531 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1532 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1533 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1534 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1535 * infptrace.c (fetch_register): Update.
1536 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1537 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1538 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1539 (gnu_fetch_registers, gnu_store_registers): Update.
1540 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1541 * i386-linux-nat.c (fetch_register, supply_gregset)
1542 (dummy_sse_values): Update.
1543 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1544 * hppah-nat.c (fetch_register): Update.
1545 * hppa-linux-nat.c (fetch_register, supply_gregset)
1546 (supply_fpregset): Update.
1547 * go32-nat.c (fetch_register): Update.
1548 * dve3900-rom.c (fetch_bitmapped_register)
1549 (_initialize_r3900_rom): Update.
1550 * cris-tdep.c (supply_gregset): Update.
1551 * abug-rom.c (init_abug_cmds): Update.
1552 * core-aout.c (fetch_core_registers): Update.
1553 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1554 (fetch_register, fetch_fp_register): Update.
1555 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1556 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1557 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1558 * alphanbsd-tdep.c (fetch_core_registers): Update.
1559 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1560 * alpha-nat.c (fetch_osf_core_registers)
1561 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1562 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1563 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1564
1565 2004-07-21 Andrew Cagney <cagney@gnu.org>
1566
1567 * PROBLEMS: Mention breakpoints/1702.
1568 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1569 that is known to work.
1570
1571 2004-07-21 Andrew Cagney <cagney@gnu.org>
1572
1573 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1574 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1575 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1576 (handle_inferior_event): Wrap call to deprecated
1577 IGNORE_HELPER_CALL in #ifdef.
1578 * config/mips/tm-nbsd.h: Update.
1579
1580 2004-07-20 Jim Blandy <jimb@redhat.com>
1581
1582 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1583 bfd_mach_ppc has no segment registers.
1584
1585 Include PowerPC SPR numbers for special-purpose registers.
1586 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1587 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1588 new member in initializer.
1589 (S, S4, SN4, S64): New macros for defining special-purpose
1590 registers.
1591 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1592 registers_403, registers_403GC, registers_505, registers_860,
1593 registers_601, registers_602, registers_603, registers_604,
1594 registers_750, registers_e500): Use them.
1595
1596 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1597 replace references with expression used to initialize variable.
1598
1599 2004-07-20 Andrew Cagney <cagney@gnu.org>
1600
1601 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1602 read_memory_nobpt.
1603 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1604 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1605 (s390_sigtramp_frame_sniffer): Update.
1606 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1607 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1608 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1609 (mips32_fetch_instruction): Update.
1610 * mcore-tdep.c (get_insn): Update.
1611 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1612 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1613 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1614 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1615 (i386_linux_rt_sigtramp_start): Update.
1616 * i386-linux-nat.c (child_resume): Update.
1617 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1618 * hppa-linux-tdep.c (insns_match_pattern): Update.
1619 * gdbcore.h: Update.
1620 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1621 * frame.c (safe_frame_unwind_memory): Update.
1622 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1623 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1624 * alpha-tdep.c (alpha_read_insn): Update.
1625
1626 2004-07-20 Andrew Cagney <cagney@gnu.org>
1627
1628 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1629 containing both bytes and mask. Add "frame_type".
1630 * tramp-frame.c (tramp_frame_start): Update.
1631 (tramp_frame_prepend_unwinder): Update.
1632 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1633 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1634 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1635 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1636
1637 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1638
1639 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1640 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1641 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1642 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1643
1644 2004-07-17 Andrew Cagney <cagney@gnu.org>
1645
1646 * NEWS, PROBLEMS: Update for 6.2.
1647
1648 * README: Update to 6.2.
1649
1650 * utils.c (xvasprintf): Call xstrvprintf.
1651
1652 * parse.c: Update copyright.
1653 (null_post_parser): Eliminate ARGSUSED.
1654
1655 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1656 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1657 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1658
1659 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1660 * ppc-linux-nat.c: Use "Linux kernel".
1661 * hppa-linux-tdep.c: Use GNU/Linux.
1662 * hppa-linux-nat.c: Use GNU/Linux.
1663 * dwarfread.c: Add [sic] to use of Linux.
1664
1665 * hppa-linux-nat.c: Do not include <string.h>.
1666 (supply_fpregset): Remove "register" attribute.
1667
1668 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1669
1670 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1671
1672 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1673 * configure, config.in: Regenerated.
1674
1675 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1676 "bsd-kvm.h".
1677 (vaxbsd_supply_pcb): New function.
1678 (_initialize_vaxbsd_nat): New prototype and function.
1679 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1680 solib-sunos.o.
1681 (LOADLIBES): New variable.
1682 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1683 (LOADLIBES): New variable.
1684 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1685 (LOADLIBES): New variable.
1686 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1687
1688 2004-07-16 Andrew Cagney <cagney@gnu.org>
1689
1690 * defs.h (event_loop_p): Replace variable declaration with macro,
1691 always 1.
1692 * main.c (captured_main): Delete options "-async" and "-noasync".
1693 (event_loop_p): Delete variable.
1694 * NEWS: Mention that "-async" and "-noasync" were removed.
1695
1696 2004-07-16 Andrew Cagney <cagney@gnu.org>
1697
1698 * remote-m32r-sdi.c: Re-indent.
1699
1700 2004-07-16 Jim Blandy <jimb@redhat.com>
1701
1702 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1703 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1704 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1705 missing MPC823 SPRs.
1706 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1707 incorrect. (This was corrected in GDB's register name tables on
1708 2004-07-14.)
1709
1710 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1711 should be "esasrr" ("ESA Save and Restore Register").
1712
1713 2004-07-16 Andrew Cagney <cagney@gnu.org>
1714
1715 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1716 calls, no longer applicable. Update comments and rename parameter
1717 "step_frame" to "return_frame".
1718
1719 2004-07-16 Andrew Cagney <cagney@gnu.org>
1720
1721 * frame.c (fprint_field): New function.
1722 (fprint_frame_id): Use fprint_field.
1723
1724 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1725
1726 * ada-lang.c (ada_language_defn): Remove commented out code.
1727
1728 2004-07-15 Jim Blandy <jimb@redhat.com>
1729
1730 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1731 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1732
1733 2004-07-14 Jim Blandy <jimb@redhat.com>
1734
1735 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1736
1737 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1738
1739 * ppc-tdep.h (ppc_num_srs): New enum constant.
1740
1741 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1742 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1743 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1744 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1745 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1746 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1747 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1748 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1749 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1750 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1751 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1752 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1753 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1754 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1755 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1756 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1757 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1758 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1759 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1760 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1761 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1762 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1763 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1764 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1765 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1766 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1767 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1768 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1769 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1770 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1771 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1772 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1773 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1774 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1775 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1776 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1777 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1778 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1779 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1780 special-purpose register numbers.
1781
1782 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1783 manual mentions 'md_twb', but many mention 'm_twb', and at that
1784 point in the register list.)
1785
1786 2004-07-14 Andrew Cagney <cagney@gnu.org>
1787
1788 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1789 instead of "internal-error".
1790
1791 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1792
1793 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1794 that was inserted inside a comment.
1795
1796 2004-07-10 Randolph Chung <tausq@debian.org>
1797
1798 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1799 function.
1800 (hppa_hpux_push_dummy_code): New function.
1801 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1802 Set find_global_pointer method.
1803
1804 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1805
1806 * NEWS: Mention BSD libkvm interface.
1807
1808 2004-07-10 Michael Snyder <msnyder@redhat.com>
1809
1810 * symfile.c (generic_load): Comment typo.
1811 * stack.c (get_selected_block): Ditto.
1812 * regcache.c (regcache_cooked_read): Ditto.
1813 * monitor.c (monitor_debug): Ditto.
1814 * mips-tdep.c (mips_read_pc): Ditto.
1815 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1816 * gdb_mbuild.sh: Ditto.
1817 * gdbarch.sh: Ditto.
1818 * gdbarch.h: Ditto.
1819
1820 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1821
1822 * ada-tasks.c: Remove file.
1823
1824 Remove ARI problems:
1825
1826 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1827 beginning of line.
1828
1829 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1830 Add comment.
1831 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1832 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1833 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1834 (UMIN_OF_SIZE): Remove.
1835 (max_of_type): New function to replace orphan macro in gdbtypes.h
1836 (min_of_type): Ditto.
1837 (discrete_type_high_bound): Use max_of_type.
1838 (discrete_type_low_bound): Use min_of_type.
1839 (possible_user_operator_p): Move operator to beginning of line.
1840 (ada_is_variant_part): Ditto.
1841 (ensure_lval): Rewrite to avoid deprecated operations.
1842 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1843 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1844 (ada_enum_name): Remove assignments in 'if' statements.
1845 (build_ada_types): Add gdbarch parameter.
1846 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1847 with gdbarch_data_register_post_init.
1848 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1849 add_show_from_set.
1850
1851 * ada-valprint.c (inspect_it): Remove declaration.
1852 (repeat_count_threshold): Remove declaration.
1853 (ada_print_floating): Remove assignments in 'if' statements.
1854 (print_str): Move operator to beginning of line.
1855
1856 2004-07-08 Jim Blandy <jimb@redhat.com>
1857
1858 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1859
1860 2004-07-08 Bob Rossi <bob@brasko.net>
1861
1862 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1863
1864 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1865
1866 * language.h (struct_language_defn): Add new function pointer:
1867 la_class_name_from_physname. Also add new prototype for
1868 language_class_name_from_physname.
1869 * language.c (language_class_name_from_physname): New function.
1870 (unk_lang_class_name): Ditto.
1871 (unknown_language_defn, auto_language_defn): Change
1872 to add unk_lang_class_name function pointer for
1873 la_class_name_from_physname.
1874 (local_language_defn): Ditto.
1875 * dwarf2read.c (guess_structure_name): Change to call
1876 language_class_name_from_physname.
1877 (determine_class_name): Ditto.
1878 * cp-support.c (class_name_from_physname): Renamed.
1879 (cp_class_name_from_physname): New name of function.
1880 * cp-support.h: Ditto.
1881 * c-lang.c (c_language_defn): Change to add NULL
1882 for class_name_from_physname function pointer.
1883 (cplus_language_defn): Change to add cp_class_name_from_physname.
1884 * jv-lang.c (java_class_name_physname): New function.
1885 (java_find_last_component): New static routine.
1886 (java_language_defn): Add java_class_name_from_physname pointer.
1887 * ada-lang.c (ada_language_defn): Change to add NULL
1888 for class_name_from_physname function pointer.
1889 * f-lang.c (f_language_defn): Ditto.
1890 * m2-lang.c (m2_language_defn): Ditto.
1891 * objc-lang.c (objc_language_defn): Ditto.
1892 * p-lang.c (pascal_language_defn): Ditto.
1893 * scm-lang.c (scm_language_defn): Ditto.
1894
1895 2004-07-06 Andrew Cagney <cagney@gnu.org>
1896
1897 Patch from Bart Robinson.
1898 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1899 (O_LARGEFILE): Define to 0, if not defined.
1900
1901 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1902
1903 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1904 <machine/pcb.h> and "bsd-kvm.h".
1905 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1906 (m68kbsd_supply_pcb): New function.
1907 (_initialize_m68kbsd_nat): New prototype and function.
1908 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1909 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1910 (LOADLIBES): New variable.
1911 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1912 (LOADLIBES): New variable.
1913
1914 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1915
1916 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1917
1918 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1919 <sys/proc.h>.
1920 (bsd_kvm_cmdlist): New variable.
1921 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1922 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1923 command and "kvm proc" command.
1924 * Makefile.in (bsd-kvm.o): Update dependencies.
1925
1926 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1927
1928 * osabi.c: Update copyright year.
1929 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1930 notes if EI_OSABI is set to ELFOSABI_HPUX.
1931
1932 2004-07-01 Michael Snyder <msnyder@redhat.com>
1933
1934 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1935 that seems to have gotten whacked out of line.
1936
1937 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1938
1939 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1940 code.
1941
1942 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1943
1944 * ada-lang.c (decode_packed_array): Minor change to comment.
1945 (ada_value_slice_ptr): New function.
1946 (ada_value_slice): New function.
1947 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1948 test. Don't know why it is there.
1949 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1950 to avoid dereferencing huge arrays from which one is slicing.
1951 (empty_array): Correct to return an array rather than
1952 a subrange value.
1953 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1954 on empty arrays (let'em use 'FIRST instead).
1955
1956 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1957
1958 Address complaints from gdb_ari.sh:
1959
1960 * ada-exp.y: Include gdb_string.h rather than string.h.
1961 (convert_char_literal): Reformat declaration.
1962 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1963 * ada-lex.l: Change use of free to xfree (the macro would do so
1964 anyway, but this is harmless).
1965 Include gdb_string.h rather than string.h.
1966 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1967
1968 * ada-lang.c (parse): Remove K&Rism in parameter list.
1969 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1970
1971 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1972
1973 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1974 dead code.
1975
1976 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1977
1978 * alphabsd-nat.c: Update copyright year.
1979 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1980
1981 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1982
1983 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1984 (i386_cygwin_in_solib_call_trampoline): New function.
1985 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1986 and skip_trampoline_code gdbarch methods.
1987
1988 2004-06-29 Jim Blandy <jimb@redhat.com>
1989
1990 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1991 name actually used in the dependency lists.
1992
1993 2004-06-29 Randolph Chung <tausq@debian.org>
1994
1995 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1996
1997 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1998
1999 * win32-nat.c (child_pid_to_exec_file): New function.
2000 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2001 functionality.
2002
2003 2004-06-28 Andrew Cagney <cagney@gnu.org>
2004
2005 * defs.h (xstrvprintf): Declare.
2006 * utils.c (xstrvprintf): New function.
2007 (internal_vproblem, xstrprintf, xasprintf)
2008 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2009 * serial.c (serial_printf): Ditto.
2010 * complaints.c (vcomplaint): Ditto.
2011
2012 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2013
2014 * infcmd.c (attach_command): Move call to target_terminal_inferior
2015 behind loading symbol table.
2016
2017 2004-06-28 Andrew Cagney <cagney@gnu.org>
2018
2019 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2020 change - add back extern deprecated_ui_loop_hook declaration.
2021
2022 2004-06-28 Andrew Cagney <cagney@gnu.org>
2023
2024 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2025 xstrprintf.
2026 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2027 (c_value_of_variable): Ditto.
2028 * utils.c (internal_vproblem): Ditto.
2029 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2030 * remote.c (add_packet_config_cmd): Ditto.
2031 * remote-rdp.c (rdp_set_command_line): Ditto.
2032 * regcache.c (regcache_dump): Ditto.
2033 * frv-tdep.c (new_variant, new_variant): Ditto.
2034 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2035 (fbsd_find_memory_regions): Ditto.
2036 * breakpoint.c (create_thread_event_breakpoint)
2037 (create_breakpoints): Ditto.
2038 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2039 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2040
2041 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2042
2043 * ada-lang.c: Re-indent file, with some massaging to help indent
2044 a bit when the result is otherwise really too ugly.
2045
2046 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2047
2048 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2049 code_addr_p and special_addr_p to 'unsigned int'.
2050
2051 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2052
2053 * i386v4-nat.c: Update copyright year and tweak comment.
2054 (regmap): Remove trailing comma.
2055 (supply_gregset): Rename local variable i to regnum. Call
2056 regcache_raw_supply instead of supply_register.
2057 (fill_gregset): Rename argument regno to regnum. Call
2058 regcache_raw_collect instead of regcache_collect.
2059
2060 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2061
2062 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2063 and special_addr_p.
2064 (frame_id_build, frame_id_build_special): Update comments.
2065 (frame_id_build_wild): New prototype.
2066 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2067 struct frame_id fields.
2068 (frame_id_build_wild): New function.
2069 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2070
2071 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2072
2073 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2074 hppabsd-tdep.c.
2075
2076 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2077
2078 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2079
2080 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2081
2082 * ada-lang.c: Re-indent file.
2083
2084 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2085
2086 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2087 (no_symtab_msg): Likewise.
2088
2089 2004-06-27 Andreas Schwab <schwab@suse.de>
2090
2091 * source.c: Fix whitespace.
2092
2093 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2094
2095 * configure.in: Include <sys/param.h> for td_pcb test.
2096 * configure: Regenerated.
2097
2098 * i386nbsd-nat.c: New file.
2099 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2100 i386obsd-nat.c and i386obsd-tdep.c.
2101 (i386nbsd-nat.o): New dependency.
2102 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2103 bsd-kvm.o.
2104 (LOADLIBES): New variable.
2105 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2106 bsd-kvm.o.
2107 (LOADLIBES): New variable.
2108
2109 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2110 (LOADLIBES): New variable.
2111
2112 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2113 fetching from BSD_KVM_PADDR. Correctly lookup address for
2114 "_thread0".
2115
2116 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2117 "bsd-kvm.h".
2118 (amd64fbsd_supply_pcb): New funcion.
2119 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2120
2121 2004-06-27 <david@streamline-computing.com>
2122
2123 Partial fix for PR cli/1056.
2124 * valarith.c: Check for zero in division and remainder
2125 evaluation.
2126
2127 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2128
2129 * i387-tdep.c: Remove excessive whitespace.
2130
2131 2004-06-26 Andrew Cagney <cagney@gnu.org>
2132
2133 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2134 * gdb-events.h, gdb-events.c: Re-generate.
2135 * tui/tui-hooks.c (tui_install_hooks): Update.
2136 (tui_remove_hooks): Update.
2137 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2138
2139 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2140
2141 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2142 (gregset_t, fpregset_t): Remove typedefs.
2143 (REG_OFFSET): Rename argument.
2144 (amd64bsd_r_reg_offset): Rename from reg_offset.
2145 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2146 Remove functions.
2147 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2148 of reg_offset.
2149 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2150
2151 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2152
2153 * vax-tdep.c: Tweak comment.
2154
2155 Add OpenBSD/hppa support.
2156 * NEWS (New native configurations): Mention OpenBSD/hppa.
2157 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2158 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2159 files.
2160 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2161 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2162 * configure.host: Add hppa*-*-openbsd*.
2163 * configure.tgt: Add hppa*-*-openbsd*.
2164
2165 2004-06-25 Andrew Cagney <cagney@gnu.org>
2166
2167 * defs.h (deprecated_ui_loop_hook): Deprecated.
2168 * wince.c (child_wait): Update.
2169 * win32-nat.c (child_wait): Update.
2170 * v850ice.c (v850ice_wait): Update.
2171 * top.c (deprecated_ui_loop_hook): Update.
2172 * serial.h: Update.
2173 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2174 (do_unix_readchar): Update.
2175 * ser-tcp.c (net_open): Update.
2176 * remote-sim.c (gdb_os_poll_quit): Update.
2177 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2178
2179 2004-06-24 Andrew Cagney <cagney@gnu.org>
2180
2181 * defs.h (deprecated_pre_add_symbol_hook)
2182 (deprecated_post_add_symbol_hook): Deprecated.
2183 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2184 (symbol_file_add_with_addrs_or_offsets): Update references.
2185
2186 2004-06-24 Andrew Cagney <cagney@gnu.org>
2187
2188 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2189 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2190 * wince.c (ui_loop_hook): Delete extern declaration.
2191 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2192 * v850ice.c (ui_loop_hook): Delete extern declaration..
2193 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2194 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2195 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2196 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2197 ui_loop_hook declaration.
2198
2199 2004-06-24 Andrew Cagney <cagney@gnu.org>
2200
2201 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2202 entry_func_highpc fields.
2203 * objfiles.c (init_entry_point_info): Do not clear
2204 entry_func_lowpc and entry_func_highpc.
2205 (objfile_relocate): Do not relocate entry_func_lowpc and
2206 entry_func_highpc.
2207 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2208 entry_func_highpc.
2209 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2210 entry_func_highpc.
2211 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2212 entry_func_lowpc and entry_func_highpc with call to
2213 inside_entry_func.
2214
2215 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2216
2217 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2218 quad-precision floating point arguments in registers.
2219
2220 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2221
2222 From Michael Mueller <m.mueller99@kay-mueller.de>:
2223 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2224 account.
2225
2226 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2227
2228 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2229 to -1.
2230 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2231 untriggered watchpoints to a separate if clause. Update function
2232 comment regarding STOPPED_BY_WATCHPOINT argument.
2233
2234 2004-06-22 Jim Blandy <jimb@redhat.com>
2235
2236 * gdbarch.sh: Doc fix.
2237
2238 2004-06-21 Martin Hunt <hunt@redhat.com>
2239 Kevin Buettner <kevinb@redhat.com>
2240
2241 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2242 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2243 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2244 to set_gdbarch_sp_regnum(). Use cooked register number.
2245 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2246
2247 2004-06-21 Andrew Cagney <cagney@gnu.org>
2248
2249 * gdbarch.sh: When the macro field is empty, do not generate a
2250 macro definition. When the macro field is "=", generate the macro
2251 name from the upper-case function name.
2252 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2253 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2254 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2255 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2256 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2257 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2258 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2259 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2260 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2261 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2262 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2263 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2264 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2265 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2266 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2267 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2268 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2269 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2270 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2271 (DEPRECATED_USE_STRUCT_CONVENTION)
2272 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2273 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2274 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2275 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2276 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2277 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2278 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2279 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2280 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2281 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2282 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2283 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2284 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2285 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2286 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2287 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2288 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2289 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2290
2291 2004-06-21 Andrew Cagney <cagney@gnu.org>
2292
2293 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2294 macro name, and the function rather than macro value. Only wrap
2295 macro print statements in #ifdef. Move format logic to where it
2296 is needed.
2297 * gdbarch.c: Re-generate.
2298
2299 * gdbarch.sh (read): Delete "print_p" and "description", add
2300 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2301 Delete references to print_p.
2302 (TARGET_ARCHITECTURE): Delete print predicate.
2303 * gdbarch.c: Re-generate.
2304
2305 * gdbarch.sh: Check that multi-arch methods do not provide a
2306 macro.
2307 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2308 (print_registers_info, print_float_info, print_vector_info)
2309 (adjust_breakpoint_address, remote_translate_xfer_address)
2310 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2311 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2312 name from the multi-arch definition.
2313
2314 2004-06-20 Andrew Cagney <cagney@gnu.org>
2315
2316 * gdbarch.sh: Sort by the function, instead of macro name.
2317 * gdbarch.c: Re-generate.
2318
2319 2004-06-20 Andrew Cagney <cagney@gnu.org>
2320
2321 * gdbarch.sh: Use the function, instead of macro name in
2322 errors and the log file.
2323 (return_value): Remove stray ":" in spec.
2324
2325 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2326 * gdbarch.h, gdbarch.c: Re-generate.
2327 * Makefile.in (arch-utils.o): Update dependencies.
2328 * values.c (using_struct_return): Move code calling
2329 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2330 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2331 to legacy_return_value, simplify.
2332 * infcmd.c (print_return_value): Move code calling
2333 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2334 to legacy_return_value, simplify.
2335 * infcall.c (call_function_by_hand): Move code calling
2336 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2337 * arch-utils.c: Update copyright. Include "gdbcore.h".
2338 (legacy_return_value): New function.
2339 * arch-utils.h: Update copyright.
2340 (legacy_return_value): Declare.
2341
2342 2004-06-20 Andrew Cagney <cagney@gnu.org>
2343
2344 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2346 * values.c (using_struct_return): Update call.
2347 * mcore-tdep.c: Update comment.
2348 * infcall.c (call_function_by_hand): Update comment.
2349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2350 * arch-utils.h (always_use_struct_convention): Update.
2351 * v850-tdep.c (v850_gdbarch_init): Update.
2352 * sh64-tdep.c (sh64_gdbarch_init): Update.
2353 * sh-tdep.c (sh_gdbarch_init): Update.
2354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2355 * mips-tdep.c (mips_gdbarch_init): Update.
2356 * mcore-tdep.c (mcore_gdbarch_init): Update.
2357 * m32r-tdep.c (m32r_gdbarch_init): Update.
2358 * ia64-tdep.c (ia64_gdbarch_init): Update.
2359 * h8300-tdep.c (h8300_gdbarch_init): Update.
2360 * frv-tdep.c (frv_gdbarch_init): Update.
2361 * cris-tdep.c (cris_gdbarch_init): Update.
2362 * arm-tdep.c (arm_gdbarch_init): Update.
2363 * alpha-tdep.c (alpha_gdbarch_init): Update.
2364
2365 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2366
2367 * PROBLEMS: Add more specific information, and a work-around,
2368 for PR gdb/1458.
2369
2370 2004-06-18 Andrew Cagney <cagney@gnu.org>
2371
2372 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2373 * gdbarch.h, gdbarch.c: Re-generate.
2374 * ada-lang.c (ada_finish_decode_line_1): Update.
2375 * infrun.c (handle_inferior_event): Update.
2376 * infcall.c (find_function_addr): Update.
2377 * linespec.c (minsym_found): Update.
2378 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2379 Update.
2380 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2381 * cli/cli-cmds.c (disassemble_command): Update.
2382 * vax-tdep.c (vax_gdbarch_init): Update.
2383
2384 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2385
2386 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2387
2388 2004-06-17 Andrew Cagney <cagney@gnu.org>
2389
2390 GDB 6.1.1 released from the GDB 6.1 branch.
2391 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2392 * PROBLEMS: Ditto.
2393
2394 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2395
2396 PR gdb/1658
2397 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2398 operation as a uleb128. Found by Michael Coulter.
2399
2400 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2401
2402 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2403 make it non-static.
2404 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2405 to ada-lang.h; this is needed to be able to implement the kill command
2406 in multi-task mode.
2407 (task_ptid): Ditto.
2408 (task_entry): Ditto.
2409 (task_list): Ditto.
2410 (ada_build_task_list): Ditto.
2411
2412 * ada-lang.c: Conditionalize routines and data structures related
2413 to breakpoints, exceptions, completion, and symbol caching on
2414 GNAT_GDB, since these are not yet used in the submitted public sources.
2415 (ada_main_name): Editorial: Move definition out of exception-related
2416 code.
2417
2418 2004-06-15 Andrew Cagney <cagney@gnu.org>
2419
2420 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2421 deprecated_pc_in_call_dummy.
2422
2423 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2424
2425 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2426 bfd_get_section_size_before_reloc or _raw_size.
2427 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2428 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2429 (dwarf2_read_section): Likewise.
2430 * elfread.c (elf_locate_sections): Likewise.
2431 * gcore.c (derive_heap_segment): Likewise.
2432 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2433 * remote-e7000.c (e7000_load): Likewise.
2434 * remote-m32r-sdi.c (m32r_load): Likewise.
2435 * remote-mips.c (mips_load_srec): Likewise.
2436 (pmon_load_fast): Likewise.
2437 * remote.c (compare_sections_command): Likewise.
2438 * symfile.c (add_section_size_callback): Likewise.
2439 (load_section_callback): Likewise.
2440 (pc_in_unmapped_range): Likewise.
2441 (pc_in_mapped_range): Likewise.
2442 (sections_overlap): Likewise.
2443 (list_overlays_command): Likewise.
2444 (simple_overlay_update_1): Likewise.
2445 (simple_overlay_update): Likewise.
2446 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2447 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2448
2449 2004-06-14 Randolph Chung <tausq@debian.org>
2450
2451 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2452 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2453 static.
2454 (hppa_hpux_inferior_created): New function.
2455 (hppa_hpux_init_abi): Register observer.
2456 * symfile.c (hp_cxx_exception_support_initialized)
2457 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2458 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2459
2460 2004-06-14 Randolph Chung <tausq@debian.org>
2461
2462 * MAINTAINERS (Write After Approval): Alphabetize my entry
2463 correctly.
2464
2465 2004-06-14 Andrew Cagney <cagney@gnu.org>
2466
2467 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2468 testsuite maintainer.
2469
2470 2004-06-13 Andrew Cagney <cagney@gnu.org>
2471
2472 * infcmd.c (print_return_value): Fix logic, allow
2473 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2474
2475 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2476 defining any macros.
2477 * gdbarch.h: Re-generate.
2478
2479 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2480 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2481 * gdbarch.h: Re-generate.
2482
2483 * values.c (generic_use_struct_convention): Don't check gcc_p.
2484
2485 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2486 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2487 * gdbarch.h, gdbarch.c: Regenerate.
2488 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2489 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2491 deprecated_max_register_raw_size and
2492 deprecated_max_register_virtual_size.
2493 * v850-tdep.c (v850_gdbarch_init): Ditto.
2494 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2497 * cris-tdep.c (cris_gdbarch_init): Ditto.
2498
2499 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2500 * gdbarch.h, gdbarch.c: Re-generate.
2501 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2502 (m68hc11_use_struct_convention): Delete function.
2503 (m68hc11_extract_struct_value_address): Delete function.
2504 (m68hc11_return_value): New function.
2505 (m68hc11_gdbarch_init): Instead of store_return_value,
2506 extract_return_value, return_value_on_stack,
2507 deprecated_extract_struct_value_address and use_struct_convention,
2508 set return_value.
2509 * values.c (using_struct_return): Do not call
2510 RETURN_VALUE_ON_STACK.
2511 * arch-utils.h (generic_return_value_on_stack_not): Delete
2512 declaration.
2513 * arch-utils.c (generic_return_value_on_stack_not): Delete
2514 function.
2515
2516 2004-06-12 Andrew Cagney <cagney@gnu.org>
2517
2518 * values.c (register_value_being_returned): Delete function.
2519 * infcmd.c (legacy_return_value): Delete function.
2520 * infcall.c (call_function_by_hand): Inline
2521 "register_value_being_returned", simplify.
2522 * values.c (using_struct_return): Update comment, refer to
2523 print_return_value instead of register_value_being_returned.
2524 * infcmd.c (print_return_value): Inline calls to
2525 register_value_being_returned and legacy_return_value. Simplify.
2526
2527 2004-06-11 Randolph Chung <tausq@debian.org>
2528
2529 * somread.c (som_symtab_read): Exclude gcc local symbols.
2530
2531 2004-06-11 Randolph Chung <tausq@debian.org>
2532
2533 * infrun.c (handle_inferior_event): Handle the case when a
2534 trampoline ends up in the runtime resolver, and if the trampoline
2535 has no name. Rearrange the code so that all the trampoline
2536 processing happens before other step-out-of-range handling.
2537
2538 2004-06-11 Martin Hunt <hunt@redhat.com>
2539
2540 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2541 has no fpu.
2542
2543 2004-06-10 Andrew Cagney <cagney@gnu.org>
2544
2545 * blockframe.c (legacy_inside_entry_func): Delete.
2546 (legacy_frame_chain_valid): Inline call to
2547 legacy_inside_entry_func, simplify.
2548
2549 2004-06-10 Bob Rossi <bob@brasko.net>
2550
2551 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2552 * dwarf2read.c (partial_die_info): Add dirname field.
2553 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2554 (read_partial_die): Save away DW_AT_comp_dir.
2555 * defs.h (symtab_to_filename): Removed.
2556 * source.c (find_and_open_source): Added.
2557 (open_source_file): Just calls find_and_open_source.
2558 (symtab_to_filename): Removed.
2559 (symtab_to_fullname, psymtab_to_fullname): Added.
2560 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2561 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2562 symtab_to_filename.
2563 * symtab.h (partial_symtab): Add dirname field.
2564 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2565 (mi_cmd_file_list_exec_source_file): Call new function
2566 symtab_to_fullname to find fullname.
2567 (mi_cmd_file_list_exec_source_files): Added.
2568 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2569 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2570
2571 2004-06-10 Andrew Cagney <cagney@gnu.org>
2572
2573 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2574 to generic_use_struct_convention, the default value.
2575
2576 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2577 of abort.
2578
2579 * ns32k-tdep.c (ns32k_push_arguments): New function.
2580 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2581 * infcall.c (call_function_by_hand): Call error instead of
2582 legacy_push_arguments.
2583 * value.h (legacy_push_arguments): Delete declaration.
2584 * valops.c (legacy_push_arguments): Delete function.
2585 (value_push): Delete function.
2586
2587 2004-06-10 Brian Ford <ford@vss.fsi.com>
2588
2589 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2590 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2591 info.
2592 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2593
2594 2004-06-10 Andrew Cagney <cagney@gnu.org>
2595
2596 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2597 * gdbarch.h, gdbarch.c: Re-generate.
2598 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2599 parameters.
2600 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2601 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2602 deprecated_pc_in_call_dummy instead of
2603 DEPRECATED_PC_IN_CALL_DUMMY.
2604 (arm_skip_prologue): Ditto.
2605 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2606 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2607 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2608 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2609 Ditto.
2610 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2611 (sh64_init_extra_frame_info, sh64_get_saved_register)
2612 (sh64_pop_frame): Ditto.
2613 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2614 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2615 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2616 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2617 (h8300_pop_frame): Ditto.
2618 * blockframe.c (legacy_inside_entry_func)
2619 (legacy_frame_chain_valid): Ditto.
2620 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2621 to deprecated_pc_in_call_dummy.
2622
2623 2004-06-09 Andrew Cagney <cagney@gnu.org>
2624
2625 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2626 provide a default value.
2627 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2628 * gdbarch.h, gdbarch.c: Re-generate.
2629 * arch-utils.c (generic_convert_register_p): Rename
2630 legacy_convert_register_p
2631 (legacy_register_to_value, legacy_value_to_register): Delete
2632 functions.
2633 * arch-utils.h (generic_convert_register_p): Rename
2634 legacy_convert_register_p.
2635 (legacy_register_to_value, legacy_value_to_register): Delete
2636 declarations.
2637
2638 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2639 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2640 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2641 * gdbarch.h, gdbarch.c: Re-generate.
2642 * infcmd.c (default_print_registers_info): Simplify.
2643 * findvar.c (value_of_register): Simplify.
2644 * mi/mi-main.c (get_register): Simplify.
2645 * arch-utils.c (legacy_convert_register_p): Always return 0.
2646 (legacy_register_to_value, legacy_value_to_register): Always call
2647 internal_error.
2648
2649 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2650 #ifdef CLEAR_INSN_CACHE code.
2651 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2652 Delete #ifdef CLEAR_DEFERRED_STORES code.
2653
2654 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2655
2656 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2657 copyright.
2658 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2659
2660 * config/mips/mipsv4.mh: Delete file.
2661
2662 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2663 unreferenced macro.
2664 (hpread_adjust_stack_address): Delete declaration.
2665
2666 2004-06-08 Andrew Cagney <cagney@gnu.org>
2667
2668 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2669 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2670 PTRACE_ATTACH / PTRACE_DETACH available call error.
2671 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2672 * infttrace.c (update_thread_state_after_attach, attach, detach):
2673 Remove #ifdef wrappers.
2674 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2675 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2676 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2677 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2678 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2679 * config/nm-linux.h (ATTACH_DETACH): Delete.
2680 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2681 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2682 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2683 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2684 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2685
2686 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2687
2688 * configure.in: Set $configdir to the right OS specific value.
2689 Use value when setting $tcldir and $tkdir.
2690 * configure: Regenerate.
2691
2692 2004-06-06 Paul Brook <paul@codesourcery.com>
2693
2694 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2695 records.
2696
2697 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2698
2699 * ada-lang.c (lookup_symbol_in_language): New function to allow
2700 re-use of another language's symbol lookup code. (Placed here
2701 temporarily while Ada support is being integrated into the public
2702 tree).
2703 (restore_language): New auxiliary function for
2704 lookup_symbol_in_language.
2705 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2706 temporarily while Ada support is being integrated into the public
2707 tree).
2708
2709 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2710
2711 * Makefile.in (check//%): New.
2712
2713 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2714 (mn10300_store_return_value): Rewrite.
2715 (mn10300_type_align): New.
2716 (mn10300_use_struct_convention): Rewrite.
2717 (mn10300_return_value): New, using all of the above.
2718 (mn10300_pop_frame_regular): Add saved_regs_size.
2719 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2720
2721 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2722 regs if PC is on movm.
2723
2724 2004-06-07 Jim Blandy <jimb@redhat.com>
2725
2726 Add native Linux support for the PowerPC E500.
2727 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2728 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2729 all architectures except the E500.
2730 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2731 #definitions.
2732 (struct gdb_evrregset_t): New type.
2733 (have_ptrace_getsetevrregs): New variable.
2734 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2735 fetch_spe_registers): New functions.
2736 (fetch_register): Call fetch_spe_register as appropriate.
2737 Assert that we're only passed raw register numbers.
2738 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2739 Don't fetch gprs if they're pseudoregisters.
2740 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2741 store_spe_registers): New functions.
2742 (store_register): Call store_spe_register as appropriate.
2743 Assert that we're only passed raw register numbers.
2744 (store_ppc_registers): Call store_spe_registers as appropriate.
2745 Don't store gprs if they're pseudoregisters.
2746
2747 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2748
2749 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2750 struct if one exists, even if we are dealing with a zombie thread.
2751
2752 2004-06-07 Andrew Cagney <cagney@gnu.org>
2753
2754 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2755 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2756 Rename PC_REQUIRES_RUN_BEFORE_USE.
2757 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2758 #ifdef.
2759
2760 2004-06-07 Randolph Chung <tausq@debian.org>
2761
2762 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2763 unwinding after sp has been saved to the stack but before the end
2764 of the prologue, and after the fp has been modified but before it has
2765 been saved to the stack.
2766 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2767 Remove superfluous definitions.
2768 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2769
2770 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2771
2772 Committed by Randolph Chung.
2773 * hppa-linux-nat.c: Include the correct version of the header file
2774 depending on the kernel version.
2775
2776 2004-06-06 Randolph Chung <tausq@debian.org>
2777
2778 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2779 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2780
2781 2004-06-06 Randolph Chung <tausq@debian.org>
2782
2783 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2784 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2785 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2786 * hppa-tdep.c (hppa_symbol_address): New function definition.
2787 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2788
2789 2004-06-06 Randolph Chung <tausq@debian.org>
2790
2791 * hppa-tdep.h (struct value): Forward declaration.
2792 (gdbarch_tdep): Define tdep find_global_pointer method.
2793 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2794 associated with the function we are trying to call, and write it
2795 to the gp register.
2796 (hppa32_convert_from_funct_ptr_addr): New function.
2797 (hppa_find_global_pointer): New function.
2798 (hppa_gdbarch_init): Set default find_global_pointer method; set
2799 convert_from_func_ptr_addr method.
2800 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2801 (hppa_linux_init_abi): Set find_global_pointer method.
2802 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2803
2804 2004-06-06 Randolph Chung <tausq@debian.org>
2805
2806 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2807 to struct value *function.
2808 * gdbarch.c: Regenerate.
2809 * gdbarch.h: Likewise.
2810 * infcall.c (call_function_by_hand): Pass entire function value
2811 to push_dummy_call.
2812
2813 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2814 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2815 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2816 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2817 * arm-tdep.c (arm_push_dummy_call): Likewise.
2818 * avr-tdep.c (avr_push_dummy_call): Likewise.
2819 * cris-tdep.c (cris_push_dummy_call): Likewise.
2820 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2821 * frv-tdep.c (frv_push_dummy_call): Likewise.
2822 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2823 * hppa-tdep.c (hppa32_push_dummy_call)
2824 (hppa64_push_dummy_call): Likewise.
2825 * i386-tdep.c (i386_push_dummy_call): Likewise.
2826 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2827 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2828 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2829 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2830 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2831 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2832 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2833 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2834 (ppc64_sysv_abi_push_dummy_call): Likewise.
2835 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2836 (ppc64_sysv_abi_push_dummy_call): Likewise.
2837 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2838 * s390-tdep.c (s390_push_dummy_call): Likewise.
2839 * sh-tdep.c (sh_push_dummy_call_fpu)
2840 (sh_push_dummy_call_nofpu): Likewise.
2841 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2842 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2843 * vax-tdep.c (vax_push_dummy_call): Likewise.
2844
2845 2004-06-04 Jim Blandy <jimb@redhat.com>
2846
2847 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2848 gdbarch argument to register_size.
2849
2850 * rs6000-tdep.c (rs6000_store_return_value): Use
2851 regcache_cooked_write_part instead of
2852 deprecated_write_register_bytes.
2853 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2854 not gdbarch_deprecated_store_return_value.
2855
2856 * ppc-linux-nat.c (store_register, fetch_register): Remove
2857 incorrect assertions. Simplify and generalize handling of
2858 transfers whose sizes are not multiples of, or less than, sizeof
2859 (PTRACE_XFER_TYPE).
2860
2861 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2862
2863 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2864 as a new thread event.
2865 * thread-db.c (thread_get_info_callback): If the thread is a
2866 zombie, return TD_THR_ZOMBIE.
2867 (thread_from_lwp): If thread_get_info_callback returns
2868 TD_THR_ZOMBIE, check if the thread is still on the thread list
2869 and return a -1 ptid if not found.
2870 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2871 change the status to TARGET_WAITKIND_SPURIOUS.
2872
2873 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2874
2875 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2876 double values in little endian mode.
2877
2878 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2879
2880 Committed by Andrew Cagney.
2881 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2882 after last enum constant to avoid error from IBM C
2883 compiler.
2884
2885 2004-06-02 Jim Blandy <jimb@redhat.com>
2886
2887 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2888 to 'message', and make it local to the lone block that uses it.
2889
2890 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2891
2892 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2893
2894 * ada-exp.y: Update copyright notice.
2895 Include block.h.
2896
2897 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2898 SPECIAL_VARIABLE and unify the treatment of these cases.
2899
2900 (write_attribute_call0): Remove.
2901 (write_attribute_call1): Remove.
2902 (write_attribute_calln): Remove.
2903 (save_qualifier): Add missing semicolon.
2904
2905 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2906 temporarily disabled to allow compilation with FSF head version.
2907
2908 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2909 use individual operators (OP_*) for all attributes.
2910 (exp syntax): Use write_int.
2911 Handle STRING literals with OP_STRING.
2912 (variable syntax): Add limit parameter to calls to
2913 write_object_renaming.
2914
2915 (temp_parse_space): New definition to hold entities that need
2916 only live until the next call to ada_parse.
2917 (string_to_operator): Rename fields of ada_opname_table entries.
2918
2919 (write_var_from_sym): Record block.
2920 (write_var_from_name): Minor reformatting.
2921 Make sure saved name is properly encoded in the case of multiple
2922 matches, and set its language to Ada.
2923 Update comment.
2924 Modify to indicate unresolved name as symbol in the UNRESOLVED
2925 namespace, allocated in temp_parse_space.
2926 (write_int): New function.
2927
2928 (write_object_renaming): Add max_depth parameter to limit
2929 chains of object renamings.
2930 Handle case where root of renaming expression is itself a renaming.
2931 Use temp_parse_space for temporary name buffer.
2932 Handle renamings to dereferenced pointers (___XEXA suffices).
2933
2934 (ada_parse, yyerror, string_to_operator,
2935 write_var_from_sym, write_var_from_name, write_attribute_call0,
2936 write_attribute_call1, write_attribute_calln,
2937 write_object_renaming): Protoize.
2938
2939 (_initialize_ada_exp): New function.
2940
2941 * ada-lang.c: Update copyright notice.
2942 General terminology change to conform to GNAT compiler usage:
2943 mangle => encode, demangle => decode
2944 Include gdb_obstack.h.
2945 Include gdb_regex.h
2946 Include frame.h
2947 Include hashtab.h
2948 Include completer.h
2949 Include gdb_stat.h
2950 Include block.h
2951 Include infcall.h
2952
2953 (ADA_RETAIN_DOTS): Make sure this is defined.
2954 (TRUNCATION_TOWARDS_ZERO): Define.
2955 (struct string_vector): Define.
2956 (unresolved_names): Remove definition.
2957 (xnew_string_vector): New function.
2958 (string_vector_append): New function.
2959 (extract_string): Make static.
2960 (ada_unqualified_name): New function.
2961 (add_angle_brackets): New function.
2962 (function_name_from_pc): New function.
2963 (place_on_stack): Rename to ensure_lval.
2964
2965 (ensure_lval): Renamed from place_on_stack.
2966 Make identity on lvals.
2967 Update comment.
2968 (is_nonfunction): New interface.
2969 Only symbols in LOC_CONST class can be enumerals.
2970 (fill_in_ada_prototype): Remove; now independent of language.
2971 (add_defn_to_vec): Add obstack and symtab arguments.
2972 Use obstack to hold collected definitions.
2973 (num_defns_collected): New function.
2974 (defns_collected): New function.
2975 (ada_resolve_subexp): Rename to resolve_subexp.
2976 (resolve_subexp): Renamed from ada_resolve_subexp.
2977 (ada_op_name): Return non-const result.
2978 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2979 other purposes.
2980
2981 (to_fixed_array_type): Add declaration.
2982 (coerce_unspec_val_to_type): Remove offset parameter.
2983 (find_sal_from_funcs_and_line): New interface.
2984 (find_line_in_linetable): Ditto.
2985
2986 (all_sals_for_line): Rename to ada_sals_for_line and make
2987 global.
2988 Add new parameter. When set, do not ask the user to choose the
2989 instance, but use the first one found instead.
2990 Use given line number in returned sals.
2991 Fix comment.
2992 Skip the prologue if funfirstline is set.
2993 Correct for memory leak when 0 lines found.
2994
2995 (value_pos_atr): Use pos_atr.
2996 (pos_atr): New function.
2997 (standard_lookup): Add block parameter.
2998
2999 (makeTimeStart): Remove declaration and uses.
3000 (makeTimeStop): Remove declaration and uses.
3001
3002 (ada_completer_word_break_characters): Allow for VMS.
3003 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3004 (raise_sym_name): New constant.
3005 (raise_unhandled_sym_name): New constant.
3006 (raise_assert_sym_name): New constant.
3007 (process_raise_exception_name): New constant.
3008 (longest_exception_template): New constant.
3009 (warning_limit): New variable to limit warnings during expression
3010 evaluation.
3011 (warnings_issued): New variable to keep track of warnings issued.
3012 (known_runtime_file_name_patterns): New constant.
3013 (known_auxiliary_function_name_patterns): New constant.
3014 (symbol_list_obstack): New variable.
3015
3016 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3017 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3018 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3019 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3020 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3021 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3022 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3023 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3024 and strcmp.
3025
3026 (ada_get_field_index): New function.
3027 (lim_warning): New function.
3028 (ada_translate_error_message): New function.
3029 (MAX_OF_SIZE): New function.
3030 (MIN_OF_SIZE): New function.
3031 (UMAX_OF_SIZE): New function.
3032 (UMIN_OF_SIZE): New function.
3033 (discrete_type_high_bound): New function.
3034 (discrete_type_low_bound): New function.
3035 (base_type): New function.
3036 (do_command): Remove.
3037
3038 (ada_update_initial_language): Use language_ada, not language_unknown.
3039 (ada_encode): Renamed from ada_mangle.
3040 Obey ADA_RETAIN_DOTS.
3041 (ada_decode): Renamed from ada_demangle.
3042 Update coding conventions.
3043 (decoded_names_store): New hash table.
3044 (ada_decode_symbol): New function.
3045 (ada_la_decode): New function.
3046
3047 (modify_general_field): Correct computations of offset and bit
3048 position.
3049 (desc_base_type): Handle ref types, too.
3050 (ada_is_direct_array_type): New function.
3051
3052 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3053 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3054 (ada_is_bogus_array_descriptor,ada_type_of_array,
3055 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3056 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3057 ada_is_array_descriptor_type.
3058
3059 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3060 (ada_is_packed_array_type): Handle pointers or
3061 references to packed arrays as well.
3062 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3063 (decode_packed_array_type): Search for the packed array type
3064 symbol in the currently selected block and associated
3065 superblocks too.
3066 Use lookup_symbol again.
3067
3068 (decode_packed_array): Handle pointers and references.
3069 Update call to coerce_unspec_val_to_type.
3070 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3071 (ada_value_primitive_packed_val): Improve comment.
3072
3073 (ada_index_type): Substitute int type for "undefined".
3074 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3075 ada_array_langth, ada_is_string_type): Use renamed
3076 ada_is_simple_array_type.
3077 (empty_array): New function.
3078
3079 (ada_resolve): Rename to resolve.
3080 (resolve): Make static.
3081 Call renamed resolve_subexp.
3082 Update comment.
3083 (ada_resolve_subexp): Rename to resolve_subexp.
3084 (resolve_subexp): Update comment.
3085 Decomment disabled code.
3086 Add LOC_COMPUTED* cases.
3087 Modify to use temporary struct symbols (marked as being in
3088 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3089 OP_UNRESOLVED_VALUE.
3090 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3091 Add OP_STRING case.
3092 Remove OP_ARRAY.
3093 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3094 Use new ada_lookup_symbol_list interface.
3095 Use new ada_resolve_function interface.
3096 Remove OP_TYPE case.
3097
3098 (ada_args_match): Idiot proof against null actuals.
3099 Use intermediate variables to clarify.
3100 (ada_resolve_function): Update comment and interface.
3101 (mangled_ordered_before): Rename to encoded_ordered_before and
3102 update comment.
3103 (sort_choices): Update comment and interface.
3104 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3105 (user_select_syms): New interface.
3106 Use new sort_choices interface.
3107 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3108 (possible_user_operator_p): Idiot-proof against null values.
3109 (ada_simple_renamed_entity): Don't make cleanup; rely on
3110 caller to free result string.
3111 Remove const from return type.
3112 (make_array_descriptor): Rename uses of place_on_stack to
3113 ensure_lval.
3114 Make sure that arrays are on stack.
3115
3116 (HASH_SIZE): Define.
3117 (struct cache_entry): Define.
3118 (cache_space): Define.
3119 (cache): Define.
3120 (clear_ada_sym_cache): New function.
3121 (find_entry): New function.
3122 (lookup_cached_symbol): New function.
3123 (defn_vector_size): Define.
3124 (cache_symbol): New function.
3125 (defn_symbols): Remove.
3126
3127 (standard_lookup): Use lookup_symbol_in_language to get effect of
3128 C lookup.
3129 Cache results.
3130
3131 (symbol_completion_match): New function.
3132 (symbol_completion_add): New function.
3133 (ada_make_symbol_completion_list): New function.
3134
3135 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3136 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3137 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3138 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3139
3140 (ada_lookup_simple_minsym): New function.
3141 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3142
3143 (add_symbols_from_enclosing_procs): New interface.
3144 Conditionalize more helpfully.
3145 Don't bother if program isn't running.
3146 Use new interface to get_frame_block.
3147 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3148
3149 (remove_extra_symbols): New interface.
3150 (xget_renaming_scope): New function.
3151 (is_package_name): New function.
3152 (renaming_is_visible): New function.
3153 (remove_out_of_scope_renamings): New function.
3154
3155 (ada_lookup_symbol_list): New interface.
3156 Properly reinitialize the symbol list obstack.
3157 Don't call add_symbols_from_enclosing_procs if we start from a
3158 static or global block.
3159 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3160 add_symbols_from_enclosing_procs.
3161 Add symtab data to cached entries.
3162 Handle symbols prefixed with
3163 "standard__" specially; strip prefix and don't look in local symbols.
3164 Do not include out of scope renaming symbols in list of
3165 symbols returned.
3166 Add const to block parameter.
3167 Move check for non-local, non-global symbols earlier.
3168 Remove timing stuff.
3169 (ada_lookup_symbol): New interface.
3170 Find symtab as well.
3171 (ada_lookup_symbol_nonlocal): New function.
3172
3173 (is_name_suffix): Enhance suffix detection to recognize
3174 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3175 (is_dot_digits_suffix): New function.
3176 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3177
3178 (ada_add_block_symbols): New interface. Use obstack to return results
3179 in a vector of struct ada_symbol_infos. Add symtab argument.
3180 Use new interface to add_defn_to_vec.
3181 Remove calls to fill_in_ada_prototype.
3182 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3183
3184 (ada_finish_decode_line_1): Add const qualification to local to fix
3185 warning.
3186 Start looking in static block for functions to avoid attempts
3187 to search frame chain for up-level variables.
3188 Adapt to new ada_sals_for_line interface.
3189 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3190 Handle quoting of the function name inside the spec string.
3191 Skip prologue when funfirstline is set and update the
3192 function documentation to that effect.
3193
3194 (debug_print_lines, debug_print_block, debug_print_blocks,
3195 debug_print_symtab): Remove.
3196
3197 (ada_main_name): New function.
3198 (ada_exception_breakpoint_type): New function.
3199 (is_known_support_routine): New function.
3200 (ada_find_printable_frame): Renamed from find_printable_frame and made
3201 global.
3202 Remove level parameter.
3203 Use new interface to select_frame.
3204
3205 (begin_command): Remove.
3206 (ada_adjust_exception_stop): New function.
3207 (ada_print_exception_stop): New function.
3208 (exception_name_from_cond): New function.
3209 (ada_report_exception_break): Replace disabled code with
3210 conditionalization on GNAT_GDB.
3211 Get the exception name from the condition string.
3212 Remove and move functionality into new functions
3213 ada_print_exception_breakpoint_task and
3214 ada_print_exception_breakpoint_nontask.
3215 (error_breakpoint_runtime_sym_not_found): New function.
3216 (is_runtime_sym_defined): New function.
3217 (ada_breakpoint_rewrite): Uncomment suppressed code.
3218 Use symbolic error-message and runtime-symbol names.
3219 Surround runtime symbol names in quotes.
3220 Allow non-specific breakpoints on exceptions and assertions before
3221 program starts.
3222
3223 (ada_is_tagged_type): Add parameter.
3224 (ada_is_tag_type): New function.
3225 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3226 (ada_variant_discrim_type): Ditto.
3227 (value_tag_from_contents_and_address): New function.
3228 (type_from_tag): New function.
3229 (struct tag_args): New structure used to communicate with
3230 ada_tag_name_1.
3231 (ada_tag_name_1): New function.
3232 (ada_tag_name): New function.
3233
3234 (ada_scan_number): Update comment.
3235 (find_struct_field): New function.
3236 (ada_search_struct_field): Make static.
3237 (ada_value_struct_elt): New version that returns references when
3238 given pointers or references to structs.
3239 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3240 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3241 interface.
3242 (ada_value_ind): Use new ada_to_fixed_value interface.
3243 (ada_coerce_ref): Ditto.
3244 (field_offset): Remove.
3245
3246 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3247 (ada_find_renaming_symbol): New function.
3248 (ada_prefer_type): Prefer named types over unnamed ones.
3249 (variant_field_index): New function.
3250 (contains_variant_part): Removed: subsumed by variant_field_index.
3251 (ada_template_to_fixed_record_type): New function, mostly from
3252 template_to_fixed_record_type.
3253 (template_to_fixed_record_type):
3254 Do not scan the type fields beyond the last one; prevents a
3255 potential SEGV.
3256 Handle case where variant field is listed BEFORE discriminant it
3257 depends on.
3258 Fix calculation of record length when bit length is
3259 not evenly divisible by char length.
3260 Move code to ada_template_to_fixed_record_type and call it.
3261
3262 (template_to_static_fixed_type): Revise comment.
3263 Modify to work on ordinary record types as well as templates,
3264 so as to handle fields that use ___XVE or ___XVU encodings.
3265 (to_record_with_fixed_variant_part): Fill out comment.
3266 Initialize C++ stuff in right type.
3267 Allow case where DVAL is null.
3268 Handle case where variant field is not last.
3269 Fix typo concerning record length.
3270 (to_fixed_record_type): Decomment disabled code.
3271 (to_fixed_record_type): Use variant_field_index instead of
3272 contains_variant_part.
3273 (to_fixed_variant_branch_type): Ditto.
3274 (to_fixed_array_type): Decomment disabled code.
3275 (ada_to_fixed_type): Convert tagged types to the specific type.
3276 Deactivate the size-check for array types in order to avoid
3277 some false size alarms.
3278 (to_static_fixed_type): Decomment disabled code.
3279 Modify to call template_to_static_fixed_type
3280 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3281 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3282 Remove valaddr argument, as it is never really used.
3283 (ada_to_fixed_value): Change interface to act on single struct value*
3284 operand.
3285 (adjust_pc_past_prologue): New function.
3286 (ada_attribute_name): Modify to take enum exp_opcode argument.
3287
3288 (ada_enum_name): Recognize new homonym-distinguishing convention.
3289 Adjust local variable's type to remove compiler warning.
3290 Fix a small problem in the part that unqualifies the enumeration name.
3291 (ada_value_binop): New function.
3292 (ada_value_equal): New function.
3293
3294 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3295 Don't give error message when not doing normal evaluation
3296 and a tagged type doesn't seem to contain a structure member.
3297 Give error message for packed arrays.
3298 For indexing arrays, handle pointers to packed arrays correctly.
3299 Handle case of 'first and 'last attributes of bare integral type
3300 without encoded subtype info.
3301 Remove some unnecessary casts.
3302 Fix uninitialized value of type in computing 'first, 'last, or 'length
3303 of array object.
3304 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3305 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3306 calls.
3307 Attributes are now exp_opcode values.
3308 Correct treatment of 'modulus.
3309 Better error message for taking 'length of wrong kind of type;
3310 improve comment.
3311 Change EVAL_NORMAL to noside for consistency.
3312 Use ada_value_binop for DIV, MOD, REM.
3313 Make special case out of array of length 0, since an argument
3314 of 0 upsets some platforms' malloc.
3315 Use OP_STRING instead of OP_ARRAY.
3316 For slice, add check that we have an array type before extracting
3317 a slice out of it. Avoids a SEGV.
3318 When evaluating an array slice, if the array type is a reference to
3319 an aligner type, then replace the aligner type by the actual type.
3320 Decomment disabled code.
3321 Remove some dead code.
3322 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3323 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3324 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3325 and UNOP_MBR to UNOP_IN_RANGE.
3326 If an array type has a parallel ___XVE type, then use it.
3327 Turn arrays into pointers for lvalue arrays.
3328 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3329 bounds error and handle 0-length slices.
3330 Use lim_warning.
3331 When selecting fields, apply ada_to_fixed_value (because the fields
3332 might have ___XVU or ___XVE encodings even if not dynamic.)
3333 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3334 (ada_is_system_address_type): New function.
3335
3336 (get_var_value): Use new interface to ada_lookup_symbol_list.
3337 (get_int_var_value): New interface.
3338 (to_fixed_range_type): Allow unknown bound, with warning.
3339 (ada_is_modular_type): Decomment disabled code.
3340 (ADA_OPERATORS): New definition.
3341 (ada_operator_length): New function.
3342 (ada_expr_op_name): New function.
3343 (ada_forward_operator_length): New function.
3344 (ada_dump_subexp_body): New function.
3345 (ada_print_subexp): New function.
3346 (ada_exp_descriptor): New constant.
3347 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3348 (ada_language_defn): Add ada_exp_descriptor entry.
3349 Change ada_parse => parse.
3350 Add post-parser entry.
3351 Use ada-specific non-local symbol lookup.
3352 Don't use C-style arrays.
3353 String lower-bound is 1.
3354 Decomment disabled code.
3355 (parse): New function.
3356 New fields ada_translate_error_message, ada_lookup_symbol,
3357 ada_lookup_minimal_symbol.
3358
3359 * ada-lang.h: Update copyright dates.
3360 Replace the mangle/demangle terminology throughout by the
3361 more appropriate encode/decode one.
3362 Include breakpoint.h.
3363 Forward declare struct partial_symbol, struct block.
3364 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3365 (EXTRACT_ADDRESS): Remove.
3366 (EXTRACT_INT): Remove.
3367 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3368 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3369 (MAX_RENAMING_CHAIN_LENGTH): Define.
3370 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3371
3372 (enum task_states): Remove.
3373 ada_task_states: Remove.
3374 (fat_string): Remove.
3375 (struct entry_call): Remove.
3376 (struct task_fields): Remove.
3377 (struct task_entry): Remove.
3378
3379 (struct ada_symbol_info): Define.
3380 (enum ada_attribute): Remove.
3381 (enum ada_operator): Define.
3382
3383 (ada_get_field_index): Declare.
3384 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3385 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3386 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3387 (ada_lookup_symbol_list): New interface.
3388 (ada_decode_symbol): Declare.
3389 (ada_decode): Declare.
3390 (ada_lookup_symbol): New interface.
3391 (ada_update_initial_language): Declare.
3392 (ada_lookup_simple_minsym): Declare.
3393 (user_select_syms): New interface.
3394 (ada_sals_for_line): Declare.
3395 (ada_is_tagged_type): New interface.
3396 (ada_tag_name): Declare.
3397 (ada_lookup_struct_elt_type): Remove declaration.
3398 (ada_search_struct_field): Remove declaration.
3399 (ada_attribute_name): New interface.
3400 (ada_is_system_address_type): Declare.
3401 (ada_to_fixed_value): Remove declaration.
3402 (ada_template_to_fixed_record_type_1): Declare.
3403 (get_int_var_value): New interface.
3404 (ada_find_any_symbol): Declare.
3405 (ada_find_renaming_symbol): Declare.
3406 (ada_mangle): Rename to ada_encode.
3407 (ada_simple_renamed_entity): Remove const.
3408 (ada_main_name): Declare.
3409 (get_current_task): Rename to ada_get_current_task.
3410 (get_entry_number): Remove declaration.
3411 (ada_report_exception_break): Remove declaration.
3412 (ada_print_exception_breakpoint_nontask): Declare.
3413 (ada_print_exception_breakpoint_task): Declare.
3414 (ada_find_printable_frame): Declare.
3415
3416 * ada-lex.l: Update copyright notices.
3417 Use xmalloc and xfree instead of malloc and free.
3418 Use new interface to name_lookup.
3419 Use new interface to
3420 ada_mangle=>ada_encode.
3421 Redo handling of '$...' variable to parallel current treatment
3422 in c-exp.y.
3423 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3424 digit_to_int, strtoulst, processInt, processReal, processId,
3425 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3426 yywrap): Protoize.
3427
3428 (processInt): Use cast to remove harmless warning.
3429 (processReal): Modify to get rid of compiler warning on scan formats.
3430
3431 (processId): Replace xmalloc with obstack_alloc for name and remove
3432 call to ada_name_string_cleanup.
3433 Remove obsolete disabled code.
3434 (name_lookup): Ditto.
3435 New interface.
3436 Use obsavestring on temp_parse_space instead of savestring
3437 on name, and remove call to ada_name_string_cleanup.
3438 Free string returned from ada_simple_renamed_entity.
3439 Use new interface to ada_lookup_symbol_list.
3440 Decomment disabled code.
3441 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3442 not types.
3443 When a type name lookup succeeds as a result of
3444 lookup_primitive_typename, check for regular type entry that has not
3445 yet been read in.
3446 Limit length of chain of renamed symbols we are willing to follow.
3447 Do not break names beginning with "standard__" into segments.
3448 (block_lookup): Use new interface to ada_lookup_symbol_list.
3449
3450 * ada-typeprint.c: Update copyright notice.
3451 (demangled_type_name): Rename to decoded_type_name.
3452 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3453 (print_range_bound): Correct handling of negative
3454 bounds that make the index type looked unsigned under STABS.
3455 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3456 (print_range_type_named): Use the builtin int type if no type
3457 corresponding to the given type name could be found.
3458 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3459 Add some bullet-proofing.
3460 (print_variant_clauses): Allow for variant branches with ___XVU
3461 encodings that are not dynamic fields.
3462 Use new interface to ada_is_tagged_type.
3463 (print_record_type): Allow for fields with ___XVE encodings that
3464 are not dynamic fields.
3465 Use new interface to ada_is_tagged_type.
3466 (ada_print_type): ada_is_array_descriptor =>
3467 ada_is_array_descriptor_type.
3468
3469 * ada-valprint.c: Update copyright notice.
3470 Include gdb_string.h
3471 Include infcall.h
3472 (ui_memcpy): New function.
3473 (ada_print_floating): New function.
3474 (ada_print_str): Order arguments correctly.
3475 Correct handling of empty arrays and arrays of 0-length items.
3476 ada_is_array_descriptor => ada_is_array_descriptor_type
3477 Print values of type System.Address in hexadecimal format.
3478 Use ada_print_floating to print floating-point numbers in Ada format.
3479 Print class tag values with type names.
3480 No longer print the address of reference values. Avoids
3481 a potential confusion.
3482 (ada_value_print): Stop printing the object type for reference
3483 values, but preserve that behavior for access types. Avoids
3484 a potential confusion.
3485 Simplify one conditional expression, as the first part is now
3486 necessarily true.
3487 ada_is_array_descriptor => ada_is_array_descriptor_type
3488 Add check for arrays for null records, and print them by hand.
3489
3490 2004-06-01 Jim Blandy <jimb@redhat.com>
3491
3492 * ppc-tdep.h: Delete unused 'regoff' member.
3493 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3494
3495 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3496
3497 Fix PR symtab/1661.
3498 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3499 (hpread_read_struct_type): Likewise.
3500
3501 2004-06-01 Andrew Cagney <cagney@gnu.org>
3502
3503 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3504 instead of xasprintf.
3505 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3506 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3507 (mi_cmd_data_list_register_names)
3508 (mi_cmd_data_list_changed_registers)
3509 (mi_cmd_data_list_register_values)
3510 (get_register, mi_cmd_data_write_register_values)
3511 (mi_cmd_data_write_register_values)
3512 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3513 (mi_cmd_target_download, mi_cmd_target_select)
3514 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3515 (mi_execute_cli_command, mi_execute_async_cli_command)
3516 (mi_execute_async_cli_command): Ditto.
3517 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3518 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3519
3520 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3521 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3522 error_last_message instead of mi_error_last_message.
3523 * mi/mi-main.c (mi_error_last_message): Delete function.
3524
3525 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3526 "invalid number of columns" error. Delete redundant "out of
3527 memory" check.
3528
3529 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3530
3531 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3532 (gregset_t, fpregset_t): Remove typedefs.
3533 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3534 (REG_OFFSET): Rename argument.
3535 (i386bsd_r_reg_offset): Rename from reg_offset.
3536 (REG_ADDR): Remove macro.
3537 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3538 functions.
3539 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3540 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3541 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3542 instead of supply_gregset.
3543 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3544 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3545 instead of fill_gregset.
3546 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3547
3548 * i386bsd-nat.c: Don't include "gregset.h".
3549 (supply_gregset, fill_gregset): Make static.
3550 (supply_fpregset, fill_fpregset): Remove.
3551 * Makefile.in (i386bsd-nat.o): Update dependencies.
3552
3553 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3554
3555 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3556 "gdb_assert.h". Con't include "gregset.h".
3557 (fbsd_make_corefile_notes): Use regset-based core file support
3558 instead off fill_gregset and fill_fpregset.
3559 * Makefile.in (fbsd-proc.o): Update dependencies.
3560
3561 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3562 instructions.
3563 (m88k_frame_prev_register): Simplify code a bit.
3564
3565 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3566 (amd64_collect_fpregset): New function.
3567 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3568
3569 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3570
3571 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3572 (i386_collect_gregset): New function.
3573 (i386_supply_fpregset): Adjust comment.
3574 (i386_collect_fpregset): New function.
3575 (i386_regset_from_core_section): Use i386_collect_gregset and
3576 i386_collect_fpregset.
3577
3578 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3579 handle VALUEP being null.
3580
3581 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3582
3583 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3584
3585 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3586
3587 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3588 assembler in OpenBSD 3.5-current.
3589 (amd64obsd_sigcontext_addr): Likewise.
3590
3591 2004-05-28 Jim Blandy <jimb@redhat.com>
3592
3593 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3594 register set, so our regcache isn't declared "legacy" and our E500
3595 pseudoregister read and write functions aren't ignored.
3596 (rs6000_register_byte, rs6000_register_raw_size,
3597 rs6000_register_virtual_type, rs6000_register_convertible,
3598 rs6000_register_convert_to_virtual,
3599 rs6000_register_convert_to_raw): Deleted.
3600 (rs6000_register_type, rs6000_convert_register_p,
3601 rs6000_register_to_value, rs6000_value_to_register): New
3602 functions.
3603 (rs6000_gdbarch_init): Don't register
3604 gdbarch_deprecated_register_size,
3605 gdbarch_deprecated_register_bytes,
3606 gdbarch_deprecated_register_byte,
3607 gdbarch_deprecated_register_raw_size,
3608 gdbarch_deprecated_register_virtual_type,
3609 gdbarch_deprecated_register_convertible,
3610 gdbarch_deprecated_register_convert_to_virtual, or
3611 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3612 register gdbarch_register_type, gdbarch_convert_register_p,
3613 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3614
3615 2004-05-26 Jim Blandy <jimb@redhat.com>
3616
3617 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3618 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3619 functions, updated to match the register numberings used in GCC.
3620 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3621 rs6000_dwarf2_reg_to_regnum as register number conversions
3622 functions for STABS and Dwarf2.
3623
3624 2004-05-26 Randolph Chung <tausq@debian.org>
3625
3626 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3627 in header file.
3628
3629 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3630
3631 * NEWS: Document new "start" command.
3632
3633 2004-05-25 Randolph Chung <tausq@debian.org>
3634
3635 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3636 hppa-linux.
3637
3638 2004-05-25 Randolph Chung <tausq@debian.org>
3639
3640 * hppa-hpux-tdep.c (offsetof): Define.
3641 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3642 (hppa32_hpux_frame_base_before_sigtramp)
3643 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3644 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3645 (hppa64_hpux_frame_base_before_sigtramp)
3646 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3647 functions.
3648 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3649 (hppa_hpux_sigtramp_frame_unwind_cache)
3650 (hppa_hpux_sigtramp_frame_this_id)
3651 (hppa_hpux_sigtramp_frame_prev_register)
3652 (hppa_hpux_sigtramp_frame_unwind)
3653 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3654 (hppa_hpux_init_abi): Register sigtramp unwinder.
3655 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3656
3657 2004-05-25 Randolph Chung <tausq@debian.org>
3658
3659 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3660 and multiple stack unwinds.
3661 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3662
3663 2004-05-25 Andrew Cagney <cagney@gnu.org>
3664
3665 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3666 * symfile-mem.h: Delete file.
3667 * symfile-mem.c: Do not include "symfile-mem.h".
3668 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3669 "struct bfd_section". When an error do not bother returning NULL.
3670 (add_symbol_file_from_memory_command): Use "struct bfd" and
3671 "struct bfd_section".
3672 * Makefile.in (symfile_mem_h): Delete.
3673 (symfile-mem.o): Update dependencies.
3674
3675 2004-05-25 Nick Roberts <nickrob@gnu.org>
3676
3677 * gdb-mi.el: New file.
3678
3679 2004-05-25 Andrew Cagney <cagney@gnu.org>
3680
3681 * inftarg.c: Include "observer.h".
3682 (child_attach, child_create_inferior): Notify inferior_created.
3683 * corelow.c: Include "observer.h".
3684 (core_open): Notify inferior_created.
3685 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3686
3687 2004-05-25 Andrew Cagney <cagney@gnu.org>
3688
3689 * target.h (struct target_ops): Add from_tty to
3690 to_create_inferior.
3691 (target_create_inferior, find_default_create_inferior): Update.
3692 * infcmd.c (run_command): Update.
3693 * wince.c (child_create_inferior): Update.
3694 * win32-nat.c (child_create_inferior): Update.
3695 * uw-thread.c (uw_thread_create_inferior): Update.
3696 * thread-db.c (thread_db_create_inferior): Update.
3697 * target.c (debug_to_create_inferior)
3698 (find_default_create_inferior): Update.
3699 (maybe_kill_then_create_inferior): Update.
3700 * sol-thread.c (sol_thread_create_inferior): Update.
3701 * remote.c (extended_remote_async_create_inferior)
3702 (extended_remote_create_inferior): Update.
3703 * remote-vx.c (vx_create_inferior): Update.
3704 * remote-st.c (st2000_create_inferior): Update.
3705 * remote-sim.c (gdbsim_create_inferior): Update.
3706 * remote-sds.c (sds_create_inferior): Update.
3707 * remote-rdp.c (remote_rdp_create_inferior): Update.
3708 * remote-rdi.c (arm_rdi_create_inferior): Update.
3709 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3710 * remote-e7000.c (e7000_create_inferior): Update.
3711 * procfs.c (procfs_create_inferior): Update.
3712 * ocd.c (ocd_create_inferior): Update.
3713 * ocd.h (ocd_create_inferior): Update.
3714 * nto-procfs.c (procfs_create_inferior): Update.
3715 * monitor.c (monitor_create_inferior): Update.
3716 * lin-lwp.c (lin_lwp_create_inferior): Update.
3717 * inftarg.c (child_create_inferior): Update.
3718 * hpux-thread.c (hpux_thread_create_inferior): Update.
3719 * gnu-nat.c (gnu_create_inferior): Update.
3720
3721 2004-05-25 Andrew Cagney <cagney@gnu.com>
3722
3723 * MAINTAINERS: Update e-mail address.
3724
3725 2004-05-24 Randolph Chung <tausq@debian.org>
3726
3727 * thread.c (info_threads_command, thread_apply_all_command)
3728 (thread_apply_command, thread_command, do_captured_thread_select):
3729 Remove HPUXHPPA-specific code.
3730
3731 2004-05-24 Randolph Chung <tausq@debian.org>
3732
3733 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3734 unused symbols.
3735 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3736 references.
3737
3738 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3739
3740 * infcmd.c (kill_if_already_running): New function, extracted
3741 from run_command().
3742 (run_command): Replace extracted code by call to
3743 kill_if_already_running().
3744 (start_command): New function.
3745 (_initialize_infcmd): Add "start" command.
3746
3747 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3748
3749 Add OpenBSD/m88k support.
3750 * NEWS (New native configurations): Mention OpenBSD/m88k.
3751 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3752 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3753 * Makefile.in (m88k_tdep_h): New variable.
3754 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3755 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3756 * configure.host: Add m88*-*-openbsd*.
3757 * configure.tgt: Add m88*-*-openbsd*.
3758
3759 2004-05-24 Jim Blandy <jimb@redhat.com>
3760
3761 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3762 to approve changes.
3763
3764 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3765
3766 * symtab.c (fixup_section): Search section table when lookup by
3767 name fails.
3768
3769 2004-05-24 Randolph Chung <tausq@debian.org>
3770
3771 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3772 be "small_struct".
3773
3774 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3775
3776 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3777 register number in regcache_raw_collect call.
3778 (m68kbsd_collect_fpregset): Likewise.
3779 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3780
3781 * regset.h (struct regset): Add back `regset' member.
3782
3783 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3784
3785 * configure.in: Check for td_pcb in `struct thread'.
3786 * configure, config.in: Regenerated.
3787
3788 * dpx2-nat.c: Remove file.
3789 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3790 (dpx2-nat.o): Remove dependencies.
3791
3792 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3793 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3794 (amd64obsd_supply_pcb): New function.
3795 (_initialize_amd64obsd_nat): Enable libkvm interface.
3796 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3797 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3798 (LOADLIBES): New variable.
3799
3800 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3801 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3802 (sparc32nbsd_supply_pcb): New function.
3803 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3804 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3805 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3806 (LOADLIBES): New variable.
3807
3808 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3809
3810 * bsd-kvm.c, bsd-kvm.h: New files.
3811 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3812 "bsd-kvm.h".
3813 (i386fbsd_supply_pcb): New function.
3814 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3815 (i386fbsd-nat.o): Update dependencies.
3816 (bsd_kvm_h): New variable.
3817 (bsd-kvm.o): New dependency.
3818 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3819 (LOADLIBES): New variable.
3820
3821 * regset.c: Tweak comment.
3822 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3823 macro.
3824 * regset.h: Update copyright year.
3825 (struct regset): Remove `descr' member, add `gdbarch' member.
3826 (regset_alloc): Adjust prototype and comment.
3827 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3828 (i386_supply_fpregset): Likewise.
3829 (i386_regset_from_core_section): Update call to regset_alloc.
3830 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3831 REGSET->arch.
3832 (i386obsd_aout_regset_from_core_section): Update call to
3833 regset_alloc.
3834 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3835 REGSET->arch.
3836 (i386nbsd_aout_regset_from_core_section): Update call to
3837 regset_alloc.
3838 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3839 REGSET->arch.
3840 (amd64_regset_from_core_section): Update call to regset_alloc.
3841 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3842 REGSET->arch.
3843 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3844 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3845 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3846 (sparc32nbsd_init_abi): Update call to regset_alloc.
3847 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3848 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3849 (sparc64obsd_init_abi): Update call to regset_alloc.
3850 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3851 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3852 (sparc64nbsd_init_abi): Update call to regset_alloc.
3853 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3854 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3855 (sparc64fbsd_init_abi): Update call to regset_alloc.
3856
3857 2004-05-22 Jim Blandy <jimb@redhat.com>
3858
3859 * ppc-tdep.h (spe_register_p): New declaration.
3860 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3861 ppc_spefscr_regnum.
3862 * rs6000-tdep.c (spe_register_p): New function.
3863 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3864 spefscr.
3865 (rs6000_gdbarch_init): Initialize the new members of the tdep
3866 structure.
3867
3868 2004-05-21 Jim Blandy <jimb@redhat.com>
3869
3870 * ppc-linux-nat.c (fetch_register): Move code back to be next
3871 to the comment that describes it. (Moved code, instead of
3872 comment, for symmetry with store_register.)
3873
3874 Allocate regset structures in the gdbarch's obstack, not using
3875 xmalloc.
3876 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3877 Add 'arch' argument. Allocate the regset on arch's obstack, not
3878 using xmalloc.
3879 * regset.h (regset_alloc): Update declaration.
3880 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3881 gdbarch argument.
3882 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3883 * i386-tdep.c (i386_regset_from_core_section): Same.
3884 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3885 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3886 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3887 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3888 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3889 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3890
3891 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3892
3893 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3894
3895 2004-05-21 Jim Blandy <jimb@redhat.com>
3896
3897 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3898 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3899
3900 2004-05-20 Jim Blandy <jimb@redhat.com>
3901
3902 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3903
3904 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3905
3906 * regset.h: Make prototype const-correct.
3907 * regset.c (regset_xmalloc): Make const-correct.
3908
3909 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3910
3911 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3912 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3913 (symbol_search_name): Declare.
3914
3915 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3916 (iter_name_next_hashed): Ditto.
3917 (iter_name_next_linear): Ditto.
3918 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3919
3920 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3921 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3922 (symbol_search_name): New function.
3923
3924 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3925
3926 * minsyms.c (build_minimal_symbol_hash_tables): Change
3927 test for adding to demangled hash table to check for difference
3928 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3929
3930 2004-05-19 Jim Blandy <jimb@redhat.com>
3931
3932 Use a constructor function to create regset structures.
3933 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3934 (struct regset): Use supply_regset_ftype. Add new
3935 'collect_regset' member.
3936 (regset_xmalloc): New declaration.
3937 * regset.c: New file.
3938 * am64-tdep.c (amd64_regset_from_core_section): Use
3939 regset_xmalloc to construct regset structures.
3940 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3941 * i386-tdep.c (i386_regset_from_core_section): Same.
3942 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3943 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3944 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3945 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3946 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3947 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3948 * Makefile.in (COMMON_OBS): Add regset.o.
3949 (regset.o): New rule.
3950
3951 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3952
3953 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3954 and pthread_cond_wait.c.
3955
3956 2004-05-18 Jim Blandy <jimb@redhat.com>
3957
3958 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3959 before the mach-specific switch, and then let the individual cases
3960 override the defaults, rather than leaving them uninitialized
3961 until the switch and then setting them in each case.
3962
3963 2004-05-18 Randolph Chung <tausq@debian.org>
3964
3965 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3966 millicode functions.
3967
3968 2004-05-18 Randolph Chung <tausq@debian.org>
3969
3970 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3971 references to dld_flags_buffer consistent.
3972
3973 2004-05-18 Randolph Chung <tausq@debian.org>
3974
3975 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3976 it for unwinding the stack.
3977
3978 2004-05-18 Randolph Chung <tausq@debian.org>
3979
3980 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3981 Undefine these so we can overide them using gdbarch.
3982
3983 2004-05-18 Randolph Chung <tausq@debian.org>
3984
3985 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3986 handling for 64-bit HPUX (elf).
3987
3988 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3989
3990 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3991 constants.
3992 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3993 * ia64-tdep.c (examine_prologue): Likewise.
3994 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3995 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3996
3997 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3998
3999 * vax-tdep.c (vax_return_value): Implement
4000 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4001
4002 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4003
4004 * vax-tdep.c (vax_return_value): Fix typo.
4005
4006 2004-05-17 Andrew Cagney <cagney@redhat.com>
4007
4008 * MAINTAINERS: Mark Salter was also responsible for
4009 testsuite/config/
4010
4011 * NEWS: Mention signal fixes.
4012
4013 2004-05-17 Randolph Chung <tausq@debian.org>
4014
4015 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4016 check to see if we are unwinding an export stub. Export stubs clobber
4017 the %rp in the call path and stores the original rp in a stack slot.
4018
4019 2004-05-17 Jim Blandy <jimb@redhat.com>
4020
4021 * MAINTAINERS: Update address for J.T. Conklin.
4022
4023 2004-05-17 Randolph Chung <tausq@debian.org>
4024
4025 * hppa-tdep.c: Remove superfluous #include's.
4026 * Makefile.in (hppa-tdep.o): Update dependencies.
4027
4028 2004-05-17 Randolph Chung <tausq@debian.org>
4029
4030 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4031 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4032 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4033 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4034 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4035 Remove static function declarations.
4036
4037 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4038
4039 * alphabsd-nat.c: Update copyright year.
4040 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4041
4042 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4043 and M68K_A2_REGNUM.
4044
4045 * m68k-tdep.c (m68k_svr4_return_value): Implement
4046 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4047
4048 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4049
4050 * sol-thread.c Update copyright year. Fix various coding
4051 standards violations. Tweak a few comments.
4052 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4053 Delete prototypes.
4054
4055 2004-05-15 Randolph Chung <tausq@debian.org>
4056
4057 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4058 as pointer instead of array reference since HPUX compiler does
4059 not accept unsized array arguments.
4060 * somsolib.c (dld_flags_buffer): Use constant array size.
4061
4062 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4063
4064 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4065 offset with decimal offset.
4066 (amd64obsd_sigcontext_addr): Return correct address for entire
4067 signal trampoline.
4068
4069 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4070 instead of get_frame_base.
4071
4072 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4073 (fill_gregset): Use regcache_raw_collect.
4074
4075 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4076 ppcobsd-tdep.c.
4077
4078 * config/sparc/tm-nbsd64.h: Remove file.
4079 * config/tm-sunos.h: Remove file.
4080
4081 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4082
4083 * rs6000-tdep.c (store_param_on_stack_p): New function,
4084 an improved version of some code extracted from skip_prologue().
4085 (skip_prologue): Use store_param_on_stack_p() to detect
4086 instructions saving a parameter on the stack. Detect when r0
4087 is used to save a parameter.
4088 Do not mark "li rx, SIMM" instructions as part of the prologue,
4089 unless the following instruction is also part of the prologue.
4090
4091 2004-05-14 Andrew Cagney <cagney@redhat.com>
4092
4093 * infrun.c (handle_inferior_event): Simplify
4094 STEP_OVER_UNDEBUGGABLE.
4095
4096 * infrun.c (handle_step_into_function): Delete function.
4097 (handle_inferior_event): Inline calls to
4098 handle_step_into_function.
4099
4100 2004-05-14 Jerome Guitton <guitton@gnat.com>
4101
4102 * rs6000-nat.c: Fix a comment.
4103
4104 2004-05-12 David Anderson <davea@sgi.com>
4105
4106 Committed by Jim Blandy <jimb@redhat.com>:
4107 * regcache.c (struct regcache_descr): fix comment spelling.
4108
4109 2004-05-13 J. Brobecker <brobecker@gnat.com>
4110
4111 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4112 Fixes a link link failure.
4113
4114 2004-05-13 J. Brobecker <brobecker@gnat.com>
4115
4116 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4117 error that was causing the build to fail.
4118
4119 2004-05-13 J. Brobecker <brobecker@gnat.com>
4120
4121 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4122 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4123
4124 2004-05-13 Andrew Cagney <cagney@redhat.com>
4125
4126 * infrun.c (handle_inferior_event): Check for
4127 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4128 calls. Update comments.
4129
4130 2004-05-13 Jim Blandy <jimb@redhat.com>
4131
4132 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4133 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4134 (store_regs_user_thread, store_regs_kernel_thread): Use
4135 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4136 * ppc-linux-nat.c (fill_gregset): Same.
4137 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4138 (ppc_linux_sigtramp_cache): Same.
4139 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4140 (ppcnbsd_sigtramp_cache_init): Same.
4141 * rs6000-nat.c (fetch_core_registers): Same.
4142 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4143 (rs6000_frame_cache): Same.
4144
4145 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4146 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4147 of assuming that the gprs are numbered starting with zero.
4148 * ppc-linux-nat.c (fill_gregset): Same.
4149 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4150 * ppcnbsd-nat.c (getregs_supplies): Same.
4151 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4152 * rs6000-nat.c (fetch_core_registers): Same.
4153 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4154
4155 2004-05-07 Michael Snyder <msnyder@redhat.com>
4156
4157 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4158 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4159
4160 2004-05-13 Andrew Cagney <cagney@redhat.com>
4161
4162 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4163
4164 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4165
4166 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4167 base_address for shared libraries.
4168
4169 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4170
4171 * MAINTAINERS (write after approval): Add myself.
4172
4173 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4174
4175 * breakpoint.c (bpstat_stop_status): Add new argument
4176 STOPPED_BY_WATCHPOINT. Use it instead of testing
4177 target_stopped_data_address agaist 0 to check whether
4178 or not we stopped due to a hardware watchpoint.
4179 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4180 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4181 with new argument.
4182
4183 2004-05-12 Jim Blandy <jimb@redhat.com>
4184
4185 * configure.in: When checking whether we should use the -bbigtoc
4186 option, don't forget to restore the original value of LDFLAGS.
4187 * configure: Regenerated.
4188
4189 2004-05-12 Andrew Cagney <cagney@redhat.com>
4190
4191 * thread.c (load_infrun_state): Delete step_sp.
4192 * infrun.c (context_switch): Ditto.
4193 * inferior.h (step_sp): Ditto.
4194 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4195 * gdbthread.h (struct thread_info, save_infrun_state)
4196 (restore_infrun_state): Ditto.
4197
4198 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4199
4200 * MAINTAINERS (write after approval): Add myself.
4201
4202 2004-05-12 Andrew Cagney <cagney@redhat.com>
4203
4204 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4205 eliminate reference to step_sp.
4206 (struct execution_control_state, init_execution_control_state)
4207 (handle_inferior_event, keep_going): Delete update_step_sp and
4208 step_sp.
4209 * infcmd.c (step_sp): Note that variable is unused.
4210
4211 2004-05-11 Andrew Cagney <cagney@redhat.com>
4212
4213 * infrun.c (step_over_function): Delete function.
4214 (handle_step_into_function): Use insert_step_resume_breakpoint.
4215 (insert_step_resume_breakpoint): Fix assertion.
4216
4217 2004-05-11 Nick Roberts <nickrob@gnu.org>
4218
4219 * utils.c (defaulted_query): Just use the normal query input type
4220 when printing the annotations.
4221
4222 2004-05-11 Andrew Cagney <cagney@redhat.com>
4223
4224 * infrun.c (handle_inferior_event): Simplify code handling
4225 step-into or return-from a signal trampoline.
4226
4227 2004-05-11 Andrew Cagney <cagney@redhat.com>
4228
4229 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4230 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4231
4232 2004-05-10 Jim Blandy <jimb@redhat.com>
4233
4234 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4235 with a call to internal_error.
4236
4237 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4238 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4239 processor variant lacks those registers.
4240 (ppc_floating_point_unit_p): Change description to make it clear
4241 that this returns info about the ISA, not the ABI.
4242 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4243 return true or false by checking tdep->ppc_fp0_regnum and
4244 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4245 arch/mach switching done in rs6000_gdbarch_init; it's better to
4246 keep that logic there, and just check the results here.
4247 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4248 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4249 floating-point registers.
4250 (ppc_supply_fpregset, ppc_collect_fpregset)
4251 (rs6000_push_dummy_call, rs6000_extract_return_value)
4252 (rs6000_store_return_value): Assert that we have floating-point
4253 registers.
4254 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4255 (rs6000_frame_cache): Don't note the locations at which
4256 floating-point registers were saved if we have no fprs.
4257 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4258 registers.
4259 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4260 (store_regs_user_thread, store_regs_kernel_thread): Only call
4261 supply_fprs / fill_fprs if we actually have floating-point
4262 registers.
4263 (special_register_p): Check ppc_fpscr_regnum before matching
4264 against it.
4265 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4266 supply / collect fpscr if we don't have it.
4267 * ppc-bdm.c: #include "gdb_assert.h".
4268 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4269 have floating-point registers, since I can't test this code on
4270 FP-free systems to adapt it.
4271 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4272 fpscr and floating point register numbers if they don't exist.
4273 (fetch_register): Assert that we have floating-point registers
4274 before we reach the code that handles them.
4275 (store_register): Same. And use tdep instead of calling
4276 gdbarch_tdep again.
4277 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4278 don't have them.
4279 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4280 fprs and fpscr if we don't have them.
4281 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4282 don't have them.
4283 * ppcnbsd-nat.c: #include "gdb_assert.h".
4284 (getfpregs_supplies): Assert that we have floating-point registers.
4285 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4286 * ppcobsd-tdep.c: #include "gdb_assert.h".
4287 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4288 have floating-point registers.
4289 * rs6000-nat.c (regmap): Don't match against the fpscr and
4290 floating point register numbers if they don't exist.
4291 (fetch_inferior_registers, store_inferior_registers,
4292 fetch_core_registers): Only fetch / store / supply the
4293 floating-point registers and the fpscr if we have them.
4294 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4295 (ppcobsd-tdep.o): Update dependencies.
4296
4297 2004-05-10 Andrew Cagney <cagney@redhat.com>
4298
4299 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4300 (context_switch): Do not switch through_sigtramp_breakpoint.
4301 * gdbthread.h (save_infrun_state, load_infrun_state)
4302 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4303 and structure member.
4304 * thread.c (load_infrun_state, save_infrun_state): Update.
4305
4306 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4307
4308 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4309
4310 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4311
4312 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4313 throughout.
4314 * aclocal.m4: Regenerate.
4315
4316 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4317
4318 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4319
4320 2004-05-10 Andrew Cagney <cagney@redhat.com>
4321
4322 * infrun.c (check_sigtramp2): Delete function.
4323 (handle_inferior_event): When single stepping, and taking a
4324 signal, set a breakpoint at the signal return address. Delete
4325 redundant calls to check_sigtramp2.
4326 (insert_step_resume_breakpoint): New function.
4327 (through_sigtramp_breakpoint, handle_inferior_event)
4328 (follow_exec, wait_for_inferior, fetch_inferior_event)
4329 (currently_stepping, keep_going): Delete most uses of
4330 through_sigtramp_breakpoint, not that it should be deleted.
4331 (delete_breakpoint_current_contents): Delete function.
4332
4333 2004-05-10 Randolph Chung <tausq@debian.org>
4334
4335 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4336 target.
4337 * config/pa/tm-linux.h: New file.
4338
4339 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4340
4341 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4342 of prefixes. Don't print the prefix twice in the CLI.
4343
4344 2004-05-10 Jim Blandy <jimb@redhat.com>
4345
4346 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4347 collect all the gprs.
4348
4349 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4350 loop collecting gprs.
4351
4352 2004-05-09 Andrew Cagney <cagney@redhat.com>
4353
4354 * remote-vx.c (net_step): Delete step-range code.
4355 * remote.c (remote_resume, init_all_packet_configs)
4356 (set_remote_protocol_E_packet_cmd)
4357 (show_remote_protocol_E_packet_cmd)
4358 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4359 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4360 (show_remote_protocol_e_packet_cmd): Ditto.
4361
4362 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4363
4364 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4365
4366 * hppa-tdep.h: Update copyright year.
4367 (struct trad_frame_saved_reg): Add opaque declaration.
4368
4369 * amd64-tdep.c (amd64_return_value): Implement
4370 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4371
4372 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4373 (m68k_value_to_register): New functions.
4374 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4375 value_to_register.
4376
4377 * defs.h (enum return_value_convention): Add
4378 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4379 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4380 * infcmd.c (legacy_return_value): New function.
4381 (print_return_value): Rwerite to implement
4382 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4383 * values.c (using_struct_return): Check for inequality to
4384 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4385 RETURN_VALUE_STRUCT_CONVENTION.
4386 * i386-tdep.c (i386_return_value): Implement
4387 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4388
4389 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4390 include "symtab.h", "opcode/vax.h" and "inferior.h".
4391 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4392 to read_memory_unsigned_integer.
4393 (vax_gdbarch_init): Reorder.
4394 (_initialize_vax_tdep): Spell out prototype.
4395 * Makefile.in (vax-tdep.o): Update dependencies.
4396
4397 2004-05-08 Andrew Cagney <cagney@redhat.com>
4398
4399 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4400 * target.c (target_detach, target_disconnect): Ditto.
4401
4402 * infcall.c (call_function_by_hand): When no
4403 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4404 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4405 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4406 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4408
4409 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4410 * gdbarch.h, gdbarch.c: Re-generate.
4411 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4412 deprecated_fix_call_dummy.
4413 * v850-tdep.c (v850_gdbarch_init): Ditto.
4414 * infcall.c (call_function_by_hand): Do not call
4415 DEPRECATED_FIX_CALL_DUMMY.
4416
4417 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4418 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4419 * gdbarch.h, gdbarch.c: Re-generate.
4420 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4421 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4422 deprecated_sizeof_call_dummy_words.
4423 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4425 * v850-tdep.c (v850_gdbarch_init): Ditto.
4426 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4427 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4430 * arch-utils.h (legacy_call_dummy_words)
4431 (legacy_sizeof_call_dummy_words): Delete declarations.
4432 * arch-utils.c (legacy_call_dummy_words)
4433 (legacy_sizeof_call_dummy_words): Delete variables.
4434
4435 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4436 * gdbarch.h, gdbarch.c: Re-generate.
4437 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4438 * infcall.c (call_function_by_hand): Eliminate call to
4439 DEPRECATED_PUSH_DUMMY_FRAME.
4440 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4441 push_dummy_frame.
4442 (ns32k_push_dummy_frame): Delete function.
4443
4444 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4445 deprecated_call_dummy_breakpoint_offset or
4446 deprecated_call_dummy_start_offset.
4447 * dummy-frame.c, arm-tdep.c: Update comments.
4448 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4449 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4450 * gdbarch.h, gdbarch.c: Re-generate.
4451
4452 * infcall.c (legacy_push_dummy_code): Delete function.
4453 (push_dummy_code): Delete call.
4454
4455 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4456 * gdbarch.h, gdbarch.c: Re-generate.
4457 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4458 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4459 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4460 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4461
4462 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4463 (struct frame_info): Delete opaque declaration.
4464 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4465 * frame.c (get_frame_type): Delete call.
4466
4467 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4468 pc_in_call_dummy.
4469 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4470 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4471
4472 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4473
4474 * alphanbsd-tdep.c: Include "gdb_string.h".
4475 * armnbsd-tdep.c: Update copyright year.
4476 Include "gdb_string.h".
4477 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4478 dependencies.
4479
4480 * delta68-nat.c: Remove file.
4481 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4482 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4483 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4484 (delta68-nat.o): Remove dependency.
4485
4486 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4487 function.
4488 (m68k_gdbarch_init): Don't set
4489 deprecated_frameless_function_invocation.
4490
4491 2004-05-07 Randolph Chung <tausq@debian.org>
4492
4493 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4494 read_memory_nobpt for code reading when doing frame unwinding.
4495 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4496
4497 2004-05-07 Randolph Chung <tausq@debian.org>
4498
4499 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4500 instead of sp, handle sigaltstack case.
4501 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4502 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4503 signal handler and not that of the caller.
4504 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4505 hppa_linux_sigtramp_find_sigcontext.
4506
4507 2004-05-07 Randolph Chung <tausq@debian.org>
4508
4509 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4510 hppa-linux-nat.c.
4511 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4512 * hppa-linux-nat.c (fetch_register, store_register): Define.
4513 (fetch_inferior_registers, store_inferior_registers): Define.
4514 (supply_gregset): Add comment and clean up some unneeded code.
4515 (fill_gregset): Add comment and fix so that it saves registers in
4516 the right place in the gregset.
4517 (fill_fpregset): Fix buffer overrun problem.
4518 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4519
4520 2004-05-07 Randolph Chung <tausq@debian.org>
4521
4522 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4523 do common handling of the pcoqt register.
4524 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4525 to use helper function.
4526 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4527 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4528 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4529 generic fallback unwinder when all else fails.
4530 (hppa_gdbarch_init): Add fallback sniffer.
4531 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4532 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4533 to use helper function.
4534
4535 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4536
4537 * config/djgpp/fnchange.lst: Add translation rules for
4538 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4539
4540 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4541
4542 * frame.c (get_prev_frame_1): Work around GCC bug.
4543 * frame.h: Add comment about GCC bug.
4544
4545 2004-05-07 Andrew Cagney <cagney@redhat.com>
4546
4547 * observer.c: Include "commands.h" and "gdbcmd.h".
4548 (observer_debug, _initialize_observer): Add the
4549 command "set/show debug observer".
4550 * observer.sh: When observer debugging, log notify calls.
4551 * Makefile.in (observer.o): Update dependencies.
4552
4553 2004-05-07 Jason Molenda (jmolenda@apple.com)
4554
4555 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4556
4557 2004-05-07 Jim Blandy <jimb@redhat.com>
4558
4559 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4560 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4561 to recognize gpr regnums, instead of assuming that
4562 tdep->ppc_fp0_regnum marks the end of the general-purpose
4563 registers.
4564
4565 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4566 the given architecture has floating-point registers.
4567
4568 2004-05-07 Andrew Cagney <cagney@redhat.com>
4569
4570 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4571 macro defined to 1.
4572 * gdbarch.h, gdbarch.c: Re-generate.
4573 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4574 deprecated_use_generic_dummy_frames.
4575
4576 2004-05-07 Brian Ford <ford@vss.fsi.com>
4577
4578 * NEWS: Mention Cygwin DWARF 2 support.
4579
4580 2004-05-07 Andrew Cagney <cagney@redhat.com>
4581
4582 * objfiles.h (struct entry_info): Delete unused fields
4583 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4584 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4585 * mipsread.c (mipscoff_symfile_read): Update.
4586 * mdebugread.c (parse_partial_symbols): Update.
4587 * dwarfread.c (read_file_scope): Update.
4588 * dwarf2read.c (read_file_scope): Update.
4589 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4590 * coffread.c (complete_symtab): Update.
4591
4592 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4593
4594 * infcall.c (_initialize_infcall): Fix typo.
4595
4596 2004-05-07 Andrew Cagney <cagney@redhat.com>
4597
4598 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4599 * command.h (add_setshow_zinteger_cmd): Declare.
4600
4601 2004-05-06 Randolph Chung <tausq@debian.org>
4602
4603 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4604 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4605 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4606 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4607 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4608 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4609 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4610 definitions ...
4611 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4612 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4613 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4614 (hppa64_hpux_frame_find_saved_regs_in_sig)
4615 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4616 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4617 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4618 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4619 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4620 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4621 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4622 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4623 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4624 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4625 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4626 (hppa32_register_type, hppa_cannot_store_register)
4627 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4628 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4629 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4630 * pa64solib.c (pa64_solib_have_load_event)
4631 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4632 (pa64_solib_unloaded_library_pathname): Likewise.
4633 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4634 (som_solib_library_pathname): Likewise.
4635
4636 2004-05-05 Jim Ingham <jingham@apple.com>
4637
4638 * breakpoint.c (create_breakpoints): Copy the ignore count and
4639 thread id over from the pended breakpoint to the actual
4640 breakpoint.
4641
4642 2004-05-05 Andrew Cagney <cagney@redhat.com>
4643
4644 * gdbarch.sh (PARM_BOUNDARY): Delete.
4645 gdbarch.h, gdbarch.c: Re-generate.
4646 * valops.c (PARM_BOUNDARY): Delete macro.
4647 (value_push): Delete PARM_BOUNDARY code.
4648 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4649
4650 2004-05-04 Jim Blandy <jimb@redhat.com>
4651
4652 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4653 Don't assume that the gprs, fprs, and UISA sprs are
4654 contiguous, start at register number zero, and end with fpscr.
4655 Instead, use the numbers from the tdep structure.
4656
4657 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4658 should no longer be used in code specific to the RS6000 and its
4659 derivatives.
4660 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4661 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4662 tdep->ppc_fp0_regnum.
4663 (ppc_supply_fpregset, ppc_collect_fpregset)
4664 (rs6000_push_dummy_call, rs6000_extract_return_value)
4665 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4666 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4667 FP0_REGNUM.
4668 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4669 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4670 Same.
4671 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4672 bdm_ppc_store_registers): Same.
4673 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4674 (store_register, fill_fpregset): Same.
4675 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4676 (ppc_linux_supply_fpregset): Same.
4677 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4678 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4679 Same.
4680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4681 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4682 ppc64_sysv_abi_return_value): Same.
4683 * rs6000-nat.c (regmap, fetch_inferior_registers)
4684 (store_inferior_registers, fetch_core_registers): Same.
4685
4686 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4687
4688 * m68knbsd-nat.c: Remove file.
4689 * m68knbsd-tdep.c: Remove file.
4690 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4691 dependencies.
4692 * configure.host: Add m68k-*-netbsdelf*.
4693 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4694 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4695 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4696 (XM_FILE): Remove.
4697 * config/m68k/nbsdelf.mh: New file.
4698 * config/m68k/nbsd.mt: New file.
4699 * config/m68k/nbsdaout.mt: Remove file.
4700 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4701 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4702 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4703 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4704 (use_struct_convention): Remove prototype.
4705 (USE_STRUCT_CONVENTION): Remove define.
4706 * config/m68k/xm-nbsd.h: Remove file.
4707
4708 2004-05-04 Michael Snyder <msnyder@redhat.com>
4709
4710 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4711 reg_struct_return method (as gcc usually does for cross targets).
4712
4713 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4714
4715 Committed by Andrew Cagney.
4716 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4717 alignment padding when accessing ucontext struct members.
4718
4719 2004-05-04 Jim Blandy <jimb@redhat.com>
4720
4721 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4722 'ppc_gplast_regnum' member.
4723 (ppc_num_gprs): New enum constant.
4724 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4725 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4726 * rs6000-nat.c (regmap, fetch_inferior_registers,
4727 store_inferior_registers): Same.
4728 * rs6000-tdep.c (e500_pseudo_register_read)
4729 (e500_pseudo_register_write): Same.
4730 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4731
4732 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4733 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4734 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4735 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4736 FPLAST_REGNUM.
4737 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4738 Same.
4739 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4740 * rs6000-nat.c (regmap, fetch_inferior_registers)
4741 (store_inferior_registers): Same.
4742
4743 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4744 with FPLAST_REGNUM.
4745
4746 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4747
4748 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4749 failure detected by recent versions of GCC.
4750 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4751 to be consistent with the usage in dwarf2_create_include_psymtab.
4752
4753 2004-05-03 Michael Snyder <msnyder@redhat.com>
4754
4755 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4756 (heuristic_proc_start): Whitespace cleanup.
4757
4758 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4759
4760 * sun3-nat.c: Remove file.
4761 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4762 dependencies.
4763 (ALLDEPFILES): Remove sun3-nat.c.
4764 (sun3-nat.o): Remove dependencies.
4765
4766 * i386-interix-nat.c, i386-interix-tdep.c,
4767 config/i386/nm-interix.h, config/i386/interix.mh,
4768 config/i386/interix.mt: Remove files.
4769 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4770 dependencies.
4771
4772 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4773
4774 * m68k-tdep.h (struct gdbarch_tdep): Add member
4775 struct_value_regnum.
4776 (m68k_svr4_init_abi): New prototype.
4777 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4778 different calling conventions.
4779 (m68k_extract_return_value): Remove code dealing with single-field
4780 structs.
4781 (m68k_store_return_value): Remove code dealing with single-field
4782 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4783 (m68k_extract_struct_value_address): Remove function.
4784 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4785 (m68k_reg_struct_return_p, m68k_return_value)
4786 (m68k_svr4_return_value): New functions.
4787 (m68k_use_struct_convention): Remove function.
4788 (m68k_push_dummy_call): Use new struct_value_regnum member of
4789 `struct gdbarch_tdep' instead of hardcoded register number to
4790 store STRUCT_ADDR.
4791 (m68k_svr4_init_abi): New function.
4792 (m68k_gdbarch_init): Don't set extract_return_value,
4793 store_return_values, deprecated_extract_struct_value_address and
4794 use_struct_convention. Set return_value instead. Initialize new
4795 struct_value_regnum member of `struct gdbarch_tdep'.
4796 * m68klinux-tdep.c: Update copyright year.
4797 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4798 (m68k_linux_extract_struct_value_address): Remove function.
4799 (m68k_linux_init_abi): Don't set extract_return_value,
4800 store_return_values, deprecated_extract_struct_value_address and
4801 use_struct_convention. Call m68k_svr4_init_abi but override the
4802 new struct_value_regnum member of `struct gdbarch_tdep'.
4803 * Makefile.in (m68k-tdep.o): Update dependencies.
4804
4805 2004-05-03 J. Brobecker <brobecker@gnat.com>
4806
4807 * dwarf2read.c (line_header): Add new included_p field in
4808 field file_names.
4809 (partial_die_info): New field has_stmt_list. New field line_offset.
4810 (dwarf2_create_include_psymtab): New function.
4811 (dwarf2_build_include_psymtabs): New function.
4812 (add_file_name): Add forward declaration. Initialize new field.
4813 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4814 to be able to determine the list of files included by the
4815 given unit, and build their associated psymtabs.
4816 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4817 files as well.
4818 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4819 (read_file_scope): Update call to dwarf_decode_lines.
4820 (read_partial_die): Handle DW_AT_stmt_list attributes.
4821
4822 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4823
4824 Unfix PR gdb/1626.
4825 * configure.in: Revert special case for osf5.*.
4826 * configure: Regenerate.
4827
4828 2004-05-02 Jim Blandy <jimb@redhat.com>
4829
4830 Move the symbol-file-from-memory functions into their own file.
4831 * symfile-mem.c, symfile-mem.h: New files.
4832 * symfile.c (symbol_file_add_from_bfd): New function.
4833 (symbol_file_add): Call symbol_file_add_from_bfd.
4834 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4835 Moved to symfile-mem.c.
4836 (_initialize_symfile): Move definition of
4837 add-symbol-file-from-memory command to symfile-mem.c.
4838 * symfile.h (symbol_file_add_from_bfd): New declaration.
4839 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4840 * config/powerpc/linux.mt (TDEPFILES): Same.
4841 * Makefile.in (SFILES): Add symfile-mem.c.
4842 (symfile_mem_h): New variable.
4843 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4844 (symfile-mem.o): New rule.
4845
4846 2004-05-01 Andrew Cagney <cagney@redhat.com>
4847
4848 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4849 frame_find_by_id instead of frame_relative_level.
4850 (do_enable_breakpoint): Ditto.
4851 * thread.c: Update copyright.
4852 (info_threads_command): Ditto, simplify.
4853
4854 * frame.c (deprecated_generic_get_saved_register): Delete
4855 function, moved to "xstormy16-tdep.c".
4856 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4857 deprecated_generic_get_saved_register from "frame.c".
4858 (xstormy16_frame_saved_register): Call
4859 xstormy16_get_saved_register.
4860 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4861 static.
4862 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4863 * frame.h (deprecated_generic_get_saved_register): Delete.
4864
4865 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4866
4867 * dwarfread.c: Update documentation on the state of dwarf-1.
4868
4869 2004-05-01 Andrew Cagney <cagney@redhat.com>
4870
4871 * stack.c (select_frame_command): Delete call to
4872 frame_relative_level.
4873 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4874 Delete #if0 code.
4875 (frame_info): Do not print FRAMELESS.
4876 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4877 (catch_info): Delete #if0 code.
4878
4879 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4880 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4881 of frame_relative_level.
4882 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4883 to SENTINEL_FRAME.
4884 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4885 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4886 frame_relative_level.
4887
4888 * frame.h (deprecated_set_frame_type): Delete declaration.
4889 * frame.c (deprecated_set_frame_type): Delete function, update
4890 comments.
4891
4892 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4893 * gdbarch.h, gdbarch.c: Re-generate.
4894 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4895 (shnbsd_pc_in_sigtramp): Delete.
4896 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4897 pc_in_sigtramp.
4898 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4899 pc_in_sigtramp.
4900 * frame.h: Update comments.
4901 * ppc-linux-tdep.c: Update comments.
4902 * breakpoint.c (bpstat_what): Update comments.
4903
4904 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4905 m68klinux-tdep.o's dependencies, were previously added to
4906 m68klinux-nat.o.
4907
4908 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4909 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4910 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4911 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4912 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4913
4914 * Makefile.in (m68klinux-nat.o): Update dependencies.
4915 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4916 (m68k_linux_sigtramp_frame_cache)
4917 (m68k_linux_sigtramp_frame_this_id)
4918 (m68k_linux_sigtramp_frame_prev_register)
4919 (m68k_linux_sigtramp_frame_unwind)
4920 (m68k_linux_sigtramp_frame_sniffer)
4921 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4922 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4923 names, use trad-frame.h.
4924 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4925 (struct m68k_sigtramp_info): Delete.
4926 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4927 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4928 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4929 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4930 "m68klinux-tdep.c".
4931
4932 * infrun.c (check_sigtramp2): Delete check for
4933 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4934
4935 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4936
4937 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4938
4939 2004-05-01 Andrew Cagney <cagney@redhat.com>
4940
4941 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4942 (frv_linux_sigtramp_frame_cache)
4943 (frv_linux_sigtramp_frame_this_id)
4944 (frv_linux_sigtramp_frame_prev_register)
4945 (frv_linux_sigtramp_frame_unwind)
4946 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4947 include "linux" in function and variable names, directly call
4948 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4949 the latest trad-frame code.
4950 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4951 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4952 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4953 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4954 * frv-tdep.c (frv_sigtramp_frame_cache)
4955 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4956 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4957 frv-linux-tdep.c.
4958 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4959 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4960 (frv_set_sigcontext_reg_addr): Delete function.
4961
4962 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4963 (DEPRECATED_SIGTRAMP_END): Delete.
4964 * gdbarch.h, gdbarch.c: Re-generate.
4965 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4966 * config/vax/tm-vaxbsd.h: Update copyright.
4967 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4968 (DEPRECATED_IN_SIGTRAMP): Define.
4969 * config/m68k/tm-nbsd.h: Update copyright.
4970 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4971 (DEPRECATED_IN_SIGTRAMP): Define.
4972
4973 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4974
4975 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4976 encondings. Fixes PR gdb/1628.
4977
4978 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4979 DW_CFA_restore state without a matching DW_CFA_remember_state
4980 instead of aborting. Fixes PR backtrace/1589.
4981
4982 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4983
4984 * MAINTAINERS: Add self as AIX maintainer.
4985 Update my e-mail address in write-after-approval section.
4986
4987 2004-04-30 Andrew Cagney <cagney@redhat.com>
4988
4989 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4990 (legacy_get_prev_frame): Ditto.
4991
4992 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4993 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4994 * mipsread.c (sigtramp_address): Delete extern variable.
4995 (mipscoff_new_init): Delete reference.
4996 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4997 (fixup_sigtramp): Delete function.
4998 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4999 (fixup_sigtramp): Delete declarations.
5000
5001 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5002 deprecated_pc_in_sigtramp.
5003 (ppcnbsd_pc_in_sigtramp): Delete function.
5004
5005 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5006
5007 * config/m68k/nm-nbsd.h: Tweak comments.
5008 * config/m68k/nm-nbsdaout.h: Likewise.
5009
5010 2004-04-30 Andrew Cagney <cagney@redhat.com>
5011
5012 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5013 legacy_pc_in_sigtramp.
5014 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5015
5016 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5017
5018 Add OpenBSD/m68k support.
5019 * NEWS (New native configurations): Mention OpenBSD/m68k.
5020 * m68kbsd-tdep.c: New file.
5021 * m68kbsd-nat.c: New file.
5022 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5023 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5024 * configure.host: Add m68k-*-openbsd.
5025 * configure.tgt: Add m68k-*-openbsd.
5026 * config/m68k/tm-obsd.h: New file.
5027 * config/m68k/obsd.mt: New file.
5028 * config/m68k/obsd.mh: New file.
5029 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5030 m68kbsd-tdep.c.
5031
5032 2004-04-30 Andrew Cagney <cagney@redhat.com>
5033
5034 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5035 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5036
5037 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5038
5039 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5040 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5041
5042 2004-04-30 Brian Ford <ford@vss.fsi.com>
5043
5044 Revert 2004-04-16 change.
5045 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5046 (i386_coff_init_abi): Remove.
5047 * i386-tdep.h (i386_coff_init_abi): Remove.
5048 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5049
5050 2004-04-30 Andrew Cagney <cagney@redhat.com>
5051
5052 * blockframe.c (find_pc_partial_function): Delete use of
5053 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5054 DEPRECATED_SIGTRAMP_END.
5055
5056 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5057 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5058 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5059 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5060 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5061
5062 * defs.h (deprecated_inside_entry_file): Delete declaration.
5063 * blockframe.c (deprecated_inside_entry_file): Delete function.
5064 (legacy_frame_chain_valid): Delete call.
5065 * sh64-tdep.c (sh64_frame_chain): Delete call.
5066 * objfiles.h: Update comments.
5067 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5068 call.
5069 * frame.c (get_prev_frame): Delete call, update comments.
5070
5071 2004-04-30 Brian Ford <ford@vss.fsi.com>
5072
5073 * MAINTAINERS (Write After Approval): Add myself.
5074
5075 2004-04-30 Andrew Cagney <cagney@redhat.com>
5076
5077 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5078 * gdbarch.h, gdbarch.c: Re-generate.
5079 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5080 code.
5081
5082 2004-04-30 Andrew Cagney <cagney@redhat.com>
5083
5084 * gdb-events.sh (selected_thread_changed)
5085 (selected_frame_level_changed, target_changed): Delete.
5086 * gdb-events.h, gdb-events.c: Re-generate.
5087 * valops.c (value_assign): Update.
5088 * stack.c (select_frame_command, up_silently_base)
5089 (down_silently_base): Update.
5090
5091 2004-04-29 Andrew Cagney <cagney@redhat.com>
5092
5093 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5094 registers correctly.
5095 (print_gp_register_row, mips32_heuristic_proc_desc)
5096 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5097 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5098 references to mips_isa_regsize.
5099
5100 2004-04-29 Andrew Cagney <cagney@redhat.com>
5101
5102 * mips-tdep.c (struct gdbarch_tdep): Delete
5103 mips_fp_register_double.
5104 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5105 mips_abi_regsize.
5106 (mips_gdbarch_init): Do not set mips_fp_register_double.
5107 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5108
5109 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5110
5111 Committed by Andrew Cagney.
5112 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5113 function calls.
5114
5115 2004-04-29 Andrew Cagney <cagney@redhat.com>
5116
5117 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5118 gdbarch, use mips_abi, update callers.
5119 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5120 mips_abi_regsize, update callers.
5121 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5122 mips_default_abi_regsize.
5123 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5124 mips_default_abi_regsize.
5125
5126 2004-04-29 Andrew Cagney <cagney@redhat.com>
5127
5128 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5129 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5130 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5131 mips_default_abi_regsize.
5132 (mips_isa_regsize): Rename mips_regisze.
5133 * mipsnbsd-tdep.c: Update.
5134 * mips-linux-tdep.c: Update.
5135 * irix5-nat.c: Update.
5136 * mips-tdep.h (mips_isa_regsize): Update.
5137
5138 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5139 Delete all disabled code.
5140 * gdb-events.h, gdb-events.c: Re-generate.
5141
5142 2004-04-19 Jerome Guitton <guitton@gnat.com>
5143 Mark Kettenis <kettenis@gnu.org>
5144
5145 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5146 the function begins with a branch instruction.
5147
5148 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5149
5150 * i386-tdep.c: Fix spelling mistakes.
5151
5152 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5153 Andrew Cagney <cagney@redhat.com>
5154
5155 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5156 <sys/proc.h>.
5157 * acconfig.h: Provide default _KMEMUSER value.
5158 * config.in, configure: Re-generate.
5159 * NEWS: Mention fix.
5160
5161 2004-04-24 Randolph Chung <tausq@debian.org>
5162
5163 * configure.host (hppa*-*-linux*): New target.
5164 * configure.tgt (hppa*-*-linux*): Likewise.
5165 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5166 gdbarch_init_osabi() call earlier so that osabi-specific frame
5167 unwinders can be registered first.
5168 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5169 hppa-linux-nat.c.
5170 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5171 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5172 * config/pa/linux.mh: New file.
5173 * config/pa/linux.mt: New file.
5174 * config/pa/nm-linux.h: New file.
5175 * config/pa/xm-linux.h: New file.
5176 * hppa-linux-nat.c: New file.
5177 * hppa-linux-tdep.c: New file.
5178
5179 2004-04-28 Randolph Chung <tausq@debian.org>
5180
5181 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5182 return values.
5183 (hppa32_push_dummy_call): Fix small struct and floating point argument
5184 passing, and make sure the stack frame is properly aligned.
5185
5186 2004-04-28 Andrew Cagney <cagney@redhat.com>
5187
5188 * stack.c (print_stack_frame): Fix description.
5189
5190 * NEWS: Mention gdb/gdbserver/configure execute permission
5191 changed. PR server/519.
5192
5193 2004-04-28 Andrew Cagney <cagney@redhat.com>
5194
5195 * stack.c (print_stack_frame_stub): Delete declaration.
5196 (struct print_stack_frame_args, print_stack_frame)
5197 (print_frame_info, print_frame): Replace "source" with print what.
5198 Replace "print" with "print_level". Replace "args" with
5199 "print_args".
5200 * frame.h (show_and_print_stack_frame, print_stack_frame)
5201 (print_frame_info): Update declarations.
5202 * stack.c (select_and_print_frame, frame_command)
5203 (current_frame_command, up_command, down_command): Update calls -
5204 use get_selected_frame, pass "enum print_what" for source, do not
5205 call frame_relative_level.
5206 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5207 * remote-rdp.c (remote_rdp_open): Ditto.
5208 * remote-mips.c (common_open): Ditto.
5209 * remote-e7000.c (e7000_start_remote): Ditto.
5210 * ocd.c (ocd_start_remote): Ditto.
5211 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5212 * infrun.c (normal_stop): Ditto.
5213 * inflow.c (kill_command): Ditto.
5214 * infcmd.c (finish_command): Ditto.
5215 * corelow.c (core_open): Ditto.
5216 * tracepoint.c (finish_tfind_command): Ditto.
5217 * thread.c (info_threads_command, info_threads_command)
5218 (restore_current_thread, do_captured_thread_select): Ditto.
5219 * ada-tasks.c (task_command): Ditto.
5220
5221 2004-04-26 Orjan Friberg <orjanf@axis.com>
5222
5223 * frame.c: Include "observer.h".
5224 (frame_observer_target_changed): New function.
5225 (_initialize_frame): Attach target_changed observer.
5226 * regcache.c: Include "observer.h".
5227 (regcache_observer_target_changed): New function.
5228 (_initialize_regcache): Attach target_changed observer.
5229 * valops.c: Include "observer.h".
5230 (value_assign): Notify target_changed event when modifying register.
5231 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5232
5233 2004-04-26 Orjan Friberg <orjanf@axis.com>
5234
5235 From Paul Koning <pkoning@equallogic.com>:
5236 * breakpoint.c (free_valchain): New function.
5237 (insert_bp_location, delete_breakpoint): Use free_valchain.
5238 (remove_breakpoint): Do not remove the valchain.
5239 (bpstat_stop_status): If not stopped by watchpoint, skip
5240 watchpoints when generating stop status list.
5241 * infrun.c (handle_inferior_event): Make
5242 stepped_after_stopped_by_watchpoint a global variable.
5243 * remote.c (remote_stopped_data_address): Return watch data
5244 address rather than zero if stepped_after_stopped_by_watchpoint is
5245 set.
5246
5247 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5248
5249 Fix PR gdb/1626.
5250 * configure.in: Check for curses after termcap.
5251 On osf5.*, do not check for ncurses.
5252 * configure: Regenerate.
5253
5254 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5255
5256 * ppcobsd-nat.c: Include "ppc-tdep.h".
5257 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5258
5259 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5260 Fixes PR tdep/1623 and PR tdep/1624.
5261
5262 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5263
5264 * xmodem.h, xmodem.c: Remove files.
5265 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5266
5267 2004-04-23 Randolph Chung <tausq@debian.org>
5268
5269 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5270 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5271 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5272 for handling stackless frames.
5273 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5274
5275 2004-04-23 Randolph Chung <tausq@debian.org>
5276
5277 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5278 starts at a pc before the frame is created.
5279
5280 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5281
5282 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5283
5284 2004-04-23 Jerome Guitton <guitton@gnat.com>
5285
5286 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5287 use convert_typed_floating to get the appropriate format.
5288
5289 2004-04-22 Randolph Chung <tausq@debian.org>
5290
5291 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5292 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5293 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5294 (hppa_sign_extend): Add prototype.
5295 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5296 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5297 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5298 hppa targets will also use these functions.
5299 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5300 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5301 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5302 (hppa_gdbarch_init): Remove gdbarch setting of
5303 skip_trampoline_code, in_solib_call_trampoline and
5304 in_solib_return_trampoline.
5305 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5306 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5307 hppa_in_solib_call_trampoline.
5308 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5309 Moved from hppa-tdep.c.
5310 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5311 in_solib_call_trampoline and in_solib_return_trampoline.
5312
5313 2004-04-22 Randolph Chung <tausq@debian.org>
5314
5315 * hppa-tdep.c (hppa_debug): New variable.
5316 (find_unwind_entry, hppa_frame_cache): Add debug output.
5317 (_initialize_hppa_tdep): Add command to set debug flag.
5318
5319 2004-04-22 Andrew Cagney <cagney@redhat.com>
5320
5321 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5322 "trad-frame.h".
5323 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5324 signal trampoline unwinder.
5325 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5326
5327 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5328
5329 Add OpenBSD/powerpc support.
5330 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5331 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5332 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5333 (ppc_collect_fpregset): New prototypes.
5334 * ppcobsd-nat.c: New file.
5335 * ppcobsd-tdep.c: New file.
5336 * ppcobsd-tdep.h: New file.
5337 * rs6000-tdep.c: Include "regset.h".
5338 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5339 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5340 New functions.
5341 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5342 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5343 (rs6000-tdep.o): Update dependencies.
5344 * configure.host: Add powerpc-*-openbsd.
5345 * configure.tgt: Add powerpc-*-openbsd.
5346 * config/powerpc/obsd.mh: New file.
5347 * config/powerpc/nm-obsd.h: New file.
5348 * config/powerpc/obsd.mt: New file.
5349
5350 2004-04-22 Andrew Cagney <cagney@redhat.com>
5351
5352 * frame.h (show_frame_info): Delete declaration.
5353
5354 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5355 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5356 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5357 * frv-tdep.c (frv_frame_this_id): Ditto.
5358 * avr-tdep.c (avr_frame_this_id): Ditto.
5359
5360 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5361
5362 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5363
5364 2004-04-22 Jim Blandy <jimb@redhat.com>
5365
5366 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5367 register number zero.
5368
5369 2004-04-21 Michael Snyder <msnyder@redhat.com>
5370
5371 * mips-tdep.c (heuristic_proc_start):
5372 Warning() already prefixes "Warning: ".
5373
5374 2004-04-21 Andrew Cagney <cagney@redhat.com>
5375
5376 * annotate.h (deprecated_annotate_starting_hook)
5377 (deprecated_annotate_stopped_hook)
5378 (deprecated_annotate_exited_hook)
5379 (deprecated_annotate_signal_hook)
5380 (deprecated_annotate_signalled_hook): Deprecate.
5381 * tracepoint.h (deprecated_create_tracepoint_hook)
5382 (deprecated_delete_tracepoint_hook)
5383 (deprecated_modify_tracepoint_hook)
5384 (deprecated_trace_find_hook)
5385 (deprecated_trace_start_stop_hook): Deprecate.
5386 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5387 * remote.h (deprecated_target_resume_hook)
5388 (deprecated_target_wait_loop_hook): Deprecate.
5389 * gdbcore.h (deprecated_exec_file_display_hook)
5390 (deprecated_file_changed_hook): Deprecate.
5391 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5392 * defs.h (deprecated_modify_breakpoint_hook)
5393 (deprecated_command_loop_hook, deprecated_show_load_progress)
5394 (deprecated_print_frame_info_listing_hook)
5395 (deprecated_query_hook, deprecated_warning_hook)
5396 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5397 (deprecated_delete_breakpoint_hook)
5398 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5399 (deprecated_readline_begin_hook, deprecated_readline_hook)
5400 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5401 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5402 (deprecated_context_hook, deprecated_target_wait_hook)
5403 (deprecated_attach_hook, deprecated_detach_hook)
5404 (deprecated_call_command_hook, deprecated_set_hook)
5405 (deprecated_error_hook, deprecated_error_begin_hook)
5406 (deprecated_ui_load_progress_hook): Deprecate.
5407 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5408 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5409 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5410 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5411 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5412 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5413 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5414 * annotate.c, aix-thread.c: Update.
5415
5416 2004-04-21 Andrew Cagney <cagney@redhat.com>
5417
5418 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5419 * vaxnbsd-tdep.c: Include "gdb_string.h".
5420
5421 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5422 (add_symbol_file_from_memory_command): #if 0 function body, call
5423 error instead.
5424
5425 2004-04-21 Andrew Cagney <cagney@redhat.com>
5426
5427 * gdbcore.h: Update copyright.
5428 (deprecated_add_core_fns): Rename add_core_fns.
5429 * win32-nat.c (_initialize_core_win32): Update.
5430 * sun3-nat.c (_initialize_core_sun3): Update.
5431 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5432 * rs6000-nat.c (_initialize_core_rs6000): Update.
5433 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5434 * nto-tdep.c (_initialize_nto_tdep): Update.
5435 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5436 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5437 * mips-nat.c (_initialize_core_mips): Update.
5438 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5439 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5440 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5441 * lynx-nat.c (_initialize_core_lynx): Update.
5442 * irix5-nat.c (_initialize_core_irix5): Update.
5443 * i386-interix-nat.c (_initialize_core_interix): Update.
5444 * cris-tdep.c (_initialize_cris_tdep): Update.
5445 * corelow.c (deprecated_add_core_fns): Update.
5446 * core-regset.c (_initialize_core_regset): Update.
5447 * core-aout.c (_initialize_core_aout): Update.
5448 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5449 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5450 * alpha-nat.c (_initialize_core_alpha): Update.
5451
5452 2004-04-21 Jim Blandy <jimb@redhat.com>
5453
5454 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5455
5456 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5457
5458 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5459 Delete.
5460 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5461 (read_attribute_value): Update calls to dwarf_alloc_block.
5462 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5463 dwarf2_tmp_obstack.
5464 (psymtab_to_symtab_1): Likewise. Clean up using
5465 free_stack_comp_unit.
5466 (add_to_cu_func_list): Use the comp_unit_obstack.
5467
5468 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5469
5470 * dwarf2read.c (dwarf2_flag_true_p): New function.
5471 (die_is_declaration): Use the function above. Add some comments.
5472
5473 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5474
5475 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5476 architecture when registering sparcnbsd_core_osabi_sniffer.
5477 Adjust comment.
5478
5479 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5480
5481 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5482 return value.
5483
5484 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5485 * i386-tdep.c: Correct register numbering scheme comments
5486 throughout.
5487 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5488 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5489 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5490 (i386_gdb_arch_init): Likewise.
5491
5492 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5493 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5494 ppcnbsd-tdep.o.
5495
5496 * m68k-tdep.h: Tweak comments.
5497 * m68k-tdep.c: Tweak comment.
5498
5499 2004-04-17 Randolph Chung <tausq@debian.org>
5500
5501 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5502 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5503 (hppa_hpux_som_init_abi): Set is_elf to 0.
5504 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5505 * hppa-tdep.c (low_text_segment_address): Remove global.
5506 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5507 section offset to calculate segment address.
5508 (internalize_unwinds): Define low_text_segment_address as local and
5509 pass to record_text_segment_lowaddr for ELF targets.
5510 (hppa_gdbarch_init): Zero fill tdep structure.
5511 (hppa_dump_tdep): Print tdep structure.
5512 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5513
5514 2004-04-17 Randolph Chung <tausq@debian.org>
5515
5516 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5517 (hppa_gdbarch_init): Set pseudo_register_read.
5518 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5519 * regcache.c (supply_register): Remove check for
5520 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5521
5522 2004-04-17 Randolph Chung <tausq@debian.org>
5523
5524 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5525 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5526 (hpread_adjust_stack_address): Move to hpread.c.
5527 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5528 obj_private_struct): Move from tm-hppa.h.
5529 * hpread.c (hppa-tdep.h): Include.
5530 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5531 (hpread_read_function_type, hpread_read_doc_function_type)
5532 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5533 directly.
5534 * pa64solib.c (hppa-tdep.h): Include.
5535 * somsolib.c (hppa-tdep.h): Include.
5536 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5537 inferior_status): Remove unused forward declarations.
5538 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5539 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5540 obj_private_struct): Move to hppa-tdep.h.
5541 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5542
5543 2004-04-17 Randolph Chung <tausq@debian.org>
5544
5545 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5546 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5547 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5548 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5549 Remove forward declaration and make static.
5550 (hppa_reg_struct_has_addr): Remove.
5551
5552 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5553
5554 * observer.sh: Move comments in sed command to first column.
5555
5556 2004-04-16 Jason Molenda (jmolenda@apple.com)
5557
5558 * frame.c: Minor typeo corrections in comments.
5559
5560 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5561
5562 * observer.c (observer_test_first_notification_function): Update
5563 function profile.
5564 (observer_test_second_notification_function): Likewise.
5565 (observer_test_third_notification_function): Likewise.
5566
5567 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5568
5569 From Brian Ford <ford@vss.fsi.com>:
5570 * i386-tdep.c (i386_coff_init_abi): New function.
5571 * i386-tdep.h (i386_coff_init_abi): New prototype.
5572 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5573 register number translation functions for DWARF and DWARF 2.
5574
5575 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5576
5577 * dwarf2read.c: Back out my previous change, it was incorrect.
5578
5579 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5580
5581 * dwarf2read.c: Include "hashtab.h".
5582 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5583 has_namespace_info.
5584 (struct partial_die_info): Add comments. Use bitfields to reduce
5585 memory footprint. Add scope, scope_set, has_specification,
5586 spec_offset, die_parent, die_child, and die_sibling.
5587 (peek_die_abbrev): Add prototype.
5588 (partial_read_comp_unit_head): New function, broken out from
5589 dwarf2_build_psymtabs_hard.
5590 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5591 Use partial_read_comp_unit_head. Initialize the CU and
5592 comp_unit_obstack. Update calls to read_partial_die and
5593 scan_partial_symbols. Use free_stack_comp_unit and
5594 load_partial_dies.
5595 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5596 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5597 Update calls to helper functions. Remove NAMESPACE argument.
5598 Update comments.
5599 (partial_die_parent_scope, partial_die_full_name): New functions.
5600 (add_partial_symbol): Remove namespace argument. Update call to
5601 pdi_needs_namespace. Use partial_die_full_name. Handle
5602 DW_TAG_namespace. Check has_namespace_info flag.
5603 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5604 tag. Handle namespaces.
5605 (add_partial_namespace, add_partial_enumeration): Simplify.
5606 (guess_structure_name): New function, derived from
5607 add_partial_structure.
5608 (add_partial_structure): Remove.
5609 (determine_class_name): Update comment.
5610 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5611 (is_type_tag_for_partial, load_partial_dies): New functions.
5612 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5613 Record specifications instead of following them immediately.
5614 (find_partial_die_in_comp_unit, find_partial_die)
5615 (fixup_partial_die, free_stack_comp_unit)
5616 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5617 (partial_die_hash, partial_die_eq): New functions.
5618 * Makefile.in (hashtab_h): Define.
5619 (dwarf2read.o): Update dependencies.
5620 (observer_inc, observer_h): Move to the correct section.
5621
5622 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5623
5624 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5625 (die_is_declaration): Use the function above. Add comment.
5626
5627 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5628
5629 * dwarf2read.c (read_structure_scope): Identify stub types
5630 using die_is_declaration() only.
5631
5632 2004-04-15 Roland McGrath <roland@redhat.com>
5633
5634 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5635 argument instead of NAME.
5636 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5637 in call to symbol_file_add_with_addrs_or_offsets.
5638 (build_addr_info): New function, helper for ...
5639 (symbol_file_add_from_memory): New function.
5640 (add_symbol_file_from_memory_command): New function using that.
5641 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5642 (pre_add_symbol_hook): Add const to argument type.
5643 * symfile.h (symbol_file_add_from_memory): Declare it.
5644
5645 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5646
5647 * NEWS (New native configurations): Mention OpenBSD/vax.
5648 * configure.host: Add vax-*-openbsd*.
5649 * config/vax/obsd.mh: New file.
5650 * config/vax/nm-obsd.h: New file.
5651
5652 * vax-tdep.c: Include "regset.h".
5653 (vax_supply_gregset): New function.
5654 (vax_gregset): New variable.
5655 (vax_regset_from_core_section): New function.
5656 (vax_gdbarch_init): Set regset_from_core_section.
5657 * Makefile.in (vax-tdep.o): Update dependencies.
5658
5659 2004-04-15 Andrew Cagney <cagney@redhat.com>
5660
5661 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5662 (observer_normal_stop_notification_stub)
5663 (observer_attach_normal_stop, observer_detach_normal_stop):
5664 Delete, replaced by #include "observer.inc".
5665 * infrun.c (normal_stop): Pass "stop_bpstat" to
5666 observer_notify_normal_stop.
5667 * Makefile.in (observer_inc): Define.
5668 (observer.o): Update dependencies.
5669 (observer.h, observer.inc): New rules.
5670 * observer.h: Delete file.
5671 * observer.sh: New file.
5672
5673 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5674
5675 * vax-tdep.c (vax_frame_cache): Fix typo.
5676
5677 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5678
5679 * NEWS (New native configurations): Mention NetBSD/vax.
5680 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5681 * config/vax/nbsdelf.mh: New file.
5682 * config/vax/nbsdaout.mh: New file.
5683 * config/vax/nm-nbsd.h: New file.
5684 * config/vax/nm-nbsdaout.h: New file.
5685
5686 * vaxnbsd-tdep.c: New file.
5687 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5688 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5689 * config/vax/nbsd.mt: New file.
5690 * config/vax/tm-nbsd.h: New file.
5691
5692 * Makefile.in (vaxbsd-nat.o): New dependency.
5693
5694 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5695 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5696 struct_addr arguments. Don't push return value address.
5697 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5698 arguments to vax_store_arguments. Store return value address in
5699 R1.
5700 (vax_store_struct_return, vax_extract_return_value)
5701 (vax_store_return_value): Remove functions.
5702 (vax_return_value): New function.
5703 (vax_gdbarch_init): Set return value. Don't set
5704 deprecated_store_struct_return, deprecated_extract_struct_return
5705 and deprecated_store_return_value.
5706
5707 2004-04-14 Andreas Schwab <schwab@suse.de>
5708
5709 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5710 value buffer.
5711 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5712
5713 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5714
5715 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5716 (vax_unwind_dummy_id): New functions.
5717 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5718 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5719 variables.
5720 (vax_fix_call_dummy): Remove function.
5721 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5722 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5723 call_dummy_location, deprecated_call_dummy_words,
5724 deprecated_sizeof_call_dummy_words,
5725 deprecated_call_dummy_breakpoint_offset,
5726 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5727 and deprecated_dummy_write_sp.
5728
5729 2004-04-13 David Carlton <carlton@kealia.com>
5730
5731 * MAINTAINERS: Move myself to "paper trail" section.
5732
5733 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5734
5735 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5736 "trad-frame.h".
5737 (vax_frame_init_saved_regs): Remove function.
5738 (vax_sigtramp_saved_pc): Remove function.
5739 (vax_frame_saved_pc): Remove function.
5740 (vax_frame_args_address): Remove function.
5741 (vax_frame_num_args): Rewrite.
5742 (vax_frame_chain): Remove function.
5743 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5744 VAX_FP_REGNUM.
5745 (vax_pop_frame): Likewise.
5746 (vax_saved_pc_after_call): Remove function.
5747 (struct vax_frame_cache): New structure.
5748 (vax_frame_cache): New function.
5749 (vax_frame_this_id): New function.
5750 (vax_frame_prev_register): New function.
5751 (vax_frame_unwind): New variable.
5752 (vax_frame_sniffer): New function.
5753 (vax_frame_base_address): New function.
5754 (vax_frame_args_address): New function.
5755 (vax_frame_base): New variable.
5756 (vax_unwind_pc): New function.
5757 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5758 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5759 deprecated_frame_chain, deprecated_frame_saved_pc,
5760 deprecated_frame_args_address and
5761 deprecated_frame_init_saved_regs.
5762 * Makefile.in (vax-tdep.o): Update dependencies.
5763
5764 * vaxbsd-nat.c: New file.
5765
5766 * vax-tdep.h: Update copyright year. Adjust comments.
5767 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5768 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5769 (vax_regnum): New enum. Replacing...
5770 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5771 (VAX_PS_REGNUM): ... these removed macros.
5772 * vax-tdep.c (vax_register_name): Remove prototype.
5773 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5774 (vax_register_byte, vax_register_raw_size,
5775 vax_register_virtual_size, vax_register_virtual_type): Remove
5776 functions.
5777 (vax_register_type): New function.
5778 (vax_breakpoint_from_pc): Reorganize.
5779 (vax_gdbarch_init): Set register_type. Don't set
5780 deprecated_register_size, deprecated_register_bytes,
5781 deprecated_register_byte, deprecated_register_raw_size,
5782 deprecated_max_register_raw_size,
5783 deprecated_register_virtual_size,
5784 deprecated_max_register_virtual_size and
5785 deprecated_register_virtual_type. Add comment on stack direction.
5786
5787 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5788
5789 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5790 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5791 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5792
5793 2004-04-10 Randolph Chung <tausq@debian.org>
5794
5795 * MAINTAINERS (write after approval): Add myself.
5796
5797 2004-04-07 Randolph Chung <tausq@debian.org>
5798
5799 * hppa-tdep.c (hppa_inner_than): Remove.
5800 (is_pa_2): Remove unused static variable.
5801 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5802
5803 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5804
5805 * language.h (language_defn): Add new la_post_parser field.
5806 * parser-defs.h (null_post_parser): New declaration (default for
5807 la_post_parser).
5808
5809 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5810 insert call to that function.
5811 (parse_exp_in_context): New function, including code formerly in
5812 parse_exp_1. Calls language-dependent post-parser after
5813 prefixification.
5814 (parse_expression_in_context): New exported function.
5815 (null_post_parser): New definition.
5816 * expression.h (parse_expression_in_context): Add declaration.
5817
5818 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5819 * c-lang.c (c_language_defn): Ditto.
5820 (cplus_language_defn): Ditto.
5821 (asm_language_defn): Ditto.
5822 (minimal_language_defn): Ditto.
5823 * f-lang.c (f_language_defn): Ditto.
5824 * jv-lang.c (java_language_defn): Ditto.
5825 * language.c (unknown_language_defn): Ditto.
5826 (auto_language_defn): Ditto.
5827 (local_language_defn): Ditto.
5828 * m2-lang.c (m2_language_defn): Ditto.
5829 * scm-lang.c (scm_language_defn): Ditto.
5830 * obj-lang.c (objc_language_defn): Ditto.
5831
5832 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5833
5834 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5835 (amd64nbsd_mcontext_addr): New function.
5836 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5837 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5838 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5839
5840 * corelow.c (core_xfer_partial): Fix coding standards violation.
5841 Add support for TARGET_OBJECT_WCOOKIE.
5842
5843 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5844 deprecated_pc_in_sigtramp.
5845 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5846 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5847 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5848 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5849 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5850 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5851 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5852
5853 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5854 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5855 Fix typo.
5856
5857 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5858 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5859 (amd64_collect_fxsave): Likewise.
5860
5861 * i386-sol2-tdep.c: Include "gdb_string.h".
5862 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5863 name.
5864 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5865
5866 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5867
5868 * i386-sol2-tdep.c: Include "solib-svr4.h".
5869 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5870 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5871 * config/i386/tm-i386sol2.h: Include :solib.h".
5872 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5873 solib-svr4.o and solib-legacy.o.
5874 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5875 solib-svr4.o.
5876
5877 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5878
5879 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5880 whether a register is supplied by PTRACE_GETFPREGS.
5881 (store_inferior_registers): Likewise.
5882 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5883 whether a register is supplied by PT_GETFPREGS.
5884 (store_inferior_registers): Likewise.
5885
5886 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5887 * config/i386/linux64.mt (TDEPFILES): Likewise.
5888
5889 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5890
5891 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5892 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5893 the program counter is in the range specified by `struct
5894 gdbarch_tdep'.
5895 * amd64-linux-tdep.c: Include "symtab.h".
5896 (amd64_linux_pc_in_sigtramp): Remove function.
5897 (amd64_linux_sigtramp_p): New function.
5898 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5899 deprecated_pc_in_sigtramp.
5900 * amd64nbsd-tdep.c: Include "symtab.h".
5901 (amd64nbsd_sigtramp_p): New function.
5902 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5903 deprecated_pc_in_sigtramp.
5904 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5905 few comments.
5906 (amd64obsd_pc_in_sigtramp): Remove function.
5907 (amd64obsd_sigtramp_p): New function.
5908 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5909 deprecated_pc_in_sigtramp.
5910 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5911 (i386bsd_pc_ins_sigtramp): Remove prototype.
5912 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5913 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5914 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5915 the program counter is in the range specified by `struct
5916 gdbarch_tdep'.
5917 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5918 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5919 (i386_go32_pc_in_sigtramp): Remove function.
5920 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5921 Initialize TDEP->sigtramp_p.
5922 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5923 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5924 deprecated_pc_in_sigtramp.
5925 * i386-linux-tdep.c: Adjust comments.
5926 (i386_linux_pc_in_sigtramp): Remove function.
5927 (i386_linux_sigtramp_p): New function.
5928 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5929 deprecated_pc_in_sigtramp.
5930 * i386-nto-tdep.c: Update copyright year.
5931 (i386nto_pc_in_sigtramp): Remove function.
5932 (i386nto_sigtramp_p): New function.
5933 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5934 SP_REGNUM.
5935 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5936 deprecated_pc_in_sigtramp.
5937 * i386-sol2-tdep.c: Update copyright year.
5938 (i386_sol2_pc_in_sigtramp): Remove function.
5939 (i386_sol2_sigtramp_p): New function.
5940 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5941 deprecated_pc_in_sigtramp.
5942 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5943 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5944 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5945 deprecated_sigtramp_start and deprecated_sigtramp_end.
5946 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5947 (i386nbsd_pc_in_sigtramp): Remove function.
5948 (i386nbsd_sigtramp_p): New function.
5949 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5950 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5951 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5952 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5953 (i386obsd_pc_in_sigtramp): Remove function.
5954 (i386obsd_sigtramp_p): New function.
5955 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5956 functions.
5957 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5958 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5959 TDEP->sigtramp_p.
5960 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5961 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5962 dependencies.
5963
5964 * config/i386/i386aout.mt: Remove file.
5965
5966 * configure.tgt: Remove i[34567]86-*-go32*,
5967 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5968 and i[34567]86-*-isc*. Set gdb_target to i386 for
5969 i[34567]86-*-netware* and i[34567]86-*-*.
5970 * config/i386/i386.mt: New file.
5971 * config/i386/embed.mt: Remove file.
5972 * config/i386/go32.mt: Remove file.
5973 * config/i386/i386nw.mt: Remove file.
5974 * config/i386/i386v.mt: Remove file.
5975 * config/i386/tm-go32.h: Remove file.
5976
5977 * tui/tui-hooks.c: Include "readline/readline.h" after
5978 "gdb_curses.h" instead of before.
5979 * tui/tui-io.c: Likewise.
5980
5981 * tui/tui.c: Fix typo in comment.
5982
5983 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5984
5985 2004-04-08 Andrew Cagney <cagney@redhat.com>
5986
5987 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5988 (deprecated_exception_support_initialized): Declare.
5989 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5990 (initialize_hp_cxx_exception_support)
5991 (child_enable_exception_callback): Update.
5992 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5993 (deprecated_exception_support_initialized): Rename
5994 deprecated_exception_catchpoints_are_fragile and
5995 deprecated_exception_support_initialized.
5996 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5997
5998 * symtab.c (deprecated_hp_som_som_object_present): Rename
5999 hp_som_som_object_present.
6000 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6001 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6002 Update. Delete extern declaration.
6003 * valops.c (hp_som_som_object_present): Ditto.
6004 * parse.c (deprecated_hp_som_som_object_present)
6005 (parse_nested_classes_for_hpacc): Ditto.
6006 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6007 * hppa-hpux-tdep.c (hp_som_som_object_present)
6008 (initialize_hp_cxx_exception_support): Ditto.
6009 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6010 * cp-valprint.c (hp_som_som_object_present)
6011 (cp_print_class_method): Ditto.
6012 * c-typeprint.c (hp_som_som_object_present):
6013 (c_type_print_base): Ditto.
6014 * c-exp.y (hp_som_som_object_present): Ditto.
6015
6016 2004-04-08 Andrew Cagney <cagney@redhat.com>
6017
6018 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6019 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6020 (frame_unwind_find_by_frame): Re-implement the unwind code so
6021 that it can both prepend and append sniffers. Replace
6022 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6023 * tramp-frame.c (tramp_frame_append): Use
6024 frame_unwind_prepend_unwinder.
6025 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6026 frame_unwind_register_unwinder.
6027 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6028 tramp_frame_append.
6029 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6030 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6031 (mips_linux_init_abi): Update.
6032
6033 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6034
6035 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6036 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6037 file support.
6038
6039 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6040
6041 * ia64-tdep.c (elf.h): Don't include.
6042 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6043
6044 2004-04-07 Jason Molenda (jmolenda@apple.com)
6045
6046 * frame.h: Typeo corrections in comments.
6047
6048 2004-04-07 Jim Blandy <jimb@redhat.com>
6049
6050 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6051 %esp and %ebp
6052
6053 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6054
6055 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6056 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6057 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6058 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6059 and solib-legacy.o.
6060 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6061 solib-svr4.o.
6062 * config/sparc/tm-sol2.h: Update copyright year. Include
6063 "solib.h".
6064
6065 * sparc-sol2-tdep.c: Update copyright year. Include
6066 "solib-svr4.h".
6067 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6068 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6069 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6070 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6071 dependencies.
6072
6073 2004-04-06 Andrew Cagney <cagney@redhat.com>
6074
6075 * infttrace.c: Include "infttrace.h".
6076 * infttrace.h: Include "target.h".
6077 * Makefile.in (infttrace_h): Update.
6078 (infttrace.o): Update.
6079
6080 2004-04-06 Andrew Cagney <cagney@redhat.com>
6081
6082 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6083 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6084 move extern declarations from here ...
6085 * infttrace.h: ... to here.
6086 * Makefile.in (hppah-nat.o): Update dependencies.
6087
6088 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6089 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6090 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6091 (hppa_breakpoint_from_pc): Delete.
6092
6093 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6094
6095 2004-04-05 Andrew Cagney <cagney@redhat.com>
6096
6097 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6098 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6099 <sys/file.h>.
6100
6101 2004-04-06 Randolph Chung <tausq@debian.org>
6102
6103 Committed by Andrew Cagney (mechanical change).
6104 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6105 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6106 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6107 child_enable_exception_callback, current_ex_event,
6108 null_symtab_and_line, child_get_current_exception_event,
6109 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6110 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6111 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6112 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6113 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6114 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6115 Move hpux-specific definitions ...
6116 * hppa-hpux-tdep.c: ... to here.
6117
6118 2004-04-05 Andrew Cagney <cagney@redhat.com>
6119
6120 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6121 skip_prologue_using_sal.
6122
6123 2004-04-05 Andrew Cagney <cagney@redhat.com>
6124
6125 * config/i386/tm-i386.h: Delete file.
6126 * config/i386/tm-vxworks.h: Update copyright, do not include
6127 "tm-i386.h".
6128 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6129 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6130 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6131 * config/i386/ncr3000.mt (TM_FILE): Delete.
6132 * config/i386/interix.mt (TM_FILE): Delete.
6133 * config/i386/i386v.mt (TM_FILE): Delete.
6134 * config/i386/i386nw.mt (TM_FILE): Delete.
6135 * config/i386/i386gnu.mt (TM_FILE): Delete.
6136 * config/i386/i386aout.mt (TM_FILE): Delete.
6137 * config/i386/embed.mt (TM_FILE): Delete.
6138
6139 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6140
6141 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6142 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6143 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6144 (accg7_regnum): New constants.
6145 (last_spr_regnum, last_pseudo_regnum): Update.
6146 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6147 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6148 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6149 for accg registers.
6150 (frv_register_sim_regno): Update spr_map[].
6151
6152 2004-04-04 Andrew Cagney <cagney@redhat.com>
6153
6154 * config/mips/xm-riscos.h: Delete.
6155 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6156 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6157 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6158 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6159 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6160 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6161 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6162 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6163 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6164 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6165 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6166 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6167 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6168 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6169 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6170 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6171 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6172 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6173 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6174 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6175 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6176 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6177 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6178 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6179 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6180 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6181
6182 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6183 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6184 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6185 * configure.host: Remove m680[01]0-sun-sunos3*,
6186 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6187 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6188 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6189 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6190 mips-*-riscos*.
6191 * NEWS: Mention removed systems.
6192
6193 2004-04-04 Andrew Cagney <cagney@redhat.com>
6194
6195 GDB 6.1 release created from 6.1 branch.
6196
6197 2004-04-04 Andrew Cagney <cagney@redhat.com>
6198
6199 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6200 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6201 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6202
6203 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6204 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6205 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6206
6207 2004-04-03 Jim Blandy <jimb@redhat.com>
6208
6209 * MAINTAINERS: Chris Faylor has changed employers; add him to
6210 "paper trail" section, and update his E-mail address.
6211
6212 2004-04-03 Andrew Cagney <cagney@redhat.com>
6213
6214 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6215 generic dummy frames.
6216 * dummy-frame.c: Update copyright.
6217 (dummy_frame_sniffer): Delete check for generic dummy frames.
6218
6219 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6220 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6221 (REG_PARM_STACK_SPACE): Delete.
6222 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6223 Inline reference to REG_PARM_STACK_SPACE.
6224
6225 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6226 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6227 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6228 (FRAME_BASE_BEFORE_SIGTRAMP)
6229 (hppa32_hpux_frame_base_before_sigtramp)
6230 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6231 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6232 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6233 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6234 (FRAME_BASE_BEFORE_SIGTRAMP)
6235 (hppa64_hpux_frame_base_before_sigtramp)
6236 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6237
6238 2004-04-03 Andrew Cagney <cagney@redhat.com>
6239
6240 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6241
6242 2004-04-02 Andrew Cagney <cagney@redhat.com>
6243
6244 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6245 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6246 * dummy-frame.h: Delete out-of-date comments.
6247 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6248 * gdbarch.h, gdbarch.c: Re-generate.
6249
6250 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6251
6252 Committed by Andrew Cagney <cagney@redhat.com>.
6253 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6254 into account an instruction saving a register if we have already
6255 seen an earlier instruction saving that same register.
6256
6257 2004-04-02 Andrew Cagney <cagney@redhat.com>
6258
6259 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6260 * gdbarch.h, gdbarch.c: Re-generate.
6261 * frame.c (legacy_get_prev_frame): Delete references to
6262 DEPRECATED_INIT_FRAME_PC_FIRST.
6263
6264 * infrun.c (pc_in_sigtramp): Delete function.
6265 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6266 get_frame_type.
6267
6268 2004-04-02 Andrew Cagney <cagney@redhat.com>
6269
6270 * infrun.c (handle_step_into_function): Delete code conditional on
6271 legacy_frame_p.
6272 (handle_inferior_event, step_over_function): Ditto.
6273
6274 2004-04-02 Andrew Cagney <cagney@redhat.com>
6275
6276 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6277 "previous frame inner to this frame" test.
6278
6279 2004-04-02 Andrew Cagney <cagney@redhat.com>
6280
6281 * frame.c (safe_frame_unwind_memory): New function.
6282 * frame.h (safe_frame_unwind_memory): Declare. Update description
6283 of /safe_/ methods.
6284 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6285 "next_frame". Use safe_frame_unwind_memory.
6286 (tramp_frame_sniffer): Update call to tramp_frame_start.
6287
6288 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6289
6290 * dwarf2read.c (dwarf2_objfile_data_key): New.
6291 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6292 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6293 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6294 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6295 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6296 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6297 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6298 Remove variables.
6299 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6300 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6301 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6302 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6303 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6304 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6305 Remove macros.
6306 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6307 data.
6308 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6309 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6310 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6311 (read_partial_die, read_full_die, read_indirect_string)
6312 (dwarf_decode_line_header, dwarf_decode_macros)
6313 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6314 Update uses of removed variables.
6315 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6316 of removed macros.
6317 (_initialize_dwarf2_read): New function.
6318 * symfile.h (dwarf2_has_info): Update prototype.
6319 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6320 * elfread.c (elf_symfile_read): Likewise.
6321
6322 2004-04-01 Jim Blandy <jimb@redhat.com>
6323
6324 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6325 function for register numbers on all the rs6000-derived targets.
6326 (rs6000_gdbarch_init): Don't register a separate
6327 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6328 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6329 variants.
6330
6331 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6332 numbering.
6333
6334 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6335
6336 * valarith.c: Update copyright notice.
6337 (value_add): Handle range types.
6338 (value_sub): Ditto.
6339 (value_equal): Ditto.
6340 (value_less): Ditto.
6341 (value_neg): Ditto.
6342 (value_complement): Ditto.
6343 (value_binop): Simplify slightly by using is_integral_type and
6344 eliminiating unnecessary COERCE_ENUMs.
6345
6346 2004-03-31 Andrew Cagney <cagney@redhat.com>
6347
6348 * frame.h (frame_unwind_id): Declare.
6349 * frame.c (frame_unwind_id): New function.
6350 (get_prev_frame_1): New function.
6351 (frame_debug_got_null_frame): New function.
6352 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6353 code proper to prev_frame, update description.
6354 * infrun.c (step_over_function): Use frame_unwind_id.
6355
6356 2004-04-31 J. Brobecker <brobecker@gnat.com>
6357
6358 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6359 (hppa64_push_dummy_call): Likewise.
6360
6361 2004-03-30 Jim Blandy <jimb@redhat.com>
6362
6363 From Ulrich Weigand:
6364 * utils.c (query): Do not use a va_list variable multiple times.
6365
6366 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6367
6368 * Makefile.in (linux_nat_h): Update dependencies.
6369 * configure.in: Check for <gnu/libc-version.h>.
6370 * configure: Regenerate.
6371 * config.in: Regenerate.
6372 * linux-nat.h: Include "target.h". Add waitstatus field to
6373 struct lwp_info.
6374 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6375 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6376 to.
6377 (lin_lwp_handle_extended): New function. Handle clone events.
6378 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6379 thread exit events.
6380 (child_wait): Handle clone events.
6381 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6382 * linux-nat.c (linux_enable_event_reporting): Turn on
6383 PTRACE_O_TRACECLONE.
6384 (linux_handle_extended_wait): Handle clone events.
6385 * thread-db.c: Include <gnu/libc-version.h>.
6386 (struct private_thread_info): Add dying flag.
6387 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6388 higher.
6389 (attach_thread): Update comments. Handle dying threads.
6390 (detach_thread): Set the dying flag.
6391 (check_event): Always call attach_thread.
6392
6393 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * mips-tdep.c (mips_pdr_data): New.
6396 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6397 (_initialize_mips_tdep): Initialize mips_pdr_data.
6398
6399 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6400
6401 * minsyms.c (install_minimal_symbols): Move dropping leading
6402 char from linkage name from here...
6403 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6404 test for "__gnu_compiled*" symbols.
6405
6406 2004-03-28 Jim Blandy <jimb@redhat.com>
6407
6408 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6409 registers to temp register r0 and byte stores as prologue
6410 instructions.
6411
6412 2004-03-28 Andrew Cagney <cagney@redhat.com>
6413
6414 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6415 arm*-*-*.
6416
6417 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6418
6419 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6420 and switch the layout to force a display of register window.
6421
6422 2004-02-26 J. Brobecker <brobecker@gnat.com>
6423
6424 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6425 of the INTEGER class.
6426
6427 2004-03-26 Jim Blandy <jimb@redhat.com>
6428
6429 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6430 bytes long on PPC GNU/Linux.
6431
6432 2004-03-26 David Carlton <carlton@kealia.com>
6433
6434 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6435
6436 2004-03-25 Andrew Cagney <cagney@redhat.com>
6437
6438 * PROBLEMS: Add general section titles, remove references to
6439 specific releases.
6440
6441 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6442
6443 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6444 INT_REGISTER_SIZE.
6445 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6446 FP_REGISTER_VIRTUAL_SIZE.
6447 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6448 of DEPRECATED_REGISTER_RAW_SIZE.
6449 (arm_register_type): Add gdbarch argument.
6450 (arm_register_raw_size, arm_register_virtual_size): Delete.
6451 (arm_register_byte, arm_extract_return_value)
6452 (arm_store_return_value, arm_get_longjmp_target): Update references
6453 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6454 (arm_gdbarch_init): Likewise. Don't set
6455 deprecated_register_raw_size, deprecated_register_virtual_size,
6456 deprecated_max_register_raw_size,
6457 deprecated_max_register_virtual_size, or
6458 deprecated_max_register_virtual_type. Do set register_type.
6459 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6460 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6461 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6462 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6463 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6464 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6465 INT_REGISTER_SIZE.
6466 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6467 (remote_rdp_store_register): Likewise.
6468
6469 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6470
6471 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6472 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6473 to after osabi initialization.
6474 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6475 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6476 functions.
6477 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6478 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6479 variables.
6480 (mips_linux_init_abi): Append signal trampoline unwinders.
6481
6482 2004-03-24 Andrew Cagney <cagney@redhat.com>
6483
6484 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6485 * tramp-frame.c: Include "gdb_assert.h".
6486 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6487 correct sizeof.
6488 (tramp_frame_append): Validate the tramp frame's instructions.
6489 * Makefile.in (tramp-frame.o): Update dependencies.
6490
6491 2004-03-23 Andrew Cagney <cagney@redhat.com>
6492
6493 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6494
6495 2004-03-23 Andrew Cagney <cagney@redhat.com>
6496
6497 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6498 Nasser as past testsuite/lib/ (and other) maintainers.
6499
6500 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6501
6502 * infcmd.c (attach_command): Reread symbols if we already have
6503 an exec file.
6504
6505 2004-03-23 Andrew Cagney <cagney@redhat.com>
6506
6507 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6508
6509 2004-03-23 Andrew Cagney <cagney@redhat.com>
6510
6511 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6512 * gdbarch.h, gdbarch.c: Re-generate.
6513 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6514 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6515 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6516 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6517 (DEPRECATED_SIGTRAMP_START): Update.
6518 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6519 (DEPRECATED_SIGTRAMP_START): Update.
6520 * blockframe.c (find_pc_sect_partial_function): Update.
6521 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6522
6523 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6524
6525 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6526 if necessary.
6527
6528 2004-03-23 Andrew Cagney <cagney@redhat.com>
6529
6530 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6531 predicate, deprecate.
6532 * gdbarch.h, gdbarch.c: Re-generate.
6533 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6534 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6535 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6536 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6537 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6538 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6539 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6540 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6541 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6542 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6543 * blockframe.c (find_pc_partial_function): Update.
6544 * breakpoint.c (bpstat_what): Update.
6545 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6546 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6547 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6548 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6549 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6550 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6551 * i386-nto-tdep.c (i386nto_init_abi): Update.
6552 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6553 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6554 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6555 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6556 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6557 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6558 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6559 * infrun.c (pc_in_sigtramp): Update.
6560 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6561 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6562 * mips-tdep.c (mips_gdbarch_init): Update.
6563 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6564 * ppc-linux-tdep.c: Update comment.
6565 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6566 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6567 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6568 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6569 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6570 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6571 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6572 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6573 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6574 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6575
6576 2004-03-23 Andrew Cagney <cagney@redhat.com>
6577
6578 * tramp-frame.h, tramp-frame.h: New files.
6579 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6580 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6581
6582 * Makefile.in: Update all dependencies.
6583
6584 2004-03-23 Andrew Cagney <cagney@redhat.com>
6585
6586 * Makefile.in (trad_frame_h): Add $(frame_h).
6587 * trad-frame.h: Update copyright. Include "frame.h".
6588 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6589 (trad_frame_set_id, trad_frame_get_id): Declare.
6590 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6591 * trad-frame.c: Update copyright.
6592 (struct trad_frame_cache): Define.
6593 (trad_frame_cache_zalloc): New function.
6594 (trad_frame_set_id, trad_frame_get_id): New functions.
6595 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6596
6597 2004-03-22 Andrew Cagney <cagney@redhat.com>
6598
6599 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6600 s390_pltstub_unwind_cache.
6601 (s390_stub_frame_unwind_cache): Rename
6602 s390_pltstub_frame_unwind_cache.
6603 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6604 (s390_stub_frame_prev_register): Rename
6605 s390_pltstub_frame_prev_register.
6606 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6607 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6608
6609 From Ulrich Weigand:
6610 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6611 pointer calls like PLT calls.
6612
6613 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6616 PC rather than the partial function start address. Use the start
6617 address to sanity check the found PDR.
6618
6619 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6620
6621 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6622 linux_handle_extended_wait.
6623
6624 2004-03-22 Andrew Cagney <cagney@redhat.com>
6625
6626 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6627 function.
6628
6629 * frame.h (generic_pop_current_frame): Delete declaration.
6630 (deprecate_pop_dummy_frame): Deprecate
6631 generic_pop_dummy_frame.
6632 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6633 (generic_pop_current_frame): Delete function.
6634 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6635 generic_pop_current_frame.
6636 * v850-tdep.c (v850_pop_frame): Update.
6637 * mcore-tdep.c (mcore_pop_frame): Update.
6638 * sh64-tdep.c (sh64_pop_frame): Update.
6639 * h8300-tdep.c (h8300_pop_frame): Update.
6640
6641 2004-03-22 Andrew Cagney <cagney@redhat.com>
6642
6643 * frame.h (deprecated_pc_in_call_dummy): Rename
6644 generic_pc_in_call_dummy.
6645 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6646 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6647 generic_pc_in_call_dummy.
6648 (pc_in_dummy_frame): Make static.
6649 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6650 * gdbarch.h, gdbarch.c: Re-generate.
6651 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6652 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6653 (legacy_get_prev_frame): Ditto.
6654 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6655 comment.
6656
6657 2004-03-21 Andrew Cagney <cagney@redhat.com>
6658
6659 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6660 declaration and out-of-date comment.
6661 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6662 Delete function.
6663 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6664 deprecated_pc_in_call_dummy.
6665
6666 * infrun.c (handle_inferior_event): For non legacy frames, use the
6667 frame ID and frame type to identify a signal trampoline. Update
6668 comments.
6669
6670 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6671
6672 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6673 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6674
6675 2004-03-21 Andrew Cagney <cagney@redhat.com>
6676
6677 * frame-unwind.h: Update copyright.
6678 (struct frame_data): Add opaque declaration.
6679 (frame_sniffer_ftype): Declare.
6680 (struct frame_unwind): Add "unwind_data" and "sniffer".
6681 (frame_unwind_register_unwinder): Declare.
6682 (frame_unwind_find_by_frame): Add parameter "this_cache".
6683 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6684 (legacy_get_prev_frame, legacy_get_prev_frame)
6685 (get_frame_type): Pass the prologue_cache to
6686 frame_unwind_find_by_frame.
6687 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6688 "unwinder".
6689 (frame_unwind_register_unwinder): New function.
6690 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6691
6692 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6693
6694 * bcache.c (print_percentage): Use floating point to avoid
6695 incorrect results when portion*100 overflows.
6696
6697 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6698
6699 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6700 (ppc_linux_init_extra_frame_info)
6701 (ppc_linux_frameless_function_invocation)
6702 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6703 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6704 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6705 (rs6000_frame_chain): Delete declarations.
6706 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6707 (ppc_linux_init_extra_frame_info)
6708 (ppc_linux_frameless_function_invocation)
6709 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6710 (ppc_linux_init_abi): Remove registration of above deleted functions.
6711 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6712 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6713 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6714 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6715 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6716 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6717 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6718 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6719 frame management for all OSABIs.
6720
6721 2004-03-19 Andrew Cagney <cagney@redhat.com>
6722
6723 Committed by Kevin Buettner <kevinb@redhat.com>.
6724
6725 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6726 Update copyright.
6727 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6728 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6729 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6730 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6731 unwinders. #ifdef legacy frame code.
6732 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6733 "frame-base.h".
6734 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6735 (struct rs6000_frame_cache, rs6000_frame_cache)
6736 (rs6000_frame_this_id, rs6000_frame_prev_register)
6737 (rs6000_frame_sniffer, rs6000_frame_unwind)
6738 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6739 (rs6000_frame_base): Implement a traditional frame unwinder.
6740 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6741 frame unwinder.
6742
6743 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6744
6745 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6746 breakpoint address for watchpoints or the catch eventpoints.
6747 Add new paramter ``bptype''. Adjust all callers.
6748
6749 2004-03-19 Andrew Cagney <cagney@redhat.com>
6750
6751 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6752
6753 * PROBLEMS: Delete note that ARM does not use frame code, problem
6754 fixed.
6755
6756 2004-03-18 Andrew Cagney <cagney@redhat.com>
6757
6758 * stack.c (return_command): Delete code wrapped in #ifdef
6759 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6760
6761 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6762
6763 2004-03-18 Andrew Cagney <cagney@redhat.com>
6764
6765 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6766 DEPRECATED_IN_SIGTRAMP.
6767 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6768 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6769 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6770 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6771 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6772 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6773 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6774 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6775 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6776 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6777
6778 2004-03-18 Andrew Cagney <cagney@redhat.com>
6779
6780 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6781 (struct frame_base_table_entry): Define.
6782 (struct frame_base_table): Re-implement as a linked list.
6783 (frame_base_init): Re-implement.
6784 (frame_base_table): Delete function.
6785 (append_predicate): Delete function.
6786 (frame_base_append_sniffer): Update.
6787 (frame_base_set_default): Update.
6788 (frame_base_find_by_frame): Update.
6789 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6790 * Makefile.in (frame-base.o): Update dependencies.
6791
6792 2004-03-17 Andrew Cagney <cagney@redhat.com>
6793
6794 * frame.c (legacy_get_prev_frame): Pass correct frame to
6795 frame_unwind_find_by_frame.
6796
6797 2004-03-17 David Carlton <carlton@kealia.com>
6798
6799 * NEWS: Mention C++ nested types and namespaces
6800
6801 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6802
6803 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6804 and "Regressions since gdb 5.3.". Add known regressions since
6805 gdb 6.0.
6806
6807 2004-03-16 David Carlton <carlton@kealia.com>
6808
6809 * dwarf2read.c (process_structure_scope): Process children even
6810 when we're a declaration.
6811
6812 2004-03-16 Andrew Cagney <cagney@redhat.com>
6813
6814 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6815 * blockframe.c (find_pc_partial_function)
6816 (find_pc_sect_partial_function): Merge into a single
6817 find_pc_partial_function.
6818
6819 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6820
6821 * i386bsd-nat.c: s/regno/regnum/g.
6822 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6823 FP0_REGNUM.
6824 (store_inferior_registers): Likewise.
6825
6826 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6827
6828 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6829 of i387_fill_fsave.
6830 (store_inferior_registers): Call i387_collect_fsave and
6831 i387_collect_fxsave instead of i387_fill_fsave and
6832 i387_fill_fxsave.
6833
6834 2004-03-15 Andrew Cagney <cagney@redhat.com>
6835
6836 * Makefile.in (frame-unwind.o): Update dependencies.
6837 * frame-unwind.c: Include "gdb_obstack.h".
6838 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6839 parameter.
6840 (append_predicate): Delete function.
6841 (struct frame_unwind_table_entry): New structure.
6842 (struct frame_unwind_table): Replace "sniffer" with "head" and
6843 "tail".
6844 (frame_unwind_append_sniffer): Update.
6845 (frame_unwind_find_by_frame): Update.
6846 (_initialize_frame_unwind): Registe frame_unwind_init using
6847 gdbarch_data_register_pre_init.
6848
6849 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6850
6851 * i386bsd-nat.c: Update copyright year.
6852 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6853 define unconditionally.
6854
6855 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6856
6857 * i387-tdep.h (i387_collect_fsave): New prototype.
6858 * i387-tdep.c (i387_collect_fsave): New function containing most
6859 of the code from i387_fill_fsave.
6860 (i387_fill_fsave): Call i387_collect_fsave.
6861
6862 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6863
6864 * i386-linux-tdep.c: Update copyright year.
6865 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6866 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6867 svr4_ilp32_link_map_offsets instead of
6868 i386_linux_svr4_fetch_link_map_offsets.
6869
6870 2004-03-15 David Carlton <carlton@kealia.com>
6871
6872 Fix for PR c++/1553:
6873 * dwarf2read.c (read_structure_type): Determine type name by
6874 calling determine_class_name.
6875 (determine_class_name): New.
6876 (determine_prefix): Look at TYPE_TAG_NAME and call
6877 determine_class_name when appropriate.
6878 (determine_prefix_aux, class_name): Delete.
6879 (read_namespace): Set die->type.
6880
6881 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6882
6883 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6884 unused macro definition. The definition in target.h (or perhaps
6885 elsewhere) takes precedence.
6886
6887 2004-03-15 Andrew Cagney <cagney@redhat.com>
6888
6889 * ppc-tdep.h: Update copyright.
6890 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6891 function signatures to match "regsets.h".
6892 * ppc-linux-tdep.c: Include "regset.h".
6893 (ELF_GREGSET_SIZE): Delete.
6894 (right_supply_register): New function.
6895 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6896 using right_supply_register.
6897 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6898 functions.
6899 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6900 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6901 (_initialize_ppc_linux_tdep): Do not register
6902 ppc_linux_regset_core_fns.
6903 (ppc_linux_regset_from_core_section): Replace
6904 fetch_core_registers.
6905 (ppc_linux_regset_core_fns): Delete.
6906 * ppc-linux-nat.c: (right_fill_reg): New function.
6907 (supply_gregset): Update call to ppc_linux_supply_gregset.
6908 (fill_gregset): Clear the register set, use right_fill_reg.
6909 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6910 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6911
6912 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6913 unsigned.
6914
6915 2004-03-15 Andrew Cagney <cagney@redhat.com>
6916
6917 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6918 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6919 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6920 and register_gdbarch_data.
6921 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6922 (struct gdbarch_data): Replace "init" by "pre_init" and
6923 "post_init".
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6926 with"obstack", use OBSTACK_ZALLOC.
6927 (dwarf2_frame_ops): Delete.
6928 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6929 (dwarf2_frame_init_reg): Use gdbarch_data.
6930 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6931 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6932 (_initialize_svr4_solib): Update.
6933 * user-regs.c (_initialize_user_regs): Update.
6934 * reggroups.c (_initialize_reggroup): Update.
6935 * regcache.c (_initialize_regcache): Update.
6936 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6937 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6938 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6939 * frame-unwind.c (_initialize_frame_unwind): Update.
6940 * frame-base.c (_initialize_frame_base): Update.
6941 * user-regs.c (user_reg_add): Update.
6942 * reggroups.c (reggroup_add): Update.
6943 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6944 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6945 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6946 * frame-base.c (frame_base_table): Update.
6947 * remote.c (_initialize_remote): Update.
6948 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6949
6950 2004-03-15 Andrew Cagney <cagney@redhat.com>
6951
6952 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6953
6954 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6955
6956 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6957 * frv-linux-tdep.c: New file.
6958 * frv-tdep.c (struct gdbarch_tdep): Add new field
6959 ``sigcontext_reg_addr''.
6960 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6961 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6962 (frv_sigramp_frame_sniffer): New functions.
6963 (frv_sigtramp_frame_unwind): New static global.
6964 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6965 sniffers.
6966 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6967 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6968
6969 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6970
6971 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6972 but not via a call to error(), when unable to read memory.
6973
6974 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6975
6976 * frv-tdep.c (frv_call_dummy_words): Delete.
6977 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6978
6979 2004-03-15 Andrew Cagney <cagney@redhat.com>
6980
6981 * infrun.c (handle_step_into_function, step_over_function): Only
6982 update and use STEP_FRAME_ID when the system is using legacy
6983 frames. Update comments.
6984
6985 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6986
6987 * amd64-linux-tdep.h: Remove file.
6988 * amd64-linux-tdep.c: Don't include "inferior.h" and
6989 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6990 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6991 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6992 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6993 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6994 macros.
6995 (user_to_gdb_regmap): Remove variable.
6996 (amd64_linux_gregset_reg_offset): New variable.
6997 (amd64_core_fns): Remove variable.
6998 (fetch_core_registers): Remove function.
6999 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7000 functions.
7001 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7002 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7003 * Makefile.in (amd64_linux_tdep_h): Remove.
7004 (amd64-linux-nat.o): Update dependencies.
7005 (amd64-linux-tdep.o): Update dependencies.
7006
7007 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7008 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7009 functions.
7010 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7011
7012 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7013 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7014
7015 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7016
7017 * dwarf2read.c (read_structure_type): Rename from
7018 read_structure_scope. Don't create a symbol or call process_die.
7019 Return immediately if die->type is set. Call read_type_die before
7020 dwarf2_add_member_fn.
7021 (process_structure_scope): New function.
7022 (read_enumeration_type, process_enumeration_scope): New functions,
7023 broken out from read_enumeration. Don't create the enumeration
7024 type if it has already been created.
7025 (read_enumeration): Removed.
7026 (process_die): Call read_structure_type, process_structure_scope,
7027 read_enumeration_type, and process_enumeration_scope. Just call
7028 new_symbol for base and subrange types. Add a comment about other
7029 type dies.
7030 (read_type_die): Call read_enumeration_type.
7031 (add_partial_structure, new_symbol): Update comments.
7032
7033 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7034
7035 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7036
7037 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7038
7039 * tui/tui-win.h (tui_get_cmd_list): Declare.
7040 * tui/tui-win.c (tui_command): New function.
7041 (tui_get_cmd_list): New function.
7042 (_initialize_tui_win): Moved initialization of tui command in
7043 tui_get_cmd_list.
7044
7045 * tui/tui-data.c (init_content_element): Setup new data members.
7046 (init_win_info): Likewise.
7047 (free_content_elements): Free it.
7048 * tui/tui-data.h (struct tui_data_element): Store the register
7049 content to print.
7050 (struct tui_data_info): Keep the current register group.
7051
7052 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7053
7054 * tui/tui-regs.h (tui_show_registers): Update prototype.
7055 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7056 (tui_resize_all): No need to calculate anything for register window.
7057 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7058 (tui_set_register_element, tui_set_general_regs_content): Remove.
7059 (tui_set_special_regs_content): Remove.
7060 (tui_set_general_and_special_regs_content): Remove.
7061 (tui_set_float_regs_content): Remove.
7062 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7063 (tui_set_regs_content): Remove.
7064 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7065 (tui_v_show_registers_command_support): Remove.
7066 (tui_show_registers): Use a reggroup to specify the registers to show.
7067 (tui_show_register_group): New function.
7068 (tui_display_registers_from): Compute the layout of register window
7069 and refresh with new API; be sure to delete old register windows.
7070 (tui_check_register_values): Update to use tui_get_register and
7071 tui_display_data.
7072 (tui_display_register): Just refresh the register window part.
7073 (tui_register_format): Format registers and save in tui_data_element.
7074 (tui_get_register): New to combine tui_reg_value_has_changed and
7075 tui_get_register_raw_value; fix to use the new gdb API.
7076 (tui_show_float_command): Renamed tui_reg_float_command.
7077 (tui_show_general_command): Renamed tui_reg_general_command.
7078 (tui_show_special_command): Renamed tui_reg_system_command.
7079 (_initialize_tui_regs): Remove unused commands.
7080
7081 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7082
7083 * NEWS (New native configurations): Mention OpenBSD/amd64.
7084
7085 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7086 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7087 Remove defines.
7088 * config/i386/nm-fbsd64.h: Likewise.
7089 * config/i386/nm-obsd.h: Likewise.
7090 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7091 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7092
7093 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7094
7095 * frv-tdep.c (set_variant_scratch_registers): New function.
7096 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7097 New constants.
7098
7099 From Richard Sandiford <rsandifo@redhat.com>:
7100 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7101
7102 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7103
7104 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7105 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7106 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7107 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7108 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7109 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7110 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7111 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7112 definitions from frv-tdep.c to frv-tdep.h.
7113
7114 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7115
7116 Add shared library support for FR-V FDPIC ABI:
7117 * Makefile.in (solib-frv.o): Add dependencies.
7118 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7119 New functions.
7120 (frv_push_dummy_call): Add support for FDPIC ABI.
7121 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7122 for FDPIC ABI.
7123 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7124 (frv_fdpic_find_canonical_descriptor): Declare.
7125 * solib-frv.c: New file.
7126 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7127 * config/frv/tm-frv.h (solib.h): Include.
7128
7129 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7130
7131 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7132 (frv-tdep.o): Update dependencies.
7133 * frv-tdep.h: New file.
7134 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7135 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7136 constants.
7137 (struct gdbarch_tdep): Add new member ``frv_abi''.
7138 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7139 functions.
7140 (new_variant): Set ``frv_abi'' field.
7141 (gdb_arch_init): Detect FDPIC executables.
7142
7143 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7144
7145 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7146 wrapper.
7147
7148 2004-03-11 Andrew Cagney <cagney@redhat.com>
7149
7150 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7151
7152 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7153
7154 * solist.h (master_so_list): New function.
7155 * solib.c (master_so_list): Likewise.
7156 * solib-svr4.c (enable_break): Iterate over so_list entries
7157 obtained from master list instead of entries obtained directly
7158 via svr4_current_sos().
7159
7160 2004-03-10 Ben Elliston <bje@gnu.org>
7161
7162 * MAINTAINERS: Update my mail address.
7163
7164 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7165
7166 * remote-m32r-sdi.c: Support hardware watchpoint.
7167
7168 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7169
7170 * user-regs.c: Update copyright years.
7171 (struct user_regs): Rename to gdb_user_regs.
7172 (append_user_reg, builtin_user_regs, user_regs_init)
7173 (user_reg_add, user_reg_map_name_to_regnum)
7174 (usernum_to_user_reg): Update.
7175
7176 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7177
7178 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7179 (skip_children): New functions.
7180 (locate_pdi_sibling): Call skip_children.
7181
7182 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7183
7184 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7185 * gdbtypes.c (check_typedef): Update comments.
7186
7187 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7188
7189 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7190 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7191 pointer. Update comment about comp_unit_head.
7192 (struct abbrev_info): Shorten two int flags.
7193 (dwarf_alloc_abbrev): Take a CU argument.
7194 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7195 each time through the loop. Update cleanup argument.
7196 (psymtab_to_symtab_1): Update cleanup call.
7197 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7198 abbrev_obstack.
7199 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7200 Just call obstack_free and clear the pointer.
7201
7202 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * infrun.c (handle_inferior_event): Remove short-circuit code for
7205 events in a different thread.
7206
7207 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7208
7209 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7210 print the whole transfer.
7211 (initialize_targets): Update description of "set debug target".
7212
7213 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7214
7215 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7216
7217 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7218
7219 * MAINTAINERS (write after approval): Add myself.
7220
7221 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7222
7223 * sh-tdep.c (sh_print_registers_info): Use for loop.
7224 Don't skip multiple registers when a float register is encountered.
7225
7226 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7227
7228 Fix PR tdep/1291.
7229 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7230 to official SH documentation.
7231
7232 2004-03-07 Andrew Cagney <cagney@redhat.com>
7233
7234 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7235 unused function.
7236
7237 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7238
7239 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7240 (arm_get_next_pc): Handle BX and BLX.
7241
7242 2004-03-07 Andrew Cagney <cagney@redhat.com>
7243
7244 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7245 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7246 HPPA_SP_REGNUM.
7247 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7248 (hppa_target_read_fp): Delete.
7249 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7250 register_virtual_size, max_register_raw_size,
7251 max_register_virtual_size, register_byte, register_size,
7252 target_read_fp, fp_regnum, and register_bytes. Set register_type
7253 instead of register_virtual_type.
7254 (hppa32_register_type, hppa64_register_type): Replace
7255 hppa32_register_virtual_type and hppa64_register_virtual_type.
7256 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7257 (HPPA_FP_REGNUM): Define.
7258
7259 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7260
7261 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7262 (pa_do_registers_info): Delete.
7263 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7264 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7265 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7266
7267 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7268 GDB_TARGET_IS_HPPA code.
7269 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7270 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7271 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7272 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7273 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7274 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7275 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7276 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7277 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7278 (hppa_frameless_function_invocation, hppa64_store_return_value)
7279 (hppa_store_struct_return, hppa64_extract_return_value)
7280 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7281 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7282 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7283 (find_proc_framesize, deposit_21, restore_pc_queue)
7284 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7285 (rp_saved, pc_in_linker_stub): Delete.
7286
7287 Unconditionally enable 64-bit frame and ABI code.
7288 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7289 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7290 push_dummy_frame, fix_call_dummy, push_arguments,
7291 call_dummy_location, extract_return_value, use_struct_convention,
7292 store_return_value, store_struct_return, saved_pc_after_call,
7293 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7294 frame_chain, frame_chain_valid, frameless_function_invocation,
7295 frame_saved_pc, and pop_frame.
7296
7297 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7298 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7299 (hppa_gdbarch_init): Do not set PC_REGNUM.
7300
7301 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7302
7303 * config/alpha/tm-fbsd.h: Remove file.
7304 * config/alpha/fbsd.mt: Tweak comment.
7305 (TM_FILE): Set to tm-alpha.h.
7306
7307 2004-03-05 Andrew Cagney <cagney@redhat.com>
7308
7309 * infrun.c (step_over_function): When non-legacy code, and no
7310 step_frame_id, use the unwinder to get the caller's frame ID.
7311
7312 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7313
7314 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7315 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7316 bfd_arch_unknown. Adjust comment.
7317
7318 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7319 * i386obsd-tdep.c: Correct spelling in comment.
7320 * i386nbsd-tdep.c: Correct spelling in comment.
7321 * sparc-tdep.c: Correct spelling in comments.
7322
7323 2004-03-05 David Carlton <carlton@kealia.com>
7324
7325 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7326 bug.
7327
7328 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7329
7330 * sparc-tdep.c: Fix typo in comment.
7331
7332 2004-03-04 J. Brobecker <brobecker@gnat.com>
7333
7334 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7335
7336 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7337
7338 * dwarf2read.c: Add comment describing memory lifetimes.
7339 (struct dwarf2_pinfo): Update comment.
7340 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7341 (read_enumeration, new_symbol): Don't use obsavestring.
7342
7343 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7344
7345 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7346 instead of amd64_fill_fxsave.
7347 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7348 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7349
7350 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7351 Reorganize code a bit.
7352
7353 2004-03-04 Orjan Friberg <orjanf@axis.com>
7354
7355 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7356 when the frame pointer is pushed. Don't set the frame pointer's
7357 address on the stack unless it's actually located there.
7358 Set the SRP's address on the stack correctly when the PC is still in
7359 the prologue.
7360 (cris_return_value): New function.
7361 (cris_gdbarch_init): Clear deprecated store_return_value,
7362 extract_return_value.
7363
7364 2004-03-02 Jim Blandy <jimb@redhat.com>
7365
7366 * stabsread.c (reg_value_complaint): The maximum register number
7367 is one less than the number of registers.
7368
7369 2004-03-02 Andrew Cagney <cagney@redhat.com>
7370
7371 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7372 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7373 trailing comma and redundant assignment of I386_ST0_REGNUM.
7374 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7375 32-bit segment registers.
7376
7377 2004-03-01 Andrew Cagney <cagney@redhat.com>
7378
7379 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7380 use frame_relative_level and get_next_frame.
7381
7382 2004-02-29 Andrew Cagney <cagney@redhat.com>
7383
7384 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7385 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7386 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7387 Delete macro.
7388
7389 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7390
7391 * inflow.c (terminal_inferior): Don't give up the terminal if we
7392 previously couldn't get the inferior's terminal state.
7393
7394 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7395
7396 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7397 PC_REGNUM.
7398
7399 2004-02-28 Andrew Cagney <cagney@redhat.com>
7400
7401 * NEWS: Refer to GDB 6.1.
7402 * README: Refer to GDB 6.1.
7403 * PROBLEMS: Refer to GDB 6.1.
7404
7405 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7406
7407 * thread-db.c (disable_thread_signals): Remove unused function.
7408
7409 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7410
7411 * amd64-nat.c: Include "gdb_string.h".
7412 (amd64_collect_native_gregset): Zero-extend the 32-bit
7413 general-purpose registers and %eip.
7414
7415 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7416 * amd64-tdep.c (amd64_collect_fxsave): New function.
7417 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7418
7419 * i387-tdep.h: Update copyright year.
7420 (i387_collect_fxsave): New prototype.
7421 * i387-tdep.c: Update copyright year.
7422 (i387_collect_fxsave): New function containing most of the code
7423 from i387_fill_fxsave.
7424 (i387_fill_fxsave): Call i387_collect_fxsave.
7425
7426 2004-02-28 Andrew Cagney <cagney@redhat.com>
7427
7428 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7429 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7430
7431 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7432
7433 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7434
7435 2004-02-28 Andrew Cagney <cagney@redhat.com>
7436
7437 * utils.c: Use "", instead of <>, to include readline.
7438 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7439 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7440 * source.c, solib.c, exec.c, event-top.c: Ditto.
7441 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7442 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7443 * Makefile.in: Update all dependencies.
7444 (readline_tilde_h, readline_history_h): Define.
7445 (readline_headers): Delete.
7446
7447 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7448
7449 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7450 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7451 "config/i386/tm-lx64.h".
7452
7453 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7454 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7455 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7456
7457 2004-02-28 Andrew Cagney <cagney@redhat.com>
7458
7459 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7460
7461 * breakpoint.c (_initialize_breakpoint): Use
7462 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7463 Add help to show command.
7464
7465 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7466
7467 * i386-nat.c: Reformat to be closer to coding standards.
7468 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7469 `retval'. Make variables `align' and `size' local to while-loop.
7470 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7471 (_initialize_i386_nat): New prototype.
7472
7473 * tui/tui.c: Include <readline/readline.h> instead of
7474 "readline/readline.h". Include it after <term.h> and
7475 "gdb_curses.h".
7476
7477 2004-02-27 Andrew Cagney <cagney@redhat.com>
7478
7479 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7480 the new frame unwind code.
7481 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7482 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7483 PCOQ_HEAD_REGNUM.
7484
7485 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7486 "return_value" and "push_dummy_call".
7487 (hppa32_use_struct_convention): Delete unused function.
7488 (hppa32_store_return_value): Delete unused function.
7489 (hppa32_extract_return_value): Delete unused function.
7490 (hppa32_stack_align): Delete function.
7491
7492 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7493
7494 * coffread.c (enter_linenos): Don't let rawptr reference memory
7495 outside linetab[]'s limits.
7496
7497 2004-02-27 Andrew Cagney <cagney@redhat.com>
7498
7499 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7500 inferior stack space - the stack needs to grow upwards.
7501 (hppa32_frame_align): New function.
7502 (hppa64_frame_align): Replace hppa_frame_align.
7503 (hppa_gdbarch_init): Update.
7504
7505 2004-02-26 Orjan Friberg <orjanf@axis.com>
7506
7507 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7508 (dwarf2-frame.h): Include.
7509 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7510 Remove static variables related to ABI setting.
7511 (struct gdbarch_tdep): Remove cris_abi member.
7512 (struct frame_extra_info): Remove.
7513 (cris_unwind_cache, stack_item): New structs.
7514 (cris_frame_unwind, cris_frame_base): New variables.
7515 (push_stack_item, pop_stack_item)
7516 (cris_frame_unwind_cache, cris_frame_this_id)
7517 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7518 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7519 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7520 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7521 (cris_reg_struct_has_addr): New functions.
7522 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7523 (cris_frame_saved_pc, cris_saved_pc_after_call,
7524 (cris_store_struct_return, cris_frameless_function_invocation)
7525 (cris_pop_frame, cris_skip_prologue_main)
7526 (cris_abi_original_store_return_value)
7527 (cris_abi_v2_store_return_value)
7528 (cris_abi_original_extract_return_value)
7529 (cris_abi_v2_extract_return_value)
7530 (cris_abi_original_reg_struct_has_addr)
7531 (cris_abi_v2_reg_struct_has_addr)
7532 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7533 (cris_push_return_address, cris_abi_update): Remove.
7534 (_initialize_cris_tdep): Remove ABI command.
7535 (cris_dump_tdep): Ditto.
7536 (cris_gdbarch_init): Remove ABI command.
7537 Set store_return_value, extract_return_value, push_dummy_code,
7538 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7539 frame_unwind_append_sniffer, frame_base_set_default.
7540 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7541 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7542 sizeof_call_dummy_words, get_saved_register, push_return_address,
7543 pop_frame, store_struct_return, frame_init_saved_regs,
7544 init_extra_frame_info, frameless_function_invocation, frame_chain,
7545 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7546 dummy_write_sp.
7547
7548 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7549
7550 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7551 * valprint.c (print_hex_chars): Change from static to external.
7552 (print_char_chars): New function.
7553 * printcmd.c (print_scalar_formatted): For integer and enum types
7554 that are longer than LONGEST, perform processing via appropriate
7555 print_*_chars routines.
7556
7557 2004-02-26 Andrew Cagney <cagney@redhat.com>
7558
7559 * Makefile.in: Update dependencies.
7560 Changes from Ulrich Weigand,
7561 * s390-tdep.c: Include "dwarf2-frame.h".
7562 (s390_dwarf2_frame_init_reg): New function.
7563 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7564 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7565
7566 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7567
7568 * breakpoint.c (pending_break_support): New setting variable.
7569 (break_command_1): Account for pending_break_support setting
7570 when creating pending breakpoints.
7571 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7572 (_initialize_breakpoint): Add "set breakpoint pending" and
7573 "show breakpoint pending" commands.
7574
7575 2004-02-26 Andrew Cagney <cagney@redhat.com>
7576
7577 Fix PR i18n/1570.
7578 * charset.c (backslashable, backslashed, represented): Remove 'e'
7579 from list of escaped characters, not part of ISO-C.
7580
7581 2004-02-25 J. Brobecker <brobecker@gnat.com>
7582
7583 From Peter Schauer <schauer@pdf.de>:
7584 * tui/tui.c: Move system header includes after local includes.
7585 Fixes a build failure on solaris systems.
7586
7587 2004-02-25 J. Brobecker <brobecker@gnat.com>
7588
7589 * configure.in: Refine the previous change.
7590 * configure: Regenerate.
7591
7592 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7593
7594 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7595 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7596 "amd64-tdep.h" instead of "x86-64-tdep.h".
7597 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7598 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7599 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7600 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7601 and "x86-64-tdep.c".
7602 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7603 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7604 and "x86-64-tdep.c".
7605 * amd64bsd-nat.c: Update copyright year.
7606 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7607 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7608 "x86-64-tdep.h".
7609 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7610 "x86-64-tdep.h".
7611 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7612 "x86-64-tdep.h".
7613 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7614 "x86-64-tdep.h".
7615 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7616 "x86-64-tdep.h".
7617 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7618 "x86-64-tdep.h".
7619 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7620 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7621 * Makefile.in (amd64_linux_tdep_h): Renamed from
7622 x86_64_linux_tdep_h.
7623 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7624 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7625 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7626 (amd64obsd-tdep.o): Update dependencies.
7627 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7628 dependencies.
7629 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7630 dependencies.
7631 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7632 amd64-linux-nat.c amd64-linux-tdep.c.
7633 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7634 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7635 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7636 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7637 amd64-tdep.o and amd64-linux-tdep.o.
7638 (TM_FILE): Set to tm-linux64.h.
7639 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7640 (NAT_FILE): Set to nm-linux64.h.
7641 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7642 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7643 amd64-tdep.o.
7644 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7645 amd64-tdep.o.
7646 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7647 amd64-tdep.o.
7648
7649 2004-02-25 Roland McGrath <roland@redhat.com>
7650
7651 * remote.c (remote_protocol_qPart_auxv): New variable.
7652 (init_all_packet_configs): Initialize it.
7653 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7654 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7655 (show_remote_cmd): Call it.
7656 (_initialize_remote): Initialize commands.
7657 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7658 service TARGET_OBJECT_AUXV requests.
7659
7660 2004-02-25 J. Brobecker <brobecker@gnat.com>
7661
7662 * configure.in: Make sure that the wborder function is available.
7663 Otherwise, search for it in the cur_colr library.
7664 * configure: Regenerate.
7665
7666 2004-02-25 Andrew Cagney <cagney@redhat.com>
7667
7668 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7669
7670 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7671
7672 * config/i386/tm-x86-64linux.h: Tweak comments.
7673
7674 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7675
7676 * MAINTAINERS: Add self to write-after-approval list.
7677
7678 2004-02-25 Andrew Cagney <cagney@redhat.com>
7679
7680 PR cli/1566. Problem found, and fix suggested by David Allan.
7681 * cli/cli-script.c (execute_control_command): Unconditionally
7682 install a cleanup. Default "ret" to "invalid_control". Use
7683 "break" instead of "return" to escape from the switch.
7684
7685 2004-02-24 J. Brobecker <brobecker@gnat.com>
7686
7687 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7688 with the lines macro defined in term.h on AiX.
7689 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7690 a collision with the label_width macro defined in term.h on AiX.
7691
7692 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7693
7694 Committed by Kevin Buettner <kevinb@redhat.com>.
7695
7696 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7697 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7698 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7699 instead of ia64_write_pc().
7700 * ia64-linux-tdep.c (regcache.h): Include.
7701 (ia64_linux_write_pc): New function.
7702
7703 2004-02-23 Roland McGrath <roland@redhat.com>
7704
7705 * auxv.c (info_auxv_command): Fix typos in error messages.
7706
7707 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7708
7709 * x86-64-tdep.h: Tweak comment.
7710 (enum amd64_regnum): New.
7711 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7712 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7713 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7714 (X86_64_XMM1_REGNUM): Removed.
7715 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7716 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7717 prototypes for renamed functions.
7718 * x86-64-tdep.c: Fix typo.
7719 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7720 register numbers.
7721 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7722 Use constants from `enum amd64_regnum' for register numbers.
7723 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7724 (amd64_analyze_prologue, amd64_frame_cache,
7725 amd64_sigtramp_frame_cache): Use constants from `enum
7726 amd64_regnum' for register numbers.
7727 (amd64_supply_fpregset): Adjust for renamed functions.
7728 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7729 `enum amd64_regnum' for register numbers.
7730 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7731 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7732 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7733 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7734 (amd64_linux_fill_gregset): Adjust for renamed macros.
7735 (fetch_core_registers): Adjust for renamed functions.
7736 (amd64_linux_init_abi): Adjust for renamed functions.
7737 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7738 renamed functions.
7739 * amd64-nat.c: Adjust for renamed macros.
7740 * amd64bsd-nat.c (fetch_inferior_registers)
7741 (store_inferior_registers): Use constants from `enum amd64_regnum'
7742 for register numbers. Adjust for renamed variables.
7743 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7744 renamed variables.
7745 (_initialize_amd64fbsd_nat): Use constants from `enum
7746 amd64_regnum' for register numbers.
7747 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7748 `enum amd64_regnum' for register numbers.
7749 (amd64fbsd_init_abi): Adjust for renamed functions.
7750 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7751 `enum amd64_regnum' for register numbers.
7752 (amd64nbsd_init_abi): Adjust for renamed functions.
7753 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7754 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7755 `enum amd64_regnum' for register numbers.
7756 (amd64obsd_init_abi): Adjust for renamed functions.
7757 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7758
7759 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7760
7761 * breakpoint.c (print_one_breakpoint): Do not output spaces
7762 after printing <PENDING> for a pending breakpoint.
7763
7764 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7765
7766 * printcmd.c (print_scalar_formatted): Initialize val_long
7767 to remove compiler warning message.
7768
7769 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7770
7771 * defs.h (nquery, yquery): New prototypes.
7772 * breakpoint.c (break_command_1): Use new nquery interface.
7773 * utils.c (defaulted_query, nquery, yquery): New functions.
7774
7775 2004-02-23 Andrew Cagney <cagney@redhat.com>
7776
7777 * hppa-tdep.c (hppa_frame_align): New function.
7778 (hppa32_push_dummy_call): New function.
7779 (hppa64_push_dummy_call): New function.
7780 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7781 disabled.
7782
7783 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7784 FIX_CALL_DUMMY when push_dummy_call is available.
7785 (call_function_by_hand, push_dummy_code): Ditto.
7786
7787 2004-02-22 Andrew Cagney <cagney@redhat.com>
7788
7789 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7790 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7791 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7792 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7793 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7794 call_dummy_location to ON_STACK.
7795
7796 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7797
7798 * x86-64-linux-tdep.c: Tweak comment.
7799 (amd64_linux_supply_gregset): Renamed from
7800 x86_64_linux_supply_gresget.
7801 (amd64_linux_fill_gregset): Renamed from
7802 x86_64_linux_fill_gregset.
7803 (fetch_core_registers): Adjust for renamed functions.
7804 (amd64_core_fns): Renamed from x86_64_core_fns.
7805 (amd64_linux_sigtramp_start): Renamed from
7806 x86_64_linux_sigtramp_start.
7807 (amd64_linux_pc_in_sigtramp): Renamed from
7808 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7809 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7810 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7811 (amd64_linux_sigcontext_addr): Renamed from
7812 x86_64_linux_sigcontext_addr.
7813 (amd64_linux_sc_reg_offset): Renamed from
7814 x86_64_linux_sc_reg_offset.
7815 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7816 Adjust for renamed functions and variables.
7817 (_initialize_amd64_linux_tdep): Renamed from
7818 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7819 variables.
7820 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7821 Adjust for renamed functions.
7822
7823 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7824 from x86_64_linux_gregset64_reg_offset.
7825 (amd64_linux_gregset32_reg_offset): Rename from
7826 x86_64_linux_gregset64_reg_offset.
7827 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7828 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7829 (amd64_linux_dr_set_control): Renamed from
7830 x86_64_linux_dr_set_control. Adjust for renamed functions.
7831 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7832 Adjust for renamed functions.
7833 (amd64_linux_dr_reset_addr): Renamed from
7834 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7835 (amd64_linux_dr_get_status): Renamed from
7836 x86_64_linux_dr_get_status. Adjust for renamed functions.
7837 (_initialize_amd64_linux_nat): Renamed from
7838 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7839 functions.
7840 * config/i386/nm-x86-64linux.h: Update copyright year.
7841 Adjust for renamed functions.
7842
7843 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7844 amd64fbsd_sigtramp_start.
7845 (amd64fbsd_sigtramp_end_addr): Renamed from
7846 amd64fbsd_sigtramp_end.
7847 (amd64fbsd_init_abi): Adjust for renamed variables.
7848 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7849 variables.
7850 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7851 amd64fbsd_sigtramp_start.
7852 (amd64fbsd_sigtramp_end_addr): Renamed from
7853 amd64fbsd_sigtramp_end.
7854
7855 2004-02-22 Andrew Cagney <cagney@redhat.com>
7856
7857 * hppa-tdep.c (hppa32_return_value): New function.
7858 (hppa64_return_value): New function.
7859 (hppa_gdbarch_init): Set return_value; keep disabled.
7860
7861 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7862 struct-return and inferior function call methods.
7863
7864 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7865 "frame-base.h".
7866 (struct hppa_frame_cache): Define.
7867 (hppa_frame_cache, hppa_frame_this_id): New functions.
7868 (hppa_frame_prev_register): New function.
7869 (hppa_frame_unwind, hppa_frame_base): New variables.
7870 (hppa_frame_unwind_sniffer): New function.
7871 (hppa_frame_base_address, hppa_unwind_pc): New function.
7872 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7873 sniffer, and frame base sniffer; keep disabled.
7874 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7875 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7876
7877 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7878 to predicates for "seriously old code".
7879
7880 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7881 runtime if(0).
7882
7883 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7884 unsigned.
7885 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7886
7887 * config/pa/tm-hppa.h: Update copyright.
7888 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7889 (deprecated_init_frame_pc_default): Delete declaration.
7890 (hppa_frame_init_saved_regs): Delete declaration.
7891 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7892 * hppa-tdep.c: Include "arch-utils.h".
7893 (hppa_gdbarch_init): Set deprecated init_frame_pc
7894 and deprecated frame_init_saved_regs.
7895 (hppa_frame_init_saved_regs): Make static.
7896
7897 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7898
7899 Remove old 386BSD support.
7900 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7901 * configure.host: Remove i[34567]86-*-bsd*.
7902 * configure.tgt: Remove i[34567]86-*-bsd*.
7903 * i386b-nat.c: Removed.
7904 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7905 (i386b-nat.o): Remove dependencies.
7906
7907 * config/i386/i386bsd.mh: Removed.
7908 * config/i386/i386bsd.mt: Removed.
7909 * config/i386/nm-i386bsd.h: Removed.
7910 * config/i386/tm-i386bsd.h: Removed.
7911 * config/i386/xm-i386bsd.h: Removed.
7912
7913 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7914
7915 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7916 (amd64fbsd_init_abi): Set link map offsets.
7917 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7918 (amd64nbsd_init_abi): Set link map offsets.
7919 * amd64obsd-tdep.c: Include "solib-svr4.h".
7920 (amd64obsd_init_abi): Set link map offsets.
7921 * i386fbsd-tdep.c: Include "solib-svr4.h".
7922 (i386fbsd_init_abi): Set link map offsets.
7923 * i386nbsd-tdep.c: Include "solib-svr4.h".
7924 (i386nbsdelf_init_abi): Set link map offsets.
7925 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7926 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7927 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7928 solib-legacy.o and core-aout.o. Reformat.
7929 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7930 solib-svr4.o, solib-legacy.o. Reformat.
7931 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7932 * config/i386/nbsdelf.mh: Reformat.
7933 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7934 solib-svr4.o, solib-legacy.o and corelow.o.
7935 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7936 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7937 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7938 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7939 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7940 (TM_FILE): Set to tm-fbsd.h.
7941 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7942 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7943 solib-svr4.o.
7944 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7945 solib-svr4.o.
7946 (TM_FILE): Set to nm-nbsd.h.
7947 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7948 Simplify shared library support. Don't include "elf/common.h".
7949 (SVR4_SHARED_LIBS): Don't define.
7950 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7951 "solib.h".
7952 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7953 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7954 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7955 Don't include "i386/tm-i386.h". Include "solib.h".
7956 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7957 Don't include "i386/tm-i386.h".
7958 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7959 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7960 Include "i386/xm-i386.h".
7961 (HOST_LONG_DOUBLE_FORMAT): Remove.
7962
7963 Fix OpenBSD/i386 sigtramp recognition.
7964 * i386-tdep.h: Update copyright year.
7965 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7966 (i386bsd_sigtramp_end): New prototypes.
7967 (i386fbsd_sigtramp_start_addr): Renamed from
7968 i386fbsd_sigtramp_start.
7969 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7970 (i386obsd_sigtramp_start_addr): Renamed from
7971 i386obsd_sigtramp_start.
7972 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7973 * i386bsd-tdep.c: Update copyright year.
7974 (i386bsd_pc_in_sigtramp): Make public.
7975 * i386fbsd-nat.c: Update copyright year.
7976 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7977 * i386fbsd-tdep.c: Update copyright year.
7978 (i386fbsd_sigtramp_start_addr): Renamed from
7979 i386fbsd_sigtramp_start.
7980 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7981 (i386fbsdaout_init_abi): Adjust for renamed variables.
7982 * i386obsd-nat.c: Update copyright year.
7983 (_initialize_i386obsd_nat): Adjust for renamed variables.
7984 * i386obsd-tdep.c: Include "target.h".
7985 (i386obsd_page_size): New variable.
7986 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7987 (i386obsd_sigtramp_end): New functions.
7988 (i386obsd_sigtramp_start_addr): Renamed from
7989 i386obsd_sigtramp_start.
7990 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7991 (i386obsd_init_abi): Adjust for renamed variables. Set
7992 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7993 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7994
7995 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7996 trampoline change in OpenBSD kernel.
7997
7998 * amd64-nat.c: Update copyright year.
7999 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8000 architecture from REGCACHE.
8001
8002 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8003 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8004
8005 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8006
8007 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8008 i[34567]86-*-openbsd3.[0-3].
8009 * config/i386/obsdaout.mh: New file.
8010
8011 * config/i386/obsd.mh (MH_FLAGS): Remove.
8012
8013 Fix PR build/1549.
8014 * i386obsd-tdep.c: Update copyright years. Include
8015 "solib-svr4.h".
8016 (i386obsd_init_abi): Don't set regset_from_core_section here.
8017 (i386obsd_aout_init_abi): New function. Set
8018 regset_from_core_section here.
8019 (i386obsd_elf_init_abi): New function.
8020 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8021 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8022 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8023 (TM_FILE): Set to tm-nbsd.h.
8024
8025 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8026 solib-sunos.o.
8027
8028 * solib-svr4.h: Update copyright year.
8029 (svr4_ilp32_fetch_link_map_offsets)
8030 (svr4_lp64_fetch_link_map_offsets): New prototype.
8031 * solib-svr4.c: Update copyright year.
8032 (svr4_ilp32_fetch_link_map_offsets)
8033 (svr4_lp64_fetch_link_map_offsets): New function.
8034
8035 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8038 to the partial symbol table.
8039
8040 2004-02-20 J. brobecker <brobecker@gnat.com>
8041
8042 * PROBLEMS: Add description of problem documented under gdb/1560.
8043
8044 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8045
8046 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8047 comments.
8048 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8049 functions.
8050 (amd64obsd_init_abi): Reorder initializations. Use
8051 amd64obsd_r_reg_offset to initialize the general-purpose register
8052 set details. Set regset_from_core_section.
8053 (_initialize_amd64obsd_tdep): Rename from
8054 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8055 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8056 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8057
8058 * NEWS (New native configurations): Mention OpenBSD/alpha.
8059 * configure.tgt: Add alpha*-*-openbsd*.
8060 * configure.host: Add alpha*-*-openbsd*.
8061 * alphanbsd-tdep.c: Update copyright year.
8062 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8063
8064 2004-02-20 Andrew Cagney <cagney@redhat.com>
8065
8066 Fix PR tdep/1372.
8067 * configure.tgt: Delete target "none-*-*".
8068 * configure.host: Delete host "none-*-*".
8069 * config/none/none.mh: Delete file.
8070 * config/none/none.mt: Delete file.
8071 * config/none/xm-none.h: Delete file.
8072 * config/none/tm-none.h: Delete file.
8073 * config/none/nm-none.h: Delete file.
8074
8075 2004-02-19 Fred Fish <fnf@redhat.com>
8076
8077 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8078 cache->uses_fp prior to setting it.
8079
8080 2004-02-19 Fred Fish <fnf@redhat.com>
8081
8082 Fix for PR breakpoint/1558.
8083 * sh-tdep.c (IS_JSR): New macro.
8084 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8085
8086 2004-02-19 Jim Blandy <jimb@redhat.com>
8087
8088 * findvar.c (value_from_register): Doc fix.
8089
8090 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8091
8092 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8093 type being greater than sizeof of host's LONGEST. Always use
8094 unpack_long() unless format 'f' chosen.
8095
8096 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8097
8098 Committed by Elena Zannoni <ezannoni@redhat.com>
8099
8100 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8101 contains a symbol wich is the best, non-exact match for the given
8102 pc. Update comments.
8103
8104 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8105
8106 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8107 macro, which was part of the now removed Mach 3 port.
8108 * utils.c (request_quit): Ditto.
8109
8110 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8111
8112 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8113 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8114
8115 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8116
8117 Committed by Mark Kettenis <kettenis@gnu.org>.
8118
8119 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8120 Define.
8121
8122 2004-02-18 Andrew Cagney <cagney@redhat.com>
8123
8124 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8125 CONFIG_INSTALL and CONFIG_UNINSTALL.
8126 * configure: Re-generate.
8127 * interps.h (INTERP_TUI): Define.
8128 * Makefile.in: Update dependencies.
8129 (TUI): New macro.
8130 (tui-main.o): Specify dependencies.
8131 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8132 * tui/tui-main.c: New file.
8133
8134 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8135
8136 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8137 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8138 dependencies.
8139 * configure.host: Add x86_64-*-openbsd*.
8140 * configure.tgt: Add x86_64-*-openbsd*.
8141 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8142
8143 * tui/tui.c: Don't include <malloc.h>.
8144
8145 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8146 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8147 amd64nbsd-tdep.c.
8148
8149 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8150 static. Remove extraneous whitespace.
8151 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8152 static.
8153
8154 2004-02-17 Jim Blandy <jimb@redhat.com>
8155
8156 * findvar.c (value_from_register): Doc fix.
8157
8158 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8159
8160 Committed by Jim Blandy <jimb@redhat.com>.
8161
8162 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8163 CORE_ADDR as type for selectors. Correct types for GNU run time
8164 message lookup function to use double indirection.
8165 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8166 * objc-lang.h (lookup_child_selector): Adapt prototype.
8167
8168 * s390-nat.c (SUBOFF): New macro.
8169 (supply_gregset, fill_gregset): Use it to handle debugging
8170 of 32-bit exectuables running under a 64-bit kernel.
8171 * s390-tdep.c: Include "solib-svr4.h".
8172 (s390_svr4_fetch_link_map_offset): New function.
8173 (s390x_svr_fetch_link_map_offset): Likewise.
8174 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8175 * Makefile.in (s390-tdep.o): Update dependencies.
8176
8177 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8178 "frame-unwind.h".
8179 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8180 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8181 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8182 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8183 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8184 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8185 S390_SIGNAL_FRAMESIZE,
8186 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8187 (struct frame_extra_info): Remove.
8188 (s390_memset_extra_info): Remove.
8189 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8190 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8191 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8192 (is_rse): Renamed to ...
8193 (is_rsy): ... this. Support long displacements.
8194 (is_rxe): Renamed to ...
8195 (is_rxy): ... this. Support long displacements.
8196 (compute_x_addr): Support long displacements.
8197 (struct s390_prologue_data): New data type.
8198 (s390_on_stack): Change API to use struct s390_prologue_data.
8199 (s390_store): Reimplement.
8200 (s390_load): New function.
8201 (s390_get_signal_frame_info): Remove.
8202 (s390_get_frame_info): Remove, replace by ...
8203 (s390_analyze_prolog): ... this new function.
8204 (s390_check_function_end): Remove.
8205 (s390_function_start): Remove.
8206 (s390_frameless_function_invokation): Remove.
8207 (s390_is_sigreturn): Remove.
8208 (s390_init_frame_pc_first): Remove.
8209 (s390_init_frame_extra_info): Remove.
8210 (s390_frame_init_saved_regs): Remove.
8211 (s390_frame_saved_pc_nofix): Remove.
8212 (s390_frame_saved_pc): Remove.
8213 (s390_frame_chain): Remove.
8214 (s390_fp_regnum, s390_read_fp): Remove.
8215 (s390_pop_frame_regular, s390_pop_frame): Remove.
8216 (s390_saved_pc_after_call): Remove.
8217 (s390_skip_prologue): Reimplement.
8218 (s390_in_function_epilogue_p): Support long displacements.
8219 (struct s390_unwind_cache): New data structure.
8220 (s390_frame_unwind_cache): New function.
8221 (s390_prologue_frame_unwind_cache): Likewise.
8222 (s390_backchain_frame_unwind_cache): Likewise.
8223 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8224 (s390_frame_unwind): Define.
8225 (s390_frame_sniffer): New function.
8226 (struct s390_pltstub_unwind_cache): New data structure.
8227 (s390_pltstub_frame_unwind_cache): New function.
8228 (s390_pltstub_frame_this_id): Likewise.
8229 (s390_pltstub_frame_prev_register): Likewise.
8230 (s390_pltstub_frame_unwind): Define.
8231 (s390_pltstub_frame_sniffer): New function.
8232 (struct s390_sigtramp_unwind_cache): New data structure.
8233 (s390_sigtramp_frame_unwind_cache): New function.
8234 (s390_sigtramp_frame_this_id): Likewise.
8235 (s390_sigtramp_frame_prev_register): Likewise.
8236 (s390_sigtramp_frame_unwind): Define.
8237 (s390_sigtramp_frame_sniffer): New function.
8238 (s390_frame_base_address, s390_local_base_address): New functions.
8239 (s390_frame_base): Define.
8240 (s390_unwind_pc, s390_unwind_sp): New function.
8241 (s390_push_dummy_call): Use new frame base location.
8242 (s390_unwind_dummy_id): Likewise.
8243 (s390_gdbarch_init): Remove calls to:
8244 set_gdbarch_frameless_function_invocation,
8245 set_gdbarch_deprecated_init_frame_pc,
8246 set_gdbarch_deprecated_frame_chain,
8247 set_gdbarch_deprecated_frame_init_saved_regs,
8248 set_gdbarch_deprecated_pop_frame,
8249 set_gdbarch_deprecated_init_extra_frame_info,
8250 set_gdbarch_deprecated_init_frame_pc_first,
8251 set_gdbarch_deprecated_target_read_fp,
8252 set_gdbarch_deprecated_frame_saved_pc,
8253 set_gdbarch_deprecated_saved_pc_after_call,
8254 set_gdbarch_deprecated_fp_regnum.
8255 Add calls to:
8256 set_gdbarch_in_solib_call_trampoline,
8257 frame_unwind_append_sniffer,
8258 frame_base_set_default,
8259 set_gdbarch_unwind_pc,
8260 set_gdbarch_unwind_sp.
8261 * Makefile.in (s390-tdep.o): Update dependencies.
8262
8263 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8264 (S390_STACK_FRAME_OVERHEAD): Remove.
8265 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8266 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8267 (s390_promote_integer_argument): Remove.
8268 (s390_cannot_extract_struct_value_address): Remove.
8269 (s390_use_struct_convention, s390_store_struct_return): Remove.
8270 (s390_extract_return_value, s390_store_return_value): Remove.
8271 (s390_return_value_convention, s390_return_value): New functions.
8272 (is_float_singleton): Handle typedefs.
8273 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8274 Remove, replace by ...
8275 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8276 s390_function_arg_integer): ... these new functions.
8277 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8278 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8279 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8280 Fill in tdep->abi.
8281 Remove calls to:
8282 set_gdbarch_deprecated_store_struct_return,
8283 set_gdbarch_deprecated_extract_return_value,
8284 set_gdbarch_deprecated_store_return_value,
8285 set_gdbarch_use_struct_convention,
8286 set_gdbarch_extract_struct_value_address,
8287 set_gdbarch_deprecated_pc_in_call_dummy,
8288 set_gdbarch_deprecated_push_arguments,
8289 set_gdbarch_deprecated_save_dummy_frame_tos,
8290 set_gdbarch_deprecated_push_return_address,
8291 set_gdbarch_deprecated_sizeof_call_dummy_words,
8292 set_gdbarch_deprecated_call_dummy_words,
8293 set_gdbarch_deprecated_dummy_write_sp.
8294 Add calls to:
8295 set_gdbarch_push_dummy_call,
8296 set_gdbarch_unwind_dummy_id,
8297 set_gdbarch_return_value.
8298
8299 * config/s390/nm-linux.h: Update comments.
8300 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8301 (STOPPED_BY_WATCHPOINT): Redefine.
8302 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8303 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8304 (s390_stopped_by_watchpoint): Likewise.
8305 (watch_area_cnt): Remove.
8306 * s390-nat.c: Update comments.
8307 (watch_area): Remove typedef.
8308 Global replace watch_area by struct watch_area.
8309 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8310 (s390_stopped_by_watchpoint): Remove pid argument,
8311 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8312 (s390_fix_watch_points): Remove pid argument,
8313 use s390_inferior_tid. Recompute area spanned by watchpoints.
8314 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8315 argument. Reimplement.
8316
8317 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8318 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8319 (FETCH_INFERIOR_REGISTERS): Define.
8320 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8321 core-regset.o.
8322 * config/s390/s390x.mt: Remove.
8323 * config/s390/tm-s390.h: Remove.
8324 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8325 (TARGET_ELF64): Remove.
8326 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8327 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8328 s390*-*-* case; always set gdb_target to s390.
8329 * regformats/reg-s390.dat: Remove control registers.
8330 * regformats/reg-s390x.dat: Likewise.
8331 * s390-tdep.h: New file.
8332 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8333 Include "inferior.h" and "s390-tdep.h".
8334 Remove private definition of offsetof.
8335 (s390_register_u_addr): Remove.
8336 (regmap_gregset, regmap_fpregset): Define.
8337 (supply_gregset, fill_gregset): Reimplement.
8338 (supply_fpregset, fill_fpregset): Likewise.
8339 (s390_inferior_tid): New function.
8340 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8341 (fetch_inferior_registers, store_inferior_registers): Likewise.
8342 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8343 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8344 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8345 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8346 (struct gdbarch_tdep): Define.
8347 (struct s390_register_info): Define.
8348 (s390_register_info): New variable.
8349 (s390_register_name): Reimplement.
8350 (s390_register_type): New function.
8351 (s390_register_raw_size, s390x_register_raw_size): Remove.
8352 (s390_cannot_fetch_register): Remove.
8353 (s390_register_byte): Remove.
8354 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8355 (s390_dwarf_regmap): New variable.
8356 (s390_dwarf_reg_to_regnum): New function.
8357 (s390_stab_reg_to_regnum): Remove.
8358 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8359 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8360 (s390_convert_register_p): Likewise.
8361 (s390_register_to_value, s390_value_to_register): Likewise.
8362 (s390_register_reggroup_p): Likewise.
8363 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8364 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8365 (s390_supply_regset, s390_regset_from_core_section): New functions.
8366 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8367 (S390_FPR_SIZE): Likewise.
8368 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8369 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8370 (S390_NUM_GPRS): Move here from tm-s390.h.
8371 (S390_NUM_FPRS): Likewise.
8372 (s390_in_function_epilogue_p): New function.
8373 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8374 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8375 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8376 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8377 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8378 Remove calls to:
8379 set_gdbarch_deprecated_max_register_raw_size,
8380 set_gdbarch_deprecated_max_register_virtual_size,
8381 set_gdbarch_deprecated_register_byte,
8382 set_gdbarch_cannot_fetch_register,
8383 set_gdbarch_cannot_store_register,
8384 set_gdbarch_deprecated_register_size,
8385 set_gdbarch_deprecated_register_raw_size,
8386 set_gdbarch_deprecated_register_virtual_size,
8387 set_gdbarch_deprecated_register_virtual_type,
8388 set_gdbarch_deprecated_register_bytes.
8389 Add calls to:
8390 set_gdbarch_num_pseudo_regs,
8391 set_gdbarch_register_type,
8392 set_gdbarch_convert_register_p,
8393 set_gdbarch_register_to_value,
8394 set_gdbarch_value_to_register,
8395 set_gdbarch_register_reggroup_p,
8396 set_gdbarch_regset_from_core_section,
8397 set_gdbarch_pseudo_register_read,
8398 set_gdbarch_pseudo_register_write,
8399 set_gdbarch_in_function_epilogue_p.
8400 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8401 (s390_tdep_h): New variable.
8402
8403 2004-02-17 Jim Blandy <jimb@redhat.com>
8404
8405 * findvar.c (value_from_register): If the type has no length, just
8406 return an acceptable value --- don't report an internal error.
8407
8408 * stabsread.c (read_type): If we find any type numbers that are
8409 forward references, complain if the references aren't resolved by
8410 the time we're finished reading.
8411 (cleanup_undefined_types): Make error message more appropriate for
8412 a complaint.
8413
8414 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8415
8416 * Makefile.in (defs_h): Remove dependency on progress_h.
8417 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8418 progress.h.
8419 * main.c (captured_main): Delete use of START_PROGRESS and
8420 END_PROGRESS.
8421
8422 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8423
8424 * objfiles.c (terminate_minimal_symbol_table): Add back
8425 initialization of MSYMBOL_TYPE.
8426
8427 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8428
8429 Committed by Andrew Cagney.
8430 * Makefile.in (ia64_tdep_h): New macro.
8431 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8432 (ia64-tdep.o): Likewise.
8433 * ia64-tdep.h: New file.
8434 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8435 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8436 (ia64_aix_sigcontext_register_address): Likewise.
8437 (ia64_linux_getunwind_table): Delete declaration.
8438 * ia64-linux-tdep.c: Likewise.
8439
8440 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8441
8442 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8443 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8444 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8445
8446 2004-02-17 Andrew Cagney <cagney@redhat.com>
8447
8448 * symtab.c (skip_prologue_using_sal): New function.
8449 * symtab.h (skip_prologue_using_sal): Declare.
8450 * frv-tdep.c: Include "symtab.h".
8451 (skip_prologue_using_sal): Delete function.
8452 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8453 * rs6000-tdep.c (refine_prologue_limit): Mention
8454 skip_prologue_using_sal.
8455 * ia64-tdep.c (refine_prologue_limit): Ditto.
8456 * Makefile.in: Update dependencies.
8457
8458 2004-02-16 Andrew Cagney <cagney@redhat.com>
8459
8460 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8461 START_INFERIOR_TRAPS_EXPECTED.
8462 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8463 START_INFERIOR_TRAPS_EXPECTED.
8464 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8465 Delete macro.
8466 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8467 macro, moved to "nm-osf.h". Update copyright.
8468 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8469 update copyright.
8470
8471 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8472 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8473 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8474 frameless_look_for_prologue.
8475 * frame.h (legacy_frameless_look_for_prologue): Rename
8476 frameless_look_for_prologue.
8477 * gdbarch.h, gdbarch.c: Re-generate.
8478 * sh64-tdep.c (sh64_gdbarch_init): Update.
8479 * sh-tdep.c (sh_gdbarch_init): Update.
8480 * s390-tdep.c (s390_gdbarch_init): Update.
8481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8482 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8483 * m68k-tdep.c (m68k_gdbarch_init): Update.
8484 (delta68_frame_args_address): Update.
8485 * m32r-tdep.c (m32r_gdbarch_init): Update.
8486 * hppa-tdep.c (hppa_gdbarch_init): Update.
8487 * h8300-tdep.c (h8300_gdbarch_init): Update.
8488 * frv-tdep.c (frv_gdbarch_init): Update.
8489 (frv_frameless_function_invocation): Update.
8490 * cris-tdep.c (cris_gdbarch_init): Update.
8491 (cris_frameless_function_invocation): Update.
8492 * avr-tdep.c (avr_gdbarch_init): Update.
8493 * arm-tdep.c (arm_gdbarch_init): Update.
8494 * stack.c (frame_info): Update, call predicate.
8495 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8496 * frame.c (legacy_get_prev_frame): Update, call predicate..
8497 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8498 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8499 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8500 invocation.
8501 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8502 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8503 * vax-tdep.c (vax_gdbarch_init): Ditto.
8504
8505 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8506 function.
8507
8508 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8509
8510 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8511 initializations.
8512
8513 2004-02-16 Andrew Cagney <cagney@redhat.com>
8514
8515 * tui/tui-windata.c: Include "gdb_string.h".
8516 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8517 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8518 * Makefile.in: Update dependencies.
8519
8520 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8521
8522 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8523 * infrun.c: Include "gdb_assert.h".
8524 (singlestep_ptid, saved_singlestep_ptid)
8525 (stepping_past_singlestep_breakpoint): New variables.
8526 (resume): Set singlestep_ptid. Check for singlestep thread
8527 hop.
8528 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8529 (handle_inferior_event): Handle singlestep thread hop.
8530
8531 2004-02-16 Andrew Cagney <cagney@redhat.com>
8532
8533 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8534 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8535 (dwarf2_frame_init_reg): Ditto.
8536
8537 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8538 suggested by Joshua Neuheisel
8539
8540 * configure.in: Always check for curses, including pdcurses.
8541 Warn, instead of error, when no curses are found. Enable TUI when
8542 curses is available.
8543 * configure: Re-generate.
8544
8545 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8546
8547 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8548 sh_sh4_register_convert_to_virtual.
8549 (sh_register_convert_to_raw): Rename from
8550 sh_sh4_register_convert_to_raw.
8551 (sh_pseudo_register_read): Accomodate above name change.
8552 (sh_pseudo_register_write): Ditto.
8553
8554 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8555
8556 * sh-tdep.c (sh_generic_register_name): Remove.
8557 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8558
8559 2004-02-15 Andrew Cagney <cagney@redhat.com>
8560
8561 * configure.in (build_warnings): Add -Wunused-function.
8562 * configure: Re-generate.
8563
8564 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8565 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8566
8567 * procfs.c (procfs_init_inferior): Assume that
8568 START_INFERIOR_TRAPS_EXPECTED is defined.
8569 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8570 * config/ns32k/tm-nbsd.h: Delete file,
8571 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8572
8573 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8574 * config/vax/tm-vax.h: Delete file.
8575
8576 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8577 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8578 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8579 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8580 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8581 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8582 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8583
8584 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8585
8586 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8587 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8588 (struct dwarf2_frame_ops): New.
8589 (dwarf2_frame_default_init_reg): New function, based on
8590 dwarf2_frame_init_reg.
8591 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8592 (dwarf2_frame_init_reg): Call architecture-specific function.
8593 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8594 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8595 instead of dwarf2_frame_data.
8596 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8597 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8598
8599 2004-02-15 Andrew Cagney <cagney@redhat.com>
8600
8601 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8602 register_gdbarch_swap.
8603 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8604 * f-lang.c (_initialize_f_language): Update, use
8605 DEPRECATED_REGISTER_GDBARCH_SWAP.
8606 * remote.c (_initialize_remote): Ditto.
8607 * regcache.c (_initialize_regcache): Ditto.
8608 * parse.c (_initialize_parse): Ditto.
8609 * infrun.c (_initialize_infrun): Ditto.
8610 * mi/mi-main.c (_initialize_mi_main): Ditto.
8611 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8612
8613 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8614 poking .cacheable directly.
8615 * symfile.c (symfile_bfd_open): Ditto.
8616
8617 * Makefile.in: Update all dependencies.
8618
8619 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8620 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8621 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8622 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8623 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8624
8625 2004-02-14 Andrew Cagney <cagney@redhat.com>
8626
8627 * arch-utils.c (legacy_convert_register_p): Check
8628 DEPRECATED_REGISTER_CONVERTIBLE_P.
8629 * findvar.c (value_of_register): Ditto.
8630
8631 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8632 * gdbarch.h, gdbarch.c: Re-generate.
8633 * arch-utils.c (deprecated_register_convertible_not): Delete.
8634 * arch-utils.h (deprecated_register_convertible_not): Delete.
8635 * mi/mi-main.c (get_register): Update. Update copyright.
8636 * infcmd.c (default_print_registers_info): Update.
8637
8638 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8639 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8640 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8641 * gdbarch.h, gdbarch.c: Re-generate.
8642 * frame.c (deprecated_get_next_frame_hack): Delete function.
8643 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8644 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8645 Update.
8646 * infcall.c (call_function_by_hand): Update.
8647
8648 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8649
8650 * symfile.c (init_entry_point_info, entry_point_address): Move
8651 from here...
8652 * objfiles.c (init_entry_point_info, entry_point_address):..to
8653 here.
8654 * symfile.h (init_entry_point_info, entry_point_address): Remove
8655 prototypes.
8656 * objfiles.h (init_entry_point_info, entry_point_address):Add
8657 prototypes.
8658 * cris-tdep.c: Remove include of symfile.h. Add include of
8659 objfiles.h.
8660 * infcall.c: Ditto.
8661 * mcore-tdep.c: Ditto.
8662 * mn10300-tdep.c: Ditto.
8663 * sh64-tdep.c: Ditto.
8664 * v850-tdep.c: Ditto.
8665 * arm-tdep.c: Remove include of symfile.h.
8666 * blockframe.c: Ditto.
8667 * coffread.c: Ditto.
8668 * dbxread.c: Ditto.
8669 * dwarf2read.c: Ditto.
8670 * dwarfread.c: Ditto.
8671 * frv-tdep.c: Ditto.
8672 * ia64-tdep.c: Ditto.
8673 * mdebugread.c: Ditto.
8674 * mipsread.c: Ditto.
8675 * rs6000-tdep.c: Ditto.
8676 * s390-tdep.c: Ditto.
8677 * sh-tdep.c: Ditto.
8678 * xstormy16-tdep.c: Ditto.
8679 * gdbarch.sh: Remove include of symfile.h.
8680 * gdbarch.c: Regenerate.
8681 * solib-irix.c (enable_break): Use entry_point_address().
8682 Add comment about include file.
8683 * xcoffread.c: Add comment about include file.
8684 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8685 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8686 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8687 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8688 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8689
8690 2004-02-13 Andrew Cagney <cagney@redhat.com>
8691
8692 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8693 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8694 copyright.
8695 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8696
8697 2004-02-12 Fred Fish <fnf@redhat.com>
8698
8699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8700 set_gdbarch_store_return_value.
8701
8702 2004-02-12 Andrew Cagney <cagney@redhat.com>
8703
8704 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8705 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8706 (interrupt_query): Ditto.
8707 (ofunc): Delete unused variable.
8708 * cris-tdep.c (cris_abi): Delete unused function.
8709 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8710 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8711 (cris_get_asr_quick_shift_steps): Ditto.
8712 (cris_skip_prologue_frameless_p): Ditto.
8713 * arm-tdep.c (arm_push_return_address): Delete unused function.
8714 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8715 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8716 * s390-tdep.c (s390_function_start): Delete unused function.
8717
8718 2004-02-12 Andrew Cagney <cagney@redhat.com>
8719
8720 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8721 gdbarch.h, gdbarch.c: Re-generate.
8722 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8723 to generic_prologue_frameless_p.
8724 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8725 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8726
8727 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * mips-linux-tdep.c: Include "frame.h".
8730 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8731 (mips_linux_skip_resolver): New functions.
8732 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8733 and set_gdbarch_in_solib_call_trampoline.
8734 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8735 to after set_gdbarch_in_solib_return_trampoline. Only set the
8736 solib hooks to mips16 functions if the OS ABI is unknown.
8737 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8738 including "config/tm-linux.h".
8739 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8740 * Makefile.in (mips-linux-tdep.o): Update.
8741
8742 2004-02-11 David Carlton <carlton@kealia.com>
8743
8744 * linespec.c (decode_compound): Only look for a class symbol when
8745 considering all but the rightmost component.
8746
8747 2004-02-11 Andrew Cagney <cagney@redhat.com>
8748
8749 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8750 abi code are are separatly grouped.
8751
8752 2004-02-11 Andrew Cagney <cagney@redhat.com>
8753
8754 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8755 * gdbarch.h, gdbarch.c: Re-generate.
8756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8757 * v850-tdep.c (v850_gdbarch_init): Update.
8758 * sh64-tdep.c (sh64_gdbarch_init): Update.
8759 * sh-tdep.c (sh_gdbarch_init): Update.
8760 * s390-tdep.c (s390_gdbarch_init): Update.
8761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8762 * mips-tdep.c (mips_gdbarch_init): Update.
8763 * mcore-tdep.c (mcore_gdbarch_init): Update.
8764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8765 * m32r-tdep.c (m32r_gdbarch_init): Update.
8766 * ia64-tdep.c (ia64_gdbarch_init): Update.
8767 * hppa-tdep.c (hppa_gdbarch_init): Update.
8768 * h8300-tdep.c (h8300_gdbarch_init): Update.
8769 * frv-tdep.c (frv_gdbarch_init): Update.
8770 * d10v-tdep.c (d10v_gdbarch_init): Update.
8771 * cris-tdep.c (cris_gdbarch_init): Update.
8772 * avr-tdep.c (avr_gdbarch_init): Update.
8773 * arm-tdep.c (arm_gdbarch_init): Update.
8774 * alpha-tdep.c (alpha_gdbarch_init): Update.
8775
8776 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8777
8778 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8779 comma.
8780 (sh_sh4al_dsp_register_name): Ditto.
8781
8782 2004-02-10 Andrew Cagney <cagney@redhat.com>
8783
8784 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8785 (mips_init_frame_pc_first): Delete function.
8786 (mips_frame_saved_pc): Delete function.
8787 (mips_frame_chain): Delete function.
8788 (mips_init_extra_frame_info): Delete function.
8789 (mips_xfer_register): Delete unused variable "reg".
8790 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8791 (mips_n32n64_return_value): Delete unused variable "reg".
8792 (mips_n32n64_return_value): Delete unused variable "pos".
8793 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8794 (mips_o32_return_value): Delete unused variable "pos".
8795 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8796 (mips_print_fp_register): Delete unused variable "namelen"
8797 (mips_print_fp_register): Delete unused variable "flt2"
8798 (get_frame_pointer): Delete function.
8799 (cached_proc_desc): Delete static variable.
8800 (mips_pop_frame): Delete function.
8801 (mips_find_saved_regs): Delete function.
8802 (mips_get_saved_register): Delete function.
8803 (mips_saved_pc_after_call): Delete function.
8804 (SIGFRAME_BASE): Delete macro.
8805 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8806 (SIGFRAME_PC_OFF): Delete macro.
8807 (SIGFRAME_REGSAVE_OFF): Delete macro.
8808 (mips_dump_tdep): Do not print deleted macro definitions.
8809
8810 2004-02-10 Andrew Cagney <cagney@redhat.com>
8811
8812 * Makefile.in (SFILES): Remove explictly listed tui files.
8813 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8814
8815 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8816
8817 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8818 to use paddr functions to format ia64 addresses and long values.
8819 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8820 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8821 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8822 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8823 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8824
8825 2004-02-10 Andrew Cagney <cagney@redhat.com>
8826
8827 * defs.h: Do not include "tui.h".
8828 * gdb_curses.h: New file.
8829 * tui/tui-hooks.h: New file.
8830 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8831 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8832 (tui_initialize_io): Delete declaration.
8833 (tui_initialize_readline: Delete redundant declaration.
8834 (struct tui_point): Delete definition.
8835 * tui/tui-data.h (struct tui_point): Define.
8836 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8837 * utils.c: Include "tui/tui.h".
8838 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8839 * printcmd.c [TUI]: Include "tui/tui.h".
8840 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8841 * tui/tui-command.c: Include "gdb_curses.h".
8842 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8843 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8844 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8845 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8846 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8847 * Makefile.in: Update all dependencies.
8848 (tui_hooks_h, gdb_curses_h): Define.
8849 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8850
8851 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8852
8853 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8854 auxf2. Add comments about some other rarely used fields.
8855
8856 2004-02-10 Andrew Cagney <cagney@redhat.com>
8857
8858 * Makefile.in (init.c): Fix script removing duplicates. Problem
8859 reported by Peter Schauer.
8860
8861 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8862
8863 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8864 obstack_specify_allocation.
8865 * objfiles.c (allocate_objfile): Ditto.
8866 * solib-sunos.c (solib_add_common_symbols)
8867 (allocate_rt_common_objfile): Ditto.
8868 * symfile.c (reread_symbols): Ditto.
8869 * gdb_obstack.h: Add comment.
8870
8871 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8872
8873 * linespec.c (decode_line_1, locate_first_half)
8874 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8875 commented out code.
8876
8877 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8878
8879 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8880 obstack_free.
8881
8882 2004-02-09 Andrew Cagney <cagney@redhat.com>
8883
8884 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8885 fails, try find_pc_section. Fix PR c++/1267.
8886 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8887 instead of find_pc_mapped_section.
8888 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8889 not default to the section containing PC. Fix PR symtab/1519.
8890
8891 2004-02-09 Andrew Cagney <cagney@redhat.com>
8892
8893 * Makefile.in (mips-tdep.o): Update dependencies.
8894 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8895 "trad-frame.h".
8896 (mips_unwind_pc): Return the pseudo PC register.
8897 (mips_unwind_dummy_id): New function.
8898 (mips16_fetch_instruction): New function.
8899 (mips32_fetch_instruction): New function.
8900 (struct mips_frame_cache): Define.
8901 (mips_mdebug_frame_cache): New function.
8902 (mips_mdebug_frame_this_id): New function.
8903 (mips_mdebug_frame_prev_register): New function.
8904 (mips_mdebug_frame_unwind): Define.
8905 (mips_mdebug_frame_sniffer): New function.
8906 (mips_mdebug_frame_base_address): New function.
8907 (mips_mdebug_frame_base): Define.
8908 (mips_mdebug_frame_base_sniffer): New function.
8909 (mips_gdbarch_init): Append unwind and base sniffers. Set
8910 unwind_dummy_id.
8911
8912 2004-02-08 Andrew Cagney <cagney@redhat.com>
8913
8914 * frame.c: Print both the register number and name.
8915
8916 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8917 and a sed into a single sed. Make .c and .o patterns more robust.
8918 (OBS): Delete.
8919 (INIT_FILES): Replace OBS with COMMON_OBS.
8920 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8921
8922 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8923
8924 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8925 the PT_WCOOKIE request.
8926
8927 2004-02-08 Andrew Cagney <cagney@redhat.com>
8928
8929 * mips-tdep.c (mips_unwind_pc): New function.
8930 (mips_gdbarch_init): Set mips_unwind_pc.
8931
8932 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8933 (get_frame_id): Allow the UNKNOWN_FRAME.
8934 (frame_register_unwind, get_frame_type): Ditto.
8935
8936 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8937 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8938 unwind_dummy_id indicates a legacy frame.
8939
8940 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8941 * configure: Re-generate.
8942
8943 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8944 methods.
8945
8946 2004-02-08 Andrew Cagney <cagney@redhat.com>
8947
8948 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8949 makefile macro.
8950 * configure: Re-generate.
8951 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8952 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8953 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8954 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8955 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8956 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8957 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8958 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8959 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8960 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8961
8962 2004-02-07 Andrew Cagney <cagney@redhat.com>
8963
8964 * Makefile.in: Update all dependencies.
8965
8966 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8967 * configure: Re-generate.
8968 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8969 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8970 (COMMON_OBS): Add "main.o" and "annotate.o".
8971 (ANNOTATE_OBS): Delete.
8972 (OBS): Remove ANNOTATE_OBS.
8973 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8974 CONFIG_INITS.
8975 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8976 against CONFIG_OBS and "main.o".
8977 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8978 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8979
8980 * tui/tui-command.c: Include "gdb_string.h", delete register
8981 attribute, use ISO-C function signatures.
8982 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8983 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8984 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8985 * tui/tui.c: Ditto.
8986
8987 * tui/tui-command.c: Change variable and function names to lower
8988 case.
8989 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8990 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8991 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8992 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8993 * tui/tui-winsource.c, tui/tui.c: Ditto.
8994
8995 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8996
8997 * buildsym.c (free_pending_blocks, finish_block)
8998 (record_pending_block, make_blockvector, end_symtab): Replace
8999 symbol_obstack with objfile_obstack.
9000 * coffread.c (process_coff_symbol, coff_read_struct_type)
9001 (coff_read_enum_type): Ditto.
9002 * cp-namespace.c (initialize_namespace_symtab)
9003 (check_one_possible_namespace_symbol): Ditto.
9004 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9005 (dwarf2_symbol_mark_computed): Ditto.
9006 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9007 * elfread.c (elf_symtab_read): Ditto.
9008 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9009 (hpread_read_enum_type, hpread_read_function_type)
9010 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9011 Ditto.
9012 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9013 (java_link_class_type): Ditto.
9014 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9015 (new_symbol): Ditto.
9016 * minsyms.c (install_minimal_symbols): Ditto.
9017 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9018 (terminate_minimal_symbol_table): Replace symbol_obstack with
9019 objfile_obstack.
9020 (free_objfile): Remove freeing of symbol_obstack.
9021 * objfiles.h: Remove symbol_obstack field.
9022 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9023 objfile_obstack.
9024 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9025 symbol_obstack.
9026 (solib_add_common_symbols): Replace symbol_obstack with
9027 objfile_obstack.
9028 * somsolib.c (som_solib_add): Ditto.
9029 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9030 (common_block_start, common_block_end): Ditto.
9031 * symfile.c (reread_symbols): Remove freeing and init of
9032 symbol_obstack.
9033 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9034 * symfile.h: Update comment.
9035 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9036 stats printing.
9037 * symtab.c (symbol_set_names): Replace symbol_obstack with
9038 objfile_obstack.
9039 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9040 Update comments.
9041 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9042 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9043 objfile_obstack.
9044
9045 2004-02-07 Andrew Cagney <cagney@redhat.com>
9046
9047 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9048 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9049 fields and variables.
9050 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9051 (m_beInvisible): Delete macro.
9052 * tui/tui-data.h: Fix case case fields and variables.
9053 (m_genWinPtrIsNull): Delete macro.
9054 (tui_win_list): Rename winList.
9055 (TUI_SRC_WIN): Rename srcWin.
9056 (TUI_DISASM_WIN): Rename disassemWin.
9057 (TUI_DATA_WIN): Rename dataWin.
9058 (TUI_CMD_WIN): Rename cmdWin.
9059 (m_genWinPtrNotNull): Delete macro.
9060 (m_winPtrIsNull): Delete macro.
9061 (m_winPtrNotNull): Delete macro.
9062 (tui_win_is_source_type): Replace m_winIsSourceType
9063 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9064 (tui_win_has_locator): Replace m_hasLocator.
9065 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9066 m_setWinHighlightOff.
9067 * tui/tui-data.c: Update references.
9068 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9069 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9070 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9071 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9072 * tui/tui-regs.h, 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 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9079 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9080 StackGhost.
9081
9082 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9083 variable `i6' to `i7'.
9084 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9085
9086 2004-02-07 Andrew Cagney <cagney@redhat.com>
9087
9088 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9089 (TuiPoint, TuiPointPtr): Ditto.
9090 (TuiStatus, TuiStatusPtr): Ditto.
9091 (TuiWinType, TuiWinTypePtr): Ditto.
9092 (struct tui_point): Rename _TuiPoint.
9093 (tui_get_low_disassembly_address): Rename
9094 tuiGetLowDisassemblyAddress.
9095 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9096 (tuiFree): Delete declaration.
9097 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9098 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9099 * tui/tui.c (tuiFree): Delete function.
9100 * cli/cli-cmds.c (disassemble_command): Update references.
9101 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9102 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9103 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9104 * tui/tui-winsource.c: Ditto.
9105
9106 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9107
9108 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9109 coffstab_build_psymtabs, elfstab_build_psymtabs)
9110 (stabsect_build_psymtabs): Replace psymbol_obstack with
9111 objfile_obstack.
9112 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9113 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9114 Ditto.
9115 * dwarfread.c (scan_compilation_units): Ditto.
9116 * elfread.c (elfstab_offset_sections): Ditto.
9117 * hppa-tdep.c (read_unwind_info): Ditto.
9118 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9119 (hpread_end_psymtab): Ditto.
9120 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9121 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9122 Ditto.
9123 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9124 * objfiles.c (add_to_objfile_sections)
9125 (build_objfile_section_table): Ditto.
9126 (allocate_objfile): Remove init of psymbol_obstack.
9127 (free_objfile): Remove freeing of psymbol_obstack.
9128 * objfiles.h (struct objfile): Remove field
9129 psymbol_obstack. Update comments.
9130 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9131 psymbol_obstack with objfile_obstack.
9132 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9133 psymbol_obstack.
9134 * somread.c (som_symfile_offsets, init_import_symbols)
9135 (init_export_symbols): Replace psymbol_obstack with
9136 objfile_obstack.
9137 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9138 * symfile.c (default_symfile_offsets, syms_from_objfile)
9139 (reread_symbols): Remove freeing and init of psymbol_obstack.
9140 (cashier_psymtab): Update comment.
9141 * symmisc.c (print_objfile_statistics): Don't report stats for
9142 psymbol obstack.
9143 * symtab.h (struct general_symbol_info, struct partial_symtab):
9144 Update comments.
9145 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9146 (xcoff_symfile_offsets): Replace psymbol_obstack with
9147 objfile_obstack.
9148
9149 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9150
9151 * objfiles.h (struct objfile): Add objfile_obstack field.
9152 Remove type_obstack field.
9153
9154 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9155 read_structure_scope read_enumeration, new_symbol): Replace
9156 type_obstack with objfile_obstack.
9157 * dwarfread.c (struct_type, enum_type): Ditto.
9158 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9159 (lookup_fundamental_type): Ditto.
9160 * gdbtypes.h (TYPE_ALLOC): Ditto.
9161 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9162 (hpread_read_doc_function_type, hpread_read_struct_type)
9163 (fix_static_member_physnames, hpread_read_array_type)
9164 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9165 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9166 (java_link_class_type): Ditto.
9167 * mdebugread.c (parse_type): Ditto.
9168 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9169 * solib-sunos.c (solib_add_common_symbols): Ditto.
9170 * stabsread.c (define_symbol, read_type, read_member_functions,
9171 read_cpp_abbrev, read_one_struct_field): Ditto.
9172 * symfile.c (reread_symbols): Ditto.
9173 * symmisc.c (print_objfile_statistics): Ditto.
9174
9175 2004-02-07 Andrew Cagney <cagney@redhat.com>
9176
9177 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9178 (tui_exec_info_content): Rename TuiExecInfoContent.
9179 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9180 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9181 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9182 (TuiList, TuiListPtr): Ditto.
9183 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9184 (TuiDataType, TuiDataTypePtr): Ditto.
9185 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9186 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9187 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9188 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9189 (TuiDataElement, TuiDataElementPtr): Ditto.
9190 (TuiWinElement, TuiWinElementPtr): Ditto.
9191 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9192 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9193 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9194 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9195 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9196 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9197 * tui/tui-command.c, tui/tui-data.c: Update references.
9198 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9199 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9200 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9201 * tui/tui-winsource.c, tui/tui.c: Ditto.
9202
9203 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9204
9205 * dwarf2-frame.h: Update copyright.
9206 (enum dwarf2_frame_reg_rule): New.
9207 (struct dwarf2_frame_state_reg): New.
9208 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9209 * dwarf2-frame.c: Update copyright.
9210 (enum dwarf2_reg_rule): Remove.
9211 (struct dwarf2_frame_state): Remove defenition of `struct
9212 dwarf2_frame_state_reg'.
9213 (read_reg): Call get_frame_arch to get the architecture instead of
9214 using CURRENT_GDBARCH.
9215 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9216 DWARF2_FRAME_.
9217 (dwarf2_frame_init_reg): New function.
9218 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9219 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9220 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9221 tags with DWARF2_FRAME_.
9222 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9223 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9224 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9225
9226 2004-02-06 Andrew Cagney <cagney@redhat.com>
9227
9228 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9229 (enum tui_data_type): Rename _TuiDataType.
9230 (struct tui_layout_def): Rename _TuiLayoutDef.
9231 (struct tui_source_element): Rename _TuiSourceElement.
9232 (struct tui_data_element): Rename _TuiDataElement.
9233 (struct tui_command_element): Rename _TuiCommandElement.
9234 (struct tui_locator_element): Rename _TuiLocatorElement.
9235 (union tui_which_element): Define.
9236 (struct tui_win_element): Rename _TuiWinElement.
9237 (struct tui_data_info): Rename _TuiDataInfo.
9238 (struct tui_source_info): Rename _TuiSourceInfo.
9239 (struct tui_command_info): Rename _TuiCommandInfo.
9240 (tui_initialize_static_data): Rename initializeStaticData.
9241 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9242 (tui_alloc_win_info): Rename allocWinInfo.
9243 (tui_init_generic_part): Rename initGenericPart.
9244 (tui_init_win_info): Rename initWinInfo.
9245 (tui_alloc_content): Rename allocContent.
9246 (tui_add_content_elements): Rename addContentElements.
9247 (tui_init_content_element): Rename initContentElement.
9248 (tui_free_window): Rename freeWindow.
9249 (tui_free_win_content): Rename freeWinContent.
9250 (tui_free_data_content): Rename freeDataContent.
9251 (tui_free_all_source_wins_content): Rename
9252 freeAllSourceWinsContent.
9253 (tui_del_window): Rename tuiDelWindow.
9254 (tui_del_data_windows): Rename tuiDelDataWindows.
9255 (tui_partial_win_by_name): Rename partialWinByName.
9256 (tui_win_name): Rename winName.
9257 (tui_current_layout): Rename currentLayout.
9258 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9259 (tui_term_height): Rename termHeight.
9260 (tui_set_term_height_to): Rename setTermHeightTo.
9261 (tui_term_width): Rename termWidth.
9262 (tui_set_term_width_to): Rename setTermWidthTo.
9263 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9264 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9265 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9266 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9267 (tui_source_windows): Rename sourceWindows.
9268 (tui_clear_source_windows): Rename clearSourceWindows.
9269 (tui_clear_source_windows_detail): Rename
9270 clearSourceWindowsDetail.
9271 (tui_clear_win_detail): Rename clearWinDetail.
9272 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9273 (tui_default_tab_len): Rename tuiDefaultTabLen.
9274 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9275 (tui_win_with_focus): Rename tuiWinWithFocus.
9276 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9277 (tui_layout_def): Rename tuiLayoutDef.
9278 (tui_win_resized): Rename tuiWinResized.
9279 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9280 (tui_next_win): Rename tuiNextWin.
9281 (tui_prev_win): Rename tuiPrevWin.
9282 (tui_add_to_source_windows): Rename addToSourceWindows.
9283 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9284 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9285 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9286 * tui/tui.c, tui/tui-data.c: Ditto.
9287 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9288 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9289
9290 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9291 (struct symtab): Declare.
9292 (tui_set_source_content): Rename tuiSetSourceContent.
9293 (tui_show_symtab_source): Rename tuiShowSource.
9294 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9295 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9296 * tui/tui-source.c: Update copyright. Update references.
9297 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9298 * tui/tui-stack.c: Update references.
9299
9300 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9301 (struct tui_win_info): Declare.
9302 (tui_scroll_forward): Rename tuiScrollForward.
9303 (tui_scroll_backward): Rename tuiScrollBackward.
9304 (tui_scroll_left): Rename tuiScrollLeft.
9305 (tui_scroll_right): Rename tuiScrollRight.
9306 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9307 (tui_resize_all): Rename tuiResizeAll.
9308 (tui_refresh_all_win): Rename tuiRefreshAll.
9309 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9310 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9311 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9312 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9313
9314 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9315 (tui_erase_data_content): Rename tuiEraseDataContent.
9316 (tui_display_all_data): Rename tuiDisplayAllData.
9317 (tui_check_data_values): Rename tuiCheckDataValues.
9318 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9319 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9320 (tui_first_data_element_no_in_line): Rename
9321 tuiFirstDataElementNoInLine.
9322 (tui_delete_data_content_windows): Rename
9323 tuiDeleteDataContentWindows.
9324 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9325 (tui_display_data_from): Rename tuiDisplayDataFrom.
9326 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9327 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9328 * tui/tui-win.c, tui/tui-regs.c: Update references.
9329 * tui/tui-layout.c, tui/tui.c: Update references.
9330
9331 * tui/tui-wingeneral.h: Update copyright.
9332 (m_allBeVisible): Delete macro.
9333 (m_allBeInvisible): Delete macro.
9334 (struct tui_gen_win_info): Declare.
9335 (struct tui_win_info): Declare.
9336 (tui_unhighlight_win): Rename unhighlightWin.
9337 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9338 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9339 (tui_make_window): Rename makeWindow.
9340 (tui_copy_win): Rename copyWin.
9341 (tui_box_win): Rename boxWin.
9342 (tui_highlight_win): Rename highlightWin.
9343 (tui_check_and_display_highlight_if_needed): Rename
9344 checkAndDisplayHighlightIfNeeded.
9345 (tui_refresh_all): Rename refreshAll.
9346 (tui_delete_win): Rename tuiDelwin.
9347 (tui_refresh_win): Rename tuiRefreshWin.
9348 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9349 (tui_make_visible, tui_make_invisible): New functions.
9350 (tui_make_all_visible, tui_make_all_invisible): New functions.
9351 (make_all_visible): Rename makeAllVisible.
9352 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9353 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9354 * tui/tui-windata.c, tui/tui-win.c: Update references.
9355 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9356 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9357
9358 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9359
9360 * proc-api.c (write_with_trace): Initialize local variable to
9361 silence compiler warning.
9362
9363 2004-02-06 Andrew Cagney <cagney@redhat.com>
9364
9365 * tui/tui-source.h: Do not include "defs.h".
9366 (struct tui_win_info): Declare.
9367 (tui_set_source_content_nil): Declare.
9368 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9369 (union tui_line_or_address): Rename _TuiLineOrAddress.
9370 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9371 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9372 (tui_update_source_window_as_is): Rename
9373 tuiUpdateSourceWindowAsIs.
9374 (tui_update_source_windows_with_addr): Rename
9375 tuiUpdateSourceWindowsWithAddr.
9376 (tui_update_source_windows_with_line): Rename
9377 tuiUpdateSourceWindowsWithLine.
9378 (tui_clear_source_content): Rename tuiClearSourceContent.
9379 (tui_erase_source_content): Rename tuiEraseSourceContent.
9380 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9381 (tui_show_source_content): Rename tuiShowSourceContent.
9382 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9383 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9384 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9385 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9386 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9387 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9388 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9389 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9390 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9391 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9392 (struct tui_win_info): Declare.
9393 * tui/tui-stack.c: Update references.
9394 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9395 * tui/tui-win.c, tui/tui-source.c: Ditto.
9396 * tui/tui.c, tui/tui-disasm.c: Ditto.
9397
9398 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9399
9400 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9401 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9402
9403 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9404
9405 * infrun.c (handle_inferior_event): Allow for breakpoint
9406 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9407 and SIGEMT. Update comments.
9408 * NEWS (Revised SPARC target): Mention support for non-executable
9409 stack.
9410
9411 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9412
9413 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9414 * inftarg.c: Update copyright year.
9415 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9416 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9417 (sparc_xfer_wcookie): New function.
9418 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9419 * Makefile.in (sparc-nat.o): Update dependencies.
9420 * config/sparc/nm-nbsd.h: Include "target.h".
9421 (NATIVE_XFER_WCOOKIE): New define.
9422 (sparc_xfer_wcookie): New prototype.
9423
9424 2004-02-04 Andrew Cagney <cagney@redhat.com>
9425
9426 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9427 SYSCALL_TRAP function.
9428 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9429
9430 2004-02-04 Andrew Cagney <cagney@redhat.com>
9431 Daniel Jacobowitz <drow@mvista.com>
9432
9433 * objfiles.h: Delete comments refering to inside_entry_func and
9434 DEPRECATED_FRAME_CHAIN_VALID.
9435 * defs.h (inside_entry_func): Update prototype..
9436 * blockframe.c (inside_entry_func): Rename to
9437 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9438 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9439
9440 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9441
9442 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9443 outside of #ifdef SOLIB_ADD region.
9444 (do_restore_lang_radix_cleanup): Ditto.
9445 (resolve_pending_breakpoint): Ditto.
9446
9447 2004-02-03 Andrew Cagney <cagney@redhat.com>
9448
9449 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9450 (process_note_abi_tag_sections): Delete unused function.
9451 (ia64_read_fp): Delete unused function.
9452 (gdbarch_extract_struct_value_address): Delete declaration.
9453
9454 2004-02-02 Andrew Cagney <cagney@redhat.com>
9455
9456 * vax-tdep.c (vax_frame_chain): Delete call to
9457 deprecated_inside_entry_file.
9458 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9459
9460 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9461
9462 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9463 column that's "empty" or "same value" when eliminating REG_RA
9464 rules.
9465
9466 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9467
9468 * NEWS: Add information about new pending breakpoint support.
9469
9470 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9471
9472 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9473 and pending fields for pending breakpoint support.
9474 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9475 (condition_command): Only parse condition if not a pending
9476 breakpoint.
9477 (print_one_breakpoint): Add support for pending breakpoints.
9478 (describe_other_breakpoints): Add checks to verify we are not
9479 dealing with pending breakpoints.
9480 (check_duplicates): Don't check pending breakpoints.
9481 (set_raw_breakpoint): Initialize pending flag.
9482 (do_restore_lang_radix_cleanup): New cleanup routine.
9483 (resolve_pending_breakpoint): New function.
9484 (re_enable_breakpoints_in_shlibs): Try and resolve any
9485 pending breakpoints via resolve_pending_breakpoint.
9486 (mention): Add pending breakpoint support.
9487 (parse_breakpoint_sals): Add new parameter to pass to
9488 decode_line_1 to indicate silent errors when files or functions
9489 are not found. Change all callers.
9490 (do_captured_parse_breakpoint): New function.
9491 (break_command_1): Change prototype to return an rc value and to
9492 take an optional pending breakpoint pointer. Support creating
9493 a pending breakpoint if a "not found" form of error occurs when
9494 parsing the breakpoint. Also support resolving an existing pending
9495 breakpoint and be silent if the resolution fails.
9496 (create_breakpoints): Change prototype to take pending breakpoint
9497 pointer. When resolving a pending breakpoint, use the new pointer
9498 to provide a conditional or commands added by the end-user.
9499 (delete_breakpoint): Add appropriate check for pending.
9500 (breakpoint_re_set_one): Ditto.
9501 (do_enable_breakpoint): Ditto.
9502
9503 2004-02-02 David Carlton <carlton@kealia.com>
9504
9505 * valops.c (enum oload_classification): New.
9506 (find_overload_match): Break implementation into separate
9507 functions; delete #if 0'd code; look for symbols within
9508 namespaces.
9509 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9510 (find_oload_champ,oload_method_static,classify_oload_match): New.
9511 * cp-support.h: Add declaration for cp_func_name; update
9512 declaration for make_symbol_overload_list.
9513 * cp-support.c (cp_func_name): New.
9514 (overload_list_add_symbol): Fix comment, use
9515 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9516 (make_symbol_overload_list): Take a function name and a namespace
9517 instead of a symbol; change implementation.
9518 (make_symbol_overload_list_using): New.
9519 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9520
9521 2004-02-02 Fred Fish <fnf@redhat.com>
9522
9523 * main.c (gdb_stdtarg): Move definition to group with other
9524 gdb_stdtarg definitions and update copyright years.
9525 * remote-sim.c (gdb_os_write_stderr): Write output to
9526 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9527 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9528 gdb_stderr stream and update copyright years.
9529
9530 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9531
9532 * Makefile.in (mips-linux-nat.o): Update dependencies.
9533 * mips-linux-nat.c: Include mips-tdep.h.
9534
9535 2004-02-01 Roland McGrath <roland@redhat.com>
9536
9537 * sol-thread.c (sol_thread_xfer_partial): New function.
9538 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9539 (init_sol_core_ops): Likewise.
9540
9541 * procfs.c (procfs_xfer_partial): New function.
9542 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9543 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9544
9545 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9546 procfs_xfer_auxv function.
9547
9548 * procfs.c (procfs_make_note_section): If we can read
9549 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9550 * linux-proc.c (linux_make_note_section): Likewise.
9551
9552 * auxv.h: New file.
9553 * auxv.c: New file.
9554 * Makefile.in (auxv_h): New variable.
9555 (COMMON_OBS): Add auxv.o here.
9556 (auxv.o): New target.
9557
9558 * corelow.c (core_xfer_partial): New function.
9559 (init_core_ops): Use it for core_ops.to_xfer_partial.
9560
9561 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9562 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9563 macro if that is defined.
9564
9565 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9568 and check the specified thread for each breakpoint.
9569 * breakpoint.h (bpstat_stop_status): Update prototype.
9570 * infrun.c (handle_inferior_event): Update calls to
9571 bpstat_stop_status.
9572
9573 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9574
9575 * Makefile.in (cli-cmds.o): Add $(readline_h).
9576
9577 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * cli/cli-cmds.c: Include readline.h.
9580 (complete_command): Pass the start of the last word to
9581 complete_line.
9582
9583 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9586 argument, and change first argument to a CORE_ADDR.
9587 * breakpoint.h (bpstat_stop_status): Update prototype.
9588 * infrun.c (adjust_pc_after_break): Add a new comment.
9589 (handle_inferior_event): Update calls to bpstat_stop_status.
9590
9591 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9592
9593 * breakpoint.h: Update copyright years.
9594
9595 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9598 (bpstat_stop_status): Don't decrement PC.
9599 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9600 prototype.
9601 * infrun.c (adjust_pc_after_break): New function.
9602 (handle_inferior_event): Call it, early. Remove later references
9603 to DECR_PC_AFTER_BREAK.
9604 (normal_stop): Add commentary.
9605
9606 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9607
9608 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9609 2004-01-27 double-free fix.
9610
9611 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9612
9613 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9614 (sparc32_frame_prev_register): Handle StackGhost.
9615 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9616
9617 2004-01-29 Roland McGrath <roland@redhat.com>
9618
9619 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9620 * configure: Regenerated.
9621
9622 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9623 * Makefile.in (procfs.o): Add dep.
9624
9625 2004-01-28 Andrew Cagney <cagney@redhat.com>
9626
9627 * tui/tui-stack.h: Update copyright.
9628 (struct frame_info): Add opaque declaration.
9629 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9630 (tui_show_locator_content): Rename tuiShowLocatorContent.
9631 (tui_show_frame_info): Rename tuiShowFrameInfo.
9632 * tui/tui-stack.c: Update copyright. Update references.
9633 * tui/tui-winsource.c: Update references.
9634 * tui/tui-win.c: Update references.
9635 * tui/tui-layout.c: Update references.
9636 * tui/tui-hooks.c: Update copyright, update references.
9637 * tui/tui.c: Update copyright, update references.
9638 * tui/tui-disasm.c: Update references.
9639
9640 2004-01-28 David Carlton <carlton@kealia.com>
9641
9642 * dwarf2read.c (add_partial_structure): Use demangled name if
9643 namespace equals "".
9644
9645 2004-01-27 Jim Blandy <jimb@redhat.com>
9646
9647 Clean up misapplied patch:
9648 * dwarf2read.c (determine_prefix): Change one of the two forward
9649 declarations for 'determine_prefix_aux' to a declaration for this.
9650 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9651 argument to 'die_specification'.
9652
9653 * dwarf2read.c (read_func_scope): Re-indent comment.
9654
9655 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9656
9657 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9658 b->exp to NULL after freeing so that error during re-parsing or
9659 evaluation of expressions associated with breakpoint don't
9660 eventually lead to re-freeing of storage.
9661 Committed by Andrew Cagney.
9662
9663 2004-01-27 Andrew Cagney <cagney@redhat.com>
9664
9665 * source.c (ambiguous_line_spec): Delete undefined declaration.
9666 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9667 (m32r_set_server_address, m32r_set_download_path): Ditto.
9668 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9669
9670 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * dwarf2read.c: Update calls to changed and renamed functions, and
9673 references to moved variables.
9674
9675 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9676 language, language_defn, list_in_scope, and ftypes members.
9677 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9678 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9679 (baseaddr): Remove globals.
9680
9681 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9682 (set_cu_language, die_is_declaration, die_specification)
9683 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9684 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9685 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9686 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9687
9688 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9689 cu.list_in_scope. Don't initialize cu_header_offset.
9690 (add_partial_symbol): Add local baseaddr.
9691 (psymtab_to_symtab_1): Add local baseaddr. Use
9692 objfile->section_offsets for consistency. Don't initialize
9693 cu_header_offset; do initialize cu.header.offset and
9694 cu.list_in_scope.
9695 (read_file_scope, read_func_scope, read_lexical_block_scope)
9696 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9697
9698 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9699
9700 * PROBLEMS: Add gdb/1516.
9701
9702 2003-12-29 Robert Millan <robertmh@gnu.org>
9703
9704 Patch committed by Andrw Cagney.
9705 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9706 * configure.tgt: Match knetbsd*-gnu.
9707
9708 2004-01-26 Andrew Cagney <cagney@redhat.com>
9709
9710 * breakpoint.c (catch_command_1): Delete #ifdef code.
9711 (catch_fork_command_1): Delete #ifdef wrapper.
9712 (catch_exec_command_1): Ditto.
9713 (catch_load_command_1): Ditto.
9714 (catch_unload_command_1): Ditto.
9715
9716 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9717 (catch_breakpoint): Delete #if0ed function.
9718 (disable_catch_breakpoint): Ditto.
9719 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9720 (disable_catch, enable_catch, delete_catch): Ditto.
9721
9722 2004-01-26 Andrew Cagney <cagney@redhat.com>
9723
9724 * remote.c (echo_check, quit_flag): Delete variables.
9725 (cisco_kernel_mode): Delete variable.
9726 (minitelnet_return, tty_input, escape_count): Delete variables.
9727 (remote_cisco_mode): Delete variable.
9728 (remote_cisco_open, remote_cisco_close): Delete function.
9729 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9730 (init_remote_cisco_ops): Delete function.
9731 (_initialize_remote): Do not install "remote cisco" code.
9732 (read_frame): Delete cisco specific code.
9733 (remote_info_process): Delete function.
9734 (remote_wait): Delete cisco specific code.
9735 (remote_cisco_section_offsets): Delete function.
9736 (remote_cisco_objfile_relocate): Delete function.
9737 (remote_async_wait): Delete cisco specific code.
9738 (minitelnet, readtty, readsocket): Delete function.
9739
9740 2004-01-26 Andrew Cagney <cagney@redhat.com>
9741
9742 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9743 comments mentioning extract_returned_value_address.
9744 * infcmd.c (print_return_value): Update. Add comments on
9745 extract_returned_value_address.
9746 * stack.c (return_command): Add comments on
9747 extract_returned_value_address.
9748 * values.c: Update comment.
9749 * m32r-tdep.c: Update comment.
9750 * sparc-tdep.c: Update comment.
9751 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9753 * sh64-tdep.c (sh64_gdbarch_init): Update.
9754 * sh-tdep.c (sh_gdbarch_init): Update.
9755 * s390-tdep.c (s390_gdbarch_init): Update.
9756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9757 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9758 * m68k-tdep.c (m68k_gdbarch_init): Update.
9759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9760 * m32r-tdep.c (m32r_gdbarch_init): Update.
9761 * ia64-tdep.c (ia64_gdbarch_init): Update.
9762 * h8300-tdep.c (h8300_gdbarch_init): Update.
9763 * frv-tdep.c (frv_gdbarch_init): Update.
9764 * arm-tdep.c (arm_gdbarch_init): Update.
9765 * alpha-tdep.c (alpha_gdbarch_init): Update.
9766
9767 2004-01-26 Andrew Cagney <cagney@redhat.com>
9768
9769 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9770 SYMBOL_LOCATION_FUNCS
9771 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9772 "struct symbol_ops".
9773 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9774 type to "struct symbol_ops".
9775 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9776 (struct symbol): Replace ".aux_value.loc.funcs" and
9777 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9778 (SYMBOL_OBJFILE): Delete macro.
9779 (SYMBOL_LOCATION_FUNCS): Delete macro.
9780 (SYMBOL_LOCATION_BATON): Update.
9781 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9782 intead of SYMBOL_LOCATION_FUNCS.
9783 * ax-gdb.c (gen_var_ref): Ditto.
9784 * printcmd.c (address_info): Ditto.
9785 * findvar.c (read_var_value): Ditto.
9786 (symbol_read_needs_frame): Ditto.
9787
9788 2004-01-26 Andrew Cagney <cagney@redhat.com>
9789
9790 * dwarf2read.c (read_func_scope): Document frame-base hack.
9791
9792 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9793
9794 * infcmd.c (print_return_value): Plug memory leak; delete
9795 ui_stream object. Rename argument `structure_return' to
9796 `struct_return'.
9797
9798 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9799
9800 * infcmd.c (print_return_value): Wrap long lines.
9801 (finish_command_continuation, finish_command): Remove unused
9802 variable `funcaddr'. Fix some coding-standards problems.
9803
9804 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9805 SECT_SIZE is large enough, not whether it's exactly the right size.
9806 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9807 TDEP->fpregset to zero.
9808
9809 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9810 floating-point registers for traditional NetBSD core files.
9811 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9812 TDEP->sizeof_fpregset here.
9813
9814 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9815
9816 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9817 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9818 function with code split out from
9819 sparc32nbsd_sigcontext_frame_cache.
9820 (sparc32nbsd_sigcontext_frame_cache): Use
9821 sparc32nbsd_sigcontext_saved_regs.
9822 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9823 OpenBSD.
9824 * sparcobsd-tdep.c: New file.
9825 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9826 (sparcobsd-tdep.o): New dependency.
9827 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9828 * config/sparc/obsd.mt: New file.
9829
9830 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9831 TDEP->fpregset to be initialized to enable core file register
9832 sets.
9833
9834 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9835
9836 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9837 Add opaque declarations.
9838 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9839 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9840 function with code split out from
9841 sparc64nbsd_sigcontext_frame_cache.
9842 (sparc64nbsd_sigcontext_frame_cache): Use
9843 sparc64nbsd_sigcontext_saved_regs.
9844 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9845 OpenBSD.
9846 * sparc64obsd-tdep.c: New file.
9847 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9848 (sparc64obsd-tdep.o): New dependency.
9849 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9850 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9851 * config/sparc/obsd64.mt: New file.
9852
9853 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9854 read the instruction at PC.
9855
9856 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9857 value of GDB_OSABI_DEFAULT.
9858 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9859 instead of GDB_OSABI_NETBSD_AOUT.
9860
9861 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9862
9863 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9864 copyright.
9865
9866 2004-01-23 Andrew Cagney <cagney@redhat.com>
9867
9868 * printcmd.c (display_command): Replace tui_set_display call with
9869 tui_set_layout_for_display_command.
9870 * tui/tui.h (enum tui_win_type): Define.
9871 (tui_set_layout): Delete declaration.
9872 (tui_set_layout_for_display_command): Rename set_tui_layout.
9873 * tui/tui-data.h (enum tui_layout_type): Define.
9874 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9875 "tui.h".
9876 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9877 (tui_default_win_height): Rename tuiDefaultWinHeight.
9878 (tui_default_win_viewport_height): Rename
9879 tuiDefaultWinViewportHeight.
9880 (tui_set_layout): RenametuiSetLayout.
9881 * tui/tui-layout.c: Update references.
9882 * tui/tui.c: Update references.
9883 * tui/tui-disasm.c: Update references.
9884
9885 2004-01-23 David Carlton <carlton@kealia.com>
9886
9887 Partial workaround for PR c++/1511:
9888 * cp-namespace.c: Include frame.h.
9889 (cp_lookup_transparent_type): New
9890 (cp_lookup_transparent_type_loop): New.
9891 * cp-support.h: Declare cp_lookup_transparent_type.
9892 * symtab.c (basic_lookup_transparent_type): Renamed from
9893 lookup_transparent_type.
9894 (lookup_transparent_type): Replace old body by a call to
9895 current_language->la_lookup_transparent_type.
9896 * symtab.h: Update copyright. Declare
9897 basic_lookup_transparent_type.
9898 * language.h: Update copyright.
9899 (struct language_defn): Add la_lookup_transparent_type.
9900 * language.c: Update copyright.
9901 (unknown_language_defn): Add basic_lookup_transparent_type.
9902 (auto_language_defn): Add basic_lookup_transparent_type.
9903 (local_language_defn): Add basic_lookup_transparent_type.
9904 * ada-lang.c: Update copyright.
9905 (ada_language_defn): Add basic_lookup_transparent_type.
9906 * c-lang.c: Update copyright.
9907 (c_language_defn): Add basic_lookup_transparent_type.
9908 (cplus_language_defn): Add basic_lookup_transparent_type.
9909 (asm_language_defn): Add basic_lookup_transparent_type.
9910 (minimal_language_defn): Add basic_lookup_transparent_type.
9911 * f-lang.c: Update copyright.
9912 (f_language_defn): Add basic_lookup_transparent_type.
9913 * jv-lang.c: Update copyright.
9914 (java_language_defn): Add basic_lookup_transparent_type.
9915 * m2-lang.c: Update copyright.
9916 (m2_language_defn): Add basic_lookup_transparent_type.
9917 * objc-lang.c: Update copyright.
9918 (objc_language_defn): Add basic_lookup_transparent_type.
9919 * p-lang.c: Update copyright.
9920 (p_language_defn): Add basic_lookup_transparent_type.
9921 * scm-lang.c: Update copyright.
9922 (scm_language_defn): Add basic_lookup_transparent_type.
9923 * Makefile.in (cp-namespace.o): Depend on frame.h.
9924
9925 2004-01-23 David Carlton <carlton@kealia.com>
9926
9927 Patch for PR c++/1520:
9928 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9929 properly if we have a specification die.
9930 (determine_prefix_aux): Rename from determine_prefix.
9931 (determine_prefix): Like the old determine_prefix, but never
9932 returns NULL.
9933
9934 2004-01-23 Theodore A. Roth <troth@openavr.org>
9935
9936 * avr-tdep.c: Update copyright.
9937 (avr_iaddr_p): Delete unused function.
9938 (avr_saddr_p): Delete unused function.
9939
9940 2004-01-23 David Carlton <carlton@kealia.com>
9941
9942 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9943 Fix for PR symtab/1534.
9944
9945 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9946
9947 * NEWS (New native configurations): Mention OpenBSD/sparc and
9948 OpenBSD/sparc64.
9949 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9950 * configure.host: Likewise.
9951 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9952 handler for OpenBSD.
9953 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9954
9955 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9956
9957 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9958 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9959
9960 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9961 * cli/cli-cmds.c (shell_escape): Likewise.
9962
9963 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9964 OpenBSD .note.openbsd.ident sections.
9965
9966 2004-01-22 David Carlton <carlton@kealia.com>
9967
9968 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9969 get_scope_pc_bounds.
9970 (read_file_scope): Ditto.
9971 (get_scope_pc_bounds): New function, produced by extracting code
9972 from the above two functions, consolidating it, and adding support
9973 for DW_TAG_namespace.
9974
9975 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9976
9977 * osabi.c (MAX_NOTESZ): New define.
9978 (check_note): New function.
9979 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9980 check_note.
9981
9982 2004-01-21 Roland McGrath <roland@redhat.com>
9983
9984 * MAINTAINERS (write after approval): Add myself.
9985
9986 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9987
9988 * utils.c (init_page_info): Move declarations of `rows' and
9989 `cols' before the __GO32__-specific code. Move the closing brace
9990 outside the #ifdef __GO32__..#endif block.
9991 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9992
9993 2004-01-21 Paul Brook <paul@codesourcery.com>
9994
9995 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9996 BPSTAT_WHAT_CHECK_SHLIBS.
9997
9998 2004-01-21 Paul Brook <paul@codesourcery.com>
9999
10000 * MAINTAINERS: Add myself to write-after-approval.
10001
10002 2004-01-20 Andrew Cagney <cagney@redhat.com>
10003
10004 * ax-gdb.c (print_axs_value): Delete unused function.
10005 * jv-lang.c (java_lookup_type): Delete unused function.
10006 * cli/cli-dump.c (dump_filetype): Delete unused function.
10007 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10008 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10009 (mips_getstring): Delete unused function.
10010 (pmon_insert_breakpoint): Delete #if0ed function.
10011 (PMON_MAX_BP): Delete #if0ed MACRO.
10012 (mips_pmon_bp_info): Delete #if0ed variable.
10013 (pmon_remove_breakpoint): Delete #if0ed function.
10014 * monitor.c (monitor_write_even_block): Delete unused function.
10015 (monitor_write_memory_block): Delete #if0ed code.
10016 * dink32-rom.c (dink32_load): Delete unused function.
10017 (_initialize_dink32_rom): Delete #if0ed code.
10018 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10019
10020 * tui/tui-command.c: Update references.
10021 * tui/tui-io.c: Update references.
10022 * tui/tui-command.h: Update copyright.
10023 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10024
10025 * source.c (ambiguous_line_spec): Delete never-defined function.
10026 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10027 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10028 * cli/cli-cmds.c (validate_comname): Ditto.
10029
10030 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10031 "tui-data.h".
10032 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10033 (tui_show_disassem): Rename tuiShowDisassem.
10034 (tui_show_disassem_and_update_source): Rename
10035 tuiVerticalDisassemScroll.
10036 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10037 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10038 * tui/tui.h: Update copyright.
10039 (enum tui_status): Define.
10040 * tui/tui-data.h (enum tui_scroll_direction): Define.
10041 * tui/tui-disasm.c: Update copyright. Update references.
10042 * tui/tui-winsource.c: Update copyright. Update references.
10043 * tui/tui-win.c: Update references.
10044 * tui/tui-layout.c: Update references.
10045
10046 2004-01-20 Andrew Cagney <cagney@redhat.com>
10047
10048 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10049 sym2 to start of block.
10050
10051 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10052
10053 * MAINTAINERS: Delete mmalloc.
10054 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10055 * NEWS: Mention removal of --with-malloc.
10056 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10057 * config.in: Regenerate.
10058 * configure: Regenerate.
10059 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10060 USE_MMALLOC, MMCHECK_FORCE.
10061 * gdbinit.in: Remove mmalloc.
10062 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10063 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10064 * config/i386/go32.mh: Likewise.
10065 * config/i386/interix.mh: Likewise.
10066 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10067
10068 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10069
10070 * linespec.c (decode_variable, symtab_from_filename): Call
10071 error_silent with error message instead of throwing an exception
10072 directly.
10073 * defs.h (error_silent, error_output_message): Add prototypes.
10074 (catch_exceptions_with_msg): Ditto.
10075 * utils.c (error_silent, error_output_message): New functions.
10076 * top.c (catch_exceptions_with_msg): New function.
10077
10078 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10079
10080 * mi/mi-cmds.h (enum print_values): Add definition.
10081
10082 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10083 type and value for simple data types and just the name and type
10084 for complex ones, if required.
10085
10086 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10087 children, if required.
10088
10089 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10090
10091 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10092 unused declarations.
10093
10094 2004-01-19 Andrew Cagney <cagney@redhat.com>
10095
10096 * top.h (mapped_symbol_files): Delete declaration.
10097 * main.c (captured_main): Delete option "m" and "mapped".
10098 * objfiles.c (mapped_symbol_files): Delete variable.
10099 * symfile.c (symbol_file_command): Delete mmap code.
10100 (symbol_file_add_with_addrs_or_offsets): Ditto.
10101 (add_symbol_file_command, reread_separate_symbols): Ditto.
10102 * objfiles.h (OBJF_MAPPED): Delete.
10103 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10104 (free_objfile) [USE_MMALLOC]: Ditto.
10105 (open_existing_mapped_file): Delete function.
10106 (open_mapped_file): Delete function.
10107 (map_to_file): Delete function.
10108
10109 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10110
10111 * infrun.c (step_into_function): Account for possible breakpoint
10112 adjustment when computing ``stop_func_start''.
10113
10114 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10115
10116 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10117 the region size against the size of a pointer, not the size of
10118 a register as given by DEPRECATED_REGISTER_SIZE.
10119
10120 2004-01-19 Andrew Cagney <cagney@redhat.com>
10121
10122 * tui/tui-regs.h: Include "tui-data.h".
10123 (tuiFirstRegElementNoInLine): Delete declaration.
10124 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10125 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10126 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10127 (tui_calculate_regs_column_count): Rename
10128 tuiCalculateRegsColumnCount.
10129 (tui_check_register_values): Rename tuiCheckRegisterValues.
10130 (tui_show_registers): Rename tuiShowRegisters.
10131 (tui_display_registers_from_line): Rename
10132 tuiDisplayRegistersFromLine.
10133 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10134 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10135 (tui_first_reg_element_no_inline): Rename
10136 tuiFirstRegElementNoInLine.
10137 * tui/tui-data.h: Update copyright.
10138 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10139 * tui/tui-windata.c: Update copyright, update references.
10140 * tui/tui-regs.c: Update copyright, update references.
10141 * tui/tui-win.c: Update copyright, update references.
10142 * tui/tui-layout.c: Update copyright, update references.
10143
10144 2004-01-18 Andrew Cagney <cagney@redhat.com>
10145
10146 * tui/tui-io.c: Update copyright.
10147 (key_is_end_sequence, key_is_backspace): New functions.
10148 (key_is_command_char, key_is_start_sequence): New function.
10149 (tui_getc): Update references.
10150 * tui/tui-io.h: Update copyright.
10151 (m_tuiStartNewLine): Delete macro.
10152 (m_isBackspace, m_isDeleteChar): Delete macros.
10153 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10154 (m_isNextPage, m_isPrevPage): Delete macros.
10155 (m_isLeftArrow, m_isRightArrow): Delete macros.
10156 (m_isXdbStyleCommandChar): Delete macro.
10157 (key_is_start_sequence): Declare, replace m_isStartSequence.
10158 (key_is_end_sequence): Declare, replace m_isEndSequence.
10159 (key_is_backspace): Declare ,replace m_isBackspace.
10160 (key_is_command_char): Declare, replace m_isCommandChar.
10161 * tui/tui-command.c: Update copyright.
10162 (tuiDispatchCtrlChar): Update references.
10163
10164 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10165 tuiSourceWin.h.
10166
10167 * tui/tui-command.c: Rename tui/tuiCommand.c.
10168 * tui/tui-command.h: Rename tui/tuiCommand.h.
10169 * tui/tui-data.c: Rename tui/tuiData.c.
10170 * tui/tui-data.h: Rename tui/tuiData.h.
10171 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10172 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10173 * tui/tui-io.c: Rename tui/tuiIO.c.
10174 * tui/tui-io.h: Rename tui/tuiIO.h.
10175 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10176 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10177 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10178 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10179 * tui/tui-source.c: Rename tui/tuiSource.c.
10180 * tui/tui-source.h: Rename tui/tuiSource.h.
10181 * tui/tui-stack.c: Rename tui/tuiStack.c.
10182 * tui/tui-stack.h: Rename tui/tuiStack.h.
10183 * tui/tui-win.c: Rename tui/tuiWin.c.
10184 * tui/tui-win.h: Rename tui/tuiWin.h.
10185 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10186 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10187 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10188 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10189 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10190 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10191 * tui/tui-file.c: Update includes.
10192 * tui/tui-hooks.c: Update includes.
10193 * tui/tui-interp.c: Update includes.
10194 * tui/tui.c: Update includes.
10195 * Makefile.in: Update all tui/ dependencies.
10196 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10197
10198 * Makefile.in: Update copyright. Update dependencies.
10199
10200 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10201 problem.
10202
10203 2004-01-18 Andrew Cagney <cagney@redhat.com>
10204
10205 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10206 instead of register_gdbarch_init.
10207
10208 * remote-sds.c (tohex): Delete unused function. Update copyright.
10209 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10210 * v850-tdep.c (v850_register_virtual_size): Ditto.
10211 * target.c (normal_target_post_startup_inferior): Ditto.
10212 * source.c (ambiguous_line_spec): Ditto.
10213 * remote.c (adapt_remote_get_threadinfo): Ditto.
10214 * mi/mi-out.c (out_field_fmt): Ditto.
10215 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10216 (output_control_change_notification): Ditto.
10217 * m68k-tdep.c (m68k_register_byte): Ditto.
10218 (m68k_remote_breakpoint_from_pc): Ditto.
10219 * ui-out.c (init_ui_out_state): Delete unused declaration.
10220 * stabsread.c (search_value): Ditto.
10221 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10222 * maint.c (print_section_table): Ditto.
10223 * infrun.c (set_follow_fork_mode_command): Ditto.
10224
10225 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10226
10227 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10228 DW_CFA_def_cfa_exporession. Add support for
10229 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10230 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10231
10232 2004-01-18 Andrew Cagney <cagney@redhat.com>
10233
10234 * ocd.c: Update copyright.
10235 (bdm_read_register_command): Delete unused function.
10236 (_initialize_remote_ocd): Delete commented out reference.
10237 (get_quoted_char, reset_packet): Delete #if0ed function.
10238 (output_packet, put_quoted_char): Delete #if0ed function.
10239 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10240 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10241 (BDM_BREAKPOINT): Delete #if0ed macro.
10242 (remote_timeout): Delete #if0ed variable.
10243
10244 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10245
10246 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10247 (core-sol2.o): Remove dependency.
10248 * core-sol2.c: Remove file.
10249
10250 2004-01-17 Andrew Cagney <cagney@redhat.com>
10251
10252 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10253 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10254 enums.
10255
10256 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10257
10258 * remote.c: Update copyright years.
10259
10260 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10263
10264 2004-01-17 Andrew Cagney <cagney@redhat.com>
10265
10266 * mdebugread.c: Update copyright.
10267 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10268 (parse_type, parse_procedure): Ditto.
10269 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10270
10271 * cris-tdep.c (cris_store_struct_return): Put back accidently
10272 deleted function.
10273
10274 * gdbarch.sh: Update copyright year.
10275 * gdbarch.h, gdbarch.c: Re-generate.
10276
10277 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10278
10279 Suggested by George Anzinger.
10280 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10281 correct stack offset. Include unknown opcode numbers in the error
10282 message.
10283
10284 2004-01-17 Andrew Cagney <cagney@redhat.com>
10285
10286 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10287 extract_struct_value_address, i386 does not set it.
10288 * sparc64-tdep.c (sparc64_init_abi): Do not set
10289 extract_struct_value_address, never called.
10290 (sparc64_extract_struct_value_address): Delete function.
10291 * m68hc11-tdep.c: Update copyright.
10292 (m68hc11_gdbarch_init): Delete redundant assignment of
10293 extract_struct_value_address.
10294 * i386-tdep.c: Update copyright.
10295 (i386_gdbarch_init): Do not set extract_struct_value_address,
10296 never called.
10297 (i386_extract_struct_value_address): Delete function.
10298 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10299 extract_struct_value_address, never called.
10300 (sparc32_extract_struct_value_address): #if 0 function. Add
10301 comments explaining its future.
10302
10303 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10304
10305 * arm-tdep.c (arm_write_pc): New function.
10306 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10307
10308 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * breakpoint.c (must_shift_inst_regs): Delete.
10311 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10312 and SHIFT_INST_REGS.
10313 * infcmd.c (step_1, step_1_continuation): Delete references to
10314 SHIFT_INST_REGS.
10315 * infrun.c (keep_going): Likewise.
10316 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10317 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10318
10319 2004-01-17 Andrew Cagney <cagney@redhat.com>
10320
10321 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10322 * gdbarch.h, gdbarch.c: Re-generate.
10323 * infcmd.c (print_return_value): Delete reference to
10324 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10325
10326 * cris-tdep.c (cris_gdbarch_init): Do not set
10327 deprecated_extract_struct_value_address.
10328
10329 * xstormy16-tdep.c: Update copyright.
10330 (xstormy16_extract_struct_value_address): Update to current
10331 extract struct value address interface.
10332 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10333 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10334 current extract struct value address interface.
10335 (sh64_gdbarch_init): Set extract_struct_value_address.
10336
10337 * cris-tdep.c: Update copyright.
10338 (cris_extract_struct_value_address): Delete function.
10339 (struct_return_address): Delete variable.
10340 (cris_store_struct_return): Do not set struct_return_address.
10341
10342 * mcore-tdep.c: Update copyright.
10343 (mcore_extract_struct_value_address): Delete function. Update
10344 comments.
10345 (mcore_gdbarch_init): Update.
10346 * mn10300-tdep.c: Update copyright.
10347 (mn10300_extract_struct_value_address): Delete function.
10348 (mn10300_gdbarch_init): Update.
10349 * v850-tdep.c: Update copyright.
10350 (v850_extract_struct_value_address): Delete.
10351 (v850_gdbarch_init): Update.
10352 * ns32k-tdep.c: Update copyright.
10353 (ns32k_extract_struct_value_address): Delete.
10354 (ns32k_gdbarch_init): Update.
10355 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10356 (hppa_gdbarch_init): Update.
10357 * vax-tdep.c: Update copyright.
10358 (vax_extract_struct_value_address): Delete.
10359 (vax_gdbarch_init): Update.
10360
10361 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10362 * gdbarch.h, gdbarch.c: Re-generate.
10363 * procfs.c (procfs_fetch_registers): Delete reference to
10364 DEPRECATED_NPC_REGNUM.
10365 (procfs_store_registers): Ditto.
10366 * regcache.c (generic_target_write_pc): Simplify.
10367 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10368
10369 * core-sol2.c (fetch_core_registers): Replace
10370 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10371
10372 * hppa-tdep.c: Update copyright year.
10373 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10374 NPC_REGNUM.
10375 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10376
10377 * mips-tdep.c (mips_write_pc): New function.
10378 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10379 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10380 (mips_find_saved_regs, mips_software_single_step: Ditto.
10381 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10382 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10383
10384 2004-01-17 Andrew Cagney <cagney@redhat.com>
10385
10386 * mips-tdep.c: Re-indent. Group functions by ABI.
10387
10388 2004-01-17 Andrew Cagney <cagney@redhat.com>
10389
10390 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10391 * gdbarch.c: Re-generate.
10392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10393 DECR_PC_AFTER_BREAK to zero.
10394 * vax-tdep.c (vax_gdbarch_init): Ditto.
10395 * v850-tdep.c (v850_gdbarch_init): Ditto.
10396 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10397 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10398 * sh-tdep.c (sh_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 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10405 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10406 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10407 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10408 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10409 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10410 * frv-tdep.c (frv_gdbarch_init): Ditto.
10411 * cris-tdep.c (cris_gdbarch_init): Ditto.
10412 * avr-tdep.c (avr_gdbarch_init): Ditto.
10413 * arm-tdep.c (arm_gdbarch_init): Ditto.
10414 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10415
10416 2004-01-17 J. Brobecker <brobecker@gnat.com>
10417
10418 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10419 Delete, no longer used.
10420 (read_subrange_type): New function, mostly extracted from
10421 read_array_type().
10422 (read_array_type): Replace extracted code by call to
10423 read_subrange_type().
10424 (dwarf2_get_attr_constant_value): New function.
10425 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10426 (add_partial_symbol): Likewise.
10427 (process_die): Likewise.
10428 (new_symbol): Likewise.
10429 (read_type_die): Likewise.
10430
10431 2004-01-16 Andrew Cagney <cagney@redhat.com>
10432
10433 * symfile.c: Update copyright year.
10434 (compare_symbols): Delete unused function.
10435 * stabsread.c: Update copyright year.
10436 (lrs_general_complaint): Delete unused function.
10437 (ref_search_value): Ditto.
10438 (get_substring): Delete declaration.
10439 * sh64-tdep.c: Update copyright year.
10440 (sh64_get_gdb_regnum): Delete unused function.
10441 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10442 Delete unused function.
10443
10444 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10445
10446 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10447 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10448
10449 2004-01-16 Andrew Cagney <cagney@redhat.com>
10450
10451 Changes from Peter Schauer.
10452 * rs6000-tdep.c: Update copyright year.
10453 (rs6000_push_dummy_call): Update the stack pointer before
10454 accessing the corresponding stack region.
10455 * rs6000-nat.c: Update copyright year.
10456 (set_host_arch): Set "info.abfd" to "exec_bfd".
10457
10458 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10459
10460 * blockframe.c: Update copyright year.
10461 (inside_entry_func): Don't treat a zero PC specially.
10462
10463 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10464
10465 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10466 variable.
10467 (gcore_create_callback): Ditto. Skip any memory segment that has
10468 no permissions set.
10469
10470 2004-01-14 David Carlton <carlton@kealia.com>
10471
10472 Change symbols for C++ nested types to contain the fully qualified
10473 name, if possible. (At least in the DWARF-2 case.) Partial fix
10474 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10475 c++/895.
10476 * c-exp.y (qualified_type): Handle types nested within classes.
10477 * cp-namespace.c: Update comments.
10478 (cp_set_block_scope): Delete #if 0.
10479 (cp_lookup_nested_type): Handle types nested within classes.
10480 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10481 when appropriate.
10482 (add_partial_symbol): Add the name of the enclosing namespace to
10483 types.
10484 (pdi_needs_namespace): New.
10485 (add_partial_namespace): Tweak comment.
10486 (add_partial_structure): New.
10487 (psymtab_to_symtab_1): Initialize processing_current_prefix
10488 here...
10489 (process_die): instead of here.
10490 (read_structure_scope): Try to figure out the name of the class or
10491 namespace that the structure might be defined within.
10492 (read_enumeration): Generate fully-qualified names, if possible.
10493 (read_namespace): Don't set name to NULL.
10494 (die_specification): New.
10495 (new_symbol): Generate fully-qualified names for types.
10496 (read_type_die): Determine appropriate prefix.
10497 (determine_prefix): New.
10498 (typename_concat): New.
10499 (class_name): New.
10500 * valops.c (value_aggregate_elt): Pass NOSIDE to
10501 value_struct_elt_for_reference.
10502 (value_struct_elt_for_reference): Make static, add NOSIDE
10503 parameter, call value_maybe_namespace_elt as a last resort.
10504 (value_namespace_elt): Break out code into
10505 value_maybe_namespace_elt.
10506 (value_maybe_namespace_elt): New.
10507
10508 2004-01-12 Andrew Cagney <cagney@redhat.com>
10509
10510 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10511 cooked floating-point registers.
10512 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10513 and value_to_register.
10514
10515 2004-01-13 Andrew Cagney <cagney@redhat.com>
10516
10517 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10518 * gdbarch.c: Re-generate.
10519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10520 FUNCTION_START_OFFSET.
10521 * v850-tdep.c (v850_gdbarch_init): Ditto.
10522 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10523 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10524 * sh-tdep.c (sh_gdbarch_init): Ditto.
10525 * s390-tdep.c (s390_gdbarch_init): Ditto.
10526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10527 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10528 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10529 * mips-tdep.c (mips_gdbarch_init): Ditto.
10530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10531 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10533 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10534 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10535 * i386-tdep.c (i386_gdbarch_init): Ditto.
10536 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10537 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10538 * frv-tdep.c (frv_gdbarch_init): Ditto.
10539 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10540 * cris-tdep.c (cris_gdbarch_init): Ditto.
10541 * avr-tdep.c (avr_gdbarch_init): Ditto.
10542 * arm-tdep.c (arm_gdbarch_init): Ditto.
10543 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10544
10545 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10546
10547 * infrun.c (follow_fork_mode_ask): Remove.
10548 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10549 (follow_fork): Simplify and remove internal error for
10550 follow_fork_mode_ask.
10551 (_initialize_infrun): Update "set follow-fork-mode" help text.
10552
10553 2004-01-13 Andrew Cagney <cagney@redhat.com>
10554
10555 * configure.in: Update copyright year.
10556 (build_warnings): Add -Wunused-label.
10557 * configure: Re-generate.
10558
10559 2004-01-12 Andrew Cagney <cagney@redhat.com>
10560
10561 * exec.h (exec_ops): Make "extern".
10562
10563 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10564 the function is void.
10565 (mips_pseudo_register_write): Ditto.
10566
10567 2004-01-12 Andrew Cagney <cagney@redhat.com>
10568
10569 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10570 call. Never defined.
10571 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10572 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10573 (struct sparc_gregset, struct regcache): Ditto.
10574 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10575
10576 2004-01-12 Andrew Cagney <cagney@redhat.com>
10577
10578 * mi/ChangeLog: Delete file. Renamed to ...
10579 * mi/ChangeLog-1999-2003: New file.
10580 * tui/ChangeLog: Delete file. Renamed to ...
10581 * tui/ChangeLog-1998-2003: New file.
10582
10583 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10584
10585 * sparc64nbsd-tdep.c: Include "regset.h".
10586 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10587 Remove variables.
10588 (fetch_core_registers): Remove function.
10589 (sparc64nbsd_core_fns): Remove variable.
10590 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10591 functions.
10592 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10593 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10594 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10595
10596 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10597 sparc_extract_struct_value_address.
10598 (sparc32_gdbarch_init): Set extract_struct_value_address.
10599 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10600 function.
10601 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10602 return_value_on_stack.
10603
10604 * NEWS: Mention that %cs and %ss have been added to the AMD64
10605 configurations
10606
10607 * frame.c: Update copyright year.
10608 (get_prev_frame): Improve comment.
10609
10610 * sparc64fbsd-tdep.c: Include "regset.h".
10611 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10612 Remove variables.
10613 (fetch_core_registers): Remove function.
10614 (sparc64fbsd_core_fns): Remove variable.
10615 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10616 functions.
10617 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10618 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10619 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10620
10621 * sparcnbsd-tdep.c: Include "regset.h".
10622 (fetch_core_registers): Remove function.
10623 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10624 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10625 functions.
10626 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10627 TDEP->fpregset.
10628 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10629
10630 * sparc-tdep.h (struct regset): Provide opaque declaration.
10631 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10632 fpregset and sizeof_fpregset members.
10633 * sparc-tdep.c (struct regset): Provide opaque declaration.
10634 (sparc_regset_from_core_section): New function.
10635 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10636 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10637 Set regset_from_core_section when appropriate.
10638
10639 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10640
10641 * x86-64-tdep.c (amd64_non_pod_p): New function.
10642 (amd64_classify_aggregate): Return class memory for non-POD
10643 C++ structure types.
10644
10645 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10646 argument. Use it to reserve a register if necessary.
10647 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10648 amd64_push_arguments.
10649
10650 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10651
10652 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10653 register numbers in comments.
10654 * x86-64-tdep.h: Update copyright year.
10655 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10656 Adjust for addition of %cs and %ss.
10657 * amd64fbsd-nat.c: Update copyright year.
10658 (reg_offset): Add register offsets for %cs and %ss.
10659 * amd64fbsd-tdep.c: Update copyright year.
10660 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10661 (amd64fbsd_sc_reg_offset): Likewise.
10662 * x86-64-linux-nat.c: Update copyright year.
10663 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10664 and %ss.
10665 * amd64nbsd-nat.c: Update copyright year.
10666 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10667 * amd64nbsd-tdep.c: Update copyright year.
10668 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10669 * x86-64-linux-tdep.c: Update copyright year.
10670 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10671 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10672 * regformats/reg-x86-64.dat: Add %cs and %ss.
10673
10674 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10675 variables to prevent long lines. Update comments to reflect
10676 reality.
10677
10678 2004-01-09 David Carlton <carlton@kealia.com>
10679
10680 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10681 * dwarf2read.c (read_namespace): Pull out name-generating code
10682 into namespace_name. Rename previous_namespace to previous_prefix
10683 and processing_current_namespace to processing_current_prefix..
10684 (namespace_name): New function.
10685 (add_partial_symbol): Substitute uses of pdi->name with
10686 actual_name.
10687 * cp-support.h: Rename processing_current_namespace to
10688 processing_current_prefix.
10689 Update copyright year.
10690 * cp-namespace.c: Rename processing_current_namespace to
10691 processing_current_prefix.
10692 Update copyright year.
10693
10694 2004-01-09 Andrew Cagney <cagney@redhat.com>
10695
10696 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10697
10698 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10699
10700 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10701 complaining.
10702 (process_one_symbol): Deal with N_PATCH stabs.
10703
10704 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10705
10706 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10707 ifdeffed code.
10708 Update copyright year.
10709
10710 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10711
10712 * config/pa/tm-hppa.h: Update extern declarations for
10713 hppa32_hpux_frame_saved_pc_in_sigtramp,
10714 hppa32_hpux_frame_base_before_sigtramp, and
10715 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10716
10717 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10718
10719 * config/pa/tm-hppah.h: Update copyright years.
10720
10721 2004-01-08 Andrew Cagney <cagney@redhat.com>
10722
10723 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10724 (mips_o32_reg_struct_has_addr): Delete function.
10725 (mips_gdbarch_init): Update.
10726 (mips_extract_struct_value_address): Delete function.
10727
10728 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10729
10730 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10731 reality.
10732
10733 2004-01-07 Andrew Cagney <cagney@redhat.com>
10734
10735 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10736 architecture's elf flags (when available).
10737
10738 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10739 FPU to the start, check the MIPS FPU when looking for an old
10740 architecture.
10741 (set_mipsfpu_single_command): Update the architecture.
10742 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10743
10744 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10745 (mips_mask_address_p): Add "tdep" parameter.
10746 (show_mask_address, mips_addr_bits_remove): Update.
10747 (mips_dump_tdep): Update.
10748 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10749 (MIPS_STACK_ARGSIZE): Delete macro.
10750 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10751 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10752 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10753 (mips_dump_tdep): Update.
10754 (MIPS_SAVED_REGSIZE): Delete macro.
10755 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10756 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10757 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10758 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10759 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10760 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10761 (mips_pop_frame, return_value_location): Update.
10762 (mips_n32n64_return_value, mips_dump_tdep): Update.
10763
10764 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10765 MIPS ABI.
10766
10767 * mips-tdep.c: Update copyright.
10768 (mips_gdbarch_init): Merge two code blocks handling the register
10769 name and number layout.
10770
10771 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10772
10773 * tracepoint.c (validate_actionline): Fix segv at EOF
10774
10775 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10776
10777 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10778 properly for static fields.
10779
10780 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10781 Jason Molenda <jmolenda@apple.com>
10782
10783 * disasm.c: Update copyright to include 2004.
10784 (do_mixed_source_and_assembly): For uiout asm list
10785 and tuple cleanups, initialize to null_cleanup instead of
10786 NULL and do so prior to loop. Only reset when we close off
10787 the tuple/list. Move check for whether to close off the
10788 asm tuple/list to after dump_insns call where it will be run
10789 on each loop iteration.
10790
10791 2004-01-05 Andrew Cagney <cagney@redhat.com>
10792
10793 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10794 should be a switch case and not a label.
10795 * mips-tdep.c (mips32_next_pc): Delete unused labels
10796 "greater_equal_branch" and "less_zero_branch".
10797 * jv-valprint.c (java_print_value_fields): Delete unused label
10798 "flush_it".
10799
10800 * target.c (unpush_target): Only close a target that is in the
10801 target stack.
10802
10803 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10804
10805 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10806 address from [sp + 64] instead of %o2.
10807
10808 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10809 fixes PR backtrace/1476.
10810
10811 2004-01-05 Andrew Cagney <cagney@redhat.com>
10812
10813 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10814 move to start of file.
10815 * i386-tdep.h (struct regcache): Add opaque declaration.
10816 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10817 declaration.
10818 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10819 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10820 * win32-nat.c (fake_create_process): Use ISO C style definition.
10821 * stabsread.c (define_symbol): Delete #ifndef
10822 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10823 stabs_argument_has_addr call, macro never defined.
10824
10825 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10826
10827 * op50-rom.c: Delete.
10828 * w89k-rom.c: Delete.
10829 * Makefile.in: Remove references.
10830
10831 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10832
10833 * x86-64-tdep.c: Update copyright year.
10834 (struct amd64_register_info): Rename from x86_64_register_info.
10835 (amd64_register_info): Rename from x86_64_register_info.
10836 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10837 (amd64_register_name): Rename from x86_64_register_name.
10838 (amd64_register_type): Rename from x86_64_register_type.
10839 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10840 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10841 (amd64_dwarf_reg_to_regnum): Rename from
10842 x86_64_dwarf_reg_to_regnum.
10843 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10844 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10845 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10846 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10847 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10848 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10849 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10850 (amd64_frame_cache): Rename from x86_64_frame_cache.
10851 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10852 (amd64_frame_prev_register): Rename from
10853 x86_64_frame_prev_register.
10854 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10855 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10856 (amd64_sigtramp_frame_cache): Rename from
10857 x86_64_sigtramp_frame_cache.
10858 (amd64_sigtramp_frame_prev_register): Rename from
10859 x86_64_sigtramp_frame_prev_register.
10860 (amd64_sigtramp_frame_unwind): Rename from
10861 x86_64_sigtramp_frame_unwind.
10862 (amd64_sigtramp_frame_sniffer): Rename from
10863 x86_64_sigtramp_frame_sniffer.
10864 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10865 (amd64_frame_base): Rename from x86_64_frame_base.
10866 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10867 (amd64_frame_align): Rename from x86_64_frame_align.
10868 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10869 (amd64_regset_from_core_section): Rename from
10870 x86_64_regset_from_core_section.
10871 (x86_64_init_abi): Update comments.
10872
10873 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10874
10875 * MAINTAINERS (write after approval): Add myself.
10876
10877 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10878
10879 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10880 `float' arguments.
10881
10882 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10883
10884 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10885 such that it mentions a specific version of GCC that exhibits this
10886 bug.
10887
10888 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10889
10890 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10891 structure that has a single `float' member, store it in %f1 in
10892 addition to %f0.
10893
10894 * sparc-sol2-nat.c: Add missing '\'.
10895
10896 * sparc-tdep.c (sparc32_return_value): New function.
10897 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10898 Remove functions.
10899 (sparc32_gdbarch_init): Set return_value, don't set
10900 extract_return_value, store_return_value, use_struct_convention
10901 and return_value_on_stack.
10902
10903 * sparc-sol2-nat.c: Add missing ')'.
10904
10905 2004-01-03 J. Brobecker <brobecker@gnat.com>
10906
10907 * infrun.c (handle_step_into_function): New function.
10908 (handle_inferior_event): Extract out some code into the new
10909 function above.
10910
10911 2004-01-03 J. Brobecker <brobecker@gnat.com>
10912
10913 * infrun.c (handle_inferior_event): Move the declaration of
10914 real_stop_pc inside the if blocks where it is used.
10915
10916 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10917
10918 * sparc64-tdep.c (sparc64_16_byte_align_p)
10919 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10920 Use check_typedef to get subtypes of structures and unions.
10921 (sparc64_store_return_value): Fix calculation of the appropriate
10922 offset into VALBUF when storing a structure or union.
10923 (sparc64_return_value): New function.
10924 (sparc64_use_struct_convention): Remove function.
10925 (sparc64_init_abi): Set return_value, don't set
10926 extract_return_value, store_return_value and
10927 use_struct_convention.
10928
10929 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10930
10931 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10932 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10933 gdb/config/alpha/xm-alphaosf.h,
10934 gdb/config/powerpc/tm-ppcle-eabi.h,
10935 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10936 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10937 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10938 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10939 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10940 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10941 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10942 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10943 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10944 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10945 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10946 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10947 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10948 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10949 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10950 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10951 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10952 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10953 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10954 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10955 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10956 Remove lines for .cvsignore files.
10957
10958 2004-01-03 J. Brobecker <brobecker@gnat.com>
10959
10960 * infrun.c: Back out the previous change.
10961
10962 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10963
10964 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10965 sparc-*-sunos4* to the list of REMOVED configurations.
10966
10967 * configure.tgt: Add back sparc-*-vxworks*.
10968 * remote-vxsparc.c: Remove all includes except for "defs.h",
10969 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10970 Include "sparc-tdep.h".
10971 (SPARC_R_G1): New define.
10972 (vxsparc_gregset): New variable.
10973 (ext_format_sparc): Remove extern declaration.
10974 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10975 sparc32_supply_fpregset.
10976 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10977 sparc_collect_rwindow and sparc32_collect_fpregset.
10978 * config/sparc/tm-vxworks.h: New file, based on recently removed
10979 tm-vxsparc.h.
10980 * config/sparc/vxworks.mt: New file, based on recently removed
10981 vxworks.mt.
10982
10983 2004-01-03 J. Brobecker <brobecker@gnat.com>
10984
10985 * infrun.c (handle_step_into_function): New function.
10986 (handle_inferior_event): Extract out some code into the new
10987 function above.
10988
10989 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10990
10991 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10992 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10993 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10994 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10995 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10996 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10997 (sparc_nat_h): New variable.
10998 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10999 (tm-sun4os4.h): Remove dependency.
11000 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11001 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11002 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11003 sparc-tdep.o): Update dependencies.
11004 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11005 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11006 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11007 dependencies.
11008 * configure.host: Remove existing sparc-*-lynxos*,
11009 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11010 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11011 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11012 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11013 triplets.
11014 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11015 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11016 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11017 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11018 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11019 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11020 sparc64-*-solaris2* and sparc64-*-* triplets.
11021 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11022 "symtab.h" and "objfiles.h".
11023 (BIAS): Remove define.
11024 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11025 (X_DISP19): Remove macros.
11026 (sparc_fetch_instruction): Remove function.
11027 (struct gdbarch_tdep): Remove definition.
11028 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11029 (sparc_breakpoint_from_pc): Remove function.
11030 (struct sparc64_frame_cache): Remove definition.
11031 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11032 sparc64_unwind_pc): Remove functions.
11033 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11034 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11035 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11036 (sparc64_frame_cache): Change return type to `struct
11037 sparc_frame_cache *'. Simply call sparc_frame_cache.
11038 (sparc64_frame_this_id, sparc64_frame_prev_register,
11039 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11040 instead of `struct sparc64_frame_cache.
11041 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11042 sparc_analyze_control_transfer, sparc_software_single_step,
11043 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11044 _initialize_sparc64_tdep): Remove functions.
11045 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11046 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11047 macros.
11048 (sparc64_supply_gregset, sparc64_collect_gregset,
11049 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11050 (sparc64_init_abi): New function.
11051 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11052 inclusion guard. Include "sparc-tdep.h".
11053 (BIAS): Define.
11054 (r_tstate_offset, r_fprs_offset): New defines.
11055 (enum sparc_regnum): Remove defenition.
11056 (enum sparc64_regnum): Reformat.
11057 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11058 (sparc64_init_abi, sparc64_supply_gregset,
11059 sparc64_collect_gregset, sparc64_supply_fpregset,
11060 sparc64_collect_fpregset): New prototypes.
11061 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11062 Add extern declarations.
11063 (sparc64_sol2_init_abi): New prototype.
11064 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11065 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11066 prototypes.
11067 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11068 "sparnbsd-nat.h".
11069 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11070 functions.
11071 (_initialize_sparc64fbsd_nat): Remove initialization of
11072 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11073 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11074 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11075 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11076 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11077 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11078 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11079 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11080 (sparc64fbsd_r_y_offset): Remove variables.
11081 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11082 Make static and const.
11083 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11084 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11085 functions.
11086 (sparc64fbsd_gregset): New variable.
11087 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11088 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11089 and sparc64_supply_fpregset.
11090 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11091 (sparc64fbsd_sigtramp_frame_this_id)
11092 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11093 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11094 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11095 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11096 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11097 * sparcnbsd-tdep.c: Update copyright year. Include
11098 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11099 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11100 "value.h" and "sparcnbsd-tdep.h".
11101 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11102 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11103 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11104 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11105 defines.
11106 (sparcnbsd_gregset): New variable.
11107 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11108 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11109 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11110 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11111 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11112 variables.
11113 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11114 (sparc32nbsd_sigcontext_frame_this_id)
11115 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11116 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11117 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11118 (sparcnbsd_get_longjmp_target_32,
11119 sparcnbsd_get_longjmp_target_64): Remove functions.
11120 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11121 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11122 sparcnbsd_init_elf): Remove.
11123 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11124 (sparcnbsd_elf_init_abi): New functions.
11125 (_initialize_sparcnbsd_tdep): New prototype.
11126 (_initialize_sparnbsd_tdep): Update.
11127 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11128 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11129 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11130 * config/sparc/linux.mh: Update comment.
11131 (XM_FILE, HOST_IPC): Remove variables.
11132 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11133 sparc-linux-nat.o.
11134 * config/sparc/linux.mt: Update comment.
11135 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11136 * config/sparc/nbsd.mt: Reformat.
11137 * config/sparc/nbsd64.mh: Update comment.
11138 (NATDEPFILES): Add sparc-nat.o.
11139 * config/sparc/nbsd64.mt: Update comment.
11140 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11141 (TM_FILE): Set to tm-nbsd.h.
11142 * config/sparc/nbsdelf.mh: Update comment.
11143 (NATDEPFILES): Add sparc-nat.o.
11144 (XM_FILE): Delete.
11145 * config/sparc/nbsdaout.mh: Update comment.
11146 (NATDEPFILES): Add sparc-nat.o
11147 (XM_FILE): Delete.
11148 * config/sparc/nm-linux.h: Update copyright year. Don't include
11149 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11150 inclusion.
11151 (KERNEL_U_SIZE): Remove define.
11152 (kernel_u_size): Remove prototype.
11153 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11154 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11155 "regcache.h".
11156 (CHILD_PREPARE_TO_STORE): Remove define.
11157 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11158 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11159 sparcnbsd-nat.c: Rewrite files.
11160 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11161 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11162 sparcnbsd-tdep.h: Remove files.
11163 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11164 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11165 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11166 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11167 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11168 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11169 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11170 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11171 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11172 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11173 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11174 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11175 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11176 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11177 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11178 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11179 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11180 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11181 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11182
11183 2004-01-02 Andrew Cagney <cagney@redhat.com>
11184
11185 From 2003-12-18 Kazuhiro Inaoka:
11186 * configure.host: Add m32r-linux target.
11187
11188 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11189
11190 * top.c (print_gdb_version): Update year to 2004.
11191
11192 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11193
11194 * MAINTAINERS: Add myself to the write-after-approval category.
11195
11196 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11197
11198 From Bernardo Innocenti <bernie@develer.com>:
11199 * configure.tgt: Add uClinux target.
11200
11201 2004-01-02 Andrew Cagney <cagney@redhat.com>
11202
11203 * utils.c (do_my_cleanups): Make static, add forward declaration.
11204 * defs.h (do_my_cleanups): Delete declaration.
11205
11206 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11207
11208 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11209 bfd/ChangeLog-0203.
11210
11211 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11212
11213 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11214 in <machine/reg.h>.
11215 * configure, config.in: Regenerate.
11216
11217 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11218 tui/ChangeLog-1998-2003.
11219 \f
11220 Local Variables:
11221 mode: change-log
11222 left-margin: 8
11223 fill-column: 74
11224 version-control: never
11225 End:
This page took 0.342117 seconds and 4 git commands to generate.