e5fa2245fe1a53849572848fbc924c8a852b6667
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2
3 * target.c (target_resize_to_sections): Check
4 current_target.to_sections for an old value when updating.
5
6 2004-08-27 Joel Brobecker <brobecker@gnat.com>
7
8 * procfs.c (dbx_link_bpt_addr): New static global variable.
9 (dbx_link_shadow_contents): New static global variable.
10 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
11 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
12 if we just hit it.
13 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
14 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
15 from run to run.
16 (procfs_create_inferior): Remove syssgi syscall-exit notifications
17 after the inferior has been forked.
18 (remove_dbx_link_breakpoint): New function.
19 (dbx_link_addr): New function.
20 (insert_dbx_link_bpt_in_file): New function.
21 (insert_dbx_link_bpt_in_region): New function.
22 (insert_dbx_link_breakpoint): New function.
23 (proc_trace_syscalls_1): New function, extracted from
24 proc_trace_syscalls.
25 (proc_trace_syscalls): Replace extract code by call to
26 proc_trace_syscalls_1.
27 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
28 is no longer valid.
29
30 2004-08-25 Jim Blandy <jimb@redhat.com>
31
32 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
33
34 2004-08-25 Andrew Cagney <cagney@gnu.org>
35
36 * infrun.c (struct execution_control_state): Delete field
37 "stepping_through_sigtramp".
38 (init_execution_control_state): Do not set same.
39 (context_switch): Do not pass same to save_infrun_state and
40 load_infrun_state.
41 * gdbthread.h (struct thread_info): Delete field
42 stepping_through_sigtramp.
43 (save_infrun_state, load_infrun_state): Delete parameter
44 stepping_through_sigtramp.
45 * thread.c (load_infrun_state, save_infrun_state): Update.
46
47 * infrun.c: Re-indent. Move expression operators to the beginning
48 of the line. Remove long disabled #if 0 code.
49
50 2004-08-24 Andrew Cagney <cagney@gnu.org>
51
52 * doublest.h (floatformat_ieee_quad): Rename
53 floatformat_ia64_quad.
54 * doublest.c (floatformat_ieee_quad): Rename
55 floatformat_ia64_quad.
56 (_initialize_doublest): Update.
57
58 2004-08-24 Jim Blandy <jimb@redhat.com>
59
60 * dwarf2expr.h (struct dwarf_expr_context): New members
61 'num_pieces' and 'pieces', for returning the result of an
62 expression that uses DW_OP_piece.
63 (struct dwarf_expr_piece): New struct type.
64 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
65 pieces.
66 (free_dwarf_expr_context): Free pieces, if any.
67 (add_piece): New function.
68 (execute_stack_op): Implement DW_OP_piece.
69 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
70 expression is a list of pieces, print an error message.
71 (dwarf2_loc_desc_needs_frame): If the expression yields
72 pieces, and any piece is in a register, then we need a frame.
73
74 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
75 the stack until we've decided what sort of result the evaluation
76 has produced. Use separate variables, with more specific names.
77
78 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
79
80 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
81 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
82 (arm_netbsd_init_abi_common): Register them.
83
84 2004-08-22 Mark Kettenis <kettenis@gnu.org>
85
86 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
87
88 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
89 safe_frame_unwind_memory instead of target_read_memory.
90
91 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
92 Reorder includes.
93 (fetch_register, store_register): Remove prototypes.
94 (child_resume): Reorganize code and comments such that it is
95 grouped a bit more logically.
96 (attach): Explicitly compare errno against 0.
97 (detach): Likewise. Use perror_with_name instead of
98 print_sys_errmsg.
99 * Makefile.in (infptrace.o): Update dependencies.
100
101 * ia64-linux-nat.c: Update copyright year.
102 (fetch_debug_register, store_debug_register)
103 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
104 PTRACE_TYPE_ARG3.
105 * config/ia64/nm-linux.h: Update copyright year.
106 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
107
108 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
109 from CORE_ADDR to struct frame_info *. Use
110 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
111 (amd64_linux_sigtramp_p): Adjust for changed signature of
112 and64_linux_sigtramp_start
113
114 * gdb_ptrace.h: GNU/Linux.
115
116 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
117 Remove defines.
118
119 * infptrace.c: Include "gdb_assert.h".
120 (PTRACE_XFER_TYPE): Remove define.
121 (offsetof): Only define if U_REGS_OFFSET isn't defined.
122 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
123 Tweak comment.
124 (fetch_inferior_registers, store_inferior_registers): Remove
125 redundant culry braces. Tweak comment. s/regno/regnum.
126 * Makefile.in (infptrace.o): Update dependencies.
127
128 * configure.in: Change test for return type of ptrace to default
129 to `long' instead of `int'.
130 * configure: Regenerate.
131
132 2004-08-21 Mark Kettenis <kettenis@gnu.org>
133
134 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
135
136 * configure.in: Check for ttrace function.
137 * configure, config.in: Regenerate.
138
139 * gdb_ptrace.h: New file.
140 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
141 <sys/ptrace.h>.
142 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
143 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
144 (attach): Don't define PT_ATTACH.
145 (detach): Don't define PT_DETACH.
146 * Makefile.in (gdb_ptrace_h): New variable.
147 (infptrace.o): Update dependencies.
148
149 2004-08-16 Mark Kettenis <kettenis@gnu.org>
150
151 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
152 instead of `int' if not already defined.
153 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
154 PTRACE_TYPE_ARG3.
155 * infptrace.c (call_ptrace): Revert change that replaced
156 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
157
158 2004-08-15 Mark Kettenis <kettenis@gnu.org>
159
160 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
161 Remove defines.
162
163 * linux-nat.c (kill_inferior): Add missing third and fourth
164 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
165
166 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
167 PTRACE_TYPE_RET.
168
169 * proc-why.c (proc_prettyfprint_why): Fix format string.
170
171 * solib-osf.c (osf_current_sos): Remove unsused label.
172
173 * configure.in: Add <ncurses/ncurses.h> to the list of possible
174 curses headers.
175 * configure, config.in: Regenerate.
176 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
177 <ncurses/ncurses.h>.
178
179 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
180 * config/nm-nbsd.h: Update copyright year.
181 (PTRACE_ARG3_TYPE): Remove define.
182
183 * sparc-nat.c (fetch_inferior_registers)
184 (store_inferior_registers, sparc_xfer_wcookie):
185 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
186
187 * alphabsd-nat.c (fetch_inferior_registers):
188 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
189 PTRACE_TYPE_ARG3.
190 * amd64bsd-nat.c (fetch_inferior_registers)
191 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
192 PTRACE_TYPE_ARG3.
193 * armnbsd-nat.c: Update copyright year.
194 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
195 (store_register, store_regs, store_fp_register, store_fp_regs):
196 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
197 * hppabsd-nat.c (fetch_inferior_registers)
198 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
199 PTRACE_TYPE_ARG3.
200 * i386bsd-nat.c (fetch_inferior_registers)
201 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
202 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
203 * m68kbsd-nat.c (fetch_inferior_registers)
204 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
205 PTRACE_TYPE_ARG3.
206 * m88kbsd-nat.c (fetch_inferior_registers)
207 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
208 PTRACE_TYPE_ARG3.
209 * mipsnbsd-nat.c: Update copyright year.
210 (fetch_inferior_registers, store_inferior_registers):
211 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
212 * ns32knbsd-nat.c: Update copyright year.
213 (fetch_inferior_registers, store_inferior_registers):
214 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
215 * ppcnbsd-nat.c (fetch_inferior_registers):
216 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
217 PTRACE_TYPE_ARG3.
218 * ppcobsd-nat.c (fetch_inferior_registers):
219 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
220 PTRACE_TYPE_ARG3.
221 * shnbsd-nat.c: Update copyright year.
222 (fetch_inferior_registers, store_inferior_registers):
223 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
224 * vaxbsd-nat.c (fetch_inferior_registers)
225 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
226 PTRACE_TYPE_ARG3.
227
228 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
229 PTRACE_TYPE_ARG3.
230 * infptrace.c (call_ptrace, child_resume, attach, detach)
231 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
232 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
233 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
234 PTRACE_TYPE_ARG3.
235
236 2004-08-14 Mark Kettenis <kettenis@gnu.org>
237
238 * defs.h: Remove out-of-date comment.
239 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
240 [!GETENV_PROVIDED] (getenv): Remove prototype.
241
242 * standalone.c: Remove file.
243 * Makefile.in (standalone.o): Remove dependency.
244
245 * i386-linux-nat.c (dummy_sse_values): Remove function and
246 prototype.
247 (i386_linux_dr_get): Fix typo in comment.
248 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
249
250 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
251
252 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
253 from declaration.
254 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
255 from definition.
256
257 2004-08-13 Mark Kettenis <kettenis@gnu.org>
258
259 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
260 parenthesis in definition.
261 * configure: Regenerated.
262
263 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
264
265 * PROBLEMS: Mention build/1411.
266
267 2004-08-09 Robert Millan <robertmh@gnu.org>
268
269 Committed by Nathanael Nerode.
270 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
271 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
272
273 2004-08-12 Andrew Cagney <cagney@gnu.org>
274
275 * NEWS: Mention fixes in GDB 6.2.1.
276 * PROBLEMS: Remove mention of mips-irix.
277
278 2004-08-11 Joel Brobecker <brobecker@gnat.com>
279
280 * config/powerpc/xm-aix.h: Delete.
281 * config/powerpc/aix.mh (MH_FILE): Remove.
282 * config/powerpc/aix432.mh (MH_FILE): Remove.
283
284 2004-08-11 Joel Brobecker <brobecker@gnat.com>
285
286 * config/powerpc/aix.mh: Remove obsolete comment.
287 * config/powerpc/aix432.mh: Likewise.
288
289 2004-08-11 Joel Brobecker <brobecker@gnat.com>
290
291 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
292
293 2004-08-11 Joel Brobecker <brobecker@gnat.com>
294
295 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
296 this file is now empty.
297 * config/xm-aix4.h: Remove, this file is no longer included
298 anywhere.
299
300 2004-08-11 Joel Brobecker <brobecker@gnat.com>
301
302 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
303 that file is now empty.
304 (termdef): Remove prototype, function no longer used.
305
306 2004-08-11 Joel Brobecker <brobecker@gnat.com>
307
308 * doc/gdbint.texinfo (Host Definition): Remove documentation
309 for USE_O_NOCTTY, no longer used.
310 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
311 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
312
313 2004-08-11 Joel Brobecker <brobecker@gnat.com>
314
315 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
316 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
317 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
318
319 2004-08-11 Mark Kettenis <kettenis@gnu.org>
320
321 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
322 instead of FIVE_ARG_PTRACE.
323
324 * inflow.c (O_NOCTTY): Define to zero if not already defined.
325 (new_tty): Use O_NOCTTY unconditionally.
326
327 2004-08-10 Mark Kettenis <kettenis@gnu.org>
328
329 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
330 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
331 fflush on stdout.
332
333 2004-08-10 Joel Brobecker <brobecker@gnat.com>
334
335 * xcoff_symfile_finish: Replace last call to xmfree by call
336 to xfree.
337
338 2004-08-10 Andrew Cagney <cagney@gnu.org>
339
340 * main.c (captured_main): Delete call to init_malloc.
341 * defs.h (init_malloc): Delete declaration.
342 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
343 (init_malloc): Delete functions.
344
345 * defs.h (xmfree): Delete.
346 * utils.c (xmfree): Delete function.
347 (xfree): Inline calls to xmfree and mfree.
348 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
349 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
350 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
351 * somread.c (som_symfile_finish): Ditto.
352 * objfiles.c (allocate_objfile, free_objfile):
353 * nlmread.c (nlm_symfile_finish): Ditto.
354 * hpread.c (hpread_symfile_finish): Ditto.
355 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
356 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
357 * coffread.c (coff_symfile_finish): Ditto.
358
359 * defs.h (xmcalloc): Delete declaration.
360 * utils.c (xmcalloc): Delete.
361 (xcalloc): Inline calls to xmcalloc and mcalloc.
362 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
363 xcalloc and xfree.
364 * symtab.c (create_demangled_names_hash): Ditto.
365
366 * defs.h (xmrealloc): Delete.
367 * utils.c (xmrealloc): Delete.
368 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
369 * symmisc.c (extend_psymbol_list): Use xrealloc.
370 * source.c (find_source_lines): Ditto.
371 * hpread.c (hpread_lookup_type): Ditto.
372 * dbxread.c (add_bincl_to_list): Ditto.
373
374 * utils.c (xmmalloc): Delete.
375 (xmalloc): Inline xmmalloc and mmalloc calls.
376 (msavestring): Use xmalloc.
377 * defs.h (xmmalloc): Delete declaration.
378 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
379 xmmalloc.
380 * symmisc.c (extend_psymbol_list): Ditto.
381 * symfile.c (init_psymbol_list): Ditto.
382 * source.c (find_source_lines): Ditto.
383 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
384 * elfread.c (elf_symtab_read): Ditto.
385 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
386 * coffread.c (coff_symfile_init): Ditto.
387
388 2004-08-10 David Carlton <carlton@bactrian.org>
389
390 * MAINTAINERS: Remove David Carlton from c++ testsuite
391 maintainers.
392
393 2004-08-10 Jerome Guitton <guitton@gnat.com>
394
395 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
396 print a line feed before the prompt.
397
398 2004-08-10 Mark Kettenis <kettenis@gnu.org>
399
400 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
401
402 2004-08-09 Joel Brobecker <brobecker@gnat.com>
403
404 General cleanup of the AIX xm include file:
405 * config/xm-aix4.h (fd_set): Remove undefine.
406 Remove include of <sys/select.h>.
407 (HAVE_TERMIO): Remove define.
408 (USG): Likewise.
409 (NULL): Remove redefine.
410 (alloca): Remove #pragma.
411 (vfork): Remove define.
412 (termdef): Remove.
413 (SIGWINCH_HANDLER): Remove.
414 (SIGWINCH_HANDLER_BODY): Remove.
415
416 2004-08-09 Mark Kettenis <kettenis@gnu.org>
417
418 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
419 GDB_OSABI_OPENBSD_ELF.
420
421 2004-08-07 Robert Millan <robertmh@gnu.org>
422
423 * bsd-kvm.c: Check for nlist.h before including it.
424
425 2004-08-09 Mark Kettenis <kettenis@gnu.org>
426
427 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
428 sigcontext' offset consistency checks for ancient BSD.
429
430 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
431
432 * configure.in: Check for <sys/types.h>. Check return and
433 argument types of ptrace.
434 * configure, config.in: Regenerate.
435
436 2004-08-09 Jim Blandy <jimb@redhat.com>
437
438 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
439 rs6000_register_sim_regno): Doc fixes.
440
441 2004-08-08 Joel Brobecker <brobecker@gnat.com>
442
443 * mips-tdep.c: Include "floatformat.h".
444 (n32n64_floatformat_always_valid): New function.
445 (floatformat_n32n64_long_double_big): New constant.
446 (mips_gdbarch_init): Set size and format of long double
447 for N32 and N64 ABIs.
448 * Makefile.in (mips-tdep.o): Update dependencies.
449
450 2004-08-08 Andrew Cagney <cagney@gnu.org>
451
452 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
453 print. Improve script's error messages.
454 * gdbarch.h: Re-generate.
455
456 * gdbarch.sh (pformat): New function.
457 (float_format, double_format, long_double_format): List with bit
458 members. Use pformat when printing.
459 * gdbarch.c, gdbarch.h: Re-generate.
460
461 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
462
463 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
464 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
465 (ppcnbsd_supply_pcb): New function.
466 (_initialize_ppcnbsd_nat): New prototype and function.
467 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
468 (LOADLIBES): New variable.
469 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
470
471 2004-08-08 Andrew Cagney <cagney@gnu.org>
472
473 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
474 (builtin_type_ieee_double, builtin_type_ia64_quad)
475 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
476 BE/LE floating-point types.
477 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
478 (builtin_type_ieee_double, builtin_type_ia64_quad)
479 (builtin_type_ia64_spill): Declare.
480 * doublest.c (_initialize_doublest, floatformat_ieee_single)
481 (floatformat_ieee_double, floatformat_arm_ext)
482 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
483 of LE/BE floatformats.
484 * doublest.h: (struct floatformat, floatformat_ieee_single)
485 (floatformat_ieee_double, floatformat_arm_ext)
486 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
487
488 2004-08-08 Mark Kettenis <kettenis@gnu.org>
489
490 * i386gnu-nat.c (gnu_store_registers): Fix typo.
491
492 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
493 instead of regcache_raw_supply when storing the registers.
494
495 * i386gnu-nat.c: Update copyright year.
496 (gnu_store_registers): Don't use deprecated_registers and
497 deprecated_registers_valid. Use regcache_valid_p and
498 regcache_raw_supply instead.
499
500 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
501 frame_pc_unwind.
502
503 * procfs.c (procfs_pid_to_str): Remove redundant and unused
504 variables. Incapitalized "process".
505
506 * configure.in: Add cursesX to the list of possible curses libs.
507 Add cursesX.h to the list of possible curses headers.
508 * configure, config.in: Regenerate.
509
510 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
511
512 * configure.in: Test for struct lwp in <sys/lwp.h>.
513 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
514 the offset of l_addr in struct lwp.
515
516 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
517
518 * bsd-kvm.c: Include "gdbcore.h"
519 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
520
521 2004-08-07 Andrew Cagney <cagney@gnu.org>
522
523 * gdbtypes.c (build_flt, build_complex): New functions.
524 (gdbtypes_post_init): Use.
525
526 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
527
528 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
529 through to builtin_type_uint128.
530
531 * c-exp.y: Use builtin_type function to obtain builtin types.
532
533 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
534 builtin_uint128.
535 * gdbtypes.c (gdbtypes_post_init): Update.
536 (build_gdbtypes): Move initialization of builtin_type_int0
537 through to builtin_type_uint128 from here ...
538 (_initialize_gdbtypes): ... to here.
539 * d10v-tdep.c (d10v_register_type): Update.
540
541 * doublest.c: Update copyright.
542 (floatformat_from_length): Call error when floatformat is NULL.
543 (extract_floating_by_length): Remove NULL fmt check.
544 (store_floating_by_length): Ditto.
545
546 2004-08-07 Andrew Cagney <cagney@gnu.org>
547
548 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
549 that the register is valid.
550
551 2004-08-05 Mark Kettenis <kettenis@chello.nl>
552
553 * i386-linux-tdep.c (i386_linux_sigtramp_start)
554 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
555 struct frame_info *. Use safe_frame_unwind_memory instead of
556 deprecated_read_memory_nobpt.
557 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
558 changed signature of i386_linux_sigtramp_start and
559 i386_linux_rt_sigtramp_start.
560
561 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
562 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
563 instead of deprecated_read_memory_nobpt.
564 (i386nbsd_sigtramp_p): Adjust for changed signature of
565 i386nbsd_sigtramp_offset.
566
567 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
568 safe_frame_unwind_memory instead of target_read_memory.
569
570 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
571 !NO_SYS_FILE.
572 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
573 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
574 (_initialize_kernel_u_addr): Remove prototype and function.
575 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
576 !NO_SYS_FILE.
577 * xcoffread.c: Likewise.
578
579 2004-08-06 Mark Kettenis <kettenis@gnu.org>
580
581 * vax-nat.c: New file.
582 * vaxbsd-nat.c: Tweak comment.
583 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
584 vaxnbsd-tdep.c.
585 (vax-nat.o): New dependency.
586 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
587 (vax-*-ultrix2*): Remove.
588 * config/vax/vax.mh: New file.
589 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
590 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
591 (vax_register_u_addr): New prototype.
592 (REGISTER_U_ADDR): Define using vax_register_u_addr.
593 * config/vax/vaxult2.mh: Remove file.
594 * config/vax/vaxult.mh: Remove file.
595 * config/vax/vaxbsd.mh: Remove file.
596 * config/vax/vax.mt (TM_FILE): Remove.
597 * config/vax/tm-vaxbsd.h: Remove file.
598
599 2004-08-06 Joel Brobecker <brobecker@gnat.com>
600
601 * aix-thread.c (get_signaled_thread): New function.
602 (iter_trap): Delete, no longer used.
603 (iter_tid): New function.
604 (pd_update): Find the thread that received the SIGTRAP signal
605 by first locating the kernel thread, and then finding its
606 associated thread.
607
608 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
609
610 * lin-lwp.c (child_wait): Continue inferior after processing
611 PTRACE_EVENT_CLONE event.
612
613 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
614
615 * MAINTAINERS: Add self to Write-After-Approval.
616
617 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
618
619 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
620 libunwind-xxxx.so" where xxxx is UNW_TARGET.
621
622 2004-08-05 Andrew Cagney <cagney@gnu.org>
623
624 * config/xm-sysv4.h: Delete file.
625 * config/mips/xm-irix5.h: Delete file.
626 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
627 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
628 * config/ia64/xm-aix.h: Delete file.
629 * config/ia64/aix.mh (XM_FILE): Delete.
630 * config/pa/xm-hppah.h: Delete file.
631 * config/pa/hpux11w.mh (XM_FILE): Delete.
632 * config/pa/hpux11.mh (XM_FILE): Delete.
633 * config/pa/hpux1020.mh (XM_FILE): Delete.
634 * config/pa/hppahpux.mh (XM_FILE): Delete.
635
636 * config/alpha/xm-alphalinux.h: Delete file.
637 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
638 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
639 * config/alpha/xm-alphaosf.h: Delete file.
640 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
641 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
642 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
643 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
644
645 * config/i386/xm-i386v.h: Delete file.
646 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
647 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
648 * config/i386/xm-i386sco.h: Delete file.
649 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
650 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
651 * config/i386/xm-i386v4.h: Delete file.
652 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
653 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
654 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
655 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
656
657 * config/vax/xm-vax.h: Delete file.
658 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
659 * config/vax/xm-vaxult2.h: Delete file.
660 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
661 * config/vax/vaxult2.mh (XM_FILE): Delete.
662 * config/vax/xm-vaxult.h: Delete file.
663 * config/vax/vaxult.mh (XM_FILE): Delete.
664 * config/vax/xm-vaxbsd.h: Delete file.
665 * config/vax/vaxbsd.mh (XM_FILE): Delete.
666
667 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
668 * gdbarch.h, gdbarch.c: Re-generate.
669 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
670 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
671 * frame.h: Delete deprecated_read_fp from comments.
672 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
673 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
674
675 2004-08-04 Mark Kettenis <kettenis@gnu.org>
676
677 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
678 trampoline in OpenBSD 3.5-current.
679
680 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
681 SSE registers.
682
683 * Makefile.in: Remove embedded page breaks.
684
685 2004-08-04 Jim Blandy <jimb@redhat.com>
686
687 * regcache.c (regcache_raw_read): Assert that, after calling
688 target_fetch_registers, the register we're reading is cached.
689
690 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
691 a call to 'internal_error', with a more helpful error message.
692 * rs6000-tdep.c (e500_pseudo_register_read,
693 e500_pseudo_register_write, rs6000_store_return_value): Same.
694
695 2004-08-04 Andrew Cagney <cagney@gnu.org>
696
697 * Makefile.in: Update dependencies.
698
699 2004-08-04 Jim Blandy <jimb@redhat.com>
700
701 Change the layout of the PowerPC E500 raw register cache to allow
702 the lower 32-bit halves of the GPRS to be their own raw registers,
703 not pseudoregisters.
704 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
705 add ppc_ev0_upper_regnum flag.
706 * rs6000-tdep.c: #include "reggroups.h".
707 (spe_register_p): Recognize the ev upper half registers as SPE
708 registers.
709 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
710 registers.
711 (e500_move_ev_register): New function.
712 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
713 vector registers are the pseudo-registers now, formed by splicing
714 together the gprs and the upper-half registers.
715 (e500_register_reggroup_p): New function.
716 (P): Macro deleted.
717 (P8, A4): New macro.
718 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
719 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
720 macros.
721 (registers_e500): Rearrange register set so that the raw register
722 set contains 32-bit GPRs and upper-half registers, and the SPE
723 vector registers become pseudo-registers.
724 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
725 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
726 register numbers are now the same for the E500 as they are for
727 other PowerPC variants. Register e500_register_reggroup_p as the
728 register group function for the E500.
729 * Makefile.in (rs6000-tdep.o): Update dependencies.
730
731 Adapt PPC E500 native support to the new raw regcache layout.
732 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
733 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
734 (fetch_spe_register, store_spe_register): Handle fetching/storing
735 all the SPE registers at once, if regno == -1. These now take
736 over the job of fetch_spe_registers and store_spe_registers.
737 (fetch_spe_registers, store_spe_registers): Deleted.
738 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
739 unconditionally; they're always raw. Fetch/store SPE upper half
740 registers, if present, instead of ev registers.
741 (fetch_register, store_register): Remove sanity checks: gprs are
742 never pseudo-registers now, so we never need to even mention any
743 registers that are ever pseudoregisters.
744
745 Use a fixed register numbering when communicating with the PowerPC
746 simulator.
747 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
748 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
749 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
750 New functions.
751 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
752 init_sim_regno_table.
753 * Makefile.in (gdb_sim_ppc_h): New variable.
754 (rs6000-tdep.o): Update dependencies.
755
756 2004-08-02 Andrew Cagney <cagney@gnu.org>
757
758 * cris-tdep.c (cris_register_size): Restore function, still used
759 locally.
760
761 * gdbarch.sh (deprecated_target_read_fp)
762 (deprecated_frame_locals_address, deprecated_frame_args_address)
763 (deprecated_frame_chain_valid, deprecated_frame_chain)
764 (deprecated_init_extra_frame_info, deprecated_pop_frame)
765 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
766 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
767 * gdbarch.h, gdbarch.c: Re-generate.
768 * regcache.c (deprecated_read_fp): Do not call
769 DEPRECATED_TARGET_READ_FP_P.
770 * infcmd.c (default_print_registers_info): Do not call
771 DEPRECATED_DO_REGISTERS_INFO.
772 * frame-base.c (default_frame_locals_address): Do not call
773 DEPRECATED_FRAME_LOCALS_ADDRESS.
774 (default_frame_args_address): Do not call
775 DEPRECATED_FRAME_ARGS_ADDRESS.
776
777 * gdbarch.sh (deprecated_register_raw_size)
778 (deprecated_register_virtual_size:int): Delete.
779 * gdbarch.h, gdbarch.c: Re-generate.
780 * cris-tdep.c (cris_register_size): Delete.
781 (cris_gdbarch_init): Update.
782 * alpha-tdep.c (alpha_register_raw_size)
783 (alpha_register_virtual_size): Delete.
784 (alpha_gdbarch_init): Update.
785
786 * gdbarch.sh (deprecated_register_virtual_type)
787 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
788 (deprecated_dummy_write_sp): Delete.
789 * gdbarch.h, gdbarch.c: Re-generate.
790
791 * gdbarch.sh (deprecated_register_bytes): Delete.
792 * gdbarch.h, gdbarch.c: Re-generate.
793 * regcache.c (deprecated_register_bytes): New function.
794 * regcache.h (deprecated_register_bytes): Declare.
795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
796 * v850-tdep.c (v850_gdbarch_init): Update.
797 * sh64-tdep.c (sh64_gdbarch_init): Update.
798 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
799 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
800 * mcore-tdep.c (mcore_gdbarch_init): Update.
801 * cris-tdep.c (cris_gdbarch_init): Update.
802 * arm-tdep.c (arm_gdbarch_init): Update.
803 * remote.c (init_remote_state): Update.
804 * remote-vx.c (vx_prepare_to_store): Update.
805 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
806 * irix5-nat.c (fetch_core_registers): Update.
807 * cris-tdep.c (cris_register_bytes_ok): Update.
808 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
809
810 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
811 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
812 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
813 (mips_insn16_frame_base_address, mips_insn16_frame_base)
814 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
815 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
816 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
817 (mips_insn32_frame_base_address, mips_insn32_frame_base)
818 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
819 with mips_insn16 and mips_insn32.
820
821 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
822 * rs6000-tdep.c (rs6000_push_dummy_call)
823 (rs6000_extract_return_value): Use register_size.
824 * xstormy16-tdep.c (xstormy16_get_saved_register)
825 (xstormy16_extract_return_value): Ditto.
826 * valops.c (value_assign): Ditto.
827 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
828 * v850-tdep.c (v850_extract_return_value): Ditto.
829 * tracepoint.c (collect_symbol): Ditto.
830 * target.c (debug_print_register): Ditto.
831 * stack.c (frame_info): Ditto.
832 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
833 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
834 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
835 (store_register_using_P): Ditto.
836 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
837 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
838 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
839 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
840 * regcache.c (deprecated_read_register_bytes)
841 (deprecated_write_register_bytes, read_register)
842 (write_register): Ditto.
843 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
844 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
845 * monitor.c (monitor_supply_register, monitor_fetch_register)
846 (monitor_store_register): Ditto.
847 * mn10300-tdep.c (mn10300_pop_frame_regular)
848 (mn10300_print_register): Ditto.
849 * mipsv4-nat.c (fill_fpregset): Ditto.
850 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
851 (mips64_fill_fpregset): Ditto.
852 * mi/mi-main.c (register_changed_p, get_register)
853 (mi_cmd_data_write_register_values): Ditto.
854 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
855 * irix5-nat.c (fill_gregset, fetch_core_registers):
856 * infrun.c (write_inferior_status_register): Ditto.
857 * infptrace.c (fetch_register, store_register): Ditto.
858 * infcmd.c (default_print_registers_info): Ditto.
859 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
860 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
861 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
862 * hpux-thread.c (hpux_thread_fetch_registers)
863 (hpux_thread_store_registers): Ditto.
864 * hppah-nat.c (store_inferior_registers, fetch_register):
865 * findvar.c (value_from_register): Ditto.
866 * dve3900-rom.c (fetch_bitmapped_register):
867 * cris-tdep.c (cris_gdbarch_init): Ditto.
868 * alpha-tdep.h: Ditto.
869 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
870
871 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
872 DEPRECATED_REGISTER_RAW_SIZE from comments.
873 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
874 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
875 DEPRECATED_REGISTER_RAW_SIZE.
876 * findvar.c (value_of_register): Simplify by assuming that the
877 registers raw and virtual sizes are identical.
878 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
879 comment.
880 * arch-utils.c (generic_register_size): Simplify by assuming
881 register_type.
882
883 * regcache.c (legacy_read_register_gen, real_register)
884 (legacy_write_register_gen): Delete, not used.
885
886 * regcache.c (struct regcache_descr): Delete legacy_p.
887 (init_legacy_regcache_descr): Delete function.
888 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
889 Do not use deprecated register functions.
890 (regcache_raw_read, deprecated_write_register_gen):
891 (deprecated_read_register_gen, regcache_raw_write): Delete code
892 predicated on legacy_p.
893 (register_size): Delete check against register raw size.
894
895 * cris-tdep.c (cris_register_type): Replace
896 cris_register_virtual_type.
897 (cris_gdbarch_init): Update, set register_type.
898
899 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
900 * gdbarch.h, gdbarch.c: Re-generate.
901 * arm-tdep.c (arm_frameless_function_invocation): Delete.
902 (arm_gdbarch_init) Do not set frameless function invocation.
903 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
904 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
905 * frv-tdep.c (frv_frameless_function_invocation): Delete.
906 (frv_gdbarch_init): Do not set frameless function invocation.
907 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
908 * sh-tdep.c (sh_gdbarch_init): Ditto.
909 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
911 * avr-tdep.c (avr_gdbarch_init): Ditto.
912
913 * blockframe.c (legacy_frame_chain_valid): Delete function.
914
915 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
916 and pc. Update comments.
917 (pc_in_dummy_frame): Delete function.
918 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
919 use the "id".
920 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
921 call_hi, top and pc, use the id.
922 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
923
924 * dummy-frame.c: Include "gdb_string.h".
925 (generic_save_call_dummy_addr, generic_push_dummy_frame)
926 (generic_save_dummy_frame_tos): Delete.
927 (dummy_frame_push): New function, replaces above.
928 * dummy-frame.h: Update copyright.
929 (dummy_frame_push): Declare.
930 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
931 (generic_save_call_dummy_addr): Delete declarations.
932 * infcall.c: Include "dummy-frame.h".
933 (call_function_by_hand): Add locals caller_regcache,
934 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
935 with call to frame_save_as_regcache plus cleanup. Delete calls to
936 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
937 Move clear_proceed_status to just before the resume, add call to
938 dummy_frame_push (discard cleanup).
939 * Makefile.in (infcall.o): Add $(dummy_frame_h).
940 (dummy-frame.o): Add $(gdb_string_h).
941
942 2004-08-01 Andrew Cagney <cagney@gnu.org>
943
944 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
945 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
946 * dummy-frame.c (find_dummy_frame): Delete.
947 (struct dummy_frame_cache, dummy_frame_sniffer)
948 (dummy_frame_prev_register, dummy_frame_this_id)
949 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
950 frame unwinder using a dummy_frame_cache.
951
952 2004-08-01 Andrew Cagney <cagney@gnu.org>
953
954 * frame.h (frame_save_as_regcache): Declare.
955 * frame.c (frame_save_as_regcache): New function.
956 (do_frame_read_register): Replace do_frame_unwind_register.
957 (frame_pop): Use frame_save_as_regcache.
958 * dummy-frame.c (generic_push_dummy_frame): Use
959 frame_save_as_regcache.
960
961 2004-08-01 Joel Brobecker <brobecker@gnat.com>
962
963 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
964 file as included until we record the first line in the linetable.
965
966 2004-08-01 Andrew Cagney <cagney@gnu.org>
967
968 * frame.h (deprecated_pop_dummy_frame)
969 (deprecated_read_register_dummy)
970 (deprecated_generic_find_dummy_frame): Delete.
971 * dummy-frame.c (deprecated_generic_find_dummy_frame)
972 (deprecated_read_register_dummy)
973 (deprecated_find_dummy_frame_regcache)
974 (discard_innermost_dummy)
975 (deprecated_pop_dummy_frame): Delete.
976 (dummy_frame_this_id): Simplify.
977 (struct dummy_frame): Delete "fp" and "sp".
978 (find_dummy_frame): Simplify.
979 (generic_push_dummy_frame): Do not set "fp" or "sp".
980 (fprint_dummy_frames): Do not print "fp" and "sp"
981
982 2004-08-01 Mark Kettenis <kettenis@gnu.org>
983
984 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
985 (struct i386_insn): New structure.
986 (i386_match_insn): New function.
987 (i386_frame_setup_skip_insns): New variable.
988 (i386_analyze_frame_setup): Change to use i386_match_insn and the
989 array i386_frame_setup_insns of instructions that should be
990 skipped inside the frame setup sequence.
991
992 2004-08-01 Andrew Cagney <cagney@gnu.org>
993
994 * frame.h (deprecated_frame_xmalloc_with_cleanup)
995 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
996 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
997 * stack.c (frame_info): Delete references to
998 DEPRECATED_FRAME_INIT_SAVED_REGS and
999 deprecated_get_frame_saved_regs.
1000 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1001 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1002 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1003 (frame_unwind_register_signed)
1004 (frame_unwind_register_unsigned)
1005 (frame_unwind_unsigned_register): Use register_size.
1006 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1007 (deprecated_frame_xmalloc_with_cleanup)
1008 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1009 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1010
1011 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1012 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1013 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1014 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1015
1016 * infcall.c (call_function_by_hand): Do not use
1017 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1018 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1019 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1020 DEPRECATED_STACK_ALIGN.
1021
1022 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1023
1024 Committed by Andrew Cagney.
1025 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1026
1027 2004-08-01 Andrew Cagney <cagney@gnu.org>
1028
1029 * mips-tdep.c (mips16_frame_cache)
1030 (mips16_frame_this_id, mips16_frame_prev_register)
1031 (mips16_frame_unwind, mips16_frame_sniffer)
1032 (mips16_frame_base_address, mips16_frame_base)
1033 (mips16_frame_base_sniffer, mips32_frame_cache)
1034 (mips32_frame_this_id, mips32_frame_prev_register)
1035 (mips32_frame_unwind, mips32_frame_sniffer)
1036 (mips32_frame_base_address, mips32_frame_base)
1037 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1038 separate heuristic mips16 and mips32 unwinders.
1039 (mips_stub_frame_cache, mips_stub_frame_this_id)
1040 (mips_stub_frame_prev_register)
1041 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1042 (mips_stub_frame_base_address, mips_stub_frame_base)
1043 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1044 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1045 match true mdebug frames.
1046 (non_heuristic_proc_desc): Add forward declaration.
1047
1048 2004-08-01 Andrew Cagney <cagney@gnu.org>
1049
1050 * config/mips/tm-irix6.h: Delete file.
1051 * config/mips/tm-irix5.h: Delete file.
1052 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1053 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1054
1055 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1056 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1057 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1058 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1059 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1060 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1061 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1062 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1063 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1064 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1065 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1066 (TARGET_SIGNAL_RAW_VALUES): Delete.
1067 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1068 Delete.
1069 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1070 (TARGET_HW_WATCH_LIMIT): Delete.
1071 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1072 * minimon.h: Delete file.
1073
1074 * trad-frame.c (trad_frame_get_this_base)
1075 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1076 functions.
1077 * trad-frame.h (trad_frame_set_this_base)
1078 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1079
1080 2004-07-31 Andrew Cagney <cagney@gnu.org>
1081
1082 * trad-frame.c (trad_frame_get_prev_register): Rename
1083 trad_frame_get_prev_register.
1084 * vax-tdep.c (vax_frame_prev_register): Update.
1085 * trad-frame.h: Update.
1086 * trad-frame.c (trad_frame_get_register): Update.
1087 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1088 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1089 Update.
1090 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1091 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1092 Update.
1093 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1094 Update.
1095 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1096 Update.
1097 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1098 Update.
1099 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1100 Update.
1101 * s390-tdep.c (s390_frame_prev_register)
1102 (s390_stub_frame_prev_register)
1103 (s390_sigtramp_frame_prev_register): Update.
1104 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1105 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1106 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1107 * m88k-tdep.c (m88k_frame_prev_register)
1108 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1109 * m32r-tdep.c (m32r_frame_prev_register): Update.
1110 * hppa-tdep.c (hppa_frame_prev_register_helper)
1111 * frv-tdep.c (frv_frame_prev_register): Update.
1112 * d10v-tdep.c (d10v_frame_prev_register): Update.
1113 * cris-tdep.c (cris_frame_prev_register): Update.
1114 * avr-tdep.c (avr_frame_prev_register): Update.
1115 * arm-tdep.c (arm_prologue_prev_register)
1116 (arm_sigtramp_prev_register): Update.
1117
1118 2004-07-31 Andrew Cagney <cagney@gnu.org>
1119
1120 * frame.h (legacy_saved_regs_unwind)
1121 (legacy_frame_chain_valid, legacy_frame_p)
1122 (enum frame_type): Delete UNKNOWN_FRAME.
1123 * dummy-frame.c (dummy_frame_this_id): Simplify.
1124 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1125 * frame.c (struct frame_info): Delete the field "type".
1126 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1127 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1128 (legacy_saved_regs_unwind, legacy_frame_p)
1129 (frame_type_from_pc): Delete.
1130 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1131 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1132
1133 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1134
1135 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1136 indentation.
1137
1138 * mips-nat.c: Remove file.
1139 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1140 (mips-nat.o): Remove dependency.
1141
1142 * infptrace.c: Update copyright year.
1143 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1144 explicitly setting the buffer to all zeroes.
1145
1146 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1147 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1148
1149 2004-07-30 Andrew Cagney <cagney@gnu.org>
1150
1151 * GDB 6.2 released from gdb_6_2-branch.
1152
1153 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1154
1155 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1156
1157 * exec.c (exec_file_attach):
1158 * nto-tdep.c (nto_find_and_open_solib):
1159 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1160 * solib.c (solib_open):
1161 * somsolib.c (som_solib_sizeof_symbol_table):
1162 * source.c (is_regular_file, openp, open_source_file):
1163 * symfile.c (symfile_bfd_open):
1164 * wince.c (upload_to_device): Differentiate between the search for
1165 binary and source files.
1166
1167 2004-07-30 Andrew Cagney <cagney@gnu.org>
1168
1169 * complaints.c (_initialize_complaints): Pass NULL to
1170 add_setshow_zinteger_cmd for help_doc.
1171 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1172
1173 2004-07-30 Andrew Cagney <cagney@gnu.org>
1174
1175 Fix PR i18n/761.
1176 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1177 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1178 $(PACKAGE).pot and update-po.
1179 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1180 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1181 (update-po): New rules.
1182 (localedir): Define using autoconf.
1183 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1184 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1185 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1186 * configure.in: Generate CATALOGS and LINGUAS from contents of
1187 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1188 * configure: Re-generate.
1189 * po/gdbtext: New file
1190
1191 2004-07-30 Jerome Guitton <guitton@gnat.com>
1192
1193 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1194 order.
1195
1196 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1197
1198 * dwarf2read.c (read_file_scope): Set producer if attribute
1199 present.
1200 (struct dwarf2_cu): Added new member producer.
1201
1202 2004-07-30 Jerome Guitton <guitton@gnat.com>
1203
1204 * inflow.c (kill_command): release file handles in BFD.
1205 * exec.c (exec_file_attach): Ditto.
1206 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1207
1208 2004-07-29 Andrew Cagney <cagney@gnu.org>
1209
1210 * PROBLEMS (mips-irix): Note that it is broken.
1211
1212 2004-07-29 Andrew Cagney <cagney@gnu.org>
1213
1214 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1215 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1216
1217 * config/xm-nbsd.h: Delete file.
1218 * config/arm/xm-nbsd.h: Delete file.
1219 * config/i386/xm-nbsd.h: Delete file.
1220 * config/ns32k/xm-nbsd.h: Delete file.
1221 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1222 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1223 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1224 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1225 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1226
1227 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1228 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1229 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1230 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1231 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1232 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1233
1234 * config/powerpc/xm-linux.h: Delete empty file.
1235 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1236 * config/powerpc/linux.mh (XM_FILE): Delete.
1237 * config/m68k/xm-linux.h: Delete empty file.
1238 * config/m68k/linux.mh (XM_FILE): Delete.
1239 * config/ia64/xm-linux.h: Delete empty file.
1240 * config/ia64/linux.mh (XM_FILE): Delete.
1241 * config/arm/xm-linux.h: Delete empty file.
1242 * config/arm/linux.mh (XM_FILE): Delete.
1243
1244 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1245 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1246 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1247 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1248 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1249 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1250 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1251 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1252
1253 * config/m68k/xm-m68k.h: Delete file.
1254 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1255 copyright.
1256 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1257 * config/pa/xm-linux.h: Delete empty file.
1258 * config/pa/linux.mh (XM_FILE): Delete.
1259 * config/i386/xm-i386.h: Delete empty file.
1260 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1261 "i386/xm-i386.h".
1262 * config/i386/obsdaout.mh (XM_FILE): Delete.
1263 * config/i386/obsd64.mh (XM_FILE): Delete.
1264 * config/i386/fbsd64.mh (XM_FILE): Delete.
1265 * config/i386/nto.mh (XM_FILE): Delete.
1266 * config/i386/obsd.mh (XM_FILE): Delete.
1267 * config/i386/linux64.mh (XM_FILE): Delete.
1268 * config/i386/linux.mh (XM_FILE): Delete.
1269 * config/i386/i386sol2.mh (XM_FILE): Delete.
1270 * config/i386/i386gnu.mh (XM_FILE): Delete.
1271 * config/i386/fbsd.mh (XM_FILE): Delete.
1272 * config/i386/nbsd64.mh (XM_FILE): Delete.
1273
1274 2004-07-29 Andrew Cagney <cagney@gnu.org>
1275
1276 * config/pa/xm-linux.h: Do not include "floatformat.h".
1277 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1278 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1279 * config/i386/xm-i386.h: Do not include "floatformat.h".
1280 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1281 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1282 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1283 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1284 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1285 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1286 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1287 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1288 * configure, config.in: Regenerate.
1289 * configure.host (gdb_host_float_format, gdb_host_double_format)
1290 (gdb_host_long_double_format): Set according to the host.
1291
1292 2004-07-29 Andrew Cagney <cagney@gnu.org>
1293
1294 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1295
1296 2004-07-28 Andrew Cagney <cagney@gnu.org>
1297
1298 * PROBLEMS: Mention threads/1650.
1299 * NEWS: Mention the NPTL fix.
1300
1301 2004-07-28 Andrew Cagney <cagney@gnu.org>
1302
1303 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1304 (add_setshow_cmd_full): Make static.
1305 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1306 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1307 * cli/cli-decode.c (add_setshow_filename_cmd)
1308 (add_setshow_string_cmd): New functions.
1309 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1310 * mips-tdep.c (_initialize_mips_tdep): Update.
1311 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1312 * cli/cli-logging.c (_initialize_cli_logging): Update.
1313 * complaints.c (_initialize_complaints): Update.
1314 * remote.c (_initialize_remote): Update.
1315
1316 2004-07-28 Andrew Cagney <cagney@gnu.org>
1317
1318 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1319 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1320 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1321 print parameters. Make string parameters constant.
1322 * command.h: Update. Update copyright.
1323 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1324 * observer.c (_initialize_observer): Ditto.
1325 * frame.c (_initialize_frame): Ditto.
1326 * complaints.c (_initialize_complaints): Ditto.
1327 * maint.c (_initialize_maint_cmds): Ditto.
1328 * target.c (initialize_targets): Ditto.
1329 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1330 * infcall.c (_initialize_infcall): Ditto.
1331 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1332 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1333 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1334 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1335 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1336
1337 2004-07-28 Andrew Cagney <cagney@gnu.org>
1338
1339 * gdbtypes.c (lookup_primitive_typename): Delete function.
1340 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1341 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1342 * gdbtypes.c (lookup_typename): Ditto.
1343 * f-exp.y (yylex): Ditto.
1344 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1345
1346 * scm-lang.c (c_builtin_types): Delete extern declaration.
1347 (scm_language_defn): Replace
1348 string_char_type and primitive_type_vector with
1349 la_language_arch_info.
1350 * jv-lang.c (java_language_defn): Replace
1351 string_char_type and primitive_type_vector with
1352 la_language_arch_info.
1353 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1354 c_builtin_types in comment.
1355 * c-lang.h (struct language_arch_info): Declare opaque.
1356 (c_language_arch_info): Declare.
1357 (c_builtin_types): Delete declaration.
1358 * c-lang.c (c_language_arch_info): Set string_char_type to
1359 builtin_char, not builtin_true_char. Make global.
1360 (c_builtin_types): Delete array.
1361 (asm_language_defn, minimal_language_defn): Replace
1362 string_char_type and primitive_type_vector with
1363 la_language_arch_info.
1364
1365 2004-07-28 Andrew Cagney <cagney@gnu.org>
1366
1367 * gdbtypes.h (struct builtin_type): Rename true_char to
1368 builtin_true_char.
1369 * gdbtypes.c (gdbtypes_post_init): Update.
1370 * c-lang.c (arch_info): New function.
1371 (enum c_primitive_types): New enum.
1372 (c_language_defn): Instead of string_char_type and
1373 primitive_type_vector set la_language_arch_info.
1374
1375 2004-07-28 Andrew Cagney <cagney@gnu.org>
1376
1377 * language.h (struct language_arch_info): Fix typo
1378 s/primative/primitive/.
1379 * gdbtypes.c (lookup_primitive_typename): Ditto.
1380 * language.c (language_lookup_primitive_type_by_name)
1381 (unknown_language_arch_info): Ditto.
1382
1383 2004-07-27 Andrew Cagney <cagney@gnu.org>
1384
1385 * defs.h (enum language): Add nr_languages.
1386 * language.h (struct language_arch_info): Define.
1387 (struct language_defn): Add la_language_arch_info.
1388 (language_lookup_primative_type_by_name): Declare.
1389 (language_string_char_type): Declare.
1390 * language.c (_initialize_language, language_gdbarch_post_init)
1391 (struct language_gdbarch, language_gdbarch_data): Implement
1392 per-architecture language information.
1393 (unknown_language_arch_info, language_string_char_type)
1394 (language_lookup_primative_type_by_name): New functions.
1395 (unknown_language_defn, auto_language_defn)
1396 (local_language_defn): Set la_language_arch_info to
1397 unknown_language_arch_info.
1398 (unknown_builtin_types): Delete.
1399 * gdbtypes.c (lookup_primitive_typename): Use
1400 language_lookup_primative_type_by_name.
1401 (create_string_type): Use language_string_char_type.
1402 * values.c (value_from_string): Use language_string_char_type.
1403 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1404 * p-lang.c (pascal_language_defn): Ditto.
1405 * m2-lang.c (m2_language_defn): Ditto.
1406 * jv-lang.c (java_language_defn): Ditto.
1407 * objc-lang.c (objc_language_defn): Ditto.
1408 * f-lang.c (f_language_defn): Ditto.
1409 * c-lang.c (c_language_defn, cplus_language_defn)
1410 (asm_language_defn, minimal_language_defn): Ditto.
1411
1412 2004-07-27 Andrew Cagney <cagney@gnu.org>
1413
1414 * gdbtypes.h (struct builtin_type): Declare.
1415 (builtin_type): Declare.
1416 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1417 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1418 (gdbtypes_post_init): New function.
1419 (builtin_type): New function.
1420
1421 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1422
1423 * remote-m32r-sdi.c: Fix breakpoint bug.
1424 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1425 recv_char_data, recv_long_data): New functions to replace communication
1426 sequences.
1427
1428 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1429
1430 Document PR threads/1650.
1431 * PROBLEMS (Threads): Document problem with many threads
1432
1433 2004-07-26 Andrew Cagney <cagney@gnu.org>
1434
1435 * gdb-mi.el: Move from here ...
1436 * mi/gdb-mi.el: ... to here.
1437
1438 2004-07-26 Andrew Cagney <cagney@gnu.org>
1439
1440 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1441 * main.c (captured_main): When in batch mode always detach.
1442
1443 2004-07-26 Andrew Cagney <cagney@gnu.org>
1444
1445 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1446 and h8300 as broken.
1447 * NEWS: END-OF-LIFE frame compatibility module.
1448 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1449 specific comments.
1450
1451 2004-07-26 Andrew Cagney <cagney@gnu.org>
1452
1453 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1454 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1455 * wince.c (_initialize_wince): Update.
1456 * win32-nat.c (_initialize_win32_nat): Update.
1457 * varobj.c (_initialize_varobj): Update.
1458 * valops.c (_initialize_valops): Update.
1459 * utils.c (initialize_utils, initialize_utils): Update.
1460 * tui/tui-win.c (_initialize_tui_win): Update.
1461 * top.c (init_main): Update.
1462 * symfile.c (_initialize_symfile): Update.
1463 * source.c (_initialize_source): Update.
1464 * somsolib.c (_initialize_som_solib): Update.
1465 * solib.c (_initialize_solib): Update.
1466 * solib-frv.c (_initialize_frv_solib): Update.
1467 * serial.c (_initialize_serial): Update.
1468 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1469 * remote.c (_initialize_remote, _initialize_remote): Update.
1470 * remote-vx.c (_initialize_vx): Update.
1471 * remote-utils.c (_initialize_sr_support): Update.
1472 * remote-sds.c (_initialize_remote_sds): Update.
1473 * remote-mips.c (_initialize_remote_mips): Update.
1474 * remote-e7000.c (_initialize_remote_e7000): Update.
1475 * proc-api.c (_initialize_proc_api): Update.
1476 * printcmd.c: Update.
1477 * parse.c (_initialize_parse): Update.
1478 * pa64solib.c (_initialize_pa64_solib): Update.
1479 * p-valprint.c (_initialize_pascal_valprint): Update.
1480 * monitor.c (_initialize_remote_monitors): Update.
1481 * mips-tdep.c (_initialize_mips_tdep): Update.
1482 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1483 * maint.c (_initialize_maint_cmds): Update.
1484 * lin-lwp.c (_initialize_lin_lwp): Update.
1485 * language.c (_initialize_language): Update.
1486 * kod.c (_initialize_kod): Update.
1487 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1488 * i386-tdep.c (_initialize_i386_tdep): Update.
1489 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1490 * gdbarch.sh: Update.
1491 * gdbarch.c: Re-generate.
1492 * gdb-events.sh: Update.
1493 * gdb-events.c: Re-generate.
1494 * frame.c (_initialize_frame): Update.
1495 * exec.c: Update.
1496 * demangle.c (_initialize_demangler): Update.
1497 * dcache.c (_initialize_dcache): Update.
1498 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1499 * cp-valprint.c (_initialize_cp_valprint): Update.
1500 * corefile.c (_initialize_core): Update.
1501 * command.h: Update.
1502 * cli/cli-decode.h: Update.
1503 * cli/cli-cmds.c (init_cli_cmds): Update.
1504 * charset.c (_initialize_charset): Update.
1505 * breakpoint.c (_initialize_breakpoint): Update.
1506 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1507 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1508 * aix-thread.c (_initialize_aix_thread): Update.
1509
1510 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1511
1512 Partial fix for PR backtrace/1718.
1513 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1514 that GCC migrates into the prolugue. Don't handle any
1515 instructions that clobber %ebx.
1516
1517 2004-07-23 Andrew Cagney <cagney@gnu.org>
1518
1519 Use regcache_raw_collect instead of regcache_collect.
1520 * regcache.h (regcache_collect): Delete declaration.
1521 * regcache.c (regcache_colect): Delete function.
1522 * win32-nat.c (do_child_store_inferior_registers): Update.
1523 * sol-thread.c (sol_thread_store_registers): Update.
1524 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1525 * rs6000-nat.c (store_register): Update.
1526 * remote.c (store_register_using_P, remote_store_registers): Update.
1527 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1528 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1529 (fill_vrregset, store_spe_registers, fill_gregset)
1530 (fill_gregset): Update.
1531 * nto-procfs.c (procfs_store_registers): Update.
1532 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1533 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1534 * m68klinux-nat.c (store_register, fill_gregset): Update.
1535 * m68k-tdep.c (fill_gregset): Update.
1536 * infptrace.c (store_register): Update.
1537 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1538 * i386-linux-nat.c (store_register, fill_gregset): Update.
1539 * hppa-linux-nat.c (fill_gregset): Update.
1540 * go32-nat.c (store_register): Update.
1541 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1542 (store_fp_regs): Update.
1543 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1544 (store_nwfpe_extended, store_fpregister, store_fpregs)
1545 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1546 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1547 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1548 (store_regs_user_thread, store_regs_kernel_thread): Update.
1549
1550 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1551
1552 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1553 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1554 encoding.
1555 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1556 member of `struct comp_unit'.
1557
1558 2004-07-23 Andrew Cagney <cagney@gnu.org>
1559
1560 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1561 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1562
1563 2004-07-23 Martin Hunt <hunt@redhat.com>
1564 Kevin Buettner <kevinb@redhat.com>
1565
1566 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1567 alignment was being added to the offset instead of multiplied.
1568
1569 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1570
1571 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1572 changed signal trampoline in OpenBSD 3.5-current.
1573
1574 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1575 <machine/pcb.h> and "bsd-kvm.h".
1576 (sparc64nbsd_supply_pcb): New function.
1577 (_initialize_sparc64nbsd_nat): Renamed from
1578 _initialize_sparcnbsd_nat. Enable libkvm interface.
1579 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1580 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1581 (LOADLIBES): New variable.
1582
1583 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1584
1585 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1586
1587 2004-07-21 Andrew Cagney <cagney@gnu.org>
1588
1589 Use regcache_raw_supply instead of supply_register.
1590 * regcache.h (supply_register): Delete declaration.
1591 * regcache.c (supply_register): Delete function.
1592 * wince.c (do_child_fetch_inferior_registers): Update.
1593 * win32-nat.c (do_child_fetch_inferior_registers)
1594 (fetch_elf_core_registers): Update.
1595 * v850ice.c (v850ice_fetch_registers): Update.
1596 * thread-db.c (thread_db_store_registers): Update.
1597 * sol-thread.c (sol_thread_store_registers): Update.
1598 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1599 * rs6000-nat.c (fetch_register): Update.
1600 * rom68k-rom.c (rom68k_supply_one_register): Update.
1601 * remote.c (remote_wait, remote_async_wait): Update.
1602 * remote-st.c (get_hex_regs): Update.
1603 * remote-sim.c (gdbsim_fetch_register): Update.
1604 * remote-sds.c (sds_fetch_registers): Update.
1605 * remote-rdp.c (remote_rdp_fetch_register): Update.
1606 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1607 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1608 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1609 * remote-hms.c (init_hms_cmds): Update.
1610 * remote-est.c (init_est_cmds): Update.
1611 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1612 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1613 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1614 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1615 (fetch_register, supply_vrregset, supply_vrregset)
1616 (fetch_spe_registers): Update.
1617 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1618 * monitor.c (monitor_supply_register): Update.
1619 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1620 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1621 (mipsnbsd_supply_fpreg): Update.
1622 * mips-nat.c (fetch_inferior_registers)
1623 (fetch_core_registers): Update.
1624 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1625 (supply_fpregset, mips64_supply_gregset)
1626 (mips64_supply_fpregset): Update.
1627 * m68klinux-nat.c (fetch_register, supply_gregset)
1628 (supply_fpregset): Update.
1629 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1630 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1631 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1632 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1633 * infptrace.c (fetch_register): Update.
1634 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1635 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1636 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1637 (gnu_fetch_registers, gnu_store_registers): Update.
1638 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1639 * i386-linux-nat.c (fetch_register, supply_gregset)
1640 (dummy_sse_values): Update.
1641 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1642 * hppah-nat.c (fetch_register): Update.
1643 * hppa-linux-nat.c (fetch_register, supply_gregset)
1644 (supply_fpregset): Update.
1645 * go32-nat.c (fetch_register): Update.
1646 * dve3900-rom.c (fetch_bitmapped_register)
1647 (_initialize_r3900_rom): Update.
1648 * cris-tdep.c (supply_gregset): Update.
1649 * abug-rom.c (init_abug_cmds): Update.
1650 * core-aout.c (fetch_core_registers): Update.
1651 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1652 (fetch_register, fetch_fp_register): Update.
1653 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1654 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1655 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1656 * alphanbsd-tdep.c (fetch_core_registers): Update.
1657 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1658 * alpha-nat.c (fetch_osf_core_registers)
1659 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1660 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1661 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1662
1663 2004-07-21 Andrew Cagney <cagney@gnu.org>
1664
1665 * PROBLEMS: Mention breakpoints/1702.
1666 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1667 that is known to work.
1668
1669 2004-07-21 Andrew Cagney <cagney@gnu.org>
1670
1671 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1672 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1673 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1674 (handle_inferior_event): Wrap call to deprecated
1675 IGNORE_HELPER_CALL in #ifdef.
1676 * config/mips/tm-nbsd.h: Update.
1677
1678 2004-07-20 Jim Blandy <jimb@redhat.com>
1679
1680 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1681 bfd_mach_ppc has no segment registers.
1682
1683 Include PowerPC SPR numbers for special-purpose registers.
1684 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1685 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1686 new member in initializer.
1687 (S, S4, SN4, S64): New macros for defining special-purpose
1688 registers.
1689 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1690 registers_403, registers_403GC, registers_505, registers_860,
1691 registers_601, registers_602, registers_603, registers_604,
1692 registers_750, registers_e500): Use them.
1693
1694 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1695 replace references with expression used to initialize variable.
1696
1697 2004-07-20 Andrew Cagney <cagney@gnu.org>
1698
1699 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1700 read_memory_nobpt.
1701 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1702 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1703 (s390_sigtramp_frame_sniffer): Update.
1704 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1705 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1706 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1707 (mips32_fetch_instruction): Update.
1708 * mcore-tdep.c (get_insn): Update.
1709 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1710 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1711 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1712 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1713 (i386_linux_rt_sigtramp_start): Update.
1714 * i386-linux-nat.c (child_resume): Update.
1715 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1716 * hppa-linux-tdep.c (insns_match_pattern): Update.
1717 * gdbcore.h: Update.
1718 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1719 * frame.c (safe_frame_unwind_memory): Update.
1720 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1721 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1722 * alpha-tdep.c (alpha_read_insn): Update.
1723
1724 2004-07-20 Andrew Cagney <cagney@gnu.org>
1725
1726 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1727 containing both bytes and mask. Add "frame_type".
1728 * tramp-frame.c (tramp_frame_start): Update.
1729 (tramp_frame_prepend_unwinder): Update.
1730 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1731 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1732 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1733 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1734
1735 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1736
1737 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1738 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1739 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1740 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1741
1742 2004-07-17 Andrew Cagney <cagney@gnu.org>
1743
1744 * NEWS, PROBLEMS: Update for 6.2.
1745
1746 * README: Update to 6.2.
1747
1748 * utils.c (xvasprintf): Call xstrvprintf.
1749
1750 * parse.c: Update copyright.
1751 (null_post_parser): Eliminate ARGSUSED.
1752
1753 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1754 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1755 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1756
1757 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1758 * ppc-linux-nat.c: Use "Linux kernel".
1759 * hppa-linux-tdep.c: Use GNU/Linux.
1760 * hppa-linux-nat.c: Use GNU/Linux.
1761 * dwarfread.c: Add [sic] to use of Linux.
1762
1763 * hppa-linux-nat.c: Do not include <string.h>.
1764 (supply_fpregset): Remove "register" attribute.
1765
1766 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1767
1768 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1769
1770 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1771 * configure, config.in: Regenerated.
1772
1773 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1774 "bsd-kvm.h".
1775 (vaxbsd_supply_pcb): New function.
1776 (_initialize_vaxbsd_nat): New prototype and function.
1777 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1778 solib-sunos.o.
1779 (LOADLIBES): New variable.
1780 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1781 (LOADLIBES): New variable.
1782 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1783 (LOADLIBES): New variable.
1784 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1785
1786 2004-07-16 Andrew Cagney <cagney@gnu.org>
1787
1788 * defs.h (event_loop_p): Replace variable declaration with macro,
1789 always 1.
1790 * main.c (captured_main): Delete options "-async" and "-noasync".
1791 (event_loop_p): Delete variable.
1792 * NEWS: Mention that "-async" and "-noasync" were removed.
1793
1794 2004-07-16 Andrew Cagney <cagney@gnu.org>
1795
1796 * remote-m32r-sdi.c: Re-indent.
1797
1798 2004-07-16 Jim Blandy <jimb@redhat.com>
1799
1800 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1801 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1802 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1803 missing MPC823 SPRs.
1804 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1805 incorrect. (This was corrected in GDB's register name tables on
1806 2004-07-14.)
1807
1808 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1809 should be "esasrr" ("ESA Save and Restore Register").
1810
1811 2004-07-16 Andrew Cagney <cagney@gnu.org>
1812
1813 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1814 calls, no longer applicable. Update comments and rename parameter
1815 "step_frame" to "return_frame".
1816
1817 2004-07-16 Andrew Cagney <cagney@gnu.org>
1818
1819 * frame.c (fprint_field): New function.
1820 (fprint_frame_id): Use fprint_field.
1821
1822 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1823
1824 * ada-lang.c (ada_language_defn): Remove commented out code.
1825
1826 2004-07-15 Jim Blandy <jimb@redhat.com>
1827
1828 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1829 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1830
1831 2004-07-14 Jim Blandy <jimb@redhat.com>
1832
1833 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1834
1835 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1836
1837 * ppc-tdep.h (ppc_num_srs): New enum constant.
1838
1839 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1840 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1841 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1842 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1843 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1844 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1845 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1846 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1847 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1848 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1849 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1850 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1851 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1852 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1853 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1854 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1855 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1856 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1857 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1858 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1859 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1860 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1861 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1862 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1863 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1864 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1865 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1866 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1867 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1868 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1869 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1870 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1871 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1872 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1873 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1874 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1875 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1876 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1877 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1878 special-purpose register numbers.
1879
1880 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1881 manual mentions 'md_twb', but many mention 'm_twb', and at that
1882 point in the register list.)
1883
1884 2004-07-14 Andrew Cagney <cagney@gnu.org>
1885
1886 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1887 instead of "internal-error".
1888
1889 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1890
1891 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1892 that was inserted inside a comment.
1893
1894 2004-07-10 Randolph Chung <tausq@debian.org>
1895
1896 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1897 function.
1898 (hppa_hpux_push_dummy_code): New function.
1899 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1900 Set find_global_pointer method.
1901
1902 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1903
1904 * NEWS: Mention BSD libkvm interface.
1905
1906 2004-07-10 Michael Snyder <msnyder@redhat.com>
1907
1908 * symfile.c (generic_load): Comment typo.
1909 * stack.c (get_selected_block): Ditto.
1910 * regcache.c (regcache_cooked_read): Ditto.
1911 * monitor.c (monitor_debug): Ditto.
1912 * mips-tdep.c (mips_read_pc): Ditto.
1913 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1914 * gdb_mbuild.sh: Ditto.
1915 * gdbarch.sh: Ditto.
1916 * gdbarch.h: Ditto.
1917
1918 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1919
1920 * ada-tasks.c: Remove file.
1921
1922 Remove ARI problems:
1923
1924 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1925 beginning of line.
1926
1927 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1928 Add comment.
1929 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1930 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1931 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1932 (UMIN_OF_SIZE): Remove.
1933 (max_of_type): New function to replace orphan macro in gdbtypes.h
1934 (min_of_type): Ditto.
1935 (discrete_type_high_bound): Use max_of_type.
1936 (discrete_type_low_bound): Use min_of_type.
1937 (possible_user_operator_p): Move operator to beginning of line.
1938 (ada_is_variant_part): Ditto.
1939 (ensure_lval): Rewrite to avoid deprecated operations.
1940 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1941 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1942 (ada_enum_name): Remove assignments in 'if' statements.
1943 (build_ada_types): Add gdbarch parameter.
1944 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1945 with gdbarch_data_register_post_init.
1946 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1947 add_show_from_set.
1948
1949 * ada-valprint.c (inspect_it): Remove declaration.
1950 (repeat_count_threshold): Remove declaration.
1951 (ada_print_floating): Remove assignments in 'if' statements.
1952 (print_str): Move operator to beginning of line.
1953
1954 2004-07-08 Jim Blandy <jimb@redhat.com>
1955
1956 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1957
1958 2004-07-08 Bob Rossi <bob@brasko.net>
1959
1960 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1961
1962 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1963
1964 * language.h (struct_language_defn): Add new function pointer:
1965 la_class_name_from_physname. Also add new prototype for
1966 language_class_name_from_physname.
1967 * language.c (language_class_name_from_physname): New function.
1968 (unk_lang_class_name): Ditto.
1969 (unknown_language_defn, auto_language_defn): Change
1970 to add unk_lang_class_name function pointer for
1971 la_class_name_from_physname.
1972 (local_language_defn): Ditto.
1973 * dwarf2read.c (guess_structure_name): Change to call
1974 language_class_name_from_physname.
1975 (determine_class_name): Ditto.
1976 * cp-support.c (class_name_from_physname): Renamed.
1977 (cp_class_name_from_physname): New name of function.
1978 * cp-support.h: Ditto.
1979 * c-lang.c (c_language_defn): Change to add NULL
1980 for class_name_from_physname function pointer.
1981 (cplus_language_defn): Change to add cp_class_name_from_physname.
1982 * jv-lang.c (java_class_name_physname): New function.
1983 (java_find_last_component): New static routine.
1984 (java_language_defn): Add java_class_name_from_physname pointer.
1985 * ada-lang.c (ada_language_defn): Change to add NULL
1986 for class_name_from_physname function pointer.
1987 * f-lang.c (f_language_defn): Ditto.
1988 * m2-lang.c (m2_language_defn): Ditto.
1989 * objc-lang.c (objc_language_defn): Ditto.
1990 * p-lang.c (pascal_language_defn): Ditto.
1991 * scm-lang.c (scm_language_defn): Ditto.
1992
1993 2004-07-06 Andrew Cagney <cagney@gnu.org>
1994
1995 Patch from Bart Robinson.
1996 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1997 (O_LARGEFILE): Define to 0, if not defined.
1998
1999 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2000
2001 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2002 <machine/pcb.h> and "bsd-kvm.h".
2003 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2004 (m68kbsd_supply_pcb): New function.
2005 (_initialize_m68kbsd_nat): New prototype and function.
2006 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2007 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2008 (LOADLIBES): New variable.
2009 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2010 (LOADLIBES): New variable.
2011
2012 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2013
2014 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2015
2016 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2017 <sys/proc.h>.
2018 (bsd_kvm_cmdlist): New variable.
2019 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2020 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2021 command and "kvm proc" command.
2022 * Makefile.in (bsd-kvm.o): Update dependencies.
2023
2024 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2025
2026 * osabi.c: Update copyright year.
2027 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2028 notes if EI_OSABI is set to ELFOSABI_HPUX.
2029
2030 2004-07-01 Michael Snyder <msnyder@redhat.com>
2031
2032 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2033 that seems to have gotten whacked out of line.
2034
2035 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2036
2037 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2038 code.
2039
2040 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2041
2042 * ada-lang.c (decode_packed_array): Minor change to comment.
2043 (ada_value_slice_ptr): New function.
2044 (ada_value_slice): New function.
2045 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2046 test. Don't know why it is there.
2047 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2048 to avoid dereferencing huge arrays from which one is slicing.
2049 (empty_array): Correct to return an array rather than
2050 a subrange value.
2051 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2052 on empty arrays (let'em use 'FIRST instead).
2053
2054 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2055
2056 Address complaints from gdb_ari.sh:
2057
2058 * ada-exp.y: Include gdb_string.h rather than string.h.
2059 (convert_char_literal): Reformat declaration.
2060 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2061 * ada-lex.l: Change use of free to xfree (the macro would do so
2062 anyway, but this is harmless).
2063 Include gdb_string.h rather than string.h.
2064 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2065
2066 * ada-lang.c (parse): Remove K&Rism in parameter list.
2067 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2068
2069 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2070
2071 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2072 dead code.
2073
2074 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2075
2076 * alphabsd-nat.c: Update copyright year.
2077 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2078
2079 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2080
2081 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2082 (i386_cygwin_in_solib_call_trampoline): New function.
2083 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2084 and skip_trampoline_code gdbarch methods.
2085
2086 2004-06-29 Jim Blandy <jimb@redhat.com>
2087
2088 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2089 name actually used in the dependency lists.
2090
2091 2004-06-29 Randolph Chung <tausq@debian.org>
2092
2093 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2094
2095 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2096
2097 * win32-nat.c (child_pid_to_exec_file): New function.
2098 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2099 functionality.
2100
2101 2004-06-28 Andrew Cagney <cagney@gnu.org>
2102
2103 * defs.h (xstrvprintf): Declare.
2104 * utils.c (xstrvprintf): New function.
2105 (internal_vproblem, xstrprintf, xasprintf)
2106 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2107 * serial.c (serial_printf): Ditto.
2108 * complaints.c (vcomplaint): Ditto.
2109
2110 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2111
2112 * infcmd.c (attach_command): Move call to target_terminal_inferior
2113 behind loading symbol table.
2114
2115 2004-06-28 Andrew Cagney <cagney@gnu.org>
2116
2117 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2118 change - add back extern deprecated_ui_loop_hook declaration.
2119
2120 2004-06-28 Andrew Cagney <cagney@gnu.org>
2121
2122 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2123 xstrprintf.
2124 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2125 (c_value_of_variable): Ditto.
2126 * utils.c (internal_vproblem): Ditto.
2127 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2128 * remote.c (add_packet_config_cmd): Ditto.
2129 * remote-rdp.c (rdp_set_command_line): Ditto.
2130 * regcache.c (regcache_dump): Ditto.
2131 * frv-tdep.c (new_variant, new_variant): Ditto.
2132 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2133 (fbsd_find_memory_regions): Ditto.
2134 * breakpoint.c (create_thread_event_breakpoint)
2135 (create_breakpoints): Ditto.
2136 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2137 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2138
2139 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2140
2141 * ada-lang.c: Re-indent file, with some massaging to help indent
2142 a bit when the result is otherwise really too ugly.
2143
2144 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2145
2146 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2147 code_addr_p and special_addr_p to 'unsigned int'.
2148
2149 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2150
2151 * i386v4-nat.c: Update copyright year and tweak comment.
2152 (regmap): Remove trailing comma.
2153 (supply_gregset): Rename local variable i to regnum. Call
2154 regcache_raw_supply instead of supply_register.
2155 (fill_gregset): Rename argument regno to regnum. Call
2156 regcache_raw_collect instead of regcache_collect.
2157
2158 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2159
2160 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2161 and special_addr_p.
2162 (frame_id_build, frame_id_build_special): Update comments.
2163 (frame_id_build_wild): New prototype.
2164 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2165 struct frame_id fields.
2166 (frame_id_build_wild): New function.
2167 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2168
2169 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2170
2171 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2172 hppabsd-tdep.c.
2173
2174 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2175
2176 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2177
2178 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2179
2180 * ada-lang.c: Re-indent file.
2181
2182 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2183
2184 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2185 (no_symtab_msg): Likewise.
2186
2187 2004-06-27 Andreas Schwab <schwab@suse.de>
2188
2189 * source.c: Fix whitespace.
2190
2191 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2192
2193 * configure.in: Include <sys/param.h> for td_pcb test.
2194 * configure: Regenerated.
2195
2196 * i386nbsd-nat.c: New file.
2197 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2198 i386obsd-nat.c and i386obsd-tdep.c.
2199 (i386nbsd-nat.o): New dependency.
2200 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2201 bsd-kvm.o.
2202 (LOADLIBES): New variable.
2203 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2204 bsd-kvm.o.
2205 (LOADLIBES): New variable.
2206
2207 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2208 (LOADLIBES): New variable.
2209
2210 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2211 fetching from BSD_KVM_PADDR. Correctly lookup address for
2212 "_thread0".
2213
2214 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2215 "bsd-kvm.h".
2216 (amd64fbsd_supply_pcb): New funcion.
2217 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2218
2219 2004-06-27 <david@streamline-computing.com>
2220
2221 Partial fix for PR cli/1056.
2222 * valarith.c: Check for zero in division and remainder
2223 evaluation.
2224
2225 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2226
2227 * i387-tdep.c: Remove excessive whitespace.
2228
2229 2004-06-26 Andrew Cagney <cagney@gnu.org>
2230
2231 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2232 * gdb-events.h, gdb-events.c: Re-generate.
2233 * tui/tui-hooks.c (tui_install_hooks): Update.
2234 (tui_remove_hooks): Update.
2235 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2236
2237 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2238
2239 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2240 (gregset_t, fpregset_t): Remove typedefs.
2241 (REG_OFFSET): Rename argument.
2242 (amd64bsd_r_reg_offset): Rename from reg_offset.
2243 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2244 Remove functions.
2245 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2246 of reg_offset.
2247 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2248
2249 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2250
2251 * vax-tdep.c: Tweak comment.
2252
2253 Add OpenBSD/hppa support.
2254 * NEWS (New native configurations): Mention OpenBSD/hppa.
2255 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2256 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2257 files.
2258 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2259 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2260 * configure.host: Add hppa*-*-openbsd*.
2261 * configure.tgt: Add hppa*-*-openbsd*.
2262
2263 2004-06-25 Andrew Cagney <cagney@gnu.org>
2264
2265 * defs.h (deprecated_ui_loop_hook): Deprecated.
2266 * wince.c (child_wait): Update.
2267 * win32-nat.c (child_wait): Update.
2268 * v850ice.c (v850ice_wait): Update.
2269 * top.c (deprecated_ui_loop_hook): Update.
2270 * serial.h: Update.
2271 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2272 (do_unix_readchar): Update.
2273 * ser-tcp.c (net_open): Update.
2274 * remote-sim.c (gdb_os_poll_quit): Update.
2275 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2276
2277 2004-06-24 Andrew Cagney <cagney@gnu.org>
2278
2279 * defs.h (deprecated_pre_add_symbol_hook)
2280 (deprecated_post_add_symbol_hook): Deprecated.
2281 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2282 (symbol_file_add_with_addrs_or_offsets): Update references.
2283
2284 2004-06-24 Andrew Cagney <cagney@gnu.org>
2285
2286 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2287 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2288 * wince.c (ui_loop_hook): Delete extern declaration.
2289 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2290 * v850ice.c (ui_loop_hook): Delete extern declaration..
2291 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2292 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2293 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2294 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2295 ui_loop_hook declaration.
2296
2297 2004-06-24 Andrew Cagney <cagney@gnu.org>
2298
2299 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2300 entry_func_highpc fields.
2301 * objfiles.c (init_entry_point_info): Do not clear
2302 entry_func_lowpc and entry_func_highpc.
2303 (objfile_relocate): Do not relocate entry_func_lowpc and
2304 entry_func_highpc.
2305 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2306 entry_func_highpc.
2307 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2308 entry_func_highpc.
2309 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2310 entry_func_lowpc and entry_func_highpc with call to
2311 inside_entry_func.
2312
2313 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2314
2315 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2316 quad-precision floating point arguments in registers.
2317
2318 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2319
2320 From Michael Mueller <m.mueller99@kay-mueller.de>:
2321 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2322 account.
2323
2324 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2325
2326 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2327 to -1.
2328 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2329 untriggered watchpoints to a separate if clause. Update function
2330 comment regarding STOPPED_BY_WATCHPOINT argument.
2331
2332 2004-06-22 Jim Blandy <jimb@redhat.com>
2333
2334 * gdbarch.sh: Doc fix.
2335
2336 2004-06-21 Martin Hunt <hunt@redhat.com>
2337 Kevin Buettner <kevinb@redhat.com>
2338
2339 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2340 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2341 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2342 to set_gdbarch_sp_regnum(). Use cooked register number.
2343 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2344
2345 2004-06-21 Andrew Cagney <cagney@gnu.org>
2346
2347 * gdbarch.sh: When the macro field is empty, do not generate a
2348 macro definition. When the macro field is "=", generate the macro
2349 name from the upper-case function name.
2350 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2351 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2352 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2353 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2354 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2355 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2356 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2357 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2358 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2359 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2360 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2361 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2362 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2363 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2364 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2365 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2366 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2367 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2368 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2369 (DEPRECATED_USE_STRUCT_CONVENTION)
2370 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2371 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2372 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2373 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2374 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2375 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2376 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2377 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2378 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2379 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2380 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2381 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2382 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2383 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2384 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2385 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2386 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2387 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2388
2389 2004-06-21 Andrew Cagney <cagney@gnu.org>
2390
2391 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2392 macro name, and the function rather than macro value. Only wrap
2393 macro print statements in #ifdef. Move format logic to where it
2394 is needed.
2395 * gdbarch.c: Re-generate.
2396
2397 * gdbarch.sh (read): Delete "print_p" and "description", add
2398 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2399 Delete references to print_p.
2400 (TARGET_ARCHITECTURE): Delete print predicate.
2401 * gdbarch.c: Re-generate.
2402
2403 * gdbarch.sh: Check that multi-arch methods do not provide a
2404 macro.
2405 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2406 (print_registers_info, print_float_info, print_vector_info)
2407 (adjust_breakpoint_address, remote_translate_xfer_address)
2408 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2409 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2410 name from the multi-arch definition.
2411
2412 2004-06-20 Andrew Cagney <cagney@gnu.org>
2413
2414 * gdbarch.sh: Sort by the function, instead of macro name.
2415 * gdbarch.c: Re-generate.
2416
2417 2004-06-20 Andrew Cagney <cagney@gnu.org>
2418
2419 * gdbarch.sh: Use the function, instead of macro name in
2420 errors and the log file.
2421 (return_value): Remove stray ":" in spec.
2422
2423 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2424 * gdbarch.h, gdbarch.c: Re-generate.
2425 * Makefile.in (arch-utils.o): Update dependencies.
2426 * values.c (using_struct_return): Move code calling
2427 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2428 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2429 to legacy_return_value, simplify.
2430 * infcmd.c (print_return_value): Move code calling
2431 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2432 to legacy_return_value, simplify.
2433 * infcall.c (call_function_by_hand): Move code calling
2434 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2435 * arch-utils.c: Update copyright. Include "gdbcore.h".
2436 (legacy_return_value): New function.
2437 * arch-utils.h: Update copyright.
2438 (legacy_return_value): Declare.
2439
2440 2004-06-20 Andrew Cagney <cagney@gnu.org>
2441
2442 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2443 * gdbarch.h, gdbarch.c: Re-generate.
2444 * values.c (using_struct_return): Update call.
2445 * mcore-tdep.c: Update comment.
2446 * infcall.c (call_function_by_hand): Update comment.
2447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2448 * arch-utils.h (always_use_struct_convention): Update.
2449 * v850-tdep.c (v850_gdbarch_init): Update.
2450 * sh64-tdep.c (sh64_gdbarch_init): Update.
2451 * sh-tdep.c (sh_gdbarch_init): Update.
2452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2453 * mips-tdep.c (mips_gdbarch_init): Update.
2454 * mcore-tdep.c (mcore_gdbarch_init): Update.
2455 * m32r-tdep.c (m32r_gdbarch_init): Update.
2456 * ia64-tdep.c (ia64_gdbarch_init): Update.
2457 * h8300-tdep.c (h8300_gdbarch_init): Update.
2458 * frv-tdep.c (frv_gdbarch_init): Update.
2459 * cris-tdep.c (cris_gdbarch_init): Update.
2460 * arm-tdep.c (arm_gdbarch_init): Update.
2461 * alpha-tdep.c (alpha_gdbarch_init): Update.
2462
2463 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2464
2465 * PROBLEMS: Add more specific information, and a work-around,
2466 for PR gdb/1458.
2467
2468 2004-06-18 Andrew Cagney <cagney@gnu.org>
2469
2470 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2471 * gdbarch.h, gdbarch.c: Re-generate.
2472 * ada-lang.c (ada_finish_decode_line_1): Update.
2473 * infrun.c (handle_inferior_event): Update.
2474 * infcall.c (find_function_addr): Update.
2475 * linespec.c (minsym_found): Update.
2476 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2477 Update.
2478 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2479 * cli/cli-cmds.c (disassemble_command): Update.
2480 * vax-tdep.c (vax_gdbarch_init): Update.
2481
2482 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2483
2484 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2485
2486 2004-06-17 Andrew Cagney <cagney@gnu.org>
2487
2488 GDB 6.1.1 released from the GDB 6.1 branch.
2489 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2490 * PROBLEMS: Ditto.
2491
2492 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2493
2494 PR gdb/1658
2495 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2496 operation as a uleb128. Found by Michael Coulter.
2497
2498 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2499
2500 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2501 make it non-static.
2502 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2503 to ada-lang.h; this is needed to be able to implement the kill command
2504 in multi-task mode.
2505 (task_ptid): Ditto.
2506 (task_entry): Ditto.
2507 (task_list): Ditto.
2508 (ada_build_task_list): Ditto.
2509
2510 * ada-lang.c: Conditionalize routines and data structures related
2511 to breakpoints, exceptions, completion, and symbol caching on
2512 GNAT_GDB, since these are not yet used in the submitted public sources.
2513 (ada_main_name): Editorial: Move definition out of exception-related
2514 code.
2515
2516 2004-06-15 Andrew Cagney <cagney@gnu.org>
2517
2518 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2519 deprecated_pc_in_call_dummy.
2520
2521 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2522
2523 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2524 bfd_get_section_size_before_reloc or _raw_size.
2525 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2526 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2527 (dwarf2_read_section): Likewise.
2528 * elfread.c (elf_locate_sections): Likewise.
2529 * gcore.c (derive_heap_segment): Likewise.
2530 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2531 * remote-e7000.c (e7000_load): Likewise.
2532 * remote-m32r-sdi.c (m32r_load): Likewise.
2533 * remote-mips.c (mips_load_srec): Likewise.
2534 (pmon_load_fast): Likewise.
2535 * remote.c (compare_sections_command): Likewise.
2536 * symfile.c (add_section_size_callback): Likewise.
2537 (load_section_callback): Likewise.
2538 (pc_in_unmapped_range): Likewise.
2539 (pc_in_mapped_range): Likewise.
2540 (sections_overlap): Likewise.
2541 (list_overlays_command): Likewise.
2542 (simple_overlay_update_1): Likewise.
2543 (simple_overlay_update): Likewise.
2544 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2545 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2546
2547 2004-06-14 Randolph Chung <tausq@debian.org>
2548
2549 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2550 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2551 static.
2552 (hppa_hpux_inferior_created): New function.
2553 (hppa_hpux_init_abi): Register observer.
2554 * symfile.c (hp_cxx_exception_support_initialized)
2555 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2556 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2557
2558 2004-06-14 Randolph Chung <tausq@debian.org>
2559
2560 * MAINTAINERS (Write After Approval): Alphabetize my entry
2561 correctly.
2562
2563 2004-06-14 Andrew Cagney <cagney@gnu.org>
2564
2565 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2566 testsuite maintainer.
2567
2568 2004-06-13 Andrew Cagney <cagney@gnu.org>
2569
2570 * infcmd.c (print_return_value): Fix logic, allow
2571 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2572
2573 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2574 defining any macros.
2575 * gdbarch.h: Re-generate.
2576
2577 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2578 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2579 * gdbarch.h: Re-generate.
2580
2581 * values.c (generic_use_struct_convention): Don't check gcc_p.
2582
2583 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2584 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2585 * gdbarch.h, gdbarch.c: Regenerate.
2586 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2587 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2589 deprecated_max_register_raw_size and
2590 deprecated_max_register_virtual_size.
2591 * v850-tdep.c (v850_gdbarch_init): Ditto.
2592 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2593 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2594 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2595 * cris-tdep.c (cris_gdbarch_init): Ditto.
2596
2597 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2598 * gdbarch.h, gdbarch.c: Re-generate.
2599 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2600 (m68hc11_use_struct_convention): Delete function.
2601 (m68hc11_extract_struct_value_address): Delete function.
2602 (m68hc11_return_value): New function.
2603 (m68hc11_gdbarch_init): Instead of store_return_value,
2604 extract_return_value, return_value_on_stack,
2605 deprecated_extract_struct_value_address and use_struct_convention,
2606 set return_value.
2607 * values.c (using_struct_return): Do not call
2608 RETURN_VALUE_ON_STACK.
2609 * arch-utils.h (generic_return_value_on_stack_not): Delete
2610 declaration.
2611 * arch-utils.c (generic_return_value_on_stack_not): Delete
2612 function.
2613
2614 2004-06-12 Andrew Cagney <cagney@gnu.org>
2615
2616 * values.c (register_value_being_returned): Delete function.
2617 * infcmd.c (legacy_return_value): Delete function.
2618 * infcall.c (call_function_by_hand): Inline
2619 "register_value_being_returned", simplify.
2620 * values.c (using_struct_return): Update comment, refer to
2621 print_return_value instead of register_value_being_returned.
2622 * infcmd.c (print_return_value): Inline calls to
2623 register_value_being_returned and legacy_return_value. Simplify.
2624
2625 2004-06-11 Randolph Chung <tausq@debian.org>
2626
2627 * somread.c (som_symtab_read): Exclude gcc local symbols.
2628
2629 2004-06-11 Randolph Chung <tausq@debian.org>
2630
2631 * infrun.c (handle_inferior_event): Handle the case when a
2632 trampoline ends up in the runtime resolver, and if the trampoline
2633 has no name. Rearrange the code so that all the trampoline
2634 processing happens before other step-out-of-range handling.
2635
2636 2004-06-11 Martin Hunt <hunt@redhat.com>
2637
2638 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2639 has no fpu.
2640
2641 2004-06-10 Andrew Cagney <cagney@gnu.org>
2642
2643 * blockframe.c (legacy_inside_entry_func): Delete.
2644 (legacy_frame_chain_valid): Inline call to
2645 legacy_inside_entry_func, simplify.
2646
2647 2004-06-10 Bob Rossi <bob@brasko.net>
2648
2649 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2650 * dwarf2read.c (partial_die_info): Add dirname field.
2651 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2652 (read_partial_die): Save away DW_AT_comp_dir.
2653 * defs.h (symtab_to_filename): Removed.
2654 * source.c (find_and_open_source): Added.
2655 (open_source_file): Just calls find_and_open_source.
2656 (symtab_to_filename): Removed.
2657 (symtab_to_fullname, psymtab_to_fullname): Added.
2658 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2659 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2660 symtab_to_filename.
2661 * symtab.h (partial_symtab): Add dirname field.
2662 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2663 (mi_cmd_file_list_exec_source_file): Call new function
2664 symtab_to_fullname to find fullname.
2665 (mi_cmd_file_list_exec_source_files): Added.
2666 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2667 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2668
2669 2004-06-10 Andrew Cagney <cagney@gnu.org>
2670
2671 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2672 to generic_use_struct_convention, the default value.
2673
2674 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2675 of abort.
2676
2677 * ns32k-tdep.c (ns32k_push_arguments): New function.
2678 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2679 * infcall.c (call_function_by_hand): Call error instead of
2680 legacy_push_arguments.
2681 * value.h (legacy_push_arguments): Delete declaration.
2682 * valops.c (legacy_push_arguments): Delete function.
2683 (value_push): Delete function.
2684
2685 2004-06-10 Brian Ford <ford@vss.fsi.com>
2686
2687 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2688 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2689 info.
2690 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2691
2692 2004-06-10 Andrew Cagney <cagney@gnu.org>
2693
2694 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2695 * gdbarch.h, gdbarch.c: Re-generate.
2696 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2697 parameters.
2698 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2699 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2700 deprecated_pc_in_call_dummy instead of
2701 DEPRECATED_PC_IN_CALL_DUMMY.
2702 (arm_skip_prologue): Ditto.
2703 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2704 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2705 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2706 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2707 Ditto.
2708 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2709 (sh64_init_extra_frame_info, sh64_get_saved_register)
2710 (sh64_pop_frame): Ditto.
2711 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2712 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2713 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2714 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2715 (h8300_pop_frame): Ditto.
2716 * blockframe.c (legacy_inside_entry_func)
2717 (legacy_frame_chain_valid): Ditto.
2718 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2719 to deprecated_pc_in_call_dummy.
2720
2721 2004-06-09 Andrew Cagney <cagney@gnu.org>
2722
2723 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2724 provide a default value.
2725 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2726 * gdbarch.h, gdbarch.c: Re-generate.
2727 * arch-utils.c (generic_convert_register_p): Rename
2728 legacy_convert_register_p
2729 (legacy_register_to_value, legacy_value_to_register): Delete
2730 functions.
2731 * arch-utils.h (generic_convert_register_p): Rename
2732 legacy_convert_register_p.
2733 (legacy_register_to_value, legacy_value_to_register): Delete
2734 declarations.
2735
2736 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2737 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2738 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2739 * gdbarch.h, gdbarch.c: Re-generate.
2740 * infcmd.c (default_print_registers_info): Simplify.
2741 * findvar.c (value_of_register): Simplify.
2742 * mi/mi-main.c (get_register): Simplify.
2743 * arch-utils.c (legacy_convert_register_p): Always return 0.
2744 (legacy_register_to_value, legacy_value_to_register): Always call
2745 internal_error.
2746
2747 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2748 #ifdef CLEAR_INSN_CACHE code.
2749 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2750 Delete #ifdef CLEAR_DEFERRED_STORES code.
2751
2752 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2753
2754 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2755 copyright.
2756 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2757
2758 * config/mips/mipsv4.mh: Delete file.
2759
2760 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2761 unreferenced macro.
2762 (hpread_adjust_stack_address): Delete declaration.
2763
2764 2004-06-08 Andrew Cagney <cagney@gnu.org>
2765
2766 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2767 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2768 PTRACE_ATTACH / PTRACE_DETACH available call error.
2769 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2770 * infttrace.c (update_thread_state_after_attach, attach, detach):
2771 Remove #ifdef wrappers.
2772 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2773 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2774 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2775 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2776 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2777 * config/nm-linux.h (ATTACH_DETACH): Delete.
2778 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2779 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2780 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2781 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2782 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2783
2784 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2785
2786 * configure.in: Set $configdir to the right OS specific value.
2787 Use value when setting $tcldir and $tkdir.
2788 * configure: Regenerate.
2789
2790 2004-06-06 Paul Brook <paul@codesourcery.com>
2791
2792 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2793 records.
2794
2795 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2796
2797 * ada-lang.c (lookup_symbol_in_language): New function to allow
2798 re-use of another language's symbol lookup code. (Placed here
2799 temporarily while Ada support is being integrated into the public
2800 tree).
2801 (restore_language): New auxiliary function for
2802 lookup_symbol_in_language.
2803 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2804 temporarily while Ada support is being integrated into the public
2805 tree).
2806
2807 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2808
2809 * Makefile.in (check//%): New.
2810
2811 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2812 (mn10300_store_return_value): Rewrite.
2813 (mn10300_type_align): New.
2814 (mn10300_use_struct_convention): Rewrite.
2815 (mn10300_return_value): New, using all of the above.
2816 (mn10300_pop_frame_regular): Add saved_regs_size.
2817 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2818
2819 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2820 regs if PC is on movm.
2821
2822 2004-06-07 Jim Blandy <jimb@redhat.com>
2823
2824 Add native Linux support for the PowerPC E500.
2825 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2826 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2827 all architectures except the E500.
2828 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2829 #definitions.
2830 (struct gdb_evrregset_t): New type.
2831 (have_ptrace_getsetevrregs): New variable.
2832 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2833 fetch_spe_registers): New functions.
2834 (fetch_register): Call fetch_spe_register as appropriate.
2835 Assert that we're only passed raw register numbers.
2836 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2837 Don't fetch gprs if they're pseudoregisters.
2838 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2839 store_spe_registers): New functions.
2840 (store_register): Call store_spe_register as appropriate.
2841 Assert that we're only passed raw register numbers.
2842 (store_ppc_registers): Call store_spe_registers as appropriate.
2843 Don't store gprs if they're pseudoregisters.
2844
2845 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2846
2847 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2848 struct if one exists, even if we are dealing with a zombie thread.
2849
2850 2004-06-07 Andrew Cagney <cagney@gnu.org>
2851
2852 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2853 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2854 Rename PC_REQUIRES_RUN_BEFORE_USE.
2855 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2856 #ifdef.
2857
2858 2004-06-07 Randolph Chung <tausq@debian.org>
2859
2860 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2861 unwinding after sp has been saved to the stack but before the end
2862 of the prologue, and after the fp has been modified but before it has
2863 been saved to the stack.
2864 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2865 Remove superfluous definitions.
2866 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2867
2868 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2869
2870 Committed by Randolph Chung.
2871 * hppa-linux-nat.c: Include the correct version of the header file
2872 depending on the kernel version.
2873
2874 2004-06-06 Randolph Chung <tausq@debian.org>
2875
2876 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2877 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2878
2879 2004-06-06 Randolph Chung <tausq@debian.org>
2880
2881 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2882 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2883 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2884 * hppa-tdep.c (hppa_symbol_address): New function definition.
2885 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2886
2887 2004-06-06 Randolph Chung <tausq@debian.org>
2888
2889 * hppa-tdep.h (struct value): Forward declaration.
2890 (gdbarch_tdep): Define tdep find_global_pointer method.
2891 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2892 associated with the function we are trying to call, and write it
2893 to the gp register.
2894 (hppa32_convert_from_funct_ptr_addr): New function.
2895 (hppa_find_global_pointer): New function.
2896 (hppa_gdbarch_init): Set default find_global_pointer method; set
2897 convert_from_func_ptr_addr method.
2898 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2899 (hppa_linux_init_abi): Set find_global_pointer method.
2900 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2901
2902 2004-06-06 Randolph Chung <tausq@debian.org>
2903
2904 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2905 to struct value *function.
2906 * gdbarch.c: Regenerate.
2907 * gdbarch.h: Likewise.
2908 * infcall.c (call_function_by_hand): Pass entire function value
2909 to push_dummy_call.
2910
2911 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2912 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2913 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2914 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2915 * arm-tdep.c (arm_push_dummy_call): Likewise.
2916 * avr-tdep.c (avr_push_dummy_call): Likewise.
2917 * cris-tdep.c (cris_push_dummy_call): Likewise.
2918 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2919 * frv-tdep.c (frv_push_dummy_call): Likewise.
2920 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2921 * hppa-tdep.c (hppa32_push_dummy_call)
2922 (hppa64_push_dummy_call): Likewise.
2923 * i386-tdep.c (i386_push_dummy_call): Likewise.
2924 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2925 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2926 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2927 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2928 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2929 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2930 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2931 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2932 (ppc64_sysv_abi_push_dummy_call): Likewise.
2933 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2934 (ppc64_sysv_abi_push_dummy_call): Likewise.
2935 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2936 * s390-tdep.c (s390_push_dummy_call): Likewise.
2937 * sh-tdep.c (sh_push_dummy_call_fpu)
2938 (sh_push_dummy_call_nofpu): Likewise.
2939 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2940 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2941 * vax-tdep.c (vax_push_dummy_call): Likewise.
2942
2943 2004-06-04 Jim Blandy <jimb@redhat.com>
2944
2945 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2946 gdbarch argument to register_size.
2947
2948 * rs6000-tdep.c (rs6000_store_return_value): Use
2949 regcache_cooked_write_part instead of
2950 deprecated_write_register_bytes.
2951 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2952 not gdbarch_deprecated_store_return_value.
2953
2954 * ppc-linux-nat.c (store_register, fetch_register): Remove
2955 incorrect assertions. Simplify and generalize handling of
2956 transfers whose sizes are not multiples of, or less than, sizeof
2957 (PTRACE_XFER_TYPE).
2958
2959 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2960
2961 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2962 as a new thread event.
2963 * thread-db.c (thread_get_info_callback): If the thread is a
2964 zombie, return TD_THR_ZOMBIE.
2965 (thread_from_lwp): If thread_get_info_callback returns
2966 TD_THR_ZOMBIE, check if the thread is still on the thread list
2967 and return a -1 ptid if not found.
2968 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2969 change the status to TARGET_WAITKIND_SPURIOUS.
2970
2971 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2972
2973 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2974 double values in little endian mode.
2975
2976 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2977
2978 Committed by Andrew Cagney.
2979 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2980 after last enum constant to avoid error from IBM C
2981 compiler.
2982
2983 2004-06-02 Jim Blandy <jimb@redhat.com>
2984
2985 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2986 to 'message', and make it local to the lone block that uses it.
2987
2988 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2989
2990 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2991
2992 * ada-exp.y: Update copyright notice.
2993 Include block.h.
2994
2995 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2996 SPECIAL_VARIABLE and unify the treatment of these cases.
2997
2998 (write_attribute_call0): Remove.
2999 (write_attribute_call1): Remove.
3000 (write_attribute_calln): Remove.
3001 (save_qualifier): Add missing semicolon.
3002
3003 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3004 temporarily disabled to allow compilation with FSF head version.
3005
3006 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3007 use individual operators (OP_*) for all attributes.
3008 (exp syntax): Use write_int.
3009 Handle STRING literals with OP_STRING.
3010 (variable syntax): Add limit parameter to calls to
3011 write_object_renaming.
3012
3013 (temp_parse_space): New definition to hold entities that need
3014 only live until the next call to ada_parse.
3015 (string_to_operator): Rename fields of ada_opname_table entries.
3016
3017 (write_var_from_sym): Record block.
3018 (write_var_from_name): Minor reformatting.
3019 Make sure saved name is properly encoded in the case of multiple
3020 matches, and set its language to Ada.
3021 Update comment.
3022 Modify to indicate unresolved name as symbol in the UNRESOLVED
3023 namespace, allocated in temp_parse_space.
3024 (write_int): New function.
3025
3026 (write_object_renaming): Add max_depth parameter to limit
3027 chains of object renamings.
3028 Handle case where root of renaming expression is itself a renaming.
3029 Use temp_parse_space for temporary name buffer.
3030 Handle renamings to dereferenced pointers (___XEXA suffices).
3031
3032 (ada_parse, yyerror, string_to_operator,
3033 write_var_from_sym, write_var_from_name, write_attribute_call0,
3034 write_attribute_call1, write_attribute_calln,
3035 write_object_renaming): Protoize.
3036
3037 (_initialize_ada_exp): New function.
3038
3039 * ada-lang.c: Update copyright notice.
3040 General terminology change to conform to GNAT compiler usage:
3041 mangle => encode, demangle => decode
3042 Include gdb_obstack.h.
3043 Include gdb_regex.h
3044 Include frame.h
3045 Include hashtab.h
3046 Include completer.h
3047 Include gdb_stat.h
3048 Include block.h
3049 Include infcall.h
3050
3051 (ADA_RETAIN_DOTS): Make sure this is defined.
3052 (TRUNCATION_TOWARDS_ZERO): Define.
3053 (struct string_vector): Define.
3054 (unresolved_names): Remove definition.
3055 (xnew_string_vector): New function.
3056 (string_vector_append): New function.
3057 (extract_string): Make static.
3058 (ada_unqualified_name): New function.
3059 (add_angle_brackets): New function.
3060 (function_name_from_pc): New function.
3061 (place_on_stack): Rename to ensure_lval.
3062
3063 (ensure_lval): Renamed from place_on_stack.
3064 Make identity on lvals.
3065 Update comment.
3066 (is_nonfunction): New interface.
3067 Only symbols in LOC_CONST class can be enumerals.
3068 (fill_in_ada_prototype): Remove; now independent of language.
3069 (add_defn_to_vec): Add obstack and symtab arguments.
3070 Use obstack to hold collected definitions.
3071 (num_defns_collected): New function.
3072 (defns_collected): New function.
3073 (ada_resolve_subexp): Rename to resolve_subexp.
3074 (resolve_subexp): Renamed from ada_resolve_subexp.
3075 (ada_op_name): Return non-const result.
3076 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3077 other purposes.
3078
3079 (to_fixed_array_type): Add declaration.
3080 (coerce_unspec_val_to_type): Remove offset parameter.
3081 (find_sal_from_funcs_and_line): New interface.
3082 (find_line_in_linetable): Ditto.
3083
3084 (all_sals_for_line): Rename to ada_sals_for_line and make
3085 global.
3086 Add new parameter. When set, do not ask the user to choose the
3087 instance, but use the first one found instead.
3088 Use given line number in returned sals.
3089 Fix comment.
3090 Skip the prologue if funfirstline is set.
3091 Correct for memory leak when 0 lines found.
3092
3093 (value_pos_atr): Use pos_atr.
3094 (pos_atr): New function.
3095 (standard_lookup): Add block parameter.
3096
3097 (makeTimeStart): Remove declaration and uses.
3098 (makeTimeStop): Remove declaration and uses.
3099
3100 (ada_completer_word_break_characters): Allow for VMS.
3101 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3102 (raise_sym_name): New constant.
3103 (raise_unhandled_sym_name): New constant.
3104 (raise_assert_sym_name): New constant.
3105 (process_raise_exception_name): New constant.
3106 (longest_exception_template): New constant.
3107 (warning_limit): New variable to limit warnings during expression
3108 evaluation.
3109 (warnings_issued): New variable to keep track of warnings issued.
3110 (known_runtime_file_name_patterns): New constant.
3111 (known_auxiliary_function_name_patterns): New constant.
3112 (symbol_list_obstack): New variable.
3113
3114 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3115 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3116 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3117 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3118 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3119 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3120 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3121 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3122 and strcmp.
3123
3124 (ada_get_field_index): New function.
3125 (lim_warning): New function.
3126 (ada_translate_error_message): New function.
3127 (MAX_OF_SIZE): New function.
3128 (MIN_OF_SIZE): New function.
3129 (UMAX_OF_SIZE): New function.
3130 (UMIN_OF_SIZE): New function.
3131 (discrete_type_high_bound): New function.
3132 (discrete_type_low_bound): New function.
3133 (base_type): New function.
3134 (do_command): Remove.
3135
3136 (ada_update_initial_language): Use language_ada, not language_unknown.
3137 (ada_encode): Renamed from ada_mangle.
3138 Obey ADA_RETAIN_DOTS.
3139 (ada_decode): Renamed from ada_demangle.
3140 Update coding conventions.
3141 (decoded_names_store): New hash table.
3142 (ada_decode_symbol): New function.
3143 (ada_la_decode): New function.
3144
3145 (modify_general_field): Correct computations of offset and bit
3146 position.
3147 (desc_base_type): Handle ref types, too.
3148 (ada_is_direct_array_type): New function.
3149
3150 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3151 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3152 (ada_is_bogus_array_descriptor,ada_type_of_array,
3153 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3154 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3155 ada_is_array_descriptor_type.
3156
3157 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3158 (ada_is_packed_array_type): Handle pointers or
3159 references to packed arrays as well.
3160 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3161 (decode_packed_array_type): Search for the packed array type
3162 symbol in the currently selected block and associated
3163 superblocks too.
3164 Use lookup_symbol again.
3165
3166 (decode_packed_array): Handle pointers and references.
3167 Update call to coerce_unspec_val_to_type.
3168 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3169 (ada_value_primitive_packed_val): Improve comment.
3170
3171 (ada_index_type): Substitute int type for "undefined".
3172 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3173 ada_array_langth, ada_is_string_type): Use renamed
3174 ada_is_simple_array_type.
3175 (empty_array): New function.
3176
3177 (ada_resolve): Rename to resolve.
3178 (resolve): Make static.
3179 Call renamed resolve_subexp.
3180 Update comment.
3181 (ada_resolve_subexp): Rename to resolve_subexp.
3182 (resolve_subexp): Update comment.
3183 Decomment disabled code.
3184 Add LOC_COMPUTED* cases.
3185 Modify to use temporary struct symbols (marked as being in
3186 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3187 OP_UNRESOLVED_VALUE.
3188 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3189 Add OP_STRING case.
3190 Remove OP_ARRAY.
3191 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3192 Use new ada_lookup_symbol_list interface.
3193 Use new ada_resolve_function interface.
3194 Remove OP_TYPE case.
3195
3196 (ada_args_match): Idiot proof against null actuals.
3197 Use intermediate variables to clarify.
3198 (ada_resolve_function): Update comment and interface.
3199 (mangled_ordered_before): Rename to encoded_ordered_before and
3200 update comment.
3201 (sort_choices): Update comment and interface.
3202 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3203 (user_select_syms): New interface.
3204 Use new sort_choices interface.
3205 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3206 (possible_user_operator_p): Idiot-proof against null values.
3207 (ada_simple_renamed_entity): Don't make cleanup; rely on
3208 caller to free result string.
3209 Remove const from return type.
3210 (make_array_descriptor): Rename uses of place_on_stack to
3211 ensure_lval.
3212 Make sure that arrays are on stack.
3213
3214 (HASH_SIZE): Define.
3215 (struct cache_entry): Define.
3216 (cache_space): Define.
3217 (cache): Define.
3218 (clear_ada_sym_cache): New function.
3219 (find_entry): New function.
3220 (lookup_cached_symbol): New function.
3221 (defn_vector_size): Define.
3222 (cache_symbol): New function.
3223 (defn_symbols): Remove.
3224
3225 (standard_lookup): Use lookup_symbol_in_language to get effect of
3226 C lookup.
3227 Cache results.
3228
3229 (symbol_completion_match): New function.
3230 (symbol_completion_add): New function.
3231 (ada_make_symbol_completion_list): New function.
3232
3233 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3234 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3235 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3236 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3237
3238 (ada_lookup_simple_minsym): New function.
3239 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3240
3241 (add_symbols_from_enclosing_procs): New interface.
3242 Conditionalize more helpfully.
3243 Don't bother if program isn't running.
3244 Use new interface to get_frame_block.
3245 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3246
3247 (remove_extra_symbols): New interface.
3248 (xget_renaming_scope): New function.
3249 (is_package_name): New function.
3250 (renaming_is_visible): New function.
3251 (remove_out_of_scope_renamings): New function.
3252
3253 (ada_lookup_symbol_list): New interface.
3254 Properly reinitialize the symbol list obstack.
3255 Don't call add_symbols_from_enclosing_procs if we start from a
3256 static or global block.
3257 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3258 add_symbols_from_enclosing_procs.
3259 Add symtab data to cached entries.
3260 Handle symbols prefixed with
3261 "standard__" specially; strip prefix and don't look in local symbols.
3262 Do not include out of scope renaming symbols in list of
3263 symbols returned.
3264 Add const to block parameter.
3265 Move check for non-local, non-global symbols earlier.
3266 Remove timing stuff.
3267 (ada_lookup_symbol): New interface.
3268 Find symtab as well.
3269 (ada_lookup_symbol_nonlocal): New function.
3270
3271 (is_name_suffix): Enhance suffix detection to recognize
3272 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3273 (is_dot_digits_suffix): New function.
3274 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3275
3276 (ada_add_block_symbols): New interface. Use obstack to return results
3277 in a vector of struct ada_symbol_infos. Add symtab argument.
3278 Use new interface to add_defn_to_vec.
3279 Remove calls to fill_in_ada_prototype.
3280 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3281
3282 (ada_finish_decode_line_1): Add const qualification to local to fix
3283 warning.
3284 Start looking in static block for functions to avoid attempts
3285 to search frame chain for up-level variables.
3286 Adapt to new ada_sals_for_line interface.
3287 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3288 Handle quoting of the function name inside the spec string.
3289 Skip prologue when funfirstline is set and update the
3290 function documentation to that effect.
3291
3292 (debug_print_lines, debug_print_block, debug_print_blocks,
3293 debug_print_symtab): Remove.
3294
3295 (ada_main_name): New function.
3296 (ada_exception_breakpoint_type): New function.
3297 (is_known_support_routine): New function.
3298 (ada_find_printable_frame): Renamed from find_printable_frame and made
3299 global.
3300 Remove level parameter.
3301 Use new interface to select_frame.
3302
3303 (begin_command): Remove.
3304 (ada_adjust_exception_stop): New function.
3305 (ada_print_exception_stop): New function.
3306 (exception_name_from_cond): New function.
3307 (ada_report_exception_break): Replace disabled code with
3308 conditionalization on GNAT_GDB.
3309 Get the exception name from the condition string.
3310 Remove and move functionality into new functions
3311 ada_print_exception_breakpoint_task and
3312 ada_print_exception_breakpoint_nontask.
3313 (error_breakpoint_runtime_sym_not_found): New function.
3314 (is_runtime_sym_defined): New function.
3315 (ada_breakpoint_rewrite): Uncomment suppressed code.
3316 Use symbolic error-message and runtime-symbol names.
3317 Surround runtime symbol names in quotes.
3318 Allow non-specific breakpoints on exceptions and assertions before
3319 program starts.
3320
3321 (ada_is_tagged_type): Add parameter.
3322 (ada_is_tag_type): New function.
3323 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3324 (ada_variant_discrim_type): Ditto.
3325 (value_tag_from_contents_and_address): New function.
3326 (type_from_tag): New function.
3327 (struct tag_args): New structure used to communicate with
3328 ada_tag_name_1.
3329 (ada_tag_name_1): New function.
3330 (ada_tag_name): New function.
3331
3332 (ada_scan_number): Update comment.
3333 (find_struct_field): New function.
3334 (ada_search_struct_field): Make static.
3335 (ada_value_struct_elt): New version that returns references when
3336 given pointers or references to structs.
3337 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3338 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3339 interface.
3340 (ada_value_ind): Use new ada_to_fixed_value interface.
3341 (ada_coerce_ref): Ditto.
3342 (field_offset): Remove.
3343
3344 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3345 (ada_find_renaming_symbol): New function.
3346 (ada_prefer_type): Prefer named types over unnamed ones.
3347 (variant_field_index): New function.
3348 (contains_variant_part): Removed: subsumed by variant_field_index.
3349 (ada_template_to_fixed_record_type): New function, mostly from
3350 template_to_fixed_record_type.
3351 (template_to_fixed_record_type):
3352 Do not scan the type fields beyond the last one; prevents a
3353 potential SEGV.
3354 Handle case where variant field is listed BEFORE discriminant it
3355 depends on.
3356 Fix calculation of record length when bit length is
3357 not evenly divisible by char length.
3358 Move code to ada_template_to_fixed_record_type and call it.
3359
3360 (template_to_static_fixed_type): Revise comment.
3361 Modify to work on ordinary record types as well as templates,
3362 so as to handle fields that use ___XVE or ___XVU encodings.
3363 (to_record_with_fixed_variant_part): Fill out comment.
3364 Initialize C++ stuff in right type.
3365 Allow case where DVAL is null.
3366 Handle case where variant field is not last.
3367 Fix typo concerning record length.
3368 (to_fixed_record_type): Decomment disabled code.
3369 (to_fixed_record_type): Use variant_field_index instead of
3370 contains_variant_part.
3371 (to_fixed_variant_branch_type): Ditto.
3372 (to_fixed_array_type): Decomment disabled code.
3373 (ada_to_fixed_type): Convert tagged types to the specific type.
3374 Deactivate the size-check for array types in order to avoid
3375 some false size alarms.
3376 (to_static_fixed_type): Decomment disabled code.
3377 Modify to call template_to_static_fixed_type
3378 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3379 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3380 Remove valaddr argument, as it is never really used.
3381 (ada_to_fixed_value): Change interface to act on single struct value*
3382 operand.
3383 (adjust_pc_past_prologue): New function.
3384 (ada_attribute_name): Modify to take enum exp_opcode argument.
3385
3386 (ada_enum_name): Recognize new homonym-distinguishing convention.
3387 Adjust local variable's type to remove compiler warning.
3388 Fix a small problem in the part that unqualifies the enumeration name.
3389 (ada_value_binop): New function.
3390 (ada_value_equal): New function.
3391
3392 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3393 Don't give error message when not doing normal evaluation
3394 and a tagged type doesn't seem to contain a structure member.
3395 Give error message for packed arrays.
3396 For indexing arrays, handle pointers to packed arrays correctly.
3397 Handle case of 'first and 'last attributes of bare integral type
3398 without encoded subtype info.
3399 Remove some unnecessary casts.
3400 Fix uninitialized value of type in computing 'first, 'last, or 'length
3401 of array object.
3402 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3403 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3404 calls.
3405 Attributes are now exp_opcode values.
3406 Correct treatment of 'modulus.
3407 Better error message for taking 'length of wrong kind of type;
3408 improve comment.
3409 Change EVAL_NORMAL to noside for consistency.
3410 Use ada_value_binop for DIV, MOD, REM.
3411 Make special case out of array of length 0, since an argument
3412 of 0 upsets some platforms' malloc.
3413 Use OP_STRING instead of OP_ARRAY.
3414 For slice, add check that we have an array type before extracting
3415 a slice out of it. Avoids a SEGV.
3416 When evaluating an array slice, if the array type is a reference to
3417 an aligner type, then replace the aligner type by the actual type.
3418 Decomment disabled code.
3419 Remove some dead code.
3420 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3421 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3422 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3423 and UNOP_MBR to UNOP_IN_RANGE.
3424 If an array type has a parallel ___XVE type, then use it.
3425 Turn arrays into pointers for lvalue arrays.
3426 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3427 bounds error and handle 0-length slices.
3428 Use lim_warning.
3429 When selecting fields, apply ada_to_fixed_value (because the fields
3430 might have ___XVU or ___XVE encodings even if not dynamic.)
3431 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3432 (ada_is_system_address_type): New function.
3433
3434 (get_var_value): Use new interface to ada_lookup_symbol_list.
3435 (get_int_var_value): New interface.
3436 (to_fixed_range_type): Allow unknown bound, with warning.
3437 (ada_is_modular_type): Decomment disabled code.
3438 (ADA_OPERATORS): New definition.
3439 (ada_operator_length): New function.
3440 (ada_expr_op_name): New function.
3441 (ada_forward_operator_length): New function.
3442 (ada_dump_subexp_body): New function.
3443 (ada_print_subexp): New function.
3444 (ada_exp_descriptor): New constant.
3445 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3446 (ada_language_defn): Add ada_exp_descriptor entry.
3447 Change ada_parse => parse.
3448 Add post-parser entry.
3449 Use ada-specific non-local symbol lookup.
3450 Don't use C-style arrays.
3451 String lower-bound is 1.
3452 Decomment disabled code.
3453 (parse): New function.
3454 New fields ada_translate_error_message, ada_lookup_symbol,
3455 ada_lookup_minimal_symbol.
3456
3457 * ada-lang.h: Update copyright dates.
3458 Replace the mangle/demangle terminology throughout by the
3459 more appropriate encode/decode one.
3460 Include breakpoint.h.
3461 Forward declare struct partial_symbol, struct block.
3462 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3463 (EXTRACT_ADDRESS): Remove.
3464 (EXTRACT_INT): Remove.
3465 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3466 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3467 (MAX_RENAMING_CHAIN_LENGTH): Define.
3468 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3469
3470 (enum task_states): Remove.
3471 ada_task_states: Remove.
3472 (fat_string): Remove.
3473 (struct entry_call): Remove.
3474 (struct task_fields): Remove.
3475 (struct task_entry): Remove.
3476
3477 (struct ada_symbol_info): Define.
3478 (enum ada_attribute): Remove.
3479 (enum ada_operator): Define.
3480
3481 (ada_get_field_index): Declare.
3482 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3483 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3484 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3485 (ada_lookup_symbol_list): New interface.
3486 (ada_decode_symbol): Declare.
3487 (ada_decode): Declare.
3488 (ada_lookup_symbol): New interface.
3489 (ada_update_initial_language): Declare.
3490 (ada_lookup_simple_minsym): Declare.
3491 (user_select_syms): New interface.
3492 (ada_sals_for_line): Declare.
3493 (ada_is_tagged_type): New interface.
3494 (ada_tag_name): Declare.
3495 (ada_lookup_struct_elt_type): Remove declaration.
3496 (ada_search_struct_field): Remove declaration.
3497 (ada_attribute_name): New interface.
3498 (ada_is_system_address_type): Declare.
3499 (ada_to_fixed_value): Remove declaration.
3500 (ada_template_to_fixed_record_type_1): Declare.
3501 (get_int_var_value): New interface.
3502 (ada_find_any_symbol): Declare.
3503 (ada_find_renaming_symbol): Declare.
3504 (ada_mangle): Rename to ada_encode.
3505 (ada_simple_renamed_entity): Remove const.
3506 (ada_main_name): Declare.
3507 (get_current_task): Rename to ada_get_current_task.
3508 (get_entry_number): Remove declaration.
3509 (ada_report_exception_break): Remove declaration.
3510 (ada_print_exception_breakpoint_nontask): Declare.
3511 (ada_print_exception_breakpoint_task): Declare.
3512 (ada_find_printable_frame): Declare.
3513
3514 * ada-lex.l: Update copyright notices.
3515 Use xmalloc and xfree instead of malloc and free.
3516 Use new interface to name_lookup.
3517 Use new interface to
3518 ada_mangle=>ada_encode.
3519 Redo handling of '$...' variable to parallel current treatment
3520 in c-exp.y.
3521 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3522 digit_to_int, strtoulst, processInt, processReal, processId,
3523 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3524 yywrap): Protoize.
3525
3526 (processInt): Use cast to remove harmless warning.
3527 (processReal): Modify to get rid of compiler warning on scan formats.
3528
3529 (processId): Replace xmalloc with obstack_alloc for name and remove
3530 call to ada_name_string_cleanup.
3531 Remove obsolete disabled code.
3532 (name_lookup): Ditto.
3533 New interface.
3534 Use obsavestring on temp_parse_space instead of savestring
3535 on name, and remove call to ada_name_string_cleanup.
3536 Free string returned from ada_simple_renamed_entity.
3537 Use new interface to ada_lookup_symbol_list.
3538 Decomment disabled code.
3539 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3540 not types.
3541 When a type name lookup succeeds as a result of
3542 lookup_primitive_typename, check for regular type entry that has not
3543 yet been read in.
3544 Limit length of chain of renamed symbols we are willing to follow.
3545 Do not break names beginning with "standard__" into segments.
3546 (block_lookup): Use new interface to ada_lookup_symbol_list.
3547
3548 * ada-typeprint.c: Update copyright notice.
3549 (demangled_type_name): Rename to decoded_type_name.
3550 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3551 (print_range_bound): Correct handling of negative
3552 bounds that make the index type looked unsigned under STABS.
3553 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3554 (print_range_type_named): Use the builtin int type if no type
3555 corresponding to the given type name could be found.
3556 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3557 Add some bullet-proofing.
3558 (print_variant_clauses): Allow for variant branches with ___XVU
3559 encodings that are not dynamic fields.
3560 Use new interface to ada_is_tagged_type.
3561 (print_record_type): Allow for fields with ___XVE encodings that
3562 are not dynamic fields.
3563 Use new interface to ada_is_tagged_type.
3564 (ada_print_type): ada_is_array_descriptor =>
3565 ada_is_array_descriptor_type.
3566
3567 * ada-valprint.c: Update copyright notice.
3568 Include gdb_string.h
3569 Include infcall.h
3570 (ui_memcpy): New function.
3571 (ada_print_floating): New function.
3572 (ada_print_str): Order arguments correctly.
3573 Correct handling of empty arrays and arrays of 0-length items.
3574 ada_is_array_descriptor => ada_is_array_descriptor_type
3575 Print values of type System.Address in hexadecimal format.
3576 Use ada_print_floating to print floating-point numbers in Ada format.
3577 Print class tag values with type names.
3578 No longer print the address of reference values. Avoids
3579 a potential confusion.
3580 (ada_value_print): Stop printing the object type for reference
3581 values, but preserve that behavior for access types. Avoids
3582 a potential confusion.
3583 Simplify one conditional expression, as the first part is now
3584 necessarily true.
3585 ada_is_array_descriptor => ada_is_array_descriptor_type
3586 Add check for arrays for null records, and print them by hand.
3587
3588 2004-06-01 Jim Blandy <jimb@redhat.com>
3589
3590 * ppc-tdep.h: Delete unused 'regoff' member.
3591 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3592
3593 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3594
3595 Fix PR symtab/1661.
3596 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3597 (hpread_read_struct_type): Likewise.
3598
3599 2004-06-01 Andrew Cagney <cagney@gnu.org>
3600
3601 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3602 instead of xasprintf.
3603 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3604 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3605 (mi_cmd_data_list_register_names)
3606 (mi_cmd_data_list_changed_registers)
3607 (mi_cmd_data_list_register_values)
3608 (get_register, mi_cmd_data_write_register_values)
3609 (mi_cmd_data_write_register_values)
3610 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3611 (mi_cmd_target_download, mi_cmd_target_select)
3612 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3613 (mi_execute_cli_command, mi_execute_async_cli_command)
3614 (mi_execute_async_cli_command): Ditto.
3615 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3616 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3617
3618 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3619 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3620 error_last_message instead of mi_error_last_message.
3621 * mi/mi-main.c (mi_error_last_message): Delete function.
3622
3623 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3624 "invalid number of columns" error. Delete redundant "out of
3625 memory" check.
3626
3627 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3628
3629 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3630 (gregset_t, fpregset_t): Remove typedefs.
3631 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3632 (REG_OFFSET): Rename argument.
3633 (i386bsd_r_reg_offset): Rename from reg_offset.
3634 (REG_ADDR): Remove macro.
3635 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3636 functions.
3637 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3638 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3639 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3640 instead of supply_gregset.
3641 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3642 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3643 instead of fill_gregset.
3644 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3645
3646 * i386bsd-nat.c: Don't include "gregset.h".
3647 (supply_gregset, fill_gregset): Make static.
3648 (supply_fpregset, fill_fpregset): Remove.
3649 * Makefile.in (i386bsd-nat.o): Update dependencies.
3650
3651 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3652
3653 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3654 "gdb_assert.h". Con't include "gregset.h".
3655 (fbsd_make_corefile_notes): Use regset-based core file support
3656 instead off fill_gregset and fill_fpregset.
3657 * Makefile.in (fbsd-proc.o): Update dependencies.
3658
3659 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3660 instructions.
3661 (m88k_frame_prev_register): Simplify code a bit.
3662
3663 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3664 (amd64_collect_fpregset): New function.
3665 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3666
3667 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3668
3669 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3670 (i386_collect_gregset): New function.
3671 (i386_supply_fpregset): Adjust comment.
3672 (i386_collect_fpregset): New function.
3673 (i386_regset_from_core_section): Use i386_collect_gregset and
3674 i386_collect_fpregset.
3675
3676 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3677 handle VALUEP being null.
3678
3679 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3680
3681 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3682
3683 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3684
3685 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3686 assembler in OpenBSD 3.5-current.
3687 (amd64obsd_sigcontext_addr): Likewise.
3688
3689 2004-05-28 Jim Blandy <jimb@redhat.com>
3690
3691 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3692 register set, so our regcache isn't declared "legacy" and our E500
3693 pseudoregister read and write functions aren't ignored.
3694 (rs6000_register_byte, rs6000_register_raw_size,
3695 rs6000_register_virtual_type, rs6000_register_convertible,
3696 rs6000_register_convert_to_virtual,
3697 rs6000_register_convert_to_raw): Deleted.
3698 (rs6000_register_type, rs6000_convert_register_p,
3699 rs6000_register_to_value, rs6000_value_to_register): New
3700 functions.
3701 (rs6000_gdbarch_init): Don't register
3702 gdbarch_deprecated_register_size,
3703 gdbarch_deprecated_register_bytes,
3704 gdbarch_deprecated_register_byte,
3705 gdbarch_deprecated_register_raw_size,
3706 gdbarch_deprecated_register_virtual_type,
3707 gdbarch_deprecated_register_convertible,
3708 gdbarch_deprecated_register_convert_to_virtual, or
3709 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3710 register gdbarch_register_type, gdbarch_convert_register_p,
3711 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3712
3713 2004-05-26 Jim Blandy <jimb@redhat.com>
3714
3715 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3716 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3717 functions, updated to match the register numberings used in GCC.
3718 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3719 rs6000_dwarf2_reg_to_regnum as register number conversions
3720 functions for STABS and Dwarf2.
3721
3722 2004-05-26 Randolph Chung <tausq@debian.org>
3723
3724 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3725 in header file.
3726
3727 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3728
3729 * NEWS: Document new "start" command.
3730
3731 2004-05-25 Randolph Chung <tausq@debian.org>
3732
3733 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3734 hppa-linux.
3735
3736 2004-05-25 Randolph Chung <tausq@debian.org>
3737
3738 * hppa-hpux-tdep.c (offsetof): Define.
3739 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3740 (hppa32_hpux_frame_base_before_sigtramp)
3741 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3742 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3743 (hppa64_hpux_frame_base_before_sigtramp)
3744 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3745 functions.
3746 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3747 (hppa_hpux_sigtramp_frame_unwind_cache)
3748 (hppa_hpux_sigtramp_frame_this_id)
3749 (hppa_hpux_sigtramp_frame_prev_register)
3750 (hppa_hpux_sigtramp_frame_unwind)
3751 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3752 (hppa_hpux_init_abi): Register sigtramp unwinder.
3753 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3754
3755 2004-05-25 Randolph Chung <tausq@debian.org>
3756
3757 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3758 and multiple stack unwinds.
3759 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3760
3761 2004-05-25 Andrew Cagney <cagney@gnu.org>
3762
3763 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3764 * symfile-mem.h: Delete file.
3765 * symfile-mem.c: Do not include "symfile-mem.h".
3766 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3767 "struct bfd_section". When an error do not bother returning NULL.
3768 (add_symbol_file_from_memory_command): Use "struct bfd" and
3769 "struct bfd_section".
3770 * Makefile.in (symfile_mem_h): Delete.
3771 (symfile-mem.o): Update dependencies.
3772
3773 2004-05-25 Nick Roberts <nickrob@gnu.org>
3774
3775 * gdb-mi.el: New file.
3776
3777 2004-05-25 Andrew Cagney <cagney@gnu.org>
3778
3779 * inftarg.c: Include "observer.h".
3780 (child_attach, child_create_inferior): Notify inferior_created.
3781 * corelow.c: Include "observer.h".
3782 (core_open): Notify inferior_created.
3783 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3784
3785 2004-05-25 Andrew Cagney <cagney@gnu.org>
3786
3787 * target.h (struct target_ops): Add from_tty to
3788 to_create_inferior.
3789 (target_create_inferior, find_default_create_inferior): Update.
3790 * infcmd.c (run_command): Update.
3791 * wince.c (child_create_inferior): Update.
3792 * win32-nat.c (child_create_inferior): Update.
3793 * uw-thread.c (uw_thread_create_inferior): Update.
3794 * thread-db.c (thread_db_create_inferior): Update.
3795 * target.c (debug_to_create_inferior)
3796 (find_default_create_inferior): Update.
3797 (maybe_kill_then_create_inferior): Update.
3798 * sol-thread.c (sol_thread_create_inferior): Update.
3799 * remote.c (extended_remote_async_create_inferior)
3800 (extended_remote_create_inferior): Update.
3801 * remote-vx.c (vx_create_inferior): Update.
3802 * remote-st.c (st2000_create_inferior): Update.
3803 * remote-sim.c (gdbsim_create_inferior): Update.
3804 * remote-sds.c (sds_create_inferior): Update.
3805 * remote-rdp.c (remote_rdp_create_inferior): Update.
3806 * remote-rdi.c (arm_rdi_create_inferior): Update.
3807 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3808 * remote-e7000.c (e7000_create_inferior): Update.
3809 * procfs.c (procfs_create_inferior): Update.
3810 * ocd.c (ocd_create_inferior): Update.
3811 * ocd.h (ocd_create_inferior): Update.
3812 * nto-procfs.c (procfs_create_inferior): Update.
3813 * monitor.c (monitor_create_inferior): Update.
3814 * lin-lwp.c (lin_lwp_create_inferior): Update.
3815 * inftarg.c (child_create_inferior): Update.
3816 * hpux-thread.c (hpux_thread_create_inferior): Update.
3817 * gnu-nat.c (gnu_create_inferior): Update.
3818
3819 2004-05-25 Andrew Cagney <cagney@gnu.com>
3820
3821 * MAINTAINERS: Update e-mail address.
3822
3823 2004-05-24 Randolph Chung <tausq@debian.org>
3824
3825 * thread.c (info_threads_command, thread_apply_all_command)
3826 (thread_apply_command, thread_command, do_captured_thread_select):
3827 Remove HPUXHPPA-specific code.
3828
3829 2004-05-24 Randolph Chung <tausq@debian.org>
3830
3831 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3832 unused symbols.
3833 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3834 references.
3835
3836 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3837
3838 * infcmd.c (kill_if_already_running): New function, extracted
3839 from run_command().
3840 (run_command): Replace extracted code by call to
3841 kill_if_already_running().
3842 (start_command): New function.
3843 (_initialize_infcmd): Add "start" command.
3844
3845 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3846
3847 Add OpenBSD/m88k support.
3848 * NEWS (New native configurations): Mention OpenBSD/m88k.
3849 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3850 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3851 * Makefile.in (m88k_tdep_h): New variable.
3852 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3853 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3854 * configure.host: Add m88*-*-openbsd*.
3855 * configure.tgt: Add m88*-*-openbsd*.
3856
3857 2004-05-24 Jim Blandy <jimb@redhat.com>
3858
3859 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3860 to approve changes.
3861
3862 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3863
3864 * symtab.c (fixup_section): Search section table when lookup by
3865 name fails.
3866
3867 2004-05-24 Randolph Chung <tausq@debian.org>
3868
3869 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3870 be "small_struct".
3871
3872 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3873
3874 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3875 register number in regcache_raw_collect call.
3876 (m68kbsd_collect_fpregset): Likewise.
3877 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3878
3879 * regset.h (struct regset): Add back `regset' member.
3880
3881 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3882
3883 * configure.in: Check for td_pcb in `struct thread'.
3884 * configure, config.in: Regenerated.
3885
3886 * dpx2-nat.c: Remove file.
3887 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3888 (dpx2-nat.o): Remove dependencies.
3889
3890 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3891 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3892 (amd64obsd_supply_pcb): New function.
3893 (_initialize_amd64obsd_nat): Enable libkvm interface.
3894 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3895 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3896 (LOADLIBES): New variable.
3897
3898 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3899 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3900 (sparc32nbsd_supply_pcb): New function.
3901 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3902 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3903 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3904 (LOADLIBES): New variable.
3905
3906 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3907
3908 * bsd-kvm.c, bsd-kvm.h: New files.
3909 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3910 "bsd-kvm.h".
3911 (i386fbsd_supply_pcb): New function.
3912 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3913 (i386fbsd-nat.o): Update dependencies.
3914 (bsd_kvm_h): New variable.
3915 (bsd-kvm.o): New dependency.
3916 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3917 (LOADLIBES): New variable.
3918
3919 * regset.c: Tweak comment.
3920 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3921 macro.
3922 * regset.h: Update copyright year.
3923 (struct regset): Remove `descr' member, add `gdbarch' member.
3924 (regset_alloc): Adjust prototype and comment.
3925 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3926 (i386_supply_fpregset): Likewise.
3927 (i386_regset_from_core_section): Update call to regset_alloc.
3928 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3929 REGSET->arch.
3930 (i386obsd_aout_regset_from_core_section): Update call to
3931 regset_alloc.
3932 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3933 REGSET->arch.
3934 (i386nbsd_aout_regset_from_core_section): Update call to
3935 regset_alloc.
3936 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3937 REGSET->arch.
3938 (amd64_regset_from_core_section): Update call to regset_alloc.
3939 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3940 REGSET->arch.
3941 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3942 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3943 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3944 (sparc32nbsd_init_abi): Update call to regset_alloc.
3945 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3946 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3947 (sparc64obsd_init_abi): Update call to regset_alloc.
3948 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3949 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3950 (sparc64nbsd_init_abi): Update call to regset_alloc.
3951 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3952 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3953 (sparc64fbsd_init_abi): Update call to regset_alloc.
3954
3955 2004-05-22 Jim Blandy <jimb@redhat.com>
3956
3957 * ppc-tdep.h (spe_register_p): New declaration.
3958 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3959 ppc_spefscr_regnum.
3960 * rs6000-tdep.c (spe_register_p): New function.
3961 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3962 spefscr.
3963 (rs6000_gdbarch_init): Initialize the new members of the tdep
3964 structure.
3965
3966 2004-05-21 Jim Blandy <jimb@redhat.com>
3967
3968 * ppc-linux-nat.c (fetch_register): Move code back to be next
3969 to the comment that describes it. (Moved code, instead of
3970 comment, for symmetry with store_register.)
3971
3972 Allocate regset structures in the gdbarch's obstack, not using
3973 xmalloc.
3974 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3975 Add 'arch' argument. Allocate the regset on arch's obstack, not
3976 using xmalloc.
3977 * regset.h (regset_alloc): Update declaration.
3978 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3979 gdbarch argument.
3980 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3981 * i386-tdep.c (i386_regset_from_core_section): Same.
3982 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3983 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3984 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3985 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3986 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3987 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3988
3989 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3990
3991 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3992
3993 2004-05-21 Jim Blandy <jimb@redhat.com>
3994
3995 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3996 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3997
3998 2004-05-20 Jim Blandy <jimb@redhat.com>
3999
4000 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4001
4002 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4003
4004 * regset.h: Make prototype const-correct.
4005 * regset.c (regset_xmalloc): Make const-correct.
4006
4007 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4008
4009 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4010 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4011 (symbol_search_name): Declare.
4012
4013 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4014 (iter_name_next_hashed): Ditto.
4015 (iter_name_next_linear): Ditto.
4016 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4017
4018 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4019 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4020 (symbol_search_name): New function.
4021
4022 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4023
4024 * minsyms.c (build_minimal_symbol_hash_tables): Change
4025 test for adding to demangled hash table to check for difference
4026 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4027
4028 2004-05-19 Jim Blandy <jimb@redhat.com>
4029
4030 Use a constructor function to create regset structures.
4031 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4032 (struct regset): Use supply_regset_ftype. Add new
4033 'collect_regset' member.
4034 (regset_xmalloc): New declaration.
4035 * regset.c: New file.
4036 * am64-tdep.c (amd64_regset_from_core_section): Use
4037 regset_xmalloc to construct regset structures.
4038 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4039 * i386-tdep.c (i386_regset_from_core_section): Same.
4040 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4041 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4042 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4043 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4044 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4045 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4046 * Makefile.in (COMMON_OBS): Add regset.o.
4047 (regset.o): New rule.
4048
4049 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4050
4051 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4052 and pthread_cond_wait.c.
4053
4054 2004-05-18 Jim Blandy <jimb@redhat.com>
4055
4056 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4057 before the mach-specific switch, and then let the individual cases
4058 override the defaults, rather than leaving them uninitialized
4059 until the switch and then setting them in each case.
4060
4061 2004-05-18 Randolph Chung <tausq@debian.org>
4062
4063 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4064 millicode functions.
4065
4066 2004-05-18 Randolph Chung <tausq@debian.org>
4067
4068 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4069 references to dld_flags_buffer consistent.
4070
4071 2004-05-18 Randolph Chung <tausq@debian.org>
4072
4073 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4074 it for unwinding the stack.
4075
4076 2004-05-18 Randolph Chung <tausq@debian.org>
4077
4078 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4079 Undefine these so we can overide them using gdbarch.
4080
4081 2004-05-18 Randolph Chung <tausq@debian.org>
4082
4083 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4084 handling for 64-bit HPUX (elf).
4085
4086 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4087
4088 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4089 constants.
4090 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4091 * ia64-tdep.c (examine_prologue): Likewise.
4092 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4093 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4094
4095 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4096
4097 * vax-tdep.c (vax_return_value): Implement
4098 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4099
4100 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4101
4102 * vax-tdep.c (vax_return_value): Fix typo.
4103
4104 2004-05-17 Andrew Cagney <cagney@redhat.com>
4105
4106 * MAINTAINERS: Mark Salter was also responsible for
4107 testsuite/config/
4108
4109 * NEWS: Mention signal fixes.
4110
4111 2004-05-17 Randolph Chung <tausq@debian.org>
4112
4113 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4114 check to see if we are unwinding an export stub. Export stubs clobber
4115 the %rp in the call path and stores the original rp in a stack slot.
4116
4117 2004-05-17 Jim Blandy <jimb@redhat.com>
4118
4119 * MAINTAINERS: Update address for J.T. Conklin.
4120
4121 2004-05-17 Randolph Chung <tausq@debian.org>
4122
4123 * hppa-tdep.c: Remove superfluous #include's.
4124 * Makefile.in (hppa-tdep.o): Update dependencies.
4125
4126 2004-05-17 Randolph Chung <tausq@debian.org>
4127
4128 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4129 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4130 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4131 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4132 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4133 Remove static function declarations.
4134
4135 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4136
4137 * alphabsd-nat.c: Update copyright year.
4138 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4139
4140 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4141 and M68K_A2_REGNUM.
4142
4143 * m68k-tdep.c (m68k_svr4_return_value): Implement
4144 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4145
4146 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4147
4148 * sol-thread.c Update copyright year. Fix various coding
4149 standards violations. Tweak a few comments.
4150 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4151 Delete prototypes.
4152
4153 2004-05-15 Randolph Chung <tausq@debian.org>
4154
4155 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4156 as pointer instead of array reference since HPUX compiler does
4157 not accept unsized array arguments.
4158 * somsolib.c (dld_flags_buffer): Use constant array size.
4159
4160 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4161
4162 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4163 offset with decimal offset.
4164 (amd64obsd_sigcontext_addr): Return correct address for entire
4165 signal trampoline.
4166
4167 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4168 instead of get_frame_base.
4169
4170 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4171 (fill_gregset): Use regcache_raw_collect.
4172
4173 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4174 ppcobsd-tdep.c.
4175
4176 * config/sparc/tm-nbsd64.h: Remove file.
4177 * config/tm-sunos.h: Remove file.
4178
4179 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4180
4181 * rs6000-tdep.c (store_param_on_stack_p): New function,
4182 an improved version of some code extracted from skip_prologue().
4183 (skip_prologue): Use store_param_on_stack_p() to detect
4184 instructions saving a parameter on the stack. Detect when r0
4185 is used to save a parameter.
4186 Do not mark "li rx, SIMM" instructions as part of the prologue,
4187 unless the following instruction is also part of the prologue.
4188
4189 2004-05-14 Andrew Cagney <cagney@redhat.com>
4190
4191 * infrun.c (handle_inferior_event): Simplify
4192 STEP_OVER_UNDEBUGGABLE.
4193
4194 * infrun.c (handle_step_into_function): Delete function.
4195 (handle_inferior_event): Inline calls to
4196 handle_step_into_function.
4197
4198 2004-05-14 Jerome Guitton <guitton@gnat.com>
4199
4200 * rs6000-nat.c: Fix a comment.
4201
4202 2004-05-12 David Anderson <davea@sgi.com>
4203
4204 Committed by Jim Blandy <jimb@redhat.com>:
4205 * regcache.c (struct regcache_descr): fix comment spelling.
4206
4207 2004-05-13 J. Brobecker <brobecker@gnat.com>
4208
4209 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4210 Fixes a link link failure.
4211
4212 2004-05-13 J. Brobecker <brobecker@gnat.com>
4213
4214 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4215 error that was causing the build to fail.
4216
4217 2004-05-13 J. Brobecker <brobecker@gnat.com>
4218
4219 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4220 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4221
4222 2004-05-13 Andrew Cagney <cagney@redhat.com>
4223
4224 * infrun.c (handle_inferior_event): Check for
4225 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4226 calls. Update comments.
4227
4228 2004-05-13 Jim Blandy <jimb@redhat.com>
4229
4230 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4231 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4232 (store_regs_user_thread, store_regs_kernel_thread): Use
4233 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4234 * ppc-linux-nat.c (fill_gregset): Same.
4235 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4236 (ppc_linux_sigtramp_cache): Same.
4237 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4238 (ppcnbsd_sigtramp_cache_init): Same.
4239 * rs6000-nat.c (fetch_core_registers): Same.
4240 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4241 (rs6000_frame_cache): Same.
4242
4243 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4244 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4245 of assuming that the gprs are numbered starting with zero.
4246 * ppc-linux-nat.c (fill_gregset): Same.
4247 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4248 * ppcnbsd-nat.c (getregs_supplies): Same.
4249 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4250 * rs6000-nat.c (fetch_core_registers): Same.
4251 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4252
4253 2004-05-07 Michael Snyder <msnyder@redhat.com>
4254
4255 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4256 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4257
4258 2004-05-13 Andrew Cagney <cagney@redhat.com>
4259
4260 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4261
4262 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4263
4264 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4265 base_address for shared libraries.
4266
4267 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4268
4269 * MAINTAINERS (write after approval): Add myself.
4270
4271 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4272
4273 * breakpoint.c (bpstat_stop_status): Add new argument
4274 STOPPED_BY_WATCHPOINT. Use it instead of testing
4275 target_stopped_data_address agaist 0 to check whether
4276 or not we stopped due to a hardware watchpoint.
4277 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4278 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4279 with new argument.
4280
4281 2004-05-12 Jim Blandy <jimb@redhat.com>
4282
4283 * configure.in: When checking whether we should use the -bbigtoc
4284 option, don't forget to restore the original value of LDFLAGS.
4285 * configure: Regenerated.
4286
4287 2004-05-12 Andrew Cagney <cagney@redhat.com>
4288
4289 * thread.c (load_infrun_state): Delete step_sp.
4290 * infrun.c (context_switch): Ditto.
4291 * inferior.h (step_sp): Ditto.
4292 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4293 * gdbthread.h (struct thread_info, save_infrun_state)
4294 (restore_infrun_state): Ditto.
4295
4296 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4297
4298 * MAINTAINERS (write after approval): Add myself.
4299
4300 2004-05-12 Andrew Cagney <cagney@redhat.com>
4301
4302 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4303 eliminate reference to step_sp.
4304 (struct execution_control_state, init_execution_control_state)
4305 (handle_inferior_event, keep_going): Delete update_step_sp and
4306 step_sp.
4307 * infcmd.c (step_sp): Note that variable is unused.
4308
4309 2004-05-11 Andrew Cagney <cagney@redhat.com>
4310
4311 * infrun.c (step_over_function): Delete function.
4312 (handle_step_into_function): Use insert_step_resume_breakpoint.
4313 (insert_step_resume_breakpoint): Fix assertion.
4314
4315 2004-05-11 Nick Roberts <nickrob@gnu.org>
4316
4317 * utils.c (defaulted_query): Just use the normal query input type
4318 when printing the annotations.
4319
4320 2004-05-11 Andrew Cagney <cagney@redhat.com>
4321
4322 * infrun.c (handle_inferior_event): Simplify code handling
4323 step-into or return-from a signal trampoline.
4324
4325 2004-05-11 Andrew Cagney <cagney@redhat.com>
4326
4327 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4328 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4329
4330 2004-05-10 Jim Blandy <jimb@redhat.com>
4331
4332 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4333 with a call to internal_error.
4334
4335 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4336 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4337 processor variant lacks those registers.
4338 (ppc_floating_point_unit_p): Change description to make it clear
4339 that this returns info about the ISA, not the ABI.
4340 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4341 return true or false by checking tdep->ppc_fp0_regnum and
4342 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4343 arch/mach switching done in rs6000_gdbarch_init; it's better to
4344 keep that logic there, and just check the results here.
4345 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4346 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4347 floating-point registers.
4348 (ppc_supply_fpregset, ppc_collect_fpregset)
4349 (rs6000_push_dummy_call, rs6000_extract_return_value)
4350 (rs6000_store_return_value): Assert that we have floating-point
4351 registers.
4352 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4353 (rs6000_frame_cache): Don't note the locations at which
4354 floating-point registers were saved if we have no fprs.
4355 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4356 registers.
4357 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4358 (store_regs_user_thread, store_regs_kernel_thread): Only call
4359 supply_fprs / fill_fprs if we actually have floating-point
4360 registers.
4361 (special_register_p): Check ppc_fpscr_regnum before matching
4362 against it.
4363 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4364 supply / collect fpscr if we don't have it.
4365 * ppc-bdm.c: #include "gdb_assert.h".
4366 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4367 have floating-point registers, since I can't test this code on
4368 FP-free systems to adapt it.
4369 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4370 fpscr and floating point register numbers if they don't exist.
4371 (fetch_register): Assert that we have floating-point registers
4372 before we reach the code that handles them.
4373 (store_register): Same. And use tdep instead of calling
4374 gdbarch_tdep again.
4375 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4376 don't have them.
4377 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4378 fprs and fpscr if we don't have them.
4379 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4380 don't have them.
4381 * ppcnbsd-nat.c: #include "gdb_assert.h".
4382 (getfpregs_supplies): Assert that we have floating-point registers.
4383 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4384 * ppcobsd-tdep.c: #include "gdb_assert.h".
4385 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4386 have floating-point registers.
4387 * rs6000-nat.c (regmap): Don't match against the fpscr and
4388 floating point register numbers if they don't exist.
4389 (fetch_inferior_registers, store_inferior_registers,
4390 fetch_core_registers): Only fetch / store / supply the
4391 floating-point registers and the fpscr if we have them.
4392 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4393 (ppcobsd-tdep.o): Update dependencies.
4394
4395 2004-05-10 Andrew Cagney <cagney@redhat.com>
4396
4397 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4398 (context_switch): Do not switch through_sigtramp_breakpoint.
4399 * gdbthread.h (save_infrun_state, load_infrun_state)
4400 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4401 and structure member.
4402 * thread.c (load_infrun_state, save_infrun_state): Update.
4403
4404 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4405
4406 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4407
4408 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4409
4410 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4411 throughout.
4412 * aclocal.m4: Regenerate.
4413
4414 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4415
4416 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4417
4418 2004-05-10 Andrew Cagney <cagney@redhat.com>
4419
4420 * infrun.c (check_sigtramp2): Delete function.
4421 (handle_inferior_event): When single stepping, and taking a
4422 signal, set a breakpoint at the signal return address. Delete
4423 redundant calls to check_sigtramp2.
4424 (insert_step_resume_breakpoint): New function.
4425 (through_sigtramp_breakpoint, handle_inferior_event)
4426 (follow_exec, wait_for_inferior, fetch_inferior_event)
4427 (currently_stepping, keep_going): Delete most uses of
4428 through_sigtramp_breakpoint, not that it should be deleted.
4429 (delete_breakpoint_current_contents): Delete function.
4430
4431 2004-05-10 Randolph Chung <tausq@debian.org>
4432
4433 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4434 target.
4435 * config/pa/tm-linux.h: New file.
4436
4437 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4438
4439 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4440 of prefixes. Don't print the prefix twice in the CLI.
4441
4442 2004-05-10 Jim Blandy <jimb@redhat.com>
4443
4444 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4445 collect all the gprs.
4446
4447 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4448 loop collecting gprs.
4449
4450 2004-05-09 Andrew Cagney <cagney@redhat.com>
4451
4452 * remote-vx.c (net_step): Delete step-range code.
4453 * remote.c (remote_resume, init_all_packet_configs)
4454 (set_remote_protocol_E_packet_cmd)
4455 (show_remote_protocol_E_packet_cmd)
4456 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4457 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4458 (show_remote_protocol_e_packet_cmd): Ditto.
4459
4460 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4461
4462 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4463
4464 * hppa-tdep.h: Update copyright year.
4465 (struct trad_frame_saved_reg): Add opaque declaration.
4466
4467 * amd64-tdep.c (amd64_return_value): Implement
4468 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4469
4470 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4471 (m68k_value_to_register): New functions.
4472 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4473 value_to_register.
4474
4475 * defs.h (enum return_value_convention): Add
4476 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4477 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4478 * infcmd.c (legacy_return_value): New function.
4479 (print_return_value): Rwerite to implement
4480 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4481 * values.c (using_struct_return): Check for inequality to
4482 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4483 RETURN_VALUE_STRUCT_CONVENTION.
4484 * i386-tdep.c (i386_return_value): Implement
4485 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4486
4487 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4488 include "symtab.h", "opcode/vax.h" and "inferior.h".
4489 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4490 to read_memory_unsigned_integer.
4491 (vax_gdbarch_init): Reorder.
4492 (_initialize_vax_tdep): Spell out prototype.
4493 * Makefile.in (vax-tdep.o): Update dependencies.
4494
4495 2004-05-08 Andrew Cagney <cagney@redhat.com>
4496
4497 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4498 * target.c (target_detach, target_disconnect): Ditto.
4499
4500 * infcall.c (call_function_by_hand): When no
4501 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4502 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4503 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4504 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4505 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4506
4507 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4508 * gdbarch.h, gdbarch.c: Re-generate.
4509 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4510 deprecated_fix_call_dummy.
4511 * v850-tdep.c (v850_gdbarch_init): Ditto.
4512 * infcall.c (call_function_by_hand): Do not call
4513 DEPRECATED_FIX_CALL_DUMMY.
4514
4515 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4516 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4517 * gdbarch.h, gdbarch.c: Re-generate.
4518 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4519 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4520 deprecated_sizeof_call_dummy_words.
4521 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4523 * v850-tdep.c (v850_gdbarch_init): Ditto.
4524 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4525 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4527 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4528 * arch-utils.h (legacy_call_dummy_words)
4529 (legacy_sizeof_call_dummy_words): Delete declarations.
4530 * arch-utils.c (legacy_call_dummy_words)
4531 (legacy_sizeof_call_dummy_words): Delete variables.
4532
4533 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4534 * gdbarch.h, gdbarch.c: Re-generate.
4535 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4536 * infcall.c (call_function_by_hand): Eliminate call to
4537 DEPRECATED_PUSH_DUMMY_FRAME.
4538 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4539 push_dummy_frame.
4540 (ns32k_push_dummy_frame): Delete function.
4541
4542 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4543 deprecated_call_dummy_breakpoint_offset or
4544 deprecated_call_dummy_start_offset.
4545 * dummy-frame.c, arm-tdep.c: Update comments.
4546 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4547 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4548 * gdbarch.h, gdbarch.c: Re-generate.
4549
4550 * infcall.c (legacy_push_dummy_code): Delete function.
4551 (push_dummy_code): Delete call.
4552
4553 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4554 * gdbarch.h, gdbarch.c: Re-generate.
4555 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4556 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4557 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4558 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4559
4560 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4561 (struct frame_info): Delete opaque declaration.
4562 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4563 * frame.c (get_frame_type): Delete call.
4564
4565 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4566 pc_in_call_dummy.
4567 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4568 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4569
4570 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4571
4572 * alphanbsd-tdep.c: Include "gdb_string.h".
4573 * armnbsd-tdep.c: Update copyright year.
4574 Include "gdb_string.h".
4575 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4576 dependencies.
4577
4578 * delta68-nat.c: Remove file.
4579 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4580 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4581 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4582 (delta68-nat.o): Remove dependency.
4583
4584 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4585 function.
4586 (m68k_gdbarch_init): Don't set
4587 deprecated_frameless_function_invocation.
4588
4589 2004-05-07 Randolph Chung <tausq@debian.org>
4590
4591 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4592 read_memory_nobpt for code reading when doing frame unwinding.
4593 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4594
4595 2004-05-07 Randolph Chung <tausq@debian.org>
4596
4597 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4598 instead of sp, handle sigaltstack case.
4599 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4600 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4601 signal handler and not that of the caller.
4602 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4603 hppa_linux_sigtramp_find_sigcontext.
4604
4605 2004-05-07 Randolph Chung <tausq@debian.org>
4606
4607 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4608 hppa-linux-nat.c.
4609 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4610 * hppa-linux-nat.c (fetch_register, store_register): Define.
4611 (fetch_inferior_registers, store_inferior_registers): Define.
4612 (supply_gregset): Add comment and clean up some unneeded code.
4613 (fill_gregset): Add comment and fix so that it saves registers in
4614 the right place in the gregset.
4615 (fill_fpregset): Fix buffer overrun problem.
4616 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4617
4618 2004-05-07 Randolph Chung <tausq@debian.org>
4619
4620 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4621 do common handling of the pcoqt register.
4622 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4623 to use helper function.
4624 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4625 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4626 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4627 generic fallback unwinder when all else fails.
4628 (hppa_gdbarch_init): Add fallback sniffer.
4629 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4630 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4631 to use helper function.
4632
4633 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4634
4635 * config/djgpp/fnchange.lst: Add translation rules for
4636 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4637
4638 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4639
4640 * frame.c (get_prev_frame_1): Work around GCC bug.
4641 * frame.h: Add comment about GCC bug.
4642
4643 2004-05-07 Andrew Cagney <cagney@redhat.com>
4644
4645 * observer.c: Include "commands.h" and "gdbcmd.h".
4646 (observer_debug, _initialize_observer): Add the
4647 command "set/show debug observer".
4648 * observer.sh: When observer debugging, log notify calls.
4649 * Makefile.in (observer.o): Update dependencies.
4650
4651 2004-05-07 Jason Molenda (jmolenda@apple.com)
4652
4653 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4654
4655 2004-05-07 Jim Blandy <jimb@redhat.com>
4656
4657 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4658 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4659 to recognize gpr regnums, instead of assuming that
4660 tdep->ppc_fp0_regnum marks the end of the general-purpose
4661 registers.
4662
4663 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4664 the given architecture has floating-point registers.
4665
4666 2004-05-07 Andrew Cagney <cagney@redhat.com>
4667
4668 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4669 macro defined to 1.
4670 * gdbarch.h, gdbarch.c: Re-generate.
4671 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4672 deprecated_use_generic_dummy_frames.
4673
4674 2004-05-07 Brian Ford <ford@vss.fsi.com>
4675
4676 * NEWS: Mention Cygwin DWARF 2 support.
4677
4678 2004-05-07 Andrew Cagney <cagney@redhat.com>
4679
4680 * objfiles.h (struct entry_info): Delete unused fields
4681 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4682 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4683 * mipsread.c (mipscoff_symfile_read): Update.
4684 * mdebugread.c (parse_partial_symbols): Update.
4685 * dwarfread.c (read_file_scope): Update.
4686 * dwarf2read.c (read_file_scope): Update.
4687 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4688 * coffread.c (complete_symtab): Update.
4689
4690 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4691
4692 * infcall.c (_initialize_infcall): Fix typo.
4693
4694 2004-05-07 Andrew Cagney <cagney@redhat.com>
4695
4696 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4697 * command.h (add_setshow_zinteger_cmd): Declare.
4698
4699 2004-05-06 Randolph Chung <tausq@debian.org>
4700
4701 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4702 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4703 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4704 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4705 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4706 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4707 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4708 definitions ...
4709 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4710 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4711 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4712 (hppa64_hpux_frame_find_saved_regs_in_sig)
4713 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4714 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4715 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4716 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4717 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4718 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4719 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4720 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4721 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4722 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4723 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4724 (hppa32_register_type, hppa_cannot_store_register)
4725 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4726 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4727 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4728 * pa64solib.c (pa64_solib_have_load_event)
4729 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4730 (pa64_solib_unloaded_library_pathname): Likewise.
4731 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4732 (som_solib_library_pathname): Likewise.
4733
4734 2004-05-05 Jim Ingham <jingham@apple.com>
4735
4736 * breakpoint.c (create_breakpoints): Copy the ignore count and
4737 thread id over from the pended breakpoint to the actual
4738 breakpoint.
4739
4740 2004-05-05 Andrew Cagney <cagney@redhat.com>
4741
4742 * gdbarch.sh (PARM_BOUNDARY): Delete.
4743 gdbarch.h, gdbarch.c: Re-generate.
4744 * valops.c (PARM_BOUNDARY): Delete macro.
4745 (value_push): Delete PARM_BOUNDARY code.
4746 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4747
4748 2004-05-04 Jim Blandy <jimb@redhat.com>
4749
4750 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4751 Don't assume that the gprs, fprs, and UISA sprs are
4752 contiguous, start at register number zero, and end with fpscr.
4753 Instead, use the numbers from the tdep structure.
4754
4755 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4756 should no longer be used in code specific to the RS6000 and its
4757 derivatives.
4758 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4759 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4760 tdep->ppc_fp0_regnum.
4761 (ppc_supply_fpregset, ppc_collect_fpregset)
4762 (rs6000_push_dummy_call, rs6000_extract_return_value)
4763 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4764 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4765 FP0_REGNUM.
4766 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4767 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4768 Same.
4769 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4770 bdm_ppc_store_registers): Same.
4771 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4772 (store_register, fill_fpregset): Same.
4773 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4774 (ppc_linux_supply_fpregset): Same.
4775 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4776 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4777 Same.
4778 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4779 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4780 ppc64_sysv_abi_return_value): Same.
4781 * rs6000-nat.c (regmap, fetch_inferior_registers)
4782 (store_inferior_registers, fetch_core_registers): Same.
4783
4784 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4785
4786 * m68knbsd-nat.c: Remove file.
4787 * m68knbsd-tdep.c: Remove file.
4788 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4789 dependencies.
4790 * configure.host: Add m68k-*-netbsdelf*.
4791 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4792 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4793 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4794 (XM_FILE): Remove.
4795 * config/m68k/nbsdelf.mh: New file.
4796 * config/m68k/nbsd.mt: New file.
4797 * config/m68k/nbsdaout.mt: Remove file.
4798 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4799 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4800 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4801 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4802 (use_struct_convention): Remove prototype.
4803 (USE_STRUCT_CONVENTION): Remove define.
4804 * config/m68k/xm-nbsd.h: Remove file.
4805
4806 2004-05-04 Michael Snyder <msnyder@redhat.com>
4807
4808 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4809 reg_struct_return method (as gcc usually does for cross targets).
4810
4811 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4812
4813 Committed by Andrew Cagney.
4814 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4815 alignment padding when accessing ucontext struct members.
4816
4817 2004-05-04 Jim Blandy <jimb@redhat.com>
4818
4819 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4820 'ppc_gplast_regnum' member.
4821 (ppc_num_gprs): New enum constant.
4822 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4823 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4824 * rs6000-nat.c (regmap, fetch_inferior_registers,
4825 store_inferior_registers): Same.
4826 * rs6000-tdep.c (e500_pseudo_register_read)
4827 (e500_pseudo_register_write): Same.
4828 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4829
4830 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4831 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4832 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4833 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4834 FPLAST_REGNUM.
4835 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4836 Same.
4837 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4838 * rs6000-nat.c (regmap, fetch_inferior_registers)
4839 (store_inferior_registers): Same.
4840
4841 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4842 with FPLAST_REGNUM.
4843
4844 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4845
4846 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4847 failure detected by recent versions of GCC.
4848 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4849 to be consistent with the usage in dwarf2_create_include_psymtab.
4850
4851 2004-05-03 Michael Snyder <msnyder@redhat.com>
4852
4853 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4854 (heuristic_proc_start): Whitespace cleanup.
4855
4856 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4857
4858 * sun3-nat.c: Remove file.
4859 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4860 dependencies.
4861 (ALLDEPFILES): Remove sun3-nat.c.
4862 (sun3-nat.o): Remove dependencies.
4863
4864 * i386-interix-nat.c, i386-interix-tdep.c,
4865 config/i386/nm-interix.h, config/i386/interix.mh,
4866 config/i386/interix.mt: Remove files.
4867 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4868 dependencies.
4869
4870 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4871
4872 * m68k-tdep.h (struct gdbarch_tdep): Add member
4873 struct_value_regnum.
4874 (m68k_svr4_init_abi): New prototype.
4875 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4876 different calling conventions.
4877 (m68k_extract_return_value): Remove code dealing with single-field
4878 structs.
4879 (m68k_store_return_value): Remove code dealing with single-field
4880 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4881 (m68k_extract_struct_value_address): Remove function.
4882 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4883 (m68k_reg_struct_return_p, m68k_return_value)
4884 (m68k_svr4_return_value): New functions.
4885 (m68k_use_struct_convention): Remove function.
4886 (m68k_push_dummy_call): Use new struct_value_regnum member of
4887 `struct gdbarch_tdep' instead of hardcoded register number to
4888 store STRUCT_ADDR.
4889 (m68k_svr4_init_abi): New function.
4890 (m68k_gdbarch_init): Don't set extract_return_value,
4891 store_return_values, deprecated_extract_struct_value_address and
4892 use_struct_convention. Set return_value instead. Initialize new
4893 struct_value_regnum member of `struct gdbarch_tdep'.
4894 * m68klinux-tdep.c: Update copyright year.
4895 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4896 (m68k_linux_extract_struct_value_address): Remove function.
4897 (m68k_linux_init_abi): Don't set extract_return_value,
4898 store_return_values, deprecated_extract_struct_value_address and
4899 use_struct_convention. Call m68k_svr4_init_abi but override the
4900 new struct_value_regnum member of `struct gdbarch_tdep'.
4901 * Makefile.in (m68k-tdep.o): Update dependencies.
4902
4903 2004-05-03 J. Brobecker <brobecker@gnat.com>
4904
4905 * dwarf2read.c (line_header): Add new included_p field in
4906 field file_names.
4907 (partial_die_info): New field has_stmt_list. New field line_offset.
4908 (dwarf2_create_include_psymtab): New function.
4909 (dwarf2_build_include_psymtabs): New function.
4910 (add_file_name): Add forward declaration. Initialize new field.
4911 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4912 to be able to determine the list of files included by the
4913 given unit, and build their associated psymtabs.
4914 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4915 files as well.
4916 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4917 (read_file_scope): Update call to dwarf_decode_lines.
4918 (read_partial_die): Handle DW_AT_stmt_list attributes.
4919
4920 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4921
4922 Unfix PR gdb/1626.
4923 * configure.in: Revert special case for osf5.*.
4924 * configure: Regenerate.
4925
4926 2004-05-02 Jim Blandy <jimb@redhat.com>
4927
4928 Move the symbol-file-from-memory functions into their own file.
4929 * symfile-mem.c, symfile-mem.h: New files.
4930 * symfile.c (symbol_file_add_from_bfd): New function.
4931 (symbol_file_add): Call symbol_file_add_from_bfd.
4932 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4933 Moved to symfile-mem.c.
4934 (_initialize_symfile): Move definition of
4935 add-symbol-file-from-memory command to symfile-mem.c.
4936 * symfile.h (symbol_file_add_from_bfd): New declaration.
4937 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4938 * config/powerpc/linux.mt (TDEPFILES): Same.
4939 * Makefile.in (SFILES): Add symfile-mem.c.
4940 (symfile_mem_h): New variable.
4941 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4942 (symfile-mem.o): New rule.
4943
4944 2004-05-01 Andrew Cagney <cagney@redhat.com>
4945
4946 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4947 frame_find_by_id instead of frame_relative_level.
4948 (do_enable_breakpoint): Ditto.
4949 * thread.c: Update copyright.
4950 (info_threads_command): Ditto, simplify.
4951
4952 * frame.c (deprecated_generic_get_saved_register): Delete
4953 function, moved to "xstormy16-tdep.c".
4954 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4955 deprecated_generic_get_saved_register from "frame.c".
4956 (xstormy16_frame_saved_register): Call
4957 xstormy16_get_saved_register.
4958 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4959 static.
4960 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4961 * frame.h (deprecated_generic_get_saved_register): Delete.
4962
4963 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4964
4965 * dwarfread.c: Update documentation on the state of dwarf-1.
4966
4967 2004-05-01 Andrew Cagney <cagney@redhat.com>
4968
4969 * stack.c (select_frame_command): Delete call to
4970 frame_relative_level.
4971 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4972 Delete #if0 code.
4973 (frame_info): Do not print FRAMELESS.
4974 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4975 (catch_info): Delete #if0 code.
4976
4977 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4978 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4979 of frame_relative_level.
4980 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4981 to SENTINEL_FRAME.
4982 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4983 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4984 frame_relative_level.
4985
4986 * frame.h (deprecated_set_frame_type): Delete declaration.
4987 * frame.c (deprecated_set_frame_type): Delete function, update
4988 comments.
4989
4990 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4991 * gdbarch.h, gdbarch.c: Re-generate.
4992 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4993 (shnbsd_pc_in_sigtramp): Delete.
4994 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4995 pc_in_sigtramp.
4996 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4997 pc_in_sigtramp.
4998 * frame.h: Update comments.
4999 * ppc-linux-tdep.c: Update comments.
5000 * breakpoint.c (bpstat_what): Update comments.
5001
5002 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5003 m68klinux-tdep.o's dependencies, were previously added to
5004 m68klinux-nat.o.
5005
5006 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5007 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5008 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5009 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5010 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5011
5012 * Makefile.in (m68klinux-nat.o): Update dependencies.
5013 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5014 (m68k_linux_sigtramp_frame_cache)
5015 (m68k_linux_sigtramp_frame_this_id)
5016 (m68k_linux_sigtramp_frame_prev_register)
5017 (m68k_linux_sigtramp_frame_unwind)
5018 (m68k_linux_sigtramp_frame_sniffer)
5019 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5020 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5021 names, use trad-frame.h.
5022 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5023 (struct m68k_sigtramp_info): Delete.
5024 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5025 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5026 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5027 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5028 "m68klinux-tdep.c".
5029
5030 * infrun.c (check_sigtramp2): Delete check for
5031 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5032
5033 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5034
5035 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5036
5037 2004-05-01 Andrew Cagney <cagney@redhat.com>
5038
5039 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5040 (frv_linux_sigtramp_frame_cache)
5041 (frv_linux_sigtramp_frame_this_id)
5042 (frv_linux_sigtramp_frame_prev_register)
5043 (frv_linux_sigtramp_frame_unwind)
5044 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5045 include "linux" in function and variable names, directly call
5046 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5047 the latest trad-frame code.
5048 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5049 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5050 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5051 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5052 * frv-tdep.c (frv_sigtramp_frame_cache)
5053 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5054 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5055 frv-linux-tdep.c.
5056 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5057 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5058 (frv_set_sigcontext_reg_addr): Delete function.
5059
5060 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5061 (DEPRECATED_SIGTRAMP_END): Delete.
5062 * gdbarch.h, gdbarch.c: Re-generate.
5063 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5064 * config/vax/tm-vaxbsd.h: Update copyright.
5065 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5066 (DEPRECATED_IN_SIGTRAMP): Define.
5067 * config/m68k/tm-nbsd.h: Update copyright.
5068 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5069 (DEPRECATED_IN_SIGTRAMP): Define.
5070
5071 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5072
5073 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5074 encondings. Fixes PR gdb/1628.
5075
5076 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5077 DW_CFA_restore state without a matching DW_CFA_remember_state
5078 instead of aborting. Fixes PR backtrace/1589.
5079
5080 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5081
5082 * MAINTAINERS: Add self as AIX maintainer.
5083 Update my e-mail address in write-after-approval section.
5084
5085 2004-04-30 Andrew Cagney <cagney@redhat.com>
5086
5087 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5088 (legacy_get_prev_frame): Ditto.
5089
5090 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5091 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5092 * mipsread.c (sigtramp_address): Delete extern variable.
5093 (mipscoff_new_init): Delete reference.
5094 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5095 (fixup_sigtramp): Delete function.
5096 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5097 (fixup_sigtramp): Delete declarations.
5098
5099 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5100 deprecated_pc_in_sigtramp.
5101 (ppcnbsd_pc_in_sigtramp): Delete function.
5102
5103 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5104
5105 * config/m68k/nm-nbsd.h: Tweak comments.
5106 * config/m68k/nm-nbsdaout.h: Likewise.
5107
5108 2004-04-30 Andrew Cagney <cagney@redhat.com>
5109
5110 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5111 legacy_pc_in_sigtramp.
5112 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5113
5114 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5115
5116 Add OpenBSD/m68k support.
5117 * NEWS (New native configurations): Mention OpenBSD/m68k.
5118 * m68kbsd-tdep.c: New file.
5119 * m68kbsd-nat.c: New file.
5120 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5121 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5122 * configure.host: Add m68k-*-openbsd.
5123 * configure.tgt: Add m68k-*-openbsd.
5124 * config/m68k/tm-obsd.h: New file.
5125 * config/m68k/obsd.mt: New file.
5126 * config/m68k/obsd.mh: New file.
5127 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5128 m68kbsd-tdep.c.
5129
5130 2004-04-30 Andrew Cagney <cagney@redhat.com>
5131
5132 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5133 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5134
5135 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5136
5137 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5138 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5139
5140 2004-04-30 Brian Ford <ford@vss.fsi.com>
5141
5142 Revert 2004-04-16 change.
5143 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5144 (i386_coff_init_abi): Remove.
5145 * i386-tdep.h (i386_coff_init_abi): Remove.
5146 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5147
5148 2004-04-30 Andrew Cagney <cagney@redhat.com>
5149
5150 * blockframe.c (find_pc_partial_function): Delete use of
5151 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5152 DEPRECATED_SIGTRAMP_END.
5153
5154 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5155 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5156 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5157 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5158 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5159
5160 * defs.h (deprecated_inside_entry_file): Delete declaration.
5161 * blockframe.c (deprecated_inside_entry_file): Delete function.
5162 (legacy_frame_chain_valid): Delete call.
5163 * sh64-tdep.c (sh64_frame_chain): Delete call.
5164 * objfiles.h: Update comments.
5165 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5166 call.
5167 * frame.c (get_prev_frame): Delete call, update comments.
5168
5169 2004-04-30 Brian Ford <ford@vss.fsi.com>
5170
5171 * MAINTAINERS (Write After Approval): Add myself.
5172
5173 2004-04-30 Andrew Cagney <cagney@redhat.com>
5174
5175 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5176 * gdbarch.h, gdbarch.c: Re-generate.
5177 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5178 code.
5179
5180 2004-04-30 Andrew Cagney <cagney@redhat.com>
5181
5182 * gdb-events.sh (selected_thread_changed)
5183 (selected_frame_level_changed, target_changed): Delete.
5184 * gdb-events.h, gdb-events.c: Re-generate.
5185 * valops.c (value_assign): Update.
5186 * stack.c (select_frame_command, up_silently_base)
5187 (down_silently_base): Update.
5188
5189 2004-04-29 Andrew Cagney <cagney@redhat.com>
5190
5191 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5192 registers correctly.
5193 (print_gp_register_row, mips32_heuristic_proc_desc)
5194 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5195 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5196 references to mips_isa_regsize.
5197
5198 2004-04-29 Andrew Cagney <cagney@redhat.com>
5199
5200 * mips-tdep.c (struct gdbarch_tdep): Delete
5201 mips_fp_register_double.
5202 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5203 mips_abi_regsize.
5204 (mips_gdbarch_init): Do not set mips_fp_register_double.
5205 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5206
5207 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5208
5209 Committed by Andrew Cagney.
5210 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5211 function calls.
5212
5213 2004-04-29 Andrew Cagney <cagney@redhat.com>
5214
5215 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5216 gdbarch, use mips_abi, update callers.
5217 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5218 mips_abi_regsize, update callers.
5219 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5220 mips_default_abi_regsize.
5221 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5222 mips_default_abi_regsize.
5223
5224 2004-04-29 Andrew Cagney <cagney@redhat.com>
5225
5226 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5227 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5228 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5229 mips_default_abi_regsize.
5230 (mips_isa_regsize): Rename mips_regisze.
5231 * mipsnbsd-tdep.c: Update.
5232 * mips-linux-tdep.c: Update.
5233 * irix5-nat.c: Update.
5234 * mips-tdep.h (mips_isa_regsize): Update.
5235
5236 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5237 Delete all disabled code.
5238 * gdb-events.h, gdb-events.c: Re-generate.
5239
5240 2004-04-19 Jerome Guitton <guitton@gnat.com>
5241 Mark Kettenis <kettenis@gnu.org>
5242
5243 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5244 the function begins with a branch instruction.
5245
5246 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5247
5248 * i386-tdep.c: Fix spelling mistakes.
5249
5250 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5251 Andrew Cagney <cagney@redhat.com>
5252
5253 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5254 <sys/proc.h>.
5255 * acconfig.h: Provide default _KMEMUSER value.
5256 * config.in, configure: Re-generate.
5257 * NEWS: Mention fix.
5258
5259 2004-04-24 Randolph Chung <tausq@debian.org>
5260
5261 * configure.host (hppa*-*-linux*): New target.
5262 * configure.tgt (hppa*-*-linux*): Likewise.
5263 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5264 gdbarch_init_osabi() call earlier so that osabi-specific frame
5265 unwinders can be registered first.
5266 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5267 hppa-linux-nat.c.
5268 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5269 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5270 * config/pa/linux.mh: New file.
5271 * config/pa/linux.mt: New file.
5272 * config/pa/nm-linux.h: New file.
5273 * config/pa/xm-linux.h: New file.
5274 * hppa-linux-nat.c: New file.
5275 * hppa-linux-tdep.c: New file.
5276
5277 2004-04-28 Randolph Chung <tausq@debian.org>
5278
5279 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5280 return values.
5281 (hppa32_push_dummy_call): Fix small struct and floating point argument
5282 passing, and make sure the stack frame is properly aligned.
5283
5284 2004-04-28 Andrew Cagney <cagney@redhat.com>
5285
5286 * stack.c (print_stack_frame): Fix description.
5287
5288 * NEWS: Mention gdb/gdbserver/configure execute permission
5289 changed. PR server/519.
5290
5291 2004-04-28 Andrew Cagney <cagney@redhat.com>
5292
5293 * stack.c (print_stack_frame_stub): Delete declaration.
5294 (struct print_stack_frame_args, print_stack_frame)
5295 (print_frame_info, print_frame): Replace "source" with print what.
5296 Replace "print" with "print_level". Replace "args" with
5297 "print_args".
5298 * frame.h (show_and_print_stack_frame, print_stack_frame)
5299 (print_frame_info): Update declarations.
5300 * stack.c (select_and_print_frame, frame_command)
5301 (current_frame_command, up_command, down_command): Update calls -
5302 use get_selected_frame, pass "enum print_what" for source, do not
5303 call frame_relative_level.
5304 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5305 * remote-rdp.c (remote_rdp_open): Ditto.
5306 * remote-mips.c (common_open): Ditto.
5307 * remote-e7000.c (e7000_start_remote): Ditto.
5308 * ocd.c (ocd_start_remote): Ditto.
5309 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5310 * infrun.c (normal_stop): Ditto.
5311 * inflow.c (kill_command): Ditto.
5312 * infcmd.c (finish_command): Ditto.
5313 * corelow.c (core_open): Ditto.
5314 * tracepoint.c (finish_tfind_command): Ditto.
5315 * thread.c (info_threads_command, info_threads_command)
5316 (restore_current_thread, do_captured_thread_select): Ditto.
5317 * ada-tasks.c (task_command): Ditto.
5318
5319 2004-04-26 Orjan Friberg <orjanf@axis.com>
5320
5321 * frame.c: Include "observer.h".
5322 (frame_observer_target_changed): New function.
5323 (_initialize_frame): Attach target_changed observer.
5324 * regcache.c: Include "observer.h".
5325 (regcache_observer_target_changed): New function.
5326 (_initialize_regcache): Attach target_changed observer.
5327 * valops.c: Include "observer.h".
5328 (value_assign): Notify target_changed event when modifying register.
5329 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5330
5331 2004-04-26 Orjan Friberg <orjanf@axis.com>
5332
5333 From Paul Koning <pkoning@equallogic.com>:
5334 * breakpoint.c (free_valchain): New function.
5335 (insert_bp_location, delete_breakpoint): Use free_valchain.
5336 (remove_breakpoint): Do not remove the valchain.
5337 (bpstat_stop_status): If not stopped by watchpoint, skip
5338 watchpoints when generating stop status list.
5339 * infrun.c (handle_inferior_event): Make
5340 stepped_after_stopped_by_watchpoint a global variable.
5341 * remote.c (remote_stopped_data_address): Return watch data
5342 address rather than zero if stepped_after_stopped_by_watchpoint is
5343 set.
5344
5345 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5346
5347 Fix PR gdb/1626.
5348 * configure.in: Check for curses after termcap.
5349 On osf5.*, do not check for ncurses.
5350 * configure: Regenerate.
5351
5352 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5353
5354 * ppcobsd-nat.c: Include "ppc-tdep.h".
5355 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5356
5357 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5358 Fixes PR tdep/1623 and PR tdep/1624.
5359
5360 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5361
5362 * xmodem.h, xmodem.c: Remove files.
5363 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5364
5365 2004-04-23 Randolph Chung <tausq@debian.org>
5366
5367 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5368 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5369 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5370 for handling stackless frames.
5371 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5372
5373 2004-04-23 Randolph Chung <tausq@debian.org>
5374
5375 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5376 starts at a pc before the frame is created.
5377
5378 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5379
5380 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5381
5382 2004-04-23 Jerome Guitton <guitton@gnat.com>
5383
5384 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5385 use convert_typed_floating to get the appropriate format.
5386
5387 2004-04-22 Randolph Chung <tausq@debian.org>
5388
5389 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5390 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5391 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5392 (hppa_sign_extend): Add prototype.
5393 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5394 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5395 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5396 hppa targets will also use these functions.
5397 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5398 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5399 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5400 (hppa_gdbarch_init): Remove gdbarch setting of
5401 skip_trampoline_code, in_solib_call_trampoline and
5402 in_solib_return_trampoline.
5403 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5404 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5405 hppa_in_solib_call_trampoline.
5406 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5407 Moved from hppa-tdep.c.
5408 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5409 in_solib_call_trampoline and in_solib_return_trampoline.
5410
5411 2004-04-22 Randolph Chung <tausq@debian.org>
5412
5413 * hppa-tdep.c (hppa_debug): New variable.
5414 (find_unwind_entry, hppa_frame_cache): Add debug output.
5415 (_initialize_hppa_tdep): Add command to set debug flag.
5416
5417 2004-04-22 Andrew Cagney <cagney@redhat.com>
5418
5419 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5420 "trad-frame.h".
5421 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5422 signal trampoline unwinder.
5423 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5424
5425 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5426
5427 Add OpenBSD/powerpc support.
5428 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5429 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5430 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5431 (ppc_collect_fpregset): New prototypes.
5432 * ppcobsd-nat.c: New file.
5433 * ppcobsd-tdep.c: New file.
5434 * ppcobsd-tdep.h: New file.
5435 * rs6000-tdep.c: Include "regset.h".
5436 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5437 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5438 New functions.
5439 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5440 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5441 (rs6000-tdep.o): Update dependencies.
5442 * configure.host: Add powerpc-*-openbsd.
5443 * configure.tgt: Add powerpc-*-openbsd.
5444 * config/powerpc/obsd.mh: New file.
5445 * config/powerpc/nm-obsd.h: New file.
5446 * config/powerpc/obsd.mt: New file.
5447
5448 2004-04-22 Andrew Cagney <cagney@redhat.com>
5449
5450 * frame.h (show_frame_info): Delete declaration.
5451
5452 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5453 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5454 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5455 * frv-tdep.c (frv_frame_this_id): Ditto.
5456 * avr-tdep.c (avr_frame_this_id): Ditto.
5457
5458 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5459
5460 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5461
5462 2004-04-22 Jim Blandy <jimb@redhat.com>
5463
5464 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5465 register number zero.
5466
5467 2004-04-21 Michael Snyder <msnyder@redhat.com>
5468
5469 * mips-tdep.c (heuristic_proc_start):
5470 Warning() already prefixes "Warning: ".
5471
5472 2004-04-21 Andrew Cagney <cagney@redhat.com>
5473
5474 * annotate.h (deprecated_annotate_starting_hook)
5475 (deprecated_annotate_stopped_hook)
5476 (deprecated_annotate_exited_hook)
5477 (deprecated_annotate_signal_hook)
5478 (deprecated_annotate_signalled_hook): Deprecate.
5479 * tracepoint.h (deprecated_create_tracepoint_hook)
5480 (deprecated_delete_tracepoint_hook)
5481 (deprecated_modify_tracepoint_hook)
5482 (deprecated_trace_find_hook)
5483 (deprecated_trace_start_stop_hook): Deprecate.
5484 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5485 * remote.h (deprecated_target_resume_hook)
5486 (deprecated_target_wait_loop_hook): Deprecate.
5487 * gdbcore.h (deprecated_exec_file_display_hook)
5488 (deprecated_file_changed_hook): Deprecate.
5489 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5490 * defs.h (deprecated_modify_breakpoint_hook)
5491 (deprecated_command_loop_hook, deprecated_show_load_progress)
5492 (deprecated_print_frame_info_listing_hook)
5493 (deprecated_query_hook, deprecated_warning_hook)
5494 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5495 (deprecated_delete_breakpoint_hook)
5496 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5497 (deprecated_readline_begin_hook, deprecated_readline_hook)
5498 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5499 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5500 (deprecated_context_hook, deprecated_target_wait_hook)
5501 (deprecated_attach_hook, deprecated_detach_hook)
5502 (deprecated_call_command_hook, deprecated_set_hook)
5503 (deprecated_error_hook, deprecated_error_begin_hook)
5504 (deprecated_ui_load_progress_hook): Deprecate.
5505 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5506 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5507 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5508 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5509 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5510 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5511 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5512 * annotate.c, aix-thread.c: Update.
5513
5514 2004-04-21 Andrew Cagney <cagney@redhat.com>
5515
5516 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5517 * vaxnbsd-tdep.c: Include "gdb_string.h".
5518
5519 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5520 (add_symbol_file_from_memory_command): #if 0 function body, call
5521 error instead.
5522
5523 2004-04-21 Andrew Cagney <cagney@redhat.com>
5524
5525 * gdbcore.h: Update copyright.
5526 (deprecated_add_core_fns): Rename add_core_fns.
5527 * win32-nat.c (_initialize_core_win32): Update.
5528 * sun3-nat.c (_initialize_core_sun3): Update.
5529 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5530 * rs6000-nat.c (_initialize_core_rs6000): Update.
5531 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5532 * nto-tdep.c (_initialize_nto_tdep): Update.
5533 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5534 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5535 * mips-nat.c (_initialize_core_mips): Update.
5536 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5537 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5538 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5539 * lynx-nat.c (_initialize_core_lynx): Update.
5540 * irix5-nat.c (_initialize_core_irix5): Update.
5541 * i386-interix-nat.c (_initialize_core_interix): Update.
5542 * cris-tdep.c (_initialize_cris_tdep): Update.
5543 * corelow.c (deprecated_add_core_fns): Update.
5544 * core-regset.c (_initialize_core_regset): Update.
5545 * core-aout.c (_initialize_core_aout): Update.
5546 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5547 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5548 * alpha-nat.c (_initialize_core_alpha): Update.
5549
5550 2004-04-21 Jim Blandy <jimb@redhat.com>
5551
5552 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5553
5554 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5555
5556 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5557 Delete.
5558 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5559 (read_attribute_value): Update calls to dwarf_alloc_block.
5560 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5561 dwarf2_tmp_obstack.
5562 (psymtab_to_symtab_1): Likewise. Clean up using
5563 free_stack_comp_unit.
5564 (add_to_cu_func_list): Use the comp_unit_obstack.
5565
5566 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5567
5568 * dwarf2read.c (dwarf2_flag_true_p): New function.
5569 (die_is_declaration): Use the function above. Add some comments.
5570
5571 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5572
5573 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5574 architecture when registering sparcnbsd_core_osabi_sniffer.
5575 Adjust comment.
5576
5577 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5578
5579 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5580 return value.
5581
5582 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5583 * i386-tdep.c: Correct register numbering scheme comments
5584 throughout.
5585 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5586 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5587 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5588 (i386_gdb_arch_init): Likewise.
5589
5590 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5591 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5592 ppcnbsd-tdep.o.
5593
5594 * m68k-tdep.h: Tweak comments.
5595 * m68k-tdep.c: Tweak comment.
5596
5597 2004-04-17 Randolph Chung <tausq@debian.org>
5598
5599 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5600 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5601 (hppa_hpux_som_init_abi): Set is_elf to 0.
5602 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5603 * hppa-tdep.c (low_text_segment_address): Remove global.
5604 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5605 section offset to calculate segment address.
5606 (internalize_unwinds): Define low_text_segment_address as local and
5607 pass to record_text_segment_lowaddr for ELF targets.
5608 (hppa_gdbarch_init): Zero fill tdep structure.
5609 (hppa_dump_tdep): Print tdep structure.
5610 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5611
5612 2004-04-17 Randolph Chung <tausq@debian.org>
5613
5614 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5615 (hppa_gdbarch_init): Set pseudo_register_read.
5616 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5617 * regcache.c (supply_register): Remove check for
5618 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5619
5620 2004-04-17 Randolph Chung <tausq@debian.org>
5621
5622 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5623 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5624 (hpread_adjust_stack_address): Move to hpread.c.
5625 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5626 obj_private_struct): Move from tm-hppa.h.
5627 * hpread.c (hppa-tdep.h): Include.
5628 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5629 (hpread_read_function_type, hpread_read_doc_function_type)
5630 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5631 directly.
5632 * pa64solib.c (hppa-tdep.h): Include.
5633 * somsolib.c (hppa-tdep.h): Include.
5634 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5635 inferior_status): Remove unused forward declarations.
5636 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5637 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5638 obj_private_struct): Move to hppa-tdep.h.
5639 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5640
5641 2004-04-17 Randolph Chung <tausq@debian.org>
5642
5643 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5644 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5645 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5646 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5647 Remove forward declaration and make static.
5648 (hppa_reg_struct_has_addr): Remove.
5649
5650 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5651
5652 * observer.sh: Move comments in sed command to first column.
5653
5654 2004-04-16 Jason Molenda (jmolenda@apple.com)
5655
5656 * frame.c: Minor typeo corrections in comments.
5657
5658 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5659
5660 * observer.c (observer_test_first_notification_function): Update
5661 function profile.
5662 (observer_test_second_notification_function): Likewise.
5663 (observer_test_third_notification_function): Likewise.
5664
5665 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5666
5667 From Brian Ford <ford@vss.fsi.com>:
5668 * i386-tdep.c (i386_coff_init_abi): New function.
5669 * i386-tdep.h (i386_coff_init_abi): New prototype.
5670 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5671 register number translation functions for DWARF and DWARF 2.
5672
5673 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5674
5675 * dwarf2read.c: Back out my previous change, it was incorrect.
5676
5677 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5678
5679 * dwarf2read.c: Include "hashtab.h".
5680 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5681 has_namespace_info.
5682 (struct partial_die_info): Add comments. Use bitfields to reduce
5683 memory footprint. Add scope, scope_set, has_specification,
5684 spec_offset, die_parent, die_child, and die_sibling.
5685 (peek_die_abbrev): Add prototype.
5686 (partial_read_comp_unit_head): New function, broken out from
5687 dwarf2_build_psymtabs_hard.
5688 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5689 Use partial_read_comp_unit_head. Initialize the CU and
5690 comp_unit_obstack. Update calls to read_partial_die and
5691 scan_partial_symbols. Use free_stack_comp_unit and
5692 load_partial_dies.
5693 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5694 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5695 Update calls to helper functions. Remove NAMESPACE argument.
5696 Update comments.
5697 (partial_die_parent_scope, partial_die_full_name): New functions.
5698 (add_partial_symbol): Remove namespace argument. Update call to
5699 pdi_needs_namespace. Use partial_die_full_name. Handle
5700 DW_TAG_namespace. Check has_namespace_info flag.
5701 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5702 tag. Handle namespaces.
5703 (add_partial_namespace, add_partial_enumeration): Simplify.
5704 (guess_structure_name): New function, derived from
5705 add_partial_structure.
5706 (add_partial_structure): Remove.
5707 (determine_class_name): Update comment.
5708 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5709 (is_type_tag_for_partial, load_partial_dies): New functions.
5710 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5711 Record specifications instead of following them immediately.
5712 (find_partial_die_in_comp_unit, find_partial_die)
5713 (fixup_partial_die, free_stack_comp_unit)
5714 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5715 (partial_die_hash, partial_die_eq): New functions.
5716 * Makefile.in (hashtab_h): Define.
5717 (dwarf2read.o): Update dependencies.
5718 (observer_inc, observer_h): Move to the correct section.
5719
5720 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5721
5722 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5723 (die_is_declaration): Use the function above. Add comment.
5724
5725 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5726
5727 * dwarf2read.c (read_structure_scope): Identify stub types
5728 using die_is_declaration() only.
5729
5730 2004-04-15 Roland McGrath <roland@redhat.com>
5731
5732 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5733 argument instead of NAME.
5734 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5735 in call to symbol_file_add_with_addrs_or_offsets.
5736 (build_addr_info): New function, helper for ...
5737 (symbol_file_add_from_memory): New function.
5738 (add_symbol_file_from_memory_command): New function using that.
5739 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5740 (pre_add_symbol_hook): Add const to argument type.
5741 * symfile.h (symbol_file_add_from_memory): Declare it.
5742
5743 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5744
5745 * NEWS (New native configurations): Mention OpenBSD/vax.
5746 * configure.host: Add vax-*-openbsd*.
5747 * config/vax/obsd.mh: New file.
5748 * config/vax/nm-obsd.h: New file.
5749
5750 * vax-tdep.c: Include "regset.h".
5751 (vax_supply_gregset): New function.
5752 (vax_gregset): New variable.
5753 (vax_regset_from_core_section): New function.
5754 (vax_gdbarch_init): Set regset_from_core_section.
5755 * Makefile.in (vax-tdep.o): Update dependencies.
5756
5757 2004-04-15 Andrew Cagney <cagney@redhat.com>
5758
5759 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5760 (observer_normal_stop_notification_stub)
5761 (observer_attach_normal_stop, observer_detach_normal_stop):
5762 Delete, replaced by #include "observer.inc".
5763 * infrun.c (normal_stop): Pass "stop_bpstat" to
5764 observer_notify_normal_stop.
5765 * Makefile.in (observer_inc): Define.
5766 (observer.o): Update dependencies.
5767 (observer.h, observer.inc): New rules.
5768 * observer.h: Delete file.
5769 * observer.sh: New file.
5770
5771 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5772
5773 * vax-tdep.c (vax_frame_cache): Fix typo.
5774
5775 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5776
5777 * NEWS (New native configurations): Mention NetBSD/vax.
5778 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5779 * config/vax/nbsdelf.mh: New file.
5780 * config/vax/nbsdaout.mh: New file.
5781 * config/vax/nm-nbsd.h: New file.
5782 * config/vax/nm-nbsdaout.h: New file.
5783
5784 * vaxnbsd-tdep.c: New file.
5785 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5786 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5787 * config/vax/nbsd.mt: New file.
5788 * config/vax/tm-nbsd.h: New file.
5789
5790 * Makefile.in (vaxbsd-nat.o): New dependency.
5791
5792 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5793 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5794 struct_addr arguments. Don't push return value address.
5795 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5796 arguments to vax_store_arguments. Store return value address in
5797 R1.
5798 (vax_store_struct_return, vax_extract_return_value)
5799 (vax_store_return_value): Remove functions.
5800 (vax_return_value): New function.
5801 (vax_gdbarch_init): Set return value. Don't set
5802 deprecated_store_struct_return, deprecated_extract_struct_return
5803 and deprecated_store_return_value.
5804
5805 2004-04-14 Andreas Schwab <schwab@suse.de>
5806
5807 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5808 value buffer.
5809 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5810
5811 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5812
5813 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5814 (vax_unwind_dummy_id): New functions.
5815 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5816 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5817 variables.
5818 (vax_fix_call_dummy): Remove function.
5819 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5820 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5821 call_dummy_location, deprecated_call_dummy_words,
5822 deprecated_sizeof_call_dummy_words,
5823 deprecated_call_dummy_breakpoint_offset,
5824 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5825 and deprecated_dummy_write_sp.
5826
5827 2004-04-13 David Carlton <carlton@kealia.com>
5828
5829 * MAINTAINERS: Move myself to "paper trail" section.
5830
5831 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5832
5833 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5834 "trad-frame.h".
5835 (vax_frame_init_saved_regs): Remove function.
5836 (vax_sigtramp_saved_pc): Remove function.
5837 (vax_frame_saved_pc): Remove function.
5838 (vax_frame_args_address): Remove function.
5839 (vax_frame_num_args): Rewrite.
5840 (vax_frame_chain): Remove function.
5841 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5842 VAX_FP_REGNUM.
5843 (vax_pop_frame): Likewise.
5844 (vax_saved_pc_after_call): Remove function.
5845 (struct vax_frame_cache): New structure.
5846 (vax_frame_cache): New function.
5847 (vax_frame_this_id): New function.
5848 (vax_frame_prev_register): New function.
5849 (vax_frame_unwind): New variable.
5850 (vax_frame_sniffer): New function.
5851 (vax_frame_base_address): New function.
5852 (vax_frame_args_address): New function.
5853 (vax_frame_base): New variable.
5854 (vax_unwind_pc): New function.
5855 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5856 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5857 deprecated_frame_chain, deprecated_frame_saved_pc,
5858 deprecated_frame_args_address and
5859 deprecated_frame_init_saved_regs.
5860 * Makefile.in (vax-tdep.o): Update dependencies.
5861
5862 * vaxbsd-nat.c: New file.
5863
5864 * vax-tdep.h: Update copyright year. Adjust comments.
5865 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5866 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5867 (vax_regnum): New enum. Replacing...
5868 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5869 (VAX_PS_REGNUM): ... these removed macros.
5870 * vax-tdep.c (vax_register_name): Remove prototype.
5871 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5872 (vax_register_byte, vax_register_raw_size,
5873 vax_register_virtual_size, vax_register_virtual_type): Remove
5874 functions.
5875 (vax_register_type): New function.
5876 (vax_breakpoint_from_pc): Reorganize.
5877 (vax_gdbarch_init): Set register_type. Don't set
5878 deprecated_register_size, deprecated_register_bytes,
5879 deprecated_register_byte, deprecated_register_raw_size,
5880 deprecated_max_register_raw_size,
5881 deprecated_register_virtual_size,
5882 deprecated_max_register_virtual_size and
5883 deprecated_register_virtual_type. Add comment on stack direction.
5884
5885 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5886
5887 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5888 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5889 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5890
5891 2004-04-10 Randolph Chung <tausq@debian.org>
5892
5893 * MAINTAINERS (write after approval): Add myself.
5894
5895 2004-04-07 Randolph Chung <tausq@debian.org>
5896
5897 * hppa-tdep.c (hppa_inner_than): Remove.
5898 (is_pa_2): Remove unused static variable.
5899 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5900
5901 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5902
5903 * language.h (language_defn): Add new la_post_parser field.
5904 * parser-defs.h (null_post_parser): New declaration (default for
5905 la_post_parser).
5906
5907 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5908 insert call to that function.
5909 (parse_exp_in_context): New function, including code formerly in
5910 parse_exp_1. Calls language-dependent post-parser after
5911 prefixification.
5912 (parse_expression_in_context): New exported function.
5913 (null_post_parser): New definition.
5914 * expression.h (parse_expression_in_context): Add declaration.
5915
5916 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5917 * c-lang.c (c_language_defn): Ditto.
5918 (cplus_language_defn): Ditto.
5919 (asm_language_defn): Ditto.
5920 (minimal_language_defn): Ditto.
5921 * f-lang.c (f_language_defn): Ditto.
5922 * jv-lang.c (java_language_defn): Ditto.
5923 * language.c (unknown_language_defn): Ditto.
5924 (auto_language_defn): Ditto.
5925 (local_language_defn): Ditto.
5926 * m2-lang.c (m2_language_defn): Ditto.
5927 * scm-lang.c (scm_language_defn): Ditto.
5928 * obj-lang.c (objc_language_defn): Ditto.
5929
5930 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5931
5932 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5933 (amd64nbsd_mcontext_addr): New function.
5934 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5935 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5936 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5937
5938 * corelow.c (core_xfer_partial): Fix coding standards violation.
5939 Add support for TARGET_OBJECT_WCOOKIE.
5940
5941 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5942 deprecated_pc_in_sigtramp.
5943 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5944 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5945 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5946 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5947 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5948 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5949 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5950
5951 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5952 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5953 Fix typo.
5954
5955 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5956 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5957 (amd64_collect_fxsave): Likewise.
5958
5959 * i386-sol2-tdep.c: Include "gdb_string.h".
5960 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5961 name.
5962 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5963
5964 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5965
5966 * i386-sol2-tdep.c: Include "solib-svr4.h".
5967 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5968 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5969 * config/i386/tm-i386sol2.h: Include :solib.h".
5970 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5971 solib-svr4.o and solib-legacy.o.
5972 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5973 solib-svr4.o.
5974
5975 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5976
5977 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5978 whether a register is supplied by PTRACE_GETFPREGS.
5979 (store_inferior_registers): Likewise.
5980 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5981 whether a register is supplied by PT_GETFPREGS.
5982 (store_inferior_registers): Likewise.
5983
5984 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5985 * config/i386/linux64.mt (TDEPFILES): Likewise.
5986
5987 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5988
5989 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5990 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5991 the program counter is in the range specified by `struct
5992 gdbarch_tdep'.
5993 * amd64-linux-tdep.c: Include "symtab.h".
5994 (amd64_linux_pc_in_sigtramp): Remove function.
5995 (amd64_linux_sigtramp_p): New function.
5996 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5997 deprecated_pc_in_sigtramp.
5998 * amd64nbsd-tdep.c: Include "symtab.h".
5999 (amd64nbsd_sigtramp_p): New function.
6000 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6001 deprecated_pc_in_sigtramp.
6002 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6003 few comments.
6004 (amd64obsd_pc_in_sigtramp): Remove function.
6005 (amd64obsd_sigtramp_p): New function.
6006 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6007 deprecated_pc_in_sigtramp.
6008 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6009 (i386bsd_pc_ins_sigtramp): Remove prototype.
6010 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6011 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6012 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6013 the program counter is in the range specified by `struct
6014 gdbarch_tdep'.
6015 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6016 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6017 (i386_go32_pc_in_sigtramp): Remove function.
6018 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6019 Initialize TDEP->sigtramp_p.
6020 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6021 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6022 deprecated_pc_in_sigtramp.
6023 * i386-linux-tdep.c: Adjust comments.
6024 (i386_linux_pc_in_sigtramp): Remove function.
6025 (i386_linux_sigtramp_p): New function.
6026 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6027 deprecated_pc_in_sigtramp.
6028 * i386-nto-tdep.c: Update copyright year.
6029 (i386nto_pc_in_sigtramp): Remove function.
6030 (i386nto_sigtramp_p): New function.
6031 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6032 SP_REGNUM.
6033 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6034 deprecated_pc_in_sigtramp.
6035 * i386-sol2-tdep.c: Update copyright year.
6036 (i386_sol2_pc_in_sigtramp): Remove function.
6037 (i386_sol2_sigtramp_p): New function.
6038 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6039 deprecated_pc_in_sigtramp.
6040 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6041 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6042 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6043 deprecated_sigtramp_start and deprecated_sigtramp_end.
6044 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6045 (i386nbsd_pc_in_sigtramp): Remove function.
6046 (i386nbsd_sigtramp_p): New function.
6047 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6048 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6049 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6050 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6051 (i386obsd_pc_in_sigtramp): Remove function.
6052 (i386obsd_sigtramp_p): New function.
6053 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6054 functions.
6055 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6056 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6057 TDEP->sigtramp_p.
6058 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6059 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6060 dependencies.
6061
6062 * config/i386/i386aout.mt: Remove file.
6063
6064 * configure.tgt: Remove i[34567]86-*-go32*,
6065 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6066 and i[34567]86-*-isc*. Set gdb_target to i386 for
6067 i[34567]86-*-netware* and i[34567]86-*-*.
6068 * config/i386/i386.mt: New file.
6069 * config/i386/embed.mt: Remove file.
6070 * config/i386/go32.mt: Remove file.
6071 * config/i386/i386nw.mt: Remove file.
6072 * config/i386/i386v.mt: Remove file.
6073 * config/i386/tm-go32.h: Remove file.
6074
6075 * tui/tui-hooks.c: Include "readline/readline.h" after
6076 "gdb_curses.h" instead of before.
6077 * tui/tui-io.c: Likewise.
6078
6079 * tui/tui.c: Fix typo in comment.
6080
6081 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6082
6083 2004-04-08 Andrew Cagney <cagney@redhat.com>
6084
6085 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6086 (deprecated_exception_support_initialized): Declare.
6087 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6088 (initialize_hp_cxx_exception_support)
6089 (child_enable_exception_callback): Update.
6090 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6091 (deprecated_exception_support_initialized): Rename
6092 deprecated_exception_catchpoints_are_fragile and
6093 deprecated_exception_support_initialized.
6094 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6095
6096 * symtab.c (deprecated_hp_som_som_object_present): Rename
6097 hp_som_som_object_present.
6098 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6099 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6100 Update. Delete extern declaration.
6101 * valops.c (hp_som_som_object_present): Ditto.
6102 * parse.c (deprecated_hp_som_som_object_present)
6103 (parse_nested_classes_for_hpacc): Ditto.
6104 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6105 * hppa-hpux-tdep.c (hp_som_som_object_present)
6106 (initialize_hp_cxx_exception_support): Ditto.
6107 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6108 * cp-valprint.c (hp_som_som_object_present)
6109 (cp_print_class_method): Ditto.
6110 * c-typeprint.c (hp_som_som_object_present):
6111 (c_type_print_base): Ditto.
6112 * c-exp.y (hp_som_som_object_present): Ditto.
6113
6114 2004-04-08 Andrew Cagney <cagney@redhat.com>
6115
6116 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6117 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6118 (frame_unwind_find_by_frame): Re-implement the unwind code so
6119 that it can both prepend and append sniffers. Replace
6120 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6121 * tramp-frame.c (tramp_frame_append): Use
6122 frame_unwind_prepend_unwinder.
6123 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6124 frame_unwind_register_unwinder.
6125 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6126 tramp_frame_append.
6127 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6128 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6129 (mips_linux_init_abi): Update.
6130
6131 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6132
6133 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6134 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6135 file support.
6136
6137 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6138
6139 * ia64-tdep.c (elf.h): Don't include.
6140 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6141
6142 2004-04-07 Jason Molenda (jmolenda@apple.com)
6143
6144 * frame.h: Typeo corrections in comments.
6145
6146 2004-04-07 Jim Blandy <jimb@redhat.com>
6147
6148 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6149 %esp and %ebp
6150
6151 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6152
6153 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6154 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6155 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6156 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6157 and solib-legacy.o.
6158 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6159 solib-svr4.o.
6160 * config/sparc/tm-sol2.h: Update copyright year. Include
6161 "solib.h".
6162
6163 * sparc-sol2-tdep.c: Update copyright year. Include
6164 "solib-svr4.h".
6165 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6166 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6167 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6168 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6169 dependencies.
6170
6171 2004-04-06 Andrew Cagney <cagney@redhat.com>
6172
6173 * infttrace.c: Include "infttrace.h".
6174 * infttrace.h: Include "target.h".
6175 * Makefile.in (infttrace_h): Update.
6176 (infttrace.o): Update.
6177
6178 2004-04-06 Andrew Cagney <cagney@redhat.com>
6179
6180 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6181 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6182 move extern declarations from here ...
6183 * infttrace.h: ... to here.
6184 * Makefile.in (hppah-nat.o): Update dependencies.
6185
6186 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6187 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6188 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6189 (hppa_breakpoint_from_pc): Delete.
6190
6191 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6192
6193 2004-04-05 Andrew Cagney <cagney@redhat.com>
6194
6195 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6196 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6197 <sys/file.h>.
6198
6199 2004-04-06 Randolph Chung <tausq@debian.org>
6200
6201 Committed by Andrew Cagney (mechanical change).
6202 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6203 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6204 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6205 child_enable_exception_callback, current_ex_event,
6206 null_symtab_and_line, child_get_current_exception_event,
6207 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6208 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6209 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6210 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6211 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6212 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6213 Move hpux-specific definitions ...
6214 * hppa-hpux-tdep.c: ... to here.
6215
6216 2004-04-05 Andrew Cagney <cagney@redhat.com>
6217
6218 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6219 skip_prologue_using_sal.
6220
6221 2004-04-05 Andrew Cagney <cagney@redhat.com>
6222
6223 * config/i386/tm-i386.h: Delete file.
6224 * config/i386/tm-vxworks.h: Update copyright, do not include
6225 "tm-i386.h".
6226 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6227 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6228 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6229 * config/i386/ncr3000.mt (TM_FILE): Delete.
6230 * config/i386/interix.mt (TM_FILE): Delete.
6231 * config/i386/i386v.mt (TM_FILE): Delete.
6232 * config/i386/i386nw.mt (TM_FILE): Delete.
6233 * config/i386/i386gnu.mt (TM_FILE): Delete.
6234 * config/i386/i386aout.mt (TM_FILE): Delete.
6235 * config/i386/embed.mt (TM_FILE): Delete.
6236
6237 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6238
6239 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6240 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6241 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6242 (accg7_regnum): New constants.
6243 (last_spr_regnum, last_pseudo_regnum): Update.
6244 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6245 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6246 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6247 for accg registers.
6248 (frv_register_sim_regno): Update spr_map[].
6249
6250 2004-04-04 Andrew Cagney <cagney@redhat.com>
6251
6252 * config/mips/xm-riscos.h: Delete.
6253 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6254 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6255 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6256 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6257 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6258 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6259 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6260 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6261 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6262 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6263 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6264 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6265 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6266 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6267 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6268 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6269 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6270 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6271 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6272 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6273 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6274 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6275 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6276 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6277 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6278 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6279
6280 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6281 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6282 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6283 * configure.host: Remove m680[01]0-sun-sunos3*,
6284 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6285 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6286 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6287 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6288 mips-*-riscos*.
6289 * NEWS: Mention removed systems.
6290
6291 2004-04-04 Andrew Cagney <cagney@redhat.com>
6292
6293 GDB 6.1 release created from 6.1 branch.
6294
6295 2004-04-04 Andrew Cagney <cagney@redhat.com>
6296
6297 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6298 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6299 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6300
6301 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6302 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6303 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6304
6305 2004-04-03 Jim Blandy <jimb@redhat.com>
6306
6307 * MAINTAINERS: Chris Faylor has changed employers; add him to
6308 "paper trail" section, and update his E-mail address.
6309
6310 2004-04-03 Andrew Cagney <cagney@redhat.com>
6311
6312 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6313 generic dummy frames.
6314 * dummy-frame.c: Update copyright.
6315 (dummy_frame_sniffer): Delete check for generic dummy frames.
6316
6317 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6318 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6319 (REG_PARM_STACK_SPACE): Delete.
6320 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6321 Inline reference to REG_PARM_STACK_SPACE.
6322
6323 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6324 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6325 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6326 (FRAME_BASE_BEFORE_SIGTRAMP)
6327 (hppa32_hpux_frame_base_before_sigtramp)
6328 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6329 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6330 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6331 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6332 (FRAME_BASE_BEFORE_SIGTRAMP)
6333 (hppa64_hpux_frame_base_before_sigtramp)
6334 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6335
6336 2004-04-03 Andrew Cagney <cagney@redhat.com>
6337
6338 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6339
6340 2004-04-02 Andrew Cagney <cagney@redhat.com>
6341
6342 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6343 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6344 * dummy-frame.h: Delete out-of-date comments.
6345 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6346 * gdbarch.h, gdbarch.c: Re-generate.
6347
6348 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6349
6350 Committed by Andrew Cagney <cagney@redhat.com>.
6351 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6352 into account an instruction saving a register if we have already
6353 seen an earlier instruction saving that same register.
6354
6355 2004-04-02 Andrew Cagney <cagney@redhat.com>
6356
6357 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6358 * gdbarch.h, gdbarch.c: Re-generate.
6359 * frame.c (legacy_get_prev_frame): Delete references to
6360 DEPRECATED_INIT_FRAME_PC_FIRST.
6361
6362 * infrun.c (pc_in_sigtramp): Delete function.
6363 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6364 get_frame_type.
6365
6366 2004-04-02 Andrew Cagney <cagney@redhat.com>
6367
6368 * infrun.c (handle_step_into_function): Delete code conditional on
6369 legacy_frame_p.
6370 (handle_inferior_event, step_over_function): Ditto.
6371
6372 2004-04-02 Andrew Cagney <cagney@redhat.com>
6373
6374 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6375 "previous frame inner to this frame" test.
6376
6377 2004-04-02 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame.c (safe_frame_unwind_memory): New function.
6380 * frame.h (safe_frame_unwind_memory): Declare. Update description
6381 of /safe_/ methods.
6382 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6383 "next_frame". Use safe_frame_unwind_memory.
6384 (tramp_frame_sniffer): Update call to tramp_frame_start.
6385
6386 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6387
6388 * dwarf2read.c (dwarf2_objfile_data_key): New.
6389 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6390 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6391 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6392 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6393 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6394 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6395 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6396 Remove variables.
6397 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6398 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6399 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6400 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6401 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6402 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6403 Remove macros.
6404 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6405 data.
6406 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6407 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6408 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6409 (read_partial_die, read_full_die, read_indirect_string)
6410 (dwarf_decode_line_header, dwarf_decode_macros)
6411 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6412 Update uses of removed variables.
6413 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6414 of removed macros.
6415 (_initialize_dwarf2_read): New function.
6416 * symfile.h (dwarf2_has_info): Update prototype.
6417 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6418 * elfread.c (elf_symfile_read): Likewise.
6419
6420 2004-04-01 Jim Blandy <jimb@redhat.com>
6421
6422 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6423 function for register numbers on all the rs6000-derived targets.
6424 (rs6000_gdbarch_init): Don't register a separate
6425 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6426 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6427 variants.
6428
6429 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6430 numbering.
6431
6432 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6433
6434 * valarith.c: Update copyright notice.
6435 (value_add): Handle range types.
6436 (value_sub): Ditto.
6437 (value_equal): Ditto.
6438 (value_less): Ditto.
6439 (value_neg): Ditto.
6440 (value_complement): Ditto.
6441 (value_binop): Simplify slightly by using is_integral_type and
6442 eliminiating unnecessary COERCE_ENUMs.
6443
6444 2004-03-31 Andrew Cagney <cagney@redhat.com>
6445
6446 * frame.h (frame_unwind_id): Declare.
6447 * frame.c (frame_unwind_id): New function.
6448 (get_prev_frame_1): New function.
6449 (frame_debug_got_null_frame): New function.
6450 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6451 code proper to prev_frame, update description.
6452 * infrun.c (step_over_function): Use frame_unwind_id.
6453
6454 2004-04-31 J. Brobecker <brobecker@gnat.com>
6455
6456 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6457 (hppa64_push_dummy_call): Likewise.
6458
6459 2004-03-30 Jim Blandy <jimb@redhat.com>
6460
6461 From Ulrich Weigand:
6462 * utils.c (query): Do not use a va_list variable multiple times.
6463
6464 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * Makefile.in (linux_nat_h): Update dependencies.
6467 * configure.in: Check for <gnu/libc-version.h>.
6468 * configure: Regenerate.
6469 * config.in: Regenerate.
6470 * linux-nat.h: Include "target.h". Add waitstatus field to
6471 struct lwp_info.
6472 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6473 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6474 to.
6475 (lin_lwp_handle_extended): New function. Handle clone events.
6476 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6477 thread exit events.
6478 (child_wait): Handle clone events.
6479 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6480 * linux-nat.c (linux_enable_event_reporting): Turn on
6481 PTRACE_O_TRACECLONE.
6482 (linux_handle_extended_wait): Handle clone events.
6483 * thread-db.c: Include <gnu/libc-version.h>.
6484 (struct private_thread_info): Add dying flag.
6485 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6486 higher.
6487 (attach_thread): Update comments. Handle dying threads.
6488 (detach_thread): Set the dying flag.
6489 (check_event): Always call attach_thread.
6490
6491 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6492
6493 * mips-tdep.c (mips_pdr_data): New.
6494 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6495 (_initialize_mips_tdep): Initialize mips_pdr_data.
6496
6497 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6498
6499 * minsyms.c (install_minimal_symbols): Move dropping leading
6500 char from linkage name from here...
6501 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6502 test for "__gnu_compiled*" symbols.
6503
6504 2004-03-28 Jim Blandy <jimb@redhat.com>
6505
6506 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6507 registers to temp register r0 and byte stores as prologue
6508 instructions.
6509
6510 2004-03-28 Andrew Cagney <cagney@redhat.com>
6511
6512 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6513 arm*-*-*.
6514
6515 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6516
6517 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6518 and switch the layout to force a display of register window.
6519
6520 2004-02-26 J. Brobecker <brobecker@gnat.com>
6521
6522 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6523 of the INTEGER class.
6524
6525 2004-03-26 Jim Blandy <jimb@redhat.com>
6526
6527 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6528 bytes long on PPC GNU/Linux.
6529
6530 2004-03-26 David Carlton <carlton@kealia.com>
6531
6532 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6533
6534 2004-03-25 Andrew Cagney <cagney@redhat.com>
6535
6536 * PROBLEMS: Add general section titles, remove references to
6537 specific releases.
6538
6539 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6540
6541 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6542 INT_REGISTER_SIZE.
6543 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6544 FP_REGISTER_VIRTUAL_SIZE.
6545 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6546 of DEPRECATED_REGISTER_RAW_SIZE.
6547 (arm_register_type): Add gdbarch argument.
6548 (arm_register_raw_size, arm_register_virtual_size): Delete.
6549 (arm_register_byte, arm_extract_return_value)
6550 (arm_store_return_value, arm_get_longjmp_target): Update references
6551 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6552 (arm_gdbarch_init): Likewise. Don't set
6553 deprecated_register_raw_size, deprecated_register_virtual_size,
6554 deprecated_max_register_raw_size,
6555 deprecated_max_register_virtual_size, or
6556 deprecated_max_register_virtual_type. Do set register_type.
6557 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6558 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6559 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6560 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6561 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6562 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6563 INT_REGISTER_SIZE.
6564 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6565 (remote_rdp_store_register): Likewise.
6566
6567 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6568
6569 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6570 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6571 to after osabi initialization.
6572 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6573 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6574 functions.
6575 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6576 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6577 variables.
6578 (mips_linux_init_abi): Append signal trampoline unwinders.
6579
6580 2004-03-24 Andrew Cagney <cagney@redhat.com>
6581
6582 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6583 * tramp-frame.c: Include "gdb_assert.h".
6584 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6585 correct sizeof.
6586 (tramp_frame_append): Validate the tramp frame's instructions.
6587 * Makefile.in (tramp-frame.o): Update dependencies.
6588
6589 2004-03-23 Andrew Cagney <cagney@redhat.com>
6590
6591 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6592
6593 2004-03-23 Andrew Cagney <cagney@redhat.com>
6594
6595 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6596 Nasser as past testsuite/lib/ (and other) maintainers.
6597
6598 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6599
6600 * infcmd.c (attach_command): Reread symbols if we already have
6601 an exec file.
6602
6603 2004-03-23 Andrew Cagney <cagney@redhat.com>
6604
6605 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6606
6607 2004-03-23 Andrew Cagney <cagney@redhat.com>
6608
6609 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6610 * gdbarch.h, gdbarch.c: Re-generate.
6611 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6612 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6613 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6614 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6615 (DEPRECATED_SIGTRAMP_START): Update.
6616 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6617 (DEPRECATED_SIGTRAMP_START): Update.
6618 * blockframe.c (find_pc_sect_partial_function): Update.
6619 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6620
6621 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6622
6623 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6624 if necessary.
6625
6626 2004-03-23 Andrew Cagney <cagney@redhat.com>
6627
6628 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6629 predicate, deprecate.
6630 * gdbarch.h, gdbarch.c: Re-generate.
6631 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6632 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6633 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6634 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6635 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6636 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6637 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6638 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6639 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6640 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6641 * blockframe.c (find_pc_partial_function): Update.
6642 * breakpoint.c (bpstat_what): Update.
6643 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6644 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6645 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6646 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6647 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6648 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6649 * i386-nto-tdep.c (i386nto_init_abi): Update.
6650 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6651 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6652 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6653 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6654 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6655 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6656 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6657 * infrun.c (pc_in_sigtramp): Update.
6658 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6659 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6660 * mips-tdep.c (mips_gdbarch_init): Update.
6661 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6662 * ppc-linux-tdep.c: Update comment.
6663 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6664 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6665 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6666 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6667 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6668 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6669 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6670 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6671 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6672 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6673
6674 2004-03-23 Andrew Cagney <cagney@redhat.com>
6675
6676 * tramp-frame.h, tramp-frame.h: New files.
6677 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6678 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6679
6680 * Makefile.in: Update all dependencies.
6681
6682 2004-03-23 Andrew Cagney <cagney@redhat.com>
6683
6684 * Makefile.in (trad_frame_h): Add $(frame_h).
6685 * trad-frame.h: Update copyright. Include "frame.h".
6686 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6687 (trad_frame_set_id, trad_frame_get_id): Declare.
6688 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6689 * trad-frame.c: Update copyright.
6690 (struct trad_frame_cache): Define.
6691 (trad_frame_cache_zalloc): New function.
6692 (trad_frame_set_id, trad_frame_get_id): New functions.
6693 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6694
6695 2004-03-22 Andrew Cagney <cagney@redhat.com>
6696
6697 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6698 s390_pltstub_unwind_cache.
6699 (s390_stub_frame_unwind_cache): Rename
6700 s390_pltstub_frame_unwind_cache.
6701 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6702 (s390_stub_frame_prev_register): Rename
6703 s390_pltstub_frame_prev_register.
6704 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6705 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6706
6707 From Ulrich Weigand:
6708 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6709 pointer calls like PLT calls.
6710
6711 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6712
6713 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6714 PC rather than the partial function start address. Use the start
6715 address to sanity check the found PDR.
6716
6717 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6718
6719 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6720 linux_handle_extended_wait.
6721
6722 2004-03-22 Andrew Cagney <cagney@redhat.com>
6723
6724 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6725 function.
6726
6727 * frame.h (generic_pop_current_frame): Delete declaration.
6728 (deprecate_pop_dummy_frame): Deprecate
6729 generic_pop_dummy_frame.
6730 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6731 (generic_pop_current_frame): Delete function.
6732 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6733 generic_pop_current_frame.
6734 * v850-tdep.c (v850_pop_frame): Update.
6735 * mcore-tdep.c (mcore_pop_frame): Update.
6736 * sh64-tdep.c (sh64_pop_frame): Update.
6737 * h8300-tdep.c (h8300_pop_frame): Update.
6738
6739 2004-03-22 Andrew Cagney <cagney@redhat.com>
6740
6741 * frame.h (deprecated_pc_in_call_dummy): Rename
6742 generic_pc_in_call_dummy.
6743 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6744 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6745 generic_pc_in_call_dummy.
6746 (pc_in_dummy_frame): Make static.
6747 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6748 * gdbarch.h, gdbarch.c: Re-generate.
6749 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6750 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6751 (legacy_get_prev_frame): Ditto.
6752 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6753 comment.
6754
6755 2004-03-21 Andrew Cagney <cagney@redhat.com>
6756
6757 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6758 declaration and out-of-date comment.
6759 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6760 Delete function.
6761 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6762 deprecated_pc_in_call_dummy.
6763
6764 * infrun.c (handle_inferior_event): For non legacy frames, use the
6765 frame ID and frame type to identify a signal trampoline. Update
6766 comments.
6767
6768 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6769
6770 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6771 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6772
6773 2004-03-21 Andrew Cagney <cagney@redhat.com>
6774
6775 * frame-unwind.h: Update copyright.
6776 (struct frame_data): Add opaque declaration.
6777 (frame_sniffer_ftype): Declare.
6778 (struct frame_unwind): Add "unwind_data" and "sniffer".
6779 (frame_unwind_register_unwinder): Declare.
6780 (frame_unwind_find_by_frame): Add parameter "this_cache".
6781 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6782 (legacy_get_prev_frame, legacy_get_prev_frame)
6783 (get_frame_type): Pass the prologue_cache to
6784 frame_unwind_find_by_frame.
6785 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6786 "unwinder".
6787 (frame_unwind_register_unwinder): New function.
6788 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6789
6790 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6791
6792 * bcache.c (print_percentage): Use floating point to avoid
6793 incorrect results when portion*100 overflows.
6794
6795 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6796
6797 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6798 (ppc_linux_init_extra_frame_info)
6799 (ppc_linux_frameless_function_invocation)
6800 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6801 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6802 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6803 (rs6000_frame_chain): Delete declarations.
6804 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6805 (ppc_linux_init_extra_frame_info)
6806 (ppc_linux_frameless_function_invocation)
6807 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6808 (ppc_linux_init_abi): Remove registration of above deleted functions.
6809 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6810 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6811 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6812 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6813 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6814 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6815 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6816 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6817 frame management for all OSABIs.
6818
6819 2004-03-19 Andrew Cagney <cagney@redhat.com>
6820
6821 Committed by Kevin Buettner <kevinb@redhat.com>.
6822
6823 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6824 Update copyright.
6825 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6826 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6827 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6828 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6829 unwinders. #ifdef legacy frame code.
6830 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6831 "frame-base.h".
6832 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6833 (struct rs6000_frame_cache, rs6000_frame_cache)
6834 (rs6000_frame_this_id, rs6000_frame_prev_register)
6835 (rs6000_frame_sniffer, rs6000_frame_unwind)
6836 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6837 (rs6000_frame_base): Implement a traditional frame unwinder.
6838 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6839 frame unwinder.
6840
6841 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6842
6843 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6844 breakpoint address for watchpoints or the catch eventpoints.
6845 Add new paramter ``bptype''. Adjust all callers.
6846
6847 2004-03-19 Andrew Cagney <cagney@redhat.com>
6848
6849 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6850
6851 * PROBLEMS: Delete note that ARM does not use frame code, problem
6852 fixed.
6853
6854 2004-03-18 Andrew Cagney <cagney@redhat.com>
6855
6856 * stack.c (return_command): Delete code wrapped in #ifdef
6857 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6858
6859 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6860
6861 2004-03-18 Andrew Cagney <cagney@redhat.com>
6862
6863 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6864 DEPRECATED_IN_SIGTRAMP.
6865 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6866 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6867 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6868 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6869 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6870 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6871 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6872 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6873 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6874 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6875
6876 2004-03-18 Andrew Cagney <cagney@redhat.com>
6877
6878 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6879 (struct frame_base_table_entry): Define.
6880 (struct frame_base_table): Re-implement as a linked list.
6881 (frame_base_init): Re-implement.
6882 (frame_base_table): Delete function.
6883 (append_predicate): Delete function.
6884 (frame_base_append_sniffer): Update.
6885 (frame_base_set_default): Update.
6886 (frame_base_find_by_frame): Update.
6887 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6888 * Makefile.in (frame-base.o): Update dependencies.
6889
6890 2004-03-17 Andrew Cagney <cagney@redhat.com>
6891
6892 * frame.c (legacy_get_prev_frame): Pass correct frame to
6893 frame_unwind_find_by_frame.
6894
6895 2004-03-17 David Carlton <carlton@kealia.com>
6896
6897 * NEWS: Mention C++ nested types and namespaces
6898
6899 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6900
6901 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6902 and "Regressions since gdb 5.3.". Add known regressions since
6903 gdb 6.0.
6904
6905 2004-03-16 David Carlton <carlton@kealia.com>
6906
6907 * dwarf2read.c (process_structure_scope): Process children even
6908 when we're a declaration.
6909
6910 2004-03-16 Andrew Cagney <cagney@redhat.com>
6911
6912 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6913 * blockframe.c (find_pc_partial_function)
6914 (find_pc_sect_partial_function): Merge into a single
6915 find_pc_partial_function.
6916
6917 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6918
6919 * i386bsd-nat.c: s/regno/regnum/g.
6920 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6921 FP0_REGNUM.
6922 (store_inferior_registers): Likewise.
6923
6924 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6925
6926 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6927 of i387_fill_fsave.
6928 (store_inferior_registers): Call i387_collect_fsave and
6929 i387_collect_fxsave instead of i387_fill_fsave and
6930 i387_fill_fxsave.
6931
6932 2004-03-15 Andrew Cagney <cagney@redhat.com>
6933
6934 * Makefile.in (frame-unwind.o): Update dependencies.
6935 * frame-unwind.c: Include "gdb_obstack.h".
6936 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6937 parameter.
6938 (append_predicate): Delete function.
6939 (struct frame_unwind_table_entry): New structure.
6940 (struct frame_unwind_table): Replace "sniffer" with "head" and
6941 "tail".
6942 (frame_unwind_append_sniffer): Update.
6943 (frame_unwind_find_by_frame): Update.
6944 (_initialize_frame_unwind): Registe frame_unwind_init using
6945 gdbarch_data_register_pre_init.
6946
6947 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6948
6949 * i386bsd-nat.c: Update copyright year.
6950 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6951 define unconditionally.
6952
6953 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6954
6955 * i387-tdep.h (i387_collect_fsave): New prototype.
6956 * i387-tdep.c (i387_collect_fsave): New function containing most
6957 of the code from i387_fill_fsave.
6958 (i387_fill_fsave): Call i387_collect_fsave.
6959
6960 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6961
6962 * i386-linux-tdep.c: Update copyright year.
6963 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6964 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6965 svr4_ilp32_link_map_offsets instead of
6966 i386_linux_svr4_fetch_link_map_offsets.
6967
6968 2004-03-15 David Carlton <carlton@kealia.com>
6969
6970 Fix for PR c++/1553:
6971 * dwarf2read.c (read_structure_type): Determine type name by
6972 calling determine_class_name.
6973 (determine_class_name): New.
6974 (determine_prefix): Look at TYPE_TAG_NAME and call
6975 determine_class_name when appropriate.
6976 (determine_prefix_aux, class_name): Delete.
6977 (read_namespace): Set die->type.
6978
6979 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6980
6981 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6982 unused macro definition. The definition in target.h (or perhaps
6983 elsewhere) takes precedence.
6984
6985 2004-03-15 Andrew Cagney <cagney@redhat.com>
6986
6987 * ppc-tdep.h: Update copyright.
6988 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6989 function signatures to match "regsets.h".
6990 * ppc-linux-tdep.c: Include "regset.h".
6991 (ELF_GREGSET_SIZE): Delete.
6992 (right_supply_register): New function.
6993 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6994 using right_supply_register.
6995 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6996 functions.
6997 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6998 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6999 (_initialize_ppc_linux_tdep): Do not register
7000 ppc_linux_regset_core_fns.
7001 (ppc_linux_regset_from_core_section): Replace
7002 fetch_core_registers.
7003 (ppc_linux_regset_core_fns): Delete.
7004 * ppc-linux-nat.c: (right_fill_reg): New function.
7005 (supply_gregset): Update call to ppc_linux_supply_gregset.
7006 (fill_gregset): Clear the register set, use right_fill_reg.
7007 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7008 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7009
7010 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7011 unsigned.
7012
7013 2004-03-15 Andrew Cagney <cagney@redhat.com>
7014
7015 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7016 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7017 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7018 and register_gdbarch_data.
7019 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7020 (struct gdbarch_data): Replace "init" by "pre_init" and
7021 "post_init".
7022 * gdbarch.h, gdbarch.c: Re-generate.
7023 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7024 with"obstack", use OBSTACK_ZALLOC.
7025 (dwarf2_frame_ops): Delete.
7026 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7027 (dwarf2_frame_init_reg): Use gdbarch_data.
7028 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7029 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7030 (_initialize_svr4_solib): Update.
7031 * user-regs.c (_initialize_user_regs): Update.
7032 * reggroups.c (_initialize_reggroup): Update.
7033 * regcache.c (_initialize_regcache): Update.
7034 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7035 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7036 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7037 * frame-unwind.c (_initialize_frame_unwind): Update.
7038 * frame-base.c (_initialize_frame_base): Update.
7039 * user-regs.c (user_reg_add): Update.
7040 * reggroups.c (reggroup_add): Update.
7041 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7042 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7043 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7044 * frame-base.c (frame_base_table): Update.
7045 * remote.c (_initialize_remote): Update.
7046 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7047
7048 2004-03-15 Andrew Cagney <cagney@redhat.com>
7049
7050 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7051
7052 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7053
7054 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7055 * frv-linux-tdep.c: New file.
7056 * frv-tdep.c (struct gdbarch_tdep): Add new field
7057 ``sigcontext_reg_addr''.
7058 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7059 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7060 (frv_sigramp_frame_sniffer): New functions.
7061 (frv_sigtramp_frame_unwind): New static global.
7062 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7063 sniffers.
7064 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7065 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7066
7067 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7068
7069 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7070 but not via a call to error(), when unable to read memory.
7071
7072 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7073
7074 * frv-tdep.c (frv_call_dummy_words): Delete.
7075 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7076
7077 2004-03-15 Andrew Cagney <cagney@redhat.com>
7078
7079 * infrun.c (handle_step_into_function, step_over_function): Only
7080 update and use STEP_FRAME_ID when the system is using legacy
7081 frames. Update comments.
7082
7083 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7084
7085 * amd64-linux-tdep.h: Remove file.
7086 * amd64-linux-tdep.c: Don't include "inferior.h" and
7087 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7088 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7089 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7090 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7091 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7092 macros.
7093 (user_to_gdb_regmap): Remove variable.
7094 (amd64_linux_gregset_reg_offset): New variable.
7095 (amd64_core_fns): Remove variable.
7096 (fetch_core_registers): Remove function.
7097 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7098 functions.
7099 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7100 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7101 * Makefile.in (amd64_linux_tdep_h): Remove.
7102 (amd64-linux-nat.o): Update dependencies.
7103 (amd64-linux-tdep.o): Update dependencies.
7104
7105 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7106 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7107 functions.
7108 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7109
7110 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7111 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7112
7113 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7114
7115 * dwarf2read.c (read_structure_type): Rename from
7116 read_structure_scope. Don't create a symbol or call process_die.
7117 Return immediately if die->type is set. Call read_type_die before
7118 dwarf2_add_member_fn.
7119 (process_structure_scope): New function.
7120 (read_enumeration_type, process_enumeration_scope): New functions,
7121 broken out from read_enumeration. Don't create the enumeration
7122 type if it has already been created.
7123 (read_enumeration): Removed.
7124 (process_die): Call read_structure_type, process_structure_scope,
7125 read_enumeration_type, and process_enumeration_scope. Just call
7126 new_symbol for base and subrange types. Add a comment about other
7127 type dies.
7128 (read_type_die): Call read_enumeration_type.
7129 (add_partial_structure, new_symbol): Update comments.
7130
7131 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7132
7133 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7134
7135 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7136
7137 * tui/tui-win.h (tui_get_cmd_list): Declare.
7138 * tui/tui-win.c (tui_command): New function.
7139 (tui_get_cmd_list): New function.
7140 (_initialize_tui_win): Moved initialization of tui command in
7141 tui_get_cmd_list.
7142
7143 * tui/tui-data.c (init_content_element): Setup new data members.
7144 (init_win_info): Likewise.
7145 (free_content_elements): Free it.
7146 * tui/tui-data.h (struct tui_data_element): Store the register
7147 content to print.
7148 (struct tui_data_info): Keep the current register group.
7149
7150 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7151
7152 * tui/tui-regs.h (tui_show_registers): Update prototype.
7153 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7154 (tui_resize_all): No need to calculate anything for register window.
7155 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7156 (tui_set_register_element, tui_set_general_regs_content): Remove.
7157 (tui_set_special_regs_content): Remove.
7158 (tui_set_general_and_special_regs_content): Remove.
7159 (tui_set_float_regs_content): Remove.
7160 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7161 (tui_set_regs_content): Remove.
7162 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7163 (tui_v_show_registers_command_support): Remove.
7164 (tui_show_registers): Use a reggroup to specify the registers to show.
7165 (tui_show_register_group): New function.
7166 (tui_display_registers_from): Compute the layout of register window
7167 and refresh with new API; be sure to delete old register windows.
7168 (tui_check_register_values): Update to use tui_get_register and
7169 tui_display_data.
7170 (tui_display_register): Just refresh the register window part.
7171 (tui_register_format): Format registers and save in tui_data_element.
7172 (tui_get_register): New to combine tui_reg_value_has_changed and
7173 tui_get_register_raw_value; fix to use the new gdb API.
7174 (tui_show_float_command): Renamed tui_reg_float_command.
7175 (tui_show_general_command): Renamed tui_reg_general_command.
7176 (tui_show_special_command): Renamed tui_reg_system_command.
7177 (_initialize_tui_regs): Remove unused commands.
7178
7179 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7180
7181 * NEWS (New native configurations): Mention OpenBSD/amd64.
7182
7183 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7184 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7185 Remove defines.
7186 * config/i386/nm-fbsd64.h: Likewise.
7187 * config/i386/nm-obsd.h: Likewise.
7188 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7189 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7190
7191 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7192
7193 * frv-tdep.c (set_variant_scratch_registers): New function.
7194 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7195 New constants.
7196
7197 From Richard Sandiford <rsandifo@redhat.com>:
7198 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7199
7200 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7201
7202 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7203 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7204 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7205 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7206 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7207 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7208 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7209 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7210 definitions from frv-tdep.c to frv-tdep.h.
7211
7212 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7213
7214 Add shared library support for FR-V FDPIC ABI:
7215 * Makefile.in (solib-frv.o): Add dependencies.
7216 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7217 New functions.
7218 (frv_push_dummy_call): Add support for FDPIC ABI.
7219 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7220 for FDPIC ABI.
7221 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7222 (frv_fdpic_find_canonical_descriptor): Declare.
7223 * solib-frv.c: New file.
7224 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7225 * config/frv/tm-frv.h (solib.h): Include.
7226
7227 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7228
7229 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7230 (frv-tdep.o): Update dependencies.
7231 * frv-tdep.h: New file.
7232 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7233 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7234 constants.
7235 (struct gdbarch_tdep): Add new member ``frv_abi''.
7236 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7237 functions.
7238 (new_variant): Set ``frv_abi'' field.
7239 (gdb_arch_init): Detect FDPIC executables.
7240
7241 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7242
7243 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7244 wrapper.
7245
7246 2004-03-11 Andrew Cagney <cagney@redhat.com>
7247
7248 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7249
7250 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7251
7252 * solist.h (master_so_list): New function.
7253 * solib.c (master_so_list): Likewise.
7254 * solib-svr4.c (enable_break): Iterate over so_list entries
7255 obtained from master list instead of entries obtained directly
7256 via svr4_current_sos().
7257
7258 2004-03-10 Ben Elliston <bje@gnu.org>
7259
7260 * MAINTAINERS: Update my mail address.
7261
7262 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7263
7264 * remote-m32r-sdi.c: Support hardware watchpoint.
7265
7266 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * user-regs.c: Update copyright years.
7269 (struct user_regs): Rename to gdb_user_regs.
7270 (append_user_reg, builtin_user_regs, user_regs_init)
7271 (user_reg_add, user_reg_map_name_to_regnum)
7272 (usernum_to_user_reg): Update.
7273
7274 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7275
7276 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7277 (skip_children): New functions.
7278 (locate_pdi_sibling): Call skip_children.
7279
7280 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7281
7282 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7283 * gdbtypes.c (check_typedef): Update comments.
7284
7285 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7286
7287 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7288 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7289 pointer. Update comment about comp_unit_head.
7290 (struct abbrev_info): Shorten two int flags.
7291 (dwarf_alloc_abbrev): Take a CU argument.
7292 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7293 each time through the loop. Update cleanup argument.
7294 (psymtab_to_symtab_1): Update cleanup call.
7295 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7296 abbrev_obstack.
7297 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7298 Just call obstack_free and clear the pointer.
7299
7300 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7301
7302 * infrun.c (handle_inferior_event): Remove short-circuit code for
7303 events in a different thread.
7304
7305 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7306
7307 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7308 print the whole transfer.
7309 (initialize_targets): Update description of "set debug target".
7310
7311 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7312
7313 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7314
7315 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7316
7317 * MAINTAINERS (write after approval): Add myself.
7318
7319 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7320
7321 * sh-tdep.c (sh_print_registers_info): Use for loop.
7322 Don't skip multiple registers when a float register is encountered.
7323
7324 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7325
7326 Fix PR tdep/1291.
7327 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7328 to official SH documentation.
7329
7330 2004-03-07 Andrew Cagney <cagney@redhat.com>
7331
7332 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7333 unused function.
7334
7335 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7336
7337 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7338 (arm_get_next_pc): Handle BX and BLX.
7339
7340 2004-03-07 Andrew Cagney <cagney@redhat.com>
7341
7342 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7343 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7344 HPPA_SP_REGNUM.
7345 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7346 (hppa_target_read_fp): Delete.
7347 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7348 register_virtual_size, max_register_raw_size,
7349 max_register_virtual_size, register_byte, register_size,
7350 target_read_fp, fp_regnum, and register_bytes. Set register_type
7351 instead of register_virtual_type.
7352 (hppa32_register_type, hppa64_register_type): Replace
7353 hppa32_register_virtual_type and hppa64_register_virtual_type.
7354 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7355 (HPPA_FP_REGNUM): Define.
7356
7357 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7358
7359 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7360 (pa_do_registers_info): Delete.
7361 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7362 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7363 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7364
7365 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7366 GDB_TARGET_IS_HPPA code.
7367 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7368 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7369 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7370 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7371 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7372 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7373 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7374 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7375 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7376 (hppa_frameless_function_invocation, hppa64_store_return_value)
7377 (hppa_store_struct_return, hppa64_extract_return_value)
7378 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7379 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7380 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7381 (find_proc_framesize, deposit_21, restore_pc_queue)
7382 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7383 (rp_saved, pc_in_linker_stub): Delete.
7384
7385 Unconditionally enable 64-bit frame and ABI code.
7386 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7387 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7388 push_dummy_frame, fix_call_dummy, push_arguments,
7389 call_dummy_location, extract_return_value, use_struct_convention,
7390 store_return_value, store_struct_return, saved_pc_after_call,
7391 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7392 frame_chain, frame_chain_valid, frameless_function_invocation,
7393 frame_saved_pc, and pop_frame.
7394
7395 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7396 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7397 (hppa_gdbarch_init): Do not set PC_REGNUM.
7398
7399 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7400
7401 * config/alpha/tm-fbsd.h: Remove file.
7402 * config/alpha/fbsd.mt: Tweak comment.
7403 (TM_FILE): Set to tm-alpha.h.
7404
7405 2004-03-05 Andrew Cagney <cagney@redhat.com>
7406
7407 * infrun.c (step_over_function): When non-legacy code, and no
7408 step_frame_id, use the unwinder to get the caller's frame ID.
7409
7410 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7411
7412 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7413 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7414 bfd_arch_unknown. Adjust comment.
7415
7416 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7417 * i386obsd-tdep.c: Correct spelling in comment.
7418 * i386nbsd-tdep.c: Correct spelling in comment.
7419 * sparc-tdep.c: Correct spelling in comments.
7420
7421 2004-03-05 David Carlton <carlton@kealia.com>
7422
7423 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7424 bug.
7425
7426 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7427
7428 * sparc-tdep.c: Fix typo in comment.
7429
7430 2004-03-04 J. Brobecker <brobecker@gnat.com>
7431
7432 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7433
7434 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7435
7436 * dwarf2read.c: Add comment describing memory lifetimes.
7437 (struct dwarf2_pinfo): Update comment.
7438 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7439 (read_enumeration, new_symbol): Don't use obsavestring.
7440
7441 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7442
7443 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7444 instead of amd64_fill_fxsave.
7445 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7446 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7447
7448 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7449 Reorganize code a bit.
7450
7451 2004-03-04 Orjan Friberg <orjanf@axis.com>
7452
7453 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7454 when the frame pointer is pushed. Don't set the frame pointer's
7455 address on the stack unless it's actually located there.
7456 Set the SRP's address on the stack correctly when the PC is still in
7457 the prologue.
7458 (cris_return_value): New function.
7459 (cris_gdbarch_init): Clear deprecated store_return_value,
7460 extract_return_value.
7461
7462 2004-03-02 Jim Blandy <jimb@redhat.com>
7463
7464 * stabsread.c (reg_value_complaint): The maximum register number
7465 is one less than the number of registers.
7466
7467 2004-03-02 Andrew Cagney <cagney@redhat.com>
7468
7469 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7470 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7471 trailing comma and redundant assignment of I386_ST0_REGNUM.
7472 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7473 32-bit segment registers.
7474
7475 2004-03-01 Andrew Cagney <cagney@redhat.com>
7476
7477 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7478 use frame_relative_level and get_next_frame.
7479
7480 2004-02-29 Andrew Cagney <cagney@redhat.com>
7481
7482 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7483 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7484 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7485 Delete macro.
7486
7487 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7488
7489 * inflow.c (terminal_inferior): Don't give up the terminal if we
7490 previously couldn't get the inferior's terminal state.
7491
7492 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7493
7494 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7495 PC_REGNUM.
7496
7497 2004-02-28 Andrew Cagney <cagney@redhat.com>
7498
7499 * NEWS: Refer to GDB 6.1.
7500 * README: Refer to GDB 6.1.
7501 * PROBLEMS: Refer to GDB 6.1.
7502
7503 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7504
7505 * thread-db.c (disable_thread_signals): Remove unused function.
7506
7507 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7508
7509 * amd64-nat.c: Include "gdb_string.h".
7510 (amd64_collect_native_gregset): Zero-extend the 32-bit
7511 general-purpose registers and %eip.
7512
7513 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7514 * amd64-tdep.c (amd64_collect_fxsave): New function.
7515 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7516
7517 * i387-tdep.h: Update copyright year.
7518 (i387_collect_fxsave): New prototype.
7519 * i387-tdep.c: Update copyright year.
7520 (i387_collect_fxsave): New function containing most of the code
7521 from i387_fill_fxsave.
7522 (i387_fill_fxsave): Call i387_collect_fxsave.
7523
7524 2004-02-28 Andrew Cagney <cagney@redhat.com>
7525
7526 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7527 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7528
7529 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7530
7531 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7532
7533 2004-02-28 Andrew Cagney <cagney@redhat.com>
7534
7535 * utils.c: Use "", instead of <>, to include readline.
7536 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7537 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7538 * source.c, solib.c, exec.c, event-top.c: Ditto.
7539 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7540 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7541 * Makefile.in: Update all dependencies.
7542 (readline_tilde_h, readline_history_h): Define.
7543 (readline_headers): Delete.
7544
7545 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7546
7547 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7548 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7549 "config/i386/tm-lx64.h".
7550
7551 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7552 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7553 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7554
7555 2004-02-28 Andrew Cagney <cagney@redhat.com>
7556
7557 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7558
7559 * breakpoint.c (_initialize_breakpoint): Use
7560 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7561 Add help to show command.
7562
7563 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7564
7565 * i386-nat.c: Reformat to be closer to coding standards.
7566 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7567 `retval'. Make variables `align' and `size' local to while-loop.
7568 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7569 (_initialize_i386_nat): New prototype.
7570
7571 * tui/tui.c: Include <readline/readline.h> instead of
7572 "readline/readline.h". Include it after <term.h> and
7573 "gdb_curses.h".
7574
7575 2004-02-27 Andrew Cagney <cagney@redhat.com>
7576
7577 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7578 the new frame unwind code.
7579 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7580 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7581 PCOQ_HEAD_REGNUM.
7582
7583 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7584 "return_value" and "push_dummy_call".
7585 (hppa32_use_struct_convention): Delete unused function.
7586 (hppa32_store_return_value): Delete unused function.
7587 (hppa32_extract_return_value): Delete unused function.
7588 (hppa32_stack_align): Delete function.
7589
7590 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7591
7592 * coffread.c (enter_linenos): Don't let rawptr reference memory
7593 outside linetab[]'s limits.
7594
7595 2004-02-27 Andrew Cagney <cagney@redhat.com>
7596
7597 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7598 inferior stack space - the stack needs to grow upwards.
7599 (hppa32_frame_align): New function.
7600 (hppa64_frame_align): Replace hppa_frame_align.
7601 (hppa_gdbarch_init): Update.
7602
7603 2004-02-26 Orjan Friberg <orjanf@axis.com>
7604
7605 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7606 (dwarf2-frame.h): Include.
7607 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7608 Remove static variables related to ABI setting.
7609 (struct gdbarch_tdep): Remove cris_abi member.
7610 (struct frame_extra_info): Remove.
7611 (cris_unwind_cache, stack_item): New structs.
7612 (cris_frame_unwind, cris_frame_base): New variables.
7613 (push_stack_item, pop_stack_item)
7614 (cris_frame_unwind_cache, cris_frame_this_id)
7615 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7616 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7617 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7618 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7619 (cris_reg_struct_has_addr): New functions.
7620 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7621 (cris_frame_saved_pc, cris_saved_pc_after_call,
7622 (cris_store_struct_return, cris_frameless_function_invocation)
7623 (cris_pop_frame, cris_skip_prologue_main)
7624 (cris_abi_original_store_return_value)
7625 (cris_abi_v2_store_return_value)
7626 (cris_abi_original_extract_return_value)
7627 (cris_abi_v2_extract_return_value)
7628 (cris_abi_original_reg_struct_has_addr)
7629 (cris_abi_v2_reg_struct_has_addr)
7630 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7631 (cris_push_return_address, cris_abi_update): Remove.
7632 (_initialize_cris_tdep): Remove ABI command.
7633 (cris_dump_tdep): Ditto.
7634 (cris_gdbarch_init): Remove ABI command.
7635 Set store_return_value, extract_return_value, push_dummy_code,
7636 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7637 frame_unwind_append_sniffer, frame_base_set_default.
7638 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7639 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7640 sizeof_call_dummy_words, get_saved_register, push_return_address,
7641 pop_frame, store_struct_return, frame_init_saved_regs,
7642 init_extra_frame_info, frameless_function_invocation, frame_chain,
7643 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7644 dummy_write_sp.
7645
7646 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7647
7648 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7649 * valprint.c (print_hex_chars): Change from static to external.
7650 (print_char_chars): New function.
7651 * printcmd.c (print_scalar_formatted): For integer and enum types
7652 that are longer than LONGEST, perform processing via appropriate
7653 print_*_chars routines.
7654
7655 2004-02-26 Andrew Cagney <cagney@redhat.com>
7656
7657 * Makefile.in: Update dependencies.
7658 Changes from Ulrich Weigand,
7659 * s390-tdep.c: Include "dwarf2-frame.h".
7660 (s390_dwarf2_frame_init_reg): New function.
7661 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7662 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7663
7664 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7665
7666 * breakpoint.c (pending_break_support): New setting variable.
7667 (break_command_1): Account for pending_break_support setting
7668 when creating pending breakpoints.
7669 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7670 (_initialize_breakpoint): Add "set breakpoint pending" and
7671 "show breakpoint pending" commands.
7672
7673 2004-02-26 Andrew Cagney <cagney@redhat.com>
7674
7675 Fix PR i18n/1570.
7676 * charset.c (backslashable, backslashed, represented): Remove 'e'
7677 from list of escaped characters, not part of ISO-C.
7678
7679 2004-02-25 J. Brobecker <brobecker@gnat.com>
7680
7681 From Peter Schauer <schauer@pdf.de>:
7682 * tui/tui.c: Move system header includes after local includes.
7683 Fixes a build failure on solaris systems.
7684
7685 2004-02-25 J. Brobecker <brobecker@gnat.com>
7686
7687 * configure.in: Refine the previous change.
7688 * configure: Regenerate.
7689
7690 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7691
7692 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7693 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7694 "amd64-tdep.h" instead of "x86-64-tdep.h".
7695 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7696 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7697 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7698 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7699 and "x86-64-tdep.c".
7700 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7701 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7702 and "x86-64-tdep.c".
7703 * amd64bsd-nat.c: Update copyright year.
7704 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7705 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7706 "x86-64-tdep.h".
7707 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7708 "x86-64-tdep.h".
7709 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7710 "x86-64-tdep.h".
7711 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7712 "x86-64-tdep.h".
7713 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7714 "x86-64-tdep.h".
7715 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7716 "x86-64-tdep.h".
7717 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7718 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7719 * Makefile.in (amd64_linux_tdep_h): Renamed from
7720 x86_64_linux_tdep_h.
7721 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7722 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7723 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7724 (amd64obsd-tdep.o): Update dependencies.
7725 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7726 dependencies.
7727 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7728 dependencies.
7729 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7730 amd64-linux-nat.c amd64-linux-tdep.c.
7731 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7732 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7733 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7734 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7735 amd64-tdep.o and amd64-linux-tdep.o.
7736 (TM_FILE): Set to tm-linux64.h.
7737 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7738 (NAT_FILE): Set to nm-linux64.h.
7739 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7740 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7741 amd64-tdep.o.
7742 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7743 amd64-tdep.o.
7744 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7745 amd64-tdep.o.
7746
7747 2004-02-25 Roland McGrath <roland@redhat.com>
7748
7749 * remote.c (remote_protocol_qPart_auxv): New variable.
7750 (init_all_packet_configs): Initialize it.
7751 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7752 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7753 (show_remote_cmd): Call it.
7754 (_initialize_remote): Initialize commands.
7755 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7756 service TARGET_OBJECT_AUXV requests.
7757
7758 2004-02-25 J. Brobecker <brobecker@gnat.com>
7759
7760 * configure.in: Make sure that the wborder function is available.
7761 Otherwise, search for it in the cur_colr library.
7762 * configure: Regenerate.
7763
7764 2004-02-25 Andrew Cagney <cagney@redhat.com>
7765
7766 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7767
7768 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7769
7770 * config/i386/tm-x86-64linux.h: Tweak comments.
7771
7772 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7773
7774 * MAINTAINERS: Add self to write-after-approval list.
7775
7776 2004-02-25 Andrew Cagney <cagney@redhat.com>
7777
7778 PR cli/1566. Problem found, and fix suggested by David Allan.
7779 * cli/cli-script.c (execute_control_command): Unconditionally
7780 install a cleanup. Default "ret" to "invalid_control". Use
7781 "break" instead of "return" to escape from the switch.
7782
7783 2004-02-24 J. Brobecker <brobecker@gnat.com>
7784
7785 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7786 with the lines macro defined in term.h on AiX.
7787 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7788 a collision with the label_width macro defined in term.h on AiX.
7789
7790 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7791
7792 Committed by Kevin Buettner <kevinb@redhat.com>.
7793
7794 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7795 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7796 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7797 instead of ia64_write_pc().
7798 * ia64-linux-tdep.c (regcache.h): Include.
7799 (ia64_linux_write_pc): New function.
7800
7801 2004-02-23 Roland McGrath <roland@redhat.com>
7802
7803 * auxv.c (info_auxv_command): Fix typos in error messages.
7804
7805 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7806
7807 * x86-64-tdep.h: Tweak comment.
7808 (enum amd64_regnum): New.
7809 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7810 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7811 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7812 (X86_64_XMM1_REGNUM): Removed.
7813 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7814 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7815 prototypes for renamed functions.
7816 * x86-64-tdep.c: Fix typo.
7817 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7818 register numbers.
7819 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7820 Use constants from `enum amd64_regnum' for register numbers.
7821 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7822 (amd64_analyze_prologue, amd64_frame_cache,
7823 amd64_sigtramp_frame_cache): Use constants from `enum
7824 amd64_regnum' for register numbers.
7825 (amd64_supply_fpregset): Adjust for renamed functions.
7826 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7827 `enum amd64_regnum' for register numbers.
7828 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7829 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7830 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7831 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7832 (amd64_linux_fill_gregset): Adjust for renamed macros.
7833 (fetch_core_registers): Adjust for renamed functions.
7834 (amd64_linux_init_abi): Adjust for renamed functions.
7835 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7836 renamed functions.
7837 * amd64-nat.c: Adjust for renamed macros.
7838 * amd64bsd-nat.c (fetch_inferior_registers)
7839 (store_inferior_registers): Use constants from `enum amd64_regnum'
7840 for register numbers. Adjust for renamed variables.
7841 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7842 renamed variables.
7843 (_initialize_amd64fbsd_nat): Use constants from `enum
7844 amd64_regnum' for register numbers.
7845 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7846 `enum amd64_regnum' for register numbers.
7847 (amd64fbsd_init_abi): Adjust for renamed functions.
7848 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7849 `enum amd64_regnum' for register numbers.
7850 (amd64nbsd_init_abi): Adjust for renamed functions.
7851 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7852 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7853 `enum amd64_regnum' for register numbers.
7854 (amd64obsd_init_abi): Adjust for renamed functions.
7855 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7856
7857 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7858
7859 * breakpoint.c (print_one_breakpoint): Do not output spaces
7860 after printing <PENDING> for a pending breakpoint.
7861
7862 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7863
7864 * printcmd.c (print_scalar_formatted): Initialize val_long
7865 to remove compiler warning message.
7866
7867 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7868
7869 * defs.h (nquery, yquery): New prototypes.
7870 * breakpoint.c (break_command_1): Use new nquery interface.
7871 * utils.c (defaulted_query, nquery, yquery): New functions.
7872
7873 2004-02-23 Andrew Cagney <cagney@redhat.com>
7874
7875 * hppa-tdep.c (hppa_frame_align): New function.
7876 (hppa32_push_dummy_call): New function.
7877 (hppa64_push_dummy_call): New function.
7878 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7879 disabled.
7880
7881 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7882 FIX_CALL_DUMMY when push_dummy_call is available.
7883 (call_function_by_hand, push_dummy_code): Ditto.
7884
7885 2004-02-22 Andrew Cagney <cagney@redhat.com>
7886
7887 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7888 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7889 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7890 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7891 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7892 call_dummy_location to ON_STACK.
7893
7894 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7895
7896 * x86-64-linux-tdep.c: Tweak comment.
7897 (amd64_linux_supply_gregset): Renamed from
7898 x86_64_linux_supply_gresget.
7899 (amd64_linux_fill_gregset): Renamed from
7900 x86_64_linux_fill_gregset.
7901 (fetch_core_registers): Adjust for renamed functions.
7902 (amd64_core_fns): Renamed from x86_64_core_fns.
7903 (amd64_linux_sigtramp_start): Renamed from
7904 x86_64_linux_sigtramp_start.
7905 (amd64_linux_pc_in_sigtramp): Renamed from
7906 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7907 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7908 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7909 (amd64_linux_sigcontext_addr): Renamed from
7910 x86_64_linux_sigcontext_addr.
7911 (amd64_linux_sc_reg_offset): Renamed from
7912 x86_64_linux_sc_reg_offset.
7913 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7914 Adjust for renamed functions and variables.
7915 (_initialize_amd64_linux_tdep): Renamed from
7916 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7917 variables.
7918 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7919 Adjust for renamed functions.
7920
7921 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7922 from x86_64_linux_gregset64_reg_offset.
7923 (amd64_linux_gregset32_reg_offset): Rename from
7924 x86_64_linux_gregset64_reg_offset.
7925 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7926 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7927 (amd64_linux_dr_set_control): Renamed from
7928 x86_64_linux_dr_set_control. Adjust for renamed functions.
7929 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7930 Adjust for renamed functions.
7931 (amd64_linux_dr_reset_addr): Renamed from
7932 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7933 (amd64_linux_dr_get_status): Renamed from
7934 x86_64_linux_dr_get_status. Adjust for renamed functions.
7935 (_initialize_amd64_linux_nat): Renamed from
7936 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7937 functions.
7938 * config/i386/nm-x86-64linux.h: Update copyright year.
7939 Adjust for renamed functions.
7940
7941 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7942 amd64fbsd_sigtramp_start.
7943 (amd64fbsd_sigtramp_end_addr): Renamed from
7944 amd64fbsd_sigtramp_end.
7945 (amd64fbsd_init_abi): Adjust for renamed variables.
7946 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7947 variables.
7948 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7949 amd64fbsd_sigtramp_start.
7950 (amd64fbsd_sigtramp_end_addr): Renamed from
7951 amd64fbsd_sigtramp_end.
7952
7953 2004-02-22 Andrew Cagney <cagney@redhat.com>
7954
7955 * hppa-tdep.c (hppa32_return_value): New function.
7956 (hppa64_return_value): New function.
7957 (hppa_gdbarch_init): Set return_value; keep disabled.
7958
7959 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7960 struct-return and inferior function call methods.
7961
7962 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7963 "frame-base.h".
7964 (struct hppa_frame_cache): Define.
7965 (hppa_frame_cache, hppa_frame_this_id): New functions.
7966 (hppa_frame_prev_register): New function.
7967 (hppa_frame_unwind, hppa_frame_base): New variables.
7968 (hppa_frame_unwind_sniffer): New function.
7969 (hppa_frame_base_address, hppa_unwind_pc): New function.
7970 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7971 sniffer, and frame base sniffer; keep disabled.
7972 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7973 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7974
7975 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7976 to predicates for "seriously old code".
7977
7978 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7979 runtime if(0).
7980
7981 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7982 unsigned.
7983 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7984
7985 * config/pa/tm-hppa.h: Update copyright.
7986 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7987 (deprecated_init_frame_pc_default): Delete declaration.
7988 (hppa_frame_init_saved_regs): Delete declaration.
7989 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7990 * hppa-tdep.c: Include "arch-utils.h".
7991 (hppa_gdbarch_init): Set deprecated init_frame_pc
7992 and deprecated frame_init_saved_regs.
7993 (hppa_frame_init_saved_regs): Make static.
7994
7995 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7996
7997 Remove old 386BSD support.
7998 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7999 * configure.host: Remove i[34567]86-*-bsd*.
8000 * configure.tgt: Remove i[34567]86-*-bsd*.
8001 * i386b-nat.c: Removed.
8002 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8003 (i386b-nat.o): Remove dependencies.
8004
8005 * config/i386/i386bsd.mh: Removed.
8006 * config/i386/i386bsd.mt: Removed.
8007 * config/i386/nm-i386bsd.h: Removed.
8008 * config/i386/tm-i386bsd.h: Removed.
8009 * config/i386/xm-i386bsd.h: Removed.
8010
8011 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8012
8013 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8014 (amd64fbsd_init_abi): Set link map offsets.
8015 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8016 (amd64nbsd_init_abi): Set link map offsets.
8017 * amd64obsd-tdep.c: Include "solib-svr4.h".
8018 (amd64obsd_init_abi): Set link map offsets.
8019 * i386fbsd-tdep.c: Include "solib-svr4.h".
8020 (i386fbsd_init_abi): Set link map offsets.
8021 * i386nbsd-tdep.c: Include "solib-svr4.h".
8022 (i386nbsdelf_init_abi): Set link map offsets.
8023 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8024 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8025 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8026 solib-legacy.o and core-aout.o. Reformat.
8027 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8028 solib-svr4.o, solib-legacy.o. Reformat.
8029 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8030 * config/i386/nbsdelf.mh: Reformat.
8031 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8032 solib-svr4.o, solib-legacy.o and corelow.o.
8033 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8034 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8035 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8036 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8037 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8038 (TM_FILE): Set to tm-fbsd.h.
8039 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8040 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8041 solib-svr4.o.
8042 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8043 solib-svr4.o.
8044 (TM_FILE): Set to nm-nbsd.h.
8045 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8046 Simplify shared library support. Don't include "elf/common.h".
8047 (SVR4_SHARED_LIBS): Don't define.
8048 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8049 "solib.h".
8050 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8051 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8052 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8053 Don't include "i386/tm-i386.h". Include "solib.h".
8054 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8055 Don't include "i386/tm-i386.h".
8056 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8057 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8058 Include "i386/xm-i386.h".
8059 (HOST_LONG_DOUBLE_FORMAT): Remove.
8060
8061 Fix OpenBSD/i386 sigtramp recognition.
8062 * i386-tdep.h: Update copyright year.
8063 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8064 (i386bsd_sigtramp_end): New prototypes.
8065 (i386fbsd_sigtramp_start_addr): Renamed from
8066 i386fbsd_sigtramp_start.
8067 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8068 (i386obsd_sigtramp_start_addr): Renamed from
8069 i386obsd_sigtramp_start.
8070 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8071 * i386bsd-tdep.c: Update copyright year.
8072 (i386bsd_pc_in_sigtramp): Make public.
8073 * i386fbsd-nat.c: Update copyright year.
8074 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8075 * i386fbsd-tdep.c: Update copyright year.
8076 (i386fbsd_sigtramp_start_addr): Renamed from
8077 i386fbsd_sigtramp_start.
8078 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8079 (i386fbsdaout_init_abi): Adjust for renamed variables.
8080 * i386obsd-nat.c: Update copyright year.
8081 (_initialize_i386obsd_nat): Adjust for renamed variables.
8082 * i386obsd-tdep.c: Include "target.h".
8083 (i386obsd_page_size): New variable.
8084 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8085 (i386obsd_sigtramp_end): New functions.
8086 (i386obsd_sigtramp_start_addr): Renamed from
8087 i386obsd_sigtramp_start.
8088 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8089 (i386obsd_init_abi): Adjust for renamed variables. Set
8090 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8091 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8092
8093 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8094 trampoline change in OpenBSD kernel.
8095
8096 * amd64-nat.c: Update copyright year.
8097 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8098 architecture from REGCACHE.
8099
8100 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8101 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8102
8103 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8104
8105 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8106 i[34567]86-*-openbsd3.[0-3].
8107 * config/i386/obsdaout.mh: New file.
8108
8109 * config/i386/obsd.mh (MH_FLAGS): Remove.
8110
8111 Fix PR build/1549.
8112 * i386obsd-tdep.c: Update copyright years. Include
8113 "solib-svr4.h".
8114 (i386obsd_init_abi): Don't set regset_from_core_section here.
8115 (i386obsd_aout_init_abi): New function. Set
8116 regset_from_core_section here.
8117 (i386obsd_elf_init_abi): New function.
8118 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8119 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8120 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8121 (TM_FILE): Set to tm-nbsd.h.
8122
8123 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8124 solib-sunos.o.
8125
8126 * solib-svr4.h: Update copyright year.
8127 (svr4_ilp32_fetch_link_map_offsets)
8128 (svr4_lp64_fetch_link_map_offsets): New prototype.
8129 * solib-svr4.c: Update copyright year.
8130 (svr4_ilp32_fetch_link_map_offsets)
8131 (svr4_lp64_fetch_link_map_offsets): New function.
8132
8133 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8134
8135 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8136 to the partial symbol table.
8137
8138 2004-02-20 J. brobecker <brobecker@gnat.com>
8139
8140 * PROBLEMS: Add description of problem documented under gdb/1560.
8141
8142 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8143
8144 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8145 comments.
8146 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8147 functions.
8148 (amd64obsd_init_abi): Reorder initializations. Use
8149 amd64obsd_r_reg_offset to initialize the general-purpose register
8150 set details. Set regset_from_core_section.
8151 (_initialize_amd64obsd_tdep): Rename from
8152 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8153 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8154 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8155
8156 * NEWS (New native configurations): Mention OpenBSD/alpha.
8157 * configure.tgt: Add alpha*-*-openbsd*.
8158 * configure.host: Add alpha*-*-openbsd*.
8159 * alphanbsd-tdep.c: Update copyright year.
8160 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8161
8162 2004-02-20 Andrew Cagney <cagney@redhat.com>
8163
8164 Fix PR tdep/1372.
8165 * configure.tgt: Delete target "none-*-*".
8166 * configure.host: Delete host "none-*-*".
8167 * config/none/none.mh: Delete file.
8168 * config/none/none.mt: Delete file.
8169 * config/none/xm-none.h: Delete file.
8170 * config/none/tm-none.h: Delete file.
8171 * config/none/nm-none.h: Delete file.
8172
8173 2004-02-19 Fred Fish <fnf@redhat.com>
8174
8175 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8176 cache->uses_fp prior to setting it.
8177
8178 2004-02-19 Fred Fish <fnf@redhat.com>
8179
8180 Fix for PR breakpoint/1558.
8181 * sh-tdep.c (IS_JSR): New macro.
8182 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8183
8184 2004-02-19 Jim Blandy <jimb@redhat.com>
8185
8186 * findvar.c (value_from_register): Doc fix.
8187
8188 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8189
8190 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8191 type being greater than sizeof of host's LONGEST. Always use
8192 unpack_long() unless format 'f' chosen.
8193
8194 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8195
8196 Committed by Elena Zannoni <ezannoni@redhat.com>
8197
8198 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8199 contains a symbol wich is the best, non-exact match for the given
8200 pc. Update comments.
8201
8202 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8203
8204 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8205 macro, which was part of the now removed Mach 3 port.
8206 * utils.c (request_quit): Ditto.
8207
8208 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8209
8210 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8211 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8212
8213 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8214
8215 Committed by Mark Kettenis <kettenis@gnu.org>.
8216
8217 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8218 Define.
8219
8220 2004-02-18 Andrew Cagney <cagney@redhat.com>
8221
8222 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8223 CONFIG_INSTALL and CONFIG_UNINSTALL.
8224 * configure: Re-generate.
8225 * interps.h (INTERP_TUI): Define.
8226 * Makefile.in: Update dependencies.
8227 (TUI): New macro.
8228 (tui-main.o): Specify dependencies.
8229 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8230 * tui/tui-main.c: New file.
8231
8232 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8233
8234 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8235 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8236 dependencies.
8237 * configure.host: Add x86_64-*-openbsd*.
8238 * configure.tgt: Add x86_64-*-openbsd*.
8239 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8240
8241 * tui/tui.c: Don't include <malloc.h>.
8242
8243 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8244 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8245 amd64nbsd-tdep.c.
8246
8247 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8248 static. Remove extraneous whitespace.
8249 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8250 static.
8251
8252 2004-02-17 Jim Blandy <jimb@redhat.com>
8253
8254 * findvar.c (value_from_register): Doc fix.
8255
8256 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8257
8258 Committed by Jim Blandy <jimb@redhat.com>.
8259
8260 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8261 CORE_ADDR as type for selectors. Correct types for GNU run time
8262 message lookup function to use double indirection.
8263 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8264 * objc-lang.h (lookup_child_selector): Adapt prototype.
8265
8266 * s390-nat.c (SUBOFF): New macro.
8267 (supply_gregset, fill_gregset): Use it to handle debugging
8268 of 32-bit exectuables running under a 64-bit kernel.
8269 * s390-tdep.c: Include "solib-svr4.h".
8270 (s390_svr4_fetch_link_map_offset): New function.
8271 (s390x_svr_fetch_link_map_offset): Likewise.
8272 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8273 * Makefile.in (s390-tdep.o): Update dependencies.
8274
8275 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8276 "frame-unwind.h".
8277 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8278 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8279 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8280 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8281 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8282 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8283 S390_SIGNAL_FRAMESIZE,
8284 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8285 (struct frame_extra_info): Remove.
8286 (s390_memset_extra_info): Remove.
8287 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8288 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8289 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8290 (is_rse): Renamed to ...
8291 (is_rsy): ... this. Support long displacements.
8292 (is_rxe): Renamed to ...
8293 (is_rxy): ... this. Support long displacements.
8294 (compute_x_addr): Support long displacements.
8295 (struct s390_prologue_data): New data type.
8296 (s390_on_stack): Change API to use struct s390_prologue_data.
8297 (s390_store): Reimplement.
8298 (s390_load): New function.
8299 (s390_get_signal_frame_info): Remove.
8300 (s390_get_frame_info): Remove, replace by ...
8301 (s390_analyze_prolog): ... this new function.
8302 (s390_check_function_end): Remove.
8303 (s390_function_start): Remove.
8304 (s390_frameless_function_invokation): Remove.
8305 (s390_is_sigreturn): Remove.
8306 (s390_init_frame_pc_first): Remove.
8307 (s390_init_frame_extra_info): Remove.
8308 (s390_frame_init_saved_regs): Remove.
8309 (s390_frame_saved_pc_nofix): Remove.
8310 (s390_frame_saved_pc): Remove.
8311 (s390_frame_chain): Remove.
8312 (s390_fp_regnum, s390_read_fp): Remove.
8313 (s390_pop_frame_regular, s390_pop_frame): Remove.
8314 (s390_saved_pc_after_call): Remove.
8315 (s390_skip_prologue): Reimplement.
8316 (s390_in_function_epilogue_p): Support long displacements.
8317 (struct s390_unwind_cache): New data structure.
8318 (s390_frame_unwind_cache): New function.
8319 (s390_prologue_frame_unwind_cache): Likewise.
8320 (s390_backchain_frame_unwind_cache): Likewise.
8321 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8322 (s390_frame_unwind): Define.
8323 (s390_frame_sniffer): New function.
8324 (struct s390_pltstub_unwind_cache): New data structure.
8325 (s390_pltstub_frame_unwind_cache): New function.
8326 (s390_pltstub_frame_this_id): Likewise.
8327 (s390_pltstub_frame_prev_register): Likewise.
8328 (s390_pltstub_frame_unwind): Define.
8329 (s390_pltstub_frame_sniffer): New function.
8330 (struct s390_sigtramp_unwind_cache): New data structure.
8331 (s390_sigtramp_frame_unwind_cache): New function.
8332 (s390_sigtramp_frame_this_id): Likewise.
8333 (s390_sigtramp_frame_prev_register): Likewise.
8334 (s390_sigtramp_frame_unwind): Define.
8335 (s390_sigtramp_frame_sniffer): New function.
8336 (s390_frame_base_address, s390_local_base_address): New functions.
8337 (s390_frame_base): Define.
8338 (s390_unwind_pc, s390_unwind_sp): New function.
8339 (s390_push_dummy_call): Use new frame base location.
8340 (s390_unwind_dummy_id): Likewise.
8341 (s390_gdbarch_init): Remove calls to:
8342 set_gdbarch_frameless_function_invocation,
8343 set_gdbarch_deprecated_init_frame_pc,
8344 set_gdbarch_deprecated_frame_chain,
8345 set_gdbarch_deprecated_frame_init_saved_regs,
8346 set_gdbarch_deprecated_pop_frame,
8347 set_gdbarch_deprecated_init_extra_frame_info,
8348 set_gdbarch_deprecated_init_frame_pc_first,
8349 set_gdbarch_deprecated_target_read_fp,
8350 set_gdbarch_deprecated_frame_saved_pc,
8351 set_gdbarch_deprecated_saved_pc_after_call,
8352 set_gdbarch_deprecated_fp_regnum.
8353 Add calls to:
8354 set_gdbarch_in_solib_call_trampoline,
8355 frame_unwind_append_sniffer,
8356 frame_base_set_default,
8357 set_gdbarch_unwind_pc,
8358 set_gdbarch_unwind_sp.
8359 * Makefile.in (s390-tdep.o): Update dependencies.
8360
8361 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8362 (S390_STACK_FRAME_OVERHEAD): Remove.
8363 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8364 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8365 (s390_promote_integer_argument): Remove.
8366 (s390_cannot_extract_struct_value_address): Remove.
8367 (s390_use_struct_convention, s390_store_struct_return): Remove.
8368 (s390_extract_return_value, s390_store_return_value): Remove.
8369 (s390_return_value_convention, s390_return_value): New functions.
8370 (is_float_singleton): Handle typedefs.
8371 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8372 Remove, replace by ...
8373 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8374 s390_function_arg_integer): ... these new functions.
8375 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8376 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8377 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8378 Fill in tdep->abi.
8379 Remove calls to:
8380 set_gdbarch_deprecated_store_struct_return,
8381 set_gdbarch_deprecated_extract_return_value,
8382 set_gdbarch_deprecated_store_return_value,
8383 set_gdbarch_use_struct_convention,
8384 set_gdbarch_extract_struct_value_address,
8385 set_gdbarch_deprecated_pc_in_call_dummy,
8386 set_gdbarch_deprecated_push_arguments,
8387 set_gdbarch_deprecated_save_dummy_frame_tos,
8388 set_gdbarch_deprecated_push_return_address,
8389 set_gdbarch_deprecated_sizeof_call_dummy_words,
8390 set_gdbarch_deprecated_call_dummy_words,
8391 set_gdbarch_deprecated_dummy_write_sp.
8392 Add calls to:
8393 set_gdbarch_push_dummy_call,
8394 set_gdbarch_unwind_dummy_id,
8395 set_gdbarch_return_value.
8396
8397 * config/s390/nm-linux.h: Update comments.
8398 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8399 (STOPPED_BY_WATCHPOINT): Redefine.
8400 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8401 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8402 (s390_stopped_by_watchpoint): Likewise.
8403 (watch_area_cnt): Remove.
8404 * s390-nat.c: Update comments.
8405 (watch_area): Remove typedef.
8406 Global replace watch_area by struct watch_area.
8407 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8408 (s390_stopped_by_watchpoint): Remove pid argument,
8409 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8410 (s390_fix_watch_points): Remove pid argument,
8411 use s390_inferior_tid. Recompute area spanned by watchpoints.
8412 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8413 argument. Reimplement.
8414
8415 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8416 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8417 (FETCH_INFERIOR_REGISTERS): Define.
8418 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8419 core-regset.o.
8420 * config/s390/s390x.mt: Remove.
8421 * config/s390/tm-s390.h: Remove.
8422 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8423 (TARGET_ELF64): Remove.
8424 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8425 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8426 s390*-*-* case; always set gdb_target to s390.
8427 * regformats/reg-s390.dat: Remove control registers.
8428 * regformats/reg-s390x.dat: Likewise.
8429 * s390-tdep.h: New file.
8430 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8431 Include "inferior.h" and "s390-tdep.h".
8432 Remove private definition of offsetof.
8433 (s390_register_u_addr): Remove.
8434 (regmap_gregset, regmap_fpregset): Define.
8435 (supply_gregset, fill_gregset): Reimplement.
8436 (supply_fpregset, fill_fpregset): Likewise.
8437 (s390_inferior_tid): New function.
8438 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8439 (fetch_inferior_registers, store_inferior_registers): Likewise.
8440 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8441 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8442 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8443 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8444 (struct gdbarch_tdep): Define.
8445 (struct s390_register_info): Define.
8446 (s390_register_info): New variable.
8447 (s390_register_name): Reimplement.
8448 (s390_register_type): New function.
8449 (s390_register_raw_size, s390x_register_raw_size): Remove.
8450 (s390_cannot_fetch_register): Remove.
8451 (s390_register_byte): Remove.
8452 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8453 (s390_dwarf_regmap): New variable.
8454 (s390_dwarf_reg_to_regnum): New function.
8455 (s390_stab_reg_to_regnum): Remove.
8456 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8457 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8458 (s390_convert_register_p): Likewise.
8459 (s390_register_to_value, s390_value_to_register): Likewise.
8460 (s390_register_reggroup_p): Likewise.
8461 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8462 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8463 (s390_supply_regset, s390_regset_from_core_section): New functions.
8464 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8465 (S390_FPR_SIZE): Likewise.
8466 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8467 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8468 (S390_NUM_GPRS): Move here from tm-s390.h.
8469 (S390_NUM_FPRS): Likewise.
8470 (s390_in_function_epilogue_p): New function.
8471 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8472 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8473 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8474 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8475 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8476 Remove calls to:
8477 set_gdbarch_deprecated_max_register_raw_size,
8478 set_gdbarch_deprecated_max_register_virtual_size,
8479 set_gdbarch_deprecated_register_byte,
8480 set_gdbarch_cannot_fetch_register,
8481 set_gdbarch_cannot_store_register,
8482 set_gdbarch_deprecated_register_size,
8483 set_gdbarch_deprecated_register_raw_size,
8484 set_gdbarch_deprecated_register_virtual_size,
8485 set_gdbarch_deprecated_register_virtual_type,
8486 set_gdbarch_deprecated_register_bytes.
8487 Add calls to:
8488 set_gdbarch_num_pseudo_regs,
8489 set_gdbarch_register_type,
8490 set_gdbarch_convert_register_p,
8491 set_gdbarch_register_to_value,
8492 set_gdbarch_value_to_register,
8493 set_gdbarch_register_reggroup_p,
8494 set_gdbarch_regset_from_core_section,
8495 set_gdbarch_pseudo_register_read,
8496 set_gdbarch_pseudo_register_write,
8497 set_gdbarch_in_function_epilogue_p.
8498 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8499 (s390_tdep_h): New variable.
8500
8501 2004-02-17 Jim Blandy <jimb@redhat.com>
8502
8503 * findvar.c (value_from_register): If the type has no length, just
8504 return an acceptable value --- don't report an internal error.
8505
8506 * stabsread.c (read_type): If we find any type numbers that are
8507 forward references, complain if the references aren't resolved by
8508 the time we're finished reading.
8509 (cleanup_undefined_types): Make error message more appropriate for
8510 a complaint.
8511
8512 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8513
8514 * Makefile.in (defs_h): Remove dependency on progress_h.
8515 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8516 progress.h.
8517 * main.c (captured_main): Delete use of START_PROGRESS and
8518 END_PROGRESS.
8519
8520 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8521
8522 * objfiles.c (terminate_minimal_symbol_table): Add back
8523 initialization of MSYMBOL_TYPE.
8524
8525 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8526
8527 Committed by Andrew Cagney.
8528 * Makefile.in (ia64_tdep_h): New macro.
8529 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8530 (ia64-tdep.o): Likewise.
8531 * ia64-tdep.h: New file.
8532 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8533 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8534 (ia64_aix_sigcontext_register_address): Likewise.
8535 (ia64_linux_getunwind_table): Delete declaration.
8536 * ia64-linux-tdep.c: Likewise.
8537
8538 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8539
8540 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8541 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8542 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8543
8544 2004-02-17 Andrew Cagney <cagney@redhat.com>
8545
8546 * symtab.c (skip_prologue_using_sal): New function.
8547 * symtab.h (skip_prologue_using_sal): Declare.
8548 * frv-tdep.c: Include "symtab.h".
8549 (skip_prologue_using_sal): Delete function.
8550 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8551 * rs6000-tdep.c (refine_prologue_limit): Mention
8552 skip_prologue_using_sal.
8553 * ia64-tdep.c (refine_prologue_limit): Ditto.
8554 * Makefile.in: Update dependencies.
8555
8556 2004-02-16 Andrew Cagney <cagney@redhat.com>
8557
8558 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8559 START_INFERIOR_TRAPS_EXPECTED.
8560 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8561 START_INFERIOR_TRAPS_EXPECTED.
8562 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8563 Delete macro.
8564 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8565 macro, moved to "nm-osf.h". Update copyright.
8566 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8567 update copyright.
8568
8569 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8570 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8571 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8572 frameless_look_for_prologue.
8573 * frame.h (legacy_frameless_look_for_prologue): Rename
8574 frameless_look_for_prologue.
8575 * gdbarch.h, gdbarch.c: Re-generate.
8576 * sh64-tdep.c (sh64_gdbarch_init): Update.
8577 * sh-tdep.c (sh_gdbarch_init): Update.
8578 * s390-tdep.c (s390_gdbarch_init): Update.
8579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8580 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8581 * m68k-tdep.c (m68k_gdbarch_init): Update.
8582 (delta68_frame_args_address): Update.
8583 * m32r-tdep.c (m32r_gdbarch_init): Update.
8584 * hppa-tdep.c (hppa_gdbarch_init): Update.
8585 * h8300-tdep.c (h8300_gdbarch_init): Update.
8586 * frv-tdep.c (frv_gdbarch_init): Update.
8587 (frv_frameless_function_invocation): Update.
8588 * cris-tdep.c (cris_gdbarch_init): Update.
8589 (cris_frameless_function_invocation): Update.
8590 * avr-tdep.c (avr_gdbarch_init): Update.
8591 * arm-tdep.c (arm_gdbarch_init): Update.
8592 * stack.c (frame_info): Update, call predicate.
8593 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8594 * frame.c (legacy_get_prev_frame): Update, call predicate..
8595 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8596 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8597 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8598 invocation.
8599 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8600 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8601 * vax-tdep.c (vax_gdbarch_init): Ditto.
8602
8603 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8604 function.
8605
8606 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8607
8608 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8609 initializations.
8610
8611 2004-02-16 Andrew Cagney <cagney@redhat.com>
8612
8613 * tui/tui-windata.c: Include "gdb_string.h".
8614 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8615 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8616 * Makefile.in: Update dependencies.
8617
8618 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8619
8620 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8621 * infrun.c: Include "gdb_assert.h".
8622 (singlestep_ptid, saved_singlestep_ptid)
8623 (stepping_past_singlestep_breakpoint): New variables.
8624 (resume): Set singlestep_ptid. Check for singlestep thread
8625 hop.
8626 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8627 (handle_inferior_event): Handle singlestep thread hop.
8628
8629 2004-02-16 Andrew Cagney <cagney@redhat.com>
8630
8631 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8632 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8633 (dwarf2_frame_init_reg): Ditto.
8634
8635 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8636 suggested by Joshua Neuheisel
8637
8638 * configure.in: Always check for curses, including pdcurses.
8639 Warn, instead of error, when no curses are found. Enable TUI when
8640 curses is available.
8641 * configure: Re-generate.
8642
8643 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8644
8645 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8646 sh_sh4_register_convert_to_virtual.
8647 (sh_register_convert_to_raw): Rename from
8648 sh_sh4_register_convert_to_raw.
8649 (sh_pseudo_register_read): Accomodate above name change.
8650 (sh_pseudo_register_write): Ditto.
8651
8652 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8653
8654 * sh-tdep.c (sh_generic_register_name): Remove.
8655 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8656
8657 2004-02-15 Andrew Cagney <cagney@redhat.com>
8658
8659 * configure.in (build_warnings): Add -Wunused-function.
8660 * configure: Re-generate.
8661
8662 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8663 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8664
8665 * procfs.c (procfs_init_inferior): Assume that
8666 START_INFERIOR_TRAPS_EXPECTED is defined.
8667 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8668 * config/ns32k/tm-nbsd.h: Delete file,
8669 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8670
8671 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8672 * config/vax/tm-vax.h: Delete file.
8673
8674 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8675 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8676 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8677 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8678 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8679 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8680 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8681
8682 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8683
8684 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8685 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8686 (struct dwarf2_frame_ops): New.
8687 (dwarf2_frame_default_init_reg): New function, based on
8688 dwarf2_frame_init_reg.
8689 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8690 (dwarf2_frame_init_reg): Call architecture-specific function.
8691 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8692 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8693 instead of dwarf2_frame_data.
8694 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8695 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8696
8697 2004-02-15 Andrew Cagney <cagney@redhat.com>
8698
8699 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8700 register_gdbarch_swap.
8701 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8702 * f-lang.c (_initialize_f_language): Update, use
8703 DEPRECATED_REGISTER_GDBARCH_SWAP.
8704 * remote.c (_initialize_remote): Ditto.
8705 * regcache.c (_initialize_regcache): Ditto.
8706 * parse.c (_initialize_parse): Ditto.
8707 * infrun.c (_initialize_infrun): Ditto.
8708 * mi/mi-main.c (_initialize_mi_main): Ditto.
8709 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8710
8711 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8712 poking .cacheable directly.
8713 * symfile.c (symfile_bfd_open): Ditto.
8714
8715 * Makefile.in: Update all dependencies.
8716
8717 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8718 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8719 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8720 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8721 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8722
8723 2004-02-14 Andrew Cagney <cagney@redhat.com>
8724
8725 * arch-utils.c (legacy_convert_register_p): Check
8726 DEPRECATED_REGISTER_CONVERTIBLE_P.
8727 * findvar.c (value_of_register): Ditto.
8728
8729 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8730 * gdbarch.h, gdbarch.c: Re-generate.
8731 * arch-utils.c (deprecated_register_convertible_not): Delete.
8732 * arch-utils.h (deprecated_register_convertible_not): Delete.
8733 * mi/mi-main.c (get_register): Update. Update copyright.
8734 * infcmd.c (default_print_registers_info): Update.
8735
8736 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8737 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8738 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8739 * gdbarch.h, gdbarch.c: Re-generate.
8740 * frame.c (deprecated_get_next_frame_hack): Delete function.
8741 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8742 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8743 Update.
8744 * infcall.c (call_function_by_hand): Update.
8745
8746 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8747
8748 * symfile.c (init_entry_point_info, entry_point_address): Move
8749 from here...
8750 * objfiles.c (init_entry_point_info, entry_point_address):..to
8751 here.
8752 * symfile.h (init_entry_point_info, entry_point_address): Remove
8753 prototypes.
8754 * objfiles.h (init_entry_point_info, entry_point_address):Add
8755 prototypes.
8756 * cris-tdep.c: Remove include of symfile.h. Add include of
8757 objfiles.h.
8758 * infcall.c: Ditto.
8759 * mcore-tdep.c: Ditto.
8760 * mn10300-tdep.c: Ditto.
8761 * sh64-tdep.c: Ditto.
8762 * v850-tdep.c: Ditto.
8763 * arm-tdep.c: Remove include of symfile.h.
8764 * blockframe.c: Ditto.
8765 * coffread.c: Ditto.
8766 * dbxread.c: Ditto.
8767 * dwarf2read.c: Ditto.
8768 * dwarfread.c: Ditto.
8769 * frv-tdep.c: Ditto.
8770 * ia64-tdep.c: Ditto.
8771 * mdebugread.c: Ditto.
8772 * mipsread.c: Ditto.
8773 * rs6000-tdep.c: Ditto.
8774 * s390-tdep.c: Ditto.
8775 * sh-tdep.c: Ditto.
8776 * xstormy16-tdep.c: Ditto.
8777 * gdbarch.sh: Remove include of symfile.h.
8778 * gdbarch.c: Regenerate.
8779 * solib-irix.c (enable_break): Use entry_point_address().
8780 Add comment about include file.
8781 * xcoffread.c: Add comment about include file.
8782 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8783 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8784 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8785 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8786 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8787
8788 2004-02-13 Andrew Cagney <cagney@redhat.com>
8789
8790 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8791 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8792 copyright.
8793 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8794
8795 2004-02-12 Fred Fish <fnf@redhat.com>
8796
8797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8798 set_gdbarch_store_return_value.
8799
8800 2004-02-12 Andrew Cagney <cagney@redhat.com>
8801
8802 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8803 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8804 (interrupt_query): Ditto.
8805 (ofunc): Delete unused variable.
8806 * cris-tdep.c (cris_abi): Delete unused function.
8807 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8808 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8809 (cris_get_asr_quick_shift_steps): Ditto.
8810 (cris_skip_prologue_frameless_p): Ditto.
8811 * arm-tdep.c (arm_push_return_address): Delete unused function.
8812 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8813 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8814 * s390-tdep.c (s390_function_start): Delete unused function.
8815
8816 2004-02-12 Andrew Cagney <cagney@redhat.com>
8817
8818 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8819 gdbarch.h, gdbarch.c: Re-generate.
8820 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8821 to generic_prologue_frameless_p.
8822 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8823 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8824
8825 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * mips-linux-tdep.c: Include "frame.h".
8828 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8829 (mips_linux_skip_resolver): New functions.
8830 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8831 and set_gdbarch_in_solib_call_trampoline.
8832 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8833 to after set_gdbarch_in_solib_return_trampoline. Only set the
8834 solib hooks to mips16 functions if the OS ABI is unknown.
8835 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8836 including "config/tm-linux.h".
8837 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8838 * Makefile.in (mips-linux-tdep.o): Update.
8839
8840 2004-02-11 David Carlton <carlton@kealia.com>
8841
8842 * linespec.c (decode_compound): Only look for a class symbol when
8843 considering all but the rightmost component.
8844
8845 2004-02-11 Andrew Cagney <cagney@redhat.com>
8846
8847 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8848 abi code are are separatly grouped.
8849
8850 2004-02-11 Andrew Cagney <cagney@redhat.com>
8851
8852 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8853 * gdbarch.h, gdbarch.c: Re-generate.
8854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8855 * v850-tdep.c (v850_gdbarch_init): Update.
8856 * sh64-tdep.c (sh64_gdbarch_init): Update.
8857 * sh-tdep.c (sh_gdbarch_init): Update.
8858 * s390-tdep.c (s390_gdbarch_init): Update.
8859 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8860 * mips-tdep.c (mips_gdbarch_init): Update.
8861 * mcore-tdep.c (mcore_gdbarch_init): Update.
8862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8863 * m32r-tdep.c (m32r_gdbarch_init): Update.
8864 * ia64-tdep.c (ia64_gdbarch_init): Update.
8865 * hppa-tdep.c (hppa_gdbarch_init): Update.
8866 * h8300-tdep.c (h8300_gdbarch_init): Update.
8867 * frv-tdep.c (frv_gdbarch_init): Update.
8868 * d10v-tdep.c (d10v_gdbarch_init): Update.
8869 * cris-tdep.c (cris_gdbarch_init): Update.
8870 * avr-tdep.c (avr_gdbarch_init): Update.
8871 * arm-tdep.c (arm_gdbarch_init): Update.
8872 * alpha-tdep.c (alpha_gdbarch_init): Update.
8873
8874 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8875
8876 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8877 comma.
8878 (sh_sh4al_dsp_register_name): Ditto.
8879
8880 2004-02-10 Andrew Cagney <cagney@redhat.com>
8881
8882 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8883 (mips_init_frame_pc_first): Delete function.
8884 (mips_frame_saved_pc): Delete function.
8885 (mips_frame_chain): Delete function.
8886 (mips_init_extra_frame_info): Delete function.
8887 (mips_xfer_register): Delete unused variable "reg".
8888 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8889 (mips_n32n64_return_value): Delete unused variable "reg".
8890 (mips_n32n64_return_value): Delete unused variable "pos".
8891 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8892 (mips_o32_return_value): Delete unused variable "pos".
8893 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8894 (mips_print_fp_register): Delete unused variable "namelen"
8895 (mips_print_fp_register): Delete unused variable "flt2"
8896 (get_frame_pointer): Delete function.
8897 (cached_proc_desc): Delete static variable.
8898 (mips_pop_frame): Delete function.
8899 (mips_find_saved_regs): Delete function.
8900 (mips_get_saved_register): Delete function.
8901 (mips_saved_pc_after_call): Delete function.
8902 (SIGFRAME_BASE): Delete macro.
8903 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8904 (SIGFRAME_PC_OFF): Delete macro.
8905 (SIGFRAME_REGSAVE_OFF): Delete macro.
8906 (mips_dump_tdep): Do not print deleted macro definitions.
8907
8908 2004-02-10 Andrew Cagney <cagney@redhat.com>
8909
8910 * Makefile.in (SFILES): Remove explictly listed tui files.
8911 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8912
8913 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8914
8915 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8916 to use paddr functions to format ia64 addresses and long values.
8917 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8918 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8919 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8920 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8921 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8922
8923 2004-02-10 Andrew Cagney <cagney@redhat.com>
8924
8925 * defs.h: Do not include "tui.h".
8926 * gdb_curses.h: New file.
8927 * tui/tui-hooks.h: New file.
8928 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8929 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8930 (tui_initialize_io): Delete declaration.
8931 (tui_initialize_readline: Delete redundant declaration.
8932 (struct tui_point): Delete definition.
8933 * tui/tui-data.h (struct tui_point): Define.
8934 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8935 * utils.c: Include "tui/tui.h".
8936 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8937 * printcmd.c [TUI]: Include "tui/tui.h".
8938 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8939 * tui/tui-command.c: Include "gdb_curses.h".
8940 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8941 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8942 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8943 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8944 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8945 * Makefile.in: Update all dependencies.
8946 (tui_hooks_h, gdb_curses_h): Define.
8947 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8948
8949 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8950
8951 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8952 auxf2. Add comments about some other rarely used fields.
8953
8954 2004-02-10 Andrew Cagney <cagney@redhat.com>
8955
8956 * Makefile.in (init.c): Fix script removing duplicates. Problem
8957 reported by Peter Schauer.
8958
8959 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8960
8961 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8962 obstack_specify_allocation.
8963 * objfiles.c (allocate_objfile): Ditto.
8964 * solib-sunos.c (solib_add_common_symbols)
8965 (allocate_rt_common_objfile): Ditto.
8966 * symfile.c (reread_symbols): Ditto.
8967 * gdb_obstack.h: Add comment.
8968
8969 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8970
8971 * linespec.c (decode_line_1, locate_first_half)
8972 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8973 commented out code.
8974
8975 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8978 obstack_free.
8979
8980 2004-02-09 Andrew Cagney <cagney@redhat.com>
8981
8982 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8983 fails, try find_pc_section. Fix PR c++/1267.
8984 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8985 instead of find_pc_mapped_section.
8986 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8987 not default to the section containing PC. Fix PR symtab/1519.
8988
8989 2004-02-09 Andrew Cagney <cagney@redhat.com>
8990
8991 * Makefile.in (mips-tdep.o): Update dependencies.
8992 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8993 "trad-frame.h".
8994 (mips_unwind_pc): Return the pseudo PC register.
8995 (mips_unwind_dummy_id): New function.
8996 (mips16_fetch_instruction): New function.
8997 (mips32_fetch_instruction): New function.
8998 (struct mips_frame_cache): Define.
8999 (mips_mdebug_frame_cache): New function.
9000 (mips_mdebug_frame_this_id): New function.
9001 (mips_mdebug_frame_prev_register): New function.
9002 (mips_mdebug_frame_unwind): Define.
9003 (mips_mdebug_frame_sniffer): New function.
9004 (mips_mdebug_frame_base_address): New function.
9005 (mips_mdebug_frame_base): Define.
9006 (mips_mdebug_frame_base_sniffer): New function.
9007 (mips_gdbarch_init): Append unwind and base sniffers. Set
9008 unwind_dummy_id.
9009
9010 2004-02-08 Andrew Cagney <cagney@redhat.com>
9011
9012 * frame.c: Print both the register number and name.
9013
9014 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9015 and a sed into a single sed. Make .c and .o patterns more robust.
9016 (OBS): Delete.
9017 (INIT_FILES): Replace OBS with COMMON_OBS.
9018 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9019
9020 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9021
9022 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9023 the PT_WCOOKIE request.
9024
9025 2004-02-08 Andrew Cagney <cagney@redhat.com>
9026
9027 * mips-tdep.c (mips_unwind_pc): New function.
9028 (mips_gdbarch_init): Set mips_unwind_pc.
9029
9030 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9031 (get_frame_id): Allow the UNKNOWN_FRAME.
9032 (frame_register_unwind, get_frame_type): Ditto.
9033
9034 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9035 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9036 unwind_dummy_id indicates a legacy frame.
9037
9038 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9039 * configure: Re-generate.
9040
9041 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9042 methods.
9043
9044 2004-02-08 Andrew Cagney <cagney@redhat.com>
9045
9046 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9047 makefile macro.
9048 * configure: Re-generate.
9049 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9050 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9051 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9052 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9053 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9054 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9055 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9056 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9057 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9058 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9059
9060 2004-02-07 Andrew Cagney <cagney@redhat.com>
9061
9062 * Makefile.in: Update all dependencies.
9063
9064 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9065 * configure: Re-generate.
9066 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9067 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9068 (COMMON_OBS): Add "main.o" and "annotate.o".
9069 (ANNOTATE_OBS): Delete.
9070 (OBS): Remove ANNOTATE_OBS.
9071 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9072 CONFIG_INITS.
9073 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9074 against CONFIG_OBS and "main.o".
9075 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9076 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9077
9078 * tui/tui-command.c: Include "gdb_string.h", delete register
9079 attribute, use ISO-C function signatures.
9080 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9081 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9082 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9083 * tui/tui.c: Ditto.
9084
9085 * tui/tui-command.c: Change variable and function names to lower
9086 case.
9087 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9088 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9089 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9090 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9091 * tui/tui-winsource.c, tui/tui.c: Ditto.
9092
9093 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9094
9095 * buildsym.c (free_pending_blocks, finish_block)
9096 (record_pending_block, make_blockvector, end_symtab): Replace
9097 symbol_obstack with objfile_obstack.
9098 * coffread.c (process_coff_symbol, coff_read_struct_type)
9099 (coff_read_enum_type): Ditto.
9100 * cp-namespace.c (initialize_namespace_symtab)
9101 (check_one_possible_namespace_symbol): Ditto.
9102 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9103 (dwarf2_symbol_mark_computed): Ditto.
9104 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9105 * elfread.c (elf_symtab_read): Ditto.
9106 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9107 (hpread_read_enum_type, hpread_read_function_type)
9108 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9109 Ditto.
9110 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9111 (java_link_class_type): Ditto.
9112 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9113 (new_symbol): Ditto.
9114 * minsyms.c (install_minimal_symbols): Ditto.
9115 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9116 (terminate_minimal_symbol_table): Replace symbol_obstack with
9117 objfile_obstack.
9118 (free_objfile): Remove freeing of symbol_obstack.
9119 * objfiles.h: Remove symbol_obstack field.
9120 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9121 objfile_obstack.
9122 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9123 symbol_obstack.
9124 (solib_add_common_symbols): Replace symbol_obstack with
9125 objfile_obstack.
9126 * somsolib.c (som_solib_add): Ditto.
9127 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9128 (common_block_start, common_block_end): Ditto.
9129 * symfile.c (reread_symbols): Remove freeing and init of
9130 symbol_obstack.
9131 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9132 * symfile.h: Update comment.
9133 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9134 stats printing.
9135 * symtab.c (symbol_set_names): Replace symbol_obstack with
9136 objfile_obstack.
9137 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9138 Update comments.
9139 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9140 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9141 objfile_obstack.
9142
9143 2004-02-07 Andrew Cagney <cagney@redhat.com>
9144
9145 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9146 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9147 fields and variables.
9148 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9149 (m_beInvisible): Delete macro.
9150 * tui/tui-data.h: Fix case case fields and variables.
9151 (m_genWinPtrIsNull): Delete macro.
9152 (tui_win_list): Rename winList.
9153 (TUI_SRC_WIN): Rename srcWin.
9154 (TUI_DISASM_WIN): Rename disassemWin.
9155 (TUI_DATA_WIN): Rename dataWin.
9156 (TUI_CMD_WIN): Rename cmdWin.
9157 (m_genWinPtrNotNull): Delete macro.
9158 (m_winPtrIsNull): Delete macro.
9159 (m_winPtrNotNull): Delete macro.
9160 (tui_win_is_source_type): Replace m_winIsSourceType
9161 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9162 (tui_win_has_locator): Replace m_hasLocator.
9163 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9164 m_setWinHighlightOff.
9165 * tui/tui-data.c: Update references.
9166 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9167 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9168 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9169 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9170 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9171 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9172 * tui/tui-winsource.c, tui/tui.c: Ditto.
9173
9174 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9175
9176 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9177 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9178 StackGhost.
9179
9180 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9181 variable `i6' to `i7'.
9182 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9183
9184 2004-02-07 Andrew Cagney <cagney@redhat.com>
9185
9186 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9187 (TuiPoint, TuiPointPtr): Ditto.
9188 (TuiStatus, TuiStatusPtr): Ditto.
9189 (TuiWinType, TuiWinTypePtr): Ditto.
9190 (struct tui_point): Rename _TuiPoint.
9191 (tui_get_low_disassembly_address): Rename
9192 tuiGetLowDisassemblyAddress.
9193 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9194 (tuiFree): Delete declaration.
9195 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9196 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9197 * tui/tui.c (tuiFree): Delete function.
9198 * cli/cli-cmds.c (disassemble_command): Update references.
9199 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9200 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9201 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9202 * tui/tui-winsource.c: Ditto.
9203
9204 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9205
9206 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9207 coffstab_build_psymtabs, elfstab_build_psymtabs)
9208 (stabsect_build_psymtabs): Replace psymbol_obstack with
9209 objfile_obstack.
9210 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9211 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9212 Ditto.
9213 * dwarfread.c (scan_compilation_units): Ditto.
9214 * elfread.c (elfstab_offset_sections): Ditto.
9215 * hppa-tdep.c (read_unwind_info): Ditto.
9216 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9217 (hpread_end_psymtab): Ditto.
9218 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9219 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9220 Ditto.
9221 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9222 * objfiles.c (add_to_objfile_sections)
9223 (build_objfile_section_table): Ditto.
9224 (allocate_objfile): Remove init of psymbol_obstack.
9225 (free_objfile): Remove freeing of psymbol_obstack.
9226 * objfiles.h (struct objfile): Remove field
9227 psymbol_obstack. Update comments.
9228 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9229 psymbol_obstack with objfile_obstack.
9230 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9231 psymbol_obstack.
9232 * somread.c (som_symfile_offsets, init_import_symbols)
9233 (init_export_symbols): Replace psymbol_obstack with
9234 objfile_obstack.
9235 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9236 * symfile.c (default_symfile_offsets, syms_from_objfile)
9237 (reread_symbols): Remove freeing and init of psymbol_obstack.
9238 (cashier_psymtab): Update comment.
9239 * symmisc.c (print_objfile_statistics): Don't report stats for
9240 psymbol obstack.
9241 * symtab.h (struct general_symbol_info, struct partial_symtab):
9242 Update comments.
9243 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9244 (xcoff_symfile_offsets): Replace psymbol_obstack with
9245 objfile_obstack.
9246
9247 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9248
9249 * objfiles.h (struct objfile): Add objfile_obstack field.
9250 Remove type_obstack field.
9251
9252 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9253 read_structure_scope read_enumeration, new_symbol): Replace
9254 type_obstack with objfile_obstack.
9255 * dwarfread.c (struct_type, enum_type): Ditto.
9256 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9257 (lookup_fundamental_type): Ditto.
9258 * gdbtypes.h (TYPE_ALLOC): Ditto.
9259 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9260 (hpread_read_doc_function_type, hpread_read_struct_type)
9261 (fix_static_member_physnames, hpread_read_array_type)
9262 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9263 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9264 (java_link_class_type): Ditto.
9265 * mdebugread.c (parse_type): Ditto.
9266 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9267 * solib-sunos.c (solib_add_common_symbols): Ditto.
9268 * stabsread.c (define_symbol, read_type, read_member_functions,
9269 read_cpp_abbrev, read_one_struct_field): Ditto.
9270 * symfile.c (reread_symbols): Ditto.
9271 * symmisc.c (print_objfile_statistics): Ditto.
9272
9273 2004-02-07 Andrew Cagney <cagney@redhat.com>
9274
9275 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9276 (tui_exec_info_content): Rename TuiExecInfoContent.
9277 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9278 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9279 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9280 (TuiList, TuiListPtr): Ditto.
9281 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9282 (TuiDataType, TuiDataTypePtr): Ditto.
9283 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9284 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9285 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9286 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9287 (TuiDataElement, TuiDataElementPtr): Ditto.
9288 (TuiWinElement, TuiWinElementPtr): Ditto.
9289 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9290 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9291 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9292 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9293 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9294 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9295 * tui/tui-command.c, tui/tui-data.c: Update references.
9296 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9297 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9298 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9299 * tui/tui-winsource.c, tui/tui.c: Ditto.
9300
9301 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9302
9303 * dwarf2-frame.h: Update copyright.
9304 (enum dwarf2_frame_reg_rule): New.
9305 (struct dwarf2_frame_state_reg): New.
9306 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9307 * dwarf2-frame.c: Update copyright.
9308 (enum dwarf2_reg_rule): Remove.
9309 (struct dwarf2_frame_state): Remove defenition of `struct
9310 dwarf2_frame_state_reg'.
9311 (read_reg): Call get_frame_arch to get the architecture instead of
9312 using CURRENT_GDBARCH.
9313 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9314 DWARF2_FRAME_.
9315 (dwarf2_frame_init_reg): New function.
9316 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9317 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9318 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9319 tags with DWARF2_FRAME_.
9320 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9321 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9322 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9323
9324 2004-02-06 Andrew Cagney <cagney@redhat.com>
9325
9326 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9327 (enum tui_data_type): Rename _TuiDataType.
9328 (struct tui_layout_def): Rename _TuiLayoutDef.
9329 (struct tui_source_element): Rename _TuiSourceElement.
9330 (struct tui_data_element): Rename _TuiDataElement.
9331 (struct tui_command_element): Rename _TuiCommandElement.
9332 (struct tui_locator_element): Rename _TuiLocatorElement.
9333 (union tui_which_element): Define.
9334 (struct tui_win_element): Rename _TuiWinElement.
9335 (struct tui_data_info): Rename _TuiDataInfo.
9336 (struct tui_source_info): Rename _TuiSourceInfo.
9337 (struct tui_command_info): Rename _TuiCommandInfo.
9338 (tui_initialize_static_data): Rename initializeStaticData.
9339 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9340 (tui_alloc_win_info): Rename allocWinInfo.
9341 (tui_init_generic_part): Rename initGenericPart.
9342 (tui_init_win_info): Rename initWinInfo.
9343 (tui_alloc_content): Rename allocContent.
9344 (tui_add_content_elements): Rename addContentElements.
9345 (tui_init_content_element): Rename initContentElement.
9346 (tui_free_window): Rename freeWindow.
9347 (tui_free_win_content): Rename freeWinContent.
9348 (tui_free_data_content): Rename freeDataContent.
9349 (tui_free_all_source_wins_content): Rename
9350 freeAllSourceWinsContent.
9351 (tui_del_window): Rename tuiDelWindow.
9352 (tui_del_data_windows): Rename tuiDelDataWindows.
9353 (tui_partial_win_by_name): Rename partialWinByName.
9354 (tui_win_name): Rename winName.
9355 (tui_current_layout): Rename currentLayout.
9356 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9357 (tui_term_height): Rename termHeight.
9358 (tui_set_term_height_to): Rename setTermHeightTo.
9359 (tui_term_width): Rename termWidth.
9360 (tui_set_term_width_to): Rename setTermWidthTo.
9361 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9362 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9363 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9364 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9365 (tui_source_windows): Rename sourceWindows.
9366 (tui_clear_source_windows): Rename clearSourceWindows.
9367 (tui_clear_source_windows_detail): Rename
9368 clearSourceWindowsDetail.
9369 (tui_clear_win_detail): Rename clearWinDetail.
9370 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9371 (tui_default_tab_len): Rename tuiDefaultTabLen.
9372 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9373 (tui_win_with_focus): Rename tuiWinWithFocus.
9374 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9375 (tui_layout_def): Rename tuiLayoutDef.
9376 (tui_win_resized): Rename tuiWinResized.
9377 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9378 (tui_next_win): Rename tuiNextWin.
9379 (tui_prev_win): Rename tuiPrevWin.
9380 (tui_add_to_source_windows): Rename addToSourceWindows.
9381 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9382 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9383 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9384 * tui/tui.c, tui/tui-data.c: Ditto.
9385 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9386 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9387
9388 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9389 (struct symtab): Declare.
9390 (tui_set_source_content): Rename tuiSetSourceContent.
9391 (tui_show_symtab_source): Rename tuiShowSource.
9392 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9393 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9394 * tui/tui-source.c: Update copyright. Update references.
9395 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9396 * tui/tui-stack.c: Update references.
9397
9398 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9399 (struct tui_win_info): Declare.
9400 (tui_scroll_forward): Rename tuiScrollForward.
9401 (tui_scroll_backward): Rename tuiScrollBackward.
9402 (tui_scroll_left): Rename tuiScrollLeft.
9403 (tui_scroll_right): Rename tuiScrollRight.
9404 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9405 (tui_resize_all): Rename tuiResizeAll.
9406 (tui_refresh_all_win): Rename tuiRefreshAll.
9407 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9408 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9409 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9410 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9411
9412 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9413 (tui_erase_data_content): Rename tuiEraseDataContent.
9414 (tui_display_all_data): Rename tuiDisplayAllData.
9415 (tui_check_data_values): Rename tuiCheckDataValues.
9416 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9417 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9418 (tui_first_data_element_no_in_line): Rename
9419 tuiFirstDataElementNoInLine.
9420 (tui_delete_data_content_windows): Rename
9421 tuiDeleteDataContentWindows.
9422 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9423 (tui_display_data_from): Rename tuiDisplayDataFrom.
9424 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9425 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9426 * tui/tui-win.c, tui/tui-regs.c: Update references.
9427 * tui/tui-layout.c, tui/tui.c: Update references.
9428
9429 * tui/tui-wingeneral.h: Update copyright.
9430 (m_allBeVisible): Delete macro.
9431 (m_allBeInvisible): Delete macro.
9432 (struct tui_gen_win_info): Declare.
9433 (struct tui_win_info): Declare.
9434 (tui_unhighlight_win): Rename unhighlightWin.
9435 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9436 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9437 (tui_make_window): Rename makeWindow.
9438 (tui_copy_win): Rename copyWin.
9439 (tui_box_win): Rename boxWin.
9440 (tui_highlight_win): Rename highlightWin.
9441 (tui_check_and_display_highlight_if_needed): Rename
9442 checkAndDisplayHighlightIfNeeded.
9443 (tui_refresh_all): Rename refreshAll.
9444 (tui_delete_win): Rename tuiDelwin.
9445 (tui_refresh_win): Rename tuiRefreshWin.
9446 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9447 (tui_make_visible, tui_make_invisible): New functions.
9448 (tui_make_all_visible, tui_make_all_invisible): New functions.
9449 (make_all_visible): Rename makeAllVisible.
9450 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9451 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9452 * tui/tui-windata.c, tui/tui-win.c: Update references.
9453 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9454 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9455
9456 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9457
9458 * proc-api.c (write_with_trace): Initialize local variable to
9459 silence compiler warning.
9460
9461 2004-02-06 Andrew Cagney <cagney@redhat.com>
9462
9463 * tui/tui-source.h: Do not include "defs.h".
9464 (struct tui_win_info): Declare.
9465 (tui_set_source_content_nil): Declare.
9466 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9467 (union tui_line_or_address): Rename _TuiLineOrAddress.
9468 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9469 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9470 (tui_update_source_window_as_is): Rename
9471 tuiUpdateSourceWindowAsIs.
9472 (tui_update_source_windows_with_addr): Rename
9473 tuiUpdateSourceWindowsWithAddr.
9474 (tui_update_source_windows_with_line): Rename
9475 tuiUpdateSourceWindowsWithLine.
9476 (tui_clear_source_content): Rename tuiClearSourceContent.
9477 (tui_erase_source_content): Rename tuiEraseSourceContent.
9478 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9479 (tui_show_source_content): Rename tuiShowSourceContent.
9480 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9481 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9482 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9483 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9484 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9485 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9486 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9487 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9488 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9489 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9490 (struct tui_win_info): Declare.
9491 * tui/tui-stack.c: Update references.
9492 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9493 * tui/tui-win.c, tui/tui-source.c: Ditto.
9494 * tui/tui.c, tui/tui-disasm.c: Ditto.
9495
9496 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9497
9498 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9499 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9500
9501 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9502
9503 * infrun.c (handle_inferior_event): Allow for breakpoint
9504 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9505 and SIGEMT. Update comments.
9506 * NEWS (Revised SPARC target): Mention support for non-executable
9507 stack.
9508
9509 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9510
9511 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9512 * inftarg.c: Update copyright year.
9513 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9514 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9515 (sparc_xfer_wcookie): New function.
9516 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9517 * Makefile.in (sparc-nat.o): Update dependencies.
9518 * config/sparc/nm-nbsd.h: Include "target.h".
9519 (NATIVE_XFER_WCOOKIE): New define.
9520 (sparc_xfer_wcookie): New prototype.
9521
9522 2004-02-04 Andrew Cagney <cagney@redhat.com>
9523
9524 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9525 SYSCALL_TRAP function.
9526 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9527
9528 2004-02-04 Andrew Cagney <cagney@redhat.com>
9529 Daniel Jacobowitz <drow@mvista.com>
9530
9531 * objfiles.h: Delete comments refering to inside_entry_func and
9532 DEPRECATED_FRAME_CHAIN_VALID.
9533 * defs.h (inside_entry_func): Update prototype..
9534 * blockframe.c (inside_entry_func): Rename to
9535 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9536 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9537
9538 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9539
9540 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9541 outside of #ifdef SOLIB_ADD region.
9542 (do_restore_lang_radix_cleanup): Ditto.
9543 (resolve_pending_breakpoint): Ditto.
9544
9545 2004-02-03 Andrew Cagney <cagney@redhat.com>
9546
9547 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9548 (process_note_abi_tag_sections): Delete unused function.
9549 (ia64_read_fp): Delete unused function.
9550 (gdbarch_extract_struct_value_address): Delete declaration.
9551
9552 2004-02-02 Andrew Cagney <cagney@redhat.com>
9553
9554 * vax-tdep.c (vax_frame_chain): Delete call to
9555 deprecated_inside_entry_file.
9556 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9557
9558 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9559
9560 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9561 column that's "empty" or "same value" when eliminating REG_RA
9562 rules.
9563
9564 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9565
9566 * NEWS: Add information about new pending breakpoint support.
9567
9568 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9569
9570 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9571 and pending fields for pending breakpoint support.
9572 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9573 (condition_command): Only parse condition if not a pending
9574 breakpoint.
9575 (print_one_breakpoint): Add support for pending breakpoints.
9576 (describe_other_breakpoints): Add checks to verify we are not
9577 dealing with pending breakpoints.
9578 (check_duplicates): Don't check pending breakpoints.
9579 (set_raw_breakpoint): Initialize pending flag.
9580 (do_restore_lang_radix_cleanup): New cleanup routine.
9581 (resolve_pending_breakpoint): New function.
9582 (re_enable_breakpoints_in_shlibs): Try and resolve any
9583 pending breakpoints via resolve_pending_breakpoint.
9584 (mention): Add pending breakpoint support.
9585 (parse_breakpoint_sals): Add new parameter to pass to
9586 decode_line_1 to indicate silent errors when files or functions
9587 are not found. Change all callers.
9588 (do_captured_parse_breakpoint): New function.
9589 (break_command_1): Change prototype to return an rc value and to
9590 take an optional pending breakpoint pointer. Support creating
9591 a pending breakpoint if a "not found" form of error occurs when
9592 parsing the breakpoint. Also support resolving an existing pending
9593 breakpoint and be silent if the resolution fails.
9594 (create_breakpoints): Change prototype to take pending breakpoint
9595 pointer. When resolving a pending breakpoint, use the new pointer
9596 to provide a conditional or commands added by the end-user.
9597 (delete_breakpoint): Add appropriate check for pending.
9598 (breakpoint_re_set_one): Ditto.
9599 (do_enable_breakpoint): Ditto.
9600
9601 2004-02-02 David Carlton <carlton@kealia.com>
9602
9603 * valops.c (enum oload_classification): New.
9604 (find_overload_match): Break implementation into separate
9605 functions; delete #if 0'd code; look for symbols within
9606 namespaces.
9607 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9608 (find_oload_champ,oload_method_static,classify_oload_match): New.
9609 * cp-support.h: Add declaration for cp_func_name; update
9610 declaration for make_symbol_overload_list.
9611 * cp-support.c (cp_func_name): New.
9612 (overload_list_add_symbol): Fix comment, use
9613 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9614 (make_symbol_overload_list): Take a function name and a namespace
9615 instead of a symbol; change implementation.
9616 (make_symbol_overload_list_using): New.
9617 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9618
9619 2004-02-02 Fred Fish <fnf@redhat.com>
9620
9621 * main.c (gdb_stdtarg): Move definition to group with other
9622 gdb_stdtarg definitions and update copyright years.
9623 * remote-sim.c (gdb_os_write_stderr): Write output to
9624 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9625 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9626 gdb_stderr stream and update copyright years.
9627
9628 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9629
9630 * Makefile.in (mips-linux-nat.o): Update dependencies.
9631 * mips-linux-nat.c: Include mips-tdep.h.
9632
9633 2004-02-01 Roland McGrath <roland@redhat.com>
9634
9635 * sol-thread.c (sol_thread_xfer_partial): New function.
9636 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9637 (init_sol_core_ops): Likewise.
9638
9639 * procfs.c (procfs_xfer_partial): New function.
9640 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9641 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9642
9643 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9644 procfs_xfer_auxv function.
9645
9646 * procfs.c (procfs_make_note_section): If we can read
9647 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9648 * linux-proc.c (linux_make_note_section): Likewise.
9649
9650 * auxv.h: New file.
9651 * auxv.c: New file.
9652 * Makefile.in (auxv_h): New variable.
9653 (COMMON_OBS): Add auxv.o here.
9654 (auxv.o): New target.
9655
9656 * corelow.c (core_xfer_partial): New function.
9657 (init_core_ops): Use it for core_ops.to_xfer_partial.
9658
9659 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9660 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9661 macro if that is defined.
9662
9663 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9664
9665 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9666 and check the specified thread for each breakpoint.
9667 * breakpoint.h (bpstat_stop_status): Update prototype.
9668 * infrun.c (handle_inferior_event): Update calls to
9669 bpstat_stop_status.
9670
9671 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * Makefile.in (cli-cmds.o): Add $(readline_h).
9674
9675 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * cli/cli-cmds.c: Include readline.h.
9678 (complete_command): Pass the start of the last word to
9679 complete_line.
9680
9681 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9682
9683 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9684 argument, and change first argument to a CORE_ADDR.
9685 * breakpoint.h (bpstat_stop_status): Update prototype.
9686 * infrun.c (adjust_pc_after_break): Add a new comment.
9687 (handle_inferior_event): Update calls to bpstat_stop_status.
9688
9689 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * breakpoint.h: Update copyright years.
9692
9693 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9694
9695 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9696 (bpstat_stop_status): Don't decrement PC.
9697 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9698 prototype.
9699 * infrun.c (adjust_pc_after_break): New function.
9700 (handle_inferior_event): Call it, early. Remove later references
9701 to DECR_PC_AFTER_BREAK.
9702 (normal_stop): Add commentary.
9703
9704 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9707 2004-01-27 double-free fix.
9708
9709 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9710
9711 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9712 (sparc32_frame_prev_register): Handle StackGhost.
9713 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9714
9715 2004-01-29 Roland McGrath <roland@redhat.com>
9716
9717 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9718 * configure: Regenerated.
9719
9720 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9721 * Makefile.in (procfs.o): Add dep.
9722
9723 2004-01-28 Andrew Cagney <cagney@redhat.com>
9724
9725 * tui/tui-stack.h: Update copyright.
9726 (struct frame_info): Add opaque declaration.
9727 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9728 (tui_show_locator_content): Rename tuiShowLocatorContent.
9729 (tui_show_frame_info): Rename tuiShowFrameInfo.
9730 * tui/tui-stack.c: Update copyright. Update references.
9731 * tui/tui-winsource.c: Update references.
9732 * tui/tui-win.c: Update references.
9733 * tui/tui-layout.c: Update references.
9734 * tui/tui-hooks.c: Update copyright, update references.
9735 * tui/tui.c: Update copyright, update references.
9736 * tui/tui-disasm.c: Update references.
9737
9738 2004-01-28 David Carlton <carlton@kealia.com>
9739
9740 * dwarf2read.c (add_partial_structure): Use demangled name if
9741 namespace equals "".
9742
9743 2004-01-27 Jim Blandy <jimb@redhat.com>
9744
9745 Clean up misapplied patch:
9746 * dwarf2read.c (determine_prefix): Change one of the two forward
9747 declarations for 'determine_prefix_aux' to a declaration for this.
9748 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9749 argument to 'die_specification'.
9750
9751 * dwarf2read.c (read_func_scope): Re-indent comment.
9752
9753 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9754
9755 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9756 b->exp to NULL after freeing so that error during re-parsing or
9757 evaluation of expressions associated with breakpoint don't
9758 eventually lead to re-freeing of storage.
9759 Committed by Andrew Cagney.
9760
9761 2004-01-27 Andrew Cagney <cagney@redhat.com>
9762
9763 * source.c (ambiguous_line_spec): Delete undefined declaration.
9764 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9765 (m32r_set_server_address, m32r_set_download_path): Ditto.
9766 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9767
9768 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9769
9770 * dwarf2read.c: Update calls to changed and renamed functions, and
9771 references to moved variables.
9772
9773 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9774 language, language_defn, list_in_scope, and ftypes members.
9775 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9776 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9777 (baseaddr): Remove globals.
9778
9779 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9780 (set_cu_language, die_is_declaration, die_specification)
9781 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9782 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9783 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9784 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9785
9786 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9787 cu.list_in_scope. Don't initialize cu_header_offset.
9788 (add_partial_symbol): Add local baseaddr.
9789 (psymtab_to_symtab_1): Add local baseaddr. Use
9790 objfile->section_offsets for consistency. Don't initialize
9791 cu_header_offset; do initialize cu.header.offset and
9792 cu.list_in_scope.
9793 (read_file_scope, read_func_scope, read_lexical_block_scope)
9794 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9795
9796 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9797
9798 * PROBLEMS: Add gdb/1516.
9799
9800 2003-12-29 Robert Millan <robertmh@gnu.org>
9801
9802 Patch committed by Andrw Cagney.
9803 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9804 * configure.tgt: Match knetbsd*-gnu.
9805
9806 2004-01-26 Andrew Cagney <cagney@redhat.com>
9807
9808 * breakpoint.c (catch_command_1): Delete #ifdef code.
9809 (catch_fork_command_1): Delete #ifdef wrapper.
9810 (catch_exec_command_1): Ditto.
9811 (catch_load_command_1): Ditto.
9812 (catch_unload_command_1): Ditto.
9813
9814 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9815 (catch_breakpoint): Delete #if0ed function.
9816 (disable_catch_breakpoint): Ditto.
9817 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9818 (disable_catch, enable_catch, delete_catch): Ditto.
9819
9820 2004-01-26 Andrew Cagney <cagney@redhat.com>
9821
9822 * remote.c (echo_check, quit_flag): Delete variables.
9823 (cisco_kernel_mode): Delete variable.
9824 (minitelnet_return, tty_input, escape_count): Delete variables.
9825 (remote_cisco_mode): Delete variable.
9826 (remote_cisco_open, remote_cisco_close): Delete function.
9827 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9828 (init_remote_cisco_ops): Delete function.
9829 (_initialize_remote): Do not install "remote cisco" code.
9830 (read_frame): Delete cisco specific code.
9831 (remote_info_process): Delete function.
9832 (remote_wait): Delete cisco specific code.
9833 (remote_cisco_section_offsets): Delete function.
9834 (remote_cisco_objfile_relocate): Delete function.
9835 (remote_async_wait): Delete cisco specific code.
9836 (minitelnet, readtty, readsocket): Delete function.
9837
9838 2004-01-26 Andrew Cagney <cagney@redhat.com>
9839
9840 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9841 comments mentioning extract_returned_value_address.
9842 * infcmd.c (print_return_value): Update. Add comments on
9843 extract_returned_value_address.
9844 * stack.c (return_command): Add comments on
9845 extract_returned_value_address.
9846 * values.c: Update comment.
9847 * m32r-tdep.c: Update comment.
9848 * sparc-tdep.c: Update comment.
9849 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9851 * sh64-tdep.c (sh64_gdbarch_init): Update.
9852 * sh-tdep.c (sh_gdbarch_init): Update.
9853 * s390-tdep.c (s390_gdbarch_init): Update.
9854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9855 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9856 * m68k-tdep.c (m68k_gdbarch_init): Update.
9857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9858 * m32r-tdep.c (m32r_gdbarch_init): Update.
9859 * ia64-tdep.c (ia64_gdbarch_init): Update.
9860 * h8300-tdep.c (h8300_gdbarch_init): Update.
9861 * frv-tdep.c (frv_gdbarch_init): Update.
9862 * arm-tdep.c (arm_gdbarch_init): Update.
9863 * alpha-tdep.c (alpha_gdbarch_init): Update.
9864
9865 2004-01-26 Andrew Cagney <cagney@redhat.com>
9866
9867 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9868 SYMBOL_LOCATION_FUNCS
9869 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9870 "struct symbol_ops".
9871 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9872 type to "struct symbol_ops".
9873 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9874 (struct symbol): Replace ".aux_value.loc.funcs" and
9875 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9876 (SYMBOL_OBJFILE): Delete macro.
9877 (SYMBOL_LOCATION_FUNCS): Delete macro.
9878 (SYMBOL_LOCATION_BATON): Update.
9879 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9880 intead of SYMBOL_LOCATION_FUNCS.
9881 * ax-gdb.c (gen_var_ref): Ditto.
9882 * printcmd.c (address_info): Ditto.
9883 * findvar.c (read_var_value): Ditto.
9884 (symbol_read_needs_frame): Ditto.
9885
9886 2004-01-26 Andrew Cagney <cagney@redhat.com>
9887
9888 * dwarf2read.c (read_func_scope): Document frame-base hack.
9889
9890 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9891
9892 * infcmd.c (print_return_value): Plug memory leak; delete
9893 ui_stream object. Rename argument `structure_return' to
9894 `struct_return'.
9895
9896 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9897
9898 * infcmd.c (print_return_value): Wrap long lines.
9899 (finish_command_continuation, finish_command): Remove unused
9900 variable `funcaddr'. Fix some coding-standards problems.
9901
9902 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9903 SECT_SIZE is large enough, not whether it's exactly the right size.
9904 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9905 TDEP->fpregset to zero.
9906
9907 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9908 floating-point registers for traditional NetBSD core files.
9909 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9910 TDEP->sizeof_fpregset here.
9911
9912 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9913
9914 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9915 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9916 function with code split out from
9917 sparc32nbsd_sigcontext_frame_cache.
9918 (sparc32nbsd_sigcontext_frame_cache): Use
9919 sparc32nbsd_sigcontext_saved_regs.
9920 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9921 OpenBSD.
9922 * sparcobsd-tdep.c: New file.
9923 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9924 (sparcobsd-tdep.o): New dependency.
9925 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9926 * config/sparc/obsd.mt: New file.
9927
9928 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9929 TDEP->fpregset to be initialized to enable core file register
9930 sets.
9931
9932 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9933
9934 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9935 Add opaque declarations.
9936 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9937 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9938 function with code split out from
9939 sparc64nbsd_sigcontext_frame_cache.
9940 (sparc64nbsd_sigcontext_frame_cache): Use
9941 sparc64nbsd_sigcontext_saved_regs.
9942 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9943 OpenBSD.
9944 * sparc64obsd-tdep.c: New file.
9945 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9946 (sparc64obsd-tdep.o): New dependency.
9947 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9948 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9949 * config/sparc/obsd64.mt: New file.
9950
9951 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9952 read the instruction at PC.
9953
9954 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9955 value of GDB_OSABI_DEFAULT.
9956 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9957 instead of GDB_OSABI_NETBSD_AOUT.
9958
9959 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9960
9961 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9962 copyright.
9963
9964 2004-01-23 Andrew Cagney <cagney@redhat.com>
9965
9966 * printcmd.c (display_command): Replace tui_set_display call with
9967 tui_set_layout_for_display_command.
9968 * tui/tui.h (enum tui_win_type): Define.
9969 (tui_set_layout): Delete declaration.
9970 (tui_set_layout_for_display_command): Rename set_tui_layout.
9971 * tui/tui-data.h (enum tui_layout_type): Define.
9972 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9973 "tui.h".
9974 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9975 (tui_default_win_height): Rename tuiDefaultWinHeight.
9976 (tui_default_win_viewport_height): Rename
9977 tuiDefaultWinViewportHeight.
9978 (tui_set_layout): RenametuiSetLayout.
9979 * tui/tui-layout.c: Update references.
9980 * tui/tui.c: Update references.
9981 * tui/tui-disasm.c: Update references.
9982
9983 2004-01-23 David Carlton <carlton@kealia.com>
9984
9985 Partial workaround for PR c++/1511:
9986 * cp-namespace.c: Include frame.h.
9987 (cp_lookup_transparent_type): New
9988 (cp_lookup_transparent_type_loop): New.
9989 * cp-support.h: Declare cp_lookup_transparent_type.
9990 * symtab.c (basic_lookup_transparent_type): Renamed from
9991 lookup_transparent_type.
9992 (lookup_transparent_type): Replace old body by a call to
9993 current_language->la_lookup_transparent_type.
9994 * symtab.h: Update copyright. Declare
9995 basic_lookup_transparent_type.
9996 * language.h: Update copyright.
9997 (struct language_defn): Add la_lookup_transparent_type.
9998 * language.c: Update copyright.
9999 (unknown_language_defn): Add basic_lookup_transparent_type.
10000 (auto_language_defn): Add basic_lookup_transparent_type.
10001 (local_language_defn): Add basic_lookup_transparent_type.
10002 * ada-lang.c: Update copyright.
10003 (ada_language_defn): Add basic_lookup_transparent_type.
10004 * c-lang.c: Update copyright.
10005 (c_language_defn): Add basic_lookup_transparent_type.
10006 (cplus_language_defn): Add basic_lookup_transparent_type.
10007 (asm_language_defn): Add basic_lookup_transparent_type.
10008 (minimal_language_defn): Add basic_lookup_transparent_type.
10009 * f-lang.c: Update copyright.
10010 (f_language_defn): Add basic_lookup_transparent_type.
10011 * jv-lang.c: Update copyright.
10012 (java_language_defn): Add basic_lookup_transparent_type.
10013 * m2-lang.c: Update copyright.
10014 (m2_language_defn): Add basic_lookup_transparent_type.
10015 * objc-lang.c: Update copyright.
10016 (objc_language_defn): Add basic_lookup_transparent_type.
10017 * p-lang.c: Update copyright.
10018 (p_language_defn): Add basic_lookup_transparent_type.
10019 * scm-lang.c: Update copyright.
10020 (scm_language_defn): Add basic_lookup_transparent_type.
10021 * Makefile.in (cp-namespace.o): Depend on frame.h.
10022
10023 2004-01-23 David Carlton <carlton@kealia.com>
10024
10025 Patch for PR c++/1520:
10026 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10027 properly if we have a specification die.
10028 (determine_prefix_aux): Rename from determine_prefix.
10029 (determine_prefix): Like the old determine_prefix, but never
10030 returns NULL.
10031
10032 2004-01-23 Theodore A. Roth <troth@openavr.org>
10033
10034 * avr-tdep.c: Update copyright.
10035 (avr_iaddr_p): Delete unused function.
10036 (avr_saddr_p): Delete unused function.
10037
10038 2004-01-23 David Carlton <carlton@kealia.com>
10039
10040 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10041 Fix for PR symtab/1534.
10042
10043 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10044
10045 * NEWS (New native configurations): Mention OpenBSD/sparc and
10046 OpenBSD/sparc64.
10047 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10048 * configure.host: Likewise.
10049 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10050 handler for OpenBSD.
10051 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10052
10053 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10054
10055 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10056 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10057
10058 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10059 * cli/cli-cmds.c (shell_escape): Likewise.
10060
10061 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10062 OpenBSD .note.openbsd.ident sections.
10063
10064 2004-01-22 David Carlton <carlton@kealia.com>
10065
10066 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10067 get_scope_pc_bounds.
10068 (read_file_scope): Ditto.
10069 (get_scope_pc_bounds): New function, produced by extracting code
10070 from the above two functions, consolidating it, and adding support
10071 for DW_TAG_namespace.
10072
10073 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10074
10075 * osabi.c (MAX_NOTESZ): New define.
10076 (check_note): New function.
10077 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10078 check_note.
10079
10080 2004-01-21 Roland McGrath <roland@redhat.com>
10081
10082 * MAINTAINERS (write after approval): Add myself.
10083
10084 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10085
10086 * utils.c (init_page_info): Move declarations of `rows' and
10087 `cols' before the __GO32__-specific code. Move the closing brace
10088 outside the #ifdef __GO32__..#endif block.
10089 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10090
10091 2004-01-21 Paul Brook <paul@codesourcery.com>
10092
10093 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10094 BPSTAT_WHAT_CHECK_SHLIBS.
10095
10096 2004-01-21 Paul Brook <paul@codesourcery.com>
10097
10098 * MAINTAINERS: Add myself to write-after-approval.
10099
10100 2004-01-20 Andrew Cagney <cagney@redhat.com>
10101
10102 * ax-gdb.c (print_axs_value): Delete unused function.
10103 * jv-lang.c (java_lookup_type): Delete unused function.
10104 * cli/cli-dump.c (dump_filetype): Delete unused function.
10105 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10106 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10107 (mips_getstring): Delete unused function.
10108 (pmon_insert_breakpoint): Delete #if0ed function.
10109 (PMON_MAX_BP): Delete #if0ed MACRO.
10110 (mips_pmon_bp_info): Delete #if0ed variable.
10111 (pmon_remove_breakpoint): Delete #if0ed function.
10112 * monitor.c (monitor_write_even_block): Delete unused function.
10113 (monitor_write_memory_block): Delete #if0ed code.
10114 * dink32-rom.c (dink32_load): Delete unused function.
10115 (_initialize_dink32_rom): Delete #if0ed code.
10116 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10117
10118 * tui/tui-command.c: Update references.
10119 * tui/tui-io.c: Update references.
10120 * tui/tui-command.h: Update copyright.
10121 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10122
10123 * source.c (ambiguous_line_spec): Delete never-defined function.
10124 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10125 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10126 * cli/cli-cmds.c (validate_comname): Ditto.
10127
10128 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10129 "tui-data.h".
10130 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10131 (tui_show_disassem): Rename tuiShowDisassem.
10132 (tui_show_disassem_and_update_source): Rename
10133 tuiVerticalDisassemScroll.
10134 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10135 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10136 * tui/tui.h: Update copyright.
10137 (enum tui_status): Define.
10138 * tui/tui-data.h (enum tui_scroll_direction): Define.
10139 * tui/tui-disasm.c: Update copyright. Update references.
10140 * tui/tui-winsource.c: Update copyright. Update references.
10141 * tui/tui-win.c: Update references.
10142 * tui/tui-layout.c: Update references.
10143
10144 2004-01-20 Andrew Cagney <cagney@redhat.com>
10145
10146 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10147 sym2 to start of block.
10148
10149 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10150
10151 * MAINTAINERS: Delete mmalloc.
10152 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10153 * NEWS: Mention removal of --with-malloc.
10154 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10155 * config.in: Regenerate.
10156 * configure: Regenerate.
10157 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10158 USE_MMALLOC, MMCHECK_FORCE.
10159 * gdbinit.in: Remove mmalloc.
10160 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10161 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10162 * config/i386/go32.mh: Likewise.
10163 * config/i386/interix.mh: Likewise.
10164 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10165
10166 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10167
10168 * linespec.c (decode_variable, symtab_from_filename): Call
10169 error_silent with error message instead of throwing an exception
10170 directly.
10171 * defs.h (error_silent, error_output_message): Add prototypes.
10172 (catch_exceptions_with_msg): Ditto.
10173 * utils.c (error_silent, error_output_message): New functions.
10174 * top.c (catch_exceptions_with_msg): New function.
10175
10176 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10177
10178 * mi/mi-cmds.h (enum print_values): Add definition.
10179
10180 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10181 type and value for simple data types and just the name and type
10182 for complex ones, if required.
10183
10184 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10185 children, if required.
10186
10187 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10188
10189 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10190 unused declarations.
10191
10192 2004-01-19 Andrew Cagney <cagney@redhat.com>
10193
10194 * top.h (mapped_symbol_files): Delete declaration.
10195 * main.c (captured_main): Delete option "m" and "mapped".
10196 * objfiles.c (mapped_symbol_files): Delete variable.
10197 * symfile.c (symbol_file_command): Delete mmap code.
10198 (symbol_file_add_with_addrs_or_offsets): Ditto.
10199 (add_symbol_file_command, reread_separate_symbols): Ditto.
10200 * objfiles.h (OBJF_MAPPED): Delete.
10201 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10202 (free_objfile) [USE_MMALLOC]: Ditto.
10203 (open_existing_mapped_file): Delete function.
10204 (open_mapped_file): Delete function.
10205 (map_to_file): Delete function.
10206
10207 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10208
10209 * infrun.c (step_into_function): Account for possible breakpoint
10210 adjustment when computing ``stop_func_start''.
10211
10212 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10213
10214 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10215 the region size against the size of a pointer, not the size of
10216 a register as given by DEPRECATED_REGISTER_SIZE.
10217
10218 2004-01-19 Andrew Cagney <cagney@redhat.com>
10219
10220 * tui/tui-regs.h: Include "tui-data.h".
10221 (tuiFirstRegElementNoInLine): Delete declaration.
10222 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10223 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10224 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10225 (tui_calculate_regs_column_count): Rename
10226 tuiCalculateRegsColumnCount.
10227 (tui_check_register_values): Rename tuiCheckRegisterValues.
10228 (tui_show_registers): Rename tuiShowRegisters.
10229 (tui_display_registers_from_line): Rename
10230 tuiDisplayRegistersFromLine.
10231 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10232 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10233 (tui_first_reg_element_no_inline): Rename
10234 tuiFirstRegElementNoInLine.
10235 * tui/tui-data.h: Update copyright.
10236 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10237 * tui/tui-windata.c: Update copyright, update references.
10238 * tui/tui-regs.c: Update copyright, update references.
10239 * tui/tui-win.c: Update copyright, update references.
10240 * tui/tui-layout.c: Update copyright, update references.
10241
10242 2004-01-18 Andrew Cagney <cagney@redhat.com>
10243
10244 * tui/tui-io.c: Update copyright.
10245 (key_is_end_sequence, key_is_backspace): New functions.
10246 (key_is_command_char, key_is_start_sequence): New function.
10247 (tui_getc): Update references.
10248 * tui/tui-io.h: Update copyright.
10249 (m_tuiStartNewLine): Delete macro.
10250 (m_isBackspace, m_isDeleteChar): Delete macros.
10251 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10252 (m_isNextPage, m_isPrevPage): Delete macros.
10253 (m_isLeftArrow, m_isRightArrow): Delete macros.
10254 (m_isXdbStyleCommandChar): Delete macro.
10255 (key_is_start_sequence): Declare, replace m_isStartSequence.
10256 (key_is_end_sequence): Declare, replace m_isEndSequence.
10257 (key_is_backspace): Declare ,replace m_isBackspace.
10258 (key_is_command_char): Declare, replace m_isCommandChar.
10259 * tui/tui-command.c: Update copyright.
10260 (tuiDispatchCtrlChar): Update references.
10261
10262 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10263 tuiSourceWin.h.
10264
10265 * tui/tui-command.c: Rename tui/tuiCommand.c.
10266 * tui/tui-command.h: Rename tui/tuiCommand.h.
10267 * tui/tui-data.c: Rename tui/tuiData.c.
10268 * tui/tui-data.h: Rename tui/tuiData.h.
10269 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10270 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10271 * tui/tui-io.c: Rename tui/tuiIO.c.
10272 * tui/tui-io.h: Rename tui/tuiIO.h.
10273 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10274 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10275 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10276 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10277 * tui/tui-source.c: Rename tui/tuiSource.c.
10278 * tui/tui-source.h: Rename tui/tuiSource.h.
10279 * tui/tui-stack.c: Rename tui/tuiStack.c.
10280 * tui/tui-stack.h: Rename tui/tuiStack.h.
10281 * tui/tui-win.c: Rename tui/tuiWin.c.
10282 * tui/tui-win.h: Rename tui/tuiWin.h.
10283 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10284 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10285 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10286 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10287 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10288 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10289 * tui/tui-file.c: Update includes.
10290 * tui/tui-hooks.c: Update includes.
10291 * tui/tui-interp.c: Update includes.
10292 * tui/tui.c: Update includes.
10293 * Makefile.in: Update all tui/ dependencies.
10294 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10295
10296 * Makefile.in: Update copyright. Update dependencies.
10297
10298 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10299 problem.
10300
10301 2004-01-18 Andrew Cagney <cagney@redhat.com>
10302
10303 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10304 instead of register_gdbarch_init.
10305
10306 * remote-sds.c (tohex): Delete unused function. Update copyright.
10307 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10308 * v850-tdep.c (v850_register_virtual_size): Ditto.
10309 * target.c (normal_target_post_startup_inferior): Ditto.
10310 * source.c (ambiguous_line_spec): Ditto.
10311 * remote.c (adapt_remote_get_threadinfo): Ditto.
10312 * mi/mi-out.c (out_field_fmt): Ditto.
10313 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10314 (output_control_change_notification): Ditto.
10315 * m68k-tdep.c (m68k_register_byte): Ditto.
10316 (m68k_remote_breakpoint_from_pc): Ditto.
10317 * ui-out.c (init_ui_out_state): Delete unused declaration.
10318 * stabsread.c (search_value): Ditto.
10319 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10320 * maint.c (print_section_table): Ditto.
10321 * infrun.c (set_follow_fork_mode_command): Ditto.
10322
10323 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10324
10325 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10326 DW_CFA_def_cfa_exporession. Add support for
10327 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10328 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10329
10330 2004-01-18 Andrew Cagney <cagney@redhat.com>
10331
10332 * ocd.c: Update copyright.
10333 (bdm_read_register_command): Delete unused function.
10334 (_initialize_remote_ocd): Delete commented out reference.
10335 (get_quoted_char, reset_packet): Delete #if0ed function.
10336 (output_packet, put_quoted_char): Delete #if0ed function.
10337 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10338 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10339 (BDM_BREAKPOINT): Delete #if0ed macro.
10340 (remote_timeout): Delete #if0ed variable.
10341
10342 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10343
10344 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10345 (core-sol2.o): Remove dependency.
10346 * core-sol2.c: Remove file.
10347
10348 2004-01-17 Andrew Cagney <cagney@redhat.com>
10349
10350 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10351 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10352 enums.
10353
10354 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * remote.c: Update copyright years.
10357
10358 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10361
10362 2004-01-17 Andrew Cagney <cagney@redhat.com>
10363
10364 * mdebugread.c: Update copyright.
10365 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10366 (parse_type, parse_procedure): Ditto.
10367 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10368
10369 * cris-tdep.c (cris_store_struct_return): Put back accidently
10370 deleted function.
10371
10372 * gdbarch.sh: Update copyright year.
10373 * gdbarch.h, gdbarch.c: Re-generate.
10374
10375 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10376
10377 Suggested by George Anzinger.
10378 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10379 correct stack offset. Include unknown opcode numbers in the error
10380 message.
10381
10382 2004-01-17 Andrew Cagney <cagney@redhat.com>
10383
10384 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10385 extract_struct_value_address, i386 does not set it.
10386 * sparc64-tdep.c (sparc64_init_abi): Do not set
10387 extract_struct_value_address, never called.
10388 (sparc64_extract_struct_value_address): Delete function.
10389 * m68hc11-tdep.c: Update copyright.
10390 (m68hc11_gdbarch_init): Delete redundant assignment of
10391 extract_struct_value_address.
10392 * i386-tdep.c: Update copyright.
10393 (i386_gdbarch_init): Do not set extract_struct_value_address,
10394 never called.
10395 (i386_extract_struct_value_address): Delete function.
10396 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10397 extract_struct_value_address, never called.
10398 (sparc32_extract_struct_value_address): #if 0 function. Add
10399 comments explaining its future.
10400
10401 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * arm-tdep.c (arm_write_pc): New function.
10404 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10405
10406 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10407
10408 * breakpoint.c (must_shift_inst_regs): Delete.
10409 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10410 and SHIFT_INST_REGS.
10411 * infcmd.c (step_1, step_1_continuation): Delete references to
10412 SHIFT_INST_REGS.
10413 * infrun.c (keep_going): Likewise.
10414 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10415 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10416
10417 2004-01-17 Andrew Cagney <cagney@redhat.com>
10418
10419 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10420 * gdbarch.h, gdbarch.c: Re-generate.
10421 * infcmd.c (print_return_value): Delete reference to
10422 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10423
10424 * cris-tdep.c (cris_gdbarch_init): Do not set
10425 deprecated_extract_struct_value_address.
10426
10427 * xstormy16-tdep.c: Update copyright.
10428 (xstormy16_extract_struct_value_address): Update to current
10429 extract struct value address interface.
10430 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10431 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10432 current extract struct value address interface.
10433 (sh64_gdbarch_init): Set extract_struct_value_address.
10434
10435 * cris-tdep.c: Update copyright.
10436 (cris_extract_struct_value_address): Delete function.
10437 (struct_return_address): Delete variable.
10438 (cris_store_struct_return): Do not set struct_return_address.
10439
10440 * mcore-tdep.c: Update copyright.
10441 (mcore_extract_struct_value_address): Delete function. Update
10442 comments.
10443 (mcore_gdbarch_init): Update.
10444 * mn10300-tdep.c: Update copyright.
10445 (mn10300_extract_struct_value_address): Delete function.
10446 (mn10300_gdbarch_init): Update.
10447 * v850-tdep.c: Update copyright.
10448 (v850_extract_struct_value_address): Delete.
10449 (v850_gdbarch_init): Update.
10450 * ns32k-tdep.c: Update copyright.
10451 (ns32k_extract_struct_value_address): Delete.
10452 (ns32k_gdbarch_init): Update.
10453 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10454 (hppa_gdbarch_init): Update.
10455 * vax-tdep.c: Update copyright.
10456 (vax_extract_struct_value_address): Delete.
10457 (vax_gdbarch_init): Update.
10458
10459 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10460 * gdbarch.h, gdbarch.c: Re-generate.
10461 * procfs.c (procfs_fetch_registers): Delete reference to
10462 DEPRECATED_NPC_REGNUM.
10463 (procfs_store_registers): Ditto.
10464 * regcache.c (generic_target_write_pc): Simplify.
10465 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10466
10467 * core-sol2.c (fetch_core_registers): Replace
10468 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10469
10470 * hppa-tdep.c: Update copyright year.
10471 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10472 NPC_REGNUM.
10473 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10474
10475 * mips-tdep.c (mips_write_pc): New function.
10476 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10477 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10478 (mips_find_saved_regs, mips_software_single_step: Ditto.
10479 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10480 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10481
10482 2004-01-17 Andrew Cagney <cagney@redhat.com>
10483
10484 * mips-tdep.c: Re-indent. Group functions by ABI.
10485
10486 2004-01-17 Andrew Cagney <cagney@redhat.com>
10487
10488 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10489 * gdbarch.c: Re-generate.
10490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10491 DECR_PC_AFTER_BREAK to zero.
10492 * vax-tdep.c (vax_gdbarch_init): Ditto.
10493 * v850-tdep.c (v850_gdbarch_init): Ditto.
10494 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10495 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10496 * sh-tdep.c (sh_gdbarch_init): Ditto.
10497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10498 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10499 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10500 * mips-tdep.c (mips_gdbarch_init): Ditto.
10501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10503 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10504 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10505 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10506 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10508 * frv-tdep.c (frv_gdbarch_init): Ditto.
10509 * cris-tdep.c (cris_gdbarch_init): Ditto.
10510 * avr-tdep.c (avr_gdbarch_init): Ditto.
10511 * arm-tdep.c (arm_gdbarch_init): Ditto.
10512 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10513
10514 2004-01-17 J. Brobecker <brobecker@gnat.com>
10515
10516 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10517 Delete, no longer used.
10518 (read_subrange_type): New function, mostly extracted from
10519 read_array_type().
10520 (read_array_type): Replace extracted code by call to
10521 read_subrange_type().
10522 (dwarf2_get_attr_constant_value): New function.
10523 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10524 (add_partial_symbol): Likewise.
10525 (process_die): Likewise.
10526 (new_symbol): Likewise.
10527 (read_type_die): Likewise.
10528
10529 2004-01-16 Andrew Cagney <cagney@redhat.com>
10530
10531 * symfile.c: Update copyright year.
10532 (compare_symbols): Delete unused function.
10533 * stabsread.c: Update copyright year.
10534 (lrs_general_complaint): Delete unused function.
10535 (ref_search_value): Ditto.
10536 (get_substring): Delete declaration.
10537 * sh64-tdep.c: Update copyright year.
10538 (sh64_get_gdb_regnum): Delete unused function.
10539 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10540 Delete unused function.
10541
10542 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10543
10544 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10545 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10546
10547 2004-01-16 Andrew Cagney <cagney@redhat.com>
10548
10549 Changes from Peter Schauer.
10550 * rs6000-tdep.c: Update copyright year.
10551 (rs6000_push_dummy_call): Update the stack pointer before
10552 accessing the corresponding stack region.
10553 * rs6000-nat.c: Update copyright year.
10554 (set_host_arch): Set "info.abfd" to "exec_bfd".
10555
10556 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10557
10558 * blockframe.c: Update copyright year.
10559 (inside_entry_func): Don't treat a zero PC specially.
10560
10561 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10562
10563 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10564 variable.
10565 (gcore_create_callback): Ditto. Skip any memory segment that has
10566 no permissions set.
10567
10568 2004-01-14 David Carlton <carlton@kealia.com>
10569
10570 Change symbols for C++ nested types to contain the fully qualified
10571 name, if possible. (At least in the DWARF-2 case.) Partial fix
10572 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10573 c++/895.
10574 * c-exp.y (qualified_type): Handle types nested within classes.
10575 * cp-namespace.c: Update comments.
10576 (cp_set_block_scope): Delete #if 0.
10577 (cp_lookup_nested_type): Handle types nested within classes.
10578 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10579 when appropriate.
10580 (add_partial_symbol): Add the name of the enclosing namespace to
10581 types.
10582 (pdi_needs_namespace): New.
10583 (add_partial_namespace): Tweak comment.
10584 (add_partial_structure): New.
10585 (psymtab_to_symtab_1): Initialize processing_current_prefix
10586 here...
10587 (process_die): instead of here.
10588 (read_structure_scope): Try to figure out the name of the class or
10589 namespace that the structure might be defined within.
10590 (read_enumeration): Generate fully-qualified names, if possible.
10591 (read_namespace): Don't set name to NULL.
10592 (die_specification): New.
10593 (new_symbol): Generate fully-qualified names for types.
10594 (read_type_die): Determine appropriate prefix.
10595 (determine_prefix): New.
10596 (typename_concat): New.
10597 (class_name): New.
10598 * valops.c (value_aggregate_elt): Pass NOSIDE to
10599 value_struct_elt_for_reference.
10600 (value_struct_elt_for_reference): Make static, add NOSIDE
10601 parameter, call value_maybe_namespace_elt as a last resort.
10602 (value_namespace_elt): Break out code into
10603 value_maybe_namespace_elt.
10604 (value_maybe_namespace_elt): New.
10605
10606 2004-01-12 Andrew Cagney <cagney@redhat.com>
10607
10608 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10609 cooked floating-point registers.
10610 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10611 and value_to_register.
10612
10613 2004-01-13 Andrew Cagney <cagney@redhat.com>
10614
10615 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10616 * gdbarch.c: Re-generate.
10617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10618 FUNCTION_START_OFFSET.
10619 * v850-tdep.c (v850_gdbarch_init): Ditto.
10620 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10621 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10622 * sh-tdep.c (sh_gdbarch_init): Ditto.
10623 * s390-tdep.c (s390_gdbarch_init): Ditto.
10624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10625 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10627 * mips-tdep.c (mips_gdbarch_init): Ditto.
10628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10629 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10631 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10632 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10633 * i386-tdep.c (i386_gdbarch_init): Ditto.
10634 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10636 * frv-tdep.c (frv_gdbarch_init): Ditto.
10637 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10638 * cris-tdep.c (cris_gdbarch_init): Ditto.
10639 * avr-tdep.c (avr_gdbarch_init): Ditto.
10640 * arm-tdep.c (arm_gdbarch_init): Ditto.
10641 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10642
10643 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * infrun.c (follow_fork_mode_ask): Remove.
10646 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10647 (follow_fork): Simplify and remove internal error for
10648 follow_fork_mode_ask.
10649 (_initialize_infrun): Update "set follow-fork-mode" help text.
10650
10651 2004-01-13 Andrew Cagney <cagney@redhat.com>
10652
10653 * configure.in: Update copyright year.
10654 (build_warnings): Add -Wunused-label.
10655 * configure: Re-generate.
10656
10657 2004-01-12 Andrew Cagney <cagney@redhat.com>
10658
10659 * exec.h (exec_ops): Make "extern".
10660
10661 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10662 the function is void.
10663 (mips_pseudo_register_write): Ditto.
10664
10665 2004-01-12 Andrew Cagney <cagney@redhat.com>
10666
10667 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10668 call. Never defined.
10669 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10670 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10671 (struct sparc_gregset, struct regcache): Ditto.
10672 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10673
10674 2004-01-12 Andrew Cagney <cagney@redhat.com>
10675
10676 * mi/ChangeLog: Delete file. Renamed to ...
10677 * mi/ChangeLog-1999-2003: New file.
10678 * tui/ChangeLog: Delete file. Renamed to ...
10679 * tui/ChangeLog-1998-2003: New file.
10680
10681 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10682
10683 * sparc64nbsd-tdep.c: Include "regset.h".
10684 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10685 Remove variables.
10686 (fetch_core_registers): Remove function.
10687 (sparc64nbsd_core_fns): Remove variable.
10688 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10689 functions.
10690 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10691 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10692 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10693
10694 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10695 sparc_extract_struct_value_address.
10696 (sparc32_gdbarch_init): Set extract_struct_value_address.
10697 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10698 function.
10699 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10700 return_value_on_stack.
10701
10702 * NEWS: Mention that %cs and %ss have been added to the AMD64
10703 configurations
10704
10705 * frame.c: Update copyright year.
10706 (get_prev_frame): Improve comment.
10707
10708 * sparc64fbsd-tdep.c: Include "regset.h".
10709 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10710 Remove variables.
10711 (fetch_core_registers): Remove function.
10712 (sparc64fbsd_core_fns): Remove variable.
10713 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10714 functions.
10715 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10716 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10717 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10718
10719 * sparcnbsd-tdep.c: Include "regset.h".
10720 (fetch_core_registers): Remove function.
10721 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10722 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10723 functions.
10724 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10725 TDEP->fpregset.
10726 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10727
10728 * sparc-tdep.h (struct regset): Provide opaque declaration.
10729 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10730 fpregset and sizeof_fpregset members.
10731 * sparc-tdep.c (struct regset): Provide opaque declaration.
10732 (sparc_regset_from_core_section): New function.
10733 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10734 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10735 Set regset_from_core_section when appropriate.
10736
10737 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10738
10739 * x86-64-tdep.c (amd64_non_pod_p): New function.
10740 (amd64_classify_aggregate): Return class memory for non-POD
10741 C++ structure types.
10742
10743 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10744 argument. Use it to reserve a register if necessary.
10745 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10746 amd64_push_arguments.
10747
10748 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10749
10750 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10751 register numbers in comments.
10752 * x86-64-tdep.h: Update copyright year.
10753 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10754 Adjust for addition of %cs and %ss.
10755 * amd64fbsd-nat.c: Update copyright year.
10756 (reg_offset): Add register offsets for %cs and %ss.
10757 * amd64fbsd-tdep.c: Update copyright year.
10758 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10759 (amd64fbsd_sc_reg_offset): Likewise.
10760 * x86-64-linux-nat.c: Update copyright year.
10761 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10762 and %ss.
10763 * amd64nbsd-nat.c: Update copyright year.
10764 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10765 * amd64nbsd-tdep.c: Update copyright year.
10766 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10767 * x86-64-linux-tdep.c: Update copyright year.
10768 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10769 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10770 * regformats/reg-x86-64.dat: Add %cs and %ss.
10771
10772 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10773 variables to prevent long lines. Update comments to reflect
10774 reality.
10775
10776 2004-01-09 David Carlton <carlton@kealia.com>
10777
10778 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10779 * dwarf2read.c (read_namespace): Pull out name-generating code
10780 into namespace_name. Rename previous_namespace to previous_prefix
10781 and processing_current_namespace to processing_current_prefix..
10782 (namespace_name): New function.
10783 (add_partial_symbol): Substitute uses of pdi->name with
10784 actual_name.
10785 * cp-support.h: Rename processing_current_namespace to
10786 processing_current_prefix.
10787 Update copyright year.
10788 * cp-namespace.c: Rename processing_current_namespace to
10789 processing_current_prefix.
10790 Update copyright year.
10791
10792 2004-01-09 Andrew Cagney <cagney@redhat.com>
10793
10794 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10795
10796 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10797
10798 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10799 complaining.
10800 (process_one_symbol): Deal with N_PATCH stabs.
10801
10802 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10803
10804 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10805 ifdeffed code.
10806 Update copyright year.
10807
10808 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10809
10810 * config/pa/tm-hppa.h: Update extern declarations for
10811 hppa32_hpux_frame_saved_pc_in_sigtramp,
10812 hppa32_hpux_frame_base_before_sigtramp, and
10813 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10814
10815 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10816
10817 * config/pa/tm-hppah.h: Update copyright years.
10818
10819 2004-01-08 Andrew Cagney <cagney@redhat.com>
10820
10821 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10822 (mips_o32_reg_struct_has_addr): Delete function.
10823 (mips_gdbarch_init): Update.
10824 (mips_extract_struct_value_address): Delete function.
10825
10826 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10827
10828 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10829 reality.
10830
10831 2004-01-07 Andrew Cagney <cagney@redhat.com>
10832
10833 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10834 architecture's elf flags (when available).
10835
10836 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10837 FPU to the start, check the MIPS FPU when looking for an old
10838 architecture.
10839 (set_mipsfpu_single_command): Update the architecture.
10840 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10841
10842 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10843 (mips_mask_address_p): Add "tdep" parameter.
10844 (show_mask_address, mips_addr_bits_remove): Update.
10845 (mips_dump_tdep): Update.
10846 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10847 (MIPS_STACK_ARGSIZE): Delete macro.
10848 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10849 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10850 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10851 (mips_dump_tdep): Update.
10852 (MIPS_SAVED_REGSIZE): Delete macro.
10853 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10854 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10855 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10856 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10857 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10858 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10859 (mips_pop_frame, return_value_location): Update.
10860 (mips_n32n64_return_value, mips_dump_tdep): Update.
10861
10862 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10863 MIPS ABI.
10864
10865 * mips-tdep.c: Update copyright.
10866 (mips_gdbarch_init): Merge two code blocks handling the register
10867 name and number layout.
10868
10869 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10870
10871 * tracepoint.c (validate_actionline): Fix segv at EOF
10872
10873 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10874
10875 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10876 properly for static fields.
10877
10878 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10879 Jason Molenda <jmolenda@apple.com>
10880
10881 * disasm.c: Update copyright to include 2004.
10882 (do_mixed_source_and_assembly): For uiout asm list
10883 and tuple cleanups, initialize to null_cleanup instead of
10884 NULL and do so prior to loop. Only reset when we close off
10885 the tuple/list. Move check for whether to close off the
10886 asm tuple/list to after dump_insns call where it will be run
10887 on each loop iteration.
10888
10889 2004-01-05 Andrew Cagney <cagney@redhat.com>
10890
10891 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10892 should be a switch case and not a label.
10893 * mips-tdep.c (mips32_next_pc): Delete unused labels
10894 "greater_equal_branch" and "less_zero_branch".
10895 * jv-valprint.c (java_print_value_fields): Delete unused label
10896 "flush_it".
10897
10898 * target.c (unpush_target): Only close a target that is in the
10899 target stack.
10900
10901 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10902
10903 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10904 address from [sp + 64] instead of %o2.
10905
10906 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10907 fixes PR backtrace/1476.
10908
10909 2004-01-05 Andrew Cagney <cagney@redhat.com>
10910
10911 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10912 move to start of file.
10913 * i386-tdep.h (struct regcache): Add opaque declaration.
10914 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10915 declaration.
10916 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10917 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10918 * win32-nat.c (fake_create_process): Use ISO C style definition.
10919 * stabsread.c (define_symbol): Delete #ifndef
10920 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10921 stabs_argument_has_addr call, macro never defined.
10922
10923 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10924
10925 * op50-rom.c: Delete.
10926 * w89k-rom.c: Delete.
10927 * Makefile.in: Remove references.
10928
10929 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10930
10931 * x86-64-tdep.c: Update copyright year.
10932 (struct amd64_register_info): Rename from x86_64_register_info.
10933 (amd64_register_info): Rename from x86_64_register_info.
10934 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10935 (amd64_register_name): Rename from x86_64_register_name.
10936 (amd64_register_type): Rename from x86_64_register_type.
10937 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10938 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10939 (amd64_dwarf_reg_to_regnum): Rename from
10940 x86_64_dwarf_reg_to_regnum.
10941 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10942 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10943 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10944 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10945 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10946 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10947 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10948 (amd64_frame_cache): Rename from x86_64_frame_cache.
10949 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10950 (amd64_frame_prev_register): Rename from
10951 x86_64_frame_prev_register.
10952 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10953 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10954 (amd64_sigtramp_frame_cache): Rename from
10955 x86_64_sigtramp_frame_cache.
10956 (amd64_sigtramp_frame_prev_register): Rename from
10957 x86_64_sigtramp_frame_prev_register.
10958 (amd64_sigtramp_frame_unwind): Rename from
10959 x86_64_sigtramp_frame_unwind.
10960 (amd64_sigtramp_frame_sniffer): Rename from
10961 x86_64_sigtramp_frame_sniffer.
10962 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10963 (amd64_frame_base): Rename from x86_64_frame_base.
10964 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10965 (amd64_frame_align): Rename from x86_64_frame_align.
10966 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10967 (amd64_regset_from_core_section): Rename from
10968 x86_64_regset_from_core_section.
10969 (x86_64_init_abi): Update comments.
10970
10971 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10972
10973 * MAINTAINERS (write after approval): Add myself.
10974
10975 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10976
10977 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10978 `float' arguments.
10979
10980 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10981
10982 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10983 such that it mentions a specific version of GCC that exhibits this
10984 bug.
10985
10986 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10987
10988 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10989 structure that has a single `float' member, store it in %f1 in
10990 addition to %f0.
10991
10992 * sparc-sol2-nat.c: Add missing '\'.
10993
10994 * sparc-tdep.c (sparc32_return_value): New function.
10995 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10996 Remove functions.
10997 (sparc32_gdbarch_init): Set return_value, don't set
10998 extract_return_value, store_return_value, use_struct_convention
10999 and return_value_on_stack.
11000
11001 * sparc-sol2-nat.c: Add missing ')'.
11002
11003 2004-01-03 J. Brobecker <brobecker@gnat.com>
11004
11005 * infrun.c (handle_step_into_function): New function.
11006 (handle_inferior_event): Extract out some code into the new
11007 function above.
11008
11009 2004-01-03 J. Brobecker <brobecker@gnat.com>
11010
11011 * infrun.c (handle_inferior_event): Move the declaration of
11012 real_stop_pc inside the if blocks where it is used.
11013
11014 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11015
11016 * sparc64-tdep.c (sparc64_16_byte_align_p)
11017 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11018 Use check_typedef to get subtypes of structures and unions.
11019 (sparc64_store_return_value): Fix calculation of the appropriate
11020 offset into VALBUF when storing a structure or union.
11021 (sparc64_return_value): New function.
11022 (sparc64_use_struct_convention): Remove function.
11023 (sparc64_init_abi): Set return_value, don't set
11024 extract_return_value, store_return_value and
11025 use_struct_convention.
11026
11027 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11028
11029 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11030 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11031 gdb/config/alpha/xm-alphaosf.h,
11032 gdb/config/powerpc/tm-ppcle-eabi.h,
11033 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11034 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11035 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11036 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11037 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11038 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11039 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11040 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11041 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11042 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11043 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11044 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11045 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11046 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11047 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11048 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11049 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11050 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11051 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11052 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11053 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11054 Remove lines for .cvsignore files.
11055
11056 2004-01-03 J. Brobecker <brobecker@gnat.com>
11057
11058 * infrun.c: Back out the previous change.
11059
11060 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11061
11062 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11063 sparc-*-sunos4* to the list of REMOVED configurations.
11064
11065 * configure.tgt: Add back sparc-*-vxworks*.
11066 * remote-vxsparc.c: Remove all includes except for "defs.h",
11067 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11068 Include "sparc-tdep.h".
11069 (SPARC_R_G1): New define.
11070 (vxsparc_gregset): New variable.
11071 (ext_format_sparc): Remove extern declaration.
11072 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11073 sparc32_supply_fpregset.
11074 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11075 sparc_collect_rwindow and sparc32_collect_fpregset.
11076 * config/sparc/tm-vxworks.h: New file, based on recently removed
11077 tm-vxsparc.h.
11078 * config/sparc/vxworks.mt: New file, based on recently removed
11079 vxworks.mt.
11080
11081 2004-01-03 J. Brobecker <brobecker@gnat.com>
11082
11083 * infrun.c (handle_step_into_function): New function.
11084 (handle_inferior_event): Extract out some code into the new
11085 function above.
11086
11087 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11088
11089 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11090 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11091 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11092 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11093 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11094 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11095 (sparc_nat_h): New variable.
11096 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11097 (tm-sun4os4.h): Remove dependency.
11098 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11099 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11100 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11101 sparc-tdep.o): Update dependencies.
11102 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11103 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11104 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11105 dependencies.
11106 * configure.host: Remove existing sparc-*-lynxos*,
11107 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11108 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11109 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11110 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11111 triplets.
11112 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11113 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11114 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11115 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11116 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11117 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11118 sparc64-*-solaris2* and sparc64-*-* triplets.
11119 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11120 "symtab.h" and "objfiles.h".
11121 (BIAS): Remove define.
11122 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11123 (X_DISP19): Remove macros.
11124 (sparc_fetch_instruction): Remove function.
11125 (struct gdbarch_tdep): Remove definition.
11126 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11127 (sparc_breakpoint_from_pc): Remove function.
11128 (struct sparc64_frame_cache): Remove definition.
11129 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11130 sparc64_unwind_pc): Remove functions.
11131 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11132 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11133 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11134 (sparc64_frame_cache): Change return type to `struct
11135 sparc_frame_cache *'. Simply call sparc_frame_cache.
11136 (sparc64_frame_this_id, sparc64_frame_prev_register,
11137 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11138 instead of `struct sparc64_frame_cache.
11139 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11140 sparc_analyze_control_transfer, sparc_software_single_step,
11141 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11142 _initialize_sparc64_tdep): Remove functions.
11143 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11144 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11145 macros.
11146 (sparc64_supply_gregset, sparc64_collect_gregset,
11147 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11148 (sparc64_init_abi): New function.
11149 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11150 inclusion guard. Include "sparc-tdep.h".
11151 (BIAS): Define.
11152 (r_tstate_offset, r_fprs_offset): New defines.
11153 (enum sparc_regnum): Remove defenition.
11154 (enum sparc64_regnum): Reformat.
11155 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11156 (sparc64_init_abi, sparc64_supply_gregset,
11157 sparc64_collect_gregset, sparc64_supply_fpregset,
11158 sparc64_collect_fpregset): New prototypes.
11159 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11160 Add extern declarations.
11161 (sparc64_sol2_init_abi): New prototype.
11162 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11163 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11164 prototypes.
11165 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11166 "sparnbsd-nat.h".
11167 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11168 functions.
11169 (_initialize_sparc64fbsd_nat): Remove initialization of
11170 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11171 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11172 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11173 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11174 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11175 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11176 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11177 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11178 (sparc64fbsd_r_y_offset): Remove variables.
11179 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11180 Make static and const.
11181 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11182 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11183 functions.
11184 (sparc64fbsd_gregset): New variable.
11185 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11186 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11187 and sparc64_supply_fpregset.
11188 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11189 (sparc64fbsd_sigtramp_frame_this_id)
11190 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11191 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11192 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11193 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11194 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11195 * sparcnbsd-tdep.c: Update copyright year. Include
11196 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11197 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11198 "value.h" and "sparcnbsd-tdep.h".
11199 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11200 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11201 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11202 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11203 defines.
11204 (sparcnbsd_gregset): New variable.
11205 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11206 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11207 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11208 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11209 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11210 variables.
11211 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11212 (sparc32nbsd_sigcontext_frame_this_id)
11213 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11214 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11215 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11216 (sparcnbsd_get_longjmp_target_32,
11217 sparcnbsd_get_longjmp_target_64): Remove functions.
11218 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11219 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11220 sparcnbsd_init_elf): Remove.
11221 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11222 (sparcnbsd_elf_init_abi): New functions.
11223 (_initialize_sparcnbsd_tdep): New prototype.
11224 (_initialize_sparnbsd_tdep): Update.
11225 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11226 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11227 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11228 * config/sparc/linux.mh: Update comment.
11229 (XM_FILE, HOST_IPC): Remove variables.
11230 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11231 sparc-linux-nat.o.
11232 * config/sparc/linux.mt: Update comment.
11233 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11234 * config/sparc/nbsd.mt: Reformat.
11235 * config/sparc/nbsd64.mh: Update comment.
11236 (NATDEPFILES): Add sparc-nat.o.
11237 * config/sparc/nbsd64.mt: Update comment.
11238 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11239 (TM_FILE): Set to tm-nbsd.h.
11240 * config/sparc/nbsdelf.mh: Update comment.
11241 (NATDEPFILES): Add sparc-nat.o.
11242 (XM_FILE): Delete.
11243 * config/sparc/nbsdaout.mh: Update comment.
11244 (NATDEPFILES): Add sparc-nat.o
11245 (XM_FILE): Delete.
11246 * config/sparc/nm-linux.h: Update copyright year. Don't include
11247 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11248 inclusion.
11249 (KERNEL_U_SIZE): Remove define.
11250 (kernel_u_size): Remove prototype.
11251 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11252 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11253 "regcache.h".
11254 (CHILD_PREPARE_TO_STORE): Remove define.
11255 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11256 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11257 sparcnbsd-nat.c: Rewrite files.
11258 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11259 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11260 sparcnbsd-tdep.h: Remove files.
11261 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11262 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11263 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11264 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11265 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11266 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11267 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11268 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11269 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11270 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11271 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11272 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11273 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11274 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11275 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11276 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11277 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11278 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11279 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11280
11281 2004-01-02 Andrew Cagney <cagney@redhat.com>
11282
11283 From 2003-12-18 Kazuhiro Inaoka:
11284 * configure.host: Add m32r-linux target.
11285
11286 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11287
11288 * top.c (print_gdb_version): Update year to 2004.
11289
11290 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11291
11292 * MAINTAINERS: Add myself to the write-after-approval category.
11293
11294 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11295
11296 From Bernardo Innocenti <bernie@develer.com>:
11297 * configure.tgt: Add uClinux target.
11298
11299 2004-01-02 Andrew Cagney <cagney@redhat.com>
11300
11301 * utils.c (do_my_cleanups): Make static, add forward declaration.
11302 * defs.h (do_my_cleanups): Delete declaration.
11303
11304 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11305
11306 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11307 bfd/ChangeLog-0203.
11308
11309 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11310
11311 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11312 in <machine/reg.h>.
11313 * configure, config.in: Regenerate.
11314
11315 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11316 tui/ChangeLog-1998-2003.
11317 \f
11318 Local Variables:
11319 mode: change-log
11320 left-margin: 8
11321 fill-column: 74
11322 version-control: never
11323 End:
This page took 0.318051 seconds and 3 git commands to generate.